/* Oneup Tech Solutions — site styles */

:root {
  --paper: #F3F5F0;
  --paper-2: #E7EBE3;
  --surface: #FFFFFF;
  --ink: #15201C;
  --muted: #56625C;
  --line: #D3D9D0;
  --cobalt: #2B44E0;
  --cobalt-ink: #FFFFFF;
  --cobalt-soft: #DFE4FF;
  --band: #15201C;
  --band-text: #E6EBE4;
  --band-muted: #A3B0A9;
  --focus: #2B44E0;

  --font: "Schibsted Grotesk", system-ui, -apple-system, "Segoe UI", sans-serif;
  --wrap: 1280px;
  --gutter: clamp(16px, 4vw, 40px);
  --r-sm: 6px;
  --r-md: 12px;
  --r-lg: 20px;
  color-scheme: light;
}

@media (prefers-color-scheme: dark) {
  :root:not([data-theme="light"]) {
    --paper: #0F1513;
    --paper-2: #151D1A;
    --surface: #18211E;
    --ink: #E6EBE4;
    --muted: #9AA7A0;
    --line: #2A3531;
    --cobalt: #7C8CFF;
    --cobalt-ink: #0F1513;
    --cobalt-soft: #222B5C;
    --band: #E6EBE4;
    --band-text: #15201C;
    --band-muted: #4D5A53;
    --focus: #9AA6FF;
    color-scheme: dark;
  }
}
:root[data-theme="dark"] {
  --paper: #0F1513;
  --paper-2: #151D1A;
  --surface: #18211E;
  --ink: #E6EBE4;
  --muted: #9AA7A0;
  --line: #2A3531;
  --cobalt: #7C8CFF;
  --cobalt-ink: #0F1513;
  --cobalt-soft: #222B5C;
  --band: #E6EBE4;
  --band-text: #15201C;
  --band-muted: #4D5A53;
  --focus: #9AA6FF;
  color-scheme: dark;
}

/* Base */
*, *::before, *::after { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; scroll-behavior: smooth; scroll-padding-top: 80px; }
body {
  margin: 0;
  background: var(--paper);
  color: var(--ink);
  font-family: var(--font);
  font-size: 1.0625rem;
  line-height: 1.6;
  -webkit-font-smoothing: antialiased;
  text-rendering: optimizeLegibility;
  overflow-x: hidden;
}
h1, h2, h3 { margin: 0; line-height: 1.1; font-weight: 800; letter-spacing: -0.025em; text-wrap: balance; }
p { margin: 0; text-wrap: pretty; }
a { color: inherit; }
img, svg { display: block; }
ul, ol, dl, dd { margin: 0; padding: 0; }
ul, ol { list-style: none; }
address { font-style: normal; }

:focus-visible { outline: 3px solid var(--focus); outline-offset: 3px; border-radius: 4px; }

.wrap { max-width: var(--wrap); margin: 0 auto; padding: 0 var(--gutter); }

.skip {
  position: absolute; left: 16px; top: -60px; z-index: 100;
  background: var(--ink); color: var(--paper); padding: 10px 16px; border-radius: var(--r-sm);
}
.skip:focus { top: 12px; }

/* Buttons */
.btn {
  display: inline-flex; align-items: center; justify-content: center; gap: 8px;
  min-height: 48px; padding: 0 22px;
  background: var(--cobalt); color: var(--cobalt-ink);
  border: 2px solid var(--cobalt); border-radius: 999px;
  font: inherit; font-weight: 700; font-size: 1rem; text-decoration: none;
  cursor: pointer;
  transition: background-color .15s ease, color .15s ease, transform .15s ease;
}
.btn:hover { transform: translateY(-1px); }
.btn:active { transform: translateY(0); }
.btn-ghost { background: transparent; color: var(--ink); border-color: var(--line); }
.btn-ghost:hover { border-color: var(--ink); }
.btn-small { min-height: 40px; padding: 0 18px; font-size: .9375rem; }

.text-link { color: var(--cobalt); font-weight: 600; text-underline-offset: 3px; }

/* Header */
.site-header {
  position: sticky; top: 0; z-index: 50;
  background: color-mix(in srgb, var(--paper) 88%, transparent);
  backdrop-filter: saturate(1.4) blur(12px);
  -webkit-backdrop-filter: saturate(1.4) blur(12px);
  border-bottom: 1px solid transparent;
  transition: border-color .2s ease;
}
.site-header.scrolled { border-bottom-color: var(--line); }
.header-inner { display: flex; align-items: center; gap: 32px; height: 68px; }

.brand { display: inline-flex; align-items: center; gap: 10px; text-decoration: none; }
.brand-mark { width: 32px; height: 32px; flex: none; }
.brand-mark rect { fill: var(--cobalt); }
.brand-mark path { fill: none; stroke: var(--cobalt-ink); stroke-width: 2.6; stroke-linecap: round; stroke-linejoin: round; }
.brand-name { font-weight: 800; font-size: 1.25rem; letter-spacing: -0.03em; }
.brand-sub { font-weight: 500; color: var(--muted); margin-left: 4px; }

.nav { display: flex; gap: 28px; margin-left: auto; }
.nav a { text-decoration: none; font-weight: 500; font-size: .9375rem; color: var(--muted); }
.nav a:hover { color: var(--ink); }

/* Hero */
.hero { padding: clamp(40px, 6vw, 88px) 0 clamp(8px, 2vw, 24px); }
.hero-grid { display: grid; grid-template-columns: minmax(0, 1.12fr) minmax(0, 1fr); gap: clamp(40px, 5vw, 72px); align-items: center; }
.hero-copy { container-type: inline-size; min-width: 0; }
/* Headline is sized to its own column (cqi), so it can never spill into the card beside it. */
.hero h1 { font-size: clamp(2rem, 4.3vw, 4rem); font-size: clamp(2rem, 10.2cqi, 4.75rem); font-weight: 850; letter-spacing: -0.04em; line-height: 1.02; }
.hero h1 span { display: block; }
@supports (font-size: 1cqi) { .hero h1 span { white-space: nowrap; } }
.lede { margin-top: 24px; font-size: clamp(1.0625rem, 1.5vw, 1.25rem); color: var(--muted); max-width: 46ch; }
.hero-actions { display: flex; flex-wrap: wrap; gap: 12px; margin-top: 36px; }

/* Composer (hero interactive) */
.composer {
  background: var(--surface);
  border: 1px solid var(--line);
  border-radius: var(--r-lg);
  padding: clamp(20px, 3vw, 28px);
}
.composer-title { font-weight: 600; font-size: 1rem; line-height: 1.45; }
.chips { display: flex; flex-wrap: wrap; gap: 8px; margin-top: 16px; }
.chip {
  font: inherit; font-size: .875rem; font-weight: 600;
  padding: 7px 14px; min-height: 36px;
  border-radius: 999px; border: 1px solid var(--line);
  background: transparent; color: var(--ink); cursor: pointer;
  transition: background-color .15s ease, border-color .15s ease, color .15s ease;
}
.chip:hover { border-color: var(--ink); }
.chip[aria-pressed="true"] { background: var(--ink); border-color: var(--ink); color: var(--paper); }

.modules {
  display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 8px;
  margin-top: 20px; padding-top: 20px; border-top: 1px solid var(--line);
}
.modules li {
  position: relative;
  display: flex; align-items: flex-end;
  min-height: 64px; padding: 10px 12px;
  border-radius: var(--r-md);
  border: 1px dashed var(--line);
  font-size: .8125rem; font-weight: 600; line-height: 1.25;
  color: var(--muted);
  transition: background-color .3s ease, color .3s ease, border-color .3s ease, transform .3s ease;
}
.modules li::before {
  content: ""; position: absolute; top: 10px; left: 12px;
  width: 8px; height: 8px; border-radius: 2px;
  background: var(--line);
  transition: background-color .3s ease;
}
.modules li.on {
  background: var(--cobalt-soft); color: var(--ink);
  border: 1px solid transparent;
  transform: translateY(-2px);
}
.modules li.on::before { background: var(--cobalt); }
.composer-note { margin-top: 16px; font-size: .875rem; color: var(--muted); min-height: 2.6em; }

/* Sections */
.section { padding: clamp(64px, 8vw, 112px) 0; }
.section h2 { font-size: clamp(2rem, 3.6vw, 3rem); }
.section-head { max-width: 40rem; }
.section-head p, .split-head p { margin-top: 16px; color: var(--muted); font-size: 1.125rem; }
.section-tint { background: var(--paper-2); }

/* Services */
.split { display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 2fr); gap: clamp(40px, 6vw, 96px); }
.split-head { position: sticky; top: 108px; align-self: start; }
.services { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); column-gap: 48px; row-gap: 48px; }
.services svg {
  width: 28px; height: 28px; margin-bottom: 18px;
  fill: none; stroke: var(--cobalt); stroke-width: 1.7; stroke-linecap: round; stroke-linejoin: round;
}
.services h3 { font-size: 1.25rem; font-weight: 700; letter-spacing: -0.015em; }
.services p { margin-top: 10px; color: var(--muted); font-size: 1rem; }

/* Process: steps rise like a staircase */
.steps {
  display: grid; grid-template-columns: repeat(5, minmax(0, 1fr)); gap: 16px;
  margin-top: clamp(48px, 6vw, 72px);
  align-items: end;
}
.steps li {
  display: flex; flex-direction: column;
  background: var(--surface);
  border: 1px solid var(--line);
  border-radius: var(--r-md);
  padding: 22px 20px 24px;
}
.steps li:nth-child(1) { min-height: 356px; }
.steps li:nth-child(2) { min-height: 400px; }
.steps li:nth-child(3) { min-height: 444px; }
.steps li:nth-child(4) { min-height: 488px; }
.steps li:nth-child(5) { min-height: 532px; background: var(--cobalt); border-color: var(--cobalt); color: var(--cobalt-ink); }
.step-num {
  display: inline-grid; place-items: center;
  width: 36px; height: 36px; border-radius: 50%;
  border: 1.5px solid currentColor;
  font-weight: 700; font-size: .9375rem;
  margin-bottom: auto;
}
.steps h3 { font-size: 1.375rem; margin-top: 28px; }
.steps p { margin-top: 10px; font-size: .9375rem; color: var(--muted); }
.steps .step-out { margin-top: 16px; padding-top: 14px; border-top: 1px solid var(--line); color: var(--ink); font-weight: 600; }
.steps li:nth-child(5) p { color: inherit; opacity: .85; }
.steps li:nth-child(5) .step-out { opacity: 1; border-top-color: color-mix(in srgb, var(--cobalt-ink) 35%, transparent); }

/* Why */
.section-ink { background: var(--band); color: var(--band-text); }
.why-title { max-width: 16ch; }
.why { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 40px; margin-top: clamp(40px, 5vw, 64px); }
.why div { padding-top: 20px; border-top: 2px solid var(--cobalt); }
.why dt { text-wrap: balance; font-weight: 700; font-size: 1.1875rem; line-height: 1.25; letter-spacing: -0.01em; }
.why dd { margin-top: 10px; color: var(--band-muted); font-size: 1rem; }

/* Contact */
.contact-grid { display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 1.25fr); gap: clamp(40px, 6vw, 96px); align-items: start; }
.contact-info > p { margin-top: 16px; color: var(--muted); font-size: 1.125rem; max-width: 34ch; }
.contact-lines { margin-top: 36px; display: grid; gap: 14px; }
.contact-lines li { display: grid; gap: 2px; }
.cl-label { font-size: .875rem; color: var(--muted); }
.contact-lines a { font-size: clamp(1.375rem, 2.4vw, 1.75rem); font-weight: 700; letter-spacing: -0.02em; text-decoration: none; overflow-wrap: anywhere; }
.contact-lines a:hover { color: var(--cobalt); }
.contact-info address { margin-top: 32px; color: var(--muted); line-height: 1.7; }
.contact-info address strong { color: var(--ink); font-weight: 700; }
.contact-info .text-link { display: inline-block; margin-top: 12px; }

.contact-form {
  display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 20px;
  background: var(--surface);
  border: 1px solid var(--line);
  border-radius: var(--r-lg);
  padding: clamp(20px, 3.5vw, 36px);
}
.field { display: grid; gap: 8px; }
.field-wide { grid-column: 1 / -1; }
.field label { font-size: .9375rem; font-weight: 600; }
.field input, .field select, .field textarea {
  width: 100%; font: inherit; font-size: 1rem; color: var(--ink);
  background: var(--paper); border: 1px solid var(--line); border-radius: var(--r-sm);
  padding: 12px 14px; min-height: 48px;
}
.field textarea { resize: vertical; min-height: 140px; }
.field input:focus, .field select:focus, .field textarea:focus { outline: none; border-color: var(--cobalt); box-shadow: 0 0 0 3px color-mix(in srgb, var(--cobalt) 25%, transparent); }
.field [aria-invalid="true"] { border-color: #C2362B; }
.field textarea::placeholder { color: var(--muted); opacity: .8; }
.form-error { grid-column: 1 / -1; color: #C2362B; font-weight: 600; font-size: .9375rem; }
.form-foot { display: flex; flex-wrap: wrap; align-items: center; gap: 12px 20px; }
.form-hint { font-size: .875rem; color: var(--muted); flex: 1 1 220px; }
.form-consent { display: flex; align-items: flex-start; gap: 12px; padding-top: 4px; }
.form-consent input { flex: none; width: 20px; height: 20px; margin: 2px 0 0; accent-color: var(--cobalt); cursor: pointer; }
.form-consent input[aria-invalid="true"] { outline: 2px solid #C2362B; outline-offset: 2px; }
.form-consent label { font-size: .9375rem; color: var(--muted); line-height: 1.5; cursor: pointer; }
.form-consent a { color: var(--ink); font-weight: 600; text-underline-offset: 3px; }
.form-consent a:hover { color: var(--cobalt); }

/* Footer */
.site-footer { border-top: 1px solid var(--line); padding: 40px 0; }
.footer-inner { display: flex; flex-wrap: wrap; align-items: center; gap: 12px 32px; }
.footer-inner p { color: var(--muted); font-size: .9375rem; }
.footer-inner .footer-tagline { color: var(--ink); font-weight: 700; letter-spacing: -0.01em; }
.footer-meta { margin-left: auto; display: flex; flex-wrap: wrap; align-items: center; gap: 8px 24px; }
.footer-meta a { color: var(--muted); font-size: .9375rem; text-underline-offset: 3px; }
.footer-meta a:hover { color: var(--ink); }

/* Legal pages */
.legal { padding: clamp(48px, 7vw, 96px) 0 clamp(72px, 9vw, 120px); }
.legal-inner { display: grid; grid-template-columns: minmax(0, 15rem) minmax(0, 42rem); gap: 24px clamp(40px, 6vw, 96px); }
.legal-head { grid-column: 1 / -1; max-width: 46rem; }
.legal-head h1 { font-size: clamp(2.25rem, 5vw, 3.5rem); letter-spacing: -0.035em; }
.legal-updated { margin-top: 12px; color: var(--muted); font-size: .9375rem; }
.legal-intro { margin-top: 20px; font-size: 1.125rem; color: var(--muted); max-width: 40rem; }
.legal-toc { position: sticky; top: 100px; align-self: start; margin-top: 24px; }
.legal-toc-title { font-weight: 700; font-size: .9375rem; }
.legal-toc ol { list-style: decimal; padding-left: 1.25rem; margin-top: 12px; display: grid; gap: 6px; color: var(--muted); font-size: .9375rem; }
.legal-toc a { color: var(--muted); text-decoration: none; }
.legal-toc a:hover { color: var(--cobalt); text-decoration: underline; text-underline-offset: 3px; }
.prose { margin-top: 24px; }
.prose section + section { margin-top: 44px; padding-top: 36px; border-top: 1px solid var(--line); }
.prose h2 { font-size: 1.5rem; font-weight: 750; letter-spacing: -0.02em; }
.prose h3 { font-size: 1.0625rem; font-weight: 700; letter-spacing: -0.01em; margin-top: 24px; }
.prose p { margin-top: 12px; color: var(--muted); }
.prose ul { list-style: disc; padding-left: 1.25rem; margin-top: 12px; display: grid; gap: 8px; color: var(--muted); }
.prose strong { color: var(--ink); font-weight: 650; }
.prose a { color: var(--cobalt); text-underline-offset: 3px; }
.prose address { margin-top: 12px; color: var(--muted); line-height: 1.8; }
.prose section { scroll-margin-top: 96px; }

/* Responsive */
@media (max-width: 1100px) {
  .steps { grid-template-columns: repeat(2, minmax(0, 1fr)); align-items: stretch; }
  .steps li:nth-child(n) { min-height: 0; }
  .steps li:nth-child(5) { grid-column: 1 / -1; }
}
@media (max-width: 1020px) {
  .hero-grid { grid-template-columns: 1fr; }
  .split { grid-template-columns: 1fr; }
  .split-head { position: static; max-width: 40rem; }
  .why { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .contact-grid { grid-template-columns: 1fr; }
}
@media (max-width: 720px) {
  .nav { display: none; }
  .header-inner { justify-content: space-between; }
  .services { grid-template-columns: 1fr; row-gap: 36px; }
  .modules { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .steps { grid-template-columns: 1fr; }
  .steps h3 { margin-top: 20px; }
  .why { grid-template-columns: 1fr; gap: 28px; }
  .contact-form { grid-template-columns: 1fr; }
  .footer-meta { margin-left: 0; }
  .legal-inner { grid-template-columns: 1fr; }
  .legal-toc { position: static; }
}

@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  *, *::before, *::after { transition-duration: 0s !important; transition-delay: 0s !important; animation: none !important; }
}

/* 404 */
.section-404 { font-size: clamp(2.25rem, 5vw, 3.5rem); letter-spacing: -0.035em; }
.actions-404 { margin-top: 32px; }
