/* Aotearoa Services — Service as a Software, from the Bay of AI.
   Sand paper, pounamu green, a kōwhai-gold sun. Lora for the human voice, Schibsted Grotesk for the machine.
   Same family as the online landing, different coast. Mobile-first, light-only, zero external requests. */

@font-face { font-family: "Lora"; font-style: normal; font-weight: 400 700; font-display: swap; src: url("/fonts/lora-latin-wght-normal.woff2") format("woff2"); }
@font-face { font-family: "Lora"; font-style: italic; font-weight: 400 700; font-display: swap; src: url("/fonts/lora-latin-wght-italic.woff2") format("woff2"); }
@font-face { font-family: "Schibsted Grotesk"; font-style: normal; font-weight: 400 800; font-display: swap; src: url("/fonts/schibsted-grotesk-latin-wght-normal.woff2") format("woff2"); }

:root {
  --paper: #f6f4ee;
  --paper-dim: #ebe7dc;
  --card: #fffefb;
  --ink: #15211d;
  --ink-soft: #4d5b56;
  --ink-faint: #8a958f;
  --rule: rgb(21 33 29 / 0.14);
  --pounamu: #0f6e5a;
  --pounamu-deep: #0a4f41;
  --pounamu-dim: rgb(15 110 90 / 0.08);
  --gold: #d9a21b;
  --gold-dim: rgb(217 162 27 / 0.14);
  --sans: "Schibsted Grotesk", "Helvetica Neue", Arial, sans-serif;
  --serif: "Lora", Georgia, "Times New Roman", serif;
  --shadow: 0 18px 40px -18px rgb(21 33 29 / 0.28), 0 4px 14px -8px rgb(21 33 29 / 0.12);
  --radius: 1.25rem;
  --wrap: 70rem;
}

* { box-sizing: border-box; margin: 0; padding: 0; }
html { scroll-behavior: smooth; -webkit-text-size-adjust: 100%; }
body {
  background: var(--paper);
  background-image: radial-gradient(1100px 460px at 80% -60px, rgb(15 110 90 / 0.10), transparent 70%), radial-gradient(500px 300px at 10% 0, rgb(217 162 27 / 0.10), transparent 70%);
  background-repeat: no-repeat;
  color: var(--ink);
  font-family: var(--sans);
  font-size: 16px;
  line-height: 1.6;
  -webkit-font-smoothing: antialiased;
  text-rendering: optimizeLegibility;
  overflow-x: hidden;
}
::selection { background: var(--pounamu); color: var(--paper); }
img, svg { max-width: 100%; display: block; }
a { color: inherit; }
ul, ol { list-style: none; }
button { font: inherit; color: inherit; }
.sr-only { position: absolute; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; }
.wrap { width: 100%; max-width: var(--wrap); margin: 0 auto; padding: 0 1.25rem; }
.wrap-narrow { max-width: 46rem; }
.dim { color: var(--ink-faint); }

.skip-link { position: absolute; left: -9999px; top: 0; background: var(--ink); color: var(--paper); padding: .6rem 1rem; z-index: 100; }
.skip-link:focus { left: 1rem; top: 1rem; }

/* ---------- type ---------- */
h1, h2, h3 { font-family: var(--serif); font-weight: 500; letter-spacing: -0.01em; text-wrap: balance; line-height: 1.1; }
h1 { font-size: clamp(2.1rem, 6vw, 3.7rem); line-height: 1.06; }
h2 { font-size: clamp(1.8rem, 4.6vw, 2.7rem); }
h3 { font-size: clamp(1.2rem, 2.4vw, 1.45rem); }
.eyebrow { font-size: .72rem; font-weight: 500; letter-spacing: .24em; text-transform: uppercase; color: var(--pounamu); margin-bottom: 1rem; }
.accent-word { font-style: italic; color: var(--pounamu); }
.lede { margin-top: 1.4rem; font-size: clamp(1.02rem, 1.6vw, 1.18rem); color: var(--ink-soft); max-width: 38rem; }
.section-head { max-width: 44rem; }
.section-head.center { margin: 0 auto; text-align: center; }
.section-sub { margin-top: 1.1rem; color: var(--ink-soft); font-size: 1.02rem; }
.section-sub strong { color: var(--ink); font-weight: 600; }
.section-sub em { font-style: italic; }

/* ---------- buttons ---------- */
.btn { display: inline-flex; align-items: center; justify-content: center; min-height: 3rem; padding: 0 1.6rem; border-radius: 999px; font-size: .95rem; font-weight: 500; text-decoration: none; transition: background-color .15s ease, color .15s ease, border-color .15s ease, transform .15s ease; border: 1px solid transparent; cursor: pointer; white-space: nowrap; }
.btn-primary { background: var(--pounamu); color: var(--paper); }
.btn-primary:hover { background: var(--ink); }
.btn-ghost { border-color: var(--rule); color: var(--ink); background: transparent; }
.btn-ghost:hover { border-color: var(--ink); }
.btn-block { width: 100%; }
.btn:active { transform: translateY(1px); }
.btn:focus-visible, a:focus-visible, button:focus-visible, input:focus-visible, textarea:focus-visible { outline: 2px solid var(--pounamu); outline-offset: 3px; }

/* ---------- header ---------- */
.site-header { position: sticky; top: 0; z-index: 50; background: color-mix(in srgb, var(--paper) 84%, transparent); backdrop-filter: blur(10px) saturate(1.1); border-bottom: 1px solid var(--rule); }
.header-inner { display: flex; align-items: center; justify-content: space-between; gap: 1rem; min-height: 4rem; }
.brand { display: flex; align-items: center; gap: .65rem; text-decoration: none; }
.brand-mark { width: 32px; height: 32px; flex: none; }
.brand-text { display: flex; flex-direction: column; line-height: 1.1; font-family: var(--serif); font-size: 1.05rem; }
.brand-sub { font-family: var(--sans); font-size: .66rem; letter-spacing: .18em; text-transform: uppercase; color: var(--pounamu); margin-top: .2rem; }
.nav { position: relative; }
.nav-toggle { display: inline-flex; flex-direction: column; justify-content: center; gap: 5px; width: 44px; height: 44px; background: none; border: 0; cursor: pointer; padding: 10px; }
.nav-toggle span { display: block; height: 2px; background: var(--ink); border-radius: 2px; transition: transform .2s ease, opacity .2s ease; }
.nav-toggle[aria-expanded="true"] span:nth-child(1) { transform: translateY(7px) rotate(45deg); }
.nav-toggle[aria-expanded="true"] span:nth-child(2) { opacity: 0; }
.nav-toggle[aria-expanded="true"] span:nth-child(3) { transform: translateY(-7px) rotate(-45deg); }
.nav-menu { display: none; position: absolute; right: 0; top: calc(100% + .5rem); min-width: 14rem; background: var(--card); border: 1px solid var(--rule); border-radius: 1rem; padding: .5rem; box-shadow: var(--shadow); }
.nav-menu.open { display: block; }
.nav-menu a { display: flex; align-items: center; min-height: 44px; padding: 0 1rem; border-radius: .6rem; text-decoration: none; font-size: .95rem; color: var(--ink-soft); }
.nav-menu a:hover { background: var(--paper-dim); color: var(--ink); }
.nav-menu .nav-cta { color: var(--pounamu); font-weight: 500; }
@media (min-width: 900px) {
  .nav-toggle { display: none; }
  .nav-menu { display: flex; position: static; min-width: 0; background: none; border: 0; padding: 0; box-shadow: none; gap: .1rem; align-items: center; }
  .nav-menu a { min-height: 40px; padding: 0 .75rem; font-size: .92rem; }
  .nav-menu .nav-cta { border: 1px solid var(--pounamu); border-radius: 999px; padding: 0 1.1rem; margin-left: .5rem; }
  .nav-menu .nav-cta:hover { background: var(--pounamu); color: var(--paper); }
}

/* ---------- hero ---------- */
.hero { padding: 3.5rem 0 1rem; }
.hero-grid { display: grid; gap: 2.5rem; align-items: center; }
.hero-actions { display: flex; flex-wrap: wrap; gap: .75rem; margin-top: 2rem; }
.trust-strip { display: flex; flex-wrap: wrap; gap: .5rem .9rem; margin-top: 2rem; padding-top: 1.4rem; border-top: 1px solid var(--rule); font-size: .82rem; color: var(--ink-soft); }
.trust-strip li { display: flex; align-items: center; gap: .55rem; }
.trust-strip li::before { content: ""; width: 6px; height: 6px; border-radius: 50%; background: var(--gold); flex: none; }
@media (min-width: 900px) { .hero { padding: 5rem 0 1.5rem; } .hero-grid { grid-template-columns: 1.15fr .85fr; } }

/* the flip: SaaS → SaS */
.hero-flip { max-width: 24rem; width: 100%; margin: 0 auto; display: grid; gap: .4rem; }
.flip-card { border-radius: var(--radius); padding: 1.3rem 1.4rem; border: 1px solid var(--rule); background: var(--card); }
.flip-card.old { opacity: .85; }
.flip-card.new { border-color: rgb(15 110 90 / .45); background: linear-gradient(180deg, #fffefb, #f2f7f4); box-shadow: var(--shadow); }
.flip-tag { display: block; font-size: .66rem; letter-spacing: .2em; text-transform: uppercase; color: var(--ink-faint); }
.flip-card.new .flip-tag { color: var(--pounamu); }
.flip-word { display: block; font-family: var(--serif); font-size: 2.6rem; line-height: 1; margin-top: .35rem; letter-spacing: -0.02em; }
.flip-card.old .flip-word { text-decoration: line-through; text-decoration-color: rgb(217 162 27 / .8); text-decoration-thickness: 3px; color: var(--ink-soft); }
.flip-card.new .flip-word { color: var(--pounamu-deep); }
.flip-expand { display: block; font-family: var(--serif); font-style: italic; font-size: .95rem; color: var(--ink-soft); margin-top: .15rem; }
.flip-card ul { margin-top: .8rem; padding-top: .8rem; border-top: 1px solid var(--rule); }
.flip-card li { font-size: .86rem; color: var(--ink-soft); padding: .15rem 0 .15rem 1.1rem; position: relative; }
.flip-card li::before { content: ""; position: absolute; left: 0; top: .78rem; width: .5rem; height: 1px; background: var(--ink-faint); }
.flip-card.new li::before { width: 6px; height: 6px; border-radius: 50%; background: var(--pounamu); top: .62rem; }
.flip-arrow { text-align: center; color: var(--gold); font-size: 1.4rem; line-height: 1; }

/* bay divider */
.bay-divider { padding: .5rem 0 0; }
.bay-divider svg { width: 100%; height: 70px; }
.bay-line { stroke-dasharray: 1; stroke-dashoffset: 1; transition: stroke-dashoffset 2.4s ease-in-out .2s; }
.bay-line.drawn { stroke-dashoffset: 0; }

/* ---------- sections ---------- */
.section { padding: 4rem 0; }
.section-dim { background: color-mix(in srgb, var(--paper-dim) 70%, transparent); }
@media (min-width: 900px) { .section { padding: 6rem 0; } }

/* compare */
.compare { display: grid; gap: 1rem; margin-top: 2.5rem; }
.compare-col { background: var(--card); border: 1px solid var(--rule); border-radius: var(--radius); padding: 1.6rem; }
.compare-col.highlight { border-color: rgb(15 110 90 / .45); box-shadow: var(--shadow); }
.compare-col h3 { margin-bottom: 1rem; }
.compare-col dl div { display: grid; grid-template-columns: 6.5rem 1fr; gap: .8rem; padding: .7rem 0; border-top: 1px solid var(--rule); }
.compare-col dt { font-size: .7rem; letter-spacing: .16em; text-transform: uppercase; color: var(--ink-faint); padding-top: .25rem; }
.compare-col dd { font-size: .95rem; color: var(--ink-soft); }
.compare-col.highlight dd { color: var(--ink); }
.compare-col dd em { font-style: italic; color: var(--pounamu); }
@media (min-width: 820px) { .compare { grid-template-columns: 1fr 1fr; } .compare-col { padding: 2rem; } }

/* service cards */
.cards { display: grid; gap: 1rem; margin-top: 2.5rem; }
.card { background: var(--card); border: 1px solid var(--rule); border-radius: var(--radius); padding: 1.5rem; }
.card .num { font-family: var(--serif); font-style: italic; color: var(--gold); font-size: .95rem; }
.card h3 { margin: .5rem 0 .6rem; }
.card p { color: var(--ink-soft); font-size: .95rem; }
@media (min-width: 700px) { .cards { grid-template-columns: 1fr 1fr; } .card { padding: 2rem; } }

/* two ways */
.ways { display: grid; gap: 1rem; margin-top: 2.5rem; }
.way { background: var(--card); border: 1px solid var(--rule); border-radius: 1.6rem; padding: 1.8rem; display: flex; flex-direction: column; }
.way-alt { background: linear-gradient(180deg, #fffefb, #f2f7f4); border-color: rgb(15 110 90 / .35); }
.way-tag { font-size: .7rem; letter-spacing: .18em; text-transform: uppercase; color: var(--pounamu); }
.way h3 { margin: .6rem 0 .5rem; font-size: 1.5rem; }
.way-lead { color: var(--ink); font-family: var(--serif); font-style: italic; font-size: 1.05rem; }
.way .list { margin-top: 1.2rem; flex: 1; }
.way-fit { margin-top: 1.4rem; padding-top: 1rem; border-top: 1px solid var(--rule); font-size: .88rem; color: var(--ink-faint); }
.ways-note { margin: 1.6rem auto 0; max-width: 40rem; text-align: center; font-family: var(--serif); font-style: italic; color: var(--ink-soft); }
@media (min-width: 820px) { .ways { grid-template-columns: 1fr 1fr; } .way { padding: 2.2rem; } }

.list li { position: relative; padding: .35rem 0 .35rem 1.5rem; font-size: .95rem; color: var(--ink-soft); line-height: 1.5; }
.list-check li::before { content: "✓"; position: absolute; left: 0; top: .4rem; color: var(--pounamu); font-size: .85rem; }

/* steps */
.steps { display: grid; gap: 1.2rem; margin-top: 2.5rem; }
.step { background: var(--card); border: 1px solid var(--rule); border-radius: var(--radius); padding: 1.5rem; }
.step-num { display: inline-flex; width: 2.2rem; height: 2.2rem; align-items: center; justify-content: center; border-radius: 50%; background: var(--pounamu); color: var(--paper); font-family: var(--serif); font-style: italic; }
.step h3 { margin: .8rem 0 .5rem; }
.step p { color: var(--ink-soft); font-size: .95rem; }
@media (min-width: 900px) { .steps { grid-template-columns: repeat(4, 1fr); } }

/* bay of ai */
.bay { position: relative; background: var(--pounamu-deep); color: var(--paper); overflow: hidden; }
.bay::before { content: ""; position: absolute; inset: 0; background: radial-gradient(700px 400px at 90% 10%, rgb(217 162 27 / .22), transparent 65%), radial-gradient(600px 400px at 0% 100%, rgb(255 255 255 / .06), transparent 60%); pointer-events: none; }
.bay .wrap { position: relative; }
.bay .eyebrow { color: var(--gold); }
.bay h2 { color: var(--paper); }
.bay-grid { display: grid; gap: 2.5rem; align-items: start; }
.bay .prose { margin-top: 1.4rem; max-width: 38rem; }
.bay .prose p { color: rgb(246 244 238 / .82); font-size: 1rem; }
.bay .prose p + p { margin-top: 1.1rem; }
.bay .prose em { font-style: italic; color: var(--gold); }
.who { background: rgb(255 255 255 / .06); border: 1px solid rgb(255 255 255 / .14); border-radius: var(--radius); padding: 1.6rem; }
.who-title { font-size: .7rem; letter-spacing: .2em; text-transform: uppercase; color: var(--gold); }
.who-list { margin-top: 1rem; display: grid; gap: .4rem; }
.who-list li { font-family: var(--serif); font-size: 1.15rem; padding: .45rem 0; border-top: 1px solid rgb(255 255 255 / .12); }
.who-list li:first-child { border-top: 0; }
.who-note { margin-top: 1.2rem; font-size: .88rem; color: rgb(246 244 238 / .7); }
@media (min-width: 900px) { .bay-grid { grid-template-columns: 1.2fr .8fr; } .who { padding: 2rem; } }

/* people */
.people { display: grid; gap: 1rem; margin-top: 2.5rem; }
.person { display: flex; flex-direction: column; background: var(--card); border: 1px solid var(--rule); border-radius: var(--radius); padding: 1.8rem; text-decoration: none; transition: border-color .15s ease, transform .15s ease, box-shadow .15s ease; }
.person:hover { border-color: var(--pounamu); transform: translateY(-2px); box-shadow: var(--shadow); }
.person-tag { font-size: .7rem; letter-spacing: .18em; text-transform: uppercase; color: var(--ink-faint); }
.person h3 { margin: .6rem 0 .5rem; font-size: 1.5rem; }
.person p { color: var(--ink-soft); font-size: .95rem; flex: 1; }
.person-link { margin-top: 1.2rem; font-size: .88rem; color: var(--pounamu); font-weight: 500; }
@media (min-width: 820px) { .people { grid-template-columns: 1fr 1fr; } }

/* forms */
.capture-form { margin-top: 2.5rem; display: grid; gap: 1rem; }
.field-row { display: grid; gap: 1rem; }
@media (min-width: 620px) { .field-row { grid-template-columns: 1fr 1fr; } }
.field { display: grid; gap: .45rem; }
.field > span { font-size: .85rem; color: var(--ink-soft); }
.field > span em { font-style: italic; color: var(--ink-faint); }
.field .field-lead { font-family: var(--serif); font-size: 1.02rem; color: var(--ink); font-style: italic; }
.field input, .field textarea { width: 100%; min-height: 3rem; border: 1px solid var(--rule); border-radius: .9rem; background: var(--card); padding: .75rem 1rem; font: inherit; font-size: 16px; color: var(--ink); }
.field textarea { resize: vertical; line-height: 1.5; }
.field input::placeholder, .field textarea::placeholder { color: var(--ink-faint); }
.field input:focus, .field textarea:focus { border-color: var(--pounamu); outline: none; }
.field-inline { display: flex; gap: .6rem; flex-wrap: wrap; }
.field-inline input { flex: 1 1 14rem; }
.waitlist { max-width: 32rem; margin-left: auto; margin-right: auto; }
.tier-pick { border: 1px solid var(--rule); border-radius: .9rem; padding: 1rem 1rem .6rem; background: var(--card); }
.tier-pick legend { padding: 0 .4rem; font-size: .85rem; color: var(--ink-soft); }
.tier-pick label { display: flex; align-items: center; gap: .6rem; min-height: 44px; font-size: .95rem; cursor: pointer; }
.tier-pick input { accent-color: var(--pounamu); width: 18px; height: 18px; }
.hp { position: absolute; left: -9999px; width: 1px; height: 1px; opacity: 0; }
.form-status { min-height: 1.4rem; text-align: center; font-size: .92rem; color: #a3471f; }
.form-status.ok { color: var(--pounamu); font-family: var(--serif); font-style: italic; font-size: 1.05rem; }
.privacy { text-align: center; font-size: .82rem; color: var(--ink-faint); }
.privacy a { color: var(--ink-soft); }

/* footer */
.site-footer { border-top: 1px solid var(--rule); padding: 2.5rem 0 3rem; }
.footer-inner { display: grid; gap: .4rem; text-align: center; font-size: .85rem; color: var(--ink-faint); }
.footer-brand { font-family: var(--serif); color: var(--ink-soft); font-size: .98rem; }
.footer-meta a { color: var(--ink-soft); }

/* reveal on scroll */
.reveal { opacity: 0; transform: translateY(12px); transition: opacity .6s ease, transform .6s ease; }
.reveal.is-visible { opacity: 1; transform: none; }

@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  *, *::before, *::after { animation-duration: .01ms !important; transition-duration: .01ms !important; }
  .reveal { opacity: 1; transform: none; }
  .bay-line { stroke-dashoffset: 0 !important; }
}

/* ---------- v0.3 additions: examples, way CTAs, FAQ ---------- */
.examples { display: grid; gap: 1rem; margin-top: 2.5rem; }
.example { background: var(--card); border: 1px solid var(--rule); border-radius: var(--radius); padding: 1.6rem; display: flex; flex-direction: column; }
.example-tag { font-size: .7rem; letter-spacing: .18em; text-transform: uppercase; color: var(--gold); }
.example h3 { margin: .6rem 0 .6rem; font-size: 1.25rem; }
.example p { color: var(--ink-soft); font-size: .95rem; flex: 1; }
.example-replaces { flex: 0 !important; margin-top: 1rem; padding-top: .9rem; border-top: 1px solid var(--rule); font-family: var(--serif); font-style: italic; font-size: .9rem !important; color: var(--pounamu) !important; }
@media (min-width: 900px) { .examples { grid-template-columns: repeat(3, 1fr); } .example { padding: 2rem; } }
.way-cta { margin-top: 1.2rem; align-self: flex-start; }
.faq { margin-top: 2.5rem; }
.faq details { border-top: 1px solid var(--rule); padding: .2rem 0; }
.faq details:last-child { border-bottom: 1px solid var(--rule); }
.faq summary { cursor: pointer; list-style: none; display: flex; justify-content: space-between; align-items: center; gap: 1rem; min-height: 56px; font-family: var(--serif); font-size: 1.1rem; }
.faq summary::-webkit-details-marker { display: none; }
.faq summary::after { content: "+"; font-family: var(--sans); color: var(--pounamu); font-size: 1.4rem; line-height: 1; transition: transform .2s ease; }
.faq details[open] summary::after { transform: rotate(45deg); }
.faq details p { padding: 0 0 1.2rem; color: var(--ink-soft); font-size: .97rem; max-width: 42rem; }
.faq details p em { font-style: italic; color: var(--pounamu); }
