/* AuGo — Figma Desktop - 5 (54:55), footer (54:92), mobile (66:56).
   Shared visual styles; form behavior lives independently in app.js. */

@font-face {
  font-family: 'Bensons Ginto Nord';
  src: url('assets/fonts/BensonsGintoNord-Bold.woff2') format('woff2'),
       url('assets/fonts/BensonsGintoNord-Bold.woff') format('woff');
  font-weight: 700;
  font-style: normal;
  font-display: swap;
}

:root {
  --bg:            #000000;
  --ink:           #161616;  /* text on light surfaces */
  --text:          #ffffff;
  --text-soft:     #f5f5f5;
  --text-muted:    #a9aaaa;
  --ink-soft:      #6b6660;  /* body copy inside the form card */
  --accent:        #ffe6c3;
  --accent-ink:    #7a6a58;  /* eyebrow inside the white form card */
  --hairline:      rgba(255,255,255,.15);
  --err:           #b03a1f;
  --hero-veil:     linear-gradient(180deg, rgba(115,101,89,.88) 0%, rgba(21,10,3,.88) 100%);
  --font:          'DM Sans', -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, Helvetica, Arial, sans-serif;
  /* Display face for the hero headline (Figma node 54:58), self-hosted via the
     @font-face above. DM Sans is the fallback if the woff2/woff fail to load. */
  --font-display:  'Bensons Ginto Nord', 'DM Sans', Helvetica, Arial, sans-serif;

  /* Content cap, not page cap. The design column is 1280 — that is the number to
     hold. Past that the gutters grow and the layout stays as designed, while
     backgrounds and hairlines stay full-bleed. */
  --content:       1280px;
  --gutter:        24px;
}

*, *::before, *::after { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; }
/* Stop horizontal page panning, including elastic overscroll on touch devices.
   Clip avoids introducing a second scrolling container in supporting browsers. */
html, body { max-width: 100%; overflow-x: hidden; overscroll-behavior-x: none; }
@supports (overflow: clip) { html, body { overflow-x: clip; } }
body {
  margin: 0; background: var(--bg); color: var(--text);
  font-family: var(--font); font-variation-settings: 'opsz' 14;
  -webkit-font-smoothing: antialiased;
}
img, svg { display: block; max-width: 100%; }
a { color: var(--accent); }
a:hover { color: var(--text); }
:focus-visible { outline: 2px solid var(--accent); outline-offset: 2px; }
[hidden] { display: none !important; }
.sr-only {
  position: absolute; width: 1px; height: 1px; padding: 0; margin: -1px;
  overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; border: 0;
}

/* Centres content once the viewport outgrows the cap, with no wrapper div — so a
   market/motive copy of index.html needs no structural change. */
.band { padding-inline: max(var(--gutter), (100% - var(--content)) / 2); }

/* One continuous surface behind the hero and benefits, as in Figma. */
.landing-surface {
  background: radial-gradient(ellipse 64% 81% at 62% 39%,
    #7a381b 0%, #5c2812 19%, #3d180a 38%, #270f06 55%, #110603 72%, #000 100%);
}

/* A plain div everywhere except privacy.html, where the header/footer marks
   double as a link home — colour/underline reset so it doesn't pick up the
   global link style. */
.logo { display: flex; align-items: center; gap: 6px; flex: 0 0 auto; color: inherit; text-decoration: none; }
.logo__mark { width: 26px; height: 26px; flex: 0 0 auto; }
.logo__word { height: 20px; width: auto; }

/* Mobile reference: 130px header, then headline / phone / copy / CTA with
   32px gaps. Natural height keeps browser chrome from changing the layout. */
.hero {
  position: relative; overflow: clip;
  display: flex; flex-direction: column; align-items: center;
  padding-block: 64px;
}
.hero > .logo { margin-bottom: 40px; }
.hero__composition { position: relative; width: 100%; max-width: 560px; }
.h1 {
  position: relative; z-index: 2;
  margin: 0 auto; max-width: 275px;
  font-family: var(--font-display); font-size: 28px; font-weight: 700;
  line-height: 1.3; letter-spacing: normal; text-align: center; text-wrap: balance;
}
.hero__stage {
  display: flex; flex-direction: column; align-items: center;
  gap: 32px; margin-block: 32px;
}
.hero__phone { width: 100%; aspect-ratio: 345 / 431; position: relative; }
.hero__phone img {
  position: absolute; inset: 0; width: 100%; height: 100%; object-fit: contain;
}
.hero__sub {
  margin: 0; font-size: 14px; line-height: 1.3;
  color: var(--text-soft); text-align: center; text-wrap: pretty;
}
.hero__phone--tilted { display: none; }
.hero__cta {
  width: 492px; max-width: 100%; flex: 0 0 auto;
  display: flex; flex-direction: column; gap: 9px; align-items: stretch;
}
.hero__cta-pill {
  display: flex; align-items: center; justify-content: space-between; gap: 16px;
  background: rgba(211,206,202,.95); border: 1px solid rgba(255,255,255,.2);
  border-radius: 16px; padding: 16px 20px;
  box-shadow: 0 2px 10px rgba(217,160,91,.12), 0 10px 28px rgba(0,0,0,.15);
}
.hero__cta-copy { display: flex; flex-direction: column; gap: 4px; flex: 1 1 auto; min-width: 0; }
.hero__cta-pill .eyebrow {
  margin: 0; font-size: 14px; font-weight: 700; color: #2e2e2e;
  text-transform: none; letter-spacing: normal; text-align: left;
}
.hero__cta-note { margin: 0; font-size: 12px; font-weight: 500; color: #2e2e2e; opacity: .75; }
.btn.btn--reveal {
  width: auto; flex: 0 0 auto; height: 44px; padding-inline: 18px;
  display: inline-flex; align-items: center; justify-content: center;
  background: #fff; border: 1px solid #d9a05b; border-radius: 12px;
  box-shadow: 0 6px 8px rgba(0,0,0,.1);
  font-size: 14px; font-weight: 700; color: #2e2e2e; white-space: nowrap;
}
.btn__label--short { display: inline-flex; align-items: center; gap: 8px; white-space: nowrap; }
.btn__arrow { display: block; flex: none; width: 18px; height: 18px; }
.btn__label--full { display: none; }

@media (max-width: 639px) {
  /* First-view CTA takes priority over the original fixed-height Figma hero.
     Keep text at its readable size; the phone uses the remaining height. */
  .hero {
    display: grid; grid-template-columns: minmax(0, 1fr);
    justify-items: center; align-content: start; gap: 16px;
    padding-top: 24px; padding-bottom: 32px;
  }
  .hero > .logo { grid-row: 1; margin: 0; }
  .hero__composition, .hero__stage { display: contents; }
  .hero .h1 { grid-row: 2; width: 100%; }
  .hero__phone {
    grid-row: 3; max-width: 345px; aspect-ratio: auto;
    height: clamp(120px, calc(100vh - 330px), 431px);
    height: clamp(120px, calc(100svh - 330px), 431px);
  }
  .hero__cta { grid-row: 4; min-width: 0; }
  .hero__sub { grid-row: 5; min-width: 0; max-width: 345px; }
  /* 16px prevents iOS from zooming the viewport on focus. Pinch zoom stays enabled. */
  .hero .field { font-size: 16px; }
  .logo__word { width: 53px; height: auto; }
  .hero__cta-pill {
    padding: 0; min-height: 56px; border: 0;
    background: rgba(250,250,250,.95); border-radius: 14px;
    box-shadow: 0 4px 16px rgba(217,160,91,.2);
  }
  .hero__cta-copy { display: none; }
  .hero__cta-pill:has(#reveal[hidden]) { display: none; }
  .btn.btn--reveal {
    width: 100%; min-height: 56px; height: auto; padding-block: 16px;
    background: transparent; border: 0; border-radius: 14px; box-shadow: none;
    color: var(--ink); font-size: 13px; font-weight: 700;
    text-transform: uppercase; white-space: normal;
  }
  .btn.btn--reveal:hover { background: rgba(0,0,0,.04); }
  .btn__label--short { display: none; }
  .btn__label--full { display: inline; }
}

/* Extra headline wrapping on the narrowest phones needs more vertical room. */
@media (max-width: 359px) {
  .hero__phone {
    height: clamp(120px, calc(100vh - 390px), 431px);
    height: clamp(120px, calc(100svh - 390px), 431px);
  }
}

@media (min-width: 640px) and (max-width: 1279px) {
  .h1 { max-width: 520px; font-size: clamp(36px, 5vw, 52px); }
  .hero__sub { max-width: 42ch; font-size: 15px; line-height: 1.44; }
  .hero__phone { max-width: 400px; }
}

/* Scale the entire desktop composition with available height as well as
   width. At 1440 × 900 the complete CTA fits without hiding or fixing it.
   The width floor lets very short windows scroll instead of crushing text. */
@media (min-width: 1280px) {
  .hero { min-height: 900px; min-height: min(900px, 100svh); padding-block: 32px; }
  .hero > .logo { align-self: flex-start; margin: 0 0 40px 10%; }
  .hero__composition {
    width: min(100%, max(900px, calc((100svh - 200px) * 1440 / 806)));
    max-width: 1280px; aspect-ratio: 1440 / 806; container-type: inline-size;
  }
  .h1 {
    position: absolute; top: 0; left: 11.74%; width: 76.8%; max-width: none;
    font-size: 4.8611cqw; line-height: 1; margin: 0;
  }
  .hero__stage { display: block; margin: 0; }
  .hero__phone { display: none; }
  .hero__sub {
    position: absolute; z-index: 2; left: 16.53%; top: 37.23%;
    width: 19.1%; max-width: none; font-size: 15px; line-height: 1.44; text-align: left;
  }
  .hero__phone--tilted {
    display: block; position: absolute; z-index: 1;
    left: 30.14%; top: 13.26%; width: 38.82%; pointer-events: none;
  }
  .hero__phone--tilted img { width: 100%; height: auto; }
  .hero__cta { margin-top: -44px; position: relative; z-index: 3; }
}

/* ---------- signup ----------
   Two-step: "Join now" reveals the field, then submits. The design shows only
   the eyebrow and the button, so the field is introduced on reveal. */
.eyebrow {
  margin: 0; font-size: 13px; font-weight: 600;
  text-transform: uppercase; letter-spacing: .04em; color: var(--accent);
}
#signup-form { display: flex; flex-direction: column; gap: 10px; }
.field {
  height: 52px; padding: 0 16px; width: 100%;
  background: rgba(255,255,255,.06); color: var(--text);
  border: 1px solid var(--hairline); border-radius: 14px;
  font-family: inherit; font-size: 15px;
}
.field::placeholder { color: var(--text-muted); }
.field:user-invalid { border-color: #e0704f; }
.btn {
  height: 52px; width: 100%; padding: 0 20px;
  background: #fff; color: #000; border: 0; border-radius: 14px;
  box-shadow: 0 4px 8px rgba(217,160,91,.2);
  font-family: inherit; font-size: 15px; font-weight: 500;
  cursor: pointer; transition: background .15s ease;
}
.btn:hover { background: #f0f0f0; }
.btn[disabled] { opacity: .55; cursor: default; }

.consent {
  display: flex; gap: 9px; align-items: flex-start;
  font-size: 11px; line-height: 1.45; color: var(--text-muted); text-align: left;
}
.consent input { margin: 1px 0 0; accent-color: var(--accent); flex: 0 0 auto; }
.consent a { text-decoration: underline; }

.formstate { font-size: 14px; line-height: 1.5; text-align: center; }
.formstate__title { margin: 0 0 6px; font-size: 18px; font-weight: 600; color: var(--text); }
.formstate p { margin: 0; color: var(--text-muted); }
#form-error { margin: 0; font-size: 13px; line-height: 1.45; color: #ffb4a0; text-align: left; }
.platform { display: flex; gap: 10px; margin-top: 12px; }
.platform .btn { height: 44px; flex: 1 1 0; font-size: 14px; }
.platform__q { margin: 12px 0 0; font-size: 13px; color: var(--text-muted); }

/* Benefits: transparent cards, inset copy, and a smaller section heading. */
.expect {
  --content: 1096px;
  padding-block: 16px 80px;
  display: flex; flex-direction: column;
}
.expect__head { display: flex; justify-content: center; width: 100%; }
.expect__title {
  margin: 0; max-width: 345px; font-size: 24px; line-height: 1.5;
  font-weight: 600; letter-spacing: -.02em; text-align: center; text-wrap: wrap;
}
.cards {
  display: grid; grid-template-columns: minmax(0, 1fr);
  list-style: none; margin: 0; padding: 0; width: 100%;
}
.card { display: flex; flex-direction: column; gap: 20px; padding: 32px; }
.card__icon {
  width: 64px; height: 64px; display: flex; align-items: center;
  justify-content: flex-start; flex: 0 0 auto;
}
.card__icon img { width: 32px; height: 32px; }
.card__text { display: flex; flex-direction: column; gap: 12px; }
.card__title { margin: 0; font-size: 18px; line-height: 1.33; font-weight: 500; letter-spacing: -.02em; }
.card__desc { margin: 0; font-size: 14px; line-height: 1.57; color: var(--text-muted); }
.expect__cta { display: none; }

/* Footer alignment is independent of the hero's logo placement. */
.footer {
  --content: 1134px;
  background: #100703; min-height: 325px; padding-block: 64px 40px;
  display: flex; flex-direction: column; gap: 32px;
}
.footer__tagline {
  margin: 24px 0 0; max-width: 420px;
  font-size: 12px; line-height: 1.5; color: var(--text-muted);
}
.footer__bottom {
  display: flex; flex-direction: column; align-items: center; gap: 16px;
  font-size: 12px; line-height: 1.5; color: var(--text-muted);
  border-top: 1px solid var(--hairline); padding-top: 32px;
}

@media (min-width: 640px) {
  .expect { padding-block: 88px 73px; gap: 22px; }
  .expect__title { max-width: none; font-size: 36px; line-height: 1.44; }
  .cards { grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 24px; }
  .card { padding: 40px; gap: 24px; }
  .card__icon { width: 64px; height: 64px; }
  .card__icon img { width: 32px; height: 32px; }
  .card__title { font-size: 20px; }
  .card__desc { font-size: 15px; line-height: 1.6; }
  .expect__cta { display: flex; justify-content: center; margin-top: 20px; }
  .expect__cta .btn { width: 227px; max-width: 100%; }
  .footer { min-height: 358px; padding-block: 80px 40px; gap: 43px; }
  .footer__tagline { font-size: 14px; }
  .footer__bottom { flex-direction: row; justify-content: space-between; padding-top: 43px; font-size: 13px; }
}
@media (min-width: 640px) and (max-width: 1023px) {
  .card { padding: 24px 12px; }
}
@media (min-width: 900px) { :root { --gutter: 80px; } }
@media (min-width: 1280px) {
  /* Preserve the reference's deliberate asymmetric section insets. */
  .expect {
    padding-left: max(var(--gutter), (100% - 1440px) / 2 + 182px);
    padding-right: max(var(--gutter), (100% - 1440px) / 2 + 162px);
  }
  .footer {
    padding-left: max(var(--gutter), (100% - 1440px) / 2 + 160px);
    padding-right: max(var(--gutter), (100% - 1440px) / 2 + 146px);
  }
}

/* A quiet entrance and one slow phone drift. Motion ends after the entrance;
   the CTA remains immediately usable. Reduced-motion and mobile stay still. */
@media (min-width: 1280px) and (prefers-reduced-motion: no-preference) {
  .hero > .logo, .hero .h1, .hero__sub { animation: hero-enter .8s ease-out both; }
  .hero .h1 { animation-delay: .08s; }
  .hero__sub { animation-delay: .16s; }
  .hero__phone--tilted img { animation: phone-settle 3.6s cubic-bezier(.2,.7,.3,1) both; }
  .btn { transition: background .2s ease, box-shadow .2s ease; }
  .btn:hover { box-shadow: 0 6px 18px rgba(217,160,91,.28); }
}
@keyframes hero-enter {
  from { opacity: 0; transform: translateY(8px); }
  to { opacity: 1; transform: translateY(0); }
}
@keyframes phone-settle {
  from { opacity: 0; transform: translateY(14px) rotate(1deg); }
  30% { opacity: 1; }
  to { opacity: 1; transform: translateY(0) rotate(0); }
}
@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after { animation: none !important; transition: none !important; scroll-behavior: auto !important; }
}

/* ---------- privacy.html ---------- */
.legal-header { padding-block: 28px; background: var(--bg); }
.legal {
  padding-block: clamp(24px, 5vw, 56px) clamp(56px, 8vw, 96px);
  max-width: 760px; margin-inline: auto;
  color: var(--text-muted); line-height: 1.6;
}
.legal__title { margin: 0 0 8px; font-size: clamp(32px, 5vw, 44px); font-weight: 600; letter-spacing: -.02em; color: var(--text); }
.legal__updated { margin: 0 0 40px; font-size: 14px; color: var(--text-muted); }
.legal h2 { margin: 40px 0 12px; font-size: 20px; font-weight: 600; color: var(--text); }
.legal p, .legal ul { margin: 0 0 16px; }
.legal ul { padding-left: 20px; }
.legal li { margin-bottom: 8px; }
.legal a { text-decoration: underline; }
