/* The look of the public site's plain pages (src/site), matched to the home page in src/client/screens/Landing.tsx.
   Bump CSS_VERSION in src/site/layout.ts after a change. */
:root { --ink: #111111; --butter: #ffe04a; --butter-tint: #fff4bf; --mist: #f6f6f4; --stone: #55575f; --line: #e2e2de; --warm: #e9e4da; }
* { box-sizing: border-box; }
html { scroll-padding-top: 88px; }
body { margin: 0; background: #fff; color: var(--ink); font: 17px/1.55 "Archivo", "Helvetica Neue", Helvetica, Arial, sans-serif; -webkit-font-smoothing: antialiased; }
a { color: var(--ink); }
img { display: block; max-width: 100%; }
.wrap { max-width: 1180px; margin: 0 auto; padding-left: 20px; padding-right: 20px; }
@media (min-width: 768px) { .wrap { padding-left: 32px; padding-right: 32px; } }
.skip { position: absolute; left: -9999px; top: 8px; z-index: 50; padding: 10px 16px; border-radius: 999px; background: var(--ink); color: #fff; font-weight: 700; }
.skip:focus { left: 8px; }
.sr { position: absolute; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); }
:focus-visible { outline: 3px solid var(--ink); outline-offset: 3px; }

/* Header, with a menu on phones. */
header { position: sticky; top: 0; z-index: 20; background: rgba(255, 255, 255, 0.92); backdrop-filter: blur(8px); -webkit-backdrop-filter: blur(8px); }
nav.wrap { position: relative; display: flex; align-items: center; gap: 24px; height: 64px; }
.wordmark { font-size: 26px; font-weight: 800; font-stretch: 118%; letter-spacing: -0.045em; line-height: 1; white-space: nowrap; text-decoration: none; color: var(--ink); }
.wordmark .i { display: inline-grid; }
.wordmark .i > span { grid-area: 1 / 1; }
.wordmark .i > span:first-child { color: var(--butter); }
nav .links { display: none; gap: 24px; margin-left: 16px; font-size: 15px; font-weight: 700; }
nav .links a, .menu .sheet a { text-decoration: none; }
nav .links a:hover, nav .links a[aria-current] { text-decoration: underline; text-underline-offset: 6px; text-decoration-thickness: 2px; }
nav .cta { margin-left: auto; }
.menu summary { display: flex; flex-direction: column; justify-content: center; gap: 6px; width: 44px; height: 44px; padding: 0 11px; cursor: pointer; list-style: none; border-radius: 999px; background: var(--mist); }
.menu summary::-webkit-details-marker { display: none; }
.menu summary span { display: block; height: 2px; border-radius: 2px; background: var(--ink); transition: transform 0.2s; }
.menu[open] summary span:first-child { transform: translateY(4px) rotate(45deg); }
.menu[open] summary span:last-child { transform: translateY(-4px) rotate(-45deg); }
.menu .sheet { position: absolute; top: 64px; left: 0; right: 0; display: flex; flex-direction: column; padding: 8px 20px 20px; background: #fff; box-shadow: 0 12px 24px rgba(0, 0, 0, 0.08); }
.menu .sheet a { padding: 14px 0; border-bottom: 1px solid var(--line); font-size: 20px; font-weight: 800; }
.menu .sheet a[aria-current] { text-decoration: underline; text-underline-offset: 6px; }
@media (min-width: 768px) { nav .links { display: flex; } .menu { display: none; } }
@media (max-width: 420px) { nav.wrap { gap: 8px; } }

/* Buttons. */
.cta { display: inline-flex; align-items: center; justify-content: center; gap: 8px; height: 56px; padding: 0 28px; border-radius: 999px; font-size: 17px; font-weight: 800; text-decoration: none; white-space: nowrap; transition: transform 0.15s; }
.cta:active { transform: scale(0.98); }
.cta.butter { background: var(--butter); color: var(--ink); }
.cta.ink { background: var(--ink); color: #fff; }
.cta.ghost { background: var(--mist); color: #8a8c93; cursor: default; }
.cta.small { height: 44px; padding: 0 20px; font-size: 15px; }
.cta.small svg { display: none; }
.more { display: inline-flex; align-items: center; gap: 4px; font-weight: 800; text-decoration: underline; text-underline-offset: 4px; }
.more svg { width: 16px; }

/* Type. */
.eyebrow { font-size: 12px; font-weight: 700; letter-spacing: 0.16em; text-transform: uppercase; color: var(--stone); }
.display { font-weight: 800; font-stretch: 115%; letter-spacing: -0.03em; line-height: 1; margin: 16px 0 0; font-size: 44px; text-wrap: balance; }
.display.small { font-size: 38px; }
@media (min-width: 768px) { .display { font-size: 68px; } .display.small { font-size: 52px; } }
.h2 { margin: 0 0 24px; font-size: 30px; font-weight: 800; font-stretch: 112%; letter-spacing: -0.02em; line-height: 1.1; }
@media (min-width: 768px) { .h2 { font-size: 38px; } }
.lede { margin: 20px 0 0; max-width: 680px; font-size: 19px; line-height: 1.45; color: var(--stone); text-wrap: pretty; }
@media (min-width: 768px) { .lede { font-size: 21px; } }
.hero { padding-top: 48px; padding-bottom: 40px; }
.hero.center { text-align: center; }
.hero.center .lede { margin-left: auto; margin-right: auto; }
@media (min-width: 768px) { .hero { padding-top: 80px; padding-bottom: 56px; } }

/* Section links under a page title. */
.jump { display: flex; gap: 8px; overflow-x: auto; padding-bottom: 8px; scrollbar-width: none; }
.jump::-webkit-scrollbar { display: none; }
.jump a { flex: none; height: 44px; display: inline-flex; align-items: center; padding: 0 18px; border-radius: 999px; background: var(--mist); font-size: 15px; font-weight: 700; text-decoration: none; }
.jump a:hover { background: var(--ink); color: #fff; }

/* Before and after with a drag handle. */
.compare { --at: 50%; position: relative; overflow: hidden; aspect-ratio: 4 / 5; background: var(--warm); user-select: none; -webkit-user-select: none; }
.compare img { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; }
.compare img.before { clip-path: inset(0 calc(100% - var(--at)) 0 0); }
.compare .line { position: absolute; top: 0; bottom: 0; left: var(--at); width: 3px; margin-left: -1.5px; background: #fff; pointer-events: none; }
.compare .line span { position: absolute; top: 50%; left: 50%; display: flex; align-items: center; justify-content: center; width: 44px; height: 44px; margin: -22px 0 0 -22px; border-radius: 999px; background: #fff; font-weight: 800; font-size: 15px; box-shadow: 0 4px 16px rgba(0, 0, 0, 0.2); }
.compare .tag { position: absolute; bottom: 14px; padding: 6px 12px; border-radius: 999px; font-size: 11px; font-weight: 700; letter-spacing: 0.14em; text-transform: uppercase; pointer-events: none; }
.compare .tag.b { left: 14px; background: rgba(17, 17, 17, 0.8); color: #fff; }
.compare .tag.a { right: 14px; background: #fff; }
.compare input { position: absolute; inset: 0; width: 100%; height: 100%; margin: 0; opacity: 0; cursor: ew-resize; }

/* Product chips. */
.chips { display: flex; flex-wrap: wrap; gap: 8px; margin: 0; padding: 0; list-style: none; }
.chips li { display: flex; align-items: center; gap: 10px; padding: 5px 16px 5px 5px; border-radius: 999px; background: var(--mist); font-size: 15px; font-weight: 700; }
.chips img { width: 40px; height: 40px; border-radius: 999px; object-fit: contain; background: #fff; }

/* Grids and cards. */
.grid { display: grid; gap: 20px; }
@media (min-width: 640px) { .grid { grid-template-columns: 1fr 1fr; } }
@media (min-width: 1024px) { .grid { grid-template-columns: 1fr 1fr 1fr; } }
.card { display: flex; flex-direction: column; overflow: hidden; border-radius: 24px; background: #fff; box-shadow: 0 10px 30px rgba(0, 0, 0, 0.07); text-decoration: none; }
.card .body { display: flex; flex-direction: column; gap: 10px; padding: 20px; }
.card h3 { margin: 0; font-size: 20px; font-weight: 800; }
.card p { margin: 0; font-size: 15px; line-height: 1.45; color: var(--stone); }
.group { padding-top: 40px; padding-bottom: 24px; }

/* Use cases: picture and words side by side, alternating. */
.cases { display: flex; flex-direction: column; gap: 56px; padding-top: 40px; padding-bottom: 80px; }
.case { display: grid; gap: 24px; align-items: center; }
.case .compare { border-radius: 28px; box-shadow: 0 20px 60px rgba(0, 0, 0, 0.12); }
.case h2 { margin: 8px 0 12px; font-size: 32px; font-weight: 800; font-stretch: 112%; letter-spacing: -0.02em; line-height: 1.05; }
.case p { margin: 0; font-size: 18px; line-height: 1.5; color: var(--stone); }
.case h3 { margin: 24px 0 10px; font-size: 13px; font-weight: 700; letter-spacing: 0.14em; text-transform: uppercase; color: var(--stone); }
.case .chips { margin-top: 20px; }
@media (min-width: 900px) {
  .cases { gap: 96px; }
  .case { grid-template-columns: 1fr 1fr; gap: 64px; }
  .case.flip .compare { order: 2; }
  .case h2 { font-size: 44px; }
}
.ticks { margin: 0; padding: 0; list-style: none; }
.ticks li { display: flex; gap: 10px; align-items: flex-start; padding: 5px 0; color: var(--stone); }
.ticks svg { flex: none; margin-top: 3px; color: var(--ink); }

/* Guides. */
.guides .pic { aspect-ratio: 3 / 2; background: var(--warm); overflow: hidden; }
.guides .pic img { width: 100%; height: 100%; object-fit: cover; transition: transform 0.4s; }
.guide:hover .pic img { transform: scale(1.03); }
.guide .more { margin-top: 4px; font-size: 15px; }
.guides { padding-bottom: 72px; }
.article { max-width: 820px; padding-top: 32px; padding-bottom: 48px; }
.crumb { display: inline-block; margin-bottom: 24px; font-weight: 700; text-decoration: none; }
.cover { margin: 32px 0 8px; aspect-ratio: 16 / 9; overflow: hidden; border-radius: 24px; background: var(--warm); }
.cover img { width: 100%; height: 100%; object-fit: cover; }
.prose { font-size: 18px; line-height: 1.65; color: #2c2d33; }
.prose h2 { margin: 40px 0 8px; font-size: 26px; font-weight: 800; letter-spacing: -0.01em; line-height: 1.2; color: var(--ink); }
.prose p { margin: 12px 0 0; }
.prose ul, .prose ol { margin: 12px 0 0; padding-left: 24px; }
.prose li + li { margin-top: 6px; }
.prose strong { color: var(--ink); }
.tips, .boards { display: grid; grid-template-columns: 1fr 1fr; gap: 12px; margin: 24px 0 8px; }
@media (min-width: 640px) { .tips { grid-template-columns: repeat(4, 1fr); } .boards { grid-template-columns: repeat(3, 1fr); } }
.tip, .boards figure { margin: 0; overflow: hidden; border-radius: 16px; background: var(--warm); }
.tip img { aspect-ratio: 4 / 3; width: 100%; object-fit: cover; }
.tip figcaption { padding: 8px; text-align: center; font-size: 14px; font-weight: 700; color: #fff; background: var(--ink); }
.tip.bad figcaption { background: #b42318; }
.boards figure { background: transparent; }
.boards img { aspect-ratio: 3 / 2; width: 100%; object-fit: cover; border-radius: 14px; background: var(--warm); }
.boards figcaption { display: flex; flex-direction: column; padding-top: 8px; font-size: 14px; line-height: 1.4; color: var(--stone); }
.boards strong { font-size: 16px; }
.next { display: flex; flex-wrap: wrap; align-items: center; gap: 20px; margin-top: 48px; padding-top: 32px; border-top: 1px solid var(--line); }
.more-guides { padding-top: 24px; }

/* Pricing. */
.plans { display: grid; gap: 20px; max-width: 940px; padding-bottom: 72px; }
@media (min-width: 768px) { .plans { grid-template-columns: 2fr 3fr; gap: 24px; align-items: stretch; } }
.plan { display: flex; flex-direction: column; gap: 16px; padding: 32px; border-radius: 28px; border: 1.5px solid var(--line); background: #fff; }
/* Plus: the plan to look at, wider and on Butter. */
.plan.featured { padding: 40px; border: 2px solid var(--ink); background: var(--butter); box-shadow: 0 24px 60px rgba(0, 0, 0, 0.12); }
.plan.featured p, .plan.featured .price small { color: rgba(17, 17, 17, 0.72); }
.plan.featured .soon { background: var(--ink); color: #fff; }
.plan.featured .cta.ghost { border-color: var(--ink); color: var(--ink); background: rgba(255, 255, 255, 0.5); }
.plan.featured .ticks { border-top-color: rgba(17, 17, 17, 0.18); }
@media (min-width: 768px) { .plan .ticks.two { display: grid; grid-template-columns: 1fr 1fr; gap: 10px 20px; } }
.plan .name { display: flex; align-items: center; gap: 8px; font-size: 20px; font-weight: 800; }
.plan .soon { padding: 4px 10px; border-radius: 999px; background: var(--butter-tint); font-size: 12px; font-weight: 700; }
.plan .price { font-weight: 800; font-stretch: 115%; letter-spacing: -0.03em; line-height: 1; font-size: 56px; }
.plan .price small { font-size: 18px; font-weight: 700; color: var(--stone); letter-spacing: 0; }
.plan p { margin: 0; color: var(--stone); }
.plan .ticks { padding-top: 8px; border-top: 1px solid var(--line); }
.included { max-width: 940px; padding-bottom: 72px; }
.grid.three { gap: 16px; }
.feature { padding: 24px; border-radius: 20px; background: var(--mist); }
.feature .dot { display: inline-flex; width: 40px; height: 40px; align-items: center; justify-content: center; border-radius: 999px; background: var(--butter); }
.feature h3 { margin: 14px 0 6px; font-size: 19px; font-weight: 800; }
.feature p { margin: 0; font-size: 15px; line-height: 1.45; color: var(--stone); }
.compare-plans { max-width: 940px; padding-bottom: 72px; }
.compare-plans table { width: 100%; border-collapse: collapse; font-size: 16px; }
.compare-plans th, .compare-plans td { padding: 16px 8px; border-bottom: 1px solid var(--line); text-align: left; }
.compare-plans thead th { font-size: 14px; font-weight: 800; letter-spacing: 0.08em; text-transform: uppercase; }
.compare-plans tbody th { font-weight: 700; }
.compare-plans td { width: 28%; color: var(--stone); }
.compare-plans td svg { color: var(--ink); }
.notes { max-width: 940px; display: grid; gap: 16px; padding-bottom: 80px; }
@media (min-width: 768px) { .notes { grid-template-columns: repeat(3, 1fr); gap: 24px; } }
.notes div { padding-top: 16px; border-top: 2px solid var(--ink); }
.notes h3 { margin: 0 0 6px; font-size: 19px; font-weight: 800; }
.notes p { margin: 0; color: var(--stone); font-size: 16px; }

/* Legal. */
.doc { max-width: 760px; padding-bottom: 80px; }
.doc section { padding: 28px 0; border-top: 1px solid var(--line); }
.doc h2 { margin: 0 0 10px; font-size: 22px; font-weight: 800; letter-spacing: -0.01em; }
.doc p, .doc li { margin: 0; color: var(--stone); }
.doc ul { margin: 0; padding-left: 20px; }
.doc li + li { margin-top: 6px; }
.doc strong { color: var(--ink); }

/* Closing band and footer. */
.band { background: var(--butter); }
.band .wrap { display: flex; flex-direction: column; align-items: flex-start; gap: 24px; padding-top: 64px; padding-bottom: 64px; }
.band h2 { margin: 0; max-width: 640px; font-size: 40px; font-weight: 800; font-stretch: 115%; letter-spacing: -0.03em; line-height: 1; }
.band .stack { display: flex; flex-direction: column; align-items: flex-start; gap: 12px; }
.band .stack span { font-size: 14px; font-weight: 700; color: rgba(17, 17, 17, 0.7); }
@media (min-width: 768px) { .band .wrap { flex-direction: row; align-items: center; justify-content: space-between; padding-top: 80px; padding-bottom: 80px; } .band h2 { font-size: 60px; } }
footer { background: var(--ink); color: #fff; }
footer .wrap { display: flex; flex-wrap: wrap; justify-content: space-between; gap: 40px; padding-top: 56px; padding-bottom: max(env(safe-area-inset-bottom), 48px); }
footer .wordmark { color: #fff; font-size: 24px; }
footer .tag { display: block; margin-top: 10px; font-size: 14px; color: rgba(255, 255, 255, 0.6); }
footer .cols { display: flex; flex-wrap: wrap; align-items: center; gap: 12px 24px; }
footer .cols a { color: #fff; text-decoration: none; font-size: 15px; font-weight: 700; }
footer .cols a:hover { text-decoration: underline; }

@media (prefers-reduced-motion: reduce) { *, *::before, *::after { transition: none !important; animation: none !important; } }

/* Help: three picture steps, then questions that open in place. */
.steps { display: grid; gap: 16px; padding-bottom: 56px; }
@media (min-width: 768px) { .steps { grid-template-columns: repeat(3, 1fr); gap: 20px; } }
.step .pic { position: relative; aspect-ratio: 4 / 3; background: var(--warm); }
.step .pic img { position: absolute; inset: 0; display: block; width: 100%; height: 100%; object-fit: cover; }
.step .num { position: absolute; top: 14px; left: 14px; display: flex; width: 40px; height: 40px; align-items: center; justify-content: center; border-radius: 999px; background: var(--butter); font-size: 18px; font-weight: 800; }
.help-faq { max-width: 820px; padding-bottom: 56px; }
.help-faq details { border-bottom: 1px solid var(--line); padding: 20px 0; }
.help-faq summary { display: flex; cursor: pointer; list-style: none; align-items: center; justify-content: space-between; gap: 16px; font-size: 19px; font-weight: 800; }
.help-faq summary::-webkit-details-marker { display: none; }
.help-faq .plus { display: flex; flex: none; width: 32px; height: 32px; align-items: center; justify-content: center; border-radius: 999px; background: var(--mist); font-size: 20px; transition: transform 0.2s; }
.help-faq details[open] .plus { transform: rotate(45deg); }
.help-faq .answer { padding-top: 12px; }
.help-faq .answer p { margin: 0 0 10px; color: var(--stone); line-height: 1.55; }
.help-faq .answer a { color: var(--ink); font-weight: 700; }
.still { margin-top: 32px; color: var(--stone); }
.still a { color: var(--ink); font-weight: 700; }
@media (prefers-reduced-motion: reduce) { .help-faq .plus { transition: none; } }

/* Visualizer pages: the button under the hero, the sizes list and its sources. */
.hero-cta { display: flex; flex-direction: column; align-items: flex-start; gap: 12px; margin-top: 28px; }
.hero-cta span { font-size: 14px; font-weight: 700; color: var(--stone); }
@media (min-width: 768px) { .hero-cta { flex-direction: row; align-items: center; gap: 20px; } }
.prose .ticks { padding-left: 0; }
.prose .ticks li { color: #2c2d33; }
.prose h3 { margin: 32px 0 4px; font-size: 15px; font-weight: 700; letter-spacing: 0.1em; text-transform: uppercase; color: var(--stone); }
.prose a { color: var(--ink); font-weight: 700; }
.sources { font-size: 15px; color: var(--stone); }
.sources a { font-weight: 600; }

/* Free tools: the calculator form and its result. */
.calc { display: grid; gap: 20px; padding-bottom: 32px; }
@media (min-width: 768px) { .calc { grid-template-columns: minmax(0, 440px) minmax(0, 440px); align-items: start; } }
.calc-form { display: grid; gap: 14px; padding: 24px; border-radius: 20px; background: var(--mist); }
.calc-field { display: grid; gap: 6px; font-size: 15px; font-weight: 700; }
.calc-input { display: flex; align-items: center; gap: 10px; }
.calc-input input { flex: 1; min-width: 0; height: 52px; padding: 0 16px; border: 2px solid var(--line); border-radius: 14px; background: #fff; font: inherit; font-size: 18px; color: var(--ink); }
.calc-input select { flex: 1; min-width: 0; height: 52px; padding: 0 12px; border: 2px solid var(--line); border-radius: 14px; background: #fff; font: inherit; font-size: 17px; color: var(--ink); }
.calc-input select:focus { border-color: var(--ink); outline: none; }
.calc-input input:focus { border-color: var(--ink); outline: none; }
.calc-input em { width: 22px; font-style: normal; color: var(--stone); }
.calc-out { padding: 24px; border-radius: 20px; background: var(--butter-tint); }
.calc-out p { margin: 8px 0 0; font-size: 15px; color: var(--stone); }
.calc-big { font-size: 20px; font-weight: 700; }
.calc-big span { display: block; font-size: 44px; font-weight: 800; letter-spacing: -0.02em; line-height: 1.1; }
.calc-rows { margin: 18px 0 0; padding: 0; list-style: none; }
.calc-rows li { display: flex; flex-direction: column; gap: 2px; padding: 12px 0; border-top: 1px solid rgba(17, 17, 17, 0.12); font-size: 16px; }
.calc-rows b { font-size: 13px; letter-spacing: 0.08em; text-transform: uppercase; color: var(--stone); }
.calc-next .feature { max-width: 900px; }
.calc-next .hero-cta { margin-top: 18px; }
.more-link { font-size: 15px; font-weight: 700; }
