/* flickwheel.app: the dark keynote look (direction B). */
:root {
  --bg: #07070b;
  --panel: rgba(255, 255, 255, 0.04);
  --panel-2: rgba(255, 255, 255, 0.07);
  --line: rgba(255, 255, 255, 0.09);
  --line-2: rgba(255, 255, 255, 0.16);
  --text: #f3f3f7;
  --text-2: #a7a7b6;
  --text-3: #75758a;
  --accent: #8f8bff;
  --accent-2: #7b6cff;
  --ok: #4fd18b;
  --warn: #ffb547;
  --bad: #ff6b7a;
  --font: -apple-system, BlinkMacSystemFont, "SF Pro Display", "Segoe UI Variable Display", "Segoe UI", system-ui, sans-serif;
  color-scheme: dark;
}
* { box-sizing: border-box; }
html { background: var(--bg); }
body { margin: 0; min-height: 100vh; font-family: var(--font); color: var(--text); background: var(--bg); -webkit-font-smoothing: antialiased; line-height: 1.5; display: flex; flex-direction: column; }
a { color: inherit; }
main { flex: 1; }
/* The gutters grow by a notched phone's safe areas when it's on its side. */
.wrap { width: min(1120px, 100% - 32px - env(safe-area-inset-left, 0px) - env(safe-area-inset-right, 0px)); margin: 0 auto; }

/* Nav */
.nav { display: flex; align-items: center; gap: 26px; padding: 22px 0; font-size: 14px; }
.nav a { text-decoration: none; color: #c9c9d3; }
.nav a:hover { color: #fff; }
.brand { display: flex; align-items: center; gap: 5px; font-weight: 700; font-size: 18px; letter-spacing: -.02em; margin-right: auto; color: #fff !important; }
.mark { width: 19px; height: 19px; flex: none; display: block; }
.brand .mark { margin-top: 1px; }
.nav .links { display: flex; gap: 26px; }
@media (max-width: 720px) { .nav .links { display: none; } }

/* Buttons */
.btn { display: inline-flex; align-items: center; justify-content: center; gap: 8px; border-radius: 999px; padding: 12px 22px; font: 600 14.5px/1 var(--font); border: 0; cursor: pointer; text-decoration: none; white-space: nowrap; transition: transform .12s ease, background .12s ease, opacity .12s; }
.btn:active { transform: scale(.98); }
.btn[disabled], .btn[aria-disabled="true"] { opacity: .5; cursor: default; }
.btn[aria-disabled="true"] { pointer-events: none; }
.btn.primary { background: #fff; color: #07070b; }
.btn.primary:hover { background: #e9e8ff; }
.btn.ghost { background: rgba(255, 255, 255, .08); color: var(--text); box-shadow: inset 0 0 0 1px rgba(255, 255, 255, .14); }
.btn.ghost:hover { background: rgba(255, 255, 255, .13); }
.btn.small { padding: 8px 15px; font-size: 13px; }
.btn.danger { background: transparent; color: var(--bad); box-shadow: inset 0 0 0 1px rgba(255, 107, 122, .35); }
.nav .btn.small { color: #07070b; }
.link-btn { background: none; border: 0; padding: 0; color: var(--accent); font: inherit; cursor: pointer; text-decoration: underline; text-underline-offset: 3px; }

/* Home */
.lead { font-size: 19px; color: var(--text-2); margin: 0 auto 28px; max-width: 580px; }
.cta { display: flex; gap: 10px; justify-content: center; flex-wrap: wrap; }
.fine { margin-top: 16px; font-size: 13px; color: var(--text-3); }

section { padding: 56px 0; }
.kicker { font-size: 12px; color: var(--accent); font-weight: 700; letter-spacing: .08em; text-transform: uppercase; }
h2 { font-size: clamp(30px, 5vw, 42px); letter-spacing: -.03em; line-height: 1.08; margin: 10px 0 14px; }
.sub { color: var(--text-2); font-size: 17px; max-width: 620px; margin: 0 0 30px; }
.grid2 { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 16px; }
@media (max-width: 820px) { .grid2 { grid-template-columns: 1fr; } }
.card { padding: 26px; border-radius: 20px; background: var(--panel); box-shadow: inset 0 0 0 1px var(--line); }
.card h3 { margin: 8px 0 6px; font-size: 18px; letter-spacing: -.01em; }
.card p { margin: 0; color: var(--text-2); font-size: 14.5px; }
.card .ico { width: 36px; height: 36px; border-radius: 11px; display: grid; place-items: center; background: rgba(143, 139, 255, .14); color: var(--accent); margin-bottom: 10px; }
.card .ico svg { width: 19px; height: 19px; }

.amount { font-size: 60px; font-weight: 700; letter-spacing: -.04em; line-height: 1; }
.amount small { font-size: 17px; color: var(--text-2); font-weight: 500; letter-spacing: 0; }
.ticks { list-style: none; margin: 0; padding: 0; display: grid; grid-template-columns: 1fr 1fr; gap: 8px 22px; font-size: 14.5px; color: #d3d3dd; }
@media (max-width: 560px) { .ticks { grid-template-columns: 1fr; } }
.ticks li::before { content: "✓"; color: var(--accent); margin-right: 9px; font-weight: 700; }

.dl { display: flex; align-items: center; gap: 18px; }
.dl .os { width: 52px; height: 52px; border-radius: 15px; background: var(--panel-2); display: grid; place-items: center; flex: none; }
.dl .os svg { width: 26px; height: 26px; }
.dl .grow { flex: 1; }
.dl h3 { margin: 0 0 2px; }

.faq details { border-top: 1px solid var(--line); padding: 18px 0; }
.faq details:last-child { border-bottom: 1px solid var(--line); }
.faq summary { cursor: pointer; font-weight: 600; font-size: 16px; list-style: none; display: flex; justify-content: space-between; gap: 20px; }
.faq summary::after { content: "+"; color: var(--text-3); font-weight: 400; font-size: 20px; line-height: 1; }
.faq details[open] summary::after { content: "–"; }
.faq p { color: var(--text-2); margin: 10px 0 0; max-width: 760px; }

footer { border-top: 1px solid var(--line); padding: 28px 0 40px; color: var(--text-3); font-size: 13px; }
footer .wrap { display: flex; gap: 22px; flex-wrap: wrap; align-items: center; }
footer a { text-decoration: none; }
footer a:hover { color: var(--text); }
footer .grow { flex: 1; }

/* Small pages: sign in, account, link */
.page { width: min(560px, 100% - 32px); margin: 52px auto 72px; }
.page.wide { width: min(760px, 100% - 32px); }
.page h1 { font-size: clamp(34px, 5vw, 46px); letter-spacing: -.042em; line-height: 1.04; font-weight: 750; margin: 0 0 10px; text-wrap: balance; }
.page .sub { margin-bottom: 26px; font-size: 16px; }
.panel { padding: 26px; border-radius: 22px; background: rgba(14, 14, 22, .52); backdrop-filter: blur(22px) saturate(1.4); -webkit-backdrop-filter: blur(22px) saturate(1.4); box-shadow: inset 0 0 0 1px rgba(255, 255, 255, .1); margin-bottom: 16px; }
.panel h1 { font-size: 22px; letter-spacing: -.02em; line-height: 1.2; font-weight: 700; margin: 0 0 6px; }
#sub-panel { min-height: 118px; }
.panel h2 { font-size: 18px; letter-spacing: -.01em; margin: 0 0 4px; }
.panel .muted { color: var(--text-2); font-size: 14.5px; margin: 0; }
.row { display: flex; align-items: center; gap: 14px; }
.row .grow { flex: 1; min-width: 0; }
.rows > .row { padding: 14px 0; border-top: 1px solid var(--line); flex-wrap: wrap; }
.rows > .row:first-child { border-top: 0; padding-top: 4px; }
.actions { display: flex; gap: 10px; flex-wrap: wrap; margin-top: 18px; }
label.field { display: block; font-size: 13px; color: var(--text-2); margin: 0 0 8px; }
input.input { width: 100%; padding: 14px 16px; border-radius: 14px; border: 0; background: rgba(255, 255, 255, .06); box-shadow: inset 0 0 0 1px var(--line-2); color: var(--text); font: 16px var(--font); outline: none; }
input.input:focus { box-shadow: inset 0 0 0 1.5px var(--accent); }
/* A browser's autofill paints its own pale background; keep the field dark. */
input.input:-webkit-autofill, input.input:autofill { -webkit-text-fill-color: var(--text); caret-color: var(--text); box-shadow: inset 0 0 0 1.5px var(--accent), inset 0 0 0 100px #15151f; transition: background-color 9999s; }
input.code { font-size: 28px; letter-spacing: .4em; text-align: center; font-weight: 600; }
.error { color: var(--bad); font-size: 14px; margin: 10px 0 0; }
.note { color: var(--text-3); font-size: 13px; margin: 12px 0 0; }
.badge { display: inline-flex; align-items: center; gap: 6px; font-size: 12px; font-weight: 650; padding: 4px 10px; border-radius: 999px; }
.badge.ok { color: var(--ok); background: rgba(79, 209, 139, .12); }
.badge.off { color: var(--text-2); background: rgba(255, 255, 255, .07); }
.badge.warn { color: var(--warn); background: rgba(255, 181, 71, .12); }
.banner { padding: 16px 18px; border-radius: 16px; background: rgba(79, 209, 139, .1); box-shadow: inset 0 0 0 1px rgba(79, 209, 139, .25); margin-bottom: 16px; font-size: 14.5px; }
.codebox { font: 700 30px/1 ui-monospace, "SF Mono", Menlo, monospace; letter-spacing: .12em; padding: 18px; text-align: center; border-radius: 16px; background: rgba(255, 255, 255, .05); box-shadow: inset 0 0 0 1px var(--line); margin: 16px 0; }
.spinner.tiny { width: 11px !important; height: 11px !important; border-width: 1.5px !important; vertical-align: -1px !important; }
.spinner { width: 18px; height: 18px; border-radius: 50%; border: 2px solid rgba(255, 255, 255, .2); border-top-color: #fff; animation: spin .8s linear infinite; display: inline-block; vertical-align: -4px; }
@keyframes spin { to { transform: rotate(360deg); } }
.prose { color: #d3d3dd; font-size: 15.5px; }
.prose h1 { color: var(--text); }
.prose h2 { font-size: 20px; margin: 28px 0 8px; }
.prose p, .prose li { color: var(--text-2); }
[hidden] { display: none !important; }

/* Checkout: what you get on the left, Stripe's form on the right */
.checkout { display: grid; grid-template-columns: minmax(0, .9fr) minmax(0, 1.1fr); gap: 40px; align-items: start; margin: 26px auto 70px; }
@media (max-width: 860px) { .checkout { grid-template-columns: 1fr; gap: 24px; } }
.co-summary { padding: 30px; border-radius: 24px; background: linear-gradient(135deg, rgba(123, 108, 255, .2), rgba(14, 14, 22, .5)); backdrop-filter: blur(22px) saturate(1.4); -webkit-backdrop-filter: blur(22px) saturate(1.4); box-shadow: inset 0 0 0 1px rgba(255, 255, 255, .1); position: sticky; top: 84px; }
.co-summary h1 { font-size: 30px; letter-spacing: -.03em; margin: 14px 0 8px; }
.co-summary .muted { color: var(--text-2); margin: 8px 0 18px; font-size: 14.5px; }
.co-mark { width: 44px; height: 44px; display: block; }
.co-ticks { grid-template-columns: 1fr; }
.co-pay { min-height: 520px; border-radius: 24px; background: #fff; padding: 8px; overflow: hidden; }
.co-loading { color: #6d6d76; padding: 40px; text-align: center; font-size: 14.5px; }
.co-loading .spinner { border-color: rgba(0, 0, 0, .15); border-top-color: #141416; }
.co-failed { display: grid; gap: 6px; justify-items: center; margin: 0; padding: 64px 28px; text-align: center; color: #4a4a55; font-size: 14.5px; }
.co-failed b { color: #141416; font-size: 18px; letter-spacing: -.01em; }
.co-retry { display: flex; flex-wrap: wrap; gap: 10px 16px; align-items: center; justify-content: center; margin-top: 16px; }
.co-retry .btn { background: #141416; color: #fff; }
.co-retry a { color: #5b4be0; }
@media (max-width: 860px) { .checkout { margin-top: 18px; } .co-summary { position: static; padding: 22px; } .co-summary h1 { margin-top: 0; } .co-ticks, .co-mark { display: none; } }

/* The inner pages stand in the same room as the homepage: its bar, a still wash of its light. */
.bar { position: sticky; top: 0; z-index: 30; background: rgba(6, 6, 11, .62); backdrop-filter: blur(22px) saturate(1.6); -webkit-backdrop-filter: blur(22px) saturate(1.6); border-bottom: 1px solid rgba(255, 255, 255, .07); }
.bar .nav { padding: 16px 0; }
body:not(.home)::before { content: ""; position: fixed; inset: 0; z-index: 0; pointer-events: none; background:
  radial-gradient(70vmax 52vmax at 12% -12%, rgba(123, 108, 255, .34), transparent 70%),
  radial-gradient(52vmax 44vmax at 104% 6%, rgba(255, 70, 160, .13), transparent 70%),
  radial-gradient(64vmax 50vmax at 62% 112%, rgba(60, 130, 255, .17), transparent 70%); }
body:not(.home) > main, body:not(.home) > footer { position: relative; z-index: 1; }
body:not(.home) > footer { background: rgba(5, 5, 10, .5); }

/* A question asked in place of the button that was pressed (site.js: ask). */
.ask { display: inline-flex; flex-wrap: wrap; align-items: center; gap: 8px 10px; color: var(--text); font-size: 13.5px; }
.row > .ask { flex: 1 0 100%; justify-content: flex-end; }
.row > .ask > span { flex: 1 1 240px; color: var(--text-2); }
#resend { font-variant-numeric: tabular-nums; }
@media (max-width: 560px) { .rows > .row .btn { white-space: normal; } }

/* Keyboard focus, everywhere: one ring that shows on dark glass and on white. */
:focus-visible { outline: 2px solid #b9a8ff; outline-offset: 3px; }
.btn.primary:focus-visible { outline-color: #fff; }
input.input:focus-visible { outline: none; }
:focus:not(:focus-visible) { outline: none; }
