/* Tollie website. Tokens come from TollieKit/Design/Palette.swift and the redesign-v2 artboards. */
:root {
  --cream: #F8F3EA; --card: #FFFFFF; --ink: #1F1A14; --amber: #F2B23E; --amber-deep: #8A5A00;
  --amber-pale: #FBEBC4; --muted: #5C5246; --label: #6E6558; --sand: #F1E9DB; --line: #EADFCC;
  --night: #1E1915; --night-card: #2A231D; --night-text: #F3EBDD; --night-soft: #CFC4B2;
  --night-muted: #A89C8A; --night-line: #3A3129; --danger: #A93A22;
  --window: #E07B4F; --window-pale: #F8E2D6; --budget: #6F8FC2; --budget-pale: #E2E9F4;
  --earn: #7FA35E; --earn-pale: #E3EED8;
  --bg: var(--cream); --fg: var(--ink); --fg-muted: var(--muted); --surface: var(--card);
  --rule: var(--line); --soft: var(--sand);
  --radius: 20px; --max: 1080px; --gutter: 16px;
}
@media (prefers-color-scheme: dark) {
  :root:not([data-theme="light"]) {
    --bg: var(--night); --fg: var(--night-text); --fg-muted: var(--night-soft); --surface: var(--night-card);
    --rule: var(--night-line); --soft: #241E18; --label: var(--night-muted); --amber-pale: #3A2E12;
    --window-pale: #3A2418; --budget-pale: #1E2633; --earn-pale: #1F2A18;
  }
}
:root[data-theme="dark"] {
  --bg: var(--night); --fg: var(--night-text); --fg-muted: var(--night-soft); --surface: var(--night-card);
  --rule: var(--night-line); --soft: #241E18; --label: var(--night-muted); --amber-pale: #3A2E12;
  --window-pale: #3A2418; --budget-pale: #1E2633; --earn-pale: #1F2A18;
}

* { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; scroll-behavior: smooth; }
body {
  margin: 0; background: var(--bg); color: var(--fg);
  font: 500 17px/1.6 "Nunito", -apple-system, BlinkMacSystemFont, "Segoe UI", system-ui, sans-serif;
}
a { color: inherit; }
img { max-width: 100%; height: auto; display: block; }
h1, h2, h3 { line-height: 1.1; letter-spacing: -0.01em; margin: 0 0 12px; font-weight: 900; }
h1 { font-size: clamp(36px, 6.2vw, 64px); }
h2 { font-size: clamp(28px, 4vw, 42px); }
h3 { font-size: 22px; font-weight: 800; }
p { margin: 0 0 16px; }
.lead { font-size: clamp(18px, 2.2vw, 22px); color: var(--fg-muted); font-weight: 600; max-width: 34em; }
.eyebrow {
  font: 500 12px/1 "DM Mono", ui-monospace, Menlo, monospace; letter-spacing: .14em;
  text-transform: uppercase; color: var(--label); margin-bottom: 14px; display: block;
}
.mono { font-family: "DM Mono", ui-monospace, Menlo, monospace; }
.wrap { max-width: var(--max); margin: 0 auto; padding: 0 var(--gutter); }
.narrow { max-width: 720px; }
section { padding: 56px 0; }
@media (min-width: 760px) { section { padding: 88px 0; } }

/* Nav */
.nav { position: sticky; top: 0; z-index: 10; background: color-mix(in srgb, var(--bg) 88%, transparent); backdrop-filter: saturate(1.4) blur(10px); border-bottom: 1px solid var(--rule); }
.nav .wrap { display: flex; align-items: center; justify-content: space-between; height: 64px; gap: 16px; }
.brand { display: inline-flex; align-items: center; gap: 10px; font-weight: 900; font-size: 22px; text-decoration: none; }
.brand img { width: 32px; height: 32px; border-radius: 9px; }
.nav-links { display: none; gap: 24px; font-weight: 700; font-size: 15px; }
.nav-links a { text-decoration: none; color: var(--fg-muted); }
.nav-links a:hover { color: var(--fg); }
@media (min-width: 760px) { .nav-links { display: flex; } }

/* Buttons */
.btn {
  display: inline-flex; align-items: center; justify-content: center; gap: 10px;
  padding: 14px 22px; border-radius: 16px; font-weight: 800; font-size: 17px; text-decoration: none;
  border: 2px solid transparent; cursor: pointer; line-height: 1.2; white-space: nowrap;
}
.btn-primary { background: var(--ink); color: var(--cream); border-color: var(--ink); }
.btn-primary:hover { background: #000; }
:root[data-theme="dark"] .btn-primary, .btn-primary.on-dark { background: var(--amber); color: var(--ink); border-color: var(--amber); }
@media (prefers-color-scheme: dark) { :root:not([data-theme="light"]) .btn-primary { background: var(--amber); color: var(--ink); border-color: var(--amber); } }
.btn-amber { background: var(--amber); color: var(--ink); border-color: var(--amber); }
.btn-amber:hover { filter: brightness(1.04); }
.btn-ghost { background: transparent; color: var(--fg); border-color: var(--fg); }
.btn-ghost:hover { background: var(--soft); }
.btn-sm { padding: 10px 16px; font-size: 15px; border-radius: 12px; }
.btn svg { width: 20px; height: 20px; flex: none; }
.cta-row { display: flex; flex-wrap: wrap; gap: 12px; align-items: center; margin: 24px 0 10px; }
.cta-note { font-size: 14px; color: var(--label); font-weight: 600; }

/* Hero */
.hero { background: var(--amber); color: var(--ink); overflow: hidden; }
.hero .eyebrow { color: #4A4033; }
.hero .lead { color: #4A4033; }
.hero .wrap { display: grid; gap: 32px; align-items: center; }
.hero .cta-note { color: #4A4033; }
.hero .btn-primary { background: var(--ink); color: var(--cream); border-color: var(--ink); }
.hero .btn-ghost { color: var(--ink); border-color: var(--ink); }
.hero .btn-ghost:hover { background: rgba(31,26,20,.08); }
.hero-shot { margin: 0 auto; width: min(100%, 360px); aspect-ratio: 1320 / 2200; overflow: hidden; border-radius: 28px; box-shadow: 0 24px 40px rgba(31,26,20,.28); }
.hero-shot img { width: 100%; height: 100%; object-fit: cover; object-position: center bottom; }
@media (min-width: 860px) {
  .hero .wrap { grid-template-columns: 1.15fr .85fr; }
  .hero-shot { width: min(100%, 400px); }
  .hero { padding: 48px 0 0; }
  .hero-shot { margin-bottom: -60px; }
}

/* Proof strip */
.strip { background: var(--ink); color: var(--night-text); }
.strip .wrap { display: grid; gap: 12px; padding-top: 28px; padding-bottom: 28px; }
@media (min-width: 760px) { .strip .wrap { grid-template-columns: repeat(3, 1fr); gap: 24px; } }
.strike { display: flex; gap: 12px; align-items: flex-start; font-weight: 700; }
.strike .x { flex: none; width: 28px; height: 28px; border-radius: 8px; background: var(--danger); color: #fff; display: grid; place-items: center; font-weight: 900; }
.strike small { display: block; font-weight: 600; color: var(--night-muted); font-size: 14px; }

/* Cards and grids */
.grid { display: grid; gap: 16px; }
@media (min-width: 760px) { .grid-3 { grid-template-columns: repeat(3, 1fr); } .grid-2 { grid-template-columns: repeat(2, 1fr); } }
.card { background: var(--surface); border: 2px solid var(--fg); border-radius: var(--radius); padding: 22px; }
.card.soft { border-color: var(--rule); }
.card h3 { margin-top: 6px; }
.card .num { font: 500 13px/1 "DM Mono", ui-monospace, monospace; color: var(--label); letter-spacing: .1em; }
.kind { display: inline-block; width: 12px; height: 12px; border-radius: 3px; margin-right: 8px; vertical-align: -1px; }
.kind.window { background: var(--window); } .kind.budget { background: var(--budget); } .kind.earn { background: var(--earn); }

/* Feature rows */
.feature { display: grid; gap: 28px; align-items: center; }
.feature .shot { width: min(100%, 320px); margin: 0 auto; border-radius: 24px; overflow: hidden; box-shadow: 0 18px 36px rgba(31,26,20,.18); }
@media (min-width: 860px) {
  .feature { grid-template-columns: 1fr 1fr; gap: 56px; }
  .feature.flip .shot { order: -1; }
}
.feature ul { padding-left: 0; list-style: none; margin: 18px 0; }
.feature li { padding: 10px 0; border-top: 1px solid var(--rule); }
.feature li strong { display: block; }
.feature li span { color: var(--fg-muted); }

/* Steps pills */
.steps { display: flex; flex-wrap: wrap; gap: 10px; margin: 18px 0; }
.steps span { font-family: "DM Mono", ui-monospace, monospace; font-weight: 500; padding: 10px 14px; border-radius: 12px; background: var(--surface); border: 1px solid var(--rule); }
.steps span:nth-child(2) { background: #C98A5C; color: #fff; }
.steps span:nth-child(3) { background: #B35E33; color: #fff; }
.steps span:nth-child(4) { background: var(--window); color: #fff; }

/* Pricing */
.pricing { background: var(--night); color: var(--night-text); }
.pricing .eyebrow { color: var(--night-muted); }
.pricing .lead { color: var(--night-soft); }
.tiers { display: grid; gap: 16px; margin-top: 32px; }
@media (min-width: 760px) { .tiers { grid-template-columns: repeat(3, 1fr); align-items: stretch; } }
.tier { background: var(--night-card); border: 2px solid var(--night-line); border-radius: var(--radius); padding: 24px; display: flex; flex-direction: column; }
.tier.primary { background: var(--amber); color: var(--ink); border-color: var(--amber); position: relative; }
.tier.primary .stamp { position: absolute; top: -14px; right: 18px; background: var(--ink); color: var(--cream); font: 500 11px/1 "DM Mono", monospace; letter-spacing: .12em; padding: 8px 10px; border-radius: 8px; }
.tier .price { font-size: 40px; font-weight: 900; line-height: 1; margin: 8px 0 4px; }
.tier .price small { font-size: 15px; font-weight: 700; margin-left: 4px; }
.tier .per { font-size: 14px; color: var(--night-muted); margin-bottom: 14px; }
.tier.primary .per { color: #4A4033; }
.tier ul { list-style: none; padding: 0; margin: 0 0 18px; }
.tier li { padding: 6px 0; border-top: 1px dashed var(--night-line); font-size: 15px; }
.tier.primary li { border-color: rgba(31,26,20,.25); }
.tier .btn { margin-top: auto; }
.tier .btn-primary { background: var(--amber); color: var(--ink); border-color: var(--amber); }
.tier.primary .btn-primary { background: var(--ink); color: var(--cream); border-color: var(--ink); }
.tier.primary .btn-primary:hover { background: #000; }
.fine { font-size: 14px; color: var(--night-muted); margin-top: 18px; }

/* FAQ */
.faq details { border-top: 1px solid var(--rule); padding: 6px 0; }
.faq details:last-child { border-bottom: 1px solid var(--rule); }
.faq summary { cursor: pointer; font-weight: 800; font-size: 18px; padding: 12px 0; list-style: none; display: flex; justify-content: space-between; gap: 16px; }
.faq summary::-webkit-details-marker { display: none; }
.faq summary::after { content: "+"; font-family: "DM Mono", monospace; color: var(--label); }
.faq details[open] summary::after { content: "–"; }
.faq p { color: var(--fg-muted); max-width: 42em; }

/* Article */
.article { max-width: 720px; margin: 0 auto; padding: 48px var(--gutter) 64px; }
.article h1 { font-size: clamp(32px, 5vw, 50px); }
.article h2 { font-size: clamp(24px, 3vw, 32px); margin-top: 44px; }
.article h3 { margin-top: 28px; }
.article p, .article li { max-width: 40em; }
.article ul, .article ol { padding-left: 22px; }
.article li { margin-bottom: 6px; }
.article .lead { max-width: 30em; }
.article table { width: 100%; border-collapse: collapse; font-size: 15px; margin: 20px 0; display: block; overflow-x: auto; }
.article th, .article td { text-align: left; padding: 10px 12px; border-bottom: 1px solid var(--rule); vertical-align: top; }
.article th { font-size: 12px; letter-spacing: .1em; text-transform: uppercase; font-family: "DM Mono", monospace; font-weight: 500; color: var(--label); }
.article tr.us td { background: var(--amber-pale); font-weight: 700; }
.callout { background: var(--surface); border: 2px solid var(--fg); border-radius: var(--radius); padding: 20px 22px; margin: 28px 0; }
.callout strong { box-shadow: inset 0 -0.45em 0 var(--amber); }
.callout .cta-row { margin: 14px 0 0; }
.meta { font-size: 14px; color: var(--label); margin-bottom: 28px; }
.disclosure { font-size: 14px; color: var(--label); border-top: 1px solid var(--rule); margin-top: 40px; padding-top: 16px; }

/* Final CTA */
.final { background: var(--amber); color: var(--ink); text-align: center; }
.final .eyebrow, .final .lead, .final .cta-note { color: #4A4033; }
.final .lead { margin: 0 auto; }
.final .cta-row { justify-content: center; }
.final .btn-primary { background: var(--ink); color: var(--cream); border-color: var(--ink); }

/* Footer */
footer { border-top: 1px solid var(--rule); padding: 40px 0 48px; font-size: 15px; color: var(--fg-muted); }
footer .wrap { display: grid; gap: 28px; }
@media (min-width: 760px) { footer .wrap { grid-template-columns: 1.2fr 1fr 1fr; } }
footer h4 { margin: 0 0 10px; font-size: 13px; letter-spacing: .12em; text-transform: uppercase; font-family: "DM Mono", monospace; font-weight: 500; color: var(--label); }
footer ul { list-style: none; padding: 0; margin: 0; }
footer li { margin: 6px 0; }
footer a { text-decoration: none; }
footer a:hover { text-decoration: underline; }
.legal { grid-column: 1 / -1; font-size: 13px; color: var(--label); border-top: 1px solid var(--rule); padding-top: 16px; }

/* Conversion: early call to action inside guides */
.cta-inline { display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between; gap: 14px; background: var(--amber); color: var(--ink); border-radius: var(--radius); padding: 18px 20px; margin: 28px 0; }
.cta-inline p { margin: 0; font-weight: 700; max-width: 26em; }
.cta-inline small { display: block; font-weight: 600; color: #4A4033; font-size: 14px; }
.cta-inline .btn-primary { background: var(--ink); color: var(--cream); border-color: var(--ink); }

/* Conversion: sticky bar on phones, shown after the first screen */
.sticky-cta { position: fixed; left: 0; right: 0; bottom: 0; z-index: 20; display: none; padding: 10px var(--gutter) calc(10px + env(safe-area-inset-bottom)); background: color-mix(in srgb, var(--bg) 92%, transparent); backdrop-filter: saturate(1.4) blur(10px); border-top: 1px solid var(--rule); transform: translateY(110%); transition: transform .25s ease; }
.sticky-cta.show { transform: none; }
.sticky-cta .btn { width: 100%; }
.sticky-cta small { display: block; text-align: center; font-size: 12px; color: var(--label); margin-top: 6px; font-weight: 600; }
@media (max-width: 759px) { .sticky-cta { display: block; } body.has-sticky { padding-bottom: 96px; } }

/* Related guides */
.related { margin-top: 44px; border-top: 1px solid var(--rule); padding-top: 24px; }
.related h2 { font-size: 22px; margin-top: 0; }
.related ul { list-style: none; padding: 0; margin: 0; display: grid; gap: 8px; }
.related li a { display: block; padding: 12px 14px; border: 1px solid var(--rule); border-radius: 12px; text-decoration: none; font-weight: 700; background: var(--surface); }
.related li a:hover { border-color: var(--fg); }
.crumbs { font-size: 13px; color: var(--label); margin-bottom: 18px; font-family: "DM Mono", ui-monospace, monospace; }
.crumbs a { text-decoration: none; }
