/* tastemaker: Product Demo | N1 H2 F3 F6 C2 Ft2 | locked to caloloop-ui/constants/theme.ts | see .tastemaker/style-lock.md */
@font-face { font-family: Inter; src: url(assets/fonts/Inter-Regular.woff2) format("woff2"); font-weight: 400; font-display: swap; }
@font-face { font-family: Inter; src: url(assets/fonts/Inter-SemiBold.woff2) format("woff2"); font-weight: 600; font-display: swap; }
@font-face { font-family: Inter; src: url(assets/fonts/Inter-Bold.woff2) format("woff2"); font-weight: 700; font-display: swap; }

:root {
  --canvas: #FAF7F0;
  --surface: #FFFDF9;
  --border: #EAE5DC;
  --text: #152344;
  --muted: #5F6980;
  --primary-dark: #176CC4;
  --primary-darker: #125AA5;
  --primary-light: #DCEEFF;
  --midnight: #091321;
  --midnight-border: #223249;
  --on-midnight: #F7F9FC;
  --on-midnight-muted: #B8C2D2;
  --gutter: max(16px, 5vw, calc((100% - 1160px) / 2));
  --section: clamp(72px, 10vw, 128px);
  --ease-out: cubic-bezier(0.16, 1, 0.3, 1);
}

* { box-sizing: border-box; }
html, body { overflow-x: clip; }
html { -webkit-tap-highlight-color: transparent; -webkit-text-size-adjust: 100%; }
body { margin: 0; background: var(--canvas); color: var(--text); font: 400 17px/1.55 Inter, system-ui, sans-serif; }
h1, h2, h3 { margin: 0; font-weight: 700; letter-spacing: -0.02em; text-wrap: balance; }
h1 { font-size: clamp(38px, 5vw, 60px); line-height: 1.08; }
h2 { font-size: clamp(30px, 3.6vw, 44px); line-height: 1.12; }
h3 { font-size: clamp(24px, 2.6vw, 32px); line-height: 1.15; }
p { margin: 0; text-wrap: pretty; }
a { color: var(--primary-dark); touch-action: manipulation; }
img { display: block; max-width: 100%; height: auto; }
:focus-visible { outline: 3px solid currentColor; outline-offset: 3px; }

.bar { display: flex; justify-content: space-between; align-items: center; gap: 16px; padding: 16px var(--gutter); }
.bar nav { display: flex; gap: 24px; font-weight: 600; font-size: 15px; white-space: nowrap; }
.bar nav a { text-decoration: none; }
.brand { display: flex; align-items: center; gap: 8px; color: var(--text); font-weight: 700; font-size: 20px; text-decoration: none; }

.button { display: inline-block; padding: 15px 28px; border-radius: 12px; background: var(--primary-dark); color: #fff; font-weight: 600; text-decoration: none; white-space: nowrap; user-select: none; transition: transform 160ms var(--ease-out), background-color 160ms ease-out; }
.button:active { transform: scale(0.97); }
.button-light { background: #fff; color: var(--primary-dark); }
.button-light:focus-visible { outline-color: #fff; }

.phone { width: 100%; border: 1px solid var(--border); border-radius: 24px; background: var(--surface); }

.hero { display: grid; grid-template-columns: 1.25fr 1fr; gap: 48px; padding: 24px var(--gutter) 0; border-bottom: 1px solid var(--border); }
.hero-copy { align-self: center; padding-bottom: 72px; }
.hero-copy p { max-width: 30em; margin: 24px 0 32px; color: var(--muted); font-size: 19px; }
.hero-shot { height: 660px; overflow: hidden; }
.hero-shot .phone { max-width: 380px; margin-inline: auto; border-bottom: 0; }

.day { padding: var(--section) var(--gutter); }
.steps { margin: 0; padding: 0; list-style: none; }
.step-copy p { max-width: 26em; margin-top: 12px; color: var(--muted); }
.step-shot { max-width: 280px; margin: 32px auto 64px; }
.day h2 { margin-bottom: 48px; }

.recipes { padding-block: var(--section); background: var(--surface); border-block: 1px solid var(--border); }
.recipes-head { padding-inline: var(--gutter); }
.recipes-head p { max-width: 34em; margin-top: 16px; color: var(--muted); }
.recipe-row { display: flex; gap: 20px; margin: 48px 0 24px; padding: 4px var(--gutter); list-style: none; overflow-x: auto; scroll-snap-type: x proximity; scroll-padding-inline: var(--gutter); scrollbar-width: thin; }
.recipe-row li { flex: 0 0 clamp(200px, 22vw, 260px); scroll-snap-align: start; }
.recipe-row img { margin-bottom: 12px; border-radius: 16px; }
.recipe-row strong { display: block; font-weight: 600; line-height: 1.3; }
.recipe-row span { color: var(--muted); font-size: 15px; font-variant-numeric: tabular-nums; }
.note { padding-inline: var(--gutter); color: var(--muted); font-size: 14px; }

.numbers { padding: var(--section) var(--gutter); background: var(--midnight); color: var(--on-midnight); }
.numbers dl { margin: 48px 0 0; }
.numbers dl div { display: grid; grid-template-columns: 1fr 3fr; gap: 8px 32px; padding-block: 24px; border-top: 1px solid var(--midnight-border); }
.numbers dt { font-weight: 600; font-size: 19px; }
.numbers dd { max-width: 40em; margin: 0; color: var(--on-midnight-muted); }

.close { padding: var(--section) var(--gutter); background: var(--primary-dark); color: #fff; }
.close h2 { margin-bottom: 32px; }
.close p { max-width: 32em; margin-top: 32px; font-size: 15px; }

.foot { display: flex; flex-wrap: wrap; justify-content: space-between; gap: 12px 40px; padding: 32px var(--gutter); color: var(--muted); font-size: 14px; }
.foot nav { display: flex; gap: 20px; white-space: nowrap; }

.legal { max-width: 752px; margin-inline: auto; padding: 32px 16px 64px; overflow-wrap: anywhere; }
.legal h1 { font-size: clamp(30px, 4vw, 40px); line-height: 1.15; }
.legal h2 { margin-top: 40px; font-size: 22px; letter-spacing: -0.01em; }
.legal h3 { margin-top: 24px; font-size: 18px; font-weight: 600; }
.legal p, .legal ul { margin-top: 12px; }
.legal mark { padding-inline: 2px; background: #FFF3E0; color: inherit; }

@media (hover: hover) and (pointer: fine) {
  .button:hover { background: var(--primary-darker); }
  .button-light:hover { background: var(--primary-light); }
}

/* One phone stays in place while the steps scroll past it. */
@media (min-width: 861px) {
  .steps { display: grid; grid-template-columns: 1fr minmax(0, 340px); column-gap: 64px; max-width: 980px; }
  .step { display: contents; }
  .step-copy { grid-column: 1; display: flex; flex-direction: column; justify-content: center; min-height: 72svh; }
  .step-shot { grid-column: 2; grid-row: 1 / 6; position: sticky; top: 24px; align-self: start; width: min(340px, calc((100svh - 48px) * 0.46)); max-width: none; margin: 0 0 0 auto; }
  .js .step-shot { opacity: 0; transition: opacity 200ms ease-out; }
  .js .step-shot.is-active { opacity: 1; }
}

@media (max-width: 860px) {
  .nav-optional { display: none; }
  .hero { grid-template-columns: 1fr; gap: 0; }
  .hero-copy { padding-block: 32px 48px; }
  .hero-shot { height: 480px; }
  .hero-shot .phone { max-width: 300px; }
  .numbers dl div { grid-template-columns: 1fr; }
}

/* Entrance plays once on load, so it can afford to be a little slower than UI motion. */
@media (prefers-reduced-motion: no-preference) {
  .hero-copy > *, .hero-shot .phone { animation: rise 500ms var(--ease-out) both; }
  .hero-copy > p { animation-delay: 60ms; }
  .hero-copy > a { animation-delay: 120ms; }
  .hero-shot .phone { animation-delay: 120ms; }
  @keyframes rise { from { opacity: 0; transform: translateY(12px); } }
}

@media (prefers-reduced-motion: reduce) {
  .button { transition: background-color 160ms ease-out; }
  .button:active { transform: none; }
}
