/* logrrr.com page styles. Brand tokens, fonts and buttons come from /brand/css.
   Ported from the design team's styles.css (2026-10-02), with the app team's changes:
   neutral confidence colors, no inline styles (strict CSP). */

:root { --maxw: 1180px; }
html { scroll-behavior: smooth; }
body { font-size: 16px; }
img { display: block; }

.mb-0 { margin-bottom: 0; }
.mb-10 { margin-bottom: 10px; }
.mt-14 { margin-top: 14px; }

.wrap { max-width: var(--maxw); margin: 0 auto; padding: 0 28px; }
h1, h2, h3 { line-height: 1.15; }
p { margin: 0 0 14px; max-width: 62ch; }
code.inline { font-family: var(--mono); font-size: 0.92em; color: var(--text); background: var(--panel-2); border: 1px solid var(--border-soft); border-radius: var(--radius); padding: 1px 5px; word-break: break-all; }

/* Top nav */
header.topnav { position: sticky; top: 0; z-index: 50; background: rgba(6, 10, 20, 0.92); backdrop-filter: blur(6px); border-bottom: 1px solid var(--border); }
.topnav .wrap { display: flex; align-items: center; justify-content: space-between; height: 64px; }
/* The logo is deliberately taller than the bar: only the pirate's beard hangs below the bar's
   bottom edge (Andy's design; desktop raised 2026-10-07 so the chin stays inside the bar). The
   beard starts about 77% down the image (185 of 240): at 90px that's 69px, so -4px puts it at the
   bar's edge (64px plus its 1px border). Phones use 72px and 6px, set below. */
.brand { display: flex; align-self: flex-start; margin-top: -4px; text-decoration: none; position: relative; z-index: 1; }
.brand img { height: 90px; width: auto; display: block; }
.navlinks { display: flex; align-items: center; gap: 6px; }
.navlinks a { font-family: var(--mono); font-size: 13px; color: var(--text-dim); text-decoration: none; padding: 8px 12px; border-radius: var(--radius); }
.navlinks a:hover { color: var(--text); background: var(--panel-2); }
.navlinks a.login { color: var(--bg); background: var(--accent); font-weight: 600; }
.navlinks a.login:hover { background: #ff7a3d; color: var(--bg); }
.navtoggle { display: none; }

/* Buttons and fields (sizes for this site; base .btn is in tokens.css) */
.btn { font-size: 14px; padding: 11px 18px; }
.btn-block { width: 100%; justify-content: center; }
.btn[disabled] { opacity: 0.6; cursor: wait; }
input[type=email], input[type=number], input[type=text] {
  font-family: var(--mono); background: var(--bg-raised); border: 1px solid var(--border); color: var(--text);
  padding: 11px 14px; border-radius: var(--radius); font-size: 14px; width: 100%;
}
input::placeholder { color: var(--text-faint); }
select {
  font-family: var(--mono); background: var(--bg-raised); border: 1px solid var(--border); color: var(--text);
  padding: 11px 14px; border-radius: var(--radius); font-size: 14px; width: 100%;
}
.choicerow { display: grid; grid-template-columns: 1fr 1fr; gap: 10px; margin-top: 14px; }
.choicenote { margin: 8px 0 4px; }
.notice-box {
  font-size: 13px; line-height: 1.5; color: var(--text-dim); background: var(--panel-2);
  border: 1px solid var(--border); border-radius: var(--radius); padding: 10px 12px; margin-bottom: 14px;
  white-space: pre-line;
}
/* Legal's notice for a location outside the 50 states and DC (public 0.5.8, Andy 2026-10-07): the warning
   color with a label, never color alone (design's status-color rule). */
.notice-free { border-left: 3px solid var(--warning); background: rgba(228, 174, 26, 0.08); color: var(--text); white-space: normal; }
.notice-free p { white-space: pre-line; }
.notice-free .notice-label { font-family: var(--mono); font-size: 12px; font-weight: 600; letter-spacing: 0.04em; color: var(--warning); margin-bottom: 6px; }
/* A signup refused by a state law rule (public 0.5.8, Andy 2026-10-07): the same box in the danger color.
   It sits inside the mono status line, so it resets the font and lays its spans out as blocks. */
.notice-blocked { display: block; margin: 0; border-left: 3px solid var(--danger); background: rgba(233, 80, 77, 0.08);
  color: var(--text); font-family: var(--sans); white-space: normal; }
.notice-blocked .notice-label { display: block; font-family: var(--mono); font-size: 12px; font-weight: 600; letter-spacing: 0.04em; color: var(--danger); margin-bottom: 6px; }
.notice-blocked .notice-text { display: block; white-space: pre-line; }
label.field-label { display: block; font-family: var(--mono); font-size: 12px; color: var(--text-faint); margin-bottom: 6px; }

/* Sections */
section { padding: 88px 0; border-bottom: 1px solid var(--border-soft); }
section:last-of-type { border-bottom: none; }
.step-marker {
  font-family: var(--mono); color: var(--accent); font-size: 14px; font-weight: 600;
  border: 1px solid var(--accent-dim); background: var(--accent-soft);
  width: 34px; height: 34px; border-radius: var(--radius);
  display: flex; align-items: center; justify-content: center; margin-bottom: 18px;
}
.section-head { max-width: 640px; margin-bottom: 40px; }
.section-head h2 { font-size: 28px; margin-bottom: 10px; }
.section-head p { margin-bottom: 0; }

/* Hero */
.hero { padding: 64px 0 88px; }
.hero-grid { display: grid; grid-template-columns: 1.05fr 1fr; gap: 56px; align-items: center; }
.hero h1 { font-size: 46px; letter-spacing: -0.5px; margin-bottom: 18px; }
.hero p.lead { font-size: 17px; max-width: 50ch; margin-bottom: 28px; }
.hero-ctas { display: flex; gap: 12px; flex-wrap: wrap; margin-bottom: 30px; }
.hero-meta { display: flex; gap: 22px; flex-wrap: wrap; font-family: var(--mono); font-size: 12px; color: var(--text-faint); }
.hero-meta span b { color: var(--text-dim); font-weight: 500; }

.console { border: 1px solid var(--border); border-radius: var(--radius); background: var(--panel); overflow: hidden; }
.console-bar {
  display: flex; align-items: center; justify-content: space-between; padding: 10px 14px;
  border-bottom: 1px solid var(--border); background: var(--bg-raised);
  font-family: var(--mono); font-size: 12px; color: var(--text-faint);
}
.console-bar .status { display: flex; align-items: center; gap: 6px; color: var(--success); }
.status .dot { width: 7px; height: 7px; border-radius: 50%; background: var(--success); }
table.feed { width: 100%; border-collapse: collapse; font-family: var(--mono); font-size: 12px; }
table.feed th { text-align: left; padding: 9px 12px; color: var(--text-faint); font-weight: 500; border-bottom: 1px solid var(--border); background: var(--bg-raised); white-space: nowrap; }
table.feed td { padding: 9px 12px; border-bottom: 1px solid var(--border-soft); color: var(--text-dim); white-space: nowrap; }
table.feed tr:last-child td { border-bottom: none; }
table.feed td.plate { color: var(--text); font-weight: 600; letter-spacing: 0.5px; }

/* What it does */
.grid3 { display: grid; grid-template-columns: repeat(3, 1fr); gap: 1px; background: var(--border); border: 1px solid var(--border); border-radius: var(--radius); overflow: hidden; }
.grid3 .cell { background: var(--panel); padding: 26px; }
.grid3 .cell .tag { font-family: var(--mono); font-size: 12px; color: var(--accent); margin-bottom: 10px; display: block; }
.grid3 .cell h3 { font-size: 17px; margin-bottom: 8px; }
.grid3 .cell p { margin-bottom: 0; font-size: 14.5px; }

/* API key */
.split { display: grid; grid-template-columns: 1fr 1fr; gap: 56px; align-items: start; }
.panel { background: var(--panel); border: 1px solid var(--border); border-radius: var(--radius); padding: 26px; }
.keyrow { display: flex; gap: 10px; }
.keyrow input { flex: 1; min-width: 0; }
.cf-turnstile { margin-top: 12px; width: fit-content; border-radius: 4px; }
/* Public 0.5.10: points at Cloudflare's box when Generate key is clicked before it's ticked. */
.cf-turnstile.ts-attention { outline: 2px solid var(--danger); outline-offset: 3px; animation: ts-pulse 1.2s ease-in-out 2; }
@keyframes ts-pulse { 50% { outline-color: transparent; } }
@media (prefers-reduced-motion: reduce) { .cf-turnstile.ts-attention { animation: none; } }
.kv {
  display: flex; align-items: center; justify-content: space-between; gap: 12px;
  background: var(--bg-raised); border: 1px solid var(--border); border-radius: var(--radius);
  padding: 12px 14px; margin-bottom: 10px;
}
.kv .kv-inner { overflow: hidden; min-width: 0; }
.kv-label { font-family: var(--mono); font-size: 11px; color: var(--text-faint); margin-bottom: 4px; }
.kv .kv-value { font-family: var(--mono); font-size: 13.5px; color: var(--accent); word-break: break-all; }
.copybtn {
  flex-shrink: 0; font-family: var(--mono); font-size: 12px; color: var(--text-dim);
  background: var(--panel-2); border: 1px solid var(--border); border-radius: var(--radius);
  padding: 7px 10px; cursor: pointer;
}
.copybtn:hover { color: var(--text); }
.note { font-size: 13px; color: var(--text-faint); margin-top: 14px; }
.formstatus { min-height: 20px; margin: 10px 0 0; font-family: var(--mono); font-size: 12.5px; color: var(--text-faint); }
.err { color: var(--danger); font-family: var(--mono); font-size: 12.5px; }

/* Instructions */
.steps { list-style: none; margin: 0; padding: 0; counter-reset: step; }
.steps li { counter-increment: step; display: grid; grid-template-columns: 30px 1fr; gap: 14px; padding: 16px 0; border-top: 1px solid var(--border-soft); }
.steps li:first-child { border-top: none; }
.steps li::before {
  content: counter(step); font-family: var(--mono); font-size: 13px; color: var(--accent);
  border: 1px solid var(--border); border-radius: var(--radius);
  width: 28px; height: 28px; display: flex; align-items: center; justify-content: center;
}
.steps li .step-body { min-width: 0; }
.steps li h4 { font-size: 15px; font-weight: 600; margin: 0 0 4px; }
.steps li p { margin: 0; font-size: 14.5px; }
.callout {
  margin-top: 24px; padding: 14px 16px; border: 1px solid var(--border); border-left: 3px solid var(--accent);
  background: var(--panel); border-radius: var(--radius); font-size: 13.5px; color: var(--text-dim);
}
.callout b { color: var(--text); }

/* Pricing */
.plans { display: grid; grid-template-columns: 1fr 1fr; gap: 22px; margin-bottom: 36px; }
.plan { border: 1px solid var(--border); border-radius: var(--radius); background: var(--panel); padding: 28px; }
.plan.paid { border-color: var(--accent-dim); }
.plan-name { font-family: var(--mono); font-size: 13px; color: var(--text-faint); margin-bottom: 6px; }
.plan-price { font-size: 32px; font-weight: 600; margin-bottom: 18px; }
.plan-price span { font-size: 14px; color: var(--text-faint); font-weight: 400; font-family: var(--mono); }
.plan ul { list-style: none; margin: 0 0 22px; padding: 0; }
.plan li { font-size: 14.5px; color: var(--text-dim); padding: 9px 0; border-top: 1px solid var(--border-soft); display: flex; justify-content: space-between; gap: 10px; }
.plan li:first-child { border-top: none; }
.plan li b { color: var(--text); font-weight: 600; font-family: var(--mono); font-size: 13.5px; text-align: right; }
.plan .btn-block { margin-top: 18px; }

.calc { border: 1px solid var(--border); border-radius: var(--radius); background: var(--panel); padding: 26px; }
.calc-title { font-family: var(--mono); font-size: 13px; color: var(--text-faint); margin-bottom: 18px; }
.calc-grid { display: grid; grid-template-columns: repeat(4, 1fr); gap: 16px; margin-bottom: 22px; }
.calc-out { border-top: 1px solid var(--border); padding-top: 18px; }
.calc-line { display: flex; justify-content: space-between; gap: 12px; font-family: var(--mono); font-size: 13.5px; color: var(--text-dim); padding: 6px 0; }
.calc-line b { color: var(--text); }
.calc-total { display: flex; justify-content: space-between; align-items: baseline; margin-top: 10px; padding-top: 14px; border-top: 1px solid var(--border); }
.calc-total .lbl { font-family: var(--mono); font-size: 13px; color: var(--text-faint); }
.calc-total .amt { font-size: 30px; font-weight: 600; color: var(--accent); }
.calc-total .per { font-size: 13px; color: var(--text-faint); font-family: var(--mono); font-weight: 400; }

/* Contact */
.contact-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 56px; }
.factrow { display: flex; justify-content: space-between; gap: 12px; padding: 12px 0; border-top: 1px solid var(--border-soft); font-size: 14.5px; }
.factrow:first-child { border-top: none; }
.factrow .k { color: var(--text-faint); font-family: var(--mono); font-size: 12.5px; }
.factrow .v { color: var(--text); text-align: right; }
.mailto { font-family: var(--mono); color: var(--accent); text-decoration: none; font-size: 15px; }
.factrow .mailto { font-size: inherit; }
.trust-line { display: flex; align-items: flex-start; gap: 10px; margin-top: 18px; padding-top: 18px; border-top: 1px solid var(--border-soft); font-size: 13.5px; color: var(--text-dim); }
.trust-line b { color: var(--text); }

/* Legal pages */
.legal { padding-top: 56px; }
.legal h2 { font-size: 28px; margin-bottom: 6px; }
.legal h3 { font-size: 16px; margin: 26px 0 8px; }
.legal p, .legal li { font-size: 14.5px; color: var(--text-dim); max-width: 74ch; }
.legal ul, .legal ol { padding-left: 20px; margin: 0 0 14px; }
.legal code { font-family: var(--mono); font-size: 0.92em; color: var(--text); background: var(--panel-2); border: 1px solid var(--border-soft); border-radius: var(--radius); padding: 1px 5px; word-break: break-all; }
.legal-updated { font-family: var(--mono); font-size: 12px; color: var(--text-faint); margin-bottom: 26px; display: block; }
.legal-note {
  margin-bottom: 28px; padding: 16px 18px; border: 1px solid var(--accent-dim); border-left: 3px solid var(--accent);
  background: var(--accent-soft); border-radius: var(--radius); font-size: 13.5px; color: var(--text-dim); max-width: 74ch;
}
.legal table { border-collapse: collapse; font-size: 14px; margin: 0 0 18px; }
.legal th, .legal td { text-align: left; padding: 8px 14px 8px 0; border-bottom: 1px solid var(--border-soft); color: var(--text-dim); vertical-align: top; }
.legal th { font-family: var(--mono); font-size: 12px; color: var(--text-faint); font-weight: 500; }

/* Simple pages (404, error) */
.simple { padding: 96px 0; }
.simple h1 { font-size: 36px; margin-bottom: 14px; }

/* Footer */
footer { padding: 32px 0; border-top: 1px solid var(--border-soft); }
.foot-lockup { width: 180px; height: auto; margin-bottom: 10px; }
.foot-tagline { display: flex; align-items: center; gap: 8px; font-family: var(--mono); font-size: 11px; letter-spacing: 2px; text-transform: uppercase; color: var(--text-faint); margin-bottom: 24px; }
.foot-tagline .dot { width: 7px; height: 7px; border-radius: 1px; background: var(--accent); flex-shrink: 0; }
.footbar { display: flex; justify-content: space-between; align-items: center; flex-wrap: wrap; gap: 14px; }
.footbar .fmark { font-family: var(--mono); font-size: 13px; color: var(--text-faint); }
.footlinks { display: flex; gap: 18px; flex-wrap: wrap; }
.footlinks a { font-family: var(--mono); font-size: 13px; color: var(--text-faint); text-decoration: none; }
.footlinks a:hover { color: var(--text-dim); }
.disclaimer { font-size: 12.5px; color: var(--text-faint); margin-top: 14px; max-width: none; }

@media (max-width: 920px) {
  .wrap { padding: 0 16px; }
  .hero-grid, .split, .contact-grid { grid-template-columns: 1fr; }
  .grid3, .plans, .calc-grid { grid-template-columns: 1fr; }
  .brand { margin-top: 6px; }
  .brand img { height: 72px; }
  .navlinks {
    display: none; position: absolute; top: 64px; left: 0; right: 0; z-index: 2;
    background: var(--bg); border-bottom: 1px solid var(--border);
    flex-direction: column; align-items: stretch; padding: 8px;
  }
  .navlinks.open { display: flex; }
  .navlinks a { padding: 12px 14px; }
  .navtoggle {
    display: block; background: none; border: 1px solid var(--border); border-radius: var(--radius);
    color: var(--text); font-family: var(--mono); font-size: 13px; padding: 8px 12px; cursor: pointer;
  }
  .hero h1 { font-size: 32px; }
  section { padding: 56px 0; }
  .console { overflow-x: auto; }
  .keyrow { flex-direction: column; }
  .choicerow { grid-template-columns: 1fr; }
  .factrow { flex-direction: column; gap: 4px; }
  .factrow .v { text-align: left; }
  .plan li { flex-direction: column; gap: 2px; }
  .plan li b { text-align: left; }
}

/* Signup acceptance checkbox */
.checkline { display: flex; gap: 10px; align-items: flex-start; font-size: 13px; line-height: 1.5; color: var(--text-dim); margin: 12px 0 4px; cursor: pointer; max-width: 62ch; }
.checkline input { margin-top: 3px; flex: none; width: auto; }
