/* Geoffrey marketing site.
 *
 * The pages are GENERATED from the Claude Design source by
 * scripts/build-site.mjs, and the design authors its layout as inline styles
 * on every element. So this file deliberately does NOT restate that layout —
 * it carries only what the design cannot express as an inline style:
 *
 *   - the shell the generator authors itself (header, nav, install sheet)
 *   - the design system's Button, whose hover/press states were JS in the
 *     mockup and are :hover/:active here
 *   - responsive behaviour the mockup computed in JS (`width < 720` from a
 *     resize listener, which cannot run before first paint and so flashes the
 *     desktop nav on a phone) — a media query instead
 *   - progressive enhancement the prototype had no need for: focus rings, a
 *     skip link, reduced motion, and the no-JS fallbacks
 *   - the 404 page, which has no counterpart in the design
 *
 * If you find yourself adding layout for a section of a page here, that is a
 * sign the change belongs in the design instead.
 */

*, *::before, *::after { box-sizing: border-box; }
body { overflow-x: hidden; }
a { text-decoration: none; }
a:hover { color: var(--green-600); }
img { max-width: 100%; }

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

.skip-link {
  position: absolute; left: -9999px; top: 0; z-index: 100;
  background: var(--surface-card); color: var(--text-heading);
  padding: 12px 18px; border-radius: 0 0 var(--radius-md) 0;
  font-weight: 600; box-shadow: var(--shadow-card);
}
.skip-link:focus { left: 0; }

/* ── Button — ported from the design system's Button.jsx ────────────────── */
.btn {
  display: inline-flex; align-items: center; justify-content: center; gap: 8px;
  font-family: var(--font-sans); font-weight: 600; letter-spacing: 0;
  border-radius: var(--radius-md); cursor: pointer;
  transition: background var(--duration-fast) var(--ease-out);
  height: 40px; padding: 0 16px; font-size: 15px;
  background: var(--action-primary); color: var(--text-on-brand);
  border: 1px solid transparent;
}
.btn:hover  { background: var(--action-primary-hover); color: var(--text-on-brand); }
.btn:active { background: var(--action-primary-press); }
.btn--sm { height: 32px; padding: 0 12px; font-size: 13px; }
.btn--lg { height: 48px; padding: 0 22px; font-size: 15px; }
.btn--secondary { background: var(--surface-card); color: var(--text-heading); border-color: var(--action-secondary-border); }
.btn--secondary:hover  { background: var(--surface-sunken); color: var(--text-heading); }
.btn--secondary:active { background: var(--cream-200); }
.btn--ghost { background: transparent; color: var(--text-link); }
.btn--ghost:hover  { background: var(--green-50); color: var(--text-link); }
.btn--ghost:active { background: var(--green-100); }
.btn--block { width: 100%; }
.btn-row { display: flex; gap: 12px; align-items: center; flex-wrap: wrap; }
.btn-row--center { justify-content: center; }

/* ── Header ─────────────────────────────────────────────────────────────── */
.site-header {
  position: sticky; top: 0; z-index: 20;
  background: rgba(250, 247, 240, 0.94);
  border-bottom: 1px solid var(--border-subtle);
}
@supports (backdrop-filter: blur(8px)) { .site-header { backdrop-filter: blur(8px); } }
.site-header__bar {
  max-width: var(--container-max); margin: 0 auto;
  padding: 16px clamp(20px, 5vw, 32px);
  display: flex; align-items: center; justify-content: space-between; gap: 24px;
}
.brand {
  font-family: var(--font-serif-display); font-size: 24px; font-weight: 500;
  color: var(--green-900); letter-spacing: -0.01em;
}
.brand:hover { color: var(--green-900); }
.nav { display: flex; align-items: center; gap: 28px; font-size: 14px; font-weight: 500; }
/* :not(.btn) matters: `.nav a` (0,1,1) outranks `.btn` (0,1,0), so without it
   the header's primary button inherits body ink and renders dark-on-dark. */
.nav > a:not(.btn) { color: var(--text-body); }
.nav__item { display: flex; flex-direction: column; align-items: center; gap: 4px; }
/* Painted always, transparent unless current, so the link never shifts by 6px
   between pages. */
.nav__item::after { content: ""; height: 2px; width: 100%; background: transparent; }
.nav__item[aria-current="page"]::after { background: var(--brass-500); }
.nav__login { color: var(--text-muted); }
.nav-toggle {
  display: none; align-items: center; justify-content: center;
  width: 44px; height: 44px; border-radius: 10px;
  border: 1px solid var(--border-strong); background: var(--surface-card);
  color: var(--text-heading); cursor: pointer;
}
.nav-mobile {
  border-top: 1px solid var(--border-subtle); background: var(--surface-page);
  padding: 8px clamp(20px, 5vw, 32px) 20px;
  flex-direction: column; gap: 4px; font-size: 16px; font-weight: 500;
}
.nav-mobile a:not(.btn) {
  color: var(--text-heading); padding: 12px 0;
  border-bottom: 1px solid var(--border-subtle);
}
.nav-mobile .nav__login { color: var(--text-muted); border-bottom: 0; padding: 12px 0 16px; }

@media (max-width: 719px) {
  .nav { display: none; }
  .nav-toggle { display: inline-flex; }
}
@media (min-width: 720px) {
  /* Never leave the mobile sheet open behind the desktop nav after a resize. */
  .nav-mobile { display: none !important; }
}

/* ── Install sheet ──────────────────────────────────────────────────────── */
/* The design draws its own fixed overlay and scrim inside this block; as a
   <dialog> the browser supplies the top layer and ::backdrop, so this element
   only has to get out of the way and be hidden while closed. */
.sheet {
  position: fixed; inset: 0; z-index: 40; border: 0; padding: 0;
  max-width: none; max-height: none; width: 100%; height: 100%;
  background: transparent; overflow: hidden;
  /* A closed <dialog> is hidden by `display: none` in the UA stylesheet, so an
     unconditional `display` here renders the sheet open on every page load. */
  display: none;
}
.sheet[open] { display: block; }
/* No-JS fallback: `[open]` is only ever set by showModal(), so without this the
   install steps are unreachable with JS off. :target makes the trigger's
   href="#get-app" do the work on its own. */
.sheet:target { display: block; background: var(--scrim); }
.sheet::backdrop { background: var(--scrim); }

/* ── In-page anchors ────────────────────────────────────────────────────── */
/* The mockup scrolled to #gw-week in JS, subtracting 72px for the sticky
   header. CSS expresses both halves natively, so the "See how a week works"
   link works with no script at all — and the offset applies to every anchor,
   including one arrived at from another page or pasted into the address bar.
   The reduced-motion block below resets scroll-behavior. */
html { scroll-behavior: smooth; }
[id] { scroll-margin-top: 84px; }

/* ── Alternating media/text columns ─────────────────────────────────────── */
/* The design alternates which side a mockup sits on, computing `order` from the
   same JS breakpoint as the nav. Expressed here instead, so the text always
   leads on a phone with no chance of the mockup rendering above its own heading
   before the script runs. */
.alt-media { order: 0; }
.alt-text  { order: 1; }
@media (max-width: 719px) {
  .alt-media { order: 1; }
  .alt-text  { order: 0; }
}

/* ── "What you get back": the one layout override ───────────────────────── */
/* Everything else on the page takes its layout from the design's inline
   styles. This block does not, on the operator's explicit instruction: the
   design ships `auto-fit, minmax(300px, 1fr)` for the four audience blocks,
   which gives three columns at the 1120px container and orphans the fourth —
   the defect the v2 review's "use a 2 x 2 grid" instruction was written to
   remove. build-site.mjs strips the inline declaration and throws if the
   design changes, so this rule cannot quietly outlive its reason. */
.audience-grid { grid-template-columns: repeat(2, 1fr); }
@media (max-width: 719px) {
  .audience-grid { grid-template-columns: 1fr; }
}

/* ── Accordions (the design uses <details>) ─────────────────────────────── */
details > summary { list-style: none; }
details > summary::-webkit-details-marker { display: none; }
.gw-chev { transition: transform var(--duration-base) var(--ease-out); }
details[open] .gw-chev { transform: rotate(180deg); }

/* ── Currency toggle ────────────────────────────────────────────────────── */
/* The mockup held the selected currency in component state and inlined the
   colours. Here the button is a real toggle: aria-pressed carries the state
   for assistive tech AND drives the styling, so the two cannot disagree. */
.cur-btn { background: transparent; color: var(--text-body); }
.cur-btn[aria-pressed="true"] { background: var(--green-800); color: var(--cream-50); }

/* ── Footer ─────────────────────────────────────────────────────────────── */
/* The design's footer colours live on the wrapper element, whose inner HTML is
   what the generator extracts — so they are reapplied here. */
.site-footer { background: var(--surface-brand); color: var(--text-on-brand-muted); }
.site-footer a { color: var(--cream-50); }
.site-footer a:hover { color: var(--brass-300); }

/* ── 404 page (no counterpart in the design) ────────────────────────────── */
.wrap {
  max-width: var(--container-max); margin: 0 auto;
  padding-left: clamp(20px, 5vw, 32px); padding-right: clamp(20px, 5vw, 32px);
}
.center { text-align: center; }
.sec--last { padding-top: 88px; padding-bottom: 96px; }
.section-head { margin-bottom: 28px; }
.section-head--center h2 { margin-left: auto; margin-right: auto; max-width: 20ch; }
.section-head--center .lede { margin-left: auto; margin-right: auto; max-width: 46ch; }
.section-title {
  font-size: clamp(30px, 5vw, 38px); font-weight: 500;
  line-height: 1.15; letter-spacing: -0.01em; margin: 0 0 14px;
}
.lede { font-size: 17px; line-height: 1.6; color: var(--text-muted); margin: 0; }
.eyebrow {
  display: block; margin-bottom: 18px; font-size: 12px; text-transform: uppercase;
  letter-spacing: var(--tracking-caps); color: var(--brass-600);
}

@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after {
    animation-duration: 0.01ms !important;
    animation-iteration-count: 1 !important;
    transition-duration: 0.01ms !important;
    scroll-behavior: auto !important;
  }
}
