:root{
  --bg:#06080d;
  --card:#0e131c;
  --text:#ecf6d2;
  --muted:#9cb077;
  --accent:#AEF31F;
  --accent-soft:rgba(174,243,31,.24);
  --side-gap:24px;
}
*{box-sizing:border-box;margin:0;padding:0}
html,body{
  height:100%;
  background:#06080d;
  overscroll-behavior-y:none;
}
body{
  font-family:Inter,system-ui,-apple-system,Segoe UI,Roboto,sans-serif;
  background:#06080d;
  color:var(--text);
  overflow-x:hidden;
  overflow-y:auto;
}

.wrap{
  position:relative;
  min-height:100dvh;
  padding:24px 24px 40px;
  isolation:isolate;
  z-index:1;
}
.page-layout{
  width:100%;
  display:block;
}
.stack{
  width:min(940px,100%);
  margin:0 auto;
  display:grid;
  gap:30px;
}
.side-auth{
  position:fixed;
  top:24px;
  right:var(--side-gap);
  width:clamp(220px, calc((100vw - 940px - (var(--side-gap) * 4)) / 2), 320px);
  background:linear-gradient(180deg, rgba(14,19,28,.78), rgba(8,11,17,.72));
  border:1px solid rgba(174,243,31,.18);
  border-radius:20px;
  backdrop-filter:blur(12px);
  box-shadow:0 18px 60px rgba(0,0,0,.45), inset 0 0 0 1px rgba(255,255,255,.03);
  padding:16px;
  max-width:320px;
  min-width:220px;
  z-index:5;
}
.side-auth h3{
  font-size:1.05rem;
  margin-bottom:6px;
  color:#f0ffd1;
}
.side-auth p{
  margin:0 0 12px;
  font-size:.84rem;
  line-height:1.45;
  color:var(--muted);
}
.side-auth .actions{
  display:grid;
  gap:8px;
}
.side-auth .ghost,
.side-auth a.ghost{
  display:block;
  text-align:center;
  text-decoration:none;
  border:1px solid rgba(174,243,31,.25);
  background:rgba(9,13,20,.84);
  color:#d7ecac;
  border-radius:10px;
  padding:10px 12px;
  font-size:.84rem;
  cursor:pointer;
}
.side-auth .solid,
.side-auth a.solid{
  display:block;
  text-align:center;
  text-decoration:none;
  border:none;
  background:var(--accent);
  color:#111;
  font-weight:800;
  border-radius:10px;
  padding:10px 12px;
  font-size:.84rem;
  cursor:pointer;
}
.mobile-auth-toggle{
  display:none;
  position:fixed !important;
  top:max(12px, calc(env(safe-area-inset-top) + 8px)) !important;
  right:max(12px, calc(env(safe-area-inset-right) + 8px)) !important;
  left:auto !important;
  bottom:auto !important;
  z-index:25;
  width:44px;
  height:44px;
  border:1px solid rgba(174,243,31,.32);
  background:linear-gradient(180deg, rgba(14,19,28,.92), rgba(8,11,17,.92));
  border-radius:12px;
  backdrop-filter:blur(10px);
  cursor:pointer;
}
.mobile-auth-toggle span{
  position:absolute;
  left:11px;
  width:20px;
  height:2px;
  background:#d8ecaf;
  border-radius:999px;
  transition:transform .22s ease, opacity .18s ease, top .22s ease;
}
.mobile-auth-toggle span:nth-child(1){top:14px}
.mobile-auth-toggle span:nth-child(2){top:21px}
.mobile-auth-toggle span:nth-child(3){top:28px}
.mobile-auth-toggle.active span:nth-child(1){top:21px;transform:rotate(45deg)}
.mobile-auth-toggle.active span:nth-child(2){opacity:0}
.mobile-auth-toggle.active span:nth-child(3){top:21px;transform:rotate(-45deg)}

.mobile-auth-menu{
  display:none;
  position:fixed !important;
  top:max(64px, calc(env(safe-area-inset-top) + 60px)) !important;
  right:max(12px, calc(env(safe-area-inset-right) + 8px)) !important;
  left:auto !important;
  bottom:auto !important;
  width:min(260px, calc(100vw - 24px));
  z-index:24;
  background:linear-gradient(180deg, rgba(14,19,28,.95), rgba(8,11,17,.95));
  border:1px solid rgba(174,243,31,.24);
  border-radius:14px;
  backdrop-filter:blur(10px);
  box-shadow:0 12px 34px rgba(0,0,0,.45);
  padding:10px;
  opacity:0;
  transform:translateY(-8px) scale(.98);
  pointer-events:none;
  transition:opacity .2s ease, transform .22s ease;
}
.mobile-auth-menu.active{
  opacity:1;
  transform:translateY(0) scale(1);
  pointer-events:auto;
}
.mobile-auth-menu .menu-title{
  color:#bdd48f;
  font-size:.72rem;
  letter-spacing:.9px;
  text-transform:uppercase;
  margin:2px 2px 8px;
}
.mobile-auth-item,
a.mobile-auth-item{
  display:block;
  width:100%;
  box-sizing:border-box;
  border:1px solid rgba(174,243,31,.24);
  background:rgba(9,13,20,.84);
  color:#d7ecac;
  border-radius:10px;
  padding:10px 12px;
  font-size:.83rem;
  font-weight:700;
  cursor:pointer;
  text-align:center;
  text-decoration:none;
}
.mobile-auth-item + .mobile-auth-item{margin-top:8px}
.mobile-auth-item.primary{
  border:none;
  color:#111;
  background:var(--accent);
}

#flowCanvas{
  position:fixed;
  inset:0;
  width:100%;
  height:100%;
  z-index:0;
  opacity:.95;
}

.card{
  background:linear-gradient(180deg, rgba(14,19,28,.42), rgba(8,11,17,.34));
  border:1px solid rgba(174,243,31,.08);
  border-radius:28px;
  backdrop-filter:blur(22px) saturate(130%);
  -webkit-backdrop-filter:blur(22px) saturate(130%);
  box-shadow:
    0 20px 80px rgba(0,0,0,.44),
    inset 0 1px 0 rgba(255,255,255,.12),
    inset 0 0 0 1px rgba(255,255,255,.04),
    inset 0 -24px 40px rgba(174,243,31,.03),
    0 0 26px rgba(174,243,31,.05);
  padding:36px;
  display:grid;
  grid-template-columns:1.15fr .85fr;
  gap:28px;
}
.footer-card{
  display:block;
  padding:20px 24px;
}
.footer-grid{
  display:grid;
  grid-template-columns:1.4fr 1fr 1fr;
  gap:14px;
  align-items:start;
}
.footer-brand{
  color:#a6b88b;
  font-size:.8rem;
  line-height:1.45;
}
.footer-brand b{
  color:var(--accent);
  letter-spacing:.5px;
}
.footer-col h4{
  font-size:.76rem;
  text-transform:uppercase;
  letter-spacing:1px;
  color:#8fa075;
  margin-bottom:8px;
}
.footer-col a{
  display:block;
  text-decoration:none;
  color:#9dae85;
  font-size:.76rem;
  line-height:1.55;
  opacity:.75;
}
.footer-col a:hover{opacity:.95;color:#bfd29a}
.footer-bottom{
  margin-top:14px;
  padding-top:12px;
  border-top:1px solid rgba(174,243,31,.16);
  color:#7f9164;
  font-size:.76rem;
  display:flex;
  justify-content:space-between;
  gap:12px;
  flex-wrap:wrap;
}
.flash-banner{
  position:fixed;
  top:16px;
  left:50%;
  transform:translateX(-50%);
  z-index:60;
  max-width:min(520px, calc(100% - 32px));
  padding:12px 16px;
  border-radius:12px;
  font-size:.88rem;
  line-height:1.35;
  box-shadow:0 12px 40px rgba(0,0,0,.45);
}
.flash-banner--success{
  background:rgba(174,243,31,.15);
  border:1px solid rgba(174,243,31,.45);
  color:#e8ffc8;
}
.flash-banner--error{
  background:rgba(255,90,90,.12);
  border:1px solid rgba(255,120,120,.4);
  color:#ffd0d0;
}
.signed-in-email{
  color:var(--accent);
  font-size:.85rem;
  margin:0 0 8px;
  word-break:break-all;
}
.resend-form{margin-top:8px}

.modal-overlay{
  position:fixed;
  inset:0;
  background:rgba(2,4,8,.72);
  backdrop-filter:blur(6px);
  display:flex;
  align-items:center;
  justify-content:center;
  z-index:50;
  padding:16px;
  opacity:0;
  visibility:hidden;
  pointer-events:none;
  transition:opacity .22s ease, visibility .22s ease;
}
.modal-overlay.active{
  opacity:1;
  visibility:visible;
  pointer-events:auto;
}
.auth-modal{
  width:min(430px,100%);
  background:linear-gradient(180deg, rgba(14,19,28,.96), rgba(8,11,17,.96));
  border:1px solid rgba(174,243,31,.25);
  border-radius:18px;
  padding:16px;
  box-shadow:0 20px 60px rgba(0,0,0,.55);
  transform:translateY(14px) scale(.97);
  opacity:0;
  transition:transform .24s cubic-bezier(.2,.8,.2,1), opacity .2s ease;
}
.modal-overlay.active .auth-modal{
  transform:translateY(0) scale(1);
  opacity:1;
}
.auth-top{
  display:flex;
  justify-content:space-between;
  align-items:center;
  margin-bottom:10px;
  gap:10px;
}
.auth-top h3{
  font-size:1.05rem;
  color:#f0ffd1;
}
.close-auth{
  border:none;
  width:30px;height:30px;
  border-radius:8px;
  background:rgba(174,243,31,.13);
  color:#d7ecac;
  cursor:pointer;
  font-size:1rem;
}
.auth-sub{
  color:var(--muted);
  font-size:.84rem;
  margin-bottom:12px;
}
.auth-note{
  color:#b7c99b;
  font-size:.74rem;
  line-height:1.35;
  margin:-2px 0 10px;
}
.auth-group{margin-bottom:10px}
.auth-group label{
  display:block;
  font-size:.74rem;
  color:#bdd48f;
  margin-bottom:5px;
  letter-spacing:.4px;
}
.auth-input{
  width:100%;
  border:1px solid rgba(174,243,31,.22);
  border-radius:10px;
  background:rgba(7,12,18,.9);
  color:#eef9d7;
  padding:11px 12px;
  font-size:.9rem;
  outline:none;
}
.auth-input:focus{
  border-color:rgba(174,243,31,.52);
  box-shadow:0 0 0 3px rgba(174,243,31,.15);
}
.auth-input.invalid{
  border-color:#ff7b7b;
  box-shadow:0 0 0 3px rgba(255,123,123,.14);
}
/* Chrome/Safari autofill paints its own background on :-webkit-autofill; plain background: is ignored until the field is "edited". */
.auth-input:-webkit-autofill,
.auth-input:-webkit-autofill:hover,
.auth-input:-webkit-autofill:focus,
.auth-input:-webkit-autofill:active{
  -webkit-text-fill-color:#eef9d7 !important;
  caret-color:#eef9d7;
  border:1px solid rgba(174,243,31,.22) !important;
  -webkit-box-shadow:0 0 0 1000px rgba(7,12,18,.95) inset !important;
  box-shadow:0 0 0 1000px rgba(7,12,18,.95) inset !important;
}
.field-error{
  color:#ff9a9a;
  font-size:.72rem;
  margin-top:4px;
  min-height:1em;
  line-height:1.2;
}
.auth-submit{
  width:100%;
  border:none;
  border-radius:11px;
  padding:11px;
  background:var(--accent);
  color:#111;
  font-weight:800;
  cursor:pointer;
  margin:6px 0 8px;
}
.divider{
  display:flex;
  align-items:center;
  gap:8px;
  color:#a8bd80;
  font-size:.72rem;
  margin:8px 0 10px;
}
.divider::before,.divider::after{
  content:'';
  flex:1;
  height:1px;
  background:rgba(174,243,31,.2);
}
.social-grid{
  display:grid;
  grid-template-columns:1fr 1fr;
  gap:8px;
  margin-bottom:10px;
}
.social-btn{
  border:1px solid rgba(174,243,31,.24);
  background:rgba(9,13,20,.88);
  color:#d8ecaf;
  border-radius:10px;
  padding:9px 10px;
  font-size:.82rem;
  cursor:pointer;
}
.store-btn,
.auth-submit,
.social-btn,
.close-auth,
.side-auth button,
.mobile-auth-item,
.mobile-auth-toggle{
  position:relative;
  overflow:visible;
  isolation:isolate;
  -webkit-tap-highlight-color:transparent;
}
.store-btn::after,
.auth-submit::after,
.social-btn::after,
.close-auth::after,
.side-auth button::after,
.mobile-auth-item::after,
.mobile-auth-toggle::after{
  content:'';
  position:absolute;
  inset:0;
  border-radius:inherit;
  transform:scale(1);
  border:1px solid rgba(174,243,31,.0);
  box-shadow:0 0 0 0 rgba(174,243,31,0);
  opacity:0;
  pointer-events:none;
  z-index:-1;
}
.is-pressed::after{
  animation:pressGlow .5s ease-out;
}
@keyframes pressGlow{
  0%{
    opacity:.0;
    border-color:rgba(174,243,31,.0);
    box-shadow:0 0 0 0 rgba(174,243,31,0);
    transform:scale(1);
  }
  20%{
    opacity:1;
    border-color:rgba(174,243,31,.32);
    box-shadow:0 0 0 2px rgba(174,243,31,.12), 0 0 10px rgba(174,243,31,.14);
  }
  100%{
    opacity:0;
    border-color:rgba(174,243,31,0);
    box-shadow:0 0 0 10px rgba(174,243,31,0), 0 0 20px rgba(174,243,31,0);
    transform:scale(1.04);
  }
}
.auth-switch{
  display:flex;
  justify-content:center;
  gap:6px;
  color:#9eb277;
  font-size:.78rem;
}
.auth-switch button{
  border:none;
  background:none;
  color:#d7efaa;
  cursor:pointer;
  font-weight:700;
}

.eyebrow{
  display:inline-flex;
  align-items:center;
  gap:8px;
  font-size:.75rem;
  color:var(--accent);
  letter-spacing:2px;
  text-transform:uppercase;
  margin-bottom:14px;
}
.app-name{
  display:inline-block;
  margin-bottom:14px;
  padding:10px 14px;
  border-radius:12px;
  border:1px solid rgba(174,243,31,.45);
  background:linear-gradient(180deg, rgba(174,243,31,.18), rgba(174,243,31,.08));
  color:#f4ffd9;
  font-weight:800;
  letter-spacing:1.2px;
  text-transform:uppercase;
  box-shadow:0 0 24px rgba(174,243,31,.2);
}
.eyebrow::before{
  content:'';
  width:26px;height:1px;background:var(--accent);
  box-shadow:0 0 12px var(--accent);
}
h1{
  font-size:clamp(1.45rem,2.8vw,2.55rem);
  line-height:1.15;
  letter-spacing:.4px;
  margin-bottom:14px;
}
h1 span{color:var(--accent)}
p{
  color:var(--muted);
  font-size:clamp(.98rem,1.7vw,1.1rem);
  line-height:1.7;
  max-width:56ch;
  margin-bottom:26px;
}

.cta-row{
  display:flex;
  flex-wrap:wrap;
  gap:12px;
  grid-column:1/2;
}
.cta-row-mobile{display:none}
.store-btn{
  text-decoration:none;
  color:var(--text);
  background:#0b1119;
  border:1px solid rgba(174,243,31,.26);
  border-radius:14px;
  padding:12px 16px;
  display:flex;
  gap:10px;
  align-items:center;
  min-width:200px;
  transition:.25s ease;
}
.store-btn:hover{
  transform:translateY(-2px);
  border-color:var(--accent);
  box-shadow:0 10px 26px rgba(174,243,31,.18);
  background:#101822;
}
.store-btn b{display:block;font-size:.98rem;letter-spacing:.2px}
.store-btn small{display:block;color:var(--muted);font-size:.72rem}
.icon{
  width:28px;height:28px;border-radius:8px;
  background:linear-gradient(135deg,rgba(174,243,31,.9),rgba(174,243,31,.45));
  color:#111;
  font-weight:900;
  display:grid;place-items:center;
  flex-shrink:0;
}

.phone{
  justify-self:end;
  width:min(280px,100%);
  aspect-ratio:9/18.5;
  border-radius:32px;
  border:1px solid rgba(174,243,31,.36);
  background:
    radial-gradient(circle at 65% 20%, rgba(174,243,31,.32), transparent 35%),
    linear-gradient(170deg,#10181f,#070c13 58%, #0d1706);
  position:relative;
  overflow:hidden;
  box-shadow:0 22px 50px rgba(0,0,0,.52), 0 0 34px rgba(174,243,31,.22);
  animation:floatPhone 5.6s ease-in-out infinite;
  padding:10px;
}
@keyframes floatPhone{
  0%,100%{transform:translateY(0) rotate(-2deg)}
  50%{transform:translateY(-10px) rotate(1deg)}
}
.screen-shot{
  width:100%;
  height:100%;
  border-radius:24px;
  object-fit:cover;
  object-position:center top;
  display:block;
  box-shadow:inset 0 0 0 1px rgba(255,255,255,.08);
}
.screen-glass{
  position:absolute;
  inset:10px;
  border-radius:24px;
  pointer-events:none;
  background:linear-gradient(155deg, rgba(255,255,255,.16), rgba(255,255,255,0) 30%);
  mix-blend-mode:screen;
  opacity:.36;
}

@media (max-width:820px){
  body{overflow-x:hidden;overflow-y:auto}
  .wrap{padding:14px}
  .stack{gap:20px}
  .side-auth{display:none}
  .mobile-auth-toggle{display:block}
  .mobile-auth-menu{display:block}
  .card{
    width:100%;
    max-width:460px;
    grid-template-columns:1fr;
    gap:16px;
    padding:18px;
    border-radius:20px;
  }
  .copy-col{order:1}
  .phone{order:2}
  .copy-col .cta-row{display:none}
  .cta-row-mobile{display:flex;order:3;margin-top:2px}
  .eyebrow{font-size:.66rem;letter-spacing:1.4px;margin-bottom:10px}
  .app-name{padding:8px 10px;font-size:.74rem;letter-spacing:.8px;margin-bottom:10px}
  h1{font-size:clamp(1.24rem,6vw,1.8rem);line-height:1.2;margin-bottom:10px}
  p{font-size:.92rem;line-height:1.55;margin-bottom:16px}
  .cta-row{flex-direction:column;gap:10px}
  .store-btn{width:100%;min-width:0;padding:11px 12px}
  .phone{
    justify-self:center;
    width:min(220px,68vw);
    padding:8px;
    border-radius:26px;
  }
  .screen-shot,.screen-glass{border-radius:18px}
  .footer-card{padding:16px}
  .footer-grid{grid-template-columns:1fr;gap:10px}
  .footer-bottom{font-size:.72rem}
}

@media (max-width:420px){
  .wrap{padding:10px}
  .card{padding:14px;border-radius:16px}
  .phone{width:min(198px,72vw)}
  .icon{width:24px;height:24px;border-radius:7px}
  .store-btn b{font-size:.9rem}
  .store-btn small{font-size:.68rem}
}

@media (max-width:1280px){
  .side-auth{display:none}
}

body.legal-page,
body.legal-page *{
  -webkit-user-select:none;
  -moz-user-select:none;
  user-select:none;
  -webkit-touch-callout:none;
}
body.legal-page{
  background:
    radial-gradient(900px 420px at 10% -10%, rgba(174,243,31,.08), transparent 60%),
    radial-gradient(700px 360px at 100% 0%, rgba(0,180,216,.06), transparent 55%),
    #06080d;
}
body.legal-page ::selection{
  background:transparent;
}
.legal-wrap{
  position:relative;
  min-height:100dvh;
  padding:32px 24px 48px;
  z-index:1;
}
.legal-card{
  width:min(860px,100%);
  margin:0 auto;
  background:linear-gradient(180deg, rgba(14,19,28,.72), rgba(8,11,17,.58));
  border:1px solid rgba(174,243,31,.12);
  border-radius:28px;
  backdrop-filter:blur(22px) saturate(130%);
  -webkit-backdrop-filter:blur(22px) saturate(130%);
  box-shadow:
    0 20px 80px rgba(0,0,0,.44),
    inset 0 1px 0 rgba(255,255,255,.12);
  padding:40px 48px;
}
.legal-header{
  margin-bottom:28px;
  padding-bottom:24px;
  border-bottom:1px solid rgba(174,243,31,.1);
}
.legal-back{
  display:inline-block;
  color:var(--accent);
  text-decoration:none;
  font-size:.82rem;
  font-weight:500;
  margin-bottom:20px;
  opacity:.85;
}
.legal-back:hover{opacity:1}
.legal-title{
  font-size:clamp(1.5rem,3vw,2.1rem);
  line-height:1.2;
  margin-bottom:10px;
  color:#f0ffd1;
}
.legal-subtitle{
  color:#d2e6ad;
  font-size:.98rem;
  line-height:1.45;
  margin-bottom:6px;
}
.legal-revision{
  color:var(--muted);
  font-size:.82rem;
  margin:0;
}
.legal-text{
  font-size:.94rem;
  line-height:1.7;
}
.legal-section + .legal-section{
  margin-top:8px;
}
.legal-section-title{
  font-size:1.08rem;
  font-weight:700;
  line-height:1.35;
  color:#f0ffd1;
  margin:28px 0 14px;
  padding-bottom:10px;
  border-bottom:1px solid rgba(174,243,31,.14);
}
.legal-section:first-child .legal-section-title{
  margin-top:0;
}
.legal-paragraph{
  margin:0 0 14px;
  color:#dcebb8;
}
.legal-clause{
  margin:0 0 12px;
  padding:10px 0 10px 14px;
  border-left:2px solid rgba(174,243,31,.18);
  color:#c8dba8;
}
.legal-clause:last-child,
.legal-paragraph:last-child{
  margin-bottom:0;
}
@media (max-width:720px){
  .legal-wrap{padding:16px 14px 32px}
  .legal-card{padding:22px 18px;border-radius:20px}
  .legal-header{margin-bottom:20px;padding-bottom:18px}
  .legal-text{font-size:.88rem;line-height:1.65}
  .legal-section-title{font-size:1rem;margin:22px 0 12px}
  .legal-clause{padding-left:12px}
}
