/* Ourstead's public pages: /welcome, /features, /pricing and the help center at /help.
   Written by hand, no framework. The palette, type and radii are the app's own (web/src/styles.css, the light theme
   and the dark theme), so a visitor who opens the app after reading these pages lands somewhere that looks the same.
   The pages are made by site/build.mjs; this file is the only stylesheet they load. */

@font-face { font-family: 'DM Sans'; font-style: normal; font-weight: 400; font-display: swap; src: url('fonts/dm-sans-latin-400-normal.woff2') format('woff2'); }
@font-face { font-family: 'DM Sans'; font-style: normal; font-weight: 500; font-display: swap; src: url('fonts/dm-sans-latin-500-normal.woff2') format('woff2'); }
@font-face { font-family: 'DM Sans'; font-style: normal; font-weight: 700; font-display: swap; src: url('fonts/dm-sans-latin-700-normal.woff2') format('woff2'); }
@font-face { font-family: 'Fraunces'; font-style: normal; font-weight: 400; font-display: swap; src: url('fonts/fraunces-latin-400-normal.woff2') format('woff2'); }
@font-face { font-family: 'Fraunces'; font-style: italic; font-weight: 400; font-display: swap; src: url('fonts/fraunces-latin-400-italic.woff2') format('woff2'); }
@font-face { font-family: 'Fraunces'; font-style: normal; font-weight: 600; font-display: swap; src: url('fonts/fraunces-latin-600-normal.woff2') format('woff2'); }

:root {
  color-scheme: light dark;
  --canvas: #f4efe4;
  --surface: #fffdf8;
  --sunken: #efe8da;
  --pine: #1f4a3a;
  --pine-strong: #163829;
  --pine-soft: #e4eadb;
  --on-pine: #ffffff;
  --ink: #2b2823;
  --muted: #5f594e;
  --terracotta: #b05a3a;
  /* Small capitals in clay need a step darker than the app's terracotta to clear 4.5:1 on the canvas (5.06:1). */
  --eyebrow: #9e4f33;
  --line: #e6dccb;
  --line-strong: #d6c8b0;
  --attention-bg: #faeee0;
  --attention-line: #efd9bf;
  --amber-fg: #7a561b;
  --hero-band: #1f4a3a;
  --on-hero: #f4efe4;
  --on-hero-soft: rgba(244, 239, 228, 0.86);
  --accent-on-hero: #e7b48f;
  --shadow: 0 6px 20px rgba(74, 56, 28, 0.09), 0 1px 3px rgba(74, 56, 28, 0.05);
  --radius: 14px;
  --radius-lg: 20px;
  --serif: 'Fraunces', Georgia, 'Times New Roman', serif;
  --sans: 'DM Sans', system-ui, -apple-system, 'Segoe UI', Roboto, sans-serif;
  --focus: #b05a3a;
}

@media (prefers-color-scheme: dark) {
  :root {
    --canvas: #12100a;
    --surface: #241d17;
    --sunken: #2c241d;
    --pine: #dc964e;
    --pine-strong: #e8a865;
    --pine-soft: #33271b;
    --on-pine: #1c1610;
    --ink: #f1e8dc;
    --muted: #b0a698;
    --terracotta: #d08a63;
    --eyebrow: #d08a63;
    --line: #3a2f26;
    --line-strong: #4b3e33;
    --attention-bg: #2e2318;
    --attention-line: #4a3826;
    --amber-fg: #dfb87f;
    --hero-band: #1b2a22;
    --on-hero: #f1e8dc;
    --on-hero-soft: rgba(241, 232, 220, 0.84);
    --accent-on-hero: #e7b48f;
    --shadow: 0 4px 16px rgba(0, 0, 0, 0.4);
    --focus: #e7b48f;
  }
}

*, *::before, *::after { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; text-size-adjust: 100%; }
body {
  margin: 0; background: var(--canvas); color: var(--ink);
  font: 400 1.0625rem/1.6 var(--sans);
  overflow-wrap: break-word;
}
img { max-width: 100%; height: auto; display: block; }
a { color: var(--pine); text-underline-offset: 0.18em; }
a:hover { text-decoration-thickness: 2px; }
:focus-visible { outline: 3px solid var(--focus); outline-offset: 2px; border-radius: 4px; }
h1, h2, h3 { font-family: var(--serif); font-weight: 400; letter-spacing: -0.015em; line-height: 1.15; margin: 0 0 0.5em; color: var(--ink); }
h1 { font-size: clamp(2.1rem, 7vw, 3.4rem); }
h2 { font-size: clamp(1.55rem, 4.6vw, 2.2rem); }
h3 { font-size: 1.25rem; }
h1 em, h2 em { font-style: italic; color: var(--terracotta); }
p { margin: 0 0 1em; }
ul, ol { padding-left: 1.3em; margin: 0 0 1em; }
li + li { margin-top: 0.35em; }
strong { font-weight: 700; }
kbd { font: 500 0.85em var(--sans); padding: 1px 6px; border: 1px solid var(--line-strong); border-bottom-width: 2px; border-radius: 6px; background: var(--surface); }

.skip-link { position: absolute; left: 16px; top: -100px; z-index: 10; padding: 10px 16px; border-radius: 999px; background: var(--pine); color: var(--on-pine); font-weight: 500; text-decoration: none; }
.skip-link:focus { top: 12px; }
.sr-only { position: absolute; width: 1px; height: 1px; padding: 0; margin: -1px; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; border: 0; }

.wrap { width: 100%; max-width: 1120px; margin: 0 auto; padding: 0 16px; }
.wrap-narrow { max-width: 760px; }

/* Header */
.site-header { border-bottom: 1px solid var(--line); background: var(--canvas); }
.site-header .wrap { display: grid; grid-template-columns: 1fr auto; grid-template-areas: "brand cta" "nav nav"; align-items: center; gap: 6px 16px; padding-top: 12px; padding-bottom: 8px; }
.site-header .brand { grid-area: brand; }
.site-header .site-nav { grid-area: nav; margin-left: -10px; }
.site-header .nav-cta { grid-area: cta; }
.brand { display: inline-flex; align-items: center; gap: 10px; color: var(--ink); text-decoration: none; font-family: var(--serif); font-weight: 600; font-size: 1.42rem; letter-spacing: -0.02em; }
.brand svg { width: 30px; height: 30px; flex: none; color: var(--pine); }
.site-nav ul { list-style: none; margin: 0; padding: 0; display: flex; flex-wrap: wrap; align-items: center; gap: 4px 6px; }
.site-nav li + li { margin-top: 0; }
.site-nav a { display: inline-flex; align-items: center; min-height: 44px; padding: 0 10px; border-radius: 999px; color: var(--ink); text-decoration: none; font-weight: 500; font-size: 0.98rem; }
.site-nav a:hover { background: var(--pine-soft); }
.site-nav a[aria-current="page"] { color: var(--pine); text-decoration: underline; text-decoration-thickness: 2px; text-underline-offset: 0.3em; }
.nav-cta { display: inline-flex; align-items: center; min-height: 44px; padding: 0 18px; border-radius: 999px; background: var(--pine); color: var(--on-pine); text-decoration: none; font-weight: 500; font-size: 0.98rem; white-space: nowrap; }
.nav-cta:hover { background: var(--pine-strong); }

/* Buttons */
.button { display: inline-flex; align-items: center; justify-content: center; gap: 8px; min-height: 46px; padding: 11px 22px; border-radius: 999px; border: 1px solid transparent; font: 500 1rem var(--sans); text-decoration: none; text-align: center; }
.button-primary { background: var(--pine); color: var(--on-pine); }
.button-primary:hover { background: var(--pine-strong); }
.button-secondary { background: var(--surface); border-color: var(--line-strong); color: var(--ink); }
.button-secondary:hover { background: var(--sunken); }
.button-row { display: flex; flex-wrap: wrap; gap: 12px; margin: 22px 0 0; }
.button svg { width: 18px; height: 18px; flex: none; }

/* Sections */
.section { padding: 56px 0; }
.section-alt { background: var(--surface); border-top: 1px solid var(--line); border-bottom: 1px solid var(--line); }
.section-top-tight { padding-top: 24px; }
.section-head { max-width: 680px; margin-bottom: 28px; }
.eyebrow { font: 700 0.78rem var(--sans); letter-spacing: 0.08em; text-transform: uppercase; color: var(--eyebrow); margin: 0 0 10px; }
.lead { font-size: 1.15rem; color: var(--muted); }
.muted { color: var(--muted); }
.small { font-size: 0.92rem; }

/* Hero */
.hero { padding: 40px 0 48px; }
.hero .wrap { display: grid; gap: 32px; align-items: center; }
.hero-copy p.lead { max-width: 36em; }
.hero-shot { justify-self: center; width: min(100%, 360px); }
.shot { border-radius: 28px; overflow: hidden; box-shadow: var(--shadow); background: var(--sunken); }
.shot-wide { border-radius: var(--radius-lg); }
.hero-note { margin-top: 14px; font-size: 0.92rem; color: var(--muted); }

/* Page heads on inner pages */
.page-head { padding: 40px 0 8px; }
.page-head p.lead { max-width: 40em; }

/* Cards and grids */
.grid { display: grid; gap: 16px; grid-template-columns: 1fr; }
.card { background: var(--surface); border: 1px solid var(--line); border-radius: var(--radius-lg); padding: 22px; }
.section-alt .card { background: var(--canvas); }
.card h3 { margin-bottom: 6px; }
.card p:last-child, .card ul:last-child { margin-bottom: 0; }
.card .icon { width: 40px; height: 40px; border-radius: 12px; display: grid; place-items: center; background: var(--pine-soft); color: var(--pine); margin-bottom: 12px; }
.card .icon svg { width: 22px; height: 22px; }
.card-list { list-style: none; padding: 0; margin: 0; }
.card-list > li { margin: 0; }
.card-list > .card { position: relative; }
.card-link { color: var(--ink); text-decoration: none; }
.card-link::after { content: ''; position: absolute; inset: 0; border-radius: inherit; }
.card-link:hover { text-decoration: underline; }
.card-list > .card:hover { border-color: var(--line-strong); }
@media (max-width: 639px) {
  /* On a phone the cards in a list put their icon beside the heading, so a dozen of them stay a short scroll. */
  .card-list > .card:has(> .icon) { display: grid; grid-template-columns: 40px 1fr; column-gap: 14px; align-items: start; padding: 18px; }
  .card-list > .card:has(> .icon) > .icon { grid-row: span 3; margin-bottom: 0; }
  .card-list > .card:has(> .icon) > h3 { margin-top: 6px; }
}
.plus-feature h3 { display: flex; flex-wrap: wrap; align-items: center; gap: 8px; }
.plus-free { color: var(--muted); font-size: 0.95rem; }
.card a.more { font-weight: 500; }
.tag { display: inline-block; font: 500 0.78rem/1.4 var(--sans); padding: 2px 10px; border-radius: 999px; background: var(--attention-bg); color: var(--amber-fg); border: 1px solid var(--attention-line); vertical-align: middle; white-space: nowrap; }
.tag-plus { background: var(--pine-soft); color: var(--pine); border-color: transparent; }

/* Feature rows with a picture */
.feature-row { display: grid; gap: 24px; align-items: center; padding: 28px 0; border-top: 1px solid var(--line); }
.feature-row:first-of-type { border-top: 0; }
.feature-row .shot { width: min(100%, 320px); justify-self: center; }
.feature-row .shot-wide { width: 100%; }
.feature-row h2 { font-size: clamp(1.45rem, 4vw, 1.9rem); }
.checks { list-style: none; padding: 0; }
.checks li { position: relative; padding-left: 28px; }
.checks li::before { content: ''; position: absolute; left: 2px; top: 0.5em; width: 14px; height: 8px; border-left: 2.5px solid var(--pine); border-bottom: 2.5px solid var(--pine); transform: rotate(-45deg); }

/* How it works */
.steps-list { list-style: none; padding: 0; counter-reset: step; display: grid; gap: 16px; }
.steps-list > li { counter-increment: step; position: relative; padding: 20px 20px 20px 72px; background: var(--surface); border: 1px solid var(--line); border-radius: var(--radius-lg); margin: 0; }
.steps-list > li::before { content: counter(step); position: absolute; left: 20px; top: 18px; width: 36px; height: 36px; border-radius: 50%; background: var(--pine); color: var(--on-pine); font: 600 1.1rem/36px var(--serif); text-align: center; }
.steps-list h3 { margin-bottom: 4px; }
.steps-list p { margin: 0; color: var(--muted); }

/* Band */
.band { background: var(--hero-band); color: var(--on-hero); border-radius: var(--radius-lg); padding: 32px 22px; }
.band h2 { color: var(--on-hero); }
.band h2 em { color: var(--accent-on-hero); }
.band p { color: var(--on-hero-soft); }
.band a { color: var(--on-hero); }
.band .button-primary { background: var(--on-hero); color: #1f4a3a; }
.band .button-primary:hover { background: #ffffff; }
.band .button-secondary { background: transparent; color: var(--on-hero); border-color: var(--on-hero-soft); }
.band .button-secondary:hover { background: rgba(255, 255, 255, 0.1); }

/* Plans */
.plans { display: grid; gap: 16px; }
.plan { background: var(--surface); border: 1px solid var(--line); border-radius: var(--radius-lg); padding: 24px; display: flex; flex-direction: column; }
.plan-featured { border: 2px solid var(--pine); }
.plan h2, .plan h3 { margin-bottom: 4px; }
.price { font-family: var(--serif); font-size: 2.3rem; line-height: 1.1; margin: 8px 0 2px; }
.price span { font-family: var(--sans); font-size: 1rem; color: var(--muted); }
.plan ul { margin-top: 12px; }
.plan .plan-foot { margin-top: auto; padding-top: 12px; }
.after-list { margin-top: 14px; }

/* FAQ */
.faq { display: grid; gap: 10px; }
.faq details { background: var(--surface); border: 1px solid var(--line); border-radius: var(--radius); padding: 0 18px; }
.section-alt .faq details { background: var(--canvas); }
.faq summary { cursor: pointer; padding: 16px 0; font-weight: 500; list-style-position: outside; }
.faq summary::marker { color: var(--pine); }
.faq details[open] summary { border-bottom: 1px solid var(--line); margin-bottom: 12px; }
.faq details > *:not(summary) { margin-bottom: 14px; }

/* Notes and callouts */
.note { background: var(--attention-bg); border: 1px solid var(--attention-line); border-left: 4px solid var(--terracotta); border-radius: var(--radius); padding: 14px 16px; margin: 0 0 20px; }
.note p:last-child { margin-bottom: 0; }
.note-title { font-weight: 700; margin-bottom: 4px; }

/* Help center */
.help-search { margin: 18px 0 8px; }
.help-search label { display: block; font-weight: 500; margin-bottom: 6px; }
.help-search input { width: 100%; max-width: 560px; min-height: 48px; padding: 10px 16px; font: 400 1.05rem var(--sans); color: var(--ink); background: var(--surface); border: 1px solid #8b8374; border-radius: 999px; }
.help-search input::placeholder { color: var(--muted); opacity: 1; }
.help-status { min-height: 1.6em; color: var(--muted); font-size: 0.95rem; margin-top: 6px; }
.topic-grid { display: grid; gap: 16px; }
.topic { background: var(--surface); border: 1px solid var(--line); border-radius: var(--radius-lg); padding: 20px 22px; }
.topic h2 { font-size: 1.35rem; margin-bottom: 10px; }
.topic ul { list-style: none; padding: 0; margin: 0; }
.topic li + li { margin-top: 0; }
.topic li a { display: block; padding: 10px 0; border-top: 1px solid var(--line); text-decoration: none; font-weight: 500; }
.topic li:first-child a { border-top: 0; }
.topic li a:hover span.t { text-decoration: underline; }
.topic li a span.s { display: block; font-weight: 400; font-size: 0.9rem; color: var(--muted); }
.topic li a .tag { margin-left: 4px; font-weight: 500; }
.topic[hidden], .topic li[hidden] { display: none; }

.breadcrumbs { font-size: 0.92rem; margin: 28px 0 10px; color: var(--muted); }
.breadcrumbs ol { list-style: none; padding: 0; margin: 0; display: flex; flex-wrap: wrap; gap: 4px; }
.breadcrumbs li + li { margin-top: 0; }
.breadcrumbs li + li::before { content: '›'; margin: 0 6px 0 2px; color: var(--muted); }
.breadcrumbs a { display: inline-block; padding: 10px 0; }
.breadcrumbs li { display: inline-flex; align-items: center; }
.article { padding-bottom: 48px; }
.article h1 { font-size: clamp(1.9rem, 6vw, 2.6rem); margin-bottom: 10px; }
.article .summary { font-size: 1.15rem; color: var(--muted); margin-bottom: 24px; }
.plan-line { display: flex; flex-wrap: wrap; align-items: center; gap: 8px; margin: -8px 0 20px; color: var(--muted); }
.article h2 { font-size: 1.45rem; margin: 32px 0 10px; }
.article ol.steps { padding-left: 0; list-style: none; counter-reset: s; }
.article ol.steps > li { counter-increment: s; position: relative; padding: 2px 0 2px 44px; margin: 0 0 14px; }
.article ol.steps > li::before { content: counter(s); position: absolute; left: 0; top: 0; width: 30px; height: 30px; border-radius: 50%; background: var(--pine-soft); color: var(--pine); font: 700 0.95rem/30px var(--sans); text-align: center; }
.article .tips { background: var(--surface); border: 1px solid var(--line); border-radius: var(--radius-lg); padding: 18px 20px; margin: 28px 0; }
.article .tips h2 { margin-top: 0; font-size: 1.2rem; }
.article .tips ul { margin-bottom: 0; }
.related { border-top: 1px solid var(--line); margin-top: 32px; padding-top: 20px; }
.related h2 { font-size: 1.2rem; margin-top: 0; }
.related ul { list-style: none; padding: 0; }
.related li + li { margin-top: 0; }
.related a { display: inline-block; padding: 10px 0; }
.still-stuck { margin-top: 28px; color: var(--muted); }

/* Footer */
.site-footer { border-top: 1px solid var(--line); padding: 36px 0 44px; margin-top: 24px; color: var(--muted); font-size: 0.95rem; }
.footer-grid { display: grid; gap: 24px; grid-template-columns: 1fr 1fr; }
.footer-grid h2 { font: 700 0.78rem var(--sans); letter-spacing: 0.08em; text-transform: uppercase; color: var(--muted); margin-bottom: 10px; }
.footer-grid ul { list-style: none; padding: 0; margin: 0; }
.footer-grid li + li { margin-top: 0; }
.footer-grid a { display: inline-block; padding: 10px 0; color: var(--ink); text-decoration: none; }
.footer-grid a:hover { text-decoration: underline; }
.footer-brand { grid-column: 1 / -1; }
.footer-grid .footer-brand .brand { display: inline-flex; padding: 0; }
.footer-legal { margin-top: 28px; font-size: 0.88rem; }

@media (min-width: 640px) {
  .grid-2 { grid-template-columns: repeat(2, 1fr); }
  .grid-3 { grid-template-columns: repeat(2, 1fr); }
  .plans { grid-template-columns: repeat(2, 1fr); }
  .topic-grid { grid-template-columns: repeat(2, 1fr); }
  .footer-grid { grid-template-columns: 2fr 1fr 1fr 1fr; }
  .footer-brand { grid-column: auto; }
  .site-header .wrap { grid-template-columns: auto 1fr auto; grid-template-areas: "brand nav cta"; padding-top: 14px; padding-bottom: 14px; }
  .site-header .site-nav { justify-self: end; margin-left: 0; }
  .band { padding: 44px 40px; }
}
@media (min-width: 900px) {
  .hero { padding: 64px 0 72px; }
  .hero .wrap { grid-template-columns: 1.15fr 0.85fr; gap: 48px; }
  .grid-3 { grid-template-columns: repeat(3, 1fr); }
  .feature-row { grid-template-columns: 1fr 1fr; gap: 48px; padding: 44px 0; }
  .feature-row.flip .shot { order: -1; }
  .section { padding: 80px 0; }
}

@media (prefers-reduced-motion: no-preference) {
  .button, .site-nav a { transition: background-color 0.15s ease; }
}
@media print {
  .site-header nav, .site-footer, .skip-link, .help-search { display: none; }
  body { background: #fff; color: #000; }
}

/* The example shopping list on /features, drawn like the app's own list. */
.example-list { justify-self: center; width: min(100%, 340px); padding: 20px 22px; box-shadow: var(--shadow); }
.example-list p { margin: 0; }
.example-list-title { font: 400 1.35rem/1.2 var(--serif); display: flex; align-items: center; justify-content: space-between; gap: 8px; margin-bottom: 8px !important; }
.example-aisle { font: 700 0.74rem var(--sans); letter-spacing: 0.08em; text-transform: uppercase; color: var(--muted); margin-top: 14px !important; padding-bottom: 6px; border-bottom: 1px solid var(--line); }
.example-item { display: flex; align-items: center; gap: 12px; padding: 9px 0; border-bottom: 1px solid var(--line); }
.example-item .muted { margin-left: auto; font-size: 0.9rem; }
.example-item .tick { width: 20px; height: 20px; border-radius: 50%; border: 1.5px solid var(--muted); flex: none; }
