/*
 * Licensed under the Apache License, Version 2.0 (the "License");
 * you may not use this file except in compliance with the License.
 * You may obtain a copy of the License at
 *
 * http://www.apache.org/licenses/LICENSE-2.0
 *
 * Unless required by applicable law or agreed to in writing, software
 * distributed under the License is distributed on an "AS IS" BASIS,
 * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
 * See the License for the specific language governing permissions and
 * limitations under the License.
 */

/* The public site. Same dark navy and baby blue as the admin dashboard, with
 * soft lilac, mint and peach as companions. System fonts only: the CSP allows
 * nothing from other origins. */
:root {
  color-scheme: dark;
  --page: #0a121b;
  --page-2: #0c1622;
  --surface: rgba(17, 30, 44, 0.72);
  --surface-solid: #0f1a26;
  --surface-2: #132232;
  --ink: #eef7fd;
  --ink-2: #b4d3e6;
  --muted: #86a1b6;
  --border: rgba(137, 207, 240, 0.14);
  --border-strong: rgba(137, 207, 240, 0.32);
  --wash: rgba(137, 207, 240, 0.07);
  --baby: #89cff0;
  --baby-strong: #a9ddf5;
  --baby-deep: #5fb4e0;
  --lilac: #c4b5fd;
  --mint: #a7f0d2;
  --peach: #fbcfb0;
  --rose: #f6c3d8;
  --radius: 18px;
  --radius-sm: 12px;
  --shadow: 0 1px 0 rgba(255, 255, 255, 0.04) inset, 0 20px 50px -24px rgba(0, 0, 0, 0.7);
  --sans: ui-sans-serif, system-ui, -apple-system, "Segoe UI", Roboto, "Helvetica Neue", sans-serif;
  --serif: "Iowan Old Style", "Palatino Linotype", Palatino, "Book Antiqua", Georgia, serif;
  --mono: ui-monospace, "SF Mono", SFMono-Regular, Menlo, Consolas, "Liberation Mono", monospace;
}

*, *::before, *::after { box-sizing: border-box; }

html { scroll-behavior: smooth; -webkit-text-size-adjust: 100%; }

body {
  margin: 0;
  min-height: 100vh;
  background: var(--page);
  color: var(--ink);
  font: 16px/1.6 var(--sans);
  -webkit-font-smoothing: antialiased;
  overflow-x: hidden;
}

/* A faint dot grid that fades out down the page. */
body::before {
  content: "";
  position: fixed;
  inset: 0;
  z-index: -2;
  background-image: radial-gradient(rgba(137, 207, 240, 0.09) 1px, transparent 1px);
  background-size: 28px 28px;
  -webkit-mask-image: linear-gradient(to bottom, #000 0%, transparent 70%);
  mask-image: linear-gradient(to bottom, #000 0%, transparent 70%);
}

.glow { position: absolute; inset: 0 0 auto 0; height: 900px; z-index: -1; overflow: hidden; pointer-events: none; }
.orb { position: absolute; border-radius: 50%; filter: blur(80px); opacity: 0.5; animation: drift 22s ease-in-out infinite alternate; }
.orb-1 { width: 520px; height: 520px; left: -140px; top: -180px; background: rgba(137, 207, 240, 0.40); }
.orb-2 { width: 460px; height: 460px; right: -120px; top: -60px; background: rgba(196, 181, 253, 0.30); animation-delay: -7s; }
.orb-3 { width: 380px; height: 380px; left: 38%; top: 260px; background: rgba(167, 240, 210, 0.16); animation-delay: -14s; }

@keyframes drift {
  from { transform: translate3d(0, 0, 0) scale(1); }
  to { transform: translate3d(40px, 30px, 0) scale(1.08); }
}

a { color: var(--baby); text-decoration-thickness: 1px; text-underline-offset: 3px; }
a:hover { color: var(--baby-strong); }
:focus-visible { outline: 2px solid var(--baby); outline-offset: 3px; border-radius: 6px; }

code, pre { font-family: var(--mono); font-size: 0.88em; }
p code, li code { background: var(--wash); border: 1px solid var(--border); border-radius: 6px; padding: 0.08em 0.4em; color: var(--baby-strong); }

.wrap { width: min(1160px, 100% - 32px); margin-inline: auto; }

.skip { position: absolute; left: -999px; top: 8px; background: var(--baby); color: var(--page); padding: 8px 14px; border-radius: 8px; z-index: 10; }
.skip:focus { left: 16px; }

/* --- Header ----------------------------------------------------------------------- */

.site-header {
  position: sticky;
  top: 0;
  z-index: 5;
  backdrop-filter: saturate(160%) blur(14px);
  -webkit-backdrop-filter: saturate(160%) blur(14px);
  background: rgba(10, 18, 27, 0.66);
  border-bottom: 1px solid var(--border);
}

.nav { display: flex; align-items: center; gap: 28px; height: 64px; }

.brand { display: inline-flex; align-items: center; gap: 10px; color: var(--ink); text-decoration: none; font-weight: 650; letter-spacing: -0.01em; font-size: 1.06rem; }
.brand:hover { color: var(--ink); }

.nav-links { display: flex; gap: 4px; list-style: none; margin: 0; padding: 0; flex: 1; }
.nav-links a { display: block; padding: 6px 12px; border-radius: 999px; color: var(--ink-2); text-decoration: none; font-size: 0.94rem; transition: background 0.2s, color 0.2s; }
.nav-links a:hover { color: var(--ink); background: var(--wash); }
.nav-links a[aria-current="page"] { color: var(--ink); background: rgba(137, 207, 240, 0.12); }

/* --- Buttons and pills -------------------------------------------------------------- */

.btn {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 12px 20px;
  border-radius: 999px;
  font-weight: 600;
  font-size: 0.97rem;
  text-decoration: none;
  border: 1px solid transparent;
  transition: transform 0.2s, box-shadow 0.2s, background 0.2s, border-color 0.2s;
}
.btn:hover { transform: translateY(-1px); }
.btn-small { padding: 7px 14px; font-size: 0.88rem; }
.btn-primary {
  color: #06121c;
  background: linear-gradient(135deg, var(--baby-strong), var(--baby) 55%, #9fc4f7);
  box-shadow: 0 10px 30px -10px rgba(137, 207, 240, 0.65), 0 0 0 1px rgba(255, 255, 255, 0.25) inset;
}
.btn-primary:hover { color: #06121c; box-shadow: 0 14px 36px -10px rgba(137, 207, 240, 0.8), 0 0 0 1px rgba(255, 255, 255, 0.35) inset; }
.btn-ghost { color: var(--ink); border-color: var(--border-strong); background: rgba(137, 207, 240, 0.04); }
.btn-ghost:hover { color: var(--ink); border-color: var(--baby); background: var(--wash); }
.btn-soft { color: #1a1430; background: linear-gradient(135deg, var(--lilac), var(--rose)); }
.btn-soft:hover { color: #1a1430; }
/* Card payments and checkout: a calm, solid button and a plain outline one, no gradient or lift. */
.btn-solid, .btn-outline { border-radius: 10px; font-weight: 560; font-family: var(--sans); cursor: pointer; }
.btn-solid { color: var(--page); background: var(--ink); }
.btn-solid:hover { color: var(--page); background: #d5e5ef; transform: none; }
.btn-solid:active { background: #c2d8e6; }
.btn-outline { color: var(--ink); border-color: var(--border-strong); background: transparent; }
.btn-outline:hover { color: var(--ink); background: var(--wash); transform: none; }

.pill {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  margin: 0 0 22px;
  padding: 6px 14px 6px 12px;
  border-radius: 999px;
  font-size: 0.85rem;
  color: var(--ink-2);
  background: rgba(137, 207, 240, 0.08);
  border: 1px solid var(--border);
}
.dot { width: 8px; height: 8px; border-radius: 50%; background: var(--mint); box-shadow: 0 0 0 0 rgba(167, 240, 210, 0.6); animation: pulse 2.4s infinite; }
.pill-test .dot { background: var(--peach); animation: none; }

@keyframes pulse {
  0% { box-shadow: 0 0 0 0 rgba(167, 240, 210, 0.55); }
  70% { box-shadow: 0 0 0 9px rgba(167, 240, 210, 0); }
  100% { box-shadow: 0 0 0 0 rgba(167, 240, 210, 0); }
}

/* --- Hero --------------------------------------------------------------------------- */

.hero { display: grid; grid-template-columns: 1.1fr 0.9fr; gap: 56px; align-items: center; padding: 96px 0 56px; }
.page-hero { padding: 72px 0 24px; max-width: 860px; }

h1 { font-size: clamp(2.6rem, 6.2vw, 4.6rem); line-height: 1.02; letter-spacing: -0.035em; margin: 0 0 22px; font-weight: 720; }
.page-hero h1 { font-size: clamp(2.2rem, 5vw, 3.6rem); }

.grad {
  background: linear-gradient(100deg, var(--baby-strong) 0%, var(--baby) 35%, var(--lilac) 70%, var(--mint) 100%);
  background-size: 200% 100%;
  -webkit-background-clip: text;
  background-clip: text;
  color: transparent;
  animation: sheen 9s ease-in-out infinite alternate;
}
@keyframes sheen { from { background-position: 0% 50%; } to { background-position: 100% 50%; } }

.lead { font-size: clamp(1.08rem, 1.6vw, 1.25rem); color: var(--ink-2); max-width: 40em; margin: 0 0 32px; }
.actions { display: flex; flex-wrap: wrap; gap: 12px; }

.crumbs { color: var(--muted); font-size: 0.9rem; margin: 0 0 18px; }
.crumbs a { color: var(--ink-2); text-decoration: none; }

/* The x402 exchange, drawn one line at a time. */
.exchange {
  margin: 0;
  border-radius: var(--radius);
  background: linear-gradient(180deg, rgba(19, 34, 50, 0.92), rgba(12, 22, 34, 0.92));
  border: 1px solid var(--border-strong);
  box-shadow: var(--shadow), 0 0 80px -30px rgba(137, 207, 240, 0.5);
  overflow: hidden;
}
.exchange-bar { display: flex; align-items: center; gap: 7px; padding: 12px 16px; border-bottom: 1px solid var(--border); }
.exchange-bar span { width: 10px; height: 10px; border-radius: 50%; background: rgba(137, 207, 240, 0.25); }
.exchange-bar span:nth-child(2) { background: rgba(196, 181, 253, 0.3); }
.exchange-bar span:nth-child(3) { background: rgba(167, 240, 210, 0.3); }
.exchange-bar em { margin-left: auto; font-style: normal; font-family: var(--mono); font-size: 0.76rem; color: var(--muted); }
.exchange-lines { list-style: none; margin: 0; padding: 18px 18px 6px; display: grid; gap: 12px; }
.ln { display: grid; grid-template-columns: 56px 1fr; gap: 12px; align-items: start; opacity: 0; transform: translateY(6px); animation: line-in 0.5s ease forwards; }
.ln code { color: var(--ink); background: none; border: 0; padding: 0; word-break: break-word; font-size: 0.84rem; line-height: 1.5; }
.ln-1 { animation-delay: 0.3s; }
.ln-2 { animation-delay: 1.1s; }
.ln-3 { animation-delay: 1.9s; }
.ln-4 { animation-delay: 2.7s; }
@keyframes line-in { to { opacity: 1; transform: none; } }
.who { font-family: var(--mono); font-size: 0.72rem; text-align: center; padding: 3px 0; border-radius: 6px; font-weight: 600; }
.who-agent { color: var(--baby-strong); background: rgba(137, 207, 240, 0.12); }
.who-us { color: var(--peach); background: rgba(251, 207, 176, 0.12); }
.who-ok { color: var(--mint); background: rgba(167, 240, 210, 0.12); }
.exchange figcaption { padding: 12px 18px 16px; color: var(--muted); font-size: 0.85rem; border-top: 1px dashed var(--border); margin-top: 12px; }

/* --- Stats -------------------------------------------------------------------------- */

.stats { display: grid; grid-template-columns: repeat(4, 1fr); gap: 1px; background: var(--border); border: 1px solid var(--border); border-radius: var(--radius); overflow: hidden; margin-bottom: 40px; }
.stat { background: rgba(12, 22, 34, 0.9); padding: 22px 22px 20px; display: flex; flex-direction: column; gap: 4px; }
.stat-num { font-size: 1.9rem; font-weight: 700; letter-spacing: -0.02em; color: var(--baby-strong); }
.stat:nth-child(2) .stat-num { color: var(--mint); }
.stat:nth-child(3) .stat-num { color: var(--lilac); }
.stat:nth-child(4) .stat-num { color: var(--peach); }
.stat-label { color: var(--muted); font-size: 0.88rem; line-height: 1.4; }

/* --- Sections ----------------------------------------------------------------------- */

.section { padding: 64px 0; }
.eyebrow { text-transform: uppercase; letter-spacing: 0.14em; font-size: 0.76rem; font-weight: 650; color: var(--baby); margin: 0 0 12px; }
.section-title { font-size: clamp(1.7rem, 3.2vw, 2.4rem); line-height: 1.12; letter-spacing: -0.025em; margin: 0 0 14px; font-weight: 690; }
.section-lead { color: var(--ink-2); max-width: 46em; margin: 0 0 32px; font-size: 1.05rem; }

.cards { display: grid; grid-template-columns: repeat(3, 1fr); gap: 18px; }
.card {
  --accent: var(--baby);
  position: relative;
  display: flex;
  flex-direction: column;
  gap: 10px;
  padding: 26px;
  border-radius: var(--radius);
  background: var(--surface);
  border: 1px solid var(--border);
  box-shadow: var(--shadow);
  color: var(--ink);
  text-decoration: none;
  overflow: hidden;
  transition: transform 0.25s, border-color 0.25s;
}
.card::before { content: ""; position: absolute; inset: 0 0 auto 0; height: 2px; background: linear-gradient(90deg, transparent, var(--accent), transparent); opacity: 0.7; }
.card::after { content: ""; position: absolute; width: 220px; height: 220px; right: -90px; top: -90px; border-radius: 50%; background: var(--accent); opacity: 0.07; filter: blur(30px); transition: opacity 0.25s; }
.card:hover { transform: translateY(-3px); border-color: var(--border-strong); color: var(--ink); }
.card:hover::after { opacity: 0.16; }
.card-lilac { --accent: var(--lilac); }
.card-mint { --accent: var(--mint); }
.card h3 { margin: 4px 0 0; font-size: 1.25rem; letter-spacing: -0.01em; }
.card p { margin: 0; color: var(--ink-2); flex: 1; }
.card-icon { width: 44px; height: 44px; border-radius: 12px; display: grid; place-items: center; background: color-mix(in srgb, var(--accent) 14%, transparent); border: 1px solid color-mix(in srgb, var(--accent) 30%, transparent); }
.card-icon svg { width: 22px; height: 22px; fill: none; stroke: var(--accent); stroke-width: 1.8; stroke-linecap: round; stroke-linejoin: round; }
.card-link { color: var(--accent); font-weight: 600; font-size: 0.93rem; }

.split { display: grid; grid-template-columns: 1fr 1.05fr; gap: 48px; align-items: start; }
.split > *, .hero > *, .tools > *, .cards > *, .pledge > *, .name > * { min-width: 0; }
.try { color: var(--muted); margin: 0 0 10px; }

.code {
  margin: 0;
  padding: 16px 18px;
  border-radius: var(--radius-sm);
  background: #08101a;
  border: 1px solid var(--border);
  overflow-x: auto;
  color: var(--ink);
  line-height: 1.7;
}
.code + .try { margin-top: 18px; }
.c-prompt { color: var(--baby); user-select: none; }
.c-comment { color: var(--muted); }

.endpoints { list-style: none; margin: 0; padding: 0; display: grid; gap: 10px; }
.endpoint { min-width: 0; padding: 14px 16px; border-radius: var(--radius-sm); background: var(--surface); border: 1px solid var(--border); transition: border-color 0.2s; }
.endpoint:hover { border-color: var(--border-strong); }
.endpoint-head { display: flex; flex-wrap: wrap; gap: 4px 12px; align-items: baseline; margin-bottom: 6px; }
.endpoint-label { font-weight: 650; }
.endpoint-note { color: var(--muted); font-size: 0.88rem; }
.endpoint-url { display: flex; gap: 10px; align-items: center; min-width: 0; }
.endpoint-url a { min-width: 0; flex: 1; text-decoration: none; }
.endpoint-url code { display: block; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; color: var(--baby-strong); font-size: 0.84rem; }
.copy { flex: none; font: 600 0.78rem var(--sans); color: var(--ink-2); background: var(--wash); border: 1px solid var(--border); border-radius: 999px; padding: 4px 12px; cursor: pointer; transition: all 0.2s; }
.copy:hover { color: var(--ink); border-color: var(--baby); }
.copy.done { color: var(--mint); border-color: rgba(167, 240, 210, 0.5); }

/* --- Pledge and name ---------------------------------------------------------------- */

.pledge, .name {
  display: grid;
  grid-template-columns: 300px 1fr;
  gap: 48px;
  align-items: center;
  margin-block: 24px;
  padding: 48px;
  border-radius: 28px;
  border: 1px solid var(--border);
  background:
    radial-gradient(600px 260px at 0% 0%, rgba(196, 181, 253, 0.13), transparent 70%),
    radial-gradient(500px 240px at 100% 100%, rgba(246, 195, 216, 0.08), transparent 70%),
    rgba(14, 25, 38, 0.7);
}
.pledge-num { font-size: clamp(5rem, 11vw, 8.5rem); font-weight: 760; letter-spacing: -0.06em; line-height: 1; background: linear-gradient(160deg, var(--lilac), var(--rose) 60%, var(--peach)); -webkit-background-clip: text; background-clip: text; color: transparent; }
.pledge-num span { font-size: 0.5em; letter-spacing: 0; }
.pledge .eyebrow { color: var(--lilac); }
.pledge .section-lead, .name .section-lead { margin-bottom: 24px; }

.name { background: radial-gradient(600px 260px at 0% 100%, rgba(137, 207, 240, 0.12), transparent 70%), rgba(14, 25, 38, 0.7); }
.greek { margin: 0; font-family: var(--serif); font-size: clamp(2rem, 4.2vw, 3rem); font-style: italic; color: var(--baby-strong); line-height: 1.1; text-shadow: 0 0 40px rgba(137, 207, 240, 0.35); }
.name .section-lead { margin-bottom: 0; }
cite { font-style: italic; }

/* --- Call to action ------------------------------------------------------------------ */

.cta { padding: 48px 0 96px; }
.cta-inner {
  text-align: center;
  padding: 56px 24px;
  border-radius: 28px;
  border: 1px solid var(--border-strong);
  background:
    radial-gradient(500px 200px at 50% 0%, rgba(137, 207, 240, 0.22), transparent 75%),
    linear-gradient(180deg, rgba(19, 34, 50, 0.9), rgba(12, 22, 34, 0.9));
}
.cta h2 { margin: 0 0 10px; font-size: clamp(1.7rem, 3.4vw, 2.5rem); letter-spacing: -0.025em; }
.cta p { margin: 0 auto 26px; max-width: 34em; color: var(--ink-2); }

/* --- Lab --------------------------------------------------------------------------- */

.tools { display: grid; grid-template-columns: repeat(auto-fill, minmax(320px, 1fr)); gap: 16px; }
.tool {
  display: flex;
  flex-direction: column;
  gap: 12px;
  padding: 22px;
  border-radius: var(--radius);
  background: var(--surface);
  border: 1px solid var(--border);
  box-shadow: var(--shadow);
  transition: border-color 0.25s, transform 0.25s;
  scroll-margin-top: 90px;
}
.tool:hover, .tool:target { border-color: var(--border-strong); transform: translateY(-2px); }
.tool:target { box-shadow: var(--shadow), 0 0 0 3px rgba(137, 207, 240, 0.25); }
.tool-head { display: flex; justify-content: space-between; align-items: flex-start; gap: 12px; }
.tool-head h3 { margin: 0; font-size: 1.12rem; letter-spacing: -0.01em; }
.price { margin: 0; text-align: right; display: flex; flex-direction: column; line-height: 1.15; }
.price-num { font-weight: 720; font-size: 1.35rem; color: var(--baby-strong); font-variant-numeric: tabular-nums; }
.price-unit { color: var(--muted); font-size: 0.74rem; }
.tool-body { margin: 0; color: var(--ink-2); flex: 1; font-size: 0.96rem; }
.tool-foot { display: flex; flex-wrap: wrap; justify-content: space-between; align-items: center; gap: 8px; padding-top: 12px; border-top: 1px solid var(--border); }
.route { color: var(--ink-2); font-size: 0.8rem; display: inline-flex; gap: 8px; align-items: center; }
.method { font-weight: 700; font-size: 0.68rem; padding: 2px 7px; border-radius: 6px; letter-spacing: 0.04em; }
.method-get { color: var(--mint); background: rgba(167, 240, 210, 0.12); }
.method-post { color: var(--peach); background: rgba(251, 207, 176, 0.12); }
.tool-free { font-size: 0.84rem; font-weight: 600; color: var(--mint); text-decoration: none; }
.tool-pay { display: flex; flex-direction: column; gap: 8px; padding-top: 12px; border-top: 1px solid var(--border); }
.tool-pay-fields, .tool-pay-go { display: flex; flex-direction: column; gap: 8px; }
.tool-pay-label { font-size: 0.8rem; color: var(--muted); }
.tool-pay-note { margin: 0; font-size: 0.76rem; color: var(--muted); text-align: center; }
.tool-pay input { border-radius: 10px; padding: 10px 12px; font-size: 0.9rem; }
.tool-pay .btn-solid { width: 80%; align-self: center; justify-content: center; min-height: 40px; padding: 9px 16px; font-size: 0.93rem; margin-top: 4px; }
.plan-includes { padding-top: 14px; border-top: 1px solid var(--border); }
.plan-includes p { margin: 0 0 10px; font-size: 0.86rem; color: var(--ink-2); }
.plan-list { list-style: none; margin: 0; padding: 0; display: grid; gap: 8px; }
.plan-list li { display: flex; gap: 10px; font-size: 0.88rem; color: var(--ink-2); line-height: 1.4; }
.plan-list li::before { content: ""; flex: none; width: 9px; height: 5px; margin: 0.42em 2px 0; border-left: 1.5px solid var(--ink-2); border-bottom: 1.5px solid var(--ink-2); transform: rotate(-45deg); }
/* --- Plans (/plans), laid out like claude.ai's plans page: one centred column, two plans side by side ---- */
.plans-hero { margin-inline: auto; padding-bottom: 4px; text-align: center; max-width: 820px; }
.plans-hero h1 { font-size: clamp(2rem, 4.2vw, 2.9rem); }
.plans-hero .lead { margin: 0 auto; max-width: 34em; }
.plans-section { padding-top: 32px; }
.plans { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 16px; max-width: 820px; margin: 0 auto; }
.plans .tool-plan { padding: 24px; gap: 16px; background: var(--surface-solid); box-shadow: none; }
.plans .tool-plan:hover { transform: none; }
/* The two plans share their rows, so the fields start under the price and the pay buttons line up although the
   seller plan asks for one more field. */
@supports (grid-template-rows: subgrid) {
  .plans .tool-plan { display: grid; grid-row: span 6; grid-template-rows: subgrid; row-gap: 16px; }
  .plans .tool-pay { display: grid; grid-row: span 2; grid-template-rows: subgrid; row-gap: 12px; }
}
.plan-icon { display: block; color: var(--ink-2); line-height: 0; }
.plan-icon svg { width: 48px; height: 48px; }
.plan-head h3 { margin: 0; font-size: 1.2rem; letter-spacing: -0.01em; }
.plan-for { margin: 2px 0 0; font-size: 0.88rem; color: var(--muted); }
.plan-price { margin: 0; display: flex; align-items: center; gap: 8px; }
.plan-price .price-num { font-size: 2rem; font-weight: 650; line-height: 1; color: var(--ink); letter-spacing: -0.02em; }
.plan-price .price-unit { font-size: 0.72rem; line-height: 1.3; }
.plans .tool-pay { padding-top: 0; border-top: 0; }
.plans .tool-pay .btn-solid { width: 100%; }
.plans-foot { margin: 20px auto 0; max-width: 46em; text-align: center; color: var(--muted); font-size: 0.86rem; }
.plans-block { max-width: 820px; text-align: center; }
.plans-block .section-lead { margin-inline: auto; }
.plans-block .check-grid, .plans-block .steps { text-align: left; }
.check-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); }
.check-grid .tool-pay .btn-solid { width: 100%; }
.checkout-result { overflow: auto; max-height: 70vh; padding: 18px; border-radius: var(--radius); background: var(--surface); border: 1px solid var(--border); }
.checkout-links { display: flex; flex-wrap: wrap; gap: 10px; }
.result-card { display: grid; gap: 18px; margin-bottom: 24px; padding: 24px; border-radius: var(--radius); background: var(--surface-solid); border: 1px solid var(--border); }
.result-verdict { margin: 0; font-size: 1.4rem; font-weight: 700; }
.result-verdict.is-good { color: var(--mint); }
.result-verdict.is-bad { color: var(--peach); }
.result-score { margin-left: 8px; font-size: 0.9rem; font-weight: 500; color: var(--muted); }
.result-headline { margin: 0; font-size: 1.08rem; color: var(--ink); line-height: 1.5; }
.result-facts { display: grid; grid-template-columns: repeat(auto-fill, minmax(140px, 1fr)); gap: 10px; margin: 0; }
.result-facts div { padding: 10px 12px; border-radius: 10px; background: var(--wash); border: 1px solid var(--border); min-width: 0; }
.result-facts dt { font-size: 0.76rem; color: var(--muted); }
.result-facts dd { margin: 2px 0 0; font-weight: 600; overflow-wrap: anywhere; }
.result-findings { list-style: none; margin: 0; padding: 0; display: grid; gap: 8px; }
.result-findings li { display: flex; gap: 10px; align-items: baseline; font-size: 0.93rem; color: var(--ink-2); }
.result-sev { flex: none; font-size: 0.7rem; font-weight: 700; text-transform: uppercase; letter-spacing: 0.04em; padding: 2px 7px; border-radius: 6px; color: var(--muted); background: var(--wash); }
.result-sev.sev-error { color: var(--peach); background: rgba(251, 207, 176, 0.12); }
.result-sev.sev-warning { color: var(--baby); background: rgba(137, 207, 240, 0.12); }
.result-fix { display: block; margin-top: 2px; color: var(--muted); font-size: 0.86rem; }
.result-downloads { display: flex; flex-wrap: wrap; gap: 10px; margin: 0; }
.result-raw summary { cursor: pointer; color: var(--ink-2); font-size: 0.9rem; }
.result-raw .checkout-result { margin-top: 12px; }

.steps { list-style: none; margin: 0 0 24px; padding: 0; display: grid; grid-template-columns: repeat(3, 1fr); gap: 16px; counter-reset: step; }
.step { position: relative; padding: 24px; border-radius: var(--radius); background: var(--surface); border: 1px solid var(--border); }
.step h3 { margin: 12px 0 6px; font-size: 1.1rem; }
.step p { margin: 0; color: var(--ink-2); font-size: 0.95rem; }
.step-num { display: grid; place-items: center; width: 34px; height: 34px; border-radius: 50%; font-weight: 700; color: #06121c; background: linear-gradient(135deg, var(--baby-strong), var(--lilac)); }

.free { list-style: none; margin: 0; padding: 0; display: grid; gap: 8px; }
.free li { display: flex; flex-wrap: wrap; justify-content: space-between; gap: 4px 12px; padding: 10px 0; border-bottom: 1px dashed var(--border); }
.free code { overflow-wrap: anywhere; }
.free span { color: var(--muted); font-size: 0.88rem; }

/* --- Market pulse ------------------------------------------------------------------- */

.section-head { display: flex; flex-wrap: wrap; justify-content: space-between; align-items: flex-end; gap: 12px 32px; margin-bottom: 24px; }
.section-head .section-title { margin: 0; }
.section-aside { margin: 0; max-width: 26em; color: var(--muted); font-size: 0.92rem; }
.eyebrow .dot { display: inline-block; vertical-align: middle; margin-right: 6px; }
.pulse { display: grid; grid-template-columns: 1.1fr 1fr 1fr; gap: 16px; }
.pulse > * { min-width: 0; }
.pulse-card {
  --accent: var(--baby);
  position: relative;
  display: flex;
  flex-direction: column;
  gap: 10px;
  padding: 24px;
  border-radius: var(--radius);
  background: var(--surface);
  border: 1px solid var(--border);
  box-shadow: var(--shadow);
  overflow: hidden;
}
.pulse-card::before { content: ""; position: absolute; inset: 0 auto 0 0; width: 3px; background: linear-gradient(180deg, var(--accent), transparent); }
.pulse-demand { --accent: var(--mint); }
.pulse-choice { --accent: var(--lilac); }
.pulse-kicker { margin: 0; color: var(--muted); font-size: 0.8rem; text-transform: uppercase; letter-spacing: 0.1em; font-weight: 600; }
.pulse-big { margin: 0; font-size: clamp(2.4rem, 4.6vw, 3.4rem); font-weight: 740; letter-spacing: -0.04em; line-height: 1; color: var(--baby-strong); font-variant-numeric: tabular-nums; }
.pulse-text { margin: 0; color: var(--ink-2); }
.pulse-headline { color: var(--ink); font-size: 1.04rem; line-height: 1.5; flex: 1; }
.pulse-dl { display: grid; grid-template-columns: 1fr 1fr; gap: 10px 16px; margin: 6px 0 0; flex: 1; }
.pulse-dl dt { color: var(--muted); font-size: 0.78rem; }
.pulse-dl dd { margin: 2px 0 0; font-weight: 650; font-variant-numeric: tabular-nums; }
.pulse-list { margin: 0; padding-left: 18px; color: var(--ink-2); font-size: 0.92rem; display: grid; gap: 4px; }
.pulse-link { color: var(--accent); font-weight: 600; font-size: 0.92rem; text-decoration: none; margin-top: auto; }
.meter { width: 100%; height: 8px; border: 0; border-radius: 999px; background: var(--track, #16324a); overflow: hidden; appearance: none; -webkit-appearance: none; }
.meter::-webkit-progress-bar { background: #16324a; border-radius: 999px; }
.meter::-webkit-progress-value { background: linear-gradient(90deg, var(--baby), var(--lilac)); border-radius: 999px; }
.meter::-moz-progress-bar { background: linear-gradient(90deg, var(--baby), var(--lilac)); border-radius: 999px; }

/* --- Standard teaser and page ------------------------------------------------------- */

.teaser-inner {
  display: grid;
  grid-template-columns: 1.2fr 0.8fr;
  gap: 40px;
  align-items: center;
  padding: 44px;
  border-radius: 28px;
  border: 1px solid var(--border-strong);
  background:
    radial-gradient(520px 240px at 100% 0%, rgba(167, 240, 210, 0.10), transparent 70%),
    radial-gradient(520px 240px at 0% 100%, rgba(137, 207, 240, 0.12), transparent 70%),
    rgba(14, 25, 38, 0.75);
}
.teaser-inner > * { min-width: 0; }
.teaser-rules { list-style: none; margin: 0; padding: 0; display: grid; gap: 8px; }
.teaser-rules li { display: flex; gap: 12px; align-items: center; padding: 10px 14px; border-radius: 12px; background: rgba(137, 207, 240, 0.05); border: 1px solid var(--border); font-weight: 560; }
.teaser-rules span, .rule-id { font-family: var(--mono); font-size: 0.74rem; font-weight: 700; color: var(--mint); background: rgba(167, 240, 210, 0.10); padding: 3px 8px; border-radius: 6px; flex: none; }
.pill-draft .dot { background: var(--lilac); animation: none; }

.rules { list-style: none; margin: 0; padding: 0; display: grid; gap: 14px; counter-reset: rule; }
.rule { display: grid; grid-template-columns: 70px 1fr; gap: 18px; align-items: start; padding: 24px; border-radius: var(--radius); background: var(--surface); border: 1px solid var(--border); scroll-margin-top: 90px; }
.rule > * { min-width: 0; }
.rule .rule-id { justify-self: start; font-size: 0.82rem; padding: 5px 10px; }
.rule h3 { margin: 0 0 6px; font-size: 1.2rem; letter-spacing: -0.01em; }
.rule p { margin: 0 0 10px; color: var(--ink-2); max-width: 52em; }
.rule-check { font-size: 0.88rem; font-weight: 600; color: var(--baby); text-decoration: none; }
.rule-self { color: var(--muted); font-weight: 500; }

/* --- Playground and verifier forms --------------------------------------------------- */

.playground {
  display: grid;
  grid-template-columns: 0.9fr 1.1fr;
  gap: 40px;
  padding: 40px;
  border-radius: 28px;
  border: 1px solid var(--border-strong);
  background:
    radial-gradient(560px 240px at 0% 0%, rgba(137, 207, 240, 0.16), transparent 70%),
    linear-gradient(180deg, rgba(19, 34, 50, 0.9), rgba(12, 22, 34, 0.9));
  box-shadow: 0 0 90px -40px rgba(137, 207, 240, 0.6);
}
.playground > * { min-width: 0; }
.playground-form, .panel-form { display: flex; flex-direction: column; gap: 8px; }
.panel-form { padding: 28px; border-radius: var(--radius); background: var(--surface); border: 1px solid var(--border); box-shadow: var(--shadow); min-width: 0; }
.form-title { margin: 0; font-size: 1.35rem; letter-spacing: -0.015em; }
.form-help { margin: 0 0 8px; color: var(--ink-2); font-size: 0.95rem; }
.form-foot { margin: 8px 0 0; color: var(--muted); font-size: 0.88rem; }
.eyebrow-lilac { color: var(--lilac); }
label { font-size: 0.86rem; font-weight: 600; color: var(--ink-2); margin-top: 6px; }
.opt { color: var(--muted); font-weight: 400; }
input, textarea {
  width: 100%;
  font: 0.95rem var(--sans);
  color: var(--ink);
  background: rgba(6, 12, 19, 0.7);
  border: 1px solid var(--border-strong);
  border-radius: 12px;
  padding: 12px 14px;
  transition: border-color 0.2s, box-shadow 0.2s;
}
textarea { font-family: var(--mono); font-size: 0.84rem; resize: vertical; }
input::placeholder, textarea::placeholder { color: #5c7487; }
input:focus, textarea:focus { outline: none; border-color: var(--baby); box-shadow: 0 0 0 4px rgba(137, 207, 240, 0.15); }
.playground-form .btn, .panel-form .btn { align-self: flex-start; margin-top: 10px; cursor: pointer; font-family: var(--sans); }
.playground-out:empty { display: none; }
.playground-out { margin-top: 14px; padding-top: 14px; border-top: 1px dashed var(--border); display: grid; gap: 10px; }
.playground-out p { margin: 0; }
.out-busy { display: flex; gap: 10px; align-items: center; color: var(--ink-2); }
.spinner { width: 16px; height: 16px; border-radius: 50%; border: 2px solid rgba(137, 207, 240, 0.25); border-top-color: var(--baby); animation: spin 0.8s linear infinite; }
@keyframes spin { to { transform: rotate(360deg); } }
.out-error { color: var(--peach); }
.out-verdict { font-weight: 650; }
.out-verdict.good { color: var(--mint); }
.out-verdict.warn { color: var(--peach); }
.out-note { color: var(--muted); font-size: 0.88rem; }
.results { list-style: none; margin: 0; padding: 0; display: grid; gap: 8px; }
.result { display: grid; grid-template-columns: 40px 1fr auto; gap: 12px; align-items: center; padding: 12px 14px; border-radius: 12px; background: rgba(6, 12, 19, 0.5); border: 1px solid var(--border); }
.result > * { min-width: 0; }
.result.mine { border-color: var(--mint); background: rgba(167, 240, 210, 0.06); }
.result-rank { font-weight: 720; color: var(--baby-strong); }
.result-main { display: flex; flex-direction: column; }
.result-name { font-weight: 600; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.result-url { color: var(--muted); font-size: 0.76rem; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.result-stats { display: flex; gap: 14px; margin: 0; font-size: 0.8rem; }
.result-stats dt { color: var(--muted); font-size: 0.7rem; }
.result-stats dd { margin: 0; font-variant-numeric: tabular-nums; }
.checks { list-style: none; margin: 0; padding: 0; display: grid; gap: 6px; }
.checks li { display: flex; gap: 10px; align-items: center; }
.checks .ok > span:first-child { color: var(--mint); font-weight: 700; }
.checks .no > span:first-child { color: var(--peach); font-weight: 700; }
.sr { position: absolute; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); }
.proof { display: grid; gap: 8px; margin: 0; }
.proof dt { color: var(--muted); font-size: 0.78rem; }
.proof dd { margin: 0; }
.proof code { overflow-wrap: anywhere; font-size: 0.78rem; color: var(--baby-strong); }
.verify-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 18px; align-items: start; }
.verify-grid > * { min-width: 0; }

/* --- Research pages (benchmark, weekly study, buyer safety, pledge study) ------------ */

.research { max-width: 860px; padding: 8px 0 72px; }
.research > * { min-width: 0; }
.research h2 { font-size: 1.35rem; letter-spacing: -0.015em; margin: 40px 0 10px; }
.research h3 { font-size: 1.05rem; margin: 26px 0 8px; }
.research p, .research li { color: var(--ink-2); max-width: 52em; }
.research ul { padding-left: 1.2em; }
.research .lead { color: var(--ink); font-size: 1.08rem; margin: 0 0 20px; }
.research .sub, .research .week, .research .ci { color: var(--muted); }
.research .ci { font-size: 0.85em; }
.research .scroll { overflow-x: auto; margin: 12px 0 8px; border: 1px solid var(--border); border-radius: var(--radius-sm); background: var(--surface); }
.research table { width: 100%; border-collapse: collapse; font-variant-numeric: tabular-nums; font-size: 0.94rem; }
.research th, .research td { text-align: left; padding: 10px 14px; border-bottom: 1px solid var(--border); vertical-align: top; }
.research tr:last-child td { border-bottom: 0; }
.research th { color: var(--muted); font-size: 0.76rem; font-weight: 650; text-transform: uppercase; letter-spacing: 0.08em; background: var(--wash); }
.research th:not(:first-child), .research td:not(:first-child) { text-align: right; white-space: nowrap; }
.research table.data th, .research table.data td { text-align: left; white-space: normal; min-width: 9em; max-width: 30em; }
.research table.data td a { word-break: break-all; }
.research h4 { font-size: 0.95rem; margin: 18px 0 6px; color: var(--ink-2); }
.research .result-card > h2, .research .result-card > h3, .research .result-card > h4 { margin: 10px 0 -8px; }
.research .result-card > .scroll, .research .result-card > ul, .research .result-card > p { margin: 0; }
.research .checkout-links { margin: 24px 0 10px; }

/* --- Footer ------------------------------------------------------------------------- */

.site-footer { border-top: 1px solid var(--border); background: rgba(8, 14, 21, 0.7); margin-top: 24px; }
.footer-grid { display: grid; grid-template-columns: 1.4fr 1fr 1fr 1fr 1fr; gap: 32px; padding: 48px 0 32px; }
.footer-brand p { color: var(--muted); max-width: 26em; font-size: 0.93rem; }
.footer-head { font-size: 0.78rem; text-transform: uppercase; letter-spacing: 0.14em; color: var(--ink-2); margin: 4px 0 14px; }
.site-footer ul { list-style: none; margin: 0; padding: 0; display: grid; gap: 8px; }
.site-footer ul a { color: var(--muted); text-decoration: none; font-size: 0.93rem; }
.footer-note { display: block; color: var(--muted); font-size: 0.8rem; opacity: 0.8; }
.site-footer a[href^="mailto:"] { overflow-wrap: anywhere; }
.site-footer ul a:hover { color: var(--baby-strong); }
.footer-base { border-top: 1px solid var(--border); padding: 18px 0 28px; }
.footer-base p { margin: 0; color: var(--muted); font-size: 0.82rem; }

/* --- Small screens and motion ------------------------------------------------------- */

@media (max-width: 960px) {
  .hero, .split { grid-template-columns: 1fr; gap: 40px; }
  .hero { padding-top: 64px; }
  .cards, .steps { grid-template-columns: 1fr; }
  .stats { grid-template-columns: repeat(2, 1fr); }
  .pledge, .name { grid-template-columns: 1fr; gap: 16px; padding: 32px 24px; }
  .pulse, .verify-grid, .playground, .teaser-inner { grid-template-columns: 1fr; }
  .playground, .teaser-inner { padding: 28px 22px; gap: 24px; }
  .footer-grid { grid-template-columns: 1fr 1fr; }
  .footer-brand, .footer-contact { grid-column: 1 / -1; }
}

@media (max-width: 640px) {
  .research .result-card { padding: 16px; }
  /* Data tables become one small card per row, each value under its column's name. */
  .research table.data thead { display: none; }
  .research table.data, .research table.data tbody, .research table.data tr, .research table.data td { display: block; min-width: 0; max-width: none; }
  .research table.data tr { padding: 10px 14px; border-bottom: 1px solid var(--border); }
  .research table.data tr:last-child { border-bottom: 0; }
  .research table.data td { padding: 3px 0; border: 0; overflow-wrap: anywhere; }
  .research table.data td:empty { display: none; }
  .research table.data td::before { content: attr(data-label); display: block; font-size: 0.72rem; color: var(--muted); text-transform: uppercase; letter-spacing: 0.06em; }
  .nav { gap: 12px; }
  .nav-links { gap: 0; }
  /* Phones keep Home, Lab and Plans (the third link while card checkout is on); the footer lists the rest. */
  .nav-links li:nth-child(n+4) { display: none; }
  .nav-links a { padding: 6px 9px; }
  .brand span { display: none; }
  .tools, .plans, .check-grid { grid-template-columns: 1fr; }
  .stat-num { font-size: 1.5rem; }
  .section { padding: 48px 0; }
  .result { grid-template-columns: 32px 1fr; }
  .result-stats { grid-column: 2; }
  .rule { grid-template-columns: 1fr; gap: 10px; padding: 20px; }
}

@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after { animation: none !important; transition: none !important; scroll-behavior: auto !important; }
  .ln { opacity: 1; transform: none; }
}

/* --- Listing report cards (/sellers) ------------------------------------------------- */

.seller-find { max-width: 560px; }
.sellers { list-style: none; margin: 0; padding: 0; display: grid; gap: 8px; }
.sellers li { display: flex; flex-wrap: wrap; align-items: center; gap: 6px 14px; padding: 12px 16px; border-radius: 12px; background: var(--surface); border: 1px solid var(--border); }
.sellers a { font-weight: 600; overflow-wrap: anywhere; }
.sellers .row-facts { color: var(--muted); font-size: 0.88rem; margin-left: auto; }
.free li .why { flex-basis: 100%; margin: 0; color: var(--ink-2); font-size: 0.95rem; }
.grade { display: inline-flex; align-items: baseline; justify-content: center; min-width: 3.6em; gap: 4px; padding: 4px 10px; border-radius: 10px; font-weight: 750; font-size: 1.05rem; border: 1px solid var(--border-strong); color: var(--ink); }
.grade small { font-size: 0.72rem; font-weight: 500; color: var(--muted); }
.grade-a { color: var(--mint); border-color: rgba(167, 240, 210, 0.45); }
.grade-b { color: var(--baby); }
.grade-c { color: var(--lilac); border-color: rgba(196, 181, 253, 0.45); }
.grade-d, .grade-f { color: var(--peach); border-color: rgba(251, 207, 176, 0.45); }
.seller-head { display: flex; align-items: center; gap: 16px; flex-wrap: wrap; }
.seller-head h1 { margin: 0; overflow-wrap: anywhere; }
.listings { display: grid; gap: 16px; }
.listing { padding: 24px; border-radius: var(--radius); background: var(--surface); border: 1px solid var(--border); min-width: 0; }
.listing h3 { margin: 10px 0; font-size: 1rem; overflow-wrap: anywhere; }
.listing .facts { color: var(--muted); font-size: 0.9rem; margin: 8px 0; }
.quoted { margin: 0; padding: 10px 14px; border-left: 3px solid var(--border-strong); color: var(--ink-2); background: var(--wash); border-radius: 0 10px 10px 0; overflow-wrap: anywhere; }
.findings { list-style: none; margin: 10px 0 14px; padding: 0; display: grid; gap: 6px; font-size: 0.93rem; }
.finding strong { text-transform: uppercase; font-size: 0.72rem; letter-spacing: 0.08em; margin-right: 6px; }
.finding-error strong { color: var(--peach); }
.finding-warning strong { color: var(--lilac); }
.finding-info strong { color: var(--muted); }
.finding-ok { color: var(--mint); }
.standing { display: flex; flex-wrap: wrap; gap: 6px 18px; margin: 4px 0 12px; }
.history { width: 100%; border-collapse: collapse; font-variant-numeric: tabular-nums; margin: 8px 0 16px; }
.history th, .history td { text-align: left; padding: 6px 8px; border-bottom: 1px solid var(--border); }
.history th:not(:first-child), .history td:not(:first-child) { text-align: right; }
.scroll { overflow-x: auto; }
.finding .fix { color: var(--muted); }
.muted { color: var(--muted); }
