/* pocketpan.app. Tactile, exact, warm: a kitchen counter, printed appliance labels, paper
   recipe cards. One warm neutral ramp, one terracotta accent (the app's primary), a mono for
   labels and figures. Signature: the pilot-light dot, a stove's on-indicator. */

:root {
  --bg: #f7f4ee;
  --card: #fdfbf7;
  --raised: #efe9df;
  --enamel: #b4553d;
  --ring: rgb(255 240 228 / 0.22);
  --ink: #1f1b16;
  --ink-2: #5e554a;
  --ink-3: #6f675b;
  --line: rgb(31 27 22 / 0.10);
  --line-strong: rgb(31 27 22 / 0.16);
  --accent: #a63f29;
  --accent-ink: #fff8f2;
  --paper: #fbf6e8;
  --paper-rule: rgb(70 110 160 / 0.16);
  --paper-ink: #2d3a5c;
  --shadow: 0 1px 2px rgb(31 27 22 / 0.06), 0 12px 32px -12px rgb(31 27 22 / 0.18);
  --serif: ui-serif, "New York", "Iowan Old Style", Georgia, serif;
  --sans: -apple-system, BlinkMacSystemFont, system-ui, "Segoe UI", Roboto, sans-serif;
  --mono: ui-monospace, "SF Mono", SFMono-Regular, Menlo, Consolas, monospace;
  --hand: "Bradley Hand", "Segoe Print", "Noteworthy", cursive;
  --ease: cubic-bezier(0.22, 1, 0.36, 1);
  color-scheme: light dark;
}

@media (prefers-color-scheme: dark) {
  :root {
    --bg: #161513;
    --card: #1c1a18;
    --raised: #262421;
    --enamel: #6b3426;
    --ring: rgb(255 220 200 / 0.12);
    --ink: #efe9de;
    --ink-2: #aaa398;
    --ink-3: #948d82;
    --line: rgb(239 233 222 / 0.09);
    --line-strong: rgb(239 233 222 / 0.15);
    --accent: #ffac8d;
    --accent-ink: #2a140c;
    --paper: #e6ddc8;
    --paper-rule: rgb(70 110 160 / 0.20);
    --paper-ink: #26314d;
    --shadow: 0 1px 2px rgb(0 0 0 / 0.3), 0 16px 40px -16px rgb(0 0 0 / 0.6);
  }
}

* { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; }
body {
  margin: 0;
  background: var(--bg);
  color: var(--ink);
  font: 400 16px/1.6 var(--sans);
  -webkit-font-smoothing: antialiased;
}
a { color: inherit; text-underline-offset: 3px; text-decoration-thickness: 1px; }
a:focus-visible, summary:focus-visible, button:focus-visible {
  outline: 2px solid var(--accent);
  outline-offset: 3px;
  border-radius: 4px;
}
img { display: block; max-width: 100%; }
[hidden] { display: none !important; }

/* Layout */
.page { max-width: 1120px; margin: 0 auto; padding: 0 32px; }
.narrow { max-width: 720px; }
@media (max-width: 640px) { .page { padding: 0 20px; } }

/* Header */
.site-header {
  display: flex; align-items: center; justify-content: space-between;
  height: 72px; gap: 16px;
}
.brand {
  display: inline-flex; align-items: center; gap: 10px;
  font: 500 17px/1 var(--sans); text-decoration: none; color: var(--ink);
}
.brand img { width: 28px; height: 28px; border-radius: 7px; }
.site-nav { display: flex; align-items: center; gap: 24px; font-size: 15px; }
.site-nav a { color: var(--ink-2); text-decoration: none; transition: color 140ms var(--ease); }
.site-nav a:hover { color: var(--ink); }

/* Signature: the pilot light */
.pilot {
  display: inline-block; width: 8px; height: 8px; border-radius: 50%;
  background: var(--accent);
  box-shadow: inset 0 0 0 1px rgb(0 0 0 / 0.12);
  flex: none;
}

/* Labels and figures */
.label {
  font: 400 12px/16px var(--mono); color: var(--ink-3); letter-spacing: 0.01em;
}
.figure { font-family: var(--mono); font-variant-numeric: tabular-nums; }

/* Buttons and links */
.store-badge { display: inline-block; line-height: 0; border-radius: 8px; }
.store-badge img { height: 48px; width: auto; }
.text-link {
  display: inline-flex; align-items: center; gap: 6px; height: 48px;
  color: var(--ink); font-weight: 500; text-decoration: none;
}
.text-link span { transition: transform 160ms var(--ease); }
.text-link:hover span { transform: translateX(3px); }

/* Hero */
.hero {
  display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 1.08fr);
  align-items: center; gap: 64px;
  min-height: min(760px, calc(100vh - 72px)); padding: 40px 0 64px;
}
.hero h1 {
  font: 400 clamp(40px, 5.4vw, 60px)/1.04 var(--serif);
  letter-spacing: -0.025em; margin: 16px 0 20px; text-wrap: balance;
}
.hero .lede { font-size: 19px; line-height: 30px; color: var(--ink-2); max-width: 34rem; margin: 0 0 32px; }
.hero .actions { display: flex; flex-wrap: wrap; align-items: center; gap: 12px 28px; }
.invite {
  display: flex; gap: 10px; align-items: baseline; margin: 0 0 24px; padding: 12px 16px;
  background: var(--card); border: 1px solid var(--line); border-radius: 10px;
  font-size: 15px; color: var(--ink-2); max-width: 34rem;
}
.invite .pilot { transform: translateY(-1px); }

/* The moment: a handwritten card on the counter becomes a PocketPan recipe */
.counter { /* terracotta enamel, like the app icon's stovetop, with faint burner rings */
  position: relative; aspect-ratio: 1 / 0.92; border-radius: 20px;
  background-color: var(--enamel);
  background-image:
    radial-gradient(circle at 40% 60%, transparent 0 21%, var(--ring) 21% calc(21% + 1px), transparent calc(21% + 1px) 33%, var(--ring) 33% calc(33% + 1px), transparent calc(33% + 1px) 46%, var(--ring) 46% calc(46% + 1px), transparent calc(46% + 1px));
  box-shadow: inset 0 1px 0 rgb(255 255 255 / 0.14), inset 0 0 0 1px rgb(0 0 0 / 0.06);
  overflow: hidden;
}
.recipe-card-paper {
  position: absolute; left: 5%; top: 8%; width: 60%; aspect-ratio: 5 / 3.2;
  background-image:
    linear-gradient(to bottom, transparent 0 44px, rgb(185 68 41 / 0.4) 44px 45px, transparent 45px),
    repeating-linear-gradient(to bottom, transparent 0 21px, var(--paper-rule) 21px 22px);
  background-color: var(--paper);
  border-radius: 6px; padding: 14px 7% 12px 9%;
  transform: rotate(-5deg);
  box-shadow: 0 1px 1px rgb(40 12 4 / 0.12), 0 20px 32px -16px rgb(40 12 4 / 0.55);
  color: var(--paper-ink); font: 400 clamp(12px, 1.3vw, 15px)/22px var(--hand);
}
.recipe-card-paper .title { font-size: 1.3em; line-height: 22px; margin-bottom: 11px; }
.recipe-card-paper p { margin: 0; white-space: nowrap; overflow: hidden; text-overflow: clip; }

.app-card {
  position: absolute; right: 6%; bottom: 7%; width: 54%;
  background: var(--card); border-radius: 18px; border: 1px solid var(--line);
  box-shadow: 0 1px 2px rgb(40 12 4 / 0.12), 0 24px 48px -20px rgb(40 12 4 / 0.6); padding: 20px;
}
.app-card .from { display: flex; align-items: center; gap: 8px; margin-bottom: 12px; }
.app-card h2 { font: 400 22px/1.15 var(--serif); margin: 0 0 4px; letter-spacing: -0.01em; }
.app-card .meta { margin-bottom: 16px; }
.ingredients { list-style: none; margin: 0 0 16px; padding: 0; font-size: 14px; }
.ingredients li {
  display: grid; grid-template-columns: 64px 1fr; gap: 8px;
  padding: 6px 0; border-top: 1px solid var(--line);
}
.ingredients li:last-child { border-bottom: 1px solid var(--line); }
.ingredients .qty { font: 400 13px/20px var(--mono); font-variant-numeric: tabular-nums; color: var(--ink-2); }
.step { display: grid; grid-template-columns: 24px 1fr; gap: 10px; font-size: 14px; line-height: 20px; }
.step .n {
  width: 24px; height: 24px; border-radius: 50%; background: var(--accent);
  display: grid; place-items: center; font: 500 12px/1 var(--mono); color: var(--accent-ink);
}
.timer {
  display: inline-flex; align-items: center; gap: 8px; margin-top: 10px; height: 32px; padding: 0 12px;
  border-radius: 8px; background: var(--raised); border: 1px solid var(--line);
  font: 400 13px/1 var(--mono); font-variant-numeric: tabular-nums; color: var(--ink);
}

/* Spec plate: what it does, set like an appliance's rating plate */
.section { padding: 96px 0; border-top: 1px solid var(--line); }
.section-head { display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 2fr); gap: 64px; }
.section-head h2 { font: 400 36px/1.12 var(--serif); letter-spacing: -0.015em; margin: 8px 0 0; text-wrap: balance; }
.plate {
  background: var(--card); border: 1px solid var(--line); border-radius: 16px; overflow: hidden;
}
.plate-row {
  display: grid; grid-template-columns: 136px 1fr; gap: 24px; padding: 20px 24px;
  border-top: 1px solid var(--line);
}
.plate-row:first-child { border-top: 0; }
.plate-row .label { padding-top: 3px; }
.plate-row p { margin: 0; color: var(--ink); }
.plate-row p + p { color: var(--ink-2); font-size: 15px; margin-top: 4px; }
.plate-foot {
  display: flex; justify-content: space-between; gap: 16px; padding: 12px 24px;
  background: var(--raised); border-top: 1px solid var(--line);
}

/* Closing call */
.closing { padding: 96px 0 112px; text-align: left; border-top: 1px solid var(--line); }
.closing-inner { display: flex; align-items: center; justify-content: space-between; gap: 32px; flex-wrap: wrap; }
.closing h2 { font: 400 36px/1.12 var(--serif); letter-spacing: -0.015em; margin: 0; max-width: 18em; text-wrap: balance; }
.closing .pan { width: 64px; height: 64px; border-radius: 15px; box-shadow: var(--shadow); }
.closing .left { display: flex; align-items: center; gap: 24px; }

/* Footer */
.site-footer {
  display: flex; flex-wrap: wrap; justify-content: space-between; gap: 12px 24px;
  padding: 24px 0 40px; border-top: 1px solid var(--line); font-size: 14px; color: var(--ink-3);
}
.site-footer nav { display: flex; flex-wrap: wrap; gap: 8px 20px; }
.site-footer a { color: var(--ink-2); text-decoration: none; }
.site-footer a:hover { color: var(--ink); }

/* Document pages: support, legal, share, 404 */
.doc { padding: 56px 0 80px; }
.doc h1 { font: 400 clamp(36px, 5vw, 48px)/1.08 var(--serif); letter-spacing: -0.02em; margin: 12px 0 16px; }
.doc .lede { font-size: 18px; line-height: 28px; color: var(--ink-2); margin: 0 0 40px; max-width: 36rem; }
.doc h2 { font: 400 26px/1.2 var(--serif); letter-spacing: -0.01em; margin: 56px 0 16px; }
.doc h3 { font: 500 17px/1.4 var(--sans); margin: 32px 0 8px; }
.doc p, .doc li { color: var(--ink); }
.doc ul, .doc ol { padding-left: 1.25em; }
.doc li { margin: 4px 0; }
.doc code { font: 400 0.9em var(--mono); }

.contact { border: 1px solid var(--line); border-radius: 16px; overflow: hidden; background: var(--card); margin: 0 0 16px; }
.contact > div { display: grid; grid-template-columns: 168px 1fr; gap: 4px 24px; padding: 16px 24px; border-top: 1px solid var(--line); }
.contact > div:first-child { border-top: 0; }
.contact .label { padding-top: 3px; grid-row: span 2; }
.contact a { font-weight: 500; text-decoration: none; overflow-wrap: anywhere; }
.contact a:hover { text-decoration: underline; }
.contact p { margin: 0; font-size: 14px; color: var(--ink-2); }
@media (max-width: 560px) { .contact > div { grid-template-columns: 1fr; padding: 16px 20px; } .contact .label { grid-row: auto; } }

.doc .steps { list-style: none; padding: 0; margin: 16px 0; counter-reset: s; }
.steps li { display: grid; grid-template-columns: 32px 1fr; gap: 12px; padding: 12px 0; border-top: 1px solid var(--line); counter-increment: s; }
.steps li:last-child { border-bottom: 1px solid var(--line); }
.steps li::before {
  content: counter(s); width: 24px; height: 24px; border-radius: 50%; border: 1px solid var(--line-strong);
  display: grid; place-items: center; font: 400 12px/1 var(--mono); color: var(--ink-2); margin-top: 1px;
}
.path { font-weight: 500; }
.path i { font-style: normal; color: var(--ink-3); padding: 0 4px; }

.faq { border-top: 1px solid var(--line); }
.faq details { border-bottom: 1px solid var(--line); }
.faq summary {
  list-style: none; cursor: pointer; display: flex; justify-content: space-between; align-items: center; gap: 16px;
  padding: 18px 0; font-weight: 500;
}
.faq summary::-webkit-details-marker { display: none; }
.faq summary::after {
  content: ""; width: 9px; height: 9px; flex: none; margin-right: 4px;
  border-right: 1.5px solid var(--ink-3); border-bottom: 1.5px solid var(--ink-3);
  transform: rotate(45deg) translateY(-3px); transition: transform 180ms var(--ease);
}
.faq details[open] summary::after { transform: rotate(-135deg) translateY(-1px); }
.faq .answer { padding: 0 0 20px; color: var(--ink-2); }
.faq .answer p { margin: 0 0 10px; color: var(--ink-2); }

.legal table { border-collapse: collapse; width: 100%; font-size: 14px; display: block; overflow-x: auto; margin: 16px 0; }
.legal th, .legal td { border-top: 1px solid var(--line); padding: 10px 12px 10px 0; text-align: left; vertical-align: top; }
.legal th { font: 400 12px/16px var(--mono); color: var(--ink-3); }
.legal blockquote { margin: 16px 0; padding: 12px 16px; background: var(--card); border: 1px solid var(--line); border-radius: 10px; }
.legal blockquote p { margin: 0; }
.legal hr { border: 0; border-top: 1px solid var(--line); margin: 40px 0; }

.center-card {
  max-width: 520px; margin: 48px auto 96px; padding: 40px; text-align: center;
  background: var(--card); border: 1px solid var(--line); border-radius: 20px; box-shadow: var(--shadow);
}
.center-card img.mark { width: 72px; height: 72px; border-radius: 17px; margin: 0 auto 24px; }
.center-card h1 { font: 400 34px/1.1 var(--serif); letter-spacing: -0.015em; margin: 0 0 12px; }
.center-card p { color: var(--ink-2); margin: 0 0 28px; }
.center-card .actions { display: flex; flex-direction: column; align-items: center; gap: 12px; }
.button {
  display: inline-flex; align-items: center; justify-content: center; height: 48px; padding: 0 24px;
  border-radius: 10px; background: var(--accent); color: var(--accent-ink); font-weight: 500; text-decoration: none;
  transition: transform 120ms var(--ease), opacity 120ms var(--ease);
}
.button:active { transform: scale(0.98); }

/* Small screens */
@media (max-width: 880px) {
  .hero { grid-template-columns: 1fr; gap: 48px; min-height: 0; padding: 32px 0 64px; }
  .hero .visual { order: 2; }
  .section-head { grid-template-columns: 1fr; gap: 24px; }
  .section { padding: 64px 0; }
  .closing { padding: 64px 0 80px; }
}
@media (max-width: 560px) {
  .site-nav .hide-sm { display: none; }
  .hero h1 { font-size: 38px; }
  .hero .lede { font-size: 17px; line-height: 27px; }
  .counter { aspect-ratio: auto; height: 512px; }
  .recipe-card-paper { width: 76%; left: 5%; top: 20px; font-size: 13px; }
  .recipe-card-paper .title { line-height: 26px; }
  .recipe-card-paper .extra { display: none; }
  .app-card { width: 82%; right: 5%; bottom: 16px; padding: 16px; }
  .ingredients li.extra { display: none; }
  .plate-row { grid-template-columns: 1fr; gap: 4px; padding: 16px 20px; }
  .closing h2, .section-head h2 { font-size: 30px; }
  .center-card { padding: 32px 24px; margin-top: 24px; }
}
