/*
  The guide pages (save-recipes-from-tiktok-instagram/, translate-a-recipe/,
  paprika-alternative/): one stylesheet so the three stay alike. Colours,
  fonts and header are the home page's own (web/index.html). Bump ?v=N in the
  pages' <link> whenever this changes, or phones keep the old copy.
*/
@font-face {
  font-family: 'Bricolage Grotesque';
  font-style: normal;
  font-weight: 500 800;
  font-display: swap;
  src: url(fonts/bricolage-grotesque.woff2) format('woff2');
}
@font-face {
  font-family: 'Fraunces';
  font-style: italic;
  font-weight: 500 700;
  font-display: swap;
  src: url(fonts/fraunces-italic.woff2) format('woff2');
}
:root {
  --bg: #fdfbf7;
  --surface: #ffffff;
  --alt: #f5f1ea;
  --border: #e7e1d8;
  --ink: #1c1917;
  --body: #44403c;
  --muted: #78716c;
  --accent: #c4552d;
  --accent-deep: #ab4826;
  --accent-soft: #fbede7;
  --accent-line: #f3d9cd;
  --green: #4a7c59;
  --green-soft: #edf5ef;
  --pro: #7b3f5e;
  --display: 'Bricolage Grotesque', -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, sans-serif;
  --serif: 'Fraunces', Georgia, serif;
}
* { box-sizing: border-box; }
body {
  margin: 0;
  background: var(--bg);
  color: var(--body);
  font: 17px/1.6 -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, Helvetica, Arial, sans-serif;
  -webkit-text-size-adjust: 100%;
  overflow-x: hidden;
}
img { display: block; max-width: 100%; height: auto; }
a { color: var(--accent); }
.wrap { max-width: 1080px; margin: 0 auto; padding: 0 24px; }
@media (max-width: 520px) { .wrap { padding: 0 16px; } }
h1, h2, h3 { font-family: var(--display); color: var(--ink); letter-spacing: -0.03em; margin: 0; text-wrap: balance; }
em.serif { font-family: var(--serif); font-style: italic; font-weight: 600; letter-spacing: -0.015em; color: var(--accent); }
.pro {
  font-family: var(--display); font-size: 11px; font-weight: 700; letter-spacing: 0.08em; vertical-align: 2px;
  color: #fff; background: var(--pro); border-radius: 999px; padding: 3px 9px;
}

/* ── Header (as on the Recipes page) ── */
header {
  position: sticky; top: 0; z-index: 20;
  background: rgba(253, 251, 247, 0.88);
  backdrop-filter: saturate(1.4) blur(12px);
  -webkit-backdrop-filter: saturate(1.4) blur(12px);
  border-bottom: 1px solid var(--border);
}
header .wrap { display: flex; align-items: center; gap: 12px; height: 68px; max-width: 1160px; }
header .brand { display: flex; align-items: center; gap: 10px; text-decoration: none; }
header .brand img { width: 36px; height: 36px; border-radius: 9px; }
header .brand span { font-family: var(--display); font-size: 21px; font-weight: 800; letter-spacing: -0.02em; color: var(--ink); }
header nav { margin-left: auto; display: flex; gap: 26px; align-items: center; }
header nav a { color: var(--body); text-decoration: none; font-size: 15px; font-weight: 500; }
header nav a:hover { color: var(--accent); }
header nav a.get { color: #fff; background: var(--ink); padding: 9px 18px; border-radius: 999px; font-weight: 600; }
header nav a.get:hover { background: var(--accent); color: #fff; }
.menu-toggle { position: absolute; opacity: 0; width: 1px; height: 1px; pointer-events: none; }
.menu-button { display: none; }
@media (max-width: 720px) {
  header .wrap { flex-wrap: wrap; height: auto; padding-top: 12px; padding-bottom: 12px; }
  .menu-button {
    display: flex; align-items: center; justify-content: center;
    margin-left: auto; width: 44px; height: 44px;
    border: 1px solid var(--border); border-radius: 10px;
    color: var(--ink); font-size: 22px; line-height: 1; cursor: pointer; user-select: none;
  }
  .menu-toggle:focus-visible + .menu-button { outline: 2px solid var(--accent); outline-offset: 2px; }
  .menu-toggle:checked + .menu-button { background: var(--alt); }
  header nav { display: none; flex-basis: 100%; flex-direction: column; align-items: stretch; gap: 0; margin: 0 0 8px; }
  .menu-toggle:checked ~ nav { display: flex; }
  header nav a { font-size: 16px; padding: 12px 2px; border-top: 1px solid var(--border); }
  header nav a.get { background: none; color: var(--accent); padding: 12px 2px; border-radius: 0; }
}

/* ── Intro ── */
.crumbs { font-size: 14px; color: var(--muted); margin: 0 0 18px; }
.crumbs a { color: var(--muted); text-decoration: none; }
.crumbs a:hover { color: var(--accent); }
.eyebrow {
  display: inline-flex; align-items: center; gap: 10px;
  font-family: var(--display); font-weight: 700; font-size: 13px;
  letter-spacing: 0.16em; text-transform: uppercase; color: var(--accent);
  margin: 0 0 14px;
}
.eyebrow::before { content: ''; width: 26px; height: 2px; border-radius: 2px; background: currentColor; }
.intro { position: relative; padding: 44px 0 8px; }
.intro::before {
  content: ''; position: absolute; inset: -120px 0 auto; height: 620px; z-index: -1;
  background:
    radial-gradient(ellipse 45% 45% at 15% 25%, rgba(251, 226, 210, 0.85), transparent 70%),
    radial-gradient(ellipse 40% 40% at 88% 30%, rgba(255, 222, 170, 0.45), transparent 70%);
}
.intro h1 { font-size: clamp(36px, 6vw, 64px); line-height: 1.02; font-weight: 800; letter-spacing: -0.04em; max-width: 18ch; }
.intro .lede { max-width: 58ch; margin: 18px 0 0; font-size: clamp(18px, 2vw, 20px); line-height: 1.55; }
.intro .updated { font-size: 14px; color: var(--muted); margin: 14px 0 0; }

.badges { display: flex; flex-wrap: wrap; gap: 12px; align-items: center; margin-top: 26px; }
a.badge { display: inline-block; line-height: 0; border-radius: 10px; }
a.badge:focus-visible { outline: 2px solid var(--accent); outline-offset: 3px; }
a.badge.apple img { height: 54px; width: auto; }
a.badge.play img { height: 80px; width: auto; margin: -13px -10px; }

/* ── Sections ── */
.part { padding: 72px 0 0; }
@media (max-width: 720px) { .part { padding-top: 56px; } }
.part > h2, .part .head h2 { font-size: clamp(28px, 4vw, 40px); line-height: 1.08; font-weight: 800; }
.part .head p { margin: 12px 0 0; max-width: 60ch; }
.prose { max-width: 66ch; }
.prose p { margin: 14px 0 0; }
.prose ul { margin: 14px 0 0; padding-left: 1.2em; display: grid; gap: 8px; }

/* Steps beside a screenshot */
.how { display: grid; grid-template-columns: minmax(0, 1fr) 320px; gap: 56px; align-items: start; margin-top: 30px; }
@media (max-width: 860px) { .how { grid-template-columns: minmax(0, 1fr); gap: 36px; } }
.steps { list-style: none; margin: 0; padding: 0; display: grid; gap: 14px; counter-reset: step; }
.steps li {
  counter-increment: step;
  display: grid; grid-template-columns: 44px minmax(0, 1fr); gap: 16px; align-items: start;
  background: var(--surface); border: 1px solid var(--border); border-radius: 18px; padding: 20px 22px;
}
.steps li::before {
  content: counter(step);
  display: flex; align-items: center; justify-content: center;
  width: 44px; height: 44px; border-radius: 12px;
  background: var(--accent-soft); color: var(--accent);
  font-family: var(--display); font-weight: 800; font-size: 20px;
}
.steps h3 { font-size: 20px; font-weight: 700; letter-spacing: -0.02em; margin: 2px 0 4px; }
.steps p { margin: 0; font-size: 16px; line-height: 1.55; }

.screen { justify-self: center; width: min(320px, 82vw); position: sticky; top: 96px; }
@media (max-width: 860px) { .screen { position: static; } }
.screen img {
  width: 100%; border-radius: 28px; border: 1px solid var(--border); background: #fff;
  box-shadow: 0 40px 70px -30px rgba(80, 35, 12, 0.35), 0 8px 18px rgba(70, 35, 15, 0.08);
}
.screen figcaption { font-size: 14px; color: var(--muted); text-align: center; margin-top: 12px; }

/* Cards: what works, what does not */
.cards { display: grid; grid-template-columns: repeat(2, 1fr); gap: 16px; margin-top: 28px; }
@media (max-width: 720px) { .cards { grid-template-columns: 1fr; } }
.cards article { background: var(--surface); border: 1px solid var(--border); border-radius: 20px; padding: 22px 24px; }
.cards article.good { border-color: #cfe3d5; background: var(--green-soft); }
.cards h3 { font-size: 19px; font-weight: 700; letter-spacing: -0.02em; }
.cards p { margin: 8px 0 0; font-size: 16px; line-height: 1.55; }

/* Comparison table */
.table-wrap { margin-top: 28px; overflow-x: auto; border: 1px solid var(--border); border-radius: 18px; background: var(--surface); }
table { border-collapse: collapse; width: 100%; min-width: 560px; font-size: 16px; }
th, td { text-align: left; vertical-align: top; padding: 14px 16px; border-bottom: 1px solid var(--border); }
tr:last-child th, tr:last-child td { border-bottom: 0; }
thead th { font-family: var(--display); font-size: 15px; color: var(--ink); background: var(--alt); }
tbody th { font-weight: 600; color: var(--ink); width: 28%; }
/* On phones all three columns stay on screen, so neither app hides off to the side. */
@media (max-width: 600px) {
  table { min-width: 0; font-size: 14px; }
  th, td { padding: 10px 9px; }
  thead th { font-size: 14px; }
  tbody th { width: 26%; }
}
.table-note { font-size: 14px; color: var(--muted); margin: 12px 0 0; max-width: 72ch; }

/* Questions and answers, as plain visible text */
.faq { margin-top: 24px; display: grid; gap: 0; max-width: 760px; }
.faq div { padding: 20px 0; border-top: 1px solid var(--border); }
.faq div:last-child { border-bottom: 1px solid var(--border); }
.faq h3 { font-size: 19px; font-weight: 700; letter-spacing: -0.02em; }
.faq p { margin: 8px 0 0; }

/* More guides */
.related { display: grid; grid-template-columns: repeat(3, 1fr); gap: 14px; margin-top: 24px; }
@media (max-width: 720px) { .related { grid-template-columns: 1fr; } }
.related a {
  display: block; text-decoration: none; color: var(--ink);
  background: var(--surface); border: 1px solid var(--border); border-radius: 18px; padding: 18px 20px;
  font-family: var(--display); font-weight: 700; font-size: 18px; letter-spacing: -0.02em;
}
.related a span { display: block; font-family: -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, sans-serif; font-weight: 400; font-size: 15px; letter-spacing: 0; color: var(--body); margin-top: 4px; }
.related a:hover { border-color: var(--accent); }

/* Download band */
.download {
  margin-top: 96px; padding: 80px 0; text-align: center; color: #fff;
  background: radial-gradient(circle at 50% 30%, #da6a3c 0%, var(--accent) 45%, #9f3e1c 100%);
}
.download img.icon { width: 84px; height: 84px; border-radius: 20px; margin: 0 auto 22px; box-shadow: 0 24px 50px rgba(70, 20, 5, 0.4), 0 0 0 4px rgba(255, 255, 255, 0.15); }
.download h2 { color: #fff; font-size: clamp(34px, 5vw, 56px); line-height: 1.02; font-weight: 800; }
.download h2 em.serif { color: #ffe2c2; }
.download p { font-size: 18px; color: rgba(255, 255, 255, 0.92); margin: 16px auto 0; max-width: 42ch; }
.download .badges { justify-content: center; }

/* Footer */
footer { padding: 48px 0 56px; font-size: 14px; color: var(--muted); }
footer .wrap { display: grid; gap: 18px; max-width: 1160px; }
footer .brand { display: flex; align-items: center; gap: 10px; }
footer .brand img { width: 30px; height: 30px; border-radius: 8px; }
footer .brand span { font-family: var(--display); font-weight: 800; font-size: 18px; color: var(--ink); }
footer nav { display: flex; flex-wrap: wrap; gap: 8px 22px; }
footer nav a { color: var(--body); text-decoration: none; }
footer nav a:hover { color: var(--accent); }
footer p { margin: 0; line-height: 1.55; }
