/* Half Twain marketing site. Tokens match the dashboard (design-system/halftwain/MASTER.md); type is roomier for reading. */
:root {
  --bg: #0b0f14; --bg2: #11161d; --bg3: #171d26; --line: #232b36; --fg: #e6edf3; --muted: #8b949e; --accent: #f0b429;
  --lvl1: #3fb950; --lvl2: #d29922; --lvl3: #f0883e; --lvl4: #f85149; --lvl5: #f0509a;
  --c-fire: #f0883e; --c-weather: #58a6ff; --c-traffic: #e3b341; --c-power: #d29922;
}
* { box-sizing: border-box; }
html { scroll-behavior: smooth; scroll-padding-top: 72px; }
body { margin: 0; background: var(--bg); color: var(--fg); font: 17px/1.6 -apple-system, "Segoe UI", Inter, Roboto, sans-serif; }
a { color: var(--accent); }
h1, h2, h3 { line-height: 1.2; margin: 0 0 12px; }
h1 { font-size: clamp(32px, 5vw, 50px); letter-spacing: -0.5px; }
h2 { font-size: clamp(26px, 3.2vw, 34px); }
h3 { font-size: 18px; }
p { margin: 0 0 12px; }
.wrap { width: 100%; max-width: 1120px; margin: 0 auto; padding: 0 24px; }
.narrow { max-width: 760px; }
section { padding: 72px 0; }
section.wrap { padding-top: 72px; padding-bottom: 72px; }
.band { background: var(--bg2); border-top: 1px solid var(--line); border-bottom: 1px solid var(--line); }
.muted, .sub, .fine, .opt { color: var(--muted); }
.sub { max-width: 720px; margin-bottom: 28px; }
.fine { font-size: 14px; margin-top: 12px; }
.center { text-align: center; }
.sr-only { position: absolute; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; }
:focus-visible { outline: 2px solid var(--accent); outline-offset: 3px; border-radius: 4px; }

/* top bar */
.top { position: sticky; top: 0; z-index: 10; background: rgba(11, 15, 20, .92); backdrop-filter: blur(8px); border-bottom: 1px solid var(--line); }
.top-row { display: flex; align-items: center; justify-content: space-between; height: 64px; gap: 16px; }
.brand { display: flex; align-items: center; gap: 10px; color: var(--fg); text-decoration: none; font-weight: 800; letter-spacing: 2px; font-size: 17px; white-space: nowrap; }
.brand svg { width: 28px; height: 28px; color: var(--muted); }
nav { display: flex; align-items: center; gap: 22px; }
nav a { color: var(--fg); text-decoration: none; font-size: 15px; }
nav a:hover { color: var(--accent); }

/* buttons */
.btn { display: inline-block; font: inherit; font-weight: 650; color: #0b0f14; background: var(--accent); border: 1px solid var(--accent);
  border-radius: 8px; padding: 12px 22px; text-decoration: none; cursor: pointer; }
.btn:hover { filter: brightness(1.08); }
nav a.btn, nav a.btn:hover { color: #0b0f14; }
.btn.small { padding: 7px 14px; font-size: 15px; }
.btn.ghost { background: transparent; color: var(--fg); border-color: var(--line); }
.btn.ghost:hover { border-color: var(--accent); }
.cta-row { display: flex; flex-wrap: wrap; gap: 12px; margin-top: 24px; }

/* hero */
.hero { padding: 88px 0 80px; }
.hero-grid { display: grid; grid-template-columns: 1.1fr 1fr; gap: 56px; align-items: center; }
.eyebrow { color: var(--accent); font-weight: 650; font-size: 14px; letter-spacing: 1.5px; text-transform: uppercase; }
.lede { font-size: 19px; color: #c9d1d9; }

.mock { margin: 0; background: var(--bg2); border: 1px solid var(--line); border-radius: 14px; padding: 18px; box-shadow: 0 20px 60px rgba(0, 0, 0, .45); }
.mock-head { display: flex; align-items: center; gap: 14px; margin-bottom: 14px; }
.mock-cond { display: grid; text-align: center; border: 2px solid var(--lvl3); border-radius: 10px; padding: 8px 18px; background: rgba(240, 136, 62, .08); }
.mock-cond small { font-size: 12px; letter-spacing: 2px; color: var(--muted); }
.mock-cond b { font-size: 20px; letter-spacing: 1px; color: var(--lvl3); }
.mock-why { font-size: 14px; color: var(--muted); }
.mock-feed { list-style: none; margin: 0; padding: 0; display: grid; gap: 8px; }
.mock-feed li { display: flex; gap: 12px; align-items: flex-start; background: var(--bg3); border: 1px solid var(--line); border-radius: 8px; padding: 10px 12px; }
.mock-feed b { display: block; font-size: 15px; font-weight: 600; }
.mock-feed small { color: var(--muted); font-size: 13px; }
.dot { flex: none; width: 10px; height: 10px; border-radius: 50%; margin-top: 7px; }
.dot.fire { background: var(--c-fire); } .dot.weather { background: var(--c-weather); }
.dot.traffic { background: var(--c-traffic); } .dot.power { background: var(--c-power); }
.mock figcaption { font-size: 12px; color: var(--muted); margin-top: 10px; text-align: right; }

/* steps */
.steps { list-style: none; counter-reset: step; margin: 28px 0 0; padding: 0; display: grid; grid-template-columns: repeat(4, 1fr); gap: 24px; }
.steps li { counter-increment: step; }
.steps li::before { content: counter(step); display: grid; place-items: center; width: 34px; height: 34px; border-radius: 50%;
  border: 2px solid var(--accent); color: var(--accent); font-weight: 700; margin-bottom: 14px; }
.steps p { color: #c9d1d9; font-size: 16px; }
.lv { display: inline-block; font-size: 13px; font-weight: 700; letter-spacing: .5px; padding: 0 7px; border-radius: 5px; border: 1px solid; margin: 2px 0; }
.lv.lvl1 { color: var(--lvl1); } .lv.lvl2 { color: var(--lvl2); } .lv.lvl3 { color: var(--lvl3); }
.lv.lvl4 { color: var(--lvl4); } .lv.lvl5 { color: var(--lvl5); }

/* cards */
.cards { display: grid; grid-template-columns: repeat(3, 1fr); gap: 18px; }
.card { background: var(--bg2); border: 1px solid var(--line); border-radius: 12px; padding: 22px; }
.band .card { background: var(--bg3); }
.card p { color: #c9d1d9; font-size: 16px; margin: 0; }

.two { display: grid; grid-template-columns: 1fr 1fr; gap: 56px; }
.ticks { list-style: none; padding: 0; margin: 0; display: grid; gap: 12px; }
.ticks li { padding-left: 28px; position: relative; color: #c9d1d9; }
.ticks li::before { content: ""; position: absolute; left: 4px; top: 8px; width: 10px; height: 6px; border-left: 2px solid var(--accent);
  border-bottom: 2px solid var(--accent); transform: rotate(-45deg); }
.story { border-left: 3px solid var(--accent); padding-left: 24px; }
.story p { color: #c9d1d9; }

/* pricing */
.price-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 18px; align-items: stretch; }
.price .amount { font-size: 42px; font-weight: 800; margin: 4px 0 8px; color: var(--fg); }
.price .amount span { font-size: 17px; font-weight: 500; color: var(--muted); }
.price.best { border-color: var(--accent); }
.tiers { width: 100%; border-collapse: collapse; margin-top: 6px; font-size: 16px; }
.tiers th { text-align: left; font-weight: 400; color: #c9d1d9; padding: 7px 0; border-bottom: 1px solid var(--line); }
.tiers td { text-align: right; font-weight: 650; padding: 7px 0; border-bottom: 1px solid var(--line); }

/* faq */
details { border-bottom: 1px solid var(--line); padding: 16px 0; }
summary { cursor: pointer; font-weight: 600; font-size: 18px; }
details p { color: #c9d1d9; margin: 10px 0 0; }

/* contact form */
.contact { display: grid; grid-template-columns: 1fr 1fr; gap: 16px 18px; }
.field { display: grid; gap: 6px; }
.wide { grid-column: 1 / -1; }
label { font-size: 15px; font-weight: 600; }
.opt { font-weight: 400; }
input, select, textarea { font: inherit; font-size: 16px; color: var(--fg); background: var(--bg3); border: 1px solid var(--line); border-radius: 8px; padding: 10px 12px; width: 100%; }
input:focus, select:focus, textarea:focus { border-color: var(--accent); }
textarea { resize: vertical; }
.trap { position: absolute; left: -9999px; width: 1px; height: 1px; overflow: hidden; }

/* footer */
.foot { border-top: 1px solid var(--line); padding: 28px 0; font-size: 14px; color: var(--muted); }
.foot-row { display: flex; flex-wrap: wrap; gap: 12px 28px; justify-content: space-between; }

/* plain pages (thanks, privacy, 404) */
.page { padding: 80px 0; min-height: calc(100vh - 160px); }
.page h1 { font-size: clamp(30px, 4vw, 40px); }
.page h2 { font-size: 22px; margin-top: 32px; }
.page p, .page li { color: #c9d1d9; }

@media (max-width: 900px) {
  .hero-grid, .two { grid-template-columns: 1fr; gap: 40px; }
  .steps { grid-template-columns: 1fr 1fr; }
  .cards, .price-grid { grid-template-columns: 1fr 1fr; }
}
@media (max-width: 620px) {
  body { font-size: 16px; }
  nav a:not(.btn) { display: none; }
  section, section.wrap { padding-top: 52px; padding-bottom: 52px; }
  .hero { padding: 48px 0; }
  .steps, .cards, .price-grid, .contact { grid-template-columns: 1fr; }
  .mock-head { flex-direction: column; align-items: flex-start; }
}
@media (prefers-reduced-motion: reduce) { html { scroll-behavior: auto; } }
