/* /join: the homepage's order + payment page (2026-11-03). Two screens on one URL: order (plan, terms, email) and
   payment (Stripe), then success. Self-contained so nothing here points at /start (the ad funnel). Tokens and the
   checkout pieces mirror start/funnel.css so both checkouts look the same. */
:root {
  --ink: #0B0D12; --ink-soft: #5B6472; --canvas: #F6F8FB; --surface: #fff; --surface-muted: #EDF1F7; --line: #E1E6EE;
  --midnight: #080A0F; --accent: #1652F0; --accent-soft: #E8EFFF; --glow: #76A4FF; --aqua: #4F7DFF;
  --success: #14805E; --success-soft: #E7F6F0; --danger: #D7444E;
  --font: -apple-system, BlinkMacSystemFont, "SF Pro Text", "SF Pro Display", Inter, system-ui, "Segoe UI", Roboto, sans-serif;
  --rounded: -apple-system, BlinkMacSystemFont, "SF Pro Rounded", "SF Pro Display", Inter, system-ui, sans-serif;
}
* { box-sizing: border-box; -webkit-tap-highlight-color: transparent; }
[hidden] { display: none !important; }
html, body { margin: 0; min-height: 100%; }
body { font-family: var(--font); color: var(--ink); -webkit-font-smoothing: antialiased; min-height: 100dvh; background: radial-gradient(600px 500px at 88% -8%, rgba(22,82,240,.11), transparent 62%), radial-gradient(520px 480px at -8% 108%, rgba(79,125,255,.10), transparent 62%), linear-gradient(135deg, #F7F9FE 0%, #EEF3FF 32%, #F8FAFF 58%, #DCE6FF 100%); }
body.dark { background: radial-gradient(640px 640px at 82% 104%, rgba(22,82,240,.42), transparent 62%), radial-gradient(460px 460px at 8% -8%, rgba(118,164,255,.18), transparent 62%), linear-gradient(135deg, #070910 0%, #0A1020 22%, #0E1C3F 48%, #123B87 80%, #1F55D6 100%); color: #fff; }
a { color: var(--accent); text-decoration: none; }
h1 { font-size: 30px; line-height: 1.08; letter-spacing: -.02em; font-weight: 800; margin: 0; }
h1 b { color: var(--accent); font-weight: 800; }
.dark h1 b { color: var(--glow); }
p { margin: 0; }
.sub { font-size: 16px; line-height: 1.45; font-weight: 500; color: var(--ink-soft); margin-top: 10px; }
.dark .sub { color: rgba(255,255,255,.64); }
.caption { font-size: 12px; font-weight: 500; color: var(--ink-soft); line-height: 1.45; }
.center { text-align: center; }

/* Top bar + column */
.top { display: flex; align-items: center; justify-content: space-between; max-width: 520px; margin: 0 auto; padding: 16px 20px 0; }
.mark { display: inline-flex; align-items: center; gap: 9px; font-size: 18px; font-weight: 800; letter-spacing: -.02em; color: inherit; }
.mark img { width: 34px; height: 34px; border-radius: 9px; }
.top .login { font-size: 14px; font-weight: 600; color: var(--ink-soft); }
.dark .top .login { color: rgba(255,255,255,.7); }
.col { max-width: 520px; margin: 0 auto; padding: 18px 20px calc(40px + env(safe-area-inset-bottom)); }
.panel { background: rgba(255,255,255,.66); border: 1px solid rgba(255,255,255,.9); backdrop-filter: blur(20px) saturate(1.3); -webkit-backdrop-filter: blur(20px) saturate(1.3); box-shadow: 0 18px 50px rgba(11,13,18,.08); border-radius: 28px; padding: 28px 26px 24px; }
.dark .panel { background: rgba(255,255,255,.06); border-color: rgba(255,255,255,.14); box-shadow: none; }
.screen { animation: enter .36s cubic-bezier(.2,.8,.2,1); }
@keyframes enter { from { opacity: 0; transform: translateY(10px); } to { opacity: 1; transform: none; } }
.backrow { display: flex; align-items: center; gap: 10px; margin-bottom: 14px; }
.iconbtn { width: 40px; height: 40px; border-radius: 50%; border: 1px solid rgba(11,13,18,.08); background: #fff; display: grid; place-items: center; cursor: pointer; color: var(--ink); padding: 0; box-shadow: 0 3px 8px rgba(11,13,18,.05); }
.iconbtn svg { width: 17px; height: 17px; }
.eyebrow { font-size: 12px; font-weight: 800; letter-spacing: .08em; color: var(--accent); margin-bottom: 10px; }
.steps { display: flex; gap: 6px; margin-bottom: 18px; }
.steps i { flex: 1; height: 4px; border-radius: 2px; background: rgba(11,13,18,.08); }
.steps i.on { background: var(--accent); }

/* Buttons */
.btn { display: flex; align-items: center; justify-content: center; gap: 10px; width: 100%; height: 54px; border-radius: 27px; border: 0; cursor: pointer; font: inherit; font-size: 17px; font-weight: 600; color: #fff; background: linear-gradient(90deg, var(--accent), var(--aqua)); box-shadow: 0 10px 26px rgba(22,82,240,.28), inset 0 1px 0 rgba(255,255,255,.28); transition: transform .12s ease, opacity .2s ease; text-decoration: none; }
.btn:active { transform: scale(.985); }
.btn.light { background: #fff; color: var(--midnight); box-shadow: 0 10px 26px rgba(0,0,0,.18); }
.btn svg { width: 16px; height: 16px; }
.btn[disabled] { background: rgba(255,255,255,.6); color: rgba(11,13,18,.45); box-shadow: none; border: 1px solid rgba(11,13,18,.08); cursor: default; }
.textbtn { background: none; border: 0; font: inherit; font-size: 14px; font-weight: 600; color: var(--accent); padding: 6px 0; cursor: pointer; }

/* What you get */
.gets { list-style: none; margin: 18px 0 0; padding: 0; display: flex; flex-direction: column; gap: 9px; }
.gets li { display: flex; gap: 10px; align-items: flex-start; font-size: 14.5px; font-weight: 500; color: var(--ink); }
.gets svg { width: 18px; height: 18px; flex: none; color: var(--accent); margin-top: 1px; }

/* Plan cards (same as the funnel's) */
.plans { display: flex; flex-direction: column; gap: 10px; margin-top: 18px; }
.plan { position: relative; display: flex; align-items: center; gap: 12px; padding: 14px 16px; border-radius: 20px; border: 1.5px solid rgba(255,255,255,.9); background: rgba(255,255,255,.88); box-shadow: 0 6px 14px rgba(11,13,18,.05); cursor: pointer; font: inherit; text-align: left; width: 100%; color: var(--ink); }
.plan.on { border-color: var(--accent); box-shadow: 0 12px 28px rgba(22,82,240,.16); }
.plan.solo { cursor: default; }
.plan .radio { width: 22px; height: 22px; border-radius: 50%; border: 2px solid rgba(11,13,18,.18); display: grid; place-items: center; flex: none; }
.plan.on .radio { border-color: var(--accent); background: var(--accent); }
.plan.on .radio::after { content: ""; width: 8px; height: 8px; border-radius: 50%; background: #fff; }
.plan > span:nth-child(2), .plan > span:nth-child(3) { min-width: 0; }
.plan .t { font-weight: 700; font-size: 16px; }
.plan .d { font-size: 12px; color: var(--ink-soft); font-weight: 500; margin-top: 2px; white-space: nowrap; }
.plan .price { margin-left: auto; flex: none; display: inline-flex; align-items: baseline; justify-content: flex-end; font-family: var(--rounded); font-weight: 800; font-size: 23px; letter-spacing: -.02em; white-space: nowrap; font-variant-numeric: tabular-nums; }
.plan .price small { font-size: 12px; font-weight: 600; color: var(--ink-soft); letter-spacing: 0; display: inline-block; width: 3.9em; text-align: left; }
.plan .ribbon { position: absolute; top: -9px; right: 14px; font-size: 10px; font-weight: 800; letter-spacing: .06em; padding: 3px 8px; border-radius: 999px; background: var(--accent); color: #fff; }
.disclosure { font-size: 12px; color: var(--ink-soft); text-align: center; line-height: 1.45; margin-top: 12px; }

/* Email field (floating label, same as the funnel's) */
.field { display: block; margin-top: 20px; }
.field.float { position: relative; }
.field.float input { width: 100%; height: 56px; padding: 22px 16px 6px; border-radius: 12px; border: 1px solid #D5DBE5; background: #fff; box-shadow: 0 1px 2px rgba(11,13,18,.04); font: inherit; font-size: 16px; color: var(--ink); outline: none; }
.field.float .fl { position: absolute; left: 17px; top: 50%; transform: translateY(-50%); margin: 0; font-size: 16px; font-weight: 500; color: #6B7280; pointer-events: none; transition: top .15s ease, transform .15s ease, font-size .15s ease; }
.field.float input:focus ~ .fl, .field.float input:not(:placeholder-shown) ~ .fl { top: 9px; transform: none; font-size: 12px; }
.field.float input:focus { border-color: var(--accent); box-shadow: 0 0 0 .5px var(--accent), 0 0 0 3.5px rgba(22,82,240,.18); }
.field.float input.invalid, .field.float input:focus.invalid { border-color: var(--danger); box-shadow: 0 0 0 .5px var(--danger); }
.field.float input.invalid ~ .fl { color: var(--danger); }
.field.float input:-webkit-autofill { -webkit-box-shadow: 0 0 0 40px #fff inset; -webkit-text-fill-color: var(--ink); }
.field .hint { display: block; margin: 7px 0 0 2px; font-size: 12px; font-weight: 500; color: var(--ink-soft); }
.payerr { min-height: 18px; margin: 8px 0 0; font-size: 13px; font-weight: 600; color: var(--danger); }
.payerr a { color: inherit; text-decoration: underline; }
.fine { font-size: 12px; color: var(--ink-soft); line-height: 1.5; margin-top: 16px; text-align: center; }
.footlinks { display: flex; justify-content: center; gap: 18px; font-size: 12px; color: var(--ink-soft); font-weight: 600; margin-top: 14px; }
.footlinks a { color: inherit; }

/* Checkout pieces */
.glass { background: rgba(255,255,255,.7); border: 1px solid rgba(255,255,255,.9); box-shadow: 0 8px 24px rgba(11,13,18,.06); }
.summary { display: flex; flex-direction: column; align-items: stretch; gap: 10px; padding: 14px 16px; border-radius: 18px; margin-top: 16px; }
.summary .row { display: flex; align-items: center; justify-content: space-between; gap: 12px; }
.summary .row + .row { border-top: 1px solid rgba(11,13,18,.08); padding-top: 10px; }
.summary .t { font-weight: 700; font-size: 15px; }
.summary .d { font-size: 12px; color: var(--ink-soft); font-weight: 500; margin-top: 2px; }
.timeline { margin-top: 22px; display: flex; flex-direction: column; gap: 14px; }
.timeline .r { display: flex; gap: 14px; align-items: flex-start; }
.timeline .ic { width: 42px; height: 42px; border-radius: 14px; background: var(--accent-soft); color: var(--accent); display: grid; place-items: center; flex: none; }
.timeline .ic svg { width: 21px; height: 21px; }
.timeline .t { font-weight: 800; font-size: 15.5px; letter-spacing: -.01em; }
.timeline .d { font-size: 13.5px; color: var(--ink-soft); font-weight: 500; line-height: 1.4; margin-top: 2px; }
.due { display: flex; align-items: baseline; justify-content: space-between; margin-top: 18px; }
.due span { font-size: 18px; font-weight: 800; }
.due b { font-family: var(--rounded); font-size: 30px; font-weight: 900; letter-spacing: -.02em; font-variant-numeric: tabular-nums; }
@keyframes shimmer { from { background-position: 200% 0; } to { background-position: -200% 0; } }
.express { margin-top: 14px; min-height: 50px; border-radius: 25px; background: linear-gradient(90deg, rgba(255,255,255,.55), rgba(255,255,255,.85), rgba(255,255,255,.55)); background-size: 200% 100%; animation: shimmer 1.4s linear infinite; }
.express.ready { min-height: 0; background: none; animation: none; }
.express.hidden, .divider.hidden { display: none; }
.divider { display: flex; align-items: center; gap: 12px; margin: 14px 0 2px; font-size: 12px; font-weight: 600; color: var(--ink-soft); }
.divider::before, .divider::after { content: ""; flex: 1; height: 1px; background: rgba(11,13,18,.1); }
.secure { display: flex; align-items: center; justify-content: center; gap: 6px; margin: 10px 0 0; font-size: 13px; color: var(--ink-soft); }
.secure svg { width: 14px; height: 14px; }
.payment { margin-top: 10px; min-height: 196px; }
.payment .skeleton { height: 56px; border-radius: 12px; background: linear-gradient(90deg, rgba(255,255,255,.7), rgba(255,255,255,.95), rgba(255,255,255,.7)); background-size: 200% 100%; animation: shimmer 1.4s linear infinite; margin: 12px 0 0; border: 1px solid rgba(213,219,229,.7); }
.payment .skeleton:first-child { margin-top: 0; }
.payment .skeleton.row { display: flex; gap: 12px; height: auto; background: none; border: 0; animation: none; }
.payment .skeleton.row i { flex: 1; height: 56px; border-radius: 12px; border: 1px solid rgba(213,219,229,.7); background: linear-gradient(90deg, rgba(255,255,255,.7), rgba(255,255,255,.95), rgba(255,255,255,.7)); background-size: 200% 100%; animation: shimmer 1.4s linear infinite; }
.payment.ready { min-height: 0; }
.payment.ready .skeleton { display: none; }
.paywrap { margin-top: 14px; }
.consent { margin-top: 14px; }
.consent a { color: var(--accent); font-weight: 600; }
.trustrow { display: flex; justify-content: center; gap: 8px; margin-top: 14px; flex-wrap: wrap; }
.trustrow .ti { display: inline-flex; align-items: center; padding: 5px 7px; border-radius: 999px; background: var(--success-soft); color: var(--success); font-size: 9.5px; font-weight: 800; letter-spacing: .03em; text-transform: uppercase; white-space: nowrap; }

/* Success */
.emoji-xl { font-size: 72px; line-height: 1; animation: pop .6s cubic-bezier(.2,.9,.3,1.3); }
@keyframes pop { from { transform: scale(.4); opacity: 0; } to { transform: none; opacity: 1; } }
.success { text-align: center; padding: 30px 0 10px; }
.success .btn { margin-top: 26px; }

@media (max-width: 480px) {
  .col { padding: 12px 16px calc(32px + env(safe-area-inset-bottom)); }
  .panel { padding: 22px 18px 20px; border-radius: 24px; }
  h1 { font-size: 27px; }
}
@media (prefers-reduced-motion: reduce) { .screen, .emoji-xl, .express, .payment .skeleton, .payment .skeleton.row i { animation: none; } }
