/* guided.team landing — DESIGN.md applied to one static page.
   Tokens are the canonical OKLCH list; never #000/#fff, all neutrals
   tinted toward moss/earth. */

:root {
  --paper: oklch(0.97 0.012 95);
  --paper-deep: oklch(0.94 0.018 100);
  --ink: oklch(0.28 0.02 140);
  --ink-soft: oklch(0.45 0.025 130);
  --moss: oklch(0.42 0.07 145);
  --moss-deep: oklch(0.32 0.06 150);
  --moss-tint: oklch(0.90 0.04 140);
  --amber: oklch(0.75 0.13 70);
  --amber-deep: oklch(0.55 0.12 55);
  --sky: oklch(0.85 0.05 230);
  --twilight: oklch(0.35 0.06 280);

  /* ease-out-quart, the one functional curve (DESIGN.md Motion) */
  --ease: cubic-bezier(0.25, 1, 0.5, 1);
  /* one soft, warm-tinted shadow step — no stacking */
  --shadow: 0 10px 28px oklch(0.4 0.06 90 / 0.14);
}

* { box-sizing: border-box; }

html {
  scroll-behavior: smooth;
}

body {
  margin: 0;
  background: var(--paper);
  color: var(--ink);
  font-family: "Seravek", "Gill Sans Nova", Ubuntu, Calibri, "DejaVu Sans", source-sans-pro, sans-serif;
  line-height: 1.6;
  font-size: 1.0625rem;
}

/* ---- horizon band: the signature strip, recolored by day phase ---- */

.horizon {
  height: 8px;
  background: linear-gradient(90deg, var(--amber), var(--sky));
}
.phase-noon .horizon { background: linear-gradient(90deg, var(--sky), var(--moss-tint)); }
.phase-golden .horizon { background: linear-gradient(90deg, var(--amber), var(--twilight)); }
.phase-twilight .horizon { background: linear-gradient(90deg, var(--twilight), var(--ink)); }

/* ---- layout ---- */

.hero,
main > section,
footer {
  width: min(100% - 2.5rem, 66rem);
  margin-inline: auto;
}

main > section { margin-block: clamp(3.5rem, 8vw, 5.5rem); }

p, li { max-width: 70ch; }

a { color: var(--moss-deep); }

:focus-visible {
  outline: 2px solid var(--amber-deep);
  outline-offset: 2px;
}

/* ---- type ---- */

h1 {
  font-size: clamp(2.1rem, 5.5vw, 3.4rem);
  font-weight: 600;
  line-height: 1.15;
  margin: 0.75rem 0 0;
  letter-spacing: -0.01em;
}

h3 {
  font-size: 1.125rem;
  font-weight: 600;
  margin: 0.9rem 0 0.25rem;
}

/* letterspaced kickers as section wayfinding — clearly above body size,
   so the section names lead instead of whispering */
.kicker {
  font-size: clamp(1.125rem, 1.8vw, 1.3125rem);
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.12em;
  color: var(--ink);
  margin: 0 0 1.5rem;
}

/* ---- hero ---- */

.hero {
  padding-top: clamp(1.25rem, 3vw, 2rem);
  text-align: center;
}

.hero > * { margin-inline: auto; }

.site-nav {
  display: flex;
  align-items: center;
  gap: 1.5rem;
  margin-bottom: clamp(2.5rem, 6vw, 4.5rem);
  text-align: left;
}

.wordmark {
  color: var(--ink);
  font-size: 1.35rem;
  font-weight: 600;
  letter-spacing: -0.02em;
  text-decoration: none;
  /* the wordmark holds the left edge; the doors gather at the right */
  margin-right: auto;
}

.wordmark span { color: var(--amber-deep); }

.nav-link,
.sign-in {
  color: var(--moss-deep);
  font-size: 0.9375rem;
  font-weight: 600;
  text-underline-offset: 0.22em;
  white-space: nowrap;
}

.badge {
  display: inline-block;
  margin: 0;
  padding: 0.3rem 0.9rem;
  border-radius: 999px;
  background: var(--moss-tint);
  color: var(--moss-deep);
  font-size: 0.8125rem;
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 0.1em;
}

.sub {
  color: var(--ink-soft);
  font-size: clamp(1.0625rem, 2vw, 1.1875rem);
  max-width: 58ch;
  margin: 1.1rem auto 1.8rem;
}

.cta-row {
  display: flex;
  flex-wrap: wrap;
  gap: 0.8rem;
  justify-content: center;
  margin: 0;
}

.hero-figure {
  margin: clamp(2rem, 5vw, 3.5rem) 0 0;
}

.hero-shot {
  width: 100%;
  height: auto;
  border: 1px solid var(--moss-tint);
  border-radius: 26px 20px 24px 18px / 20px 26px 18px 24px;
  box-shadow: var(--shadow);
}

.hero-figure figcaption {
  margin-top: 0.7rem;
  color: var(--ink-soft);
  font-size: 0.9375rem;
}

/* ---- prepared tools: one room, several moments, intentionally asymmetric ---- */

.section-intro {
  display: grid;
  grid-template-columns: minmax(10rem, 0.65fr) minmax(18rem, 1.35fr);
  align-items: start;
  gap: 2rem;
  margin-bottom: 2.25rem;
}

.section-intro .kicker { margin-top: 0.3rem; }

.section-intro .lead,
.companion .lead {
  font-size: clamp(1.2rem, 2.5vw, 1.55rem);
  font-weight: 500;
  line-height: 1.42;
  margin: 0;
}

/* The reel: one room at a time, its neighbours peeking in from the sides.
   Scroll-snap carries the whole behaviour — arrows and dots are an
   enhancement the inline script adds. Without JavaScript this stays a
   swipeable, snapping row, which is a complete answer. */

.tool-reel { position: relative; }

.reel-track {
  display: flex;
  gap: clamp(1rem, 2.5vw, 1.75rem);
  overflow-x: auto;
  overscroll-behavior-x: contain;
  scroll-snap-type: x mandatory;
  /* the gutters are the peek: a slide is the scrollport minus both of
     them (flex-basis 100% resolves against this padded content box), so
     the first and last slide land exactly centred */
  padding-inline: clamp(2rem, 11%, 7.5rem);
  /* room for the warm shadow to fall without being clipped */
  padding-block: 0.25rem 0.75rem;
  scrollbar-width: none;
}

.reel-track::-webkit-scrollbar { display: none; }

.tool-slide {
  flex: 0 0 100%;
  margin: 0;
  scroll-snap-align: center;
}

/* a fixed frame, so re-cropped screenshots never shift the rhythm */
.tool-slide img {
  display: block;
  width: 100%;
  aspect-ratio: 3 / 2;
  object-fit: cover;
  object-position: left top;
  border: 1px solid var(--moss-tint);
  box-shadow: var(--shadow);
  border-radius: 24px 18px 22px 17px / 18px 24px 17px 23px;
}

.tool-slide:nth-child(2) img { border-radius: 18px 25px 17px 22px / 24px 18px 23px 19px; }
.tool-slide:nth-child(3) img { border-radius: 22px 17px 25px 19px / 17px 23px 19px 25px; }
.tool-slide:nth-child(4) img { border-radius: 17px 23px 19px 26px / 24px 18px 25px 18px; }
.tool-slide:nth-child(5) img { border-radius: 25px 18px 22px 19px / 19px 26px 18px 23px; }

.tool-slide figcaption {
  margin-top: 0.75rem;
  color: var(--ink-soft);
  font-size: 0.9375rem;
}

.tool-slide strong { color: var(--moss-deep); }

/* parchment pebbles at the reel's edges, moss glyphs inside */
.reel-arrow {
  position: absolute;
  top: 50%;
  transform: translateY(-50%);
  display: grid;
  place-items: center;
  width: 44px;
  height: 44px;
  padding: 0;
  font: inherit;
  font-size: 1.75rem;
  line-height: 1;
  color: var(--moss-deep);
  background: var(--paper);
  border: 1px solid var(--moss-tint);
  border-radius: 999px;
  box-shadow: var(--shadow);
  cursor: pointer;
  transition: background-color 250ms var(--ease), opacity 250ms var(--ease);
}

.reel-arrow[hidden] { display: none; }
.reel-arrow:hover { background: var(--moss-tint); }
.reel-arrow[aria-disabled="true"] { opacity: 0.35; cursor: default; }
.reel-arrow.prev { left: 0.5rem; }
.reel-arrow.next { right: 0.5rem; }

/* dots echo the path's pebble markers: amber for here, moss for the rest */
.reel-dots {
  display: flex;
  justify-content: center;
  gap: 0.2rem;
  margin-top: 1.1rem;
}

.reel-dots button {
  display: grid;
  place-items: center;
  width: 2rem;
  height: 1.75rem;
  padding: 0;
  background: none;
  border: 0;
  cursor: pointer;
}

.reel-dots button::before {
  content: "";
  width: 10px;
  height: 10px;
  background: var(--moss-tint);
  border-radius: 58% 42% 55% 45% / 52% 48% 60% 40%;
  transition: background-color 250ms var(--ease), transform 250ms var(--ease);
}

.reel-dots button[aria-current="true"]::before {
  background: var(--amber);
  transform: scale(1.3);
}

/* ---- buttons ---- */

.button {
  display: inline-block;
  padding: 0.7rem 1.5rem;
  border-radius: 999px;
  font-weight: 600;
  text-decoration: none;
  transition: background-color 250ms var(--ease), color 250ms var(--ease),
    box-shadow 250ms var(--ease);
}

.button.primary {
  background: var(--moss);
  color: var(--paper);
}
.button.primary:hover { background: var(--moss-deep); }

.button.ghost {
  color: var(--moss-deep);
  border: 1px solid var(--moss);
}
.button.ghost:hover { background: var(--moss-tint); }

/* ---- the loop: path stones, circles on a line ---- */

.path {
  list-style: none;
  margin: 0;
  padding: 0;
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 2.5rem;
}

.stone { position: relative; padding-top: 1.6rem; }

.stone p { color: var(--ink-soft); font-size: 0.9375rem; margin: 0; }

/* the line each stone lays toward the next, reaching across the gap */
.stone:not(:last-child)::before {
  content: "";
  position: absolute;
  top: 9px;
  left: 1.6rem;
  right: -2.5rem;
  height: 2px;
  background: var(--moss-tint);
}

.dot {
  position: absolute;
  top: 0;
  left: 0;
  width: 20px;
  height: 20px;
  /* the product's pebble marker, not a perfect circle */
  border-radius: 58% 42% 55% 45% / 52% 48% 60% 40%;
}

.is-past .dot { background: var(--moss); }
.is-current .dot {
  background: var(--moss);
  /* alive: the amber ring, held off the stone by a paper gap */
  box-shadow: 0 0 0 3px var(--paper), 0 0 0 6px var(--amber);
}
.is-future .dot {
  background: var(--paper);
  border: 2px solid var(--moss);
}

/* ---- proof strip ---- */

.cards {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 1.75rem;
}

.card { margin: 0; }

.card img {
  display: block;
  width: 100%;
  height: auto;
  border: 1px solid var(--moss-tint);
  box-shadow: var(--shadow);
  border-radius: 22px 17px 24px 19px / 19px 23px 17px 22px;
}
.card:nth-child(2) img { border-radius: 18px 24px 17px 22px / 23px 18px 24px 19px; }
.card:nth-child(3) img { border-radius: 24px 19px 21px 26px / 18px 24px 20px 23px; }

.card figcaption {
  margin-top: 0.7rem;
  color: var(--ink-soft);
  font-size: 0.9375rem;
}

/* ---- agents, in plain words: the door explained before the doorkeeper ---- */

.agent-figure {
  margin: clamp(1.75rem, 4vw, 2.5rem) 0 0;
}

.agent-figure img {
  display: block;
  width: 100%;
  height: auto;
  border: 1px solid var(--moss-tint);
  box-shadow: var(--shadow);
  border-radius: 20px 26px 18px 23px / 24px 19px 25px 18px;
}

.agent-figure figcaption {
  margin-top: 0.7rem;
  color: var(--ink-soft);
  font-size: 0.9375rem;
}

/* ---- why / Companion / builders ---- */

.why-list,
.builders-list {
  list-style: none;
  margin: 0;
  padding: 0;
  display: grid;
  gap: 0.9rem;
}

.why-list strong { color: var(--moss-deep); }

.companion {
  display: grid;
  grid-template-columns: minmax(12rem, 0.7fr) minmax(18rem, 1.3fr);
  gap: clamp(2rem, 5vw, 4rem);
  align-items: center;
  padding: clamp(1.75rem, 4vw, 3rem);
  background: var(--paper-deep);
  border: 1px solid var(--moss-tint);
  border-radius: 28px 20px 25px 18px / 20px 28px 18px 24px;
}

.companion-mark {
  display: grid;
  justify-items: center;
  gap: 1rem;
  color: var(--ink-soft);
  font-size: 0.8125rem;
  font-weight: 600;
  letter-spacing: 0.08em;
  text-align: center;
  text-transform: uppercase;
}

.companion-ring {
  width: 7.5rem;
  height: 7.5rem;
  border: 2px solid var(--moss);
  border-radius: 56% 44% 53% 47% / 48% 57% 43% 52%;
  box-shadow: inset 0 0 0 12px var(--paper-deep), inset 0 0 0 15px var(--amber);
}

.companion-copy .kicker { margin-bottom: 1rem; }
.companion-copy > p:last-child { color: var(--ink-soft); margin-bottom: 0; }

.agents .lead,
/* the door sign: who this section is for, before the technical lead */
.builders-context {
  color: var(--ink-soft);
  font-size: 0.9375rem;
  margin-top: 0;
}

.builders .lead {
  font-size: clamp(1.125rem, 2vw, 1.3125rem);
  font-weight: 500;
  margin-top: 0;
}

.builders-list li {
  padding-left: 1.4rem;
  position: relative;
}
/* a quiet amber mark instead of the default bullet */
.builders-list li::before {
  content: "";
  position: absolute;
  left: 0;
  top: 0.55em;
  width: 9px;
  height: 9px;
  background: var(--amber);
  border-radius: 58% 42% 55% 45% / 52% 48% 60% 40%;
}

.builders .cta-row { justify-content: flex-start; margin-top: 1.6rem; }

/* ---- trust strip: quiet and factual ---- */

.trust {
  border-block: 1px solid var(--moss-tint);
  padding-block: 1.4rem;
}

.trust ul {
  list-style: none;
  margin: 0;
  padding: 0;
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  column-gap: 0.5ch;
  color: var(--ink-soft);
  font-size: 0.9375rem;
}

.trust li:not(:last-child)::after { content: " ·"; }

/* ---- invite ---- */

.invite { text-align: center; }
.invite p { margin-inline: auto; }
.invite .friends { color: var(--ink-soft); }
.invite .cta-row { margin-top: 1.6rem; }

/* the invite form: parchment fields, moss focus, left-aligned in a
   centered column — a letter, not a checkout */
.access-form {
  max-width: 34rem;
  margin: 2rem auto 0;
  text-align: left;
  display: grid;
  gap: 1.1rem;
}

.field { display: grid; gap: 0.35rem; }

.field label {
  font-size: 0.8125rem;
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 0.1em;
  color: var(--ink-soft);
}

.field .opt {
  text-transform: none;
  letter-spacing: normal;
  font-weight: 400;
}

.field input,
.field textarea,
.field select {
  font: inherit;
  color: var(--ink);
  background: var(--paper-deep);
  border: 1px solid var(--moss-tint);
  border-radius: 12px;
  padding: 0.6rem 0.8rem;
  transition: border-color 250ms var(--ease);
}

.field input:focus-visible,
.field textarea:focus-visible,
.field select:focus-visible {
  border-color: var(--moss);
}

.field textarea { resize: vertical; }

/* the optional questions, folded away: a quiet moss text-button that keeps
   its native disclosure triangle — closed, the form is an email and a tick */
/* the element keeps its default display on purpose: display:grid/flex on a
   <details> makes some engines reveal the closed content */
.form-more > .field { margin-top: 1.1rem; }

.form-more summary {
  width: fit-content;
  padding-block: 0.15rem;
  color: var(--moss-deep);
  font-size: 0.9375rem;
  font-weight: 600;
  cursor: pointer;
}

.form-more summary:hover { color: var(--moss); }
.form-more summary::marker { color: var(--amber-deep); }

.consent {
  font-size: 0.9375rem;
  color: var(--ink-soft);
  margin: 0;
}
.consent input { accent-color: var(--moss); margin-right: 0.4rem; }

.form-note {
  color: var(--amber-deep);
  font-weight: 600;
}

/* the honeypot: off-canvas, never display:none — bots skip hidden fields */
.hp {
  position: absolute;
  left: -9999px;
  top: auto;
  margin: 0;
}

/* margin-inline 0: .invite p's auto margins would shrink-center this grid
   item and drag the button to the middle */
.access-form .cta-row { justify-content: flex-start; margin-inline: 0; margin-top: 0.4rem; }
.access-form .consent { margin-inline: 0; }
.access-form button { border: 0; cursor: pointer; font: inherit; }

/* ---- subpages (thanks, privacy): one narrow column ---- */

.page {
  width: min(100% - 2.5rem, 44rem);
  margin-inline: auto;
  padding-block: clamp(2.5rem, 7vw, 4.5rem) 3rem;
}

.page h1 { font-size: clamp(1.7rem, 4vw, 2.4rem); }
.page h2 {
  font-size: 1.1875rem;
  font-weight: 600;
  margin: 2rem 0 0.5rem;
}
.page .back { display: inline-block; margin-top: 2rem; }
.page address { font-style: normal; }
.legal-address {
  margin-top: 1.5rem;
  padding-left: 1rem;
  border-left: 3px solid var(--amber);
}

/* ---- close + footer ---- */

.close { text-align: center; }

.close-line {
  font-size: clamp(1.375rem, 3vw, 1.75rem);
  font-weight: 500;
  color: var(--moss-deep);
  margin: 0 auto;
}

footer {
  text-align: center;
  padding-block: 1rem 3rem;
  color: var(--ink-soft);
  font-size: 0.9375rem;
}

footer p { margin: 0.35rem auto; }

.seal {
  font-style: italic;
  color: var(--amber-deep);
}

footer a { color: var(--moss-deep); }

/* ---- small screens ---- */

@media (max-width: 720px) {
  .cards { grid-template-columns: 1fr; }

  .section-intro,
  .companion { grid-template-columns: 1fr; }

  .section-intro { gap: 0; }

  /* the thumb is the affordance here: wider slides, no arrows, dots stay.
     The reel reclaims the page gutter (never more, so no stray horizontal
     scroll) to keep a real sliver of the next slide in view. */
  .tool-reel { margin-inline: -1.25rem; }
  .reel-track {
    gap: 0.75rem;
    padding-inline: calc((100% - 85vw) / 2);
  }
  .reel-arrow { display: none; }

  .companion-mark { grid-template-columns: auto 1fr; text-align: left; }
  .companion-ring { width: 4.5rem; height: 4.5rem; }

  /* the wide admission card would shrink to an illegible strip; crop from
     the left instead, keeping the heading and first scope lines readable */
  .agent-figure img {
    height: 200px;
    object-fit: cover;
    object-position: left center;
  }

  /* the path turns vertical: dots down the left, line falling between them */
  .path { grid-template-columns: 1fr; gap: 2rem; }
  .stone { padding-top: 0; padding-left: 2.2rem; }
  .stone h3 { margin-top: 0; }
  .dot { top: 0.3rem; }
  .stone:not(:last-child)::before {
    top: calc(0.3rem + 1.6rem);
    bottom: -2rem;
    left: 9px;
    right: auto;
    width: 2px;
    height: auto;
  }
}

/* the narrowest screens keep the nav calm: the builders' door is a section
   away, the sign-in is the one thing a returning visitor needs up here */
@media (max-width: 480px) {
  .site-nav .nav-link { display: none; }
}

/* ---- motion restraint ---- */

@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  /* the reel jumps between slides instead of gliding; the script also
     passes behavior 'auto' when this preference is set */
  .reel-track { scroll-behavior: auto; }
  * { transition: none !important; }
}
