/* recimate.app inner pages (guides, comparisons, meal planner, support, legal): the Food-first look of the home
   pages (home.css) without the home-only parts. Tokens and type match home.css; keep the two in step.
   Page families add their own file: guide.css, compare.css, legal.css. */

@font-face { font-family: "Bricolage Condensed"; src: url("/fonts/bricolage-condensed-800.woff2") format("woff2"); font-weight: 800; font-display: swap; }
@font-face { font-family: "Instrument Sans"; src: url("/fonts/instrument-sans-400.woff2") format("woff2"); font-weight: 400; font-display: swap; }
@font-face { font-family: "Instrument Sans"; src: url("/fonts/instrument-sans-600.woff2") format("woff2"); font-weight: 600; font-display: swap; }

:root {
  --ink: #0E1A12;
  --ink-raised: #16261B;
  --forest: #23412C;
  --soft-green: #E4EEE8;
  --paper: #FAFAF6;
  --surface: #FFFFFF;
  --pressed: #F1F2EC;
  --text: #141C16;
  --text-2: #5C665F;
  --on-ink: #FFFFFF;
  --on-ink-2: rgba(255, 255, 255, .78);
  --saffron: #F2A922;
  --saffron-soft: #FDF3DC;
  --display: "Bricolage Condensed", "Arial Narrow", "Helvetica Neue", sans-serif;
  --body: "Instrument Sans", "Helvetica Neue", Arial, sans-serif;
  --m: clamp(20px, 2.2vw, 32px);
  --gap: clamp(88px, 10vw, 152px);
  --r: 14px;
  --t-xl: clamp(52px, 8.4vw, 136px);
  --t-l: clamp(36px, 4.6vw, 72px);
  --t-m: clamp(24px, 2.4vw, 36px);
  --t-lead: clamp(19px, 1.6vw, 23px);
  --t-s: clamp(17px, 1.3vw, 20px);
  --t-xs: 15px;
  --ease: cubic-bezier(.22, 1, .36, 1);
  color-scheme: light;
}

*, *::before, *::after { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; scroll-behavior: smooth; }
body { margin: 0; background: var(--paper); color: var(--text); font: 400 var(--t-s)/1.55 var(--body); -webkit-font-smoothing: antialiased; overflow-x: clip; }
img, video { display: block; max-width: 100%; height: auto; }
a { color: inherit; text-underline-offset: 4px; }
h1, h2, h3 { font-family: var(--display); font-weight: 800; letter-spacing: -0.02em; margin: 0; text-wrap: balance; }
p { margin: 0; }
::selection { background: var(--saffron); color: var(--ink); }
:focus-visible { outline: 3px solid var(--saffron); outline-offset: 3px; border-radius: 4px; }
.vh { position: absolute !important; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; }
.skip { position: absolute; left: var(--m); top: -60px; background: var(--saffron); color: var(--ink); padding: 10px 16px; z-index: 10; font-weight: 600; text-decoration: none; }
.skip:focus { top: 8px; }
.wrap { padding-inline: max(var(--m), env(safe-area-inset-left, 0px)) max(var(--m), env(safe-area-inset-right, 0px)); }
.section { margin-top: var(--gap); }
.sec-h { font-size: var(--t-l); line-height: .95; letter-spacing: -0.03em; max-width: 22ch; }
.sec-p { font-size: var(--t-lead); max-width: 52ch; margin-top: 18px; }

/* store badges (same as home) */
.badges { display: flex; flex-wrap: wrap; align-items: center; gap: 12px; }
.badges a { display: inline-flex; border-radius: 10px; transition: transform .2s var(--ease); }
.badges a:hover { transform: translateY(-2px); }
.badges .apple img { height: 52px; width: auto; }
.badges .play img { height: 76px; width: auto; }
.badges.loc .play img { height: 64px; }
/* the Play badge has transparent padding built in: trim it on the link, not the image,
   or the flex layout narrows the image and squashes it */
.badges .play { margin: -12px; }
.badges.loc .play { margin: -6px; }
.badges img { flex-shrink: 0; }  /* never squeeze a badge out of shape; wrap instead */
@media (max-width: 380px) {  /* both badges side by side within a 360 px phone's 328 px column */
  .badges .apple img { height: 46px; }
  .badges .play img { height: 68px; }
  .badges.loc .play img { height: 57px; }
  .badges .play { margin: -11px; }
  .badges.loc .play { margin: -5px; }
}

/* ---------- top bar ---------- */
.top { display: flex; align-items: center; justify-content: space-between; gap: 20px; padding-block: 18px; }
.brand { display: inline-flex; align-items: center; gap: 10px; text-decoration: none; font: 800 var(--t-lead)/1 var(--display); letter-spacing: -0.01em; color: var(--text); }
.brand img { width: 34px; height: 34px; border-radius: 9px; }
.top-links { display: flex; align-items: center; gap: clamp(14px, 2vw, 28px); font-size: var(--t-xs); font-weight: 600; }
.top-links a { text-decoration: none; color: var(--text-2); padding: 10px 0; transition: color .2s; }
.top-links a:hover { color: var(--text); }
.lang { display: flex; gap: 10px; }
.lang a[aria-current] { color: var(--text); text-decoration: underline; text-decoration-color: var(--saffron); text-decoration-thickness: 2px; text-underline-offset: 6px; }
.top-links .get { background: var(--saffron); color: var(--ink); padding: 11px 18px; border-radius: 999px; transition: transform .2s var(--ease), background .2s; }
.top-links .get:hover { color: var(--ink); background: #F6B940; transform: translateY(-1px); }

/* ---------- page opening: a big title, a lead, and its picture ---------- */
.crumbs { font-size: var(--t-xs); color: var(--text-2); margin-top: clamp(24px, 4vw, 56px); }
.crumbs a { color: var(--text-2); }
.crumbs a:hover { color: var(--text); }
.opening { display: grid; grid-template-columns: minmax(0, 7fr) minmax(0, 5fr); gap: clamp(28px, 4vw, 72px); align-items: end; margin-top: 20px; }
.opening.solo { grid-template-columns: minmax(0, 1fr); }
.opening h1 { font-size: var(--t-xl); line-height: .9; letter-spacing: -0.035em; }
.opening .lead { font-size: var(--t-lead); line-height: 1.45; max-width: 44ch; margin-top: clamp(20px, 2.4vw, 32px); }
.opening .lead + .lead { margin-top: 14px; }
.opening .badges { margin-top: 28px; }
.opening figure { margin: 0; }
.opening figure img { width: 100%; height: auto; aspect-ratio: 4 / 5; object-fit: cover; border-radius: var(--r); background: var(--pressed); }
.opening .shot { justify-self: center; height: min(70svh, 640px); width: auto; aspect-ratio: 600 / 1304; border-radius: 30px; border: 8px solid var(--ink); box-sizing: content-box; overflow: hidden; background: var(--ink); }
.opening .shot img { width: 100%; height: 100%; object-fit: cover; }
.opening figcaption { font-size: var(--t-xs); color: var(--text-2); margin-top: 10px; }

/* ---------- shared blocks ---------- */
/* a run of white cards, used for ideas, reasons, plans */
.cards { list-style: none; margin: clamp(28px, 3vw, 44px) 0 0; padding: 0; display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 12px; }
.cards.three { grid-template-columns: repeat(3, minmax(0, 1fr)); }
.card { background: var(--surface); border-radius: var(--r); padding: clamp(20px, 2vw, 28px); display: grid; gap: 10px; align-content: start; }
.card h3 { font-size: var(--t-m); line-height: 1.02; letter-spacing: -0.01em; }
.card p { color: var(--text); }
.card .meta { font-size: var(--t-xs); color: var(--text-2); }
.card .meta b { color: var(--text); font-weight: 600; }

/* a forest field: the app's side of things */
.field { background: var(--forest); color: var(--on-ink); border-radius: var(--r); padding: clamp(28px, 4vw, 64px); }
.field .sec-h { color: var(--on-ink); }
.field p, .field li { color: var(--on-ink); }
.field a { color: var(--saffron); }
.steps { list-style: none; counter-reset: s; margin: 28px 0 0; padding: 0; display: grid; gap: 20px; }
.steps li { counter-increment: s; display: grid; grid-template-columns: 44px minmax(0, 1fr); gap: 4px 16px; }
.steps li::before { content: counter(s); grid-row: span 2; width: 44px; height: 44px; border-radius: 50%; background: var(--saffron); color: var(--ink); display: grid; place-items: center; font: 800 22px/1 var(--display); }
.steps b { font: 800 var(--t-m)/1.05 var(--display); letter-spacing: -0.01em; }

/* plain lists inside sections */
.list { margin: 20px 0 0; padding-left: 1.1em; display: grid; gap: 10px; max-width: 60ch; }
.list li::marker { color: var(--saffron); }

/* pill links to other pages */
.pills { list-style: none; margin: 28px 0 0; padding: 0; display: flex; flex-wrap: wrap; gap: 10px; }
.pills a { display: inline-flex; align-items: center; min-height: 44px; padding: 0 18px; border-radius: 999px; background: var(--pressed); color: var(--text); font-weight: 600; font-size: var(--t-xs); text-decoration: none; transition: background .2s; }
.pills a:hover { background: var(--soft-green); }
.more { display: inline-block; margin-top: 22px; font-weight: 600; color: var(--forest); }

/* questions: an accordion beside the heading (same as home) */
.faq { display: grid; grid-template-columns: minmax(0, 5fr) minmax(0, 7fr); gap: clamp(28px, 5vw, 96px); align-items: start; }
.qa { border-top: 2px solid var(--ink); }
.qa:last-child { border-bottom: 2px solid var(--ink); }
.qa summary { list-style: none; display: grid; grid-template-columns: minmax(0, 1fr) auto; gap: 24px; align-items: center; padding-block: 24px; cursor: pointer; }
.qa summary::-webkit-details-marker { display: none; }
.qa summary::after { content: "+"; font: 400 36px/1 var(--body); width: 44px; height: 44px; display: grid; place-items: center; border-radius: 50%; background: var(--pressed); transition: transform .3s var(--ease), background .2s; }
.qa summary:hover::after { background: var(--soft-green); }
.qa[open] summary::after { transform: rotate(45deg); background: var(--saffron); }
.qa h3 { font-size: var(--t-m); line-height: 1.08; letter-spacing: -0.01em; }
.qa p { padding: 0 64px 28px 0; max-width: 60ch; font-size: var(--t-lead); }

/* ---------- closing band: a dish fills the width, the invitation sits on it ---------- */
.cta { position: relative; margin-top: var(--gap); min-height: min(78svh, 760px); display: flex; align-items: flex-end; color: var(--on-ink); background: var(--ink); isolation: isolate; overflow: hidden; }
.cta > picture img, .cta > img { position: absolute; inset: 0; z-index: -2; width: 100%; height: 100%; object-fit: cover; }
.cta::after { content: ""; position: absolute; inset: 0; z-index: -1; background: linear-gradient(to top, rgba(14,26,18,1) 0%, rgba(14,26,18,.7) 34%, rgba(14,26,18,.1) 72%); } /* taste-skill-ignore: scrim over the closing photograph */
.cta-in { width: 100%; padding-bottom: clamp(40px, 5vw, 72px); }
.cta h2 { font-size: var(--t-xl); line-height: .92; letter-spacing: -0.035em; max-width: 16ch; }
.cta p { font-size: var(--t-lead); max-width: 46ch; margin-top: 18px; }
.cta .badges { margin-top: 28px; }

/* ---------- footer (same as the home footer) ---------- */
.foot { background: var(--ink); color: var(--on-ink); overflow: hidden; }
.cta + .foot .foot-top { padding-top: clamp(40px, 5vw, 72px); }
.foot-top { display: grid; grid-template-columns: minmax(0, 7fr) minmax(0, 5fr); gap: clamp(24px, 4vw, 72px); padding-top: clamp(64px, 8vw, 112px); }
.foot .about { max-width: 52ch; font-size: var(--t-lead); }
.foot nav h2 { font: 600 var(--t-xs)/1.4 var(--body); letter-spacing: 0; color: var(--on-ink-2); }
.foot nav ul { list-style: none; padding: 0; margin: 10px 0 0; display: grid; grid-template-columns: repeat(2, minmax(0, max-content)); gap: 2px 32px; }
.foot nav a { display: inline-block; padding: 7px 0; text-decoration: none; }
.foot nav a:hover { text-decoration: underline; text-decoration-color: var(--saffron); }
.legal { display: flex; justify-content: space-between; flex-wrap: wrap; gap: 8px 24px; font-size: var(--t-xs); color: var(--on-ink-2); margin-top: clamp(40px, 5vw, 64px); }
.legal a { color: var(--on-ink-2); }
.legal div { display: flex; gap: 18px; }
.foot .lang a[aria-current] { color: var(--on-ink); }
.wordmark { font: 800 clamp(120px, 27vw, 460px)/.8 var(--display); letter-spacing: -0.045em; white-space: nowrap; transform: translateY(24%); margin: 12px 0 0; user-select: none; }

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

@media (max-width: 980px) {
  .top-links .opt { display: none; }
  .opening, .faq, .foot-top { grid-template-columns: minmax(0, 1fr); }
  .opening { align-items: start; }
  .opening figure img { aspect-ratio: 16 / 10; }
  .cards.three { grid-template-columns: repeat(2, minmax(0, 1fr)); }
}

@media (max-width: 640px) {
  .top-links .get { display: none; }
  .top-links .lang a { padding: 10px 2px; }
  .opening h1 { font-size: 14vw; }
  .sec-h { font-size: 11vw; }
  .cta h2 { font-size: 12vw; }
  .cards, .cards.three { grid-template-columns: minmax(0, 1fr); }
  .opening .shot { height: min(62svh, 540px); }
  .qa p { padding-right: 0; }
  .wordmark { font-size: 34vw; }
}
