/* mysafeOS — sign-in. Same system as the app (see style.css), kept
   self-contained because this page is served before sign-in. */

@font-face { font-family: "Geist"; src: url("/fonts/Geist-Variable.woff2") format("woff2"); font-weight: 100 900; font-display: swap; }

:root {
  --font-ui: "Geist", -apple-system, BlinkMacSystemFont, "Helvetica Neue", system-ui, sans-serif;
  --font-display: "Geist", -apple-system, BlinkMacSystemFont, "Helvetica Neue", system-ui, sans-serif;
  --ease: cubic-bezier(.2, .7, .2, 1);
  --ease-spring: cubic-bezier(.34, 1.3, .5, 1);

  color-scheme: dark;
  --bg: #0a0e0d;
  --hero: radial-gradient(900px 700px at 20% 30%, rgba(31,138,90,.28), transparent 60%),
          radial-gradient(700px 600px at 90% 90%, rgba(212,175,55,.10), transparent 60%),
          linear-gradient(160deg, #0c1512, #080b0a);
  --glass: rgba(255,255,255,.05);
  --glass-2: rgba(255,255,255,.08);
  --glass-edge: rgba(255,255,255,.09);
  --glass-edge-hi: rgba(255,255,255,.16);
  --fg: #f1f0ea;
  --fg-2: rgba(241,240,234,.66);
  --fg-3: rgba(241,240,234,.42);
  --green: #2ea36f;
  --green-grad: linear-gradient(180deg, #2c9d6a, #1b7a51);
  --green-soft: rgba(46,163,111,.16);
  --gold-text: #e3c25a;
  --danger: #ea7367;
  --danger-soft: rgba(234,115,103,.14);
  --input-bg: rgba(255,255,255,.06);
  --input-bg-focus: rgba(255,255,255,.09);
  --shadow-lg: 0 30px 70px -20px rgba(0,0,0,.75), 0 0 0 1px var(--glass-edge-hi);
  --focus-ring: 0 0 0 3px rgba(46,163,111,.38);
  --gem: rgba(212,175,55,.35);
}
:root[data-theme="light"] {
  color-scheme: light;
  --bg: #f3f2ee;
  --hero: radial-gradient(900px 700px at 20% 30%, rgba(31,138,90,.9), transparent 60%),
          radial-gradient(700px 600px at 90% 90%, rgba(212,175,55,.35), transparent 60%),
          linear-gradient(160deg, #10583c, #0b3d2a);
  --glass: rgba(255,255,255,.7);
  --glass-2: rgba(255,255,255,.9);
  --glass-edge: rgba(20,36,28,.08);
  --glass-edge-hi: rgba(20,36,28,.14);
  --fg: #141d19;
  --fg-2: rgba(20,29,25,.66);
  --fg-3: rgba(20,29,25,.44);
  --green: #16764c;
  --green-grad: linear-gradient(180deg, #1f8a5a, #146845);
  --green-soft: rgba(22,118,76,.10);
  --gold-text: #8f6f1c;
  --danger: #c9483c;
  --danger-soft: rgba(201,72,60,.10);
  --input-bg: rgba(20,36,28,.045);
  --input-bg-focus: #fff;
  --shadow-lg: 0 30px 70px -20px rgba(20,36,28,.3), 0 0 0 1px var(--glass-edge-hi);
  --focus-ring: 0 0 0 3px rgba(22,118,76,.28);
  --gem: rgba(255,255,255,.35);
}

*, *::before, *::after { box-sizing: border-box; }
html, body { height: 100%; }
body {
  margin: 0;
  font-family: var(--font-ui);
  font-size: 15px; line-height: 1.45;
  color: var(--fg);
  background: var(--bg);
  -webkit-font-smoothing: antialiased;
}
[hidden] { display: none !important; }
h1, h2, p, ul { margin: 0; }
button, input { font: inherit; color: inherit; }
:focus { outline: none; }

.stage {
  min-height: 100vh; min-height: 100dvh;
  display: grid;
  grid-template-columns: 1.15fr 1fr;
}

/* ---- hero ---- */
.hero {
  position: relative; overflow: hidden;
  background: var(--hero);
  color: #f1f0ea;
  display: flex; align-items: flex-end;
  padding: 56px;
}
.hero-inner { position: relative; z-index: 1; max-width: 520px; animation: rise .7s var(--ease) both; }
.mark { width: 44px; height: 44px; color: #d4af37; margin-bottom: 22px; }
.mark svg { width: 44px; height: 44px; }
.wordmark {
  font-family: var(--font-ui); font-weight: 600;
  font-size: clamp(2.6rem, 4.6vw, 3.8rem); line-height: 1; letter-spacing: -0.04em;
}
.wordmark span { color: var(--gold-text); font-weight: 500; }
:root[data-theme="light"] .wordmark span { color: #ecd27a; }
.tagline { margin-top: 18px; font-size: 1.05rem; color: rgba(241,240,234,.7); max-width: 40ch; }
.facts {
  list-style: none; padding: 0; margin-top: 34px;
  display: flex; gap: 18px; flex-wrap: wrap;
  font-size: 12px; letter-spacing: .08em; text-transform: uppercase; color: rgba(241,240,234,.45);
}
.facts li::before { content: ""; display: inline-block; width: 5px; height: 5px; border-radius: 50%; background: var(--green); margin-right: 8px; vertical-align: middle; }
#gem { position: absolute; inset: 0; width: 100%; height: 100%; animation: gem-in 1.6s var(--ease) both; }
@keyframes gem-in { from { opacity: 0; transform: scale(.94); } to { opacity: 1; transform: none; } }
.hero-hint {
  position: absolute; right: 28px; top: 24px;
  font-size: 11px; letter-spacing: .12em; text-transform: uppercase; color: rgba(241,240,234,.35);
  animation: rise 1s 1.2s var(--ease) both;
}
@media (hover: none) { .hero-hint { display: none; } }
.hero-inner { pointer-events: none; }
@keyframes rise { from { opacity: 0; transform: translateY(10px); } to { opacity: 1; transform: none; } }

/* ---- door ---- */
.door { display: flex; align-items: center; justify-content: center; padding: 40px 32px; }
.card {
  width: 100%; max-width: 420px;
  padding: 36px 36px 28px;
  border-radius: 28px;
  background: var(--glass);
  -webkit-backdrop-filter: blur(22px); backdrop-filter: blur(22px);
  box-shadow: var(--shadow-lg);
  animation: rise .6s .1s var(--ease) both;
  position: relative;
}
.card::before { content: ""; position: absolute; inset: 0; border-radius: inherit; pointer-events: none; background: linear-gradient(180deg, rgba(255,255,255,.06), transparent 40%); }
.card.shake { animation: shake .4s var(--ease); }
@keyframes shake { 20%, 60% { transform: translateX(-6px); } 40%, 80% { transform: translateX(6px); } }

.kicker { font-size: 11px; font-weight: 600; letter-spacing: .1em; text-transform: uppercase; color: var(--fg-3); margin-bottom: 8px; }
.auth-form h2 { font-family: var(--font-display); font-weight: 600; font-size: 1.75rem; letter-spacing: -0.03em; margin-bottom: 22px; line-height: 1; }
.form-hint, .field-hint { font-size: 13px; color: var(--fg-3); margin: -10px 0 18px; }
.field-hint { margin: -8px 0 12px; }

.f { display: flex; flex-direction: column; gap: 6px; margin-bottom: 14px; }
.f span { font-size: 11px; font-weight: 600; letter-spacing: .05em; text-transform: uppercase; color: var(--fg-3); }
.f input {
  width: 100%; min-height: 46px; padding: 10px 14px;
  border: 0; border-radius: 14px;
  background: var(--input-bg); color: var(--fg);
  box-shadow: inset 0 0 0 1px var(--glass-edge);
  transition: box-shadow .14s var(--ease), background .14s var(--ease);
  -webkit-appearance: none; appearance: none;
}
.f input:focus { background: var(--input-bg-focus); box-shadow: inset 0 0 0 1px var(--green), var(--focus-ring); }

.form-error {
  font-size: 13px; color: var(--danger); background: var(--danger-soft);
  padding: 9px 12px; border-radius: 12px; margin-bottom: 14px;
}
.form-success {
  font-size: 13px; color: var(--green); background: var(--green-soft);
  padding: 9px 12px; border-radius: 12px; margin-bottom: 14px;
}

.link-btn {
  display: block; width: 100%; text-align: center;
  margin-top: 14px; padding: 4px;
  background: none; border: 0; cursor: pointer;
  font-size: 13px; font-weight: 600; color: var(--fg-3);
  transition: color .14s var(--ease);
}
.link-btn:hover { color: var(--fg); }

.btn {
  width: 100%; height: 48px; margin-top: 6px;
  display: flex; align-items: center; justify-content: space-between; padding: 0 20px;
  border: 0; border-radius: 999px; cursor: pointer;
  font-weight: 600; font-size: 15px; color: #fff;
  background: var(--green-grad);
  box-shadow: inset 0 1px 0 rgba(255,255,255,.22), 0 1px 2px rgba(0,0,0,.2), 0 10px 22px -10px rgba(31,138,90,.9);
  transition: transform .14s var(--ease), filter .14s var(--ease);
}
.btn i { font-style: normal; transition: transform .2s var(--ease); }
.btn:hover { filter: brightness(1.06); }
.btn:hover i { transform: translateX(3px); }
.btn:active { transform: scale(.98); }
.btn:disabled { opacity: .6; cursor: default; }

.meta { margin-top: 26px; padding-top: 18px; border-top: 1px solid var(--glass-edge); font-size: 11px; letter-spacing: .08em; text-transform: uppercase; color: var(--fg-3); text-align: center; }

/* leaving: the card lifts, the hero deepens */
.stage.leaving .card { animation: leave .5s var(--ease) forwards; }
.stage.leaving .hero-inner { animation: leave .5s var(--ease) forwards; }
.stage.leaving #gem { transition: opacity .6s .2s var(--ease); opacity: 0; }
@keyframes leave { to { opacity: 0; transform: translateY(-14px); } }
.curtain { position: fixed; inset: 0; background: var(--bg); opacity: 0; transition: opacity .5s var(--ease); pointer-events: none; z-index: 10; }
.curtain.up { opacity: 1; }

@media (max-width: 860px) {
  .stage { grid-template-columns: 1fr; grid-template-rows: auto 1fr; }
  .hero { padding: 40px 28px 32px; min-height: 42vh; align-items: flex-end; }
  .wordmark { font-size: 2.4rem; }
  .tagline { font-size: .95rem; }
  .facts { display: none; }
  .door { padding: 20px 16px 32px; align-items: flex-start; margin-top: -28px; }
  .card { padding: 28px 24px 22px; }
}
@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after { animation-duration: 1ms !important; transition-duration: 1ms !important; }
}

/* Proposed sign-in refinement */
:root { --hero: #102b22; --shadow-lg: none; --input-bg: rgba(255,255,255,.035); --green-grad: #27845d; }
:root[data-theme="light"] { --hero: #102b22; --shadow-lg: none; --input-bg: rgba(20,36,28,.035); --green-grad: #16764c; }
.stage { grid-template-columns: 1fr 1fr; }
.hero { padding: 64px; align-items: center; background: var(--hero); }
.hero-inner { width:100%; max-width: none; animation:none; }
.mark { width:36px;height:36px;margin-bottom:22px;color:#d4af37; }
.mark svg { width:36px;height:36px; }
.wordmark { font-size:28px; letter-spacing:-.03em; position:absolute; top:-84px; left:49px; }
.mark { position:absolute;top:-88px;left:0; }
.tagline { font-size:clamp(40px,4.5vw,68px); line-height:1.08; font-weight:500; letter-spacing:-.055em; color:#f1f0ea;margin:0;max-width:12ch; }
.facts { gap:0; margin-top:30px; font-size:13px; letter-spacing:0; text-transform:none;color:#b1c1b9; }
.facts li + li:before { content:'·'; background:none; height:auto;width:auto;margin:0 13px; }
.facts li:first-child:before { display:none; }
.hero-hint { top:auto;bottom:38px;left:64px;right:auto;font-size:12px;letter-spacing:0;text-transform:none;color:#b1c1b9;animation:none; }
.door { padding:64px; }
.card { max-width:360px;padding:0;background:none;border:0;border-radius:0;box-shadow:none;backdrop-filter:none;animation:none; }
.card:before { display:none; }
.kicker { color:var(--fg-2);font-size:12px;letter-spacing:.03em; text-transform:none;margin-bottom:12px; }
.auth-form h2 { font-size:32px;font-weight:550;letter-spacing:-.04em;line-height:1.15;margin-bottom:10px; }
.auth-form .form-hint { color:var(--fg-2);font-size:14px;margin:0 0 32px; }
.f { margin-top:20px; }
.f > span { text-transform:none;letter-spacing:0;font-size:13px;color:var(--fg-2);margin-bottom:9px; }
.f input { height:48px;border-radius:10px; border:1px solid var(--glass-edge-hi);box-shadow:none; }
.btn { height:48px; margin-top:28px;border-radius:10px; background:var(--green-grad);box-shadow:none; font-weight:550; }
.btn:hover { box-shadow:none;filter:brightness(1.08); }
.btn i { display:none; }
.btn { justify-content:center; }
.link-btn { color:var(--fg-2);font-size:13px;margin-top:20px; }
.meta { margin-top:40px;padding-top:24px;font-size:11px;letter-spacing:0;text-transform:none;color:var(--fg-2); }
button:focus-visible { outline:2px solid var(--green);outline-offset:5px; }
@media(max-width:760px) {
.stage { grid-template-columns:1fr; }
.hero { min-height:260px;padding:76px 32px 30px;align-items:center; }
.hero-inner { max-width:360px;margin:auto; }
.mark { top:-46px;width:26px;height:26px; }
.mark svg { width:26px;height:26px; }
.wordmark { top:-42px;left:37px;font-size:21px; }
.tagline { font-size:36px;max-width:none; }
.tagline br { display:none; }
.facts { margin-top:18px; }
.hero-hint { display:none; }
.door { padding:40px 28px 32px;align-items:start; }
.auth-form h2 { font-size:28px; }
}
@media(prefers-reduced-motion:reduce) { *,*:before,*:after {animation:none!important;transition:none!important;} }

/* Sculptural safe treatment */
.hero { background:radial-gradient(ellipse at 48% 35%,#254d3d 0%,#10271e 47%,#091710 100%);padding:48px;align-items:flex-end;isolation:isolate; }
.hero-inner { max-width:520px; }
.mark { position:fixed;top:42px;left:42px; }
.wordmark { position:fixed;top:47px;left:91px;font-size:25px; }
.tagline { font-size:clamp(32px,3.3vw,48px);line-height:1.1;max-width:none; }
.facts { margin-top:22px;margin-bottom:8px; }
.hero-hint { display:none; }
.vault-scene {position:absolute;inset:90px 30px 210px;display:grid;place-items:center;perspective:1000px;z-index:-1;}
.vault {width:min(290px,70%);aspect-ratio:1;border-radius:39px;padding:13px;background:linear-gradient(135deg,#889184,#24372c 21%,#617261 49%,#14231a 76%,#63725c);box-shadow:25px 35px 45px #0008,inset 1px 1px 1px #d9ddba88,inset -2px -2px 3px #020905;transform:rotateX(var(--rx,0deg)) rotateY(var(--ry,-12deg)) rotateZ(-6deg);transition:transform .6s cubic-bezier(.2,.7,.2,1);animation:vault-appear 1.4s cubic-bezier(.16,1,.3,1) both;}
.vault-face {height:100%;position:relative;border-radius:28px;background:repeating-linear-gradient(93deg,#ffffff02 0px,#ffffff02 1px,transparent 1px,transparent 3px),linear-gradient(135deg,#365040,#172b20 50%,#213a2a);border:1px solid #07170e;box-shadow:inset 2px 2px 3px #94ab7944,inset -3px -4px 6px #0008;display:grid;place-items:center;}
.dial {width:123px;height:123px;border-radius:50%;padding:9px;background:conic-gradient(from 30deg,#8c773b,#eee0a4,#8b7137,#4a3b1a,#c3ab67,#f4e7b6,#8c773b);box-shadow:9px 12px 17px #0008,inset 0 0 0 1px #e5d195;}
.dial-inner {width:100%;height:100%;border-radius:50%;padding:12px;background:repeating-conic-gradient(#b59b60 0deg 1deg,#273529 1deg 10deg);animation:dial-arrive 1.8s cubic-bezier(.16,1,.3,1) both;}
.dial-core {width:100%;height:100%;border:1px solid #c7b579;border-radius:50%;background:conic-gradient(#e8d998,#6f5d30,#d3bf7c,#eee2b0,#8e7742,#e8d998);box-shadow:3px 4px 7px #0009;position:relative;}
.dial-core:before {content:'';position:absolute;top:7px;left:50%;height:9px;width:2px;background:#42391d;}
.hinge {position:absolute;left:13px;width:12px;height:43px;border-radius:4px;background:linear-gradient(90deg,#12231a,#617260 45%,#23372a);box-shadow:2px 2px 3px #0009;}
.h1 {top:38px;}.h2 {bottom:38px;}
.engraving {position:absolute;bottom:22px;font-size:7px;letter-spacing:2px;color:#b1ad7a;}
@keyframes vault-appear {from{opacity:0;translate:0 25px;filter:blur(8px);}to{opacity:1;translate:0 0;filter:blur(0);}}
@keyframes dial-arrive {from{transform:rotate(-65deg);}to{transform:rotate(0deg);}}
.card {animation:rise .7s .2s both;}
.hero-inner {animation:rise .8s .15s both;}
@media(max-width:760px){
.hero {min-height:380px;padding:28px;}
.mark {position:absolute;top:-295px;left:0;width:28px;height:28px;}
.wordmark {position:absolute;top:-291px;left:39px;font-size:22px;}
.vault-scene {inset:55px 20px 130px;}
.vault {width:165px;border-radius:25px;padding:8px;}
.vault-face {border-radius:18px;}
.dial {width:78px;height:78px;padding:6px;}
.dial-inner {padding:8px;}
.hinge {width:8px;height:27px;left:8px;}
.h1 {top:22px;}.h2 {bottom:22px;}
.engraving {font-size:4px;letter-spacing:1px;bottom:12px;}
.tagline {font-size:30px;}
.tagline br {display:initial;}
.facts {margin-top:14px;}
}

.brand-lockup {position:absolute;top:40px;left:44px;display:flex;align-items:center;gap:12px;}.brand-lockup .mark,.brand-lockup .wordmark {position:static;margin:0;}.brand-lockup .wordmark {font-size:25px;}.brand-lockup .mark,.brand-lockup .mark svg {width:32px;height:32px;} @media(max-width:760px){.brand-lockup{top:24px;left:28px;}.brand-lockup .wordmark{font-size:22px;}.brand-lockup .mark,.brand-lockup .mark svg{width:28px;height:28px;}}

.vault.opening {transform:rotateY(-75deg) scale(1.06);opacity:0;transition:transform .75s ease,opacity .7s ease;}

@media(max-width:760px){.hero-inner{margin:0;width:100%;}.hero{align-items:flex-end;}.door{margin-top:0;padding:32px 28px;}.card{padding:0;}.vault-scene{inset:64px 20px 132px;}.facts{display:flex;}}
@media(min-width:761px){.stage{grid-template-rows:1fr;}.door{margin-top:0;}.facts{display:flex;}}

/* Product story: daily jewelry operations */
.product-description {margin:20px 0 0;max-width:46ch;font-size:15px;line-height:1.6;color:#b1c1b9;}
.tagline {font-size:clamp(30px,3vw,44px);}
.vault-scene {bottom:260px;}
@media(max-width:760px){.hero{min-height:440px;}.vault-scene{inset:64px 20px 192px;}.tagline{font-size:29px;}.product-description{font-size:13px;line-height:1.55;margin-top:16px;}}


/* ==========================================================================
   Sept 2026 — Landing page, sign-in modal, create-account page.

   The home screen is now a landing page on its own. Sign in opens in a modal
   over it (with password reset as a second panel inside that modal), and
   creating an account is its own page at /signup.

   The hero's vault, tagline and lockup are unchanged — this section only
   re-frames them to fill the page instead of sharing it with a form.
   ========================================================================== */

:root {
  --hero-bg: radial-gradient(ellipse at 62% 38%, #254d3d 0%, #10271e 47%, #091710 100%);
  --hero-fg: #f1f0ea;
  --hero-fg-2: #b1c1b9;
  --hero-fg-3: rgba(241,240,234,.42);
  --hero-gold: #d4af37;
  --hero-edge: rgba(255,255,255,.16);
  --hero-edge-hi: rgba(255,255,255,.28);
  --sheet-bg: rgba(20,34,28,.88);
  --sheet-edge: rgba(255,255,255,.12);
  --sheet-shadow: 0 40px 90px -24px rgba(0,0,0,.8);
  --scrim: rgba(4,10,8,.6);
}
:root[data-theme="light"] {
  --hero-bg: radial-gradient(ellipse at 62% 38%, #fcfbf7 0%, #eeece3 47%, #dedbd0 100%);
  --hero-fg: #141d19;
  --hero-fg-2: rgba(20,29,25,.62);
  --hero-fg-3: rgba(20,29,25,.42);
  --hero-gold: #9d7719;
  --hero-edge: rgba(20,36,28,.16);
  --hero-edge-hi: rgba(20,36,28,.3);
  --sheet-bg: rgba(255,255,255,.94);
  --sheet-edge: rgba(20,36,28,.1);
  --sheet-shadow: 0 40px 90px -28px rgba(20,36,28,.35);
  --scrim: rgba(28,42,35,.34);
}

/* ---- shell ---- */
.landing-page .stage {
  display: flex; flex-direction: column;
  min-height: 100vh; min-height: 100dvh;
  grid-template-columns: none;
  background: var(--hero-bg);
}

.top-bar {
  position: relative; z-index: 3;
  display: flex; align-items: center; justify-content: space-between;
  gap: 16px;
  padding: 30px 56px 0;
  animation: rise .6s var(--ease) both;
}
.top-bar .brand-lockup { position: static; top: auto; left: auto; }
.top-bar .brand-lockup .mark { color: var(--hero-gold); }
.top-bar .wordmark { color: var(--hero-fg); }
:root .landing-page .wordmark span,
:root .signup-page .wordmark span,
:root[data-theme="light"] .landing-page .wordmark span,
:root[data-theme="light"] .signup-page .wordmark span { color: var(--hero-gold); }

/* ---- hero fills the page ---- */
.landing-page .hero {
  flex: 1;
  position: relative;
  display: grid;
  grid-template-columns: minmax(0, 1fr) minmax(0, .88fr);
  grid-template-rows: 1fr auto;
  column-gap: 32px;
  align-content: stretch;
  min-height: 0;
  padding: 0 56px 34px;
  background: none;
  color: var(--hero-fg);
  isolation: isolate;
}
.landing-page .hero-inner {
  position: relative; z-index: 2;
  grid-column: 1; grid-row: 1;
  align-self: center;
  pointer-events: auto;
  max-width: 30rem; width: 100%;
  margin: 0;
  animation: rise .8s .1s var(--ease) both;
}
.landing-page .vault-scene {
  position: relative;
  inset: auto;
  grid-column: 2; grid-row: 1;
  width: auto; min-height: 0;
  z-index: 0;
  display: grid; place-items: center;
}
.landing-page .vault { width: min(300px, 74%); }

.eyebrow {
  font-size: 12px; font-weight: 600; letter-spacing: .1em; text-transform: uppercase;
  color: var(--hero-fg-3); margin: 0 0 16px;
}
.landing-page .tagline { color: var(--hero-fg); font-size: clamp(34px, 3.6vw, 56px); }
.landing-page .product-description { color: var(--hero-fg-2); max-width: 36ch; }

/* ---- the two front-door actions ---- */
.hero-actions {
  display: flex; flex-wrap: wrap; gap: 12px;
  margin-top: 34px;
  pointer-events: auto;
}
/* On a brand-new install, setting up the workspace leads. */
.hero-actions.first-run #primarySignIn { order: 2; }
.btn {
  width: auto; height: 48px; margin: 0;
  display: inline-flex; align-items: center; justify-content: center;
  padding: 0 26px;
  border: 0; border-radius: 999px;
  font-weight: 550; font-size: 15px; text-decoration: none;
  cursor: pointer;
  transition: transform .14s var(--ease), filter .14s var(--ease), background .16s var(--ease), box-shadow .16s var(--ease);
}
.btn-primary { background: var(--green-grad); color: #fff; box-shadow: none; }
.btn-primary:hover { filter: brightness(1.08); }
.btn-ghost {
  background: transparent; color: var(--hero-fg);
  box-shadow: inset 0 0 0 1px var(--hero-edge);
}
.btn-ghost:hover { background: rgba(255,255,255,.07); box-shadow: inset 0 0 0 1px var(--hero-edge-hi); }
:root[data-theme="light"] .btn-ghost:hover { background: rgba(20,36,28,.05); }
.btn:active { transform: scale(.98); }
.btn:disabled { opacity: .6; cursor: default; }

.ghost-btn {
  height: 38px; padding: 0 18px;
  border: 0; border-radius: 999px; cursor: pointer;
  background: transparent; color: var(--hero-fg);
  font-size: 14px; font-weight: 550;
  box-shadow: inset 0 0 0 1px var(--hero-edge);
  transition: background .16s var(--ease), box-shadow .16s var(--ease);
}
.ghost-btn:hover { background: rgba(255,255,255,.07); box-shadow: inset 0 0 0 1px var(--hero-edge-hi); }
:root[data-theme="light"] .ghost-btn:hover { background: rgba(20,36,28,.05); }

/* ---- what the product covers ---- */
.capabilities {
  position: relative; z-index: 2;
  grid-column: 1; grid-row: 2; align-self: end;
  list-style: none; margin: 0; padding: 26px 0 0;
  display: flex; flex-wrap: wrap; align-items: center; gap: 8px 26px;
  font-size: 13px; color: var(--hero-fg-2);
  animation: rise .9s .3s var(--ease) both;
}
.hero-foot {
  position: relative; z-index: 2;
  grid-column: 2; grid-row: 2; align-self: end; justify-self: end;
  margin: 0; padding-left: 24px;
  font-size: 12px; color: var(--hero-fg-3);
  animation: rise 1s .45s var(--ease) both;
}

/* ---- sign-in modal ---- */
body.modal-open { overflow: hidden; }
.shake { animation: shake .4s var(--ease); }

.sheet {
  width: min(420px, calc(100vw - 32px));
  max-width: none; max-height: calc(100dvh - 48px);
  padding: 0; border: 0; border-radius: 26px;
  background: none; color: var(--fg);
  overflow: visible;
}
.sheet::backdrop {
  background: var(--scrim);
  -webkit-backdrop-filter: blur(9px); backdrop-filter: blur(9px);
  animation: scrim-in .28s var(--ease) both;
}
@keyframes scrim-in { from { opacity: 0; } to { opacity: 1; } }

.sheet-inner {
  position: relative;
  border-radius: 26px;
  padding: 34px 32px 26px;
  background: var(--sheet-bg);
  -webkit-backdrop-filter: blur(26px) saturate(1.3); backdrop-filter: blur(26px) saturate(1.3);
  box-shadow: var(--sheet-shadow), inset 0 0 0 1px var(--sheet-edge);
  max-height: calc(100dvh - 48px); overflow-y: auto;
  animation: sheet-in .34s var(--ease) both;
}
@keyframes sheet-in { from { opacity: 0; transform: translateY(14px) scale(.985); } to { opacity: 1; transform: none; } }
.sheet.leaving .sheet-inner { animation: leave .4s var(--ease) forwards; }

.sheet-close {
  position: absolute; top: 16px; right: 16px;
  width: 32px; height: 32px; display: grid; place-items: center;
  border: 0; border-radius: 999px; cursor: pointer;
  background: var(--glass-2); color: var(--fg-2);
  transition: color .14s var(--ease), background .14s var(--ease);
}
.sheet-close svg { width: 16px; height: 16px; }
.sheet-close:hover { color: var(--fg); }
.sheet-grip { display: none; }

.sheet .auth-form h2 { font-size: 28px; }
.sheet .btn { width: 100%; margin-top: 20px; }
.sheet .link-btn { margin-top: 18px; }

/* ---- /signup — its own page, its own room ---- */
.signup-page .signup-stage {
  min-height: 100vh; min-height: 100dvh;
  display: grid; grid-template-columns: 1.02fr 1fr;
  background: var(--bg);
}
.signup-rail {
  position: relative;
  display: flex; flex-direction: column; justify-content: space-between;
  gap: 40px;
  padding: 40px 56px 36px;
  background: var(--hero-bg);
  color: var(--hero-fg);
  border-right: 1px solid var(--hero-edge);
}
.signup-rail .brand-lockup {
  position: static; top: auto; left: auto;
  text-decoration: none; color: inherit; width: max-content;
}
.signup-rail .brand-lockup .mark { color: var(--hero-gold); }
.signup-rail .wordmark { color: var(--hero-fg); }
.rail-body { animation: rise .7s .1s var(--ease) both; }
.rail-title {
  margin: 0; font-weight: 500;
  font-size: clamp(32px, 3.1vw, 46px); line-height: 1.08; letter-spacing: -.05em;
  color: var(--hero-fg);
}
.rail-copy { margin: 20px 0 0; max-width: 34ch; font-size: 15px; line-height: 1.6; color: var(--hero-fg-2); }
.rail-list { list-style: none; margin: 38px 0 0; padding: 0; max-width: 38ch; }
.rail-list li {
  padding: 15px 0 15px 20px;
  border-top: 1px solid var(--hero-edge);
  position: relative;
}
.rail-list li:last-child { border-bottom: 1px solid var(--hero-edge); }
.rail-list li::before {
  content: ""; position: absolute; left: 0; top: 21px;
  width: 6px; height: 6px; border-radius: 50%; background: var(--green);
}
.rail-list-label { display: block; font-size: 14px; font-weight: 550; color: var(--hero-fg); }
.rail-list-note { display: block; margin-top: 3px; font-size: 13px; line-height: 1.5; color: var(--hero-fg-2); }
.rail-foot { font-size: 12px; color: var(--hero-fg-3); }

.signup-main { display: flex; align-items: center; justify-content: center; padding: 56px 48px; }
.signup-panel { width: min(380px, 100%); }
.signup-panel.panel-in { animation: rise .5s var(--ease) both; }
.signup-panel.shake { animation: shake .4s var(--ease); }
.panel-state h2 {
  font-family: var(--font-display); font-weight: 550;
  font-size: 30px; letter-spacing: -.04em; line-height: 1.15; margin: 0 0 12px;
}
.panel-state .form-hint { margin: 0 0 16px; color: var(--fg-2); font-size: 14px; }
.panel-state .btn { margin-top: 12px; }
.signup-page .auth-form h2 { font-size: 30px; }
.signup-page .auth-form .btn { width: 100%; }
.signup-page .link-btn { display: block; text-decoration: none; margin-top: 20px; }

/* ---- phone ---- */
@media (max-width: 760px) {
  .top-bar { padding: 22px 24px 0; }
  .top-bar .wordmark { font-size: 21px; }

  .landing-page .hero {
    display: flex; flex-direction: column; align-items: stretch;
    justify-content: flex-end;
    padding: 0 24px 24px;
    min-height: 0;
  }
  .landing-page .vault-scene {
    position: relative; inset: auto; width: auto;
    flex: 1 1 auto; min-height: 150px; max-height: 300px;
    margin: 8px 0 18px;
  }
  .landing-page .vault { width: min(178px, 52%); border-radius: 25px; padding: 8px; }
  .landing-page .hero-inner { max-width: none; align-self: stretch; }
  .landing-page .tagline { font-size: 32px; }
  .landing-page .tagline br { display: initial; }
  .landing-page .product-description { font-size: 14px; margin-top: 14px; }
  .eyebrow { margin-bottom: 10px; font-size: 11px; }
  .hero-actions { margin-top: 24px; }
  .hero-actions .btn { flex: 1 1 100%; }
  .capabilities { padding-top: 20px; font-size: 12px; gap: 6px 16px; }
  .hero-foot { display: none; }

  /* modal becomes a bottom sheet */
  .sheet {
    width: 100%; max-width: none;
    margin: auto auto 0;
    border-radius: 26px 26px 0 0;
    max-height: 92dvh;
  }
  .sheet-inner {
    border-radius: 26px 26px 0 0;
    padding: 12px 22px calc(24px + env(safe-area-inset-bottom, 0px));
    max-height: 92dvh;
    animation: sheet-up .32s var(--ease) both;
  }
  @keyframes sheet-up { from { transform: translateY(100%); } to { transform: none; } }
  .sheet-close { display: none; }
  .sheet-grip {
    display: block; width: 38px; height: 4px; border-radius: 999px;
    background: var(--fg-4, rgba(128,128,128,.35)); margin: 0 auto 18px;
  }
  .sheet .auth-form h2 { font-size: 26px; }

  .signup-page .signup-stage { grid-template-columns: 1fr; }
  .signup-rail { padding: 22px 24px 26px; gap: 20px; justify-content: flex-start; }
  .rail-title { font-size: 30px; }
  .rail-copy { font-size: 14px; max-width: none; }
  .rail-list { display: none; }
  .rail-foot { display: none; }
  .signup-main { padding: 30px 24px calc(34px + env(safe-area-inset-bottom, 0px)); align-items: flex-start; }
  .signup-panel { width: 100%; }
}

@media (prefers-reduced-motion: reduce) {
  .sheet-inner, .sheet::backdrop, .signup-panel.panel-in { animation: none !important; }
}

/* ---- 6-digit codes (two-step verification, hosted site) ---- */
@font-face { font-family: "Geist Mono"; src: url("/fonts/GeistMono-Regular.woff2") format("woff2"); font-weight: 400; font-display: swap; }
.f input.code-input {
  font-family: "Geist Mono", ui-monospace, "SF Mono", Menlo, monospace;
  font-size: 20px; letter-spacing: .3em; text-align: center; font-variant-numeric: tabular-nums;
}

/* ---- /reset (hosted site) — links that look like the sheet's buttons ---- */
a.link-btn, .top-bar a.brand-lockup { text-decoration: none; }
.sheet a.btn { text-decoration: none; box-sizing: border-box; }

/* Face ID / Touch ID sign-in (hosted site, devices that support passkeys) */
.or-rule {
  display: flex; align-items: center; gap: 12px;
  margin: 22px 0 0; font-size: 12px; color: var(--fg-3);
}
.or-rule::before, .or-rule::after { content: ''; flex: 1; height: 1px; background: var(--glass-edge); }
.sheet .btn-passkey, .btn-passkey {
  margin-top: 14px; gap: 10px;
  background: transparent; color: var(--fg);
  box-shadow: inset 0 0 0 1px var(--glass-edge-hi);
}
.btn-passkey svg { width: 20px; height: 20px; flex: none; }
.btn-passkey:hover { background: var(--glass-2); filter: none; box-shadow: inset 0 0 0 1px var(--glass-edge-hi); }

/* "Use Face ID next time?" — offered once per device, right after the code */
.btn-faceid { gap: 10px; }
.btn-faceid svg { width: 20px; height: 20px; flex: none; }
