/* The account page, one product with tenbrain.ai: the site's afternoon sky and its constellation (the hero), dark
   ink headings in Inter, and its blue 8px-cornered buttons. Calm surfaces with hairlines; the sky appears once, on
   the sign-in, and as a faint wash at the top of every other screen. Dark mode is the same sky at night. */
:root {
  --canvas: #f6f8fb; --surface: #ffffff; --surface-2: #f1f4f8; --surface-3: #e8edf3;
  --line: #e2e7ee; --line-2: #cfd7e1;
  --ink: #383838; --ink-2: #59616b; --ink-3: #6b737d;
  --primary: #0075de; --primary-hover: #005bab; --primary-soft: #e6f3fe; --primary-ink: #005bab; --on-primary: #ffffff;
  --ring: rgba(0, 117, 222, .28);
  --ok: #157a43; --ok-soft: #e4f4ea; --bad: #b42318; --bad-soft: #fdeeec; --bad-line: #f3c7c1; --bad-hover: #93180f;
  --wash: #dcecfb;
  --sky: linear-gradient(172deg, #58a8e6 0%, #8cc5ef 34%, #c9e3f7 62%, #f3eee4 86%, #fbe5cc 100%);
  --sky-ink: #383838; --sky-ink-2: #3f4a56;
  --glass: rgba(255, 255, 255, .74); --glass-line: rgba(255, 255, 255, .9);
  --shadow-1: 0 1px 2px rgba(16, 32, 56, .05);
  --shadow-2: 0 1px 2px rgba(16, 32, 56, .04), 0 4px 12px rgba(16, 32, 56, .05), 0 16px 32px rgba(16, 32, 56, .05);
  --shadow-3: 0 .7px 3.5px rgba(0, 0, 0, .01), 0 3px 7px rgba(0, 0, 0, .02), 0 10px 20px rgba(0, 0, 0, .05), 0 28px 56px rgba(0, 0, 0, .09);
  --font: 'Inter', ui-sans-serif, system-ui, -apple-system, 'Segoe UI', sans-serif;
  --mono: ui-monospace, 'SF Mono', Menlo, Consolas, monospace;
  --r-s: 6px; --r: 8px; --r-l: 12px; --r-xl: 16px;
  --ease: cubic-bezier(.16, 1, .3, 1);
  color-scheme: light;
}
@media (prefers-color-scheme: dark) {
  :root {
    --canvas: #0d1520; --surface: #131d2a; --surface-2: #19253a; --surface-3: #22314a;
    --line: #233246; --line-2: #33465f;
    --ink: #e9eef5; --ink-2: #aab7c6; --ink-3: #93a2b4;
    --primary: #0075de; --primary-hover: #1786e8; --primary-soft: rgba(56, 152, 240, .16); --primary-ink: #8cc8ff; --on-primary: #ffffff;
    --ring: rgba(80, 165, 255, .42);
    --ok: #5fd197; --ok-soft: rgba(95, 209, 151, .13); --bad: #ff8f84; --bad-soft: rgba(255, 120, 108, .12); --bad-line: rgba(255, 143, 132, .35); --bad-hover: #ffb0a8;
    --wash: #11233a;
    --sky: linear-gradient(172deg, #071a33 0%, #0d2c52 38%, #173f6b 66%, #2c3d5f 88%, #3b3a59 100%);
    --sky-ink: #f1f6fc; --sky-ink-2: #c4d3e4;
    --glass: rgba(14, 30, 52, .62); --glass-line: rgba(140, 190, 240, .22);
    --shadow-1: 0 1px 2px rgba(0, 0, 0, .3);
    --shadow-2: 0 1px 2px rgba(0, 0, 0, .25), 0 8px 24px rgba(0, 0, 0, .25);
    --shadow-3: 0 2px 6px rgba(0, 0, 0, .3), 0 24px 56px rgba(0, 0, 0, .4);
    color-scheme: dark;
  }
}

* { box-sizing: border-box; }
[hidden] { display: none !important; }
html { -webkit-text-size-adjust: 100%; }
body {
  margin: 0; color: var(--ink); font: 400 16px/1.55 var(--font); -webkit-font-smoothing: antialiased; -moz-osx-font-smoothing: grayscale;
  font-feature-settings: 'cv11', 'ss03'; min-height: 100vh; display: flex; flex-direction: column;
  background: linear-gradient(180deg, var(--wash) 0, var(--canvas) 440px) no-repeat, var(--canvas);
}
main { flex: 1; }
a { color: inherit; }
p, h1, h2, h3, ol, ul { margin: 0; }
button { font: inherit; }
:focus-visible { outline: 2px solid var(--primary); outline-offset: 2px; }
::selection { background: var(--ring); }
.wrap { max-width: 1120px; margin: 0 auto; padding: 0 24px; width: 100%; }
.wrap.narrow { max-width: 880px; }
.page { padding-bottom: clamp(48px, 8vw, 96px); }
.page > .wrap { padding-top: clamp(32px, 5vw, 64px); }
.skip { position: absolute; left: -9999px; top: 12px; z-index: 50; background: var(--surface); color: var(--ink); padding: 10px 16px; border-radius: var(--r); box-shadow: var(--shadow-2); text-decoration: none; }
.skip:focus { left: 16px; }

h1 { font: 600 clamp(34px, 4.2vw, 52px)/1.06 var(--font); letter-spacing: -.035em; text-wrap: balance; }
.h1-s { font-size: clamp(28px, 3.4vw, 40px); line-height: 1.1; letter-spacing: -.03em; }
h2 { font: 600 22px/1.25 var(--font); letter-spacing: -.02em; text-wrap: balance; }
h3 { font: 600 15px/1.4 var(--font); letter-spacing: -.006em; }
.lede { font-size: 17px; line-height: 1.55; color: var(--ink-2); max-width: 60ch; text-wrap: pretty; }
.muted { color: var(--ink-2); }
.fine { font-size: 14px; color: var(--ink-2); }
.link { color: var(--primary-ink); text-decoration: underline; text-decoration-color: color-mix(in srgb, currentColor 35%, transparent); text-underline-offset: 3px; font-weight: 500; }
.link:hover { text-decoration-color: currentColor; }
.sr { position: absolute; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; }
.loading { display: flex; align-items: center; gap: 10px; color: var(--ink-2); }
.stepchip { display: inline-flex; align-items: center; gap: 8px; justify-self: start; align-self: start; font: 500 13px/1 var(--font); color: var(--primary-ink); background: var(--primary-soft); padding: 6px 10px; border-radius: 999px; }
.stepchip:empty { display: none; }
.stepchip::before { content: ''; width: 6px; height: 6px; border-radius: 50%; background: currentColor; }

/* ------------------------------------------------------------ buttons */
.btn {
  display: inline-flex; align-items: center; justify-content: center; gap: 8px; min-height: 40px; padding: 8px 16px;
  border: 1px solid var(--line-2); border-radius: var(--r); background: var(--surface); color: var(--ink);
  font: 500 15px/1.3 var(--font); text-decoration: none; cursor: pointer; box-shadow: var(--shadow-1); white-space: nowrap;
  transition: background-color .15s ease, border-color .15s ease, color .15s ease, box-shadow .15s ease, transform .1s ease;
}
.btn:hover { background: var(--surface-2); border-color: var(--line-2); }
.btn:active { transform: translateY(1px); }
.btn:disabled { opacity: .5; cursor: not-allowed; transform: none; }
.btn.sky { background: var(--primary); border-color: var(--primary); color: var(--on-primary); box-shadow: 0 1px 2px rgba(0, 60, 120, .2), inset 0 1px 0 rgba(255, 255, 255, .12); }
.btn.sky:hover:not(:disabled) { background: var(--primary-hover); border-color: var(--primary-hover); }
.btn.sm { min-height: 32px; padding: 5px 12px; font-size: 14px; }
.btn.line { background: transparent; box-shadow: none; }
.btn.line:hover { background: var(--surface-2); }
.btn.block { width: 100%; min-height: 44px; font-size: 16px; }
.btn.danger { color: var(--bad); border-color: var(--bad-line); background: var(--surface); }
.btn.danger:hover { background: var(--bad-soft); border-color: var(--bad); }
.btn .spin { display: none; }
.btn.busy { cursor: progress; opacity: 1; }
.btn.busy .spin { display: inline-block; }
.spin { width: 16px; height: 16px; border-radius: 50%; border: 2px solid currentColor; border-right-color: transparent; animation: spin .7s linear infinite; flex: none; }
.loading .spin { color: var(--primary); }
@keyframes spin { to { transform: rotate(360deg); } }
.text-btn { background: none; border: 0; padding: 0; color: var(--primary-ink); font: 500 14px var(--font); cursor: pointer; border-radius: 4px; }
.text-btn:hover { text-decoration: underline; text-underline-offset: 3px; }
.row { display: flex; align-items: center; gap: 12px; flex-wrap: wrap; }
.row:empty { display: none; }
.row.center { justify-content: center; }

/* ------------------------------------------------------------ top bar */
.nav { position: relative; z-index: 20; background: color-mix(in srgb, var(--canvas) 70%, transparent); border-bottom: 1px solid var(--line); }
.nav .wrap { min-height: 60px; display: flex; align-items: center; justify-content: space-between; gap: 16px; }
.brand { display: inline-flex; align-items: center; gap: 10px; font: 600 17px var(--font); letter-spacing: -.015em; text-decoration: none; color: var(--ink); border-radius: 6px; }
.brand img { border-radius: 7px; display: block; }
.nav-links { display: flex; align-items: center; gap: 22px; font-size: 15px; min-width: 0; }
.nav-links a { text-decoration: none; color: var(--ink-2); border-radius: 4px; }
.nav-links a:hover { color: var(--ink); }
.who { color: var(--ink-2); font-size: 14px; max-width: 240px; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; padding-left: 22px; border-left: 1px solid var(--line); }
@media (max-width: 720px) { .hide-s, .who { display: none; } }

/* ------------------------------------------------------------ fields */
.field { display: grid; gap: 6px; min-width: 0; }
.field label, .label-row label { font: 500 14px/1.3 var(--font); color: var(--ink); }
.label-row { display: flex; justify-content: space-between; align-items: baseline; gap: 12px; }
.input {
  font: 400 16px/1.4 var(--font); color: var(--ink); background: var(--surface); border: 1px solid var(--line-2); border-radius: var(--r);
  padding: 10px 12px; width: 100%; min-height: 44px; box-shadow: var(--shadow-1); transition: border-color .15s ease, box-shadow .15s ease;
}
.input::placeholder { color: var(--ink-3); opacity: 1; }
.input:hover { border-color: color-mix(in srgb, var(--line-2) 60%, var(--ink-3)); }
.input:focus { outline: none; border-color: var(--primary); box-shadow: 0 0 0 3px var(--ring); }
.input[aria-invalid="true"] { border-color: var(--bad); }
.input[aria-invalid="true"]:focus { box-shadow: 0 0 0 3px color-mix(in srgb, var(--bad) 25%, transparent); }
.input.mono { font-family: var(--mono); font-size: 15px; letter-spacing: .04em; }
.hint { font-size: 13px; line-height: 18px; min-height: 18px; color: var(--ink-2); }
.hint.bad { color: var(--bad); font-weight: 500; }
.input-wrap { position: relative; }
.input-wrap .input { padding-right: 48px; }
.reveal { position: absolute; right: 4px; top: 50%; transform: translateY(-50%); width: 38px; height: 36px; display: grid; place-items: center; border: 0; background: none; color: var(--ink-3); border-radius: var(--r-s); cursor: pointer; }
.reveal:hover { color: var(--ink); background: var(--surface-2); }
.reveal svg { width: 20px; height: 20px; fill: none; stroke: currentColor; stroke-width: 1.5; stroke-linecap: round; stroke-linejoin: round; }
.reveal .slash { display: none; }
.reveal[aria-pressed="true"] .slash { display: inline; }
.check { display: flex; gap: 12px; align-items: flex-start; font-size: 15px; cursor: pointer; padding: 12px 14px; border: 1px solid var(--line); border-radius: var(--r); background: var(--surface-2); }
.check input { width: 18px; height: 18px; margin: 2px 0 0; accent-color: var(--primary); flex: none; cursor: pointer; }
.check:has(input:checked) { border-color: color-mix(in srgb, var(--primary) 45%, var(--line)); background: var(--primary-soft); }

/* ------------------------------------------------------------ messages */
.msg { font-size: 15px; line-height: 1.5; border: 1px solid color-mix(in srgb, var(--primary) 22%, transparent); border-radius: var(--r); padding: 12px 14px; background: var(--primary-soft); color: var(--ink); }
.msg.err { color: var(--ink); background: var(--bad-soft); border-color: var(--bad-line); }
.msg.err::first-line { color: inherit; }

/* ------------------------------------------------------------ signed out: the sky and the form */
.auth { display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 1fr); min-height: calc(100vh - 61px); }
.auth-sky { position: relative; overflow: hidden; background: var(--sky); color: var(--sky-ink); display: flex; align-items: center; padding: 64px clamp(32px, 5vw, 72px) 64px max(24px, calc((100vw - 1120px) / 2 + 24px)); isolation: isolate; }
.auth-sky::before { content: ''; position: absolute; inset: -4% -10% 0 -4%; background: url(/account/sky.svg) center / cover no-repeat; opacity: .9; z-index: -1; }
.auth-sky::after { content: ''; position: absolute; left: 50%; bottom: -34%; width: 160%; height: 70%; transform: translateX(-50%); background: radial-gradient(ellipse at center, rgba(255, 228, 180, .8), rgba(255, 210, 150, .28) 42%, transparent 70%); z-index: -1; }
.auth-pitch { display: grid; gap: 20px; max-width: 480px; width: 100%; }
.auth-pitch h1 { color: var(--sky-ink); font-size: clamp(34px, 3.9vw, 48px); }
.auth-pitch .stepchip { display: none; }
body:has(#v-auth:not([hidden])) .page { padding-bottom: 0; display: flex; flex-direction: column; }
body:has(#v-auth:not([hidden])) .auth { flex: 1; }
.auth-pitch .lede { color: var(--sky-ink-2); font-size: 17px; }
.auth-pitch .stepchip { background: var(--glass); color: var(--sky-ink); border: 1px solid var(--glass-line); backdrop-filter: blur(8px); -webkit-backdrop-filter: blur(8px); }
.auth-pitch .stepchip::before { background: var(--primary); }

.summary { display: flex; justify-content: space-between; align-items: center; gap: 16px; padding: 18px 20px; border-radius: var(--r-l); background: var(--glass); border: 1px solid var(--glass-line); box-shadow: 0 10px 30px rgba(20, 60, 110, .12); backdrop-filter: blur(14px) saturate(1.3); -webkit-backdrop-filter: blur(14px) saturate(1.3); }
.sum-main { display: grid; gap: 2px; min-width: 0; }
.sum-label { font-size: 13px; color: var(--sky-ink-2); }
.sum-name { font: 600 22px/1.2 var(--font); letter-spacing: -.02em; }
.sum-short { font-size: 14px; color: var(--sky-ink-2); }
.sum-side { display: grid; justify-items: end; gap: 6px; flex: none; }
.sum-price { font: 600 30px/1 var(--font); letter-spacing: -.03em; font-variant-numeric: tabular-nums; }
.sum-price small { font: 400 14px var(--font); color: var(--sky-ink-2); letter-spacing: 0; margin-left: 2px; }
.summary .link { font-size: 14px; color: var(--sky-ink); }

.path { list-style: none; padding: 0; display: grid; counter-reset: s; margin-top: 4px; }
.path li { counter-increment: s; position: relative; display: grid; grid-template-columns: 28px 1fr; column-gap: 14px; padding-bottom: 16px; }
.path li:last-child { padding-bottom: 0; }
.path li::before { content: counter(s); grid-row: span 2; width: 26px; height: 26px; display: grid; place-items: center; border-radius: 50%; font: 600 12px/1 var(--font); color: var(--sky-ink); background: var(--glass); border: 1px solid var(--glass-line); font-variant-numeric: tabular-nums; }
.path li:not(:last-child)::after { content: ''; position: absolute; left: 13px; top: 30px; bottom: 4px; width: 1px; background: color-mix(in srgb, var(--sky-ink) 22%, transparent); }
.path b { font-weight: 600; font-size: 15px; line-height: 26px; }
.path span { color: var(--sky-ink-2); font-size: 14px; line-height: 1.45; }
#auth-plan:not([hidden]) ~ .path li:first-child::before { background: var(--primary); color: #fff; border-color: var(--primary); }

.auth-side { display: flex; flex-direction: column; justify-content: center; align-items: center; gap: 24px; padding: 56px 24px; background: var(--surface); }
.auth-box { width: 100%; max-width: 400px; }
.auth-help { font-size: 14px; color: var(--ink-2); text-align: center; }
.auth-help a { color: var(--ink); text-underline-offset: 3px; }
.auth-card { display: grid; gap: 24px; }
.auth-card form { display: grid; gap: 14px; }
.auth-card form .go { margin-top: 6px; }
.auth-head { display: grid; gap: 6px; }
.auth-head h2 { font-size: 26px; letter-spacing: -.025em; }
.msg-slot { display: grid; min-height: 44px; }
.msg-slot > * { grid-area: 1 / 1; }
.auth-sub { font-size: 15px; line-height: 22px; color: var(--ink-2); text-wrap: pretty; }
.msg-slot:has(.form-err:not([hidden])) .auth-sub { visibility: hidden; }
.form-err { display: flex; gap: 8px; align-items: flex-start; font: 500 14px/20px var(--font); color: var(--bad); }
.form-err svg { width: 18px; height: 18px; flex: none; margin-top: 1px; fill: none; stroke: currentColor; stroke-width: 1.7; stroke-linecap: round; }

.seg { position: relative; display: grid; grid-template-columns: 1fr 1fr; padding: 4px; border-radius: 10px; background: var(--surface-2); border: 1px solid var(--line); }
.seg::before { content: ''; position: absolute; top: 4px; bottom: 4px; left: 4px; width: calc(50% - 4px); border-radius: 7px; background: var(--surface); box-shadow: 0 1px 2px rgba(16, 32, 56, .08), 0 2px 6px rgba(16, 32, 56, .06); transition: transform .3s var(--ease); }
.seg[data-on="in"]::before { transform: translateX(100%); }
.seg button { position: relative; z-index: 1; font: 500 14px var(--font); min-height: 34px; padding: 6px 12px; border: 0; border-radius: 7px; background: transparent; color: var(--ink-2); cursor: pointer; transition: color .2s ease; }
.seg button:hover { color: var(--ink); }
.seg button[aria-pressed="true"] { color: var(--ink); font-weight: 600; }
@media (prefers-color-scheme: dark) { .seg::before { background: var(--surface-3); } }

/* the recovery key, shown once */
.key-badge { width: 44px; height: 44px; display: grid; place-items: center; border-radius: var(--r-l); background: var(--primary-soft); color: var(--primary-ink); }
.key-badge svg { width: 22px; height: 22px; fill: none; stroke: currentColor; stroke-width: 1.8; stroke-linecap: round; stroke-linejoin: round; }
.key-box { display: flex; align-items: center; gap: 12px; padding: 14px 14px 14px 18px; border-radius: var(--r); background: var(--surface-2); border: 1px dashed var(--line-2); }
.key { flex: 1; min-width: 0; font: 600 17px/1.4 var(--mono); letter-spacing: .06em; user-select: all; overflow-wrap: anywhere; color: var(--ink); }

@media (max-width: 900px) {
  .auth { grid-template-columns: minmax(0, 1fr); min-height: 0; }
  .auth-sky { padding: 40px 24px 36px; }
  .auth-pitch { max-width: 560px; margin: 0 auto; gap: 16px; }
  .auth-pitch .lede { font-size: 16px; }
  .auth-pitch .path { display: none; }
  .auth-pitch .stepchip:not(:empty) { display: inline-flex; }
  .auth-side { justify-content: flex-start; padding: 32px 24px 48px; }
}
@media (max-width: 520px) {
  .auth-sky { padding: 28px 16px 28px; }
  .auth-pitch h1 { font-size: 30px; }
  .auth-pitch .lede { display: none; }
  .auth-side { padding: 24px 16px 40px; }
  .summary { padding: 14px 16px; }
  .sum-price { font-size: 24px; }
}

/* ------------------------------------------------------------ page heads and panels */
.stack { display: grid; gap: 24px; }
.page-head { display: grid; gap: 12px; }
.page-head .lede { margin-top: 2px; }
.card { background: var(--surface); border: 1px solid var(--line); border-radius: var(--r-l); box-shadow: var(--shadow-2); }
.panel { background: var(--surface); border: 1px solid var(--line); border-radius: var(--r-l); box-shadow: var(--shadow-2); overflow: hidden; }
.sect { font: 600 15px/1.4 var(--font); letter-spacing: -.006em; color: var(--ink); margin: 16px 0 -8px; }

/* ------------------------------------------------------------ choosing the plan */
.plans { display: grid; grid-template-columns: 1fr 1fr; gap: 16px; }
@media (max-width: 760px) { .plans { grid-template-columns: 1fr; } }
.plan {
  text-align: left; font: inherit; color: inherit; padding: 24px; display: grid; gap: 14px; align-content: start; cursor: pointer;
  background: var(--surface); border: 1px solid var(--line); border-radius: var(--r-l); box-shadow: var(--shadow-1);
  transition: border-color .15s ease, box-shadow .2s ease, background-color .15s ease;
}
.plan:hover { border-color: var(--line-2); box-shadow: var(--shadow-2); }
.plan[aria-checked="true"] { border-color: var(--primary); box-shadow: 0 0 0 1px var(--primary), var(--shadow-2); background: linear-gradient(180deg, var(--primary-soft), var(--surface) 70%); }
.plan:focus-visible { outline-offset: 3px; }
.plan-top { display: flex; justify-content: space-between; align-items: center; }
.plan-top b { font: 600 20px var(--font); letter-spacing: -.02em; }
.tick { width: 20px; height: 20px; border: 1.5px solid var(--line-2); border-radius: 50%; display: grid; place-items: center; background: var(--surface); transition: border-color .15s ease, background-color .15s ease; }
.plan[aria-checked="true"] .tick { border-color: var(--primary); background: var(--primary); box-shadow: inset 0 0 0 4px var(--surface); }
.price { font: 600 40px/1 var(--font); letter-spacing: -.035em; font-variant-numeric: tabular-nums; }
.price small { font: 400 15px var(--font); color: var(--ink-2); letter-spacing: 0; margin-left: 2px; }
.ticks { display: grid; gap: 9px; padding-top: 16px; border-top: 1px solid var(--line); }
.ticks span { padding-left: 26px; position: relative; font-size: 15px; line-height: 1.45; color: var(--ink); }
.ticks span::before { content: ''; position: absolute; left: 3px; top: 6px; width: 10px; height: 5px; border-left: 1.8px solid var(--primary); border-bottom: 1.8px solid var(--primary); transform: rotate(-45deg); }
.pay { padding: 20px 24px; display: grid; gap: 16px; }
.pay .field { max-width: 340px; }
.pay-row { display: flex; justify-content: space-between; align-items: center; gap: 16px; flex-wrap: wrap; }
.pay-sum { display: grid; gap: 2px; }
.pay-sum b { font: 600 17px var(--font); letter-spacing: -.01em; }
.pay-sum small { color: var(--ink-2); font-size: 14px; }
.pay .btn.sky { min-height: 44px; padding: 10px 22px; font-size: 16px; }

/* ------------------------------------------------------------ the setup */
.setup { display: grid; gap: 20px; max-width: 640px; }
.setup-card, .get-app { padding: clamp(24px, 4.5vw, 44px); display: grid; gap: 14px; }
.setup-card { text-align: center; justify-items: center; }
.setup-card .stepchip { justify-self: center; }
.setup-card .lede { margin: 0 auto; font-size: 16px; }
.setup-card h1 { margin-top: 2px; }
.setup-mark-wrap { position: relative; width: 72px; height: 72px; display: grid; place-items: center; margin-bottom: 6px; }
.setup-mark { border-radius: 14px; position: relative; z-index: 1; box-shadow: 0 6px 18px rgba(40, 120, 200, .28); }
.setup-mark-wrap::before { content: ''; position: absolute; inset: 0; border-radius: 22px; background: var(--primary-soft); transform: scale(.8); opacity: 0; }
.setup-mark-wrap:has(.busy)::before { animation: halo 2.4s var(--ease) infinite; }
.setup-mark.busy { animation: breathe 2.4s ease-in-out infinite; }
@keyframes breathe { 50% { transform: scale(.94); } }
@keyframes halo { 0% { transform: scale(.8); opacity: .9; } 100% { transform: scale(1.5); opacity: 0; } }
.steps { list-style: none; padding: 0; width: 100%; max-width: 420px; text-align: left; margin-top: 12px; display: grid; }
.step { position: relative; display: grid; grid-template-columns: 22px 1fr; gap: 14px; align-items: start; padding: 0 0 18px; }
.step:last-child { padding-bottom: 0; }
.step:not(:last-child)::after { content: ''; position: absolute; left: 10.5px; top: 27px; bottom: 4px; width: 1px; background: var(--line-2); }
.step.done:not(:last-child)::after { background: var(--ok); }
.step b { display: block; font-size: 15px; font-weight: 600; line-height: 22px; }
.step small { display: block; color: var(--ink-2); font-size: 14px; min-height: 1.45em; line-height: 1.45; }
.step.pending b { color: var(--ink-3); font-weight: 500; }
.bullet { width: 22px; height: 22px; border-radius: 50%; border: 1.5px solid var(--line-2); position: relative; background: var(--surface); }
.step.done .bullet { background: var(--ok); border-color: var(--ok); }
.step.done .bullet::after { content: ''; position: absolute; left: 6.5px; top: 3.5px; width: 5px; height: 9px; border-right: 2px solid var(--surface); border-bottom: 2px solid var(--surface); transform: rotate(40deg); }
.step.active .bullet { border: 2px solid var(--primary-soft); border-top-color: var(--primary); animation: spin .9s linear infinite; }
.step.active b { color: var(--ink); }
.step.failed .bullet { background: var(--bad); border-color: var(--bad); }
.step.failed .bullet::after { content: '!'; position: absolute; inset: 0; display: grid; place-items: center; color: var(--surface); font: 700 13px/1 var(--font); }
.setup-card .msg, .setup-card .row { margin-top: 6px; }
.get-app h2 { margin-top: 2px; }
.howto { list-style: none; padding: 0; display: grid; gap: 12px; counter-reset: h; }
.howto li { counter-increment: h; position: relative; padding-left: 36px; line-height: 1.5; }
.howto li::before { content: counter(h); position: absolute; left: 0; top: 0; width: 24px; height: 24px; display: grid; place-items: center; border-radius: 50%; background: var(--surface-2); border: 1px solid var(--line); font: 600 12px/1 var(--font); color: var(--ink-2); }
.howto b { font-weight: 600; }
.get-app .row { margin-top: 6px; }
.get-app .fine:empty { display: none; }
.get-app-foot { border-top: 1px solid var(--line); padding-top: 18px; margin-top: 8px; display: flex; justify-content: flex-end; }

/* ------------------------------------------------------------ the account */
.dash { display: grid; gap: 20px; }
.hello { display: grid; gap: 6px; margin-bottom: 4px; }
.banner { display: flex; align-items: center; justify-content: space-between; gap: 12px 16px; flex-wrap: wrap; }
.duo { display: grid; grid-template-columns: 1fr 1fr; }
.duo > .tile + .tile { border-left: 1px solid var(--line); }
@media (max-width: 860px) {
  .duo { grid-template-columns: 1fr; }
  .duo > .tile + .tile { border-left: 0; border-top: 1px solid var(--line); }
}
.tile { padding: 24px; display: grid; gap: 12px; align-content: start; min-width: 0; }
.tile-top { display: flex; justify-content: space-between; align-items: center; gap: 12px; min-height: 26px; }
.tile-top h3 { color: var(--ink); }
.tile-note { font-size: 13px; color: var(--ink-2); }
.tile-value { font: 600 24px/1.2 var(--font); letter-spacing: -.025em; display: flex; align-items: baseline; gap: 10px; flex-wrap: wrap; }
.tile-value span { font: 400 15px var(--font); color: var(--ink-2); letter-spacing: 0; }
.tile-when { font-size: 15px; }
.tile .row { margin-top: 4px; }
.tile .msg { font-size: 14px; }
.tile-sub { display: flex; align-items: center; justify-content: space-between; gap: 12px 16px; flex-wrap: wrap; padding-top: 14px; margin-top: 4px; border-top: 1px solid var(--line); font-size: 14px; }
.tile-sub p { flex: 1 1 220px; }
.tile-sub .msg { padding: 8px 12px; }
.tile .howto { font-size: 15px; }
.pill { display: inline-flex; align-items: center; gap: 6px; font: 500 12.5px/1 var(--font); padding: 5px 9px 5px 8px; border-radius: 999px; white-space: nowrap; }
.pill .dot { width: 6px; height: 6px; border-radius: 50%; background: currentColor; }
.pill.ok { color: var(--ok); background: var(--ok-soft); }
.pill.ok .dot { box-shadow: 0 0 0 3px color-mix(in srgb, var(--ok) 22%, transparent); }
.pill.wait { color: var(--primary-ink); background: var(--primary-soft); }
.pill.bad { color: var(--bad); background: var(--bad-soft); }
.pill.grey { color: var(--ink-2); background: var(--surface-2); }
.qr { display: flex; gap: 18px; align-items: center; flex-wrap: wrap; border-top: 1px solid var(--line); padding-top: 16px; }
.qr img { border: 1px solid var(--line); border-radius: var(--r); background: #fff; padding: 6px; }
.qr div { display: grid; gap: 8px; flex: 1; min-width: 200px; font-size: 15px; }
.qr .btn { justify-self: start; }

.acct-block { display: grid; gap: 20px; }
.page > .acct-block { padding-top: 28px; }
.list > .acct + .acct { border-top: 1px solid var(--line); }
.acct { padding: 20px 24px; display: flex; justify-content: space-between; gap: 16px; align-items: center; flex-wrap: wrap; }
.acct .kv { display: grid; gap: 2px; font-size: 15px; flex: 1 1 320px; max-width: 640px; min-width: 0; }
.acct .kv b { font-weight: 600; font-size: 15px; }
.acct .kv .muted { font-size: 14px; line-height: 1.5; }
.del-ask { display: grid; gap: 10px; flex: 1 1 100%; order: 2; max-width: 360px; }
#del-card:has(.del-ask:not([hidden])) #del-go { order: 3; background: var(--bad); border-color: var(--bad); color: #fff; }
#del-card:has(.del-ask:not([hidden])) #del-go:hover { background: var(--bad-hover); }
@media (prefers-color-scheme: dark) { #del-card:has(.del-ask:not([hidden])) #del-go { color: #2a0a07; } }

.foot { border-top: 1px solid var(--line); padding: 22px 0; font-size: 14px; color: var(--ink-2); }
.foot .wrap { display: flex; justify-content: space-between; gap: 16px; flex-wrap: wrap; }
.foot a { color: var(--ink-2); text-underline-offset: 3px; }
.foot a:hover { color: var(--ink); }

/* ------------------------------------------------------------ small screens */
@media (max-width: 520px) {
  .wrap { padding: 0 16px; }
  .page > .wrap { padding-top: 24px; }
  .btn:not(.sm) { width: 100%; }
  .row .link { width: 100%; text-align: center; }
  .plan { padding: 20px; }
  .price { font-size: 34px; }
  .pay { padding: 16px; }
  .tile, .acct { padding: 20px 16px; }
  .tile-sub .btn.sm { width: 100%; min-height: 40px; }
  .get-app-foot { justify-content: stretch; }
  .key { font-size: 15px; }
  .key-box { flex-wrap: wrap; }
  .key-box .btn.sm { width: 100%; }
}
@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after { transition-duration: 0s !important; }
  .setup-mark.busy, .setup-mark-wrap::before { animation: none !important; }
  .step.active .bullet, .spin { animation-duration: 2.4s; }
}
/* A long email address wraps instead of widening the page on a phone */
.tile, .acct .kv, .get-app, .howto, .summary, .msg { overflow-wrap: anywhere; }
/* Under the plan choice, the account block keeps the plan screen's width */
#v-plan:not([hidden]) ~ #v-acct { max-width: 880px; }
