/* The plans page (upgrade.html) and Practice Setup (setup.html) in the same look as the app and the website (Nov 2).
   Colors, the logo and night mode come from the shared /assets/brand.css; this file only lays those two pages out.
   The short names below (--ink, --soft, ...) are aliases so the pages' own inline styles keep working. */
:root {
  --ink: var(--brand-text); --ink-2: var(--brand-text-muted); --ink-3: var(--brand-text-muted);
  --line: var(--brand-border); --soft: var(--brand-bg);
  --mint: var(--brand-primary-soft); --sun-2: var(--brand-accent-soft); --sky: var(--brand-primary-tint);
  --yellow: var(--brand-accent); --red: var(--brand-danger); --blue: var(--brand-primary);
}
* { box-sizing: border-box; }
[hidden] { display: none !important; }
body { margin: 0; min-height: 100vh; background: var(--brand-glow, none) no-repeat, var(--brand-bg); color: var(--brand-text); font-family: var(--brand-font, 'Manrope', -apple-system, BlinkMacSystemFont, 'Segoe UI', sans-serif); font-size: 17px; line-height: 1.5; }
h1, h2, h3, p { margin: 0; }
h1, h2, h3 { font-family: 'Lexend', var(--brand-font, system-ui, sans-serif); font-weight: 600; color: var(--brand-heading); text-wrap: balance; }
a { color: var(--brand-link); font-weight: 600; text-underline-offset: 3px; }
a:focus-visible, button:focus-visible, input:focus-visible, textarea:focus-visible, .drop:focus-within { outline: 3px solid var(--brand-accent); outline-offset: 2px; }
.wrap { max-width: 1080px; margin: 0 auto; padding-inline: clamp(16px, 5vw, 48px); }
.narrow { max-width: 760px; }
.stack { display: flex; flex-direction: column; }

/* header: the app's logo, and a way back */
header .wrap { display: flex; align-items: center; justify-content: space-between; gap: 16px; padding-block: 20px; }
header .logo { display: block; text-decoration: none; color: inherit; }
header .back { font-weight: 600; text-decoration: none; color: var(--brand-text); padding: 10px 18px; border-radius: 999px; background: var(--brand-glass); box-shadow: 0 0 0 1px var(--brand-border-soft) inset, var(--brand-depth, none); }
main { padding-block: clamp(24px, 5vw, 48px) 64px; }
.setup-main { display: flex; flex-direction: column; gap: 24px; }

.intro { gap: 10px; margin-bottom: 28px; }
.setup-main .intro { margin-bottom: 0; }
.intro h1 { font-size: clamp(28px, 4vw, 40px); letter-spacing: -.5px; line-height: 1.1; }
.intro p { color: var(--brand-text-muted); max-width: 60ch; }
.eyebrow { align-self: flex-start; font-size: 12px; font-weight: 800; letter-spacing: 1px; text-transform: uppercase; padding: 5px 12px; border-radius: 999px; background: var(--brand-accent-soft); color: var(--brand-accent-text); }

/* cards and notices: white, soft depth */
.notice, .card, .status { background: var(--brand-card); border-radius: 22px; box-shadow: var(--brand-depth, none), 0 0 0 1px var(--brand-border-soft) inset; }
.notice { padding: 18px 22px; margin-bottom: 24px; display: flex; flex-direction: column; gap: 8px; }
.setup-main .notice { margin-bottom: 0; }
.notice.good { background: var(--brand-primary-soft); }
.notice.warn { background: var(--brand-danger-soft); box-shadow: 0 0 0 1px var(--brand-danger-border) inset; }
.notice h2 { font-size: 21px; }
.notice > .btn { align-self: flex-start; }
.status { display: flex; flex-wrap: wrap; gap: 14px; align-items: center; justify-content: space-between; padding: 16px 22px; margin-bottom: 24px; }
.card { padding: clamp(20px, 4vw, 28px); gap: 14px; }
.card h2 { font-size: 21px; }
.card h3 { font-size: 22px; }

/* the Monthly and Yearly switch */
.toggle { display: inline-flex; border-radius: 999px; background: var(--brand-card); padding: 4px; gap: 4px; margin-bottom: 24px; box-shadow: var(--brand-depth, none), 0 0 0 1px var(--brand-border-soft) inset; }
.toggle button { font: inherit; font-weight: 700; font-size: 15px; border: 0; background: transparent; border-radius: 999px; padding: 10px 18px; min-height: 44px; cursor: pointer; color: var(--brand-text); }
.toggle button[aria-pressed="true"] { background: var(--brand-pill); color: var(--brand-on-primary); }
.toggle small { font-weight: 600; opacity: .85; }
.group-title { font-size: 20px; margin: 30px 0 14px; }
.promo { display: flex; flex-direction: column; gap: 6px; max-width: 340px; margin-bottom: 20px; }
.promo label { font-weight: 700; font-size: 15px; }
.promo .opt { font-weight: 500; color: var(--brand-text-muted); }

/* plan cards */
.grid { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 22px; align-items: stretch; }
@media (max-width: 900px) { .grid { grid-template-columns: minmax(0, 1fr); } }
.grid .card { position: relative; transition: transform .25s ease, box-shadow .25s ease; }
.grid .card:hover { transform: translateY(-4px); }
.card.pick { background: linear-gradient(160deg, var(--brand-primary-tint), var(--brand-primary-soft)); box-shadow: 0 0 0 2px var(--brand-primary) inset, var(--brand-depth-float, none); }
.amount { font-family: 'Lexend', var(--brand-font, system-ui, sans-serif); font-size: 36px; font-weight: 600; line-height: 1; font-variant-numeric: tabular-nums; }
.amount span { font-family: var(--brand-font, system-ui, sans-serif); font-size: 16px; font-weight: 600; color: var(--brand-text-muted); }
.was { font-size: 14px; color: var(--brand-text-muted); }
.then { font-size: 17px; font-weight: 700; color: var(--brand-text-muted); }
.strike { font-size: 24px; font-weight: 600; color: var(--brand-text-muted); margin-right: 6px; text-decoration-thickness: 2px; }
.card ul { margin: 0; padding-left: 20px; display: flex; flex-direction: column; gap: 6px; color: var(--brand-text-muted); font-size: 15px; flex-grow: 1; }
.card li::marker { color: var(--brand-primary); }
.badge { align-self: flex-start; font-size: 12px; font-weight: 800; letter-spacing: 1px; text-transform: uppercase; padding: 5px 12px; border-radius: 999px; background: var(--brand-accent); color: #14213d; }
.setup { margin-top: 32px; }
.setup .row { display: flex; flex-wrap: wrap; gap: 18px; align-items: center; justify-content: space-between; }
.row2 { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 16px; }
@media (max-width: 560px) { .row2 { grid-template-columns: minmax(0, 1fr); } }

/* buttons */
.btn { display: inline-flex; align-items: center; justify-content: center; min-height: 50px; padding: 0 24px; border-radius: 999px; font: inherit; font-weight: 700; font-size: 16px; text-decoration: none; border: 0; cursor: pointer; background: var(--brand-pill); color: var(--brand-on-primary); box-shadow: 0 1px 0 rgba(255,255,255,.25) inset, 0 8px 20px -8px rgba(39,118,80,.6); transition: transform .2s ease, box-shadow .2s ease; }
.btn:hover { transform: translateY(-2px); }
.btn.light { background: var(--brand-card); color: var(--brand-text); box-shadow: 0 0 0 1.5px var(--brand-border) inset, var(--brand-depth, none); }
.btn[disabled] { opacity: .6; cursor: wait; transform: none; }

/* forms (Practice Setup) */
.hint { color: var(--brand-text-muted); font-size: 15px; }
label.f { display: flex; flex-direction: column; gap: 6px; font-weight: 700; font-size: 15px; }
label.f small { font-weight: 500; color: var(--brand-text-muted); }
input[type=text], input[type=url], textarea, .promo input { font: inherit; font-size: 16px; font-weight: 500; border: 0; box-shadow: 0 0 0 1.5px var(--brand-border) inset; border-radius: 14px; padding: 12px 16px; background: var(--brand-card); color: var(--brand-text); width: 100%; min-height: 48px; }
.promo input { text-transform: uppercase; }
textarea { min-height: 96px; resize: vertical; }
input:focus, textarea:focus { outline: none; box-shadow: 0 0 0 2px var(--brand-text) inset, 0 0 0 5px var(--brand-focus-ring); }
.drop { border-radius: 18px; padding: 18px; display: flex; align-items: center; gap: 14px; background: var(--brand-primary-tint); box-shadow: 0 0 0 1.5px var(--brand-primary-border) inset; cursor: pointer; position: relative; }
.drop input { position: absolute; inset: 0; opacity: 0; cursor: pointer; width: 100%; }
.drop .ico { width: 44px; height: 44px; border-radius: 14px; display: grid; place-items: center; background: var(--brand-card); box-shadow: var(--brand-depth, none); flex: none; }
.drop b { display: block; }
.drop span { font-size: 14px; color: var(--brand-text-muted); }
.colors { display: flex; flex-wrap: wrap; gap: 12px; align-items: center; }
.sw { display: inline-flex; align-items: center; gap: 8px; border-radius: 999px; padding: 5px 8px 5px 5px; font-size: 14px; font-weight: 600; font-variant-numeric: tabular-nums; background: var(--brand-card); box-shadow: 0 0 0 1.5px var(--brand-border) inset; }
.sw input[type=color] { width: 30px; height: 30px; border: 0; border-radius: 50%; padding: 0; background: none; cursor: pointer; }
.sw input[type=color]::-webkit-color-swatch-wrapper { padding: 0; }
.sw input[type=color]::-webkit-color-swatch { border: 0; border-radius: 50%; }
.sw button { font: inherit; border: 0; background: none; cursor: pointer; font-size: 18px; line-height: 1; padding: 2px 6px; color: var(--brand-text-muted); }
.addc { font: inherit; font-size: 14px; font-weight: 600; border: 0; border-radius: 999px; padding: 9px 14px; background: var(--brand-card); box-shadow: 0 0 0 1.5px var(--brand-border) inset; cursor: pointer; color: var(--brand-text-muted); }
.check { display: flex; gap: 10px; align-items: flex-start; font-size: 15px; font-weight: 600; }
.check input { width: 22px; height: 22px; margin-top: 1px; accent-color: var(--brand-primary); flex: none; }
.files { display: flex; flex-direction: column; gap: 8px; }
.file { display: flex; justify-content: space-between; gap: 12px; align-items: center; border-radius: 14px; padding: 10px 14px; font-size: 15px; box-shadow: 0 0 0 1px var(--brand-border-soft) inset; }
.file span { min-width: 0; overflow-wrap: anywhere; }
.file small { color: var(--brand-text-muted); font-variant-numeric: tabular-nums; flex: none; }
.file button { font: inherit; font-size: 14px; font-weight: 600; border: 0; background: none; text-decoration: underline; cursor: pointer; color: var(--brand-text-muted); flex: none; }
.after { background: linear-gradient(160deg, var(--brand-primary-tint), var(--brand-primary-soft)); box-shadow: var(--brand-depth, none), 0 0 0 1px var(--brand-primary-border) inset; }
.label { font-size: 12px; font-weight: 800; letter-spacing: 1px; text-transform: uppercase; color: var(--brand-text-muted); }
.error { color: var(--brand-danger); font-weight: 600; }
.fine { font-size: 14px; color: var(--brand-text-muted); margin-top: 22px; }
footer { font-size: 14px; color: var(--brand-text-muted); padding-block: 24px 40px; }
footer a { font-weight: 600; text-decoration: none; margin-right: 16px; color: var(--brand-text); }
@media (prefers-reduced-motion: reduce) { * { transition: none !important; } }
