:root {
  color-scheme: light;
  --cream: #fff7ea;
  --paper: #fffdf7;
  --espresso: #160d08;
  --umber: #5f3810;
  --muted: #755f4a;
  --gold: #bd7419;
  --warm-gold: #f2b04a;
  --line: #dfcba9;
  --soft-line: rgb(95 56 16 / 0.14);
  --shadow: rgb(79 48 14 / 0.16);
  --serif: Iowan Old Style, Baskerville, "Times New Roman", serif;
  --sans: -apple-system, BlinkMacSystemFont, "SF Pro Text", "Segoe UI", sans-serif;
}

* { box-sizing: border-box; }
html { scroll-behavior: smooth; }
body { margin: 0; background: var(--cream); color: var(--espresso); font-family: var(--sans); line-height: 1.55; }
body::before { position: fixed; z-index: -1; inset: 0; background-image: radial-gradient(rgb(95 56 16 / 0.035) 0.7px, transparent 0.7px); background-size: 7px 7px; content: ""; pointer-events: none; }
a { color: inherit; text-underline-offset: 0.2em; }
img, svg { max-width: 100%; }
.skip-link { position: fixed; z-index: 10; top: 12px; left: 12px; padding: 10px 14px; transform: translateY(-160%); border-radius: 6px; background: var(--espresso); color: white; }
.skip-link:focus { transform: none; }
:focus-visible { outline: 3px solid var(--gold); outline-offset: 4px; }

.site-header, main > section, .site-footer { width: min(1380px, calc(100% - 48px)); margin-inline: auto; }
.site-header { display: flex; align-items: center; justify-content: space-between; min-height: 92px; border-bottom: 1px solid var(--line); }
.wordmark { display: inline-flex; align-items: center; gap: 12px; font-family: var(--serif); font-size: 1.45rem; font-weight: 700; text-decoration: none; }
.wordmark img { border-radius: 13px; box-shadow: 0 8px 24px var(--shadow); }
.site-header nav, .site-footer nav { display: flex; gap: clamp(18px, 3vw, 42px); }
.site-header nav a, .site-footer nav a { font-size: 0.92rem; font-weight: 650; text-decoration: none; }
.site-header nav a:hover, .site-footer nav a:hover, .text-link:hover { color: var(--gold); }

.hero { display: grid; grid-template-columns: minmax(320px, 0.78fr) minmax(520px, 1.22fr); align-items: center; min-height: min(820px, calc(100vh - 92px)); padding-block: 64px 72px; overflow: hidden; }
.hero-copy { position: relative; z-index: 1; padding-right: 28px; }
h1, h2, h3, p { margin-top: 0; }
h1, h2 { font-family: var(--serif); letter-spacing: -0.035em; }
h1 { margin-bottom: 28px; font-size: clamp(4rem, 7.6vw, 7.8rem); font-weight: 600; line-height: 0.86; }
.hero-copy > p { max-width: 510px; color: var(--umber); font-size: clamp(1.15rem, 1.7vw, 1.45rem); }
.actions { display: flex; flex-wrap: wrap; align-items: center; gap: 22px; margin-top: 34px; }
.button { display: inline-flex; align-items: center; justify-content: center; gap: 16px; min-height: 52px; padding: 0 22px; border: 1px solid var(--gold); border-radius: 8px; background: var(--gold); color: white; font-weight: 750; text-decoration: none; box-shadow: 0 10px 26px rgb(189 116 25 / 0.2); transition: transform 180ms ease, box-shadow 180ms ease; }
.button:hover { transform: translateY(-2px); box-shadow: 0 14px 32px rgb(189 116 25 / 0.28); }
.button.secondary { border-color: var(--line); background: transparent; color: var(--umber); box-shadow: none; }
.text-link { font-weight: 750; text-decoration: none; }
.panorama { display: grid; grid-template-columns: 1fr 1fr; width: min(860px, 64vw); margin-right: -9vw; transform: rotate(1deg); filter: drop-shadow(0 30px 34px rgb(55 33 12 / 0.17)); }
.panorama img { display: block; width: 100%; }

.proof-line { display: flex; align-items: center; justify-content: space-between; gap: 30px; padding-block: 25px; border-block: 1px solid var(--line); }
.proof-line p { margin: 0; color: var(--umber); }
.proof-line ol { display: flex; gap: clamp(26px, 5vw, 72px); margin: 0; padding: 0; list-style: none; font-weight: 700; }
.proof-line li { white-space: nowrap; }
.proof-line li span { margin-right: 7px; color: var(--gold); font-size: 0.75rem; letter-spacing: 0.08em; }

.story, .history-section { display: grid; grid-template-columns: minmax(260px, 0.62fr) minmax(520px, 1.38fr); gap: clamp(50px, 8vw, 130px); align-items: center; padding-block: clamp(90px, 10vw, 160px); }
.section-copy { max-width: 460px; }
.section-number { margin-bottom: 18px; color: var(--gold); font-size: 0.78rem; font-weight: 800; letter-spacing: 0.14em; }
h2 { margin-bottom: 22px; font-size: clamp(2.6rem, 4.6vw, 5rem); font-weight: 600; line-height: 0.98; }
.section-copy > p:last-of-type { color: var(--muted); font-size: 1.06rem; }
.feature-list { display: grid; gap: 13px; margin: 28px 0 0; padding: 22px 0 0; border-top: 1px solid var(--line); list-style: none; }
.feature-list span { display: inline-grid; place-items: center; width: 24px; height: 24px; margin-right: 8px; border-radius: 50%; background: rgb(242 176 74 / 0.2); color: var(--gold); font-weight: 900; }
.feature-preview { padding: 14px; border: 1px solid var(--line); background: var(--paper); box-shadow: 0 25px 70px var(--shadow); }
.feature-preview img { display: block; width: 100%; height: min(70vh, 620px); background: var(--paper); object-fit: contain; }
.feature-preview figcaption { margin: 0; padding: 14px 8px 1px; color: var(--umber); font-weight: 750; text-align: left; }

.history-section { border-top: 1px solid var(--line); }
.chart { min-width: 0; padding: clamp(22px, 4vw, 44px); border: 1px solid var(--line); background: var(--paper); box-shadow: 0 25px 70px var(--shadow); }
.chart-head { display: flex; align-items: start; justify-content: space-between; gap: 20px; margin-bottom: 22px; }
.chart h3 { margin-bottom: 3px; font-family: var(--serif); font-size: 1.75rem; }
.chart-head p { margin-bottom: 0; color: var(--muted); font-size: 0.88rem; }
.chart-head > span { padding: 7px 10px; border: 1px solid var(--line); border-radius: 5px; color: var(--muted); font-size: 0.75rem; }
.donut-showcase { display: grid; grid-template-columns: minmax(180px, 1fr) minmax(190px, 0.9fr); align-items: center; gap: clamp(28px, 6vw, 70px); min-height: 310px; }
.donut-main, .donut-rates { display: grid; place-items: center; border-radius: 50%; }
.donut-main { width: min(100%, 290px); aspect-ratio: 1; margin-inline: auto; background: radial-gradient(circle, var(--paper) 0 53%, transparent 54%), conic-gradient(var(--gold) 0 82%, var(--clay) 82% 100%); box-shadow: inset 0 0 0 1px var(--soft-line); }
.donut-main span { display: grid; text-align: center; }
.donut-main strong { font-family: var(--serif); font-size: clamp(2rem, 5vw, 3.4rem); }
.donut-main small, .tip-rate-row small { color: var(--muted); }
.donut-copy { display: grid; gap: 14px; }
.donut-copy > p { display: grid; grid-template-columns: 14px 1fr auto; align-items: center; gap: 10px; margin: 0; padding-bottom: 12px; border-bottom: 1px solid var(--soft-line); }
.donut-copy i { width: 10px; height: 10px; border-radius: 50%; }
.bill-swatch { background: var(--gold); }
.tip-swatch { background: var(--clay); }
.tip-rate-row { display: flex; align-items: center; gap: 16px; margin-top: 8px; }
.donut-rates { width: 82px; aspect-ratio: 1; flex: 0 0 auto; background: radial-gradient(circle, var(--paper) 0 48%, transparent 49%), conic-gradient(var(--gold) 0 62%, var(--clay) 62% 86%, var(--espresso) 86% 100%); }

.screenshots { padding-block: 90px 120px; border-top: 1px solid var(--line); }
.screenshots-heading { display: flex; align-items: end; justify-content: space-between; gap: 30px; margin-bottom: 42px; }
.screenshots-heading h2 { max-width: 720px; margin: 0; }
.screenshots-heading > p { max-width: 260px; margin: 0 0 8px; color: var(--muted); text-align: right; }
.screenshot-rail { display: grid; grid-auto-columns: minmax(240px, 24%); grid-auto-flow: column; gap: 24px; padding: 10px 8px 32px; overflow-x: auto; overscroll-behavior-inline: contain; scroll-snap-type: inline mandatory; scrollbar-color: var(--gold) transparent; }
figure { margin: 0; scroll-snap-align: start; }
.screenshot-rail img { display: block; width: 100%; border: 1px solid var(--line); border-radius: 24px; background: var(--paper); box-shadow: 0 18px 38px var(--shadow); }
figcaption { margin-top: 14px; color: var(--umber); font-size: 0.92rem; font-weight: 750; text-align: center; }

.closing { display: grid; grid-template-columns: auto 1fr auto; align-items: center; gap: 28px; padding: 42px; border-block: 1px solid var(--line); }
.closing img { border-radius: 24px; box-shadow: 0 12px 28px var(--shadow); }
.closing h2 { margin-bottom: 5px; font-size: clamp(2rem, 3.4vw, 3.8rem); }
.closing p { margin-bottom: 0; color: var(--muted); }
.site-footer { display: grid; grid-template-columns: 1fr auto 1fr; align-items: center; gap: 30px; min-height: 150px; }
.site-footer > p { margin: 0; color: var(--muted); font-family: var(--serif); font-size: 1.1rem; }
.site-footer nav { justify-self: end; }

/* Shared legal/support pages retain a calm reading width. */
.page { width: min(1120px, calc(100% - 48px)); margin: 0 auto; padding: 64px 0; }
.page.narrow, .narrow { width: min(760px, calc(100% - 48px)); }
.page > .brand-logo { width: 88px; border-radius: 20px; box-shadow: 0 12px 30px var(--shadow); }
.page > h1 { margin: 24px 0; font-size: clamp(3rem, 7vw, 5.8rem); }
.page h2 { margin-top: 36px; font-size: 1.8rem; }
.page .updated, .page p { color: var(--muted); }
.page article { margin-top: 16px; padding: 20px; border: 1px solid var(--line); background: var(--paper); }
.page-links { display: flex; flex-wrap: wrap; gap: 22px; margin-top: 38px; padding-top: 22px; border-top: 1px solid var(--line); font-weight: 750; }
.accessibility-list { display: grid; grid-template-columns: repeat(2, 1fr); gap: 16px; }

@media (max-width: 980px) {
  .hero { grid-template-columns: 0.8fr 1.2fr; min-height: auto; }
  h1 { font-size: clamp(3.6rem, 8vw, 6rem); }
  .panorama { width: 72vw; margin-right: -23vw; }
  .story, .history-section { grid-template-columns: 1fr; gap: 44px; }
  .section-copy { max-width: 680px; }
  .screenshot-rail { grid-auto-columns: minmax(220px, 38%); }
  .site-footer { grid-template-columns: 1fr auto; }
  .site-footer > p { display: none; }
}

@media (max-width: 720px) {
  .site-header, main > section, .site-footer { width: min(100% - 28px, 1380px); }
  .site-header { min-height: 76px; }
  .site-header .wordmark span { font-size: 1.2rem; }
  .site-header nav { gap: 16px; }
  .site-header nav a:not(:last-child) { display: none; }
  .hero { display: block; padding-block: 58px 52px; }
  .hero-copy { padding-right: 0; }
  h1 { font-size: clamp(3.6rem, 17vw, 5.8rem); }
  .hero-copy > p { font-size: 1.1rem; }
  .panorama { width: 100%; margin: 46px 0 -20px; transform: none; }
  .proof-line { display: block; }
  .proof-line ol { justify-content: space-between; gap: 8px; margin-top: 18px; }
  .story, .history-section { padding-block: 88px; }
  .feature-preview, .chart { padding: 9px; }
  .chart { padding: 20px 12px; }
  .chart-head { padding-inline: 8px; }
  .chart-head > span { display: none; }
  .donut-showcase { grid-template-columns: 1fr; }
  .screenshots-heading { display: block; }
  .screenshots-heading > p { margin-top: 16px; text-align: left; }
  .screenshot-rail { grid-auto-columns: minmax(210px, 72%); gap: 16px; }
  .closing { grid-template-columns: auto 1fr; padding: 30px 8px; }
  .closing img { width: 72px; border-radius: 17px; }
  .closing .button { grid-column: 1 / -1; }
  .site-footer { display: block; padding-block: 36px; }
  .site-footer nav { margin-top: 28px; gap: 18px; }
  .accessibility-list { grid-template-columns: 1fr; }
}

@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  *, *::before, *::after { scroll-behavior: auto !important; transition-duration: 0.01ms !important; }
}
