/* =========================================================
   VELVET VIKING — SHARED SYSTEM SHELL
   =========================================================
   ONE stylesheet for every surface that is not the training app itself:
   the account/sign-in shell, the install page, Terms and the internal
   admin console. (Privacy left this list on 18 November 2026: /privacy is a
   redirect to the website's policy now.)

   Before this, each of those pages carried its own copy of the palette,
   pasted from the app and annotated "lifted verbatim ... so the two read as
   one product". They did read as one product on the day each was written, and
   then the app's palette moved and theirs did not. Copies drift; that is what
   copies do. This file is the one they now share, so a change to the brand is
   a change in one place.

   WHAT LIVES HERE
     - the token ramps, dark and light, named exactly as the app names them
     - the brand shell: wordmark, crest, EARN YOUR PLACE
     - controls: inputs, buttons, focus, disabled, messages

   WHAT DOES NOT
     - anything a single page needs and no other page does. Those stay on
       their page. This is a shell, not a dumping ground.

   THEME
     Light is the product default. `data-theme` is written onto <html> by the
     boot snippet in each page's <head> before the first paint, from the small
     `vvv_theme` mirror key the app maintains. The OS preference is
     deliberately not consulted anywhere in this file -- a dark phone is a
     fact about the phone, not a request about Velvet Viking. */

:root{
  /* TWO RULES, AND ONLY TWO -- one face for every word, one for every
     standalone figure. Declared here as well as in the app because /get
     and /terms carry no :root of their own and reach the product's
     tokens only through this file. See the full note in the app's :root. */
  --text-face:'Oswald',sans-serif;
  --num-face:'JetBrains Mono',monospace;
  /* The charcoal ground and raised face the app adopted when the Today
     card's language became the product's. Kept in step here deliberately:
     /start, /get and the account shell are the same product as the app and
     an athlete crosses between them in one session. */
  --bg:#121316; --bg-2:#1B1A1E; --bg-3:#1C1E24;
  /* White, no grey: the app maps both secondary inks to --ink, and the
     website is the same product, so it does too. */
  --ink:#F4F1EA; --ink-dim:var(--ink); --ink-faint:var(--ink);
  --line:#302E36;
  --bronze:#C0923F; --bronze-2:#9C7433; --gold:#E3B15A;
  --gold-text:var(--gold); --bronze-text:var(--bronze);
  --gold-bright:#F5D061; --modal-active:#c5a059;
  /* CHERRY, WHICH THIS FILE DID NOT HAVE, AND THAT WAS THE WHOLE PROBLEM.
     The palette here predates the move that made cherry the interaction
     colour -- "Gold = brand/destination/milestone. Cherry = active/training/
     interaction." The app and /start both got it, because both declare their
     own :root. /get, /terms and the account shell reach the
     product's tokens ONLY through this file, exactly as the note at the top
     of this block says, so cherry never arrived and their buttons kept
     falling back to the bronze gradient. A reader tapping DOWNLOAD THE APP on
     /get met the brand colour where every other surface in the product paints
     the action.
     The values are the app's own, character for character -- the point of a
     shared shell is that there is one set, not a second set that agrees for
     now. --cherry-ink and --cherry-btn-ink are both here and both white
     because the app distinguishes them, and a page reaching for either
     through this file should not have to know which one the app happened to
     use. */
  --cherry:#9A546C; --cherry-fill:#7A2E42; --cherry-soft:#9A546C;
  --cherry-line:rgba(154,84,108,0.45); --cherry-dim:rgba(154,84,108,0.50);
  --cherry-text:#C46A89; --cherry-ink:#FFFFFF; --cherry-btn-ink:#FFFFFF;
  /* Controls. The app's own text field (Your Name, Coach Voice): clear
     glass on a fine white rim, white words, and cherry when it is the field
     you are in. The old warm brown ramp is gone from the website. */
  --ctl-bg:linear-gradient(180deg, rgba(255,255,255,.10), rgba(255,255,255,.02) 60%), rgba(8,8,11,.3);
  --ctl-border:rgba(255,255,255,.2); --ctl-text:#FFFFFF;
  --ctl-placeholder:#FFFFFF;
  --ctl-accent:#9A546C; --ctl-accent-rgb:154,84,108;
  --ctl-disabled-bg:#18191D; --ctl-disabled-text:#6f6a62; --ctl-disabled-border:#2A2C32;
  --danger-ink:#E0A0A0;
  --radius:16px; --radius-sm:10px;
  /* THE CARD LANGUAGE, so /start and the account shell build their controls
     from the same values the app does. Declared here rather than copied into
     each page: a pasted palette is how these drifted apart before, and
     test/builderVisualParity exists because the builder is reached both at
     /start and inside the app and must not be two different screens. */
  --tile-radius:20px;
  --t-tile:rgba(20,22,27,.8);
  --t-tile-rim:rgba(255,255,255,.08);
  --t-lift:0 6px 18px rgba(0,0,0,.42), inset 0 1px 0 rgba(255,255,255,.055);
  --t-card-grad:linear-gradient(100deg,
    #24262D 0%, #202229 24%, #1C1E25 48%, #181A21 72%, #141620 88%, #121419 100%);
  color-scheme:dark;
}

*{box-sizing:border-box; -webkit-tap-highlight-color:transparent;}
html{-webkit-text-size-adjust:100%;}
body{
  margin:0; min-height:100vh; background:var(--bg); color:var(--ink);
  font-family:var(--text-face);
  -webkit-font-smoothing:antialiased;
}
a{color:#FFFFFF;}
:focus-visible{outline:2px solid var(--ctl-accent); outline-offset:2px; border-radius:4px;}

/* ---------- the shell ----------
   The website's arrival is the reference, not the template. A webpage hero
   dropped into an app reads as a webpage dropped into an app; what carries
   across is the ORDER and the restraint -- wordmark, crest, EARN YOUR PLACE,
   then the page's own business -- at a scale that suits a phone holding a
   sign-in field rather than a landing page. */
.vvv-shell{width:100%; max-width:420px; margin:0 auto;}
.vvv-brand{text-align:center; margin-bottom:24px;}
/* ---- CHANGED SIDES: THE CREST WENT, THE MARK IS THE NAME AND TWO DOTS ----
   This block drew the full Velvet Viking crest on every page, with the type
   suppressed at full size because the artwork carried it. Founder: "We don't
   need an emblem everywhere for the app. It's simply the name with the dots.
   That's it. Clean & sleek." -- and, of these five pages: "They should both
   change to the dot SACORO dot."
   There was a second reason it had to go. The crest's lettering is part of
   the artwork, and the artwork reads VALHALLA AWAITS: a rename that could
   reach every string in the product could never have reached that.
   So this is the app's own lockup, in the app's own proportions -- Cinzel
   600 tracked .17em, 7px dots and a 15px gap beside a 26px name -- scaled to
   the size each page sets it at. The byline stays under it here: these are
   the pages where someone meets the product for the first time. */
.vvv-lockup{display:flex; align-items:center; justify-content:center; gap:18px;}
.vvv-dot{flex:none; width:9px; height:9px; border-radius:50%;
  background:var(--gold-bright, #F5D061);
  box-shadow:0 0 10px rgba(245,208,97,.42);}
/* .vvv-brand IN FRONT OF BOTH, AND IT IS NOT DECORATION. Two of the five pages
   set the lockup inside .vvv-shell, whose own rule for every <p> -- 13.5px,
   18px beneath -- is one element more specific than a bare class. Measured in
   Chromium before this was added: the name rendered at 13.5px on /start and
   /account and at 33px on /get, from the same markup. */
.vvv-brand .vvv-wordmark{
  font-family:'Cinzel',serif; font-weight:600;
  /* clamped, because a tracked name at a fixed size is the first thing to
     overflow a narrow phone and the last thing anyone tests */
  font-size:clamp(26px, 8.4vw, 34px); line-height:1.15;
  letter-spacing:.17em; text-transform:uppercase; color:var(--ink);
  /* the trailing track is cancelled, or the right dot sits further from the
     O than the left dot does from the S */
  margin:0 -.17em 0 0; white-space:nowrap;
}
.vvv-brand .vvv-by{
  font-family:var(--text-face); font-weight:600; font-size:11px; line-height:1.3;
  letter-spacing:.3em; text-transform:uppercase; color:var(--gold-text);
  margin:9px -.3em 0 0; white-space:nowrap;
}
/* `compact` is the legal pages, where the mark heads a document rather than
   opening a screen. Same lockup, two thirds the size. */
.vvv-brand.compact .vvv-lockup{gap:12px;}
.vvv-brand.compact .vvv-dot{width:6px; height:6px;}
.vvv-brand.compact .vvv-wordmark{font-size:clamp(18px, 5.6vw, 22px);}
.vvv-brand.compact .vvv-by{font-size:11px; margin-top:6px;}
.vvv-rule{width:58%; height:1px; margin:14px auto 0;
  background:linear-gradient(90deg,transparent,rgba(197,160,89,.45),transparent);}

/* ---------- type ---------- */
.vvv-shell h1{font-size:19px; margin:0 0 10px; letter-spacing:.02em; color:var(--ink);}
.vvv-shell p{font-size:13.5px; line-height:1.6; color:var(--ink-dim); margin:0 0 18px;}
.vvv-shell label{
  display:block; font-size:11px; letter-spacing:1px; text-transform:uppercase;
  color:var(--ink-faint); margin-bottom:6px;
}

/* ---------- controls ---------- */
.vvv-shell input, .vvv-shell select, .vvv-shell textarea{
  width:100%; padding:12px 13px; font-size:16px; /* 16px: anything smaller makes iOS zoom the page on focus */
  border-radius:14px; font-family:inherit;
  background:var(--ctl-bg); border:1px solid var(--ctl-border); color:var(--ctl-text);
  box-shadow:inset 0 1px 0 rgba(255,255,255,.18);
}
.vvv-shell input::placeholder, .vvv-shell textarea::placeholder{color:var(--ctl-placeholder); opacity:1;}
.vvv-shell input:focus, .vvv-shell select:focus, .vvv-shell textarea:focus{
  outline:none; border-color:var(--ctl-accent);
  box-shadow:0 0 0 2px rgba(var(--ctl-accent-rgb),0.25);
}
.vvv-shell input:disabled, .vvv-shell select:disabled, .vvv-shell textarea:disabled{
  background:var(--ctl-disabled-bg); border-color:var(--ctl-disabled-border);
  color:var(--ctl-disabled-text); cursor:default;
}
.vvv-btn{
  display:flex; align-items:center; justify-content:center;
  width:100%; min-height:48px; margin-top:14px; padding:12px 18px;
  border:1px solid transparent; border-radius:8px; font-family:inherit;
  background:transparent; color:#FFFFFF;
  font-size:14px; font-weight:600; letter-spacing:.04em; cursor:pointer;
}
.vvv-btn:hover{filter:brightness(1.06);}
.vvv-btn-ghost{background:none; border-color:var(--line); color:var(--ink);}
/* Disabled says so with its own fill and edge, not with opacity -- opacity
   dims the label past reading while leaving the control looking pressable. */
.vvv-btn:disabled, .vvv-btn[disabled]{
  background:var(--ctl-disabled-bg); border-color:var(--ctl-disabled-border);
  color:var(--ctl-disabled-text); cursor:default; filter:none;
}

/* ---------- messages ---------- */
.vvv-msg{margin-top:16px; font-size:12.5px; line-height:1.55; min-height:1em;}
.vvv-msg.err{color:var(--danger-ink);}
.vvv-msg.ok{color:#FFFFFF;}
.vvv-foot{margin-top:26px; text-align:center; font-size:11.5px; color:var(--ink-faint);}
/* A 44px tap round a word-sized link, the way /get's footer already does it;
   the negative margin gives the room back, so nothing moves. */
.vvv-foot a{color:var(--ink-faint); display:inline-block; padding:14px 6px; margin:-14px -6px;}
.vvv-hidden{display:none;}

/* ONE ACTION STYLE BEFORE THE APP OPENS. The app's primary is liquid glass
   inside a thin cherry rim with white words, and the website is the same
   product an athlete crosses on the way in, so its main button is that same
   glass rather than the old solid gold. Ghost buttons keep their quieter style. */
.vvv-btn:not(.vvv-btn-ghost):not(:disabled):not([disabled]){
  background:linear-gradient(180deg, rgba(255,255,255,.045), rgba(255,255,255,0) 55%), rgba(8,8,11,.26);
  -webkit-backdrop-filter:blur(18px) saturate(150%); backdrop-filter:blur(18px) saturate(150%);
  border:1px solid var(--cherry); color:#FFFFFF;
  box-shadow:inset 0 1px 0 rgba(255,255,255,.16), inset 0 0 0 1px rgba(255,255,255,.06), 0 0 16px var(--cherry-dim);
}

/* ---------- pressed ----------
   THE APP'S OWN PRESS, so a tap feels the same before the app opens as after
   it (founder, 20 November 2026: "the clickable tabs and options could show a
   action that looks like it's being pressed"). The app sinks every button to
   .98 under the finger; here the cherry glass button also takes a cherry wash,
   a ghost button a faint light one, and a text link dims. Sinking is instant
   so a quick tap still shows it; letting go springs back. The website uses the
   same press, so the whole crossing from website to app answers alike. */
:where(button, .btn, .vvv-btn, [role="button"]){
  transition:scale .22s cubic-bezier(.22,1.2,.36,1), background-color .15s, filter .15s;
}
:where(button, .btn, .vvv-btn, [role="button"]):not(:disabled):not([disabled]):active{
  scale:.98; transition-duration:0s;
}
.vvv-btn:not(.vvv-btn-ghost):not(:disabled):not([disabled]):active,
.btn:not(.btn-ghost):active{
  background:linear-gradient(180deg, rgba(255,255,255,.045), rgba(255,255,255,0) 55%), color-mix(in srgb, var(--cherry) 30%, rgba(8,8,11,.26));
}
.vvv-btn-ghost:not(:disabled):active, .btn-ghost:active{background:rgba(255,255,255,.06);}
:where(a:not(.btn):not(.vvv-btn)):active{opacity:.6;}
@media (prefers-reduced-motion: reduce){
  :where(button, .btn, .vvv-btn, [role="button"]):not(:disabled):not([disabled]):active{scale:none; opacity:.75;}
}
