/* Altaura.ai design system
   Concept: altitude. Deep navy ground, topographic contour lines, a single gold accent.
   Light and dark themes share one token set. Header, hero and footer stay navy in both. */
:root {
  --bg: #f4f5f8;
  --surface: #ffffff;
  --surface-2: #eaedf3;
  --ink: #15213d;
  --ink-2: #4b5870;
  --line: #d7dce6;
  --navy: #0b1324;
  --navy-2: #121d35;
  --on-navy: #eef1f7;
  --on-navy-2: #aab4c8;
  --gold: #c9a24f;
  --gold-text: #86651f;
  --cta: #c9a24f;
  --cta-hover: #d8b361;
  --cta-ink: #101a30;
  --focus: #2a5bd7;
  --font-display: "Newsreader", Georgia, "Times New Roman", serif;
  --font-body: "Hanken Grotesk", system-ui, -apple-system, "Segoe UI", sans-serif;
  --font-mono: "IBM Plex Mono", ui-monospace, "SFMono-Regular", Menlo, monospace;
  --radius: 6px;
  --maxw: 1160px;
  color-scheme: light;
}
@media (prefers-color-scheme: dark) {
  :root:not([data-theme="light"]) {
    --bg: #0a111f;
    --surface: #111b30;
    --surface-2: #17233c;
    --ink: #e9edf6;
    --ink-2: #a6b1c8;
    --line: #24314c;
    --gold-text: #dcb767;
    --focus: #8fb0ff;
    color-scheme: dark;
  }
}
:root[data-theme="dark"] {
  --bg: #0a111f;
  --surface: #111b30;
  --surface-2: #17233c;
  --ink: #e9edf6;
  --ink-2: #a6b1c8;
  --line: #24314c;
  --gold-text: #dcb767;
  --focus: #8fb0ff;
  color-scheme: dark;
}

*, *::before, *::after { box-sizing: border-box; }
html { scroll-behavior: smooth; }
body {
  margin: 0;
  background: var(--bg);
  color: var(--ink);
  font-family: var(--font-body);
  font-size: 1.0625rem;
  line-height: 1.65;
  -webkit-font-smoothing: antialiased;
}
body::before {
  content: "";
  position: fixed;
  inset: 0 0 auto;
  height: env(safe-area-inset-top, 0px);
  background: var(--navy);
  z-index: 40;
}
img, svg { max-width: 100%; }
a { color: inherit; }
:focus-visible { outline: 3px solid var(--focus); outline-offset: 3px; border-radius: 3px; }
.skip { position: absolute; left: -999px; top: 0; background: var(--cta); color: var(--cta-ink); padding: .6rem 1rem; z-index: 60; }
.skip:focus { left: 8px; top: 8px; }

.wrap {
  width: 100%;
  max-width: var(--maxw);
  margin-inline: auto;
  padding-left: max(20px, env(safe-area-inset-left, 0px));
  padding-right: max(20px, env(safe-area-inset-right, 0px));
}

/* ---------- Type ---------- */
h1, h2, h3 { font-family: var(--font-display); font-weight: 500; letter-spacing: -0.012em; line-height: 1.12; margin: 0; text-wrap: balance; }
h1 { font-size: clamp(2.35rem, 5.2vw, 4rem); }
h2 { font-size: clamp(1.8rem, 3.4vw, 2.6rem); }
h3 { font-size: 1.4rem; line-height: 1.25; }
p { margin: 0; }
.eyebrow { font-family: var(--font-mono); font-size: .78rem; letter-spacing: .12em; text-transform: uppercase; color: var(--gold-text); }
.on-navy .eyebrow, .hero .eyebrow { color: var(--gold); }
.lead { font-size: 1.2rem; color: var(--ink-2); max-width: 62ch; }
.hero .lead, .on-navy .lead { color: var(--on-navy-2); }
.mono { font-family: var(--font-mono); font-size: .86rem; letter-spacing: .02em; }
.prose { max-width: 66ch; }
.prose p + p { margin-top: 1rem; }
em.accent { font-style: italic; color: var(--gold); }

/* ---------- Buttons ---------- */
.btn {
  display: inline-flex; align-items: center; justify-content: center; gap: .5rem;
  font: 600 1rem/1 var(--font-body);
  padding: .95rem 1.4rem;
  border-radius: var(--radius);
  border: 1.5px solid transparent;
  text-decoration: none; cursor: pointer;
  transition: background-color .15s, border-color .15s, transform .15s;
  min-height: 48px;
}
.btn-primary { background: var(--cta); color: var(--cta-ink); }
.btn-primary:hover { background: var(--cta-hover); }
.btn-ghost { border-color: color-mix(in srgb, currentColor 40%, transparent); color: inherit; }
.btn-ghost:hover { border-color: currentColor; }
.btn-sm { padding: .65rem 1rem; min-height: 40px; font-size: .95rem; }
.btn-row { display: flex; flex-wrap: wrap; gap: .8rem; }
.link-arrow { font-weight: 600; text-decoration: none; border-bottom: 1.5px solid var(--gold); padding-bottom: 1px; }
.link-arrow::after { content: " \2192"; }
.link-arrow:hover { border-bottom-color: currentColor; }

/* ---------- Header ---------- */
.site-header {
  position: sticky; top: env(safe-area-inset-top, 0px); z-index: 30;
  background: var(--navy); color: var(--on-navy);
  border-bottom: 1px solid rgba(255,255,255,.08);
}
.nav-bar { display: flex; align-items: center; justify-content: space-between; gap: 1rem; min-height: 68px; }
.brand { display: inline-flex; align-items: center; gap: .65rem; text-decoration: none; color: var(--on-navy); }
.brand svg { width: 30px; height: 30px; flex: none; }
.brand-word { font-family: var(--font-body); font-weight: 600; letter-spacing: .22em; font-size: .98rem; }
.brand-word small { font-size: .7em; letter-spacing: .04em; color: var(--gold); font-weight: 500; margin-left: .1em; }
.nav-toggle { display: none; background: none; border: 1.5px solid rgba(255,255,255,.3); color: var(--on-navy); border-radius: var(--radius); padding: .5rem .8rem; font: 600 .95rem var(--font-body); cursor: pointer; min-height: 44px; }
.nav { display: flex; align-items: center; gap: .3rem; }
.nav a, .nav button.menu-btn {
  color: var(--on-navy); text-decoration: none; font: 500 .98rem var(--font-body);
  padding: .6rem .85rem; border-radius: var(--radius); background: none; border: 0; cursor: pointer;
}
.nav a:hover, .nav button.menu-btn:hover { background: rgba(255,255,255,.08); }
.nav a[aria-current="page"], .nav button[aria-current="true"] { color: var(--gold); }
.nav a.btn-primary { background: var(--cta); color: var(--cta-ink); margin-left: .5rem; }
.nav a.btn-primary:hover { background: var(--cta-hover); }
.has-menu { position: relative; }
.menu-btn::after { content: ""; display: inline-block; width: .42em; height: .42em; border-right: 1.5px solid currentColor; border-bottom: 1.5px solid currentColor; transform: translateY(-.15em) rotate(45deg); margin-left: .5em; }
.menu {
  position: absolute; top: calc(100% + 6px); left: 0; min-width: 320px;
  background: var(--navy-2); border: 1px solid rgba(255,255,255,.1); border-radius: 8px; padding: .4rem;
  display: none; box-shadow: 0 18px 40px rgba(0,0,0,.35);
}
.has-menu.open .menu { display: block; }
.menu a { display: block; padding: .7rem .9rem; }
.menu a span { display: block; font: 400 .85rem var(--font-body); color: var(--on-navy-2); margin-top: .1rem; }

/* ---------- Hero ---------- */
.hero { position: relative; overflow: hidden; background: radial-gradient(1200px 520px at 80% 20%, #16264a 0%, var(--navy) 60%); color: var(--on-navy); }
.hero .contours { position: absolute; inset: 0; width: 100%; height: 100%; pointer-events: none; }
.hero .wrap { position: relative; }
.hero-grid { display: grid; grid-template-columns: minmax(0, 1.25fr) minmax(0, .75fr); gap: clamp(2rem, 5vw, 4.5rem); align-items: center; padding-block: clamp(3.2rem, 8vw, 6.5rem); }
.hero h1 { color: #fff; margin-block: 1rem 1.4rem; }
.hero .btn-row { margin-top: 2rem; }
.hero-proof { display: flex; flex-wrap: wrap; gap: .5rem 1.4rem; margin-top: 2.2rem; padding: 0; list-style: none; color: var(--on-navy-2); font-size: .95rem; }
.hero-proof li::before { content: ""; display: inline-block; width: 7px; height: 7px; background: var(--gold); clip-path: polygon(50% 0, 100% 100%, 0 100%); margin-right: .6rem; }
.start-card { background: var(--surface); color: var(--ink); border-radius: 10px; padding: 1.6rem; box-shadow: 0 24px 60px rgba(0,0,0,.35); border-top: 4px solid var(--gold); }
.start-card h2 { font-size: 1.65rem; margin-block: .6rem .7rem; }
.start-card .meta { display: flex; flex-wrap: wrap; gap: .4rem 1rem; color: var(--gold-text); }
.start-card ul { margin: 1rem 0 1.3rem; }

.page-hero { background: radial-gradient(900px 400px at 85% 0%, #16264a 0%, var(--navy) 65%); color: var(--on-navy); position: relative; overflow: hidden; }
.page-hero .contours { position: absolute; inset: 0; width: 100%; height: 100%; pointer-events: none; opacity: .7; }
.page-hero .wrap { position: relative; padding-block: clamp(2.6rem, 6vw, 4.5rem); }
.page-hero h1 { color: #fff; font-size: clamp(2.1rem, 4.4vw, 3.3rem); max-width: 22ch; margin-top: .9rem; }
.page-hero .lead { margin-top: 1.1rem; color: var(--on-navy-2); }
.crumbs { font-family: var(--font-mono); font-size: .78rem; letter-spacing: .08em; text-transform: uppercase; color: var(--on-navy-2); }
.crumbs a { text-decoration: none; }
.crumbs a:hover { color: var(--gold); }

/* ---------- Sections ---------- */
.section { padding-block: clamp(3rem, 7vw, 5.5rem); }
.section.alt { background: var(--surface-2); }
.section-head { display: grid; gap: .8rem; margin-bottom: clamp(1.6rem, 3.5vw, 2.8rem); max-width: 60ch; }
.two-col { display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 1fr); gap: clamp(1.6rem, 4vw, 4rem); }
.two-col > * { min-width: 0; }

/* check list, peak markers */
.peaks { list-style: none; margin: 0; padding: 0; display: grid; gap: .65rem; }
.peaks li { position: relative; padding-left: 1.6rem; }
.peaks li::before { content: ""; position: absolute; left: .15rem; top: .62em; width: 9px; height: 9px; background: var(--gold); clip-path: polygon(50% 0, 100% 100%, 0 100%); }
.dashes li::before { clip-path: none; height: 2px; width: 10px; top: .85em; background: var(--ink-2); }

/* ---------- Cards ---------- */
.cards { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 1.1rem; }
.cards.c4 { grid-template-columns: repeat(4, minmax(0, 1fr)); }
.cards.c2 { grid-template-columns: repeat(2, minmax(0, 1fr)); }
.card { display: flex; flex-direction: column; gap: .8rem; background: var(--surface); border: 1px solid var(--line); border-radius: var(--radius); padding: 1.5rem; text-decoration: none; transition: border-color .15s, transform .15s; }
a.card:hover { border-color: var(--gold); transform: translateY(-2px); }
.card h3 { font-size: 1.32rem; }
.card p { color: var(--ink-2); font-size: 1rem; }
.card .tag { margin-top: auto; padding-top: .9rem; border-top: 1px solid var(--line); display: flex; justify-content: space-between; gap: .5rem; flex-wrap: wrap; color: var(--gold-text); }
.card .svc { font-family: var(--font-mono); font-size: .75rem; letter-spacing: .1em; text-transform: uppercase; color: var(--ink-2); }

/* ---------- Steps ---------- */
.steps { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 0; list-style: none; padding: 0; margin: 0; counter-reset: step; border-top: 1px solid var(--line); }
.steps li { padding: 1.4rem 1.4rem 0 0; position: relative; counter-increment: step; }
.steps li::before { content: "0" counter(step); font-family: var(--font-mono); font-size: .8rem; letter-spacing: .1em; color: var(--gold-text); display: block; margin-bottom: .6rem; }
.steps li::after { content: ""; position: absolute; top: -5px; left: 0; width: 9px; height: 9px; background: var(--gold); clip-path: polygon(50% 0, 100% 100%, 0 100%); }
.steps h3 { font-size: 1.3rem; margin-bottom: .45rem; }
.steps p { color: var(--ink-2); font-size: 1rem; }
.steps.long { grid-template-columns: 1fr; border-top: 0; gap: 0; }
.steps.long li { display: grid; grid-template-columns: 3.2rem minmax(0,1fr); padding: 1.1rem 0; border-bottom: 1px solid var(--line); }
.steps.long li::before { margin: .3rem 0 0; }
.steps.long li::after { display: none; }
.steps.long h3 { font-family: var(--font-body); font-weight: 600; font-size: 1.05rem; letter-spacing: 0; margin-bottom: .15rem; }

/* ---------- Fit / not fit ---------- */
.fit { display: grid; grid-template-columns: 1fr 1fr; gap: 1.1rem; }
.fit > div { background: var(--surface); border: 1px solid var(--line); border-radius: var(--radius); padding: 1.5rem; }
.fit h3 { font-size: 1.3rem; margin-bottom: 1rem; }

/* ---------- Pricing table ---------- */
.price-table { width: 100%; border-collapse: collapse; background: var(--surface); border: 1px solid var(--line); border-radius: var(--radius); overflow: hidden; }
.price-table th, .price-table td { text-align: left; padding: 1.1rem 1.2rem; border-bottom: 1px solid var(--line); vertical-align: top; }
.price-table th { font-family: var(--font-mono); font-size: .75rem; letter-spacing: .1em; text-transform: uppercase; color: var(--ink-2); background: var(--surface-2); font-weight: 500; }
.price-table td:first-child a { font-family: var(--font-display); font-size: 1.25rem; text-decoration: none; line-height: 1.2; display: block; }
.price-table td:first-child a:hover { color: var(--gold-text); }
.price-table td:first-child span { display: block; color: var(--ink-2); font-size: .95rem; margin-top: .25rem; }
.price-table tr:last-child td { border-bottom: 0; }
.price-table .mono { white-space: nowrap; }
.table-scroll { overflow-x: auto; }
.table-scroll .price-table { min-width: 640px; }

/* ---------- Service page layout ---------- */
.svc-layout { display: grid; grid-template-columns: minmax(0, 1fr) 320px; gap: clamp(2rem, 5vw, 4.5rem); align-items: start; }
.svc-main > section + section { margin-top: clamp(2.6rem, 5vw, 3.8rem); }
.svc-main h2 { font-size: clamp(1.6rem, 2.8vw, 2.1rem); margin-bottom: 1.1rem; }
.svc-main .prose p, .svc-main .closer { color: var(--ink-2); }
.closer { margin-top: 1.1rem; font-family: var(--font-display); font-size: 1.3rem; line-height: 1.35; color: var(--ink) !important; max-width: 40ch; }
.aside { position: sticky; top: calc(env(safe-area-inset-top, 0px) + 88px); background: var(--surface); border: 1px solid var(--line); border-top: 4px solid var(--gold); border-radius: var(--radius); padding: 1.5rem; display: grid; gap: 1.1rem; }
.aside dl { margin: 0; display: grid; gap: 1rem; }
.aside dt { font-family: var(--font-mono); font-size: .74rem; letter-spacing: .1em; text-transform: uppercase; color: var(--ink-2); }
.aside dd { margin: .15rem 0 0; font-family: var(--font-display); font-size: 1.55rem; line-height: 1.2; }
.aside dd small { display: block; font: 400 .9rem var(--font-body); color: var(--ink-2); margin-top: .25rem; }
.aside .pairs { font-size: .95rem; }
.aside .pairs a { display: block; padding: .3rem 0; text-decoration: none; border-bottom: 1px solid var(--line); }
.aside .pairs a:hover { color: var(--gold-text); }

/* ---------- FAQ ---------- */
.faq { display: grid; gap: 0; border-top: 1px solid var(--line); }
.faq details { border-bottom: 1px solid var(--line); }
.faq summary { cursor: pointer; list-style: none; padding: 1.1rem 2.5rem 1.1rem 0; font-weight: 600; position: relative; }
.faq summary::-webkit-details-marker { display: none; }
.faq summary::after { content: "+"; position: absolute; right: .3rem; top: 50%; transform: translateY(-50%); font: 400 1.5rem var(--font-body); color: var(--gold-text); }
.faq details[open] summary::after { content: "\2212"; }
.faq .ans { padding: 0 2.5rem 1.2rem 0; color: var(--ink-2); max-width: 66ch; }

/* ---------- CTA band ---------- */
.cta-band { background: var(--navy); color: var(--on-navy); position: relative; overflow: hidden; }
.cta-band .contours { position: absolute; inset: 0; width: 100%; height: 100%; pointer-events: none; opacity: .75; }
.cta-band .wrap { display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between; gap: 1.6rem 3rem; padding-block: clamp(2.6rem, 6vw, 4.2rem); position: relative; }
.cta-band h2 { color: #fff; max-width: 24ch; font-size: clamp(1.7rem, 3.2vw, 2.4rem); }
.cta-band p { color: var(--on-navy-2); margin-top: .7rem; max-width: 52ch; }

/* ---------- Founder ---------- */
.founder { display: grid; grid-template-columns: 200px minmax(0, 1fr); gap: clamp(1.4rem, 4vw, 3rem); align-items: start; }
.portrait { aspect-ratio: 4 / 5; border-radius: var(--radius); background: linear-gradient(160deg, var(--navy-2), var(--navy)); display: grid; place-items: center; color: var(--gold); font-family: var(--font-display); font-size: 3.4rem; border: 1px solid var(--line); }
.aside-note { margin: 0; font-size: .9rem; color: var(--ink-2); }
.portrait-img { width: 100%; height: 100%; object-fit: cover; border-radius: var(--radius); }

/* ---------- Industries ---------- */
.industry { display: grid; grid-template-columns: minmax(0, .8fr) minmax(0, 1.2fr); gap: clamp(1.2rem, 4vw, 3.5rem); padding-block: 2.2rem; border-top: 1px solid var(--line); scroll-margin-top: 90px; }
.industry:last-of-type { border-bottom: 1px solid var(--line); }
.industry .starts { margin-top: 1rem; display: flex; flex-wrap: wrap; gap: .5rem; }
.chip { font-family: var(--font-mono); font-size: .76rem; letter-spacing: .04em; border: 1px solid var(--line); border-radius: 999px; padding: .3rem .7rem; text-decoration: none; color: var(--ink-2); background: var(--surface); }
a.chip:hover { border-color: var(--gold); color: var(--ink); }

/* ---------- Contact form ---------- */
.contact-grid { display: grid; grid-template-columns: minmax(0, .8fr) minmax(0, 1.2fr); gap: clamp(2rem, 5vw, 4.5rem); align-items: start; }
.form { background: var(--surface); border: 1px solid var(--line); border-top: 4px solid var(--gold); border-radius: var(--radius); padding: clamp(1.3rem, 3vw, 2rem); display: grid; gap: 1.1rem; }
.field { display: grid; gap: .4rem; }
.field label { font-weight: 600; font-size: .95rem; }
.field .hint { font-weight: 400; color: var(--ink-2); font-size: .88rem; }
.field input, .field select, .field textarea { font: 400 1rem var(--font-body); padding: .8rem .9rem; border: 1.5px solid var(--line); border-radius: var(--radius); background: var(--bg); color: var(--ink); width: 100%; min-height: 48px; }
.field textarea { min-height: 130px; resize: vertical; }
.field input:focus, .field select:focus, .field textarea:focus { outline: 3px solid var(--focus); outline-offset: 1px; border-color: var(--focus); }
.fields-2 { display: grid; grid-template-columns: 1fr 1fr; gap: 1.1rem; }
.form-status { min-height: 1.5em; font-size: .98rem; color: var(--ink-2); }
.form-status.ok { color: var(--ink); font-weight: 600; }
.next-steps { list-style: none; padding: 0; margin: 1.6rem 0 0; display: grid; gap: 1.2rem; counter-reset: n; }
.next-steps li { counter-increment: n; display: grid; grid-template-columns: 2.4rem minmax(0,1fr); }
.next-steps li::before { content: counter(n); font-family: var(--font-mono); color: var(--gold-text); border: 1px solid var(--gold); border-radius: 50%; width: 1.7rem; height: 1.7rem; display: grid; place-items: center; font-size: .8rem; }
.next-steps strong { display: block; }
.next-steps span { color: var(--ink-2); font-size: .98rem; }

/* ---------- Footer ---------- */
.site-footer { background: var(--navy); color: var(--on-navy-2); font-size: .98rem; }
.footer-grid { display: grid; grid-template-columns: 1.4fr 1fr 1fr; gap: 2.5rem; padding-block: 3.4rem 2.4rem; }
.footer-grid h2 { font: 500 .76rem var(--font-mono); letter-spacing: .12em; text-transform: uppercase; color: var(--gold); margin-bottom: 1rem; }
.footer-grid ul { list-style: none; margin: 0; padding: 0; display: grid; gap: .5rem; }
.footer-grid a { text-decoration: none; }
.footer-grid a:hover { color: #fff; }
.footer-grid .brand { margin-bottom: 1rem; }
.footer-bottom { border-top: 1px solid rgba(255,255,255,.1); padding-block: 1.3rem; display: flex; flex-wrap: wrap; gap: .5rem 2rem; justify-content: space-between; font-size: .88rem; }

/* ---------- Responsive ---------- */
@media (max-width: 960px) {
  .hero-grid, .two-col, .svc-layout, .contact-grid, .industry { grid-template-columns: minmax(0, 1fr); }
  .aside { position: static; }
  .cards, .cards.c4 { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .steps { grid-template-columns: repeat(2, minmax(0, 1fr)); row-gap: 1rem; }
  .footer-grid { grid-template-columns: 1fr 1fr; }
  .footer-grid > :first-child { grid-column: 1 / -1; }
}
@media (max-width: 880px) {
  .nav-toggle { display: inline-flex; }
  .nav { display: none; position: absolute; left: 0; right: 0; top: 100%; background: var(--navy); flex-direction: column; align-items: stretch; gap: 0; padding: .6rem max(20px, env(safe-area-inset-left, 0px)) 1.2rem; border-bottom: 1px solid rgba(255,255,255,.1); max-height: calc(100vh - 80px); overflow-y: auto; }
  .nav.open { display: flex; }
  .nav a, .nav button.menu-btn { padding: .85rem .4rem; text-align: left; }
  .menu { position: static; display: block; box-shadow: none; border: 0; background: none; padding: 0 0 0 .8rem; min-width: 0; }
  .menu-btn::after { display: none; }
  .nav .btn-primary { margin: .8rem 0 0; text-align: center; }
}
@media (max-width: 640px) {
  .cards, .cards.c4, .cards.c2, .fit, .fields-2, .steps { grid-template-columns: minmax(0, 1fr); }
  .founder { grid-template-columns: minmax(0, 1fr); }
  .portrait { max-width: 160px; }
  .footer-grid { grid-template-columns: minmax(0, 1fr); }
  .btn-row .btn { flex: 1 1 100%; }
}
@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  * { transition: none !important; }
}

/* odd last service card spans the row */
.cards:not(.c4):not(.c2) > .card:last-child:nth-child(3n+1) { grid-column: 1 / -1; }
@media (max-width: 960px) { .cards:not(.c4):not(.c2) > .card:last-child:nth-child(3n+1) { grid-column: auto; } .cards:not(.c4):not(.c2) > .card:last-child:nth-child(odd) { grid-column: 1 / -1; } }
@media (max-width: 640px) { .cards:not(.c4):not(.c2) > .card:last-child:nth-child(odd) { grid-column: auto; } }
