/* ============ Shared for sub-pages ============ */
.footer--solid { background: var(--night); padding-top: 70px; padding-bottom: 30px; }
.nav__links a[aria-current="page"] { opacity: 1; box-shadow: inset 0 -1px 0 currentColor; border-radius: 0; }
.page-hero { position: relative; padding: 160px 0 40px; text-align: center; overflow: hidden; }
.page-hero::before { display: none; }
@keyframes heroGlow { to { transform: translateX(4%) scale(1.06); } }
.page-hero h1 { font-size: clamp(38px, 5.6vw, 66px); letter-spacing: -.045em; line-height: 1.04; margin: 18px auto 18px; max-width: 16ch; font-weight: 800; }
.page-hero p { font-size: 18px; color: var(--ink-2); max-width: 56ch; margin: 0 auto; line-height: 1.55; }
.muted { color: var(--ink-3); }
.small { font-size: 13px; }

/* Forms */
.field { display: flex; flex-direction: column; gap: 6px; margin-bottom: 16px; text-align: left; }
.field label { font-size: 13px; font-weight: 700; }
.input, .select, textarea.input {
  height: 46px; border-radius: 12px; border: 1px solid rgba(21,17,31,.16); background: #fff; padding: 0 14px; font: inherit; font-size: 15px; color: var(--ink);
  transition: border-color .2s, box-shadow .2s;
}
textarea.input { height: auto; padding: 12px 14px; min-height: 90px; resize: vertical; font-family: var(--mono); font-size: 13px; }
.input:focus, .select:focus { outline: none; border-color: var(--ink); box-shadow: 0 0 0 3px rgba(17,16,20,.08); }
.form-error { min-height: 20px; color: #C42E2E; font-size: 13.5px; font-weight: 600; margin: 4px 0 10px; }
.btn[disabled] { opacity: .6; pointer-events: none; }
.btn .spin { width: 16px; height: 16px; border: 2px solid currentColor; border-right-color: transparent; border-radius: 50%; animation: spin .7s linear infinite; }
@keyframes spin { to { transform: rotate(360deg); } }
:focus-visible { outline: 2px solid var(--violet); outline-offset: 2px; }

/* Toasts */
.toasts { position: fixed; bottom: 20px; left: 50%; transform: translateX(-50%); z-index: 200; display: flex; flex-direction: column; gap: 8px; align-items: center; pointer-events: none; }
.toast { background: var(--ink); color: #fff; padding: 12px 18px; border-radius: 12px; font-size: 14px; font-weight: 600; box-shadow: 0 16px 40px -16px rgba(0,0,0,.5); animation: toastIn .4s var(--ease); transition: opacity .4s, transform .4s; }
.toast--error { background: #B42323; } .toast--success { background: #1B7F5E; }
.toast.is-out { opacity: 0; transform: translateY(8px); }
@keyframes toastIn { from { opacity: 0; transform: translateY(12px); } }

/* ============ Pricing ============ */
.bill-toggle { display: inline-flex; margin: 34px auto 0; background: #fff; border: 1px solid var(--line); border-radius: 999px; padding: 4px; position: relative; }
.bill-toggle button { position: relative; z-index: 1; padding: 9px 20px; border-radius: 999px; font-weight: 700; font-size: 14px; color: var(--ink-3); transition: color .3s; }
.bill-toggle button.is-active { color: #fff; }
.bill-toggle .glide { position: absolute; top: 4px; bottom: 4px; left: 4px; border-radius: 999px; background: var(--ink); transition: transform .45s var(--ease), width .45s var(--ease); }
.bill-toggle .save { font-size: 11px; background: var(--ember); color: #fff; padding: 2px 7px; border-radius: 99px; margin-left: 6px; }
.plans { display: grid; grid-template-columns: repeat(4, 1fr); gap: 16px; margin: 50px auto 0; }
.plan { position: relative; background: #fff; border: 1px solid var(--line); border-radius: 24px; padding: 28px 24px; display: flex; flex-direction: column; transition: transform .5s var(--ease), box-shadow .5s; }
.plan:hover { transform: translateY(-6px); box-shadow: 0 30px 60px -30px rgba(91,63,224,.35); }
.plan--hot { background: var(--night); color: #fff; border-color: transparent; }
.plan--hot::before { display: none; }
.plan__tag { position: absolute; top: 18px; right: 18px; font-family: var(--mono); font-size: 11px; text-transform: uppercase; letter-spacing: .05em; color: var(--accent-2); }
.plan h3 { margin: 0 0 6px; font-size: 20px; }
.plan .desc { font-size: 14px; color: var(--ink-3); margin: 0 0 22px; min-height: 40px; line-height: 1.45; }
.plan--hot .desc, .plan--hot .per, .plan--hot li { color: rgba(255,255,255,.7); }
.price { font-size: 46px; font-weight: 800; letter-spacing: -.04em; line-height: 1; }
.price small { font-size: 15px; font-weight: 600; letter-spacing: 0; }
.per { font-size: 13px; color: var(--ink-3); margin: 8px 0 22px; min-height: 18px; }
.plan .btn { width: 100%; margin-bottom: 22px; }
.plan--hot .btn--dark { background: #fff; color: var(--ink); }
.plan ul { list-style: none; margin: 0; padding: 0; display: grid; gap: 11px; font-size: 14px; color: var(--ink-2); }
.plan li { display: flex; gap: 10px; align-items: flex-start; }
.plan li::before { content: "✓"; color: var(--violet); font-weight: 800; }
.plan--hot li::before { color: var(--ember-2); }
.price-num { display: inline-block; transition: transform .35s var(--ease), opacity .35s; }
.price-num.is-flip { transform: translateY(-40%); opacity: 0; }

.compare { margin-top: 90px; }
.compare h2, .faq h2 { text-align: center; }
.table-wrap { overflow-x: auto; border-radius: 20px; border: 1px solid var(--line); background: #fff; }
table.t { width: 100%; border-collapse: collapse; font-size: 14px; min-width: 640px; }
.t th, .t td { padding: 14px 18px; text-align: left; border-bottom: 1px solid var(--line); }
.t thead th { font-size: 13px; color: var(--ink-3); font-weight: 700; background: var(--cream); }
.t tbody tr:last-child td { border-bottom: 0; }
.t tbody tr { transition: background .2s; }
.t tbody tr:hover { background: rgba(17,16,20,.025); }
.t .num { font-variant-numeric: tabular-nums; }
.yes { color: var(--mint); font-weight: 800; } .no { color: var(--ink-3); }

.faq { margin: 90px auto 0; max-width: 760px; }
.faq details { border-bottom: 1px solid var(--line); padding: 4px 0; }
.faq summary { list-style: none; cursor: pointer; padding: 18px 0; font-weight: 700; font-size: 17px; display: flex; justify-content: space-between; gap: 20px; }
.faq summary::-webkit-details-marker { display: none; }
.faq summary::after { content: "+"; font-size: 22px; color: var(--violet); transition: transform .35s var(--ease); }
.faq details[open] summary::after { transform: rotate(45deg); }
.faq details p { margin: 0 0 18px; color: var(--ink-2); line-height: 1.6; animation: toastIn .4s var(--ease); }

/* ============ Auth ============ */
.auth { min-height: 100vh; display: grid; grid-template-columns: 1fr 1fr; }
.auth__form { display: flex; flex-direction: column; justify-content: center; padding: 40px clamp(20px, 6vw, 90px); }
.auth__form .logo { margin-bottom: 50px; }
.auth__card { width: min(420px, 100%); }
.auth__card h1 { font-size: 36px; letter-spacing: -.04em; margin: 0 0 8px; }
.auth__card > p { color: var(--ink-2); margin: 0 0 28px; }
.auth__card .btn { width: 100%; }
.auth__switch { margin-top: 22px; font-size: 14px; color: var(--ink-2); }
.auth__switch a { color: var(--violet); font-weight: 700; }
.auth__art { position: relative; overflow: hidden; background: var(--night); color: #fff; display: flex; align-items: flex-end; padding: 50px; }
.auth__art canvas { position: absolute; inset: 0; width: 100%; height: 100%; }
.auth__quote { position: relative; max-width: 440px; }
.auth__quote p { font-size: 24px; line-height: 1.4; letter-spacing: -.02em; font-weight: 600; margin: 0 0 18px; }
.auth__quote small { color: rgba(255,255,255,.6); }
.pw-meter { height: 4px; background: var(--cream-2); border-radius: 4px; overflow: hidden; margin-top: 6px; }
.pw-meter i { display: block; height: 100%; width: 0; background: var(--ember); transition: width .3s, background .3s; }
.key-reveal { background: var(--night); color: #fff; border-radius: 16px; padding: 20px; margin-top: 10px; }
.key-reveal code { display: block; font-family: var(--mono); font-size: 13px; word-break: break-all; background: rgba(255,255,255,.08); padding: 12px; border-radius: 10px; margin: 10px 0 14px; }

/* ============ Docs ============ */
.docs { display: grid; grid-template-columns: 230px minmax(0, 1fr); gap: 50px; padding-top: 120px; padding-bottom: 100px; }
.docs__side { position: sticky; top: 110px; align-self: start; max-height: calc(100vh - 130px); overflow: auto; font-size: 14px; }
.docs__side h5 { font-size: 12px; text-transform: uppercase; letter-spacing: .08em; color: var(--ink-3); margin: 22px 0 8px; }
.docs__side a { display: block; padding: 7px 12px; border-radius: 9px; color: var(--ink-2); font-weight: 600; transition: background .2s, color .2s; border-left: 2px solid transparent; }
.docs__side a:hover { background: rgba(17,16,20,.05); }
.docs__side a.is-active { color: var(--ink); background: transparent; border-left-color: var(--accent); }
.docs__body { max-width: 780px; }
.docs__body section { padding-top: 20px; margin-bottom: 60px; scroll-margin-top: 100px; }
.docs__body h1 { font-size: 44px; letter-spacing: -.04em; margin: 0 0 14px; }
.docs__body h2 { font-size: 28px; letter-spacing: -.03em; margin: 0 0 14px; display: flex; align-items: center; gap: 12px; }
.docs__body h3 { font-size: 18px; margin: 28px 0 10px; }
.docs__body p, .docs__body li { color: var(--ink-2); line-height: 1.65; }
.docs__body code:not(pre code) { font-family: var(--mono); font-size: .88em; background: var(--cream-2); padding: 2px 6px; border-radius: 6px; color: var(--ink); }
.method { font-family: var(--mono); font-size: 12px; font-weight: 700; padding: 4px 9px; border-radius: 7px; background: rgba(47,181,138,.15); color: #157255; }
.callout { border-radius: 14px; padding: 14px 18px; background: var(--card); border: 1px solid var(--line); border-left: 2px solid var(--ink); color: var(--ink-2); font-size: 14.5px; line-height: 1.6; margin: 18px 0; }
.callout--warn { background: var(--card); }
.codebox { border-radius: 16px; overflow: hidden; background: var(--night); margin: 16px 0; border: 1px solid #241d3a; }
.codebox__bar { display: flex; align-items: center; gap: 4px; padding: 8px 8px 0 12px; border-bottom: 1px solid #241d3a; }
.codebox__bar button { color: rgba(255,255,255,.55); font-family: var(--mono); font-size: 12.5px; padding: 8px 12px; border-bottom: 2px solid transparent; }
.codebox__bar button.is-active { color: #fff; border-bottom-color: var(--ember); }
.codebox__bar .copy { margin-left: auto; border: 1px solid #332a52; border-radius: 8px; padding: 5px 10px; margin-bottom: 6px; }
.codebox pre { margin: 0; padding: 18px; overflow-x: auto; color: #DCD6EE; font-family: var(--mono); font-size: 13px; line-height: 1.7; }
.codebox .k { color: var(--violet-2); } .codebox .s { color: var(--ember-2); } .codebox .n { color: #7EE2BE; } .codebox .c { color: #6F6888; }
.params td:first-child { font-family: var(--mono); font-weight: 700; color: var(--ink); white-space: nowrap; }
.params td:nth-child(2) { font-family: var(--mono); font-size: 12.5px; color: var(--ink-3); white-space: nowrap; }

/* ============ Dashboard ============ */
.app { display: grid; grid-template-columns: 250px minmax(0, 1fr); min-height: 100vh; }
.side { position: sticky; top: 0; height: 100vh; background: var(--night); color: #fff; padding: 22px 16px; display: flex; flex-direction: column; }
.side .logo { padding: 4px 10px 26px; }
.side nav a { display: flex; align-items: center; gap: 12px; padding: 11px 12px; border-radius: 12px; color: rgba(255,255,255,.65); font-weight: 600; font-size: 14.5px; transition: background .25s, color .25s; margin-bottom: 2px; }
.side nav a svg { width: 18px; height: 18px; flex: 0 0 auto; }
.side nav a:hover { background: rgba(255,255,255,.06); color: #fff; }
.side nav a.is-active { background: rgba(255,255,255,.07); color: #fff; box-shadow: inset 2px 0 0 var(--accent); }
.side__plan { margin-top: auto; background: rgba(255,255,255,.06); border: 1px solid rgba(255,255,255,.08); border-radius: 16px; padding: 16px; font-size: 13px; }
.side__plan b { display: block; font-size: 15px; margin: 2px 0 10px; }
.bar { height: 6px; background: rgba(255,255,255,.12); border-radius: 6px; overflow: hidden; }
.bar i { display: block; height: 100%; width: 0; background: var(--accent); border-radius: 6px; transition: width 1s var(--ease); }
.main { padding: 26px clamp(16px, 3vw, 40px) 60px; min-width: 0; }
.topbar { display: flex; align-items: center; justify-content: space-between; gap: 14px; margin-bottom: 26px; }
.topbar h1 { font-size: 28px; letter-spacing: -.03em; margin: 0; }
.user { display: flex; align-items: center; gap: 10px; }
.avatar { width: 36px; height: 36px; border-radius: 50%; background: var(--ink); color: #fff; font-family: var(--mono); font-size: 13px; display: grid; place-items: center; font-weight: 800; }
.view { display: none; animation: toastIn .45s var(--ease); }
.view.is-active { display: block; }
.grid4 { display: grid; grid-template-columns: repeat(4, 1fr); gap: 14px; }
.panel { background: #fff; border: 1px solid var(--line); border-radius: 20px; padding: 22px; }
.panel + .panel, .grid4 + .panel { margin-top: 16px; }
.panel h2 { font-size: 17px; margin: 0 0 4px; }
.panel__head { display: flex; justify-content: space-between; align-items: center; gap: 12px; margin-bottom: 16px; flex-wrap: wrap; }
.stat .label { font-size: 13px; color: var(--ink-3); font-weight: 600; }
.stat .value { font-size: 30px; font-weight: 800; letter-spacing: -.03em; margin: 8px 0 4px; font-variant-numeric: tabular-nums; }
.stat .sub { font-size: 12.5px; color: var(--ink-3); }
.stat .bar { background: var(--cream-2); margin-top: 10px; }
.chart { position: relative; height: 220px; }
.chart svg { width: 100%; height: 100%; overflow: visible; }
.chart .gridline { stroke: rgba(21,17,31,.07); }
.chart .axis { font-size: 11px; fill: var(--ink-3); font-family: var(--font); }
.chart rect.b { fill: var(--violet); transition: fill .2s; }
.chart rect.b.is-hover { fill: var(--accent); }
.chart .hit { fill: transparent; cursor: pointer; }
.tip { position: absolute; pointer-events: none; background: var(--ink); color: #fff; font-size: 12.5px; padding: 8px 10px; border-radius: 9px; white-space: nowrap; transform: translate(-50%, -110%); opacity: 0; transition: opacity .15s; }
.tip b { font-size: 14px; }
.empty { text-align: center; padding: 40px 10px; color: var(--ink-3); font-size: 14px; }
.status { display: inline-flex; align-items: center; gap: 6px; font-family: var(--mono); font-size: 12.5px; font-weight: 700; }
.status::before { content: ""; width: 7px; height: 7px; border-radius: 50%; background: currentColor; }
.status--ok { color: #1B7F5E; } .status--err { color: #B42323; }
.pill { display: inline-block; font-size: 12px; font-weight: 700; padding: 3px 9px; border-radius: 99px; background: var(--cream-2); color: var(--ink-2); }
.mono-sm { font-family: var(--mono); font-size: 12.5px; }
.truncate { max-width: 280px; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; display: inline-block; vertical-align: bottom; }
.btn--danger { background: #fff; color: #B42323; border: 1px solid rgba(180,35,35,.25); }
.btn--danger:hover { background: #B42323; color: #fff; }

.pg { display: grid; grid-template-columns: 360px minmax(0, 1fr); gap: 16px; }
.seg { display: inline-flex; background: var(--cream-2); border-radius: 12px; padding: 4px; margin-bottom: 16px; }
.seg button { padding: 8px 16px; border-radius: 9px; font-family: var(--mono); font-size: 13.5px; color: var(--ink-3); }
.seg button.is-active { background: #fff; color: var(--ink); box-shadow: 0 1px 4px rgba(0,0,0,.08); }
.out { background: var(--night); color: #DCD6EE; border-radius: 16px; padding: 18px; font-family: var(--mono); font-size: 12.5px; line-height: 1.65; overflow: auto; max-height: 560px; min-height: 300px; white-space: pre-wrap; word-break: break-word; margin: 0; }
.out .k { color: var(--violet-2); } .out .s { color: var(--ember-2); } .out .n { color: #7EE2BE; }
.out-meta { display: flex; gap: 14px; font-size: 13px; color: var(--ink-3); margin-bottom: 10px; flex-wrap: wrap; }

.plans--dash { grid-template-columns: repeat(4, 1fr); margin-top: 0; }
.plan.is-current { outline: 2px solid var(--violet); outline-offset: 2px; }

.modal { position: fixed; inset: 0; z-index: 120; display: grid; place-items: center; padding: 16px; background: rgba(10,7,20,.5); backdrop-filter: blur(6px); opacity: 0; pointer-events: none; transition: opacity .3s; }
.modal.is-open { opacity: 1; pointer-events: auto; }
.modal__card { background: #fff; border-radius: 22px; padding: 26px; width: min(480px, 100%); transform: translateY(14px) scale(.98); transition: transform .4s var(--ease); }
.modal.is-open .modal__card { transform: none; }
.modal__card h3 { margin: 0 0 6px; font-size: 20px; }
.modal__actions { display: flex; gap: 10px; justify-content: flex-end; margin-top: 18px; }
.mobile-top { display: none; }

/* 404 */
.nf { min-height: 100vh; display: grid; place-items: center; text-align: center; padding: 20px; }
.nf h1 { font-size: clamp(90px, 20vw, 200px); margin: 0; letter-spacing: -.07em; line-height: 1; font-weight: 600; }

/* ============ Responsive ============ */
@media (max-width: 1100px) {
  .plans, .plans--dash { grid-template-columns: repeat(2, 1fr); }
  .grid4 { grid-template-columns: repeat(2, 1fr); }
  .pg { grid-template-columns: 1fr; }
}
@media (max-width: 900px) {
  .auth { grid-template-columns: 1fr; }
  .auth__art { display: none; }
  .docs { grid-template-columns: minmax(0, 1fr); padding-top: 110px; }
  .docs__side { min-width: 0; }
  .docs__side { position: static; max-height: none; display: flex; gap: 6px; overflow-x: auto; padding-bottom: 6px; }
  .docs__side h5 { display: none; }
  .docs__side a { white-space: nowrap; border-left: 0; background: #fff; border: 1px solid var(--line); }
  .app { grid-template-columns: minmax(0, 1fr); }
  .side { position: fixed; z-index: 90; left: 0; top: 0; width: 260px; transform: translateX(-100%); transition: transform .45s var(--ease); }
  .app.is-menu .side { transform: none; box-shadow: 0 0 0 100vmax rgba(10,7,20,.45); }
  .mobile-top { display: inline-grid; place-items: center; width: 40px; height: 40px; border-radius: 12px; border: 1px solid var(--line); background: #fff; }
}
@media (max-width: 600px) {
  .plans, .plans--dash, .grid4 { grid-template-columns: 1fr; }
  .page-hero { padding-top: 130px; }
  .topbar h1 { font-size: 22px; }
  .user .who { display: none; }
  .truncate { max-width: 140px; }
}

.docs > *, .pg > *, .plans > *, .grid4 > * { min-width: 0; }


/* ============ Restyle: instrument look for sub-pages ============ */
.page-hero { text-align: left; padding: 150px 0 50px; border-bottom: 1px solid var(--line); }
.page-hero h1 { margin: 0 0 22px; max-width: 13ch; font-weight: 600; letter-spacing: -.055em; font-size: clamp(44px, 7vw, 96px); line-height: .95; }
.page-hero p { margin: 0; }
.bill-toggle { margin: 36px 0 0; border-radius: 10px; background: var(--card); }
.bill-toggle button { border-radius: 8px; font-weight: 500; }
.bill-toggle .glide { border-radius: 8px; }
.bill-toggle .save { background: none; color: var(--accent); padding: 0; font-family: var(--mono); }
.plans { gap: 0; border: 1px solid var(--line); border-radius: var(--radius); overflow: hidden; background: var(--card); }
.plan { border: 0; border-radius: 0; background: transparent; padding: 30px 26px; }
.plan + .plan { border-left: 1px solid var(--line); }
.plan:hover { transform: none; box-shadow: none; background: #fff; }
.plan--hot, .plan--hot:hover { background: var(--ink); }
.plan h3 { font-weight: 500; font-family: var(--mono); font-size: 14px; text-transform: uppercase; letter-spacing: .05em; }
.price { font-weight: 500; letter-spacing: -.05em; font-size: 52px; }
.plan li::before { content: "—"; color: var(--ink-3); font-weight: 400; }
.plan--hot li::before { color: var(--accent); }
.plan.is-current { outline: 0; box-shadow: inset 0 0 0 2px var(--accent); }
.plans--dash { border-radius: var(--radius); }
.compare h2, .faq h2 { text-align: left; }
.faq { max-width: none; display: grid; grid-template-columns: 1fr 1.6fr; gap: 0 60px; align-items: start; }
.faq h2 { grid-row: span 6; }
.faq summary::after { color: var(--ink); }
.table-wrap { border-radius: var(--radius); background: var(--card); }
.t thead th { font-family: var(--mono); font-weight: 400; text-transform: uppercase; letter-spacing: .04em; font-size: 11.5px; background: var(--paper); }
.yes { color: var(--ink); }
.toast { border-radius: 10px; font-weight: 500; }
.toast--success { background: var(--ink); box-shadow: inset 3px 0 0 var(--ok); }
.toast--error { background: var(--ink); box-shadow: inset 3px 0 0 var(--accent); }

.auth__card h1 { font-weight: 600; letter-spacing: -.045em; font-size: 40px; }
.auth__switch a { color: var(--ink); text-decoration: underline; text-underline-offset: 3px; font-weight: 500; }
.auth__quote p { font-weight: 500; letter-spacing: -.025em; }
.auth__quote small { font-family: var(--mono); font-size: 12px; text-transform: uppercase; letter-spacing: .05em; }
.input { border-radius: 10px; }
.key-reveal { border-radius: 10px; }
.key-reveal code { border-radius: 8px; }

.docs__body h1 { font-weight: 600; letter-spacing: -.05em; font-size: 52px; }
.docs__body h2 { font-weight: 600; letter-spacing: -.035em; }
.docs__body code:not(pre code) { color: var(--ink); background: var(--paper-2); }
.docs__side h5 { font-family: var(--mono); font-weight: 400; }
.docs__side a { font-weight: 500; border-radius: 0; }
.method { background: none; border: 1px solid var(--line); color: var(--ok); }
.callout--warn { border-left-color: var(--accent); }
.codebox { border-radius: 10px; border-color: #24222B; }
.codebox .k { color: #F3F1EC; } .codebox .s { color: var(--accent-2); } .codebox .n { color: #8FD3B6; }
.codebox__bar button.is-active { border-bottom-color: var(--accent); }
.docs__body a[style] { color: var(--ink) !important; text-decoration: underline; text-underline-offset: 3px; }

.side { background: var(--night); }
.side nav a { border-radius: 8px; font-weight: 500; }
.side__plan { border-radius: 10px; background: transparent; }
.panel { border-radius: var(--radius); background: var(--card); }
.stat .value { font-weight: 500; letter-spacing: -.045em; font-size: 34px; }
.stat .label { font-family: var(--mono); font-weight: 400; font-size: 11.5px; text-transform: uppercase; letter-spacing: .04em; }
.stat .bar { background: var(--paper-2); }
.topbar h1 { font-weight: 600; letter-spacing: -.04em; }
.seg { border-radius: 10px; background: var(--paper-2); }
.seg button { border-radius: 8px; }
.out { border-radius: 10px; }
.out .k { color: #F3F1EC; } .out .s { color: var(--accent-2); } .out .n { color: #8FD3B6; }
.modal__card { border-radius: var(--radius); }
.empty a { color: var(--ink) !important; text-decoration: underline; }
.btn--danger { border-radius: 9px; }
@media (max-width: 900px) {
  .faq { grid-template-columns: minmax(0, 1fr); }
  .faq h2 { grid-row: auto; }
  .plan + .plan { border-left: 0; border-top: 1px solid var(--line); }
}
@media (max-width: 1100px) and (min-width: 601px) {
  .plan:nth-child(3) { border-left: 0; }
  .plan:nth-child(n+3) { border-top: 1px solid var(--line); }
}

/* ---------- Account flows, banners, legal pages ---------- */
.spin--ink { display: inline-block; width: 14px; height: 14px; vertical-align: -2px; margin-right: 6px; border: 2px solid var(--ink); border-right-color: transparent; border-radius: 50%; animation: spin .7s linear infinite; }
.field__link { align-self: flex-end; font-size: 13px; color: var(--ink-2); text-decoration: underline; text-underline-offset: 3px; }
.field__link:hover { color: var(--ink); }
.dev-note { font-family: var(--mono); font-size: 12.5px; line-height: 1.5; color: var(--ink-2); background: var(--card); border: 1px dashed var(--line); border-radius: 8px; padding: 10px 12px; margin: 0 0 14px; }
.dev-note a { color: var(--accent-ink, var(--ink)); text-decoration: underline; text-underline-offset: 3px; overflow-wrap: anywhere; }
#verifyState .btn { width: 100%; }

.banner { display: flex; align-items: center; justify-content: space-between; gap: 12px 20px; flex-wrap: wrap; border: 1px solid var(--line); border-left: 2px solid var(--accent); background: var(--card); border-radius: 10px; padding: 12px 16px; margin-bottom: 16px; font-size: 14px; color: var(--ink-2); }
.banner b { color: var(--ink); }
.banner .btn { flex: none; }

.billing-head { display: flex; justify-content: space-between; align-items: flex-start; gap: 16px; flex-wrap: wrap; }
.billing-head .actions { display: flex; gap: 8px; flex-wrap: wrap; align-items: center; }
.period { display: inline-flex; border: 1px solid var(--line); border-radius: 8px; padding: 3px; background: var(--paper, #fff); }
.period button { border: 0; background: transparent; font: inherit; font-size: 13px; padding: 6px 12px; border-radius: 6px; cursor: pointer; color: var(--ink-2); }
.period button.is-active { background: var(--ink); color: #fff; }

.settings-grid { display: grid; grid-template-columns: repeat(auto-fit, minmax(min(100%, 320px), 1fr)); gap: 16px; margin-top: 16px; }
.settings-grid .panel form { display: grid; gap: 0; max-width: 420px; }

.legal { max-width: 720px; margin: 0 auto; padding: 140px 16px 96px; }
.legal h1 { font-size: clamp(34px, 5vw, 48px); letter-spacing: -.04em; font-weight: 600; margin: 0 0 8px; }
.legal .updated { color: var(--ink-2); font-family: var(--mono); font-size: 13px; margin: 0 0 40px; }
.legal h2 { font-size: 20px; font-weight: 600; letter-spacing: -.02em; margin: 40px 0 10px; }
.legal p, .legal li { color: var(--ink-2); line-height: 1.7; font-size: 15.5px; }
.legal ul { padding-left: 20px; }
.legal a { color: var(--ink); text-decoration: underline; text-underline-offset: 3px; }
.legal .callout { margin: 0 0 32px; }
.kv { display: grid; grid-template-columns: max-content 1fr; gap: 10px 20px; margin: 16px 0 0; font-size: 14px; }
.kv dt { color: var(--ink-2); }
.kv dd { margin: 0; color: var(--ink); min-width: 0; overflow-wrap: anywhere; }
