/* ============================================================
   AGUANTE — marketing site, aguante.app
   The app lives at app.aguante.app; this is the front door.

   Tokens are lifted verbatim from app/css/app.css so the two
   read as one product. The one deliberate difference: --heat is
   STATIC here. In the app it is set from JS off the measured
   metabolic curve and encodes how deep the fast is; there is no
   fast in progress on a marketing page, so animating it would be
   decoration pretending to be state — which is the exact thing
   this product exists to argue against.

   No build step, no external font, no CDN, no third-party script.
   Same constraints as the app.
   ============================================================ */
:root{
  color-scheme:dark light;
  --bg:#08090B; --panel:#101317; --panel-2:#161A20; --panel-3:#1C222A;
  --line:#232931; --line-2:#2E3640;
  --txt:#F2F5F8; --txt-2:#A2AEBA; --txt-3:#818B97;
  --heat:#728DA7; --heat-ink:#728DA7; --fill:var(--heat);
  --ink:#07080A;
  --good:#3FCF8E; --warn:#FFB020; --bad:#FF4D5E;
  --glow:rgba(114,141,167,.30);
  --shadow:rgba(0,0,0,.8);
  --sans:-apple-system,BlinkMacSystemFont,"SF Pro Display","Segoe UI","Helvetica Neue",Arial,sans-serif;
  --mono:ui-monospace,"SF Mono",SFMono-Regular,Menlo,Consolas,monospace;
  --r-pill:999px; --r-card:18px; --r-row:15px;
  --dim:.78;
  --maxw:920px;
  /* The ramp, cold hour 0 -> molten 72h, as the app solves it. Used as a FILL
     (the rule under the hero) and as TEXT (the wordmark) — and those are not
     the same problem, which app.css learned the hard way:

       "--heat is the one token that cannot simply be re-picked, because it is
        both a fill and a label."

     As a fill on any ground it is fine. As TEXT on the light theme it is not:
     measured against #F5F2ED the stops run 3.09 / 1.62 / 1.27 / 2.57 / 2.78 —
     the sand and pale stops are effectively invisible. So --ramp-ink is the
     same ramp with every stop bisected toward black until it clears 4.6:1 on
     the light ground, and the INTERPOLATED midpoints were checked too (4.60,
     4.65, 4.70, 4.62) because that is the gap hand-picking leaves open. */
  --ramp:linear-gradient(90deg,#728DA7 0%,#8FC8EA 22%,#ECD6AC 48%,#E97B20 74%,#FF5B12 100%);
  --ramp-ink:var(--ramp);
}
:root[data-theme="light"]{
  color-scheme:light;
  --bg:#F5F2ED; --panel:#FFFFFF; --panel-2:#FBF8F3; --panel-3:#EFEAE2;
  --line:#E4DED4; --line-2:#CFC7BA;
  --txt:#14171C; --txt-2:#4C545F; --txt-3:#636B77;
  --heat:#728DA7; --heat-ink:#3E4D5C; --fill:var(--heat-ink);
  --ink:#FFFFFF;
  --ramp-ink:linear-gradient(90deg,#5A7085 0%,#517285 22%,#776C57 48%,#A85917 74%,#C0450E 100%);
  /* rebuilt for light ground — the dark values are tuned to glow on near-black
     and measure under 2:1 on white */
  --good:#0F7A46; --warn:#8A5A00; --bad:#B3242F;
  --glow:rgba(114,141,167,.16);
  --shadow:rgba(90,80,66,.16);
}
@media (prefers-color-scheme: light){
  :root:not([data-theme="dark"]){
    color-scheme:light;
    --bg:#F5F2ED; --panel:#FFFFFF; --panel-2:#FBF8F3; --panel-3:#EFEAE2;
    --line:#E4DED4; --line-2:#CFC7BA;
    --txt:#14171C; --txt-2:#4C545F; --txt-3:#636B77;
    --heat-ink:#3E4D5C; --fill:var(--heat-ink); --ink:#FFFFFF;
    --ramp-ink:linear-gradient(90deg,#5A7085 0%,#517285 22%,#776C57 48%,#A85917 74%,#C0450E 100%);
    --good:#0F7A46; --warn:#8A5A00; --bad:#B3242F;
    --glow:rgba(114,141,167,.16); --shadow:rgba(90,80,66,.16);
  }
}

*{box-sizing:border-box;margin:0;padding:0}
html{-webkit-text-size-adjust:100%}
body{
  background:var(--bg); color:var(--txt); font-family:var(--sans);
  font-size:17px; line-height:1.55; letter-spacing:-.011em;
  -webkit-font-smoothing:antialiased; overflow-x:hidden;
}
a{color:inherit}
img{max-width:100%;display:block}
.wrap{max-width:var(--maxw);margin:0 auto;padding:0 22px}

/* ---------- top bar ---------- */
.bar{
  position:sticky;top:0;z-index:20;
  background:color-mix(in srgb,var(--bg) 86%,transparent);
  backdrop-filter:saturate(180%) blur(14px);
  -webkit-backdrop-filter:saturate(180%) blur(14px);
  border-bottom:1px solid var(--line);
}
.bar .wrap{display:flex;align-items:center;justify-content:space-between;height:56px}
.wordmark{
  font:800 15px/1 var(--mono);letter-spacing:.16em;
  background:var(--ramp-ink);-webkit-background-clip:text;background-clip:text;color:transparent;
}
.langs{display:flex;gap:2px;align-items:center}
.langs a{
  font:700 11.5px/1 var(--mono);letter-spacing:.08em;text-decoration:none;
  color:var(--txt-2);padding:7px 10px;border-radius:var(--r-pill);
}
.langs a[aria-current="true"]{color:var(--txt);background:var(--panel-2)}
.langs a:hover{color:var(--txt)}

/* ---------- hero ---------- */
/* `overflow:hidden` contains the glow below. Without it the ::before, which is
   deliberately wider than the viewport so the radial falls off past both edges,
   pushed the document to 487px inside a 375px phone — a page that scrolls
   sideways. `body{overflow-x:hidden}` did NOT save it: the overflow was on body
   while the scroll was on <html>, so the clip and the scrollport were different
   elements. Contain the decoration at its own boundary instead of asking the
   page to hide it. Worth knowing the shape of this bug: querySelectorAll('*')
   finds nothing, because a pseudo-element is not in the DOM. */
.hero{padding:74px 0 56px;position:relative;overflow:hidden}
.hero::before{
  content:"";position:absolute;inset:-20% -30% auto -30%;height:460px;
  background:radial-gradient(60% 60% at 50% 0%,var(--glow),transparent 72%);
  pointer-events:none;
}
.hero h1{
  font-size:clamp(33px,6.4vw,58px);line-height:1.04;letter-spacing:-.035em;
  font-weight:800;position:relative;
}
.hero .lede{
  margin-top:20px;font-size:clamp(17px,2.2vw,20.5px);line-height:1.5;
  color:var(--txt-2);max-width:34em;position:relative;
}
.rule{height:3px;border-radius:2px;background:var(--ramp);margin:30px 0 0;max-width:190px;position:relative}

/* ---------- buttons ---------- */
.cta{display:flex;flex-wrap:wrap;gap:11px;margin-top:32px;position:relative;align-items:stretch}
.btn{
  display:inline-flex;align-items:center;gap:9px;
  padding:14px 22px;border-radius:var(--r-pill);
  font-size:15.5px;font-weight:700;text-decoration:none;
  border:1px solid transparent;transition:transform .3s cubic-bezier(.2,1.32,.44,1),opacity .2s;
}
.btn:active{transform:scale(.97)}
.btn.primary{background:var(--fill);color:var(--ink);box-shadow:0 6px 26px -10px var(--glow)}
.btn.ghost{border-color:var(--line-2);color:var(--txt)}
.btn.ghost:hover{border-color:var(--txt-3)}
/* Store buttons render disabled until the listings are live. Swap href in and
   drop [data-soon] to activate — see site/README.md. */
.btn[data-soon]{opacity:.62;cursor:default;border-color:var(--line);color:var(--txt-2)}
.btn[data-soon] .soon{
  font:700 9.5px/1 var(--mono);letter-spacing:.1em;
  border:1px solid var(--line-2);border-radius:var(--r-pill);padding:4px 7px;color:var(--txt-3);
}
.btn .glyph{font-size:19px;line-height:1}
.btn small{display:block;font-size:10.5px;font-weight:600;letter-spacing:.04em;color:var(--txt-3);opacity:var(--dim)}
.btn .stack{display:flex;flex-direction:column;align-items:flex-start;line-height:1.15}

/* ---------- sections ---------- */
section{padding:56px 0;border-top:1px solid var(--line)}
.eyebrow{
  font:700 10.5px/1 var(--mono);letter-spacing:.15em;text-transform:uppercase;
  color:var(--heat-ink);
}
h2{font-size:clamp(25px,3.9vw,35px);line-height:1.12;letter-spacing:-.028em;font-weight:800;margin-top:14px}
h3{font-size:18px;letter-spacing:-.018em;font-weight:700}
p{margin-top:15px;color:var(--txt-2);max-width:40em}
p.tight{margin-top:9px}
strong,b{color:var(--txt);font-weight:700}
em{font-style:italic;color:var(--txt)}

/* ---------- the provenance chain ---------- */
.chain{margin-top:26px;display:grid;gap:1px;background:var(--line);border:1px solid var(--line);border-radius:var(--r-card);overflow:hidden}
.chain > div{background:var(--panel);padding:17px 19px;display:grid;grid-template-columns:118px 1fr;gap:16px;align-items:baseline}
.chain dt{font:700 11.5px/1.35 var(--mono);letter-spacing:.02em;color:var(--heat-ink)}
.chain dd{color:var(--txt-2);font-size:15px}
@media (max-width:620px){
  .chain > div{grid-template-columns:1fr;gap:5px}
}

/* ---------- number callout ---------- */
.figures{display:grid;grid-template-columns:repeat(auto-fit,minmax(168px,1fr));gap:13px;margin-top:28px}
.fig{background:var(--panel);border:1px solid var(--line);border-radius:var(--r-card);padding:19px}
.fig .n{font:800 30px/1 var(--mono);letter-spacing:-.03em;color:var(--txt)}
.fig .n small{font-size:15px;font-weight:700;opacity:var(--dim)}
.fig .k{margin-top:9px;font-size:13.5px;color:var(--txt-2);line-height:1.42}

/* ---------- feature grid ---------- */
.grid{display:grid;grid-template-columns:repeat(auto-fit,minmax(236px,1fr));gap:13px;margin-top:28px}
.card{background:var(--panel);border:1px solid var(--line);border-radius:var(--r-card);padding:21px}
.card .ic{font-size:21px;line-height:1}
.card h3{margin-top:12px}
.card p{margin-top:8px;font-size:14.5px;line-height:1.48}

/* ---------- the refusals ---------- */
.refuse{margin-top:26px;display:grid;gap:11px}
.refuse li{
  list-style:none;background:var(--panel-2);border:1px solid var(--line);
  border-left:3px solid var(--bad);border-radius:var(--r-row);
  padding:15px 18px;font-size:15px;color:var(--txt-2);
}
.refuse li b{color:var(--txt)}

/* ---------- quote ---------- */
.pull{
  margin-top:30px;padding:26px 26px 26px 28px;
  border-left:3px solid var(--heat);background:var(--panel);
  border-radius:0 var(--r-card) var(--r-card) 0;
}
.pull p{margin:0;color:var(--txt);font-size:clamp(18px,2.5vw,22px);line-height:1.4;letter-spacing:-.02em;font-weight:600;max-width:32em}

/* ---------- footer ---------- */
footer{border-top:1px solid var(--line);padding:44px 0 60px;color:var(--txt-3);font-size:13.5px}
footer .cols{display:flex;flex-wrap:wrap;gap:30px;justify-content:space-between;align-items:flex-start}
footer a{color:var(--txt-2);text-decoration:none}
footer a:hover{color:var(--txt);text-decoration:underline}
footer nav{display:flex;gap:18px;flex-wrap:wrap}
.legal{margin-top:26px;line-height:1.6;max-width:46em}

.disclaim{
  margin-top:22px;padding:17px 19px;border:1px dashed var(--line-2);
  border-radius:var(--r-card);font-size:13px;color:var(--txt-3);line-height:1.55;max-width:46em;
}

@media (prefers-reduced-motion: reduce){
  *{transition:none !important;animation:none !important}
}

/* ---------- the migration card ---------- */
/* Only rendered by js/moved.js, and only for a visitor who actually has app
   data stranded on this origin. Bordered in --heat so it reads as the app
   speaking, not as a marketing banner. */
.moved{padding:26px 0 0;border-top:0}
.moved .card{border-color:var(--heat);border-left:3px solid var(--heat)}
.moved .btn.primary:disabled{cursor:default}
