/* Public pages (homepage, get started). The trendwiseco.com rebuild look from the Twc brand contract: warm paper, navy
   ink, sand for calls to action, DM Sans, big type, no grid or glow. Signed-in pages keep app.css. */
:root {
    --paper: #f7f3ea;
    --paper-deep: #efe8da;
    --ink: #1a2040;
    --ink-soft: rgba(26, 32, 64, 0.72);
    --ink-dim: rgba(26, 32, 64, 0.5);
    --line: rgba(26, 32, 64, 0.14);
    --sand: #e7c186;
    --sand-deep: #d9ab62;
    --blue: #2592d5;
    --error: #a3271f;
    --pad-x: clamp(20px, 5vw, 96px);
    --section-y: clamp(64px, 9vw, 128px);
}
* { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; }
body { margin: 0; background: var(--paper); color: var(--ink); font: 400 17px/1.6 "DM Sans", system-ui, -apple-system, sans-serif; }
a { color: inherit; }
.wrap { max-width: 1240px; margin: 0 auto; padding: 0 var(--pad-x); }

.top { display: flex; align-items: center; justify-content: space-between; gap: 16px; padding-top: 28px; padding-bottom: 28px; }
.top .logo { display: inline-flex; color: var(--ink); }
.top .logo svg { height: 30px; width: auto; display: block; }
.top nav { display: flex; align-items: center; gap: 22px; font-weight: 600; font-size: 15px; }
.top nav a.plain { text-decoration: none; }
.top nav a.plain:hover { text-decoration: underline; }

.btn { display: inline-block; padding: 14px 24px; border-radius: 999px; font-family: inherit; font-weight: 600; font-size: 15px; line-height: 1.2; text-decoration: none; border: 2px solid transparent; cursor: pointer; text-align: center; }
.btn-sand { background: var(--sand); color: var(--ink); }
.btn-sand:hover { background: var(--sand-deep); }
.btn-line { border-color: var(--ink); color: var(--ink); background: transparent; }
.btn-line:hover { background: var(--ink); color: var(--paper); }
.btn-small { padding: 9px 16px; font-size: 14px; }
.btn:focus-visible, .top a:focus-visible, footer a:focus-visible, .field input:focus-visible, .field select:focus-visible { outline: 3px solid var(--blue); outline-offset: 3px; }

.eyebrow { font-size: 12.5px; font-weight: 600; letter-spacing: 0.16em; text-transform: uppercase; color: var(--ink-dim); margin: 0 0 18px; }

.hero { padding-top: clamp(40px, 7vw, 96px); padding-bottom: var(--section-y); }
.hero h1 { font-size: clamp(2.9rem, 8.4vw, 6.4rem); line-height: 0.98; letter-spacing: -0.035em; font-weight: 700; margin: 0; max-width: 15ch; }
.hero h1 .quiet { color: var(--ink-dim); }
.hero .lead { font-size: clamp(1.08rem, 1.7vw, 1.32rem); color: var(--ink-soft); max-width: 40rem; margin: 30px 0 34px; }
.hero .actions { display: flex; flex-wrap: wrap; gap: 12px; }

/* The homepage's one diagram: what connects to what, and what sits in the middle. */
.flow { display: grid; grid-template-columns: 1fr auto 1.25fr auto 1fr; align-items: stretch; margin-top: clamp(48px, 7vw, 88px); }
.node { border: 1.5px solid var(--ink); border-radius: 18px; padding: 22px 24px; background: var(--paper); }
.node h3 { margin: 0 0 12px; font-size: 13px; letter-spacing: 0.14em; text-transform: uppercase; color: var(--ink-dim); font-weight: 600; }
.node ul { list-style: none; margin: 0; padding: 0; }
.node li { padding: 7px 0; border-top: 1px solid var(--line); font-weight: 500; }
.node li:first-child { border-top: 0; padding-top: 0; }
.node.kpi { background: var(--ink); color: var(--paper); border-color: var(--ink); }
.node.kpi h3 { color: rgba(247, 243, 234, 0.6); }
.node.kpi li { border-top-color: rgba(247, 243, 234, 0.16); }
.node.kpi .name { font-size: 1.5rem; font-weight: 700; letter-spacing: -0.02em; margin: 0 0 14px; }
.wire { display: flex; align-items: center; justify-content: center; width: clamp(28px, 4vw, 64px); color: var(--blue); }
.wire svg { width: 100%; height: 14px; }

.band { padding-top: var(--section-y); padding-bottom: var(--section-y); border-top: 1px solid var(--line); }
.band h2 { font-size: clamp(2rem, 4.6vw, 3.4rem); line-height: 1.04; letter-spacing: -0.03em; margin: 0 0 18px; max-width: 18ch; }
.band .intro { color: var(--ink-soft); max-width: 38rem; margin: 0 0 40px; font-size: 1.08rem; }

/* A morning with it: things people actually ask. No numbers, because they would be made up. */
.asks { display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 1fr); gap: 0 48px; }
.ask { padding: 22px 0; border-top: 1px solid var(--line); }
.ask .you { font-size: 1.22rem; font-weight: 600; letter-spacing: -0.01em; margin: 0 0 8px; }
.ask .you::before { content: "You"; font-size: 12px; font-weight: 600; letter-spacing: 0.14em; color: var(--ink-dim); text-transform: uppercase; margin-right: 10px; }
.ask .does { margin: 0; color: var(--ink-soft); }

.split { display: grid; grid-template-columns: 5fr 7fr; gap: clamp(32px, 6vw, 96px); align-items: start; }
.split dl { margin: 0; }
.split dt { font-weight: 700; font-size: 1.15rem; margin: 0; padding-top: 22px; border-top: 1px solid var(--line); }
.split dt:first-child { border-top: 0; padding-top: 0; }
.split dd { margin: 6px 0 22px; color: var(--ink-soft); }

.rules { background: var(--ink); color: var(--paper); border-radius: 28px; padding: clamp(36px, 6vw, 80px); }
.rules .eyebrow { color: rgba(247, 243, 234, 0.55); }
.rules h2 { font-size: clamp(2rem, 4.8vw, 3.6rem); line-height: 1.02; letter-spacing: -0.03em; margin: 0 0 36px; }
.rules ol { list-style: none; margin: 0; padding: 0; display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 32px; counter-reset: rule; }
.rules li { counter-increment: rule; border-top: 1px solid rgba(247, 243, 234, 0.22); padding-top: 18px; color: rgba(247, 243, 234, 0.8); }
.rules li::before { content: "0" counter(rule); display: block; color: var(--sand); font-weight: 700; margin-bottom: 8px; }
.rules li strong { color: var(--paper); display: block; font-size: 1.12rem; margin-bottom: 6px; }

.gdata table { width: 100%; border-collapse: collapse; }
.gdata th, .gdata td { text-align: left; vertical-align: top; padding: 14px 0; border-top: 1px solid var(--line); }
.gdata th { width: 38%; padding-right: 20px; font-weight: 700; }
.gdata td, .gdata p { color: var(--ink-soft); }
.gdata a { text-decoration-thickness: 1px; text-underline-offset: 3px; }

/* Get started */
.start { padding-top: clamp(32px, 5vw, 72px); padding-bottom: var(--section-y); display: grid; grid-template-columns: 6fr 5fr; gap: clamp(32px, 6vw, 96px); align-items: start; }
.start h1 { font-size: clamp(2.6rem, 6.4vw, 5rem); line-height: 1; letter-spacing: -0.035em; margin: 0 0 22px; }
.start .lead { font-size: clamp(1.05rem, 1.5vw, 1.22rem); color: var(--ink-soft); margin: 0 0 36px; max-width: 34rem; }
.steps { list-style: none; margin: 0; padding: 0; counter-reset: step; }
.steps li { counter-increment: step; display: grid; grid-template-columns: 48px 1fr; gap: 0 14px; padding: 18px 0; border-top: 1px solid var(--line); }
.steps li::before { content: counter(step); grid-row: span 2; width: 36px; height: 36px; border-radius: 50%; border: 1.5px solid var(--ink); display: grid; place-items: center; font-weight: 700; font-size: 15px; }
.steps strong { display: block; font-size: 1.08rem; }
.steps span { color: var(--ink-soft); }

.panel { background: #fffdf8; border: 1.5px solid var(--ink); border-radius: 22px; padding: clamp(24px, 3.4vw, 40px); }
.panel h2 { font-size: 1.5rem; letter-spacing: -0.02em; margin: 0 0 8px; }
.panel p { color: var(--ink-soft); margin: 0 0 18px; }
.panel .after { margin: 18px 0 0; font-size: 15px; }
.field { margin: 0 0 16px; }
.field label { display: block; font-weight: 600; font-size: 14px; margin: 0 0 6px; }
.field input, .field select { width: 100%; padding: 13px 14px; border: 1.5px solid rgba(26, 32, 64, 0.32); border-radius: 12px; background: #fff; color: var(--ink); font: inherit; font-size: 16px; }
.field input:focus, .field select:focus { border-color: var(--ink); }
.check { display: flex; gap: 10px; align-items: flex-start; font-size: 15px; color: var(--ink-soft); margin: 4px 0 20px; }
.check input { margin-top: 4px; width: 18px; height: 18px; accent-color: var(--ink); }
.panel .btn { width: 100%; }
.notice { border-radius: 12px; padding: 12px 14px; margin: 0 0 18px; font-size: 15px; }
.notice-error { background: rgba(163, 39, 31, 0.08); color: var(--error); border: 1px solid rgba(163, 39, 31, 0.3); }
.notice-ok { background: rgba(26, 32, 64, 0.06); border: 1px solid var(--line); color: var(--ink); }
.honeypot { position: absolute; left: -10000px; top: auto; width: 1px; height: 1px; overflow: hidden; }

.plans { display: grid; grid-template-columns: 1.4fr repeat(3, 1fr); }
.plans > div { padding: 14px 16px 14px 0; border-top: 1px solid var(--line); }
.plans .head { border-top: 0; padding-bottom: 20px; }
.plans .tier { font-weight: 700; font-size: 1.15rem; }
.plans .price { font-size: clamp(2rem, 3.6vw, 2.8rem); font-weight: 700; letter-spacing: -0.03em; line-height: 1.1; margin: 4px 0 2px; }
.plans .price small { font-size: 15px; font-weight: 500; color: var(--ink-dim); letter-spacing: 0; }
.plans .label { color: var(--ink-soft); }
.plans .val { font-weight: 600; font-variant-numeric: tabular-nums; }
.plans .head .btn { margin-top: 12px; }
.plans-note { color: var(--ink-soft); margin: 26px 0 0; max-width: 46rem; }

.center { max-width: 560px; margin: 0 auto; padding-top: clamp(40px, 7vw, 96px); padding-bottom: var(--section-y); }

footer.wrap { border-top: 1px solid var(--line); padding-top: 40px; padding-bottom: 48px; display: flex; flex-wrap: wrap; justify-content: space-between; gap: 20px; color: var(--ink-soft); font-size: 15px; }
footer nav { display: flex; flex-wrap: wrap; gap: 8px 22px; }
footer nav a { text-underline-offset: 3px; }

@media (max-width: 960px) {
    .flow { grid-template-columns: 1fr; }
    .wire { width: 100%; height: 40px; }
    .wire svg { width: 14px; height: 100%; }
    .asks, .split, .start { grid-template-columns: 1fr; }
    .rules ol { grid-template-columns: 1fr; gap: 24px; }
}
@media (max-width: 640px) {
    /* Plans: each row's label on its own line, the three values under it. */
    .plans { grid-template-columns: repeat(3, minmax(0, 1fr)); }
    .plans .corner { display: none; }
    .plans .label { grid-column: 1 / -1; padding-bottom: 0; font-size: 14px; }
    .plans .val { border-top: 0; padding-top: 4px; }
    .plans .head .btn { padding: 8px 14px; }
    .plans .price small { display: block; margin-top: 2px; }
    .hide-sm { position: absolute; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; }
}
@media (max-width: 520px) {
    body { font-size: 16px; }
    .top nav .plain { display: none; }
    .top .logo svg { height: 26px; }
    .hero .actions .btn { flex: 1 1 auto; }
    .ask .you { font-size: 1.1rem; }
    .gdata th, .gdata td { display: block; width: auto; padding-right: 0; }
    .gdata th { padding-bottom: 4px; }
    .gdata td { border-top: 0; padding-top: 0; }
}
