/* dl.new: the paid key flow and the dashboard (served at /dl.css). Tokens, grid, header mark, command
   boxes, cards and keycap keys follow the rest of dl.new (the old api.dl.new page and home page). */
@font-face { font-family: "Bricolage Grotesque"; src: url("/fonts/bricolage.woff2") format("woff2"); font-weight: 500 800; font-stretch: 100%; font-display: swap; }
@font-face { font-family: "Geist"; src: url("/fonts/geist.woff2") format("woff2"); font-weight: 100 900; font-display: swap; }
@font-face { font-family: "Geist Mono"; src: url("/fonts/geist-mono.woff2") format("woff2"); font-weight: 100 900; font-display: swap; }
:root {
  --bg: #F6F7F9; --surface: #FFFFFF; --ink: #0E1116; --muted: #5B6270; --line: #E1E4EA;
  --accent: #E2591B; --accent-text: #B04515; --soft: #FBEDE6; --code: #0E1116; --code-ink: #D5D9E0;
  /* The page wash: a soft warm-white base, a faint brand-orange glow at the top centre and a peach one
     off to the right, fading to a cool grey at the bottom. Many stops, so no banding. */
  --wash: radial-gradient(ellipse 90% 60% at 50% -8%, rgb(226 89 27 / .10) 0%, rgb(226 89 27 / .075) 18%, rgb(226 89 27 / .045) 36%, rgb(226 89 27 / .02) 55%, rgb(226 89 27 / .006) 72%, rgb(226 89 27 / 0) 85%),
    radial-gradient(ellipse 55% 45% at 102% 38%, rgb(255 168 120 / .14) 0%, rgb(255 168 120 / .08) 30%, rgb(255 168 120 / .03) 60%, rgb(255 168 120 / 0) 85%),
    linear-gradient(180deg, #FAF8F6 0%, #F8F7F6 35%, #F5F6F8 70%, #F1F2F5 100%);
  --display: "Bricolage Grotesque", "Helvetica Neue", Arial, sans-serif;
  --body: "Geist", "Helvetica Neue", Arial, sans-serif;
  --mono: "Geist Mono", ui-monospace, Menlo, Consolas, monospace;
  --frame: 1040px;
  color-scheme: light dark;
}
* { box-sizing: border-box; }
html, body { margin: 0; min-height: 100%; }
body {
  background-color: var(--bg);
  color: var(--ink); font: 16px/1.6 var(--body); -webkit-font-smoothing: antialiased;
  min-height: 100vh; display: grid; grid-template-rows: auto 1fr auto;
  padding: 0 max(16px, env(safe-area-inset-right, 0px)) 0 max(16px, env(safe-area-inset-left, 0px));
}
/* The wash is fixed to the viewport (iOS ignores background-attachment: fixed), behind everything. */
body::before { content: ""; position: fixed; inset: 0; z-index: -1; pointer-events: none; background: var(--wash); }
a { color: inherit; }
a:focus-visible, button:focus-visible, input:focus-visible { outline: 2px solid var(--accent); outline-offset: 3px; border-radius: 6px; }
[hidden] { display: none !important; }
code, pre { font-family: var(--mono); }
.frame { width: min(100%, var(--frame)); margin-inline: auto; min-width: 0; }
.sr { position: absolute; width: 1px; height: 1px; overflow: hidden; clip-path: inset(50%); white-space: nowrap; }

/* Header: mark left, progress in the middle, one link right. */
header.frame { display: grid; grid-template-columns: minmax(0, 1fr) auto minmax(0, 1fr); align-items: center; gap: 12px 24px; padding-block: 18px; }
.mark { justify-self: start; display: inline-flex; align-items: center; gap: 10px; font: 700 17px var(--display); letter-spacing: -.01em; text-decoration: none; }
.mark img { width: 32px; height: 32px; }
.hright { justify-self: end; font-size: 14px; color: var(--muted); white-space: nowrap; }
.hright a { color: var(--ink); font-weight: 600; text-underline-offset: 3px; }
/* The public pages' small "For providers" button, before the header's link. */
div.hright:not([id]) { display: flex; align-items: center; gap: 14px; }
.hright a.hbtn { display: inline-block; padding: 4px 11px; border: 1px solid var(--line); border-radius: 999px; background: var(--surface); font: 500 13px/1.4 var(--body); color: var(--ink); text-decoration: none; }
@media (hover: hover) { .hright a.hbtn:hover { border-color: var(--ink); } }
.hright a.hbtn[aria-current] { border-color: var(--accent); color: var(--accent-text); }
/* With the button, the plan step's header is too wide for three columns below ~1120px: steps go to row 2. */
@media (max-width: 1120px) {
  header.frame:has(.hbtn):has(.steps) { grid-template-columns: minmax(0, 1fr) auto; }
  header.frame:has(.hbtn) .steps { grid-column: 1 / -1; grid-row: 2; grid-template-columns: repeat(4, minmax(0, 1fr)); }
}
/* Two columns (phones): a plain header's empty middle cell would push the right side to row 2. */
@media (max-width: 760px) { header.frame:has(.hbtn) > span:empty { display: none; } }
/* Phones: the button and the link alone (no lead-in); signed in, the account links instead of the button. */
@media (max-width: 520px) {
  div.hright:not([id]) { gap: 10px; }
  .hright .lead { display: none; }
  .hright:has(.signout) .hbtn { display: none; }
}
.steps { list-style: none; margin: 0; padding: 0; display: grid; grid-template-columns: repeat(4, 96px); gap: 6px; }
.steps li { display: grid; gap: 7px; font: 500 12.5px var(--mono); color: var(--muted); }
.steps li::before { content: ""; height: 4px; border-radius: 999px; background: var(--line); }
.steps li.done { color: var(--ink); }
.steps li.done::before { background: var(--ink); }
.steps li[aria-current] { color: var(--accent-text); font-weight: 600; }
.steps li[aria-current]::before { background: var(--accent); }
.steps li em { font-style: normal; white-space: nowrap; }
.steps li span { opacity: .6; margin-right: 6px; }
@media (max-width: 760px) {
  header.frame { grid-template-columns: minmax(0, 1fr) auto; }
  .steps { grid-column: 1 / -1; grid-row: 2; grid-template-columns: repeat(4, minmax(0, 1fr)); }
  .hright { font-size: 13px; }
}

/* Shared type. */
.eyebrow { margin: 0; font: 600 12.5px var(--mono); letter-spacing: .06em; text-transform: uppercase; color: var(--muted); }
h1 { margin: 0; font: 800 clamp(36px, 4.4vw, 58px)/1.0 var(--display); letter-spacing: -.045em; font-variation-settings: "opsz" 96; text-wrap: balance; }
h1 em { font-style: normal; color: var(--accent); }
h2 { margin: 0; font: 700 22px/1.15 var(--display); letter-spacing: -.02em; }
.sub { margin: 0; font: 400 clamp(16px, 1.6vw, 18px)/1.5 var(--body); color: var(--muted); max-width: 46ch; text-wrap: pretty; }
.note { margin: 0; font-size: 13px; color: var(--muted); text-wrap: pretty; }
.fine { margin: 0; font: 12.5px/1.55 var(--mono); color: var(--muted); text-wrap: pretty; }
.card { background: var(--surface); border: 1px solid var(--line); border-radius: 16px; padding: clamp(18px, 2.4vw, 24px); display: grid; gap: 16px; align-content: start; box-shadow: 0 24px 50px -30px rgba(14, 17, 22, .4); min-width: 0; }

/* Command boxes (index.html .cmdbox) and copy rows (.copyrow, from the old api.dl.new page). */
.cmdbox { display: flex; align-items: center; gap: 8px; background: var(--code); border-radius: 12px; padding: 8px 8px 8px 14px; min-width: 0; }
.cmdbox code { flex: 1 1 auto; min-width: 0; font: 13.5px/1.5 var(--mono); color: var(--code-ink); overflow-x: auto; white-space: nowrap; padding-block: 6px; }
.cmdbox code::before { content: "$ "; color: #7C8491; }
.copyrow { display: flex; align-items: center; gap: 8px; min-width: 0; background: var(--bg); border: 1px solid var(--line); border-radius: 10px; padding: 6px 6px 6px 12px; }
.copyrow code { flex: 1 1 auto; min-width: 0; font: 500 13.5px/1.4 var(--mono); overflow-x: auto; white-space: nowrap; padding-block: 8px; scrollbar-width: none; }
.field { display: grid; gap: 6px; font-size: 13px; color: var(--muted); }
.field input { min-height: 46px; border: 1px solid var(--line); border-radius: 10px; padding: 0 12px; font: 15px var(--body); background: var(--surface); color: var(--ink); width: 100%; }
.gh svg { width: 20px; height: 20px; fill: currentColor; }
/* "Continue with Google": Google's own button (developers.google.com/identity/branding-guidelines),
   not a dl.new keycap. The standard four-colour "G" unaltered, Roboto Medium, Google's light fill
   #FFFFFF with a 1px #747775 stroke and #1F1F1F text, or its dark fill #131314, stroke #8E918F,
   text #E3E3E3; the same size as the GitHub button beside it. */
@font-face { font-family: "Roboto Google"; src: url("/fonts/roboto-medium-google.woff2") format("woff2"); font-weight: 500; font-display: swap;
  unicode-range: U+20, U+43, U+47, U+65, U+67-69, U+6c, U+6e-6f, U+74-75, U+77; }
.gbtn { display: flex; align-items: center; justify-content: center; gap: 12px; width: 100%; height: 50px; margin: 0; padding: 0 12px;
  border: 1px solid #747775; border-radius: 12px; background: #FFFFFF; color: #1F1F1F;
  font: 500 16px/20px "Roboto Google", Roboto, Arial, sans-serif; letter-spacing: .25px; text-decoration: none; white-space: nowrap; cursor: pointer;
  -webkit-tap-highlight-color: transparent; touch-action: manipulation; transition: background-color .15s, box-shadow .15s; }
.gbtn svg { width: 20px; height: 20px; flex: none; }
@media (hover: hover) { .gbtn:hover { background: #F5F5F5; box-shadow: 0 1px 2px rgba(60, 64, 67, .3), 0 1px 3px 1px rgba(60, 64, 67, .15); } }
.gbtn:active { background: #EBEBEB; }
.gbtn:focus-visible { outline: 2px solid var(--accent); outline-offset: 3px; border-radius: 12px; }

/* Footer: one line of links, the data line, the company. */
footer.frame { padding-block: 22px 28px; text-align: center; font: 12.5px/1.6 var(--mono); color: var(--muted); border-top: 1px solid var(--line); display: grid; gap: 8px; justify-items: center; }
footer p { margin: 0; max-width: 92ch; text-wrap: pretty; }
footer nav a { text-underline-offset: 3px; }
/* Product Hunt badge: under the footer on narrow screens, tucked in the bottom-left corner on wide ones. */
.ph-badge { display: block; width: 200px; margin: 0 auto 24px; opacity: .85; transition: opacity .15s; }
.ph-badge img { display: block; width: 200px; height: auto; }
@media (hover: hover) { .ph-badge:hover { opacity: 1; } }
@media (min-width: 1200px) { .ph-badge { position: fixed; left: 20px; bottom: 20px; margin: 0; z-index: 5; } }


@property --ky { syntax: '<length>'; inherits: true; initial-value: 0px; }
@property --kt { syntax: '<length>'; inherits: true; initial-value: 0px; }
@property --kr { syntax: '<length>'; inherits: true; initial-value: 0px; }
@property --kb { syntax: '<length>'; inherits: true; initial-value: 0px; }
@property --kl { syntax: '<length>'; inherits: true; initial-value: 0px; }
@property --kp { syntax: '<number>'; inherits: true; initial-value: 0; }
@property --kg { syntax: '<number>'; inherits: true; initial-value: 0; }
.btn {
  --kt0: 3px; --kr0: 5.5px; --kb0: 4.5px; --kl0: 2.5px; --px: 16px; --rad: 11px;
  --kt: var(--kt0); --kr: var(--kr0); --kb: var(--kb0); --kl: var(--kl0); --ky: 0px; --kp: 0; --kg: 0;
  --face: radial-gradient(140% 180% at 88% -20%, #F6EDE0 0%, #EFE3D2 45%, #E8DAC6 100%);
  --c-t: #FBF5EC; --c-r: #FFFBF4; --c-b: #C9B496; --c-l: #E2D2BB;
  --lit: 255 255 255; --ridge: rgba(255,255,255,.9); --crease: rgba(120,90,50,.22); --dark: 90 60 25;
  --gap: 80 50 20; --gap-a: .32; --lip-d: rgba(110,60,20,.07); --lip-l: rgba(255,255,255,.95); --sh: 90 55 20;
  position: relative; isolation: isolate; display: inline-flex; align-items: center; justify-content: center; gap: 8px; height: 44px; margin: 0;
  padding: 0 calc(var(--px) + var(--kr0) - var(--kr)) 0 calc(var(--px) + var(--kl0) - var(--kl));
  border-style: solid; border-width: var(--kt) var(--kr) var(--kb) var(--kl); border-color: var(--c-t) var(--c-r) var(--c-b) var(--c-l);
  border-radius: var(--rad); background: var(--face) padding-box; color: #17130F; text-shadow: 0 1px 0 rgba(255,255,255,.5);
  font: 600 15px var(--body); text-decoration: none; white-space: nowrap; cursor: pointer;
  -webkit-user-select: none; user-select: none; -webkit-tap-highlight-color: transparent; touch-action: manipulation;
  transform: translateY(var(--ky));
  box-shadow:
    inset 0 1px .5px var(--ridge), inset -1px 0 .5px rgb(var(--lit) / .25), inset 0 -1px .5px var(--crease),
    inset 0 0 0 99px rgb(var(--dark) / calc(var(--kp) * .1)),
    calc(-.5px + var(--kp) * .5px) calc(1.5px - var(--kp) * 1.5px) calc(2px - var(--kp) * 1.5px) 0 rgb(var(--gap) / calc(var(--gap-a) * .7)),
    0 calc(-1px - var(--ky)) 1px 0 rgb(var(--gap) / calc(var(--gap-a) * .8)),
    0 calc(0px - var(--ky)) 0 1px rgb(var(--gap) / calc(var(--gap-a) * .45)),
    0 calc(-1.5px - var(--ky)) 2px 2.5px var(--lip-d),
    0 calc(1.5px - var(--ky)) 1px 2px var(--lip-l),
    0 calc(8px - var(--ky) - var(--kp) * 3px) calc(18px - var(--kp) * 6px) -9px rgb(var(--sh) / .32);
  transition: --ky .24s cubic-bezier(.3,1.65,.5,1), --kt .24s cubic-bezier(.3,1.65,.5,1), --kr .24s cubic-bezier(.3,1.65,.5,1),
    --kb .24s cubic-bezier(.3,1.65,.5,1), --kl .24s cubic-bezier(.3,1.65,.5,1), --kp .22s ease-out, --kg .2s ease-out; }
.btn::before { content: ""; position: absolute; z-index: -1; pointer-events: none; border-radius: inherit;
  inset: calc(-1 * var(--kt)) calc(-1 * var(--kr)) calc(-1 * var(--kb)) calc(-1 * var(--kl));
  border: solid transparent; border-width: var(--kt) var(--kr) var(--kb) var(--kl);
  background: radial-gradient(60% 130% at 100% 0%, rgb(var(--lit) / .75), rgb(var(--lit) / 0) 70%) border-box,
              linear-gradient(180deg, rgb(var(--lit) / .35), rgb(var(--lit) / 0) 60%) border-box;
  -webkit-mask: linear-gradient(#000 0 0) border-box, linear-gradient(#000 0 0) padding-box; -webkit-mask-composite: xor;
  mask: linear-gradient(#000 0 0) border-box exclude, linear-gradient(#000 0 0) padding-box;
  mix-blend-mode: screen; opacity: calc(.45 + var(--kg) * .55 - var(--kp) * .3); }
.btn.primary { --face: radial-gradient(140% 180% at 88% -20%, #D25008 0%, #C84906 42%, #BE4304 100%);
  --c-t: #F47D1F; --c-r: #F7922B; --c-b: #B04003; --c-l: #CB5810;
  --lit: 255 196 120; --ridge: rgba(255,186,120,.6); --crease: rgba(105,28,0,.32); --dark: 70 14 0;
  --gap: 74 22 0; --gap-a: .48; --sh: 140 45 5; color: #fff; text-shadow: 0 1px 0 rgba(110,28,0,.28); }
@media (hover: hover) { .btn:hover { --ky: -1px; --kg: 1; } }
.btn:active, .btn.is-pressed { --ky: 2.5px; --kp: 1; --kg: 0;
  --kt: calc(var(--kt0) * .55); --kr: calc(var(--kr0) * .7); --kb: calc(var(--kb0) * .5); --kl: calc(var(--kl0) * .8);
  transition-duration: .12s; transition-timing-function: cubic-bezier(.2,.7,.3,1); }
.btn:focus-visible { outline: 2px solid var(--accent); outline-offset: 5px; border-radius: var(--rad); }
.btn:is(:disabled, [aria-busy="true"]), .btn:is(:disabled, [aria-busy="true"]):is(:hover, :active) {
  --ky: 0px; --kp: 0; --kg: 0; --kt: var(--kt0); --kr: var(--kr0); --kb: var(--kb0); --kl: var(--kl0); opacity: .6; cursor: progress; }
.btn.sm { --kt0: 2.5px; --kr0: 5px; --kb0: 4px; --kl0: 2px; --px: 14px; --rad: 9px; height: 40px; font-size: 14px; }
/* On a dark page the keys sit in a darker well with no light lip under them, as on directionallylocal.com's dark panels. */
@media (prefers-reduced-motion: reduce) {
  .btn, .btn:active, .btn.is-pressed { transition-duration: 1ms; transition-timing-function: linear; }
  .btn:hover { --ky: 0px; }
}

/* Sizes from the old api.dl.new page. */
.btn.xs { --kt0: 2px; --kr0: 4px; --kb0: 3.5px; --kl0: 2px; --px: 12px; --rad: 8px; height: 34px; font-size: 13px; }
.btn.wide { width: 100%; height: 50px; --rad: 12px; font-size: 16px; gap: 10px; }
.cmdbox .btn, .snip .btn { --lip-d: rgba(0,0,0,.45); --lip-l: rgba(255,255,255,.07); --gap: 0 0 0; --gap-a: .75; --sh: 0 0 0; flex: none; }
.copyrow .btn { flex: none; }
.snip { position: relative; min-width: 0; }
.snip pre { margin: 0; background: var(--code); color: var(--code-ink); border-radius: 12px; padding: 14px 16px; padding-right: 92px; font: 13px/1.6 var(--mono); overflow-x: auto; white-space: pre; }
.snip pre .d { color: #7C8491; }
.snip .btn { position: absolute; top: 8px; right: 8px; }
@media (max-width: 759px) { .snip pre { padding-right: 16px; padding-top: 50px; } }

/* ---------- 1. Plan ---------- */
.flow { display: grid; grid-template-columns: minmax(0, 1fr); gap: 28px; padding-block: 24px 56px; align-items: start; }
/* One column, as wide as the plan cards were beside the old sidebar, centred in the frame. */
@media (min-width: 900px) { .flow { width: min(100%, 550px); padding-block: 56px 72px; } }
.lockup { display: grid; gap: 16px; justify-items: start; min-width: 0; }
/* The headline's tool: its logo (as tall as the headline's capitals, on the baseline, in the name's accent) and its name,
   one every 2s in a box as wide as the widest pair (no shift between them). Reduced motion: the first. */
.tool { --cap: .69em; display: inline-grid; justify-items: start; vertical-align: baseline; }
.tool > span { grid-area: 1 / 1; white-space: nowrap; opacity: 0; animation: tool 14s infinite both; }
.tool svg { display: inline-block; vertical-align: baseline; height: var(--cap); width: auto; margin-right: .18em; }
.tool > span:nth-child(2) { animation-delay: 2s; } .tool > span:nth-child(3) { animation-delay: 4s; } .tool > span:nth-child(4) { animation-delay: 6s; }
.tool > span:nth-child(5) { animation-delay: 8s; } .tool > span:nth-child(6) { animation-delay: 10s; } .tool > span:nth-child(7) { animation-delay: 12s; }
@keyframes tool { 0% { opacity: 0; transform: translateY(.2em); } 2.14%, 12% { opacity: 1; transform: none; } 14.29%, 100% { opacity: 0; transform: translateY(-.2em); } }
@media (prefers-reduced-motion: reduce) { .tool > span { animation: none; } .tool > span:first-child { opacity: 1; } }

.plans { border: 0; margin: 4px 0 0; padding: 0; display: grid; gap: 10px; width: 100%; min-width: 0; }
.plans legend { padding: 0 0 8px; font-size: 13px; color: var(--muted); }
.plan { position: relative; display: grid; grid-template-columns: 22px minmax(0, 1fr) auto; column-gap: 14px; row-gap: 2px; align-items: baseline; padding: 16px 18px; border-radius: 14px; background: var(--surface); border: 1px solid var(--line); cursor: pointer; }
.plan:hover { border-color: var(--muted); }
.plan input { appearance: none; margin: 0; grid-row: 1 / span 2; align-self: center; width: 20px; height: 20px; border: 1.5px solid #B5BBC6; border-radius: 50%; background: var(--surface); display: grid; place-items: center; }
.plan input::after { content: ""; width: 10px; height: 10px; border-radius: 50%; background: var(--accent); transform: scale(0); }
.plan input:checked { border-color: var(--accent); }
.plan input:checked::after { transform: scale(1); }
.plan:has(input:checked) { border-color: var(--accent); box-shadow: inset 0 0 0 1px var(--accent); }
.plan b { font: 700 19px var(--display); letter-spacing: -.01em; }
.plan .price { font: 700 19px var(--display); letter-spacing: -.01em; white-space: nowrap; }
.plan .price small { font: 400 14px var(--body); color: var(--muted); letter-spacing: 0; }
.plan .tok { grid-column: 2 / -1; font-size: 15px; }
.plan .tok i { white-space: nowrap; font-style: normal; color: var(--muted); font-size: 13.5px; }
.plan .mdl { grid-column: 2 / -1; font: 12.5px var(--mono); color: var(--muted); }
.pay { display: grid; gap: 10px; width: 100%; margin-top: 4px; }
.pay .fine { text-align: center; }

.ticks { margin: 0; padding: 0; list-style: none; display: grid; gap: 8px; font-size: 15px; }
.ticks li { padding-left: 20px; position: relative; text-wrap: pretty; }
.ticks li::before { content: ""; position: absolute; left: 2px; top: .62em; width: 8px; height: 8px; border-radius: 2px; background: var(--accent); }

/* ---------- 3 & 6. Account / sign in (one centred card) ---------- */
.center { display: grid; justify-items: center; align-content: start; gap: 24px; padding-block: 56px 72px; text-align: center; }
.center h1 { font-size: clamp(30px, 3.4vw, 44px); line-height: 1.05; max-width: 22ch; }
.center .card { width: min(460px, 100%); text-align: left; }
.or { display: flex; align-items: center; gap: 12px; font: 12.5px var(--mono); color: var(--muted); }
.or::before, .or::after { content: ""; flex: 1; height: 1px; background: var(--line); }
.inrow { display: flex; gap: 8px; min-width: 0; }
.inrow input { flex: 1 1 auto; min-width: 0; height: 50px; border: 1px solid var(--line); border-radius: 12px; padding: 0 14px; font: 16px var(--body); background: var(--surface); color: var(--ink); }
.inrow .btn { height: 50px; --rad: 12px; }
.sent { display: flex; justify-content: space-between; align-items: baseline; gap: 10px; font-size: 14px; color: var(--muted); flex-wrap: wrap; }
.sent b { color: var(--ink); font-weight: 600; }
.sent a { font-size: 13px; }
.code { display: grid; grid-template-columns: repeat(6, minmax(0, 1fr)); gap: 8px; }
.code input { width: 100%; height: 58px; text-align: center; font: 600 24px var(--mono); border: 1px solid var(--line); border-radius: 12px; background: var(--surface); color: var(--ink); padding: 0; }
.code input.f { border-color: var(--ink); }
.code input.cur { border-color: var(--accent); box-shadow: inset 0 0 0 1px var(--accent); }
.resend { display: flex; justify-content: space-between; gap: 10px; font: 12.5px var(--mono); color: var(--muted); }
.paidrow { display: flex; justify-content: space-between; align-items: baseline; gap: 12px; padding-bottom: 14px; border-bottom: 1px solid var(--line); font-size: 14px; }
.paidrow span { font: 12.5px var(--mono); color: var(--muted); }
.paidrow b { font-weight: 600; }
.tag { display: inline-block; padding: 1px 8px; border: 1px solid var(--accent); border-radius: 999px; color: var(--accent-text); font: 600 11px/1.5 var(--mono); letter-spacing: .02em; }

/* ---------- 4. Connect ---------- */
.connect { display: grid; grid-template-columns: minmax(0, 1fr); gap: 24px 40px; padding-block: 40px 72px; align-items: start; }
@media (min-width: 900px) { .connect { grid-template-columns: minmax(0, 580fr) minmax(0, 420fr); } .connect .lockup { grid-column: 1 / -1; } }
.who { font-size: 15px; color: var(--muted); margin: 0; }
.who b { color: var(--ink); font-weight: 600; }
.setup { display: grid; gap: 12px; min-width: 0; }
.tabs { display: flex; flex-wrap: wrap; gap: 6px; }
.tab { font: 500 14px var(--body); border: 1px solid var(--line); background: var(--surface); border-radius: 999px; padding: 6px 14px; cursor: pointer; color: var(--ink); }
.tab:hover { border-color: var(--muted); }
.tab[aria-selected="true"] { background: var(--ink); color: #fff; border-color: var(--ink); }
.panel { display: grid; gap: 16px; background: var(--surface); border: 1px solid var(--line); border-radius: 16px; padding: 20px; min-width: 0; box-shadow: 0 24px 50px -30px rgba(14, 17, 22, .4); }
.panel .step { display: grid; gap: 6px; min-width: 0; }
.panel .step > span { font: 12.5px var(--mono); color: var(--muted); }
.panel .step > span b { color: var(--ink); font-weight: 600; font-family: var(--body); font-size: 14px; margin-right: 6px; }
.panel .note b { color: var(--ink); font-weight: 600; }
.keyrow code { letter-spacing: .02em; }

.live { display: grid; gap: 14px; background: var(--surface); border: 1px solid var(--line); border-radius: 16px; padding: 20px; min-width: 0; box-shadow: 0 24px 50px -30px rgba(14, 17, 22, .4); }
.live .lh { display: flex; justify-content: space-between; align-items: baseline; gap: 10px; }
.state { display: flex; align-items: center; gap: 12px; font: 700 20px/1.2 var(--display); letter-spacing: -.02em; }
.dot { position: relative; flex: none; width: 12px; height: 12px; border-radius: 50%; background: var(--accent); }
.dot.pulse::after { content: ""; position: absolute; inset: 0; border-radius: 50%; background: var(--accent); animation: pulse 1.6s ease-out infinite; }
@keyframes pulse { from { transform: scale(1); opacity: .55; } to { transform: scale(2.8); opacity: 0; } }
@media (prefers-reduced-motion: reduce) { .dot.pulse::after { animation: none; transform: scale(2); opacity: .2; } }
.live .waiting { margin: 0; color: var(--muted); font-size: 14px; }
.live .waiting code { font-size: .92em; background: var(--bg); border: 1px solid var(--line); border-radius: 6px; padding: 0 5px; color: var(--ink); }
.reqs { width: 100%; border-collapse: separate; border-spacing: 0; border: 1px solid var(--line); border-radius: 12px; overflow: hidden; font: 12.5px/1.35 var(--mono); font-variant-numeric: tabular-nums; }
.reqs th { text-align: right; font: 600 10.5px/1.3 var(--mono); letter-spacing: .05em; text-transform: uppercase; color: var(--muted); padding: 9px 10px; background: var(--bg); border-bottom: 1px solid var(--line); vertical-align: bottom; }
.reqs td { text-align: right; padding: 10px 10px; border-bottom: 1px solid var(--line); white-space: nowrap; }
.reqs th:first-child, .reqs td:first-child { text-align: left; white-space: normal; }
.reqs tr:last-child td { border-bottom: 0; }
.reqs tr.hit td.c { color: var(--accent-text); font-weight: 600; }
.saved { margin: 0; padding: 10px 12px; border-radius: 10px; background: var(--soft); border: 1px solid #F1CDBB; font-size: 14px; text-wrap: pretty; }
.live .next { display: flex; gap: 10px; flex-wrap: wrap; }

/* ---------- 5. Usage ---------- */
.unav { display: flex; gap: 4px; justify-self: center; }
.unav a { padding: 6px 12px; border-radius: 999px; font: 500 14px var(--body); text-decoration: none; color: var(--muted); border: 1px solid transparent; }
.unav a:hover { color: var(--ink); }
.unav a[aria-current] { background: var(--surface); color: var(--ink); border-color: var(--line); }
.acct { justify-self: end; display: inline-flex; align-items: center; gap: 8px; font-size: 14px; color: var(--muted); }
.acct .avatar { width: 28px; height: 28px; border-radius: 999px; background: var(--line); display: grid; place-items: center; font: 700 13px var(--display); color: var(--ink); }
.signout { appearance: none; border: 1px solid var(--line); background: none; margin-left: 4px; padding: 5px 10px; border-radius: 999px; font: 500 13px var(--body); color: var(--muted); cursor: pointer; white-space: nowrap; }
.signout:hover { color: var(--ink); border-color: var(--ink); }
.signout:disabled { opacity: .6; cursor: default; }
.hright .signout { margin-left: 2px; padding: 3px 9px; }
@media (max-width: 380px) { #acct-plan { display: none; } }
@media (max-width: 760px) { .unav { grid-column: 1 / -1; grid-row: 2; justify-self: stretch; justify-content: space-between; } }
.usage { display: grid; gap: 16px; padding-block: 32px 64px; }
.uh { display: flex; justify-content: space-between; align-items: baseline; gap: 8px 16px; flex-wrap: wrap; }
.uh h1 { font-size: clamp(34px, 3.6vw, 48px); }
.uh p { margin: 0; font: 13px var(--mono); color: var(--muted); }
.uh p b { color: var(--ink); font-weight: 500; }
.bar { display: grid; gap: 10px; }
.bar .row { display: flex; justify-content: space-between; align-items: baseline; gap: 6px 12px; flex-wrap: wrap; }
.bar .big { font: 700 26px/1.1 var(--display); letter-spacing: -.02em; }
.bar .big small { font: 400 15px var(--body); color: var(--muted); letter-spacing: 0; }
.bar .row > span:not(.big) { font: 12.5px var(--mono); color: var(--muted); }
.meter { height: 12px; background: var(--bg); border: 1px solid var(--line); border-radius: 999px; overflow: hidden; }
.meter i { display: block; height: 100%; background: var(--accent); border-radius: inherit; }
.tiles { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 12px; }
@media (max-width: 899px) { .tiles { grid-template-columns: repeat(2, minmax(0, 1fr)); } }
.tile { display: grid; gap: 4px; align-content: start; background: var(--surface); border: 1px solid var(--line); border-radius: 14px; padding: 16px; min-width: 0; }
.tile > span { font: 12.5px var(--mono); color: var(--muted); }
.tile b { font: 700 28px/1.15 var(--display); letter-spacing: -.02em; font-variant-numeric: tabular-nums; }
.tile p { margin: 0; font-size: 13.5px; color: var(--muted); text-wrap: pretty; }
.tile p strong { color: var(--ink); font-weight: 600; }
.two { display: grid; grid-template-columns: minmax(0, 1fr); gap: 12px; }
@media (min-width: 900px) { .two { grid-template-columns: minmax(0, 600fr) minmax(0, 428fr); } }
.chart h2, .bytool h2 { font-size: 18px; }
.chart .ch { display: flex; justify-content: space-between; align-items: baseline; gap: 10px; flex-wrap: wrap; }
.chart .ch span { font: 12.5px var(--mono); color: var(--muted); }
.cols { display: grid; grid-template-columns: repeat(7, minmax(0, 1fr)); gap: 10px; align-items: end; height: 170px; padding-top: 18px; border-bottom: 1px solid var(--line); }
.col { position: relative; display: flex; flex-direction: column; justify-content: flex-end; height: 100%; }
.col i { display: block; background: var(--accent); border-radius: 4px 4px 0 0; }
.col.empty i { height: 2px !important; background: var(--line); border-radius: 0; }
.col em { position: absolute; left: 0; right: 0; text-align: center; font: normal 12px var(--mono); color: var(--ink); font-variant-numeric: tabular-nums; }
.col:hover i { filter: brightness(.9); }
.days { display: grid; grid-template-columns: repeat(7, minmax(0, 1fr)); gap: 10px; font: 12px var(--mono); color: var(--muted); text-align: center; }
.days .today { color: var(--ink); font-weight: 600; }
.tools { margin: 0; padding: 0; list-style: none; display: grid; gap: 12px; }
.tools li { display: grid; gap: 6px; }
.tools .tr { display: flex; justify-content: space-between; gap: 10px; font-size: 14.5px; }
.tools .tr span { font: 12.5px var(--mono); color: var(--muted); font-variant-numeric: tabular-nums; }
.tools .tb { height: 8px; background: var(--bg); border-radius: 999px; overflow: hidden; }
.tools .tb i { display: block; height: 100%; background: var(--ink); border-radius: inherit; }
.ratio { display: flex; align-items: baseline; gap: 12px; padding-top: 14px; border-top: 1px solid var(--line); }
.ratio b { font: 700 28px/1 var(--display); letter-spacing: -.02em; }
.ratio p { margin: 0; font-size: 13.5px; color: var(--muted); }
/* Connect, wide: the setup column and the live box share top and bottom edges. */
@media (min-width: 900px) {
  .connect { align-items: stretch; }
  .setup { grid-template-rows: auto 1fr; }
  .live { align-content: start; }
}
@media (min-width: 900px) { .live { display: flex; flex-direction: column; } .live .next { margin-top: auto; } }
@media (max-width: 480px) { .plan { padding: 14px; column-gap: 12px; } }
@media (max-width: 600px) {
  .reqs thead { display: none; }
  .reqs, .reqs tbody { display: block; }
  .reqs tr { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 4px 8px; padding: 10px 12px; border-bottom: 1px solid var(--line); }
  .reqs tr:last-child { border-bottom: 0; }
  .reqs td { display: grid; padding: 0; border: 0 !important; text-align: left !important; }
  .reqs td:first-child { grid-column: 1 / -1; font-weight: 600; }
  .reqs td[data-l]::before { content: attr(data-l); font: 600 10px/1.4 var(--mono); letter-spacing: .04em; text-transform: uppercase; color: var(--muted); }
  .keyrow { flex-wrap: wrap; }
  .keyrow code { flex: 1 0 100%; }
}

/* Dark: the same tokens the rest of dl.new uses. */
@media (prefers-color-scheme: dark) {
  :root { --bg: #0B0E12; --surface: #161A21; --ink: #E6E9EE; --muted: #8A919E; --line: #262B34; 
    --accent: #FF7A33; --accent-text: #FF7A33; --soft: #2A1A12; --code: #05070A; --code-ink: #D5D9E0;
    --wash: radial-gradient(ellipse 90% 60% at 50% -8%, rgb(255 122 51 / .14) 0%, rgb(255 122 51 / .09) 20%, rgb(255 122 51 / .045) 40%, rgb(255 122 51 / .015) 60%, rgb(255 122 51 / 0) 80%),
    radial-gradient(ellipse 55% 45% at 102% 38%, rgb(255 140 90 / .06) 0%, rgb(255 140 90 / .03) 35%, rgb(255 140 90 / 0) 80%),
    linear-gradient(180deg, #0D0F13 0%, #0B0E12 50%, #0A0D13 100%); }
  .btn { --lip-d: rgba(0,0,0,.45); --lip-l: rgba(255,255,255,.07); --gap: 0 0 0; --gap-a: .75; --sh: 0 0 0; }
  .btn:not(.primary) { --face: radial-gradient(140% 180% at 88% -20%, #353B46 0%, #272C35 45%, #1F232B 100%);
    --c-t: #555D6B; --c-r: #646D7C; --c-b: #0A0C0F; --c-l: #343A44;
    --lit: 200 212 235; --ridge: rgba(255,255,255,.2); --crease: rgba(0,0,0,.5); --dark: 0 0 0;
    color: #fff; text-shadow: 0 1px 0 rgba(0,0,0,.4); }
  .card, .panel, .live { box-shadow: none; }
  .gbtn { background: #131314; border-color: #8E918F; color: #E3E3E3; }
  @media (hover: hover) { .gbtn:hover { background: #1F1F21; box-shadow: none; } }
  .gbtn:active { background: #2A2A2C; }
  .plan input { border-color: #4A515D; }
  .tab[aria-selected="true"] { background: var(--ink); color: var(--bg); }
  .saved { border-color: #5A3320; }
}

/* Messages from the service (shown as sent) and small states. */
.msg { margin: 0; padding: 10px 12px; border-radius: 10px; font-size: 14px; border: 1px solid var(--line); background: var(--bg); text-wrap: pretty; }
.msg.err { border-color: #F1CDBB; background: var(--soft); color: var(--ink); }
.msg a { font-weight: 600; text-underline-offset: 3px; }
.msg:empty { display: none; }
.linkbtn { appearance: none; border: 0; background: none; padding: 0; font: inherit; color: var(--ink); text-decoration: underline; text-underline-offset: 3px; cursor: pointer; }
.linkbtn:disabled { color: var(--muted); text-decoration: none; cursor: default; }
.plan .mdl { display: grid; gap: 1px; }
.plan .mdl span { white-space: normal; }
.plan .mdl i { font-style: normal; white-space: nowrap; }
.bonus { margin: 0; font-size: 14px; color: var(--muted); text-wrap: pretty; }
.bonus b { color: var(--ink); font-weight: 600; }
.who { font-size: 14px; }
.who b { color: var(--ink); font-weight: 600; }
/* The launch offer on a plan card (only while /web/plans says it is on). */
.plan .price s { font-weight: 500; font-size: 16px; color: var(--muted); text-decoration-thickness: 1.5px; margin-right: 2px; }
/* The offer line above the cards (main.js fills it from /web/plans promo; hidden otherwise). */
.sale { margin: 4px 0 -2px; font-weight: 600; font-size: 17px; color: var(--accent-text); text-wrap: pretty; }
.sale[hidden] { display: none; }
/* The free trials (/web/plans trials): the card trial's line on every card, the no-card option under Pay. */
.plan .trial { grid-column: 2 / -1; margin-top: 6px; font-size: 13.5px; line-height: 1.45; color: var(--accent-text); text-wrap: pretty; }
.plan .trial.claimed { color: var(--muted); }
.nocard { margin: 2px 0 0; text-align: center; font-size: 14px; color: var(--muted); text-wrap: pretty; }
.nocard a { color: var(--ink); font-weight: 600; text-underline-offset: 3px; }
.trialbar .label { display: flex; gap: 8px; align-items: baseline; flex-wrap: wrap; }
.trialbar .fine a { color: var(--ink); font-weight: 600; }
.connect #trial-meter:empty { display: none; }
.center .ticks { text-align: left; font-size: 14.5px; }
.center .ticks i { font-style: normal; color: var(--muted); }
.ticks .flag { font-family: "Apple Color Emoji", "Segoe UI Emoji", "Noto Color Emoji", sans-serif; }

/* Dashboard pages: Keys, Billing, cli-login, upgrade. */
.dash { display: grid; gap: 16px; padding-block: 32px 64px; align-content: start; }
.dash > h1, .uh h1 { font-size: clamp(34px, 3.6vw, 48px); }
.dash .card h2 { font-size: 18px; }
.dash .lead { margin: 0; color: var(--muted); font-size: 15px; }
.bars { display: grid; gap: 12px; }
.bar .label { font: 12.5px var(--mono); color: var(--muted); }
.bar .label b { color: var(--ink); font-weight: 600; font-family: var(--body); font-size: 15px; margin-right: 6px; }
.bar.used-up .meter i { background: var(--ink); }
.bar.gpt6 .meter i { background: var(--ink); }
.bar .fine b { color: var(--ink); font-weight: 600; }
.keys { width: 100%; border-collapse: separate; border-spacing: 0; font-size: 14px; }
.keys th { text-align: left; font: 600 10.5px/1.3 var(--mono); letter-spacing: .05em; text-transform: uppercase; color: var(--muted); padding: 0 10px 8px 0; border-bottom: 1px solid var(--line); }
.keys td { padding: 12px 10px 12px 0; border-bottom: 1px solid var(--line); vertical-align: middle; }
.keys td code { font-size: 13px; }
.keys td:last-child, .keys th:last-child { text-align: right; padding-right: 0; }
.keys tr:last-child td { border-bottom: 0; }
.keys .when { color: var(--muted); font-size: 13px; }
@media (max-width: 640px) {
  .keys thead { display: none; }
  .keys, .keys tbody { display: block; }
  .keys tr { display: grid; grid-template-columns: minmax(0, 1fr) auto; gap: 2px 12px; padding: 12px 0; border-bottom: 1px solid var(--line); }
  .keys tr:last-child { border-bottom: 0; }
  .keys td { padding: 0; border: 0; }
  .keys td:nth-child(1) { font-weight: 600; }
  .keys td:nth-child(2) { grid-column: 1; grid-row: 2; }
  .keys td:nth-child(3) { grid-column: 1; grid-row: 3; }
  .keys td:last-child { grid-column: 2; grid-row: 1 / span 3; align-self: center; }
}
.reveal { display: grid; gap: 8px; padding: 14px; border-radius: 12px; background: var(--soft); border: 1px solid #F1CDBB; }
.reveal p { margin: 0; font-size: 14px; }
.rows { display: grid; gap: 0; }
.rows > div { display: flex; justify-content: space-between; align-items: baseline; gap: 6px 16px; flex-wrap: wrap; padding: 12px 0; border-bottom: 1px solid var(--line); font-size: 15px; }
.rows > div:first-child { padding-top: 0; }
.rows > div:last-child { border-bottom: 0; padding-bottom: 0; }
.rows > div > span:first-child { font: 12.5px var(--mono); color: var(--muted); }
.actions { display: flex; flex-wrap: wrap; gap: 10px; align-items: center; }
.switch { display: flex; align-items: center; justify-content: space-between; gap: 16px; cursor: pointer; }
.switch span { font-size: 15px; text-wrap: pretty; }
.switch span small { display: block; font-size: 13px; color: var(--muted); }
.switch input { appearance: none; flex: none; margin: 0; width: 46px; height: 28px; border-radius: 999px; background: var(--line); position: relative; cursor: pointer; transition: background .15s; }
.switch input::after { content: ""; position: absolute; top: 3px; left: 3px; width: 22px; height: 22px; border-radius: 50%; background: #fff; box-shadow: 0 1px 2px rgba(0,0,0,.25); transition: transform .15s; }
.switch input:checked { background: var(--accent); }
.switch input:checked::after { transform: translateX(18px); }
.switch input:disabled { opacity: .6; cursor: progress; }
@media (prefers-reduced-motion: reduce) { .switch input, .switch input::after { transition: none; } }
textarea.field-in { width: 100%; min-height: 80px; border: 1px solid var(--line); border-radius: 10px; padding: 10px 12px; font: 15px/1.5 var(--body); background: var(--surface); color: var(--ink); resize: vertical; }
.two-col { display: grid; grid-template-columns: minmax(0, 1fr); gap: 12px; }
@media (min-width: 900px) { .two-col { grid-template-columns: minmax(0, 1fr) minmax(0, 1fr); align-items: stretch; } }
.choices { display: grid; gap: 10px; }
.device { font: 600 22px/1.2 var(--display); letter-spacing: -.01em; margin: 0; }
.ucode { font: 600 26px var(--mono); letter-spacing: .12em; text-align: center; padding: 10px; border-radius: 12px; background: var(--bg); border: 1px solid var(--line); }
footer .dataline a { text-underline-offset: 3px; }
.stack { display: grid; gap: 16px; min-width: 0; }
.resend .linkbtn { white-space: nowrap; flex: none; }

/* For providers (dl.new/providers): the inquiry form. */
.providers .card { width: min(520px, 100%); }
.field textarea { min-height: 96px; border: 1px solid var(--line); border-radius: 10px; padding: 10px 12px; font: 15px/1.5 var(--body); background: var(--surface); color: var(--ink); width: 100%; resize: vertical; }
.field textarea:focus-visible { outline: 2px solid var(--accent); outline-offset: 3px; }
.field .hint { font-size: 12.5px; color: var(--muted); text-wrap: pretty; }
.providers .done { margin: 0; font-size: 16px; text-wrap: pretty; }
.providers .done:focus { outline: none; }
