/* The public landing page. Standalone: it doesn't load app.css or the signed-in header. */
:root {
  --bg: #ffffff; --bg-alt: #f6f5f1; --fg: #1d1f22; --muted: #5f6670; --line: #e6e4dd;
  --card: #ffffff; --amber: #f7a20f; --amber-deep: #c27c00; --on-amber: #232528;
  --green: #16a34a; --red: #b33636; --road: #3a3d42; --road-edge: #d6d3ca; --shadow: 0 18px 50px rgba(20, 22, 26, .12);
  color-scheme: light;
}
@media (prefers-color-scheme: dark) {
  :root { --bg: #0f1115; --bg-alt: #161a20; --fg: #eef0f3; --muted: #a1a7b0; --line: #2a2f37;
          --card: #1b1f25; --road: #4a4f57; --road-edge: #262a31; --green: #34c46a; --shadow: 0 18px 50px rgba(0, 0, 0, .45);
          color-scheme: dark; }
}
* { box-sizing: border-box; }
html { scroll-behavior: smooth; }
body { margin: 0; background: var(--bg); color: var(--fg);
       font: 17px/1.6 -apple-system, "Segoe UI", Roboto, Helvetica, Arial, sans-serif; -webkit-font-smoothing: antialiased; }
img { max-width: 100%; height: auto; }
a { color: inherit; }
h1, h2, h3 { line-height: 1.15; letter-spacing: -.02em; margin: 0; }
h2 { font-size: clamp(1.7rem, 4vw, 2.5rem); font-weight: 800; }
h3 { font-size: 1.1rem; font-weight: 700; margin-bottom: .35rem; }
p { margin: 0; }
.wrap { max-width: 1080px; margin: 0 auto; padding-inline: 20px; }
.nowrap { white-space: nowrap; }
.sub { color: var(--muted); max-width: 640px; margin: 14px auto 0; font-size: 1.05rem; }
.fine { color: var(--muted); font-size: .85rem; margin-top: 10px; }
sup { font-size: .6em; line-height: 0; vertical-align: super; }
section { padding-block: clamp(56px, 9vw, 104px); }
section h2 { text-align: center; }

/* Buttons */
.button { display: inline-block; background: var(--amber); color: var(--on-amber); font-weight: 800; text-decoration: none;
          border-radius: 10px; padding: 12px 22px; transition: transform .12s ease, box-shadow .12s ease; }
.button:hover { transform: translateY(-1px); box-shadow: 0 8px 22px rgba(247, 162, 15, .35); }
.button.big { font-size: 1.1rem; padding: 16px 30px; }

/* Top bar: no band, just the mark and a few links. */
.bar { position: sticky; top: env(safe-area-inset-top, 0px); z-index: 5; display: flex; align-items: center; justify-content: space-between;
       gap: 16px; padding: 12px 20px; background: var(--bg); background: color-mix(in srgb, var(--bg) 88%, transparent);
       backdrop-filter: blur(10px); -webkit-backdrop-filter: blur(10px); border-bottom: 1px solid transparent; }
.mark { display: inline-flex; align-items: center; gap: 8px; text-decoration: none; font-weight: 800; font-size: 1.15rem; letter-spacing: -.01em; }
.mark img { height: 30px; width: auto; }
.mark b, .foot b { color: var(--amber-deep); }
@media (prefers-color-scheme: dark) { .mark b, .foot b { color: var(--amber); } }
.bar nav { display: flex; align-items: center; gap: 22px; font-size: .95rem; }
.bar nav a { text-decoration: none; color: var(--muted); }
.bar nav a:hover { color: var(--fg); }
.bar nav .signin { color: var(--fg); font-weight: 700; border: 1.5px solid var(--line); border-radius: 8px; padding: 6px 14px; }
@media (max-width: 640px) { .bar nav a:not(.signin) { display: none; } }

/* Hero */
.hero { text-align: center; padding-top: clamp(24px, 5vw, 56px); }
.logo img { display: block; width: min(340px, 72vw); margin: 0 auto 8px; }
.hero h1 { font-size: clamp(2.2rem, 6.4vw, 4rem); font-weight: 850; max-width: 900px; margin: 0 auto; }
.hero h1 em { font-style: normal; color: var(--amber-deep); }
@media (prefers-color-scheme: dark) { .hero h1 em { color: var(--amber); } }
.lede { font-size: clamp(1.1rem, 2.4vw, 1.3rem); color: var(--muted); max-width: 640px; margin: 20px auto 0; }
.cta { margin-top: 32px; }

/* Road illustration */
.road { text-align: center; }
.road-art { margin: 36px auto 0; max-width: 900px; }
.road-art svg { width: 100%; height: auto; overflow: visible; }
.road-edge { fill: none; stroke: var(--road-edge); stroke-width: 34; stroke-linecap: round; }
.road-fill { fill: none; stroke: var(--road); stroke-width: 24; stroke-linecap: round; }
.road-line { fill: none; stroke: var(--amber); stroke-width: 2.5; stroke-dasharray: 14 12; stroke-linecap: round; }
.stations circle { stroke: var(--bg); stroke-width: 3; }
.stations .best { stroke-width: 4; }
.tag path { fill: var(--fg); }
.tag text { fill: var(--bg); font-weight: 800; font-size: 22px; font-family: inherit; }
.pin circle { fill: var(--amber); stroke: var(--bg); stroke-width: 4; }
.pin text { fill: var(--fg); font-weight: 700; font-size: 18px; font-family: inherit; }
@media (max-width: 560px) { .pin text { font-size: 28px; } .tag { transform: translate(367px, 151px) scale(1.3); } }
figcaption { color: var(--muted); font-size: .85rem; margin-top: 16px; display: flex; gap: 10px; justify-content: center; align-items: center; flex-wrap: wrap; }
.scale { display: inline-flex; gap: 3px; }
.scale i, .mail-list i { display: inline-block; width: 12px; height: 12px; border-radius: 50%; }
.c0 { background: #16a34a; } .c1 { background: #62c383; } .c2 { background: #b4e2c2; } .c3 { background: #e4e3dd; }
.c4 { background: #f2aaa9; } .c5 { background: #e66767; } .c6 { background: #b33636; }

/* Inbox: copy beside a phone showing the email */
.inbox { display: grid; grid-template-columns: 1fr 380px; gap: clamp(32px, 6vw, 80px); align-items: center; }
.inbox h2 { text-align: left; font-size: clamp(1.45rem, 3.4vw, 2.2rem); }
@media (max-width: 860px) { .inbox { grid-template-columns: 1fr; } .inbox h2 { text-align: center; } .inbox-copy { max-width: 560px; margin: 0 auto; } }
.checks { list-style: none; padding: 0; margin: 24px 0 0; }
.checks li { position: relative; padding-left: 32px; margin: 0 0 12px; }
.checks li > i { font-style: normal; }
/* Phones: the bold part on its own line, the rest under it, so lines don't end in one stray word. */
@media (max-width: 560px) {
  .inbox .checks li { font-size: .95rem; line-height: 1.45; margin-bottom: 14px; }
  .inbox .checks li > i { display: none; }
  .inbox .checks li > span { display: block; color: var(--muted); }
  .inbox .checks li > span::first-letter { text-transform: uppercase; }
}
.checks li::before { content: ""; position: absolute; left: 0; top: .35em; width: 20px; height: 20px; border-radius: 50%;
                     background: var(--green); }
.checks li::after { content: ""; position: absolute; left: 7px; top: calc(.35em + 4px); width: 5px; height: 10px;
                    border: solid #fff; border-width: 0 2.5px 2.5px 0; transform: rotate(45deg); }
.phone { width: 100%; max-width: 380px; margin: 0 auto; padding: 14px; border-radius: 40px; background: #1d1f22;
         box-shadow: var(--shadow); }
.mail { border-radius: 28px; overflow: hidden; background: #f3f4f6; color: #111827; font-size: 14px; line-height: 1.4; }
.mail-head { background: #26272a; text-align: center; padding: 18px 12px 10px; }
.mail-head img { width: 132px; display: block; margin: 0 auto; }
.mail-head span { display: block; color: #c9ccd1; font-size: 11px; margin-top: 4px; }
.mail .muted { color: #6b7280; }
.mail .small { font-size: 12px; }
.mail-best { margin: 12px; padding: 14px 10px; background: #fff; border: 1px solid #e5e7eb; border-radius: 10px; text-align: center;
             display: flex; flex-direction: column; gap: 2px; }
.mail-best .muted { font-size: 12px; }
.mail-best .price { font-size: 40px; font-weight: 800; line-height: 1.05; }
.mail-best .station { font-weight: 700; }
.mail-best .go { color: #16a34a; font-weight: 700; }
.mail-tiles { display: grid; grid-template-columns: repeat(3, 1fr); gap: 6px; margin: 0 12px; }
.mail-tiles div { background: #fff; border: 1px solid #e5e7eb; border-radius: 8px; padding: 8px 4px; text-align: center; display: flex; flex-direction: column; }
.mail-tiles span { font-size: 8.5px; text-transform: uppercase; letter-spacing: .04em; color: #6b7280; }
.mail-tiles b { font-size: 16px; padding: 2px 0; }
.mail-tiles small { font-size: 9.5px; color: #6b7280; }
.mail-tiles .good { color: #16a34a; }
.mail-list { list-style: none; margin: 12px; padding: 4px 12px; background: #fff; border: 1px solid #e5e7eb; border-radius: 10px; }
.mail-list li { display: grid; grid-template-columns: 14px 1fr auto; gap: 8px; align-items: start; padding: 7px 0; border-bottom: 1px solid #f0f0f0; }
.mail-list li:last-child { border-bottom: 0; }
.mail-list i { margin-top: 3px; }
.mail-list span { font-weight: 600; }
.mail-list small { display: block; font-weight: 400; font-size: 11px; color: #6b7280; }
.mail-list b { text-align: right; }
.mail-more { text-align: center; color: #6b7280; font-size: 11px; padding: 0 12px 14px; }

/* How it works */
.how { text-align: center; }
.steps { list-style: none; padding: 0; margin: 40px 0 0; display: grid; grid-template-columns: repeat(3, 1fr); gap: 24px; text-align: left; }
.steps li { background: var(--bg-alt); border-radius: 16px; padding: 28px 24px; }
.steps p, .ideas p, .grid p { color: var(--muted); font-size: .97rem; }
.n { display: inline-grid; place-items: center; width: 38px; height: 38px; border-radius: 50%; background: var(--amber); color: var(--on-amber);
     font-weight: 850; margin-bottom: 14px; }
.ideas { display: grid; grid-template-columns: repeat(3, 1fr); gap: 24px; margin-top: 24px; text-align: left; }
.ideas div { border: 1.5px dashed var(--line); border-radius: 16px; padding: 22px 24px; }
@media (max-width: 760px) { .steps, .ideas { grid-template-columns: 1fr; } }

/* The math */
.math { text-align: center; background: var(--bg-alt); max-width: none; }
.sums { display: flex; flex-wrap: wrap; align-items: center; justify-content: center; gap: 10px 18px; margin-top: 36px; }
.sums div { display: flex; flex-direction: column; align-items: center; }
.sums b { font-size: clamp(2rem, 6vw, 3.2rem); font-weight: 850; line-height: 1; }
.sums span { color: var(--muted); font-size: .9rem; margin-top: 6px; }
.sums .op { font-size: 2rem; color: var(--muted); }
.sums .total b { color: var(--green); }
@media (max-width: 560px) {
  .sums { flex-wrap: nowrap; gap: 6px; align-items: flex-start; }
  .sums b { font-size: clamp(1.25rem, 6.4vw, 2rem); }
  .sums span { font-size: .72rem; line-height: 1.25; max-width: 5.5em; text-align: center; }
  .sums .op { font-size: 1.2rem; line-height: 1.3; }
}

/* Trust */
.grid { display: grid; grid-template-columns: repeat(4, 1fr); gap: 20px; margin-top: 40px; }
.grid div { background: var(--bg-alt); border-radius: 16px; padding: 24px 22px; }
@media (max-width: 900px) { .grid { grid-template-columns: repeat(2, 1fr); } }
@media (max-width: 520px) { .grid { grid-template-columns: 1fr; } }

/* Pricing */
.plan { max-width: 440px; margin: 36px auto 0; background: var(--card); border: 2px solid var(--amber); border-radius: 22px;
        padding: 36px 32px; text-align: center; box-shadow: var(--shadow); }
.plan-price b { font-size: 4.2rem; font-weight: 850; line-height: 1; letter-spacing: -.03em; }
.plan-price span { color: var(--muted); font-size: 1.1rem; margin-left: 6px; }
.plan-note { color: var(--muted); margin-top: 8px; }
.plan .checks { text-align: left; margin: 26px 0 28px; }

/* FAQ */
.faq { max-width: 760px; }
.faq h2 { margin-bottom: 28px; }
.faq details { border-bottom: 1px solid var(--line); padding: 18px 4px; }
.faq summary { cursor: pointer; font-weight: 700; font-size: 1.05rem; list-style: none; display: flex; justify-content: space-between; gap: 16px; }
.faq summary::-webkit-details-marker { display: none; }
.faq summary::after { content: "+"; color: var(--amber-deep); font-size: 1.4rem; line-height: 1; }
.faq details[open] summary::after { content: "–"; }
.faq details p { color: var(--muted); margin-top: 10px; }

/* Final call and footer */
.final { text-align: center; }
.final h2 { margin-bottom: 28px; }
.foot { border-top: 1px solid var(--line); padding-block: 28px 40px; display: flex; flex-wrap: wrap; justify-content: space-between;
        align-items: center; gap: 12px; color: var(--muted); font-size: .85rem; }
.foot div { display: inline-flex; align-items: center; gap: 8px; color: var(--fg); font-weight: 800; }
.foot img { height: 24px; width: auto; }
