/* ═══════════════════════════════════════════════════════════════
   TasteEscape — Landing · Design system "European Modern Artisan"
   (coerente con l'app: avorio, terracotta, salvia, oro · Fraunces + Inter)
   ═══════════════════════════════════════════════════════════════ */
:root {
  --bg: #FAFAF7;
  --bg-2: #F4F1EA;
  --bg-elev: #FFFFFF;
  --ink: #2C2A26;
  --ink-2: #6B665E;
  --ink-3: #9B968B;
  --warm: #B8754A;
  --warm-hover: #A56640;
  --warm-soft: #E8D4C4;
  --fresh: #7A8B6F;
  --gold: #C8A961;
  --gold-soft: #ECE2C7;
  --info: #5A7A8E;
  --border: #E8E4DC;
  --border-2: #D4CFC4;
  --shadow-sm: 0 2px 8px -2px rgba(44,42,38,.06);
  --shadow-md: 0 8px 24px -8px rgba(44,42,38,.12);
  --shadow-lg: 0 24px 64px -16px rgba(44,42,38,.18);
  --r-sm: 8px;
  --r-md: 12px;
  --r-lg: 20px;
  --r-xl: 28px;
  --r-full: 9999px;
  --display: 'Fraunces', Georgia, serif;
  --body: 'Inter', system-ui, -apple-system, sans-serif;
  --ease: cubic-bezier(.16,1,.3,1);
  --maxw: 1120px;
}

* { box-sizing: border-box; margin: 0; padding: 0; -webkit-tap-highlight-color: transparent; }
html { scroll-behavior: smooth; }
body {
  font-family: var(--body);
  color: var(--ink);
  background: var(--bg);
  line-height: 1.65;
  -webkit-font-smoothing: antialiased;
  text-rendering: optimizeLegibility;
  background-image: url("data:image/svg+xml,%3Csvg viewBox='0 0 256 256' xmlns='http://www.w3.org/2000/svg'%3E%3Cfilter id='n'%3E%3CfeTurbulence type='fractalNoise' baseFrequency='0.9' numOctaves='4' stitchTiles='stitch'/%3E%3C/filter%3E%3Crect width='100%25' height='100%25' filter='url(%23n)' opacity='0.035'/%3E%3C/svg%3E");
}
img, svg { display: block; max-width: 100%; }
a { color: inherit; text-decoration: none; }
h1, h2, h3 { font-family: var(--display); font-weight: 500; letter-spacing: -.02em; line-height: 1.08; }
.container { width: 100%; max-width: var(--maxw); margin-inline: auto; padding-inline: 24px; }

/* ── Typography helpers ── */
.display { font-size: clamp(2.4rem, 6vw, 4rem); }
.display--md { font-size: clamp(1.9rem, 4vw, 2.75rem); }
.display em { font-style: italic; font-weight: 300; color: var(--warm); }
.eyebrow {
  display: inline-block; font-family: var(--body); font-weight: 600;
  font-size: .72rem; letter-spacing: .14em; text-transform: uppercase;
  color: var(--warm); margin-bottom: 14px;
}
.lede { font-size: 1.12rem; color: var(--ink-2); max-width: 56ch; }
.lede--sm { font-size: 1rem; }

/* ── Buttons ── */
.btn {
  display: inline-flex; align-items: center; justify-content: center; gap: 10px; font-weight: 600;
  font-size: .98rem; padding: 14px 22px; border-radius: var(--r-full);
  transition: transform .25s var(--ease), box-shadow .25s var(--ease), background-color .25s var(--ease);
  cursor: pointer; border: 1px solid transparent; white-space: nowrap;
}
.btn--play { background: var(--warm); color: #FAFAF7; box-shadow: var(--shadow-sm); }
.btn--play:hover { background: var(--warm-hover); transform: translateY(-2px); box-shadow: var(--shadow-md); }
.btn--ghost { background: transparent; color: var(--ink); border-color: var(--border-2); }
.btn--ghost:hover { background: var(--bg-2); }
.btn--sm { padding: 9px 16px; font-size: .9rem; }
.btn--lg { padding: 16px 28px; font-size: 1.05rem; }
.btn--full { width: 100%; margin-top: 4px; }
.btn__stack { display: flex; flex-direction: column; align-items: flex-start; line-height: 1.1; }
.btn__stack small { font-size: .62rem; font-weight: 500; opacity: .85; letter-spacing: .03em; }
.btn__stack strong { font-size: 1rem; font-weight: 600; }
.play-tri, .play-badge { fill: currentColor; }

/* ── Nav ── */
.nav {
  position: sticky; top: 0; z-index: 50;
  background: rgba(250,250,247,.78); backdrop-filter: blur(14px);
  border-bottom: 1px solid transparent; transition: border-color .3s, box-shadow .3s;
}
.nav.is-scrolled { border-color: var(--border); box-shadow: var(--shadow-sm); }
.nav__inner { display: flex; align-items: center; justify-content: space-between; height: 70px; gap: 20px; }
.brand { display: inline-flex; align-items: center; gap: 9px; font-family: var(--display); font-weight: 500; font-size: 1.25rem; }
.brand__mark {
  display: grid; place-items: center; width: 34px; height: 34px; border-radius: 10px;
  background: var(--warm); color: #FAFAF7;
}
.nav__links { display: flex; gap: 30px; }
.nav__links a { color: var(--ink-2); font-weight: 500; font-size: .95rem; transition: color .2s; }
.nav__links a:hover { color: var(--ink); }

/* ── Hero ── */
.hero { padding: clamp(40px, 8vw, 90px) 0 clamp(50px, 9vw, 110px); overflow: hidden; }
.hero__grid { display: grid; grid-template-columns: 1.05fr .95fr; gap: 48px; align-items: center; }
.hero__copy h1 { margin: 4px 0 20px; }
.hero__cta { display: flex; flex-wrap: wrap; gap: 14px; margin-top: 32px; }
.trust { list-style: none; display: flex; flex-wrap: wrap; gap: 28px; margin-top: 38px; padding-top: 26px; border-top: 1px solid var(--border); }
.trust li { font-size: .9rem; color: var(--ink-2); }
.trust strong { display: block; font-family: var(--display); font-size: 1.5rem; color: var(--ink); font-weight: 500; }

/* ═══════════ PHONE MOCKUP SYSTEM ═══════════ */
.hero__device { position: relative; display: grid; place-items: center; }
.device__glow { position: absolute; inset: 8% 12%; background: radial-gradient(closest-side, rgba(184,117,74,.16), transparent 75%); filter: blur(8px); z-index: 0; }
.phone {
  position: relative; z-index: 1; width: 280px; aspect-ratio: 9 / 18.6;
  background: #1f1d1a; border-radius: 38px; padding: 12px;
  box-shadow: var(--shadow-lg), 0 0 0 1px rgba(44,42,38,.06);
}
.phone--sm { width: 232px; border-radius: 32px; padding: 9px; }
.phone__notch { position: absolute; top: 14px; left: 50%; transform: translateX(-50%); width: 96px; height: 22px; background: #1f1d1a; border-radius: var(--r-full); z-index: 3; }
.phone__screen { width: 100%; height: 100%; background: var(--bg); border-radius: 28px; padding: 24px 14px 12px; overflow: hidden; }
.phone--sm .phone__screen { border-radius: 24px; padding: 18px 11px 10px; }

/* screen layout helper */
.scr { display: flex; flex-direction: column; gap: 10px; }
.scr--flush { padding: 0; }
.phone--sm .scr { gap: 8px; }
.scr__bar { display: flex; align-items: center; justify-content: space-between; }
.scr__hi { font-family: var(--display); font-size: .9rem; }
.phone--sm .scr__hi { font-size: .8rem; }
.scr__h { font-family: var(--display); font-size: 1.05rem; font-weight: 500; margin: 0; }
.scr__h--sm { font-size: .92rem; }

.chip { font-size: .58rem; font-weight: 600; padding: 4px 9px; border-radius: var(--r-full); background: var(--bg-2); color: var(--ink-2); border: 1px solid var(--border); white-space: nowrap; }
.chip--crown { color: var(--gold); background: var(--gold-soft); border-color: transparent; }

/* food photos — foto reali dei piatti (WebP), riempiono il contenitore */
.dish { background-color: #EFEAE0; background-size: cover; background-position: center; background-repeat: no-repeat; }

/* recipe card (home/preferiti) */
.rcard { position: relative; background: var(--bg-elev); border: 1px solid var(--border); border-radius: var(--r-lg); overflow: hidden; box-shadow: var(--shadow-sm); }
.rcard__img { height: 92px; }
.rcard--sm .rcard__img { height: 70px; }
.rcard__fav { position: absolute; top: 8px; right: 8px; width: 26px; height: 26px; display: grid; place-items: center; border-radius: 50%; background: rgba(30,28,26,.4); color: var(--gold); font-size: 13px; z-index: 2; }
.rcard__body { padding: 10px 12px 12px; }
.rcard--sm .rcard__body { padding: 8px 10px 10px; }
.rcard__title { font-family: var(--display); font-size: .88rem; line-height: 1.2; }
.rcard--sm .rcard__title { font-size: .8rem; }
.rcard__meta { font-size: .66rem; color: var(--ink-3); margin: 4px 0 9px; }
.rcard--sm .rcard__meta { margin-bottom: 0; }
.rcard__acts { display: flex; gap: 6px; }
.ract { flex: 1; height: 28px; display: grid; place-items: center; border-radius: 9px; font-size: 12px; }
.ract--gold { background: var(--gold-soft); }
.ract--info { background: #D7DFE6; }
.ract--fresh { background: #DDE3D7; }

/* category pills */
.pill-row { display: flex; gap: 6px; flex-wrap: wrap; }
.pill { font-size: .6rem; font-weight: 500; padding: 5px 11px; border-radius: var(--r-full); background: var(--bg-elev); border: 1px solid var(--border); color: var(--ink-3); }
.pill--on { background: var(--warm); border-color: var(--warm); color: #FAFAF7; }

/* bottom nav inside phone */
.bnav { margin-top: auto; display: flex; justify-content: space-around; align-items: center; background: rgba(44,42,38,.92); border-radius: var(--r-full); padding: 9px 6px; }
.bnav__i { font-size: 14px; color: rgba(250,250,247,.45); width: 26px; text-align: center; }
.bnav__i--on { color: var(--bg); position: relative; }
.bnav__i--on::after { content: ''; position: absolute; bottom: -5px; left: 50%; transform: translateX(-50%); width: 4px; height: 4px; border-radius: 50%; background: var(--warm); }

/* mini world tiles (Mondo screen) */
.wgrid { display: grid; grid-template-columns: 1fr 1fr; gap: 7px; }
.wtile { position: relative; height: 50px; border-radius: var(--r-md); background-color: #C98B5A; background-size: cover; background-position: center; color: #fff; font-family: var(--display); font-size: .72rem; display: flex; align-items: flex-end; padding: 7px 9px; overflow: hidden; }
.wtile::after { content: ''; position: absolute; inset: 0; background: linear-gradient(180deg, transparent 30%, rgba(44,42,38,.62)); }
.wtile span, .wtile i { position: relative; z-index: 1; }
.wtile i { position: absolute; top: 6px; right: 8px; font-style: normal; color: var(--gold); font-size: .7rem; }
.wtile--wide { grid-column: span 2; height: 42px; }

/* recipe detail screen */
.rhero { position: relative; height: 132px; border-radius: 0; }
.rhero__back, .rhero__fav { position: absolute; top: 10px; width: 28px; height: 28px; display: grid; place-items: center; border-radius: 50%; background: rgba(30,28,26,.42); color: #fff; font-size: 16px; }
.rhero__back { left: 10px; }
.rhero__fav { right: 10px; color: var(--gold); }
.rbody { padding: 12px 14px 14px; display: flex; flex-direction: column; gap: 9px; }
.rmeta { display: flex; align-items: center; justify-content: space-between; font-size: .66rem; color: var(--ink-3); }
.rmeta b { font-family: var(--display); color: var(--warm); font-size: .82rem; }
.portion { display: flex; align-items: center; justify-content: space-between; background: var(--bg-2); border-radius: var(--r-md); padding: 8px 12px; font-size: .72rem; color: var(--ink-2); }
.ing { list-style: none; display: grid; gap: 6px; }
.ing li { display: flex; justify-content: space-between; font-size: .72rem; color: var(--ink); border-bottom: 1px dashed var(--border); padding-bottom: 5px; }
.ing li i { font-style: normal; color: var(--ink-3); }
.rcta { background: var(--warm); color: #FAFAF7; text-align: center; font-size: .74rem; font-weight: 600; padding: 9px; border-radius: var(--r-md); margin-top: 2px; }
.rcta--ghost { background: var(--bg-elev); color: var(--warm); border: 1px solid var(--warm-soft); }

/* stepper */
.stepper { display: inline-flex; align-items: center; gap: 12px; font-family: var(--display); }
.stepper b { font-size: 1.15rem; color: var(--ink); }
.stepper--sm { gap: 9px; font-size: .74rem; color: var(--warm); background: var(--bg-elev); border: 1px solid var(--border); border-radius: var(--r-full); padding: 3px 11px; }
.stepper--sm b { font-size: .82rem; color: var(--ink); }

/* lab screen */
.lab { background: var(--bg-elev); border: 1px solid var(--border); border-radius: var(--r-lg); padding: 13px; box-shadow: var(--shadow-sm); display: grid; gap: 12px; }
.lab__head { display: flex; justify-content: space-between; align-items: baseline; }
.lab__head span { font-family: var(--display); font-size: .82rem; }
.lab__head b { font-family: var(--display); font-weight: 500; color: var(--warm); font-size: .82rem; }
.bars--sm { gap: 8px; }
.bars--sm .bar { grid-template-columns: 56px 1fr 34px; gap: 8px; }
.bars--sm .bar__label, .bars--sm .bar__val { font-size: .64rem; }
.digest { border-top: 1px solid var(--border); padding-top: 9px; }
.digest__lbl { font-size: .62rem; color: var(--ink-3); }
.digest__svg { width: 100%; height: 36px; margin-top: 4px; }

/* frigo screen */
.fcard { background: var(--bg-elev); border: 1px solid var(--border); border-radius: var(--r-md); padding: 9px 11px; display: grid; gap: 7px; box-shadow: var(--shadow-sm); }
.fcard__top { display: flex; align-items: center; gap: 8px; font-size: .76rem; font-family: var(--display); }
.fcard__thumb { width: 30px; height: 30px; border-radius: 8px; flex-shrink: 0; }
.fcard__name { flex: 1; }
.fcard__foot { display: flex; justify-content: space-between; align-items: center; }
.fcard__kcal { font-size: .66rem; color: var(--ink-3); }
.tag { font-size: .56rem; font-weight: 600; padding: 3px 8px; border-radius: var(--r-full); white-space: nowrap; }
.tag--fresh { background: var(--success, #DDE3D4); color: #4A6340; }
.tag--warn { background: #F4E2CE; color: #A56640; }

/* import social (preferiti) */
.import { background: var(--bg-elev); border: 1px dashed var(--warm-soft); border-radius: var(--r-lg); padding: 12px; display: grid; gap: 8px; }
.import__lbl { font-size: .66rem; font-weight: 600; color: var(--warm); }
.import__field { background: var(--bg-2); border-radius: var(--r-md); padding: 9px 11px; font-size: .66rem; color: var(--ink-3); }
.import__btn { background: var(--warm); color: #fff; text-align: center; font-size: .68rem; font-weight: 600; padding: 8px; border-radius: var(--r-md); }

/* optilens scan screen */
.lens { display: flex; flex-direction: column; height: 100%; }
.lens__view { position: relative; height: 168px; background: radial-gradient(circle at 50% 40%, #3a3631, #1f1d1a); display: grid; place-items: center; }
.lens__frame { width: 130px; height: 84px; border: 2px solid rgba(255,255,255,.85); border-radius: 12px; box-shadow: 0 0 0 2000px rgba(20,18,16,.28); }
.lens__hint { position: absolute; bottom: 14px; left: 0; right: 0; text-align: center; color: rgba(255,255,255,.85); font-size: .6rem; }
.lens__result { padding: 12px 13px; display: grid; gap: 9px; }
.lens__name { font-family: var(--display); font-size: .82rem; }
.lens__macros { display: flex; gap: 8px; }
.lens__macros span { font-size: .62rem; background: var(--bg-2); border-radius: var(--r-full); padding: 4px 9px; color: var(--ink-2); }
.lens__add { background: var(--bg-2); border-radius: var(--r-md); padding: 9px 10px; display: grid; gap: 6px; }
.lens__add-h { font-size: .62rem; font-weight: 600; color: var(--warm); }
.addv { display: flex; align-items: center; gap: 7px; font-size: .62rem; color: var(--ink); }
.addv i { width: 8px; height: 8px; border-radius: 50%; flex-shrink: 0; }
.addv--red i { background: #C0392B; }
.addv--orange i { background: #D98A2B; }
.addv--yellow i { background: #C8A961; }

/* lista & dispensa screen */
.shop { list-style: none; display: grid; gap: 6px; }
.shop__i { display: flex; align-items: center; gap: 9px; background: var(--bg-elev); border: 1px solid var(--border); border-radius: var(--r-md); padding: 8px 10px; font-size: .74rem; }
.shop__i i { font-style: normal; margin-left: auto; color: var(--ink-3); font-size: .66rem; }
.shop__ck { width: 16px; height: 16px; border-radius: 5px; border: 1.5px solid var(--border-2); display: grid; place-items: center; font-size: 10px; color: #fff; }
.shop__i--done { color: var(--ink-3); }
.shop__i--done span:not(.shop__ck) { text-decoration: line-through; }
.shop__i--done .shop__ck { background: var(--fresh); border-color: var(--fresh); }
.pantry { background: var(--bg-2); border-radius: var(--r-md); padding: 10px 11px; display: grid; gap: 7px; }
.pantry__h { font-size: .66rem; font-weight: 600; color: var(--ink-2); }
.pantry__row { display: flex; gap: 6px; flex-wrap: wrap; }
.ptag { font-size: .62rem; background: var(--bg-elev); border: 1px solid var(--border); border-radius: var(--r-full); padding: 4px 10px; color: var(--ink-2); }

/* ═══════════ GALLERY ═══════════ */
.gallery {
  display: flex; gap: 26px; overflow-x: auto; scroll-snap-type: x mandatory;
  padding: 8px 4px 26px; margin-top: 8px;
  scrollbar-width: thin; scrollbar-color: var(--border-2) transparent;
}
.gallery::-webkit-scrollbar { height: 8px; }
.gallery::-webkit-scrollbar-thumb { background: var(--border-2); border-radius: var(--r-full); }
.shot { scroll-snap-align: center; flex: 0 0 auto; width: 232px; display: flex; flex-direction: column; align-items: center; }
.shot figcaption { margin-top: 18px; text-align: center; font-size: .86rem; color: var(--ink-2); max-width: 230px; }
.shot figcaption b { display: block; font-family: var(--display); font-size: 1.05rem; color: var(--ink); font-weight: 500; margin-bottom: 4px; }
.gallery__hint { text-align: center; font-size: .8rem; color: var(--ink-3); letter-spacing: .04em; margin-top: 4px; }

/* ═══════════ RICETTARIO — galleria foto reali ═══════════ */
.conti { display: flex; flex-wrap: wrap; gap: 10px; justify-content: center; margin-bottom: 36px; }
.conti__chip { font-size: .85rem; font-weight: 500; padding: 8px 18px; border-radius: var(--r-full); background: var(--bg-elev); border: 1px solid var(--border); color: var(--ink-2); }
.conti__chip--on { background: var(--ink); border-color: var(--ink); color: var(--bg); }
.rgrid {
  display: grid; grid-template-columns: repeat(auto-fill, minmax(220px, 1fr)); gap: 18px;
}
.dishcard {
  position: relative; border-radius: var(--r-lg); overflow: hidden; aspect-ratio: 4 / 5;
  box-shadow: var(--shadow-sm); background: var(--bg-2);
  transition: transform .4s var(--ease), box-shadow .4s var(--ease);
}
.dishcard:hover { transform: translateY(-5px); box-shadow: var(--shadow-lg); }
.dishcard img { width: 100%; height: 100%; object-fit: cover; }
.dishcard::after { content: ''; position: absolute; inset: 0; background: linear-gradient(180deg, transparent 42%, rgba(28,26,24,.72)); }
.dishcard figcaption { position: absolute; left: 16px; right: 16px; bottom: 14px; z-index: 1; color: #fff; }
.dishcard figcaption b { display: block; font-family: var(--display); font-weight: 500; font-size: 1.12rem; line-height: 1.15; }
.dishcard figcaption span { font-size: .78rem; color: rgba(255,255,255,.82); letter-spacing: .02em; }
.rgrid__note { text-align: center; font-size: .95rem; color: var(--ink-2); max-width: 60ch; margin: 36px auto 0; }

/* ── Sections ── */
.section { padding: clamp(56px, 9vw, 100px) 0; }
.section--alt { background: var(--bg-2); }
.section__head { text-align: center; max-width: 660px; margin: 0 auto 52px; }
.section__head .lede { margin-inline: auto; }

/* ── Feature grid ── */
.grid { display: grid; gap: 20px; }
.grid--3 { grid-template-columns: repeat(3, 1fr); }
.feat { background: var(--bg-elev); border: 1px solid var(--border); border-radius: var(--r-lg); padding: 28px 26px; transition: transform .35s var(--ease), box-shadow .35s var(--ease); }
.feat:hover { transform: translateY(-4px); box-shadow: var(--shadow-md); }
.feat__icon { display: grid; place-items: center; width: 48px; height: 48px; border-radius: 14px; background: var(--cs); color: var(--c); margin-bottom: 18px; }
.feat h3 { font-size: 1.2rem; margin-bottom: 8px; }
.feat p { color: var(--ink-2); font-size: .96rem; }
.feat--ai { position: relative; }
.feat--ai::before { content: 'IA'; position: absolute; top: 18px; right: 20px; font-size: .58rem; font-weight: 700; letter-spacing: .08em; color: var(--info); background: #D7DFE6; padding: 3px 8px; border-radius: var(--r-full); }

/* ── Split sections ── */
.split { display: grid; grid-template-columns: 1fr 1fr; gap: 56px; align-items: center; }
.split--reverse .split__copy { order: 2; }
.split__copy h2 { margin: 4px 0 18px; }
.checklist { list-style: none; margin-top: 24px; display: grid; gap: 12px; }
.checklist li { position: relative; padding-left: 30px; color: var(--ink-2); }
.checklist li::before { content: ''; position: absolute; left: 0; top: 7px; width: 18px; height: 18px; border-radius: 50%; background: var(--fresh); }
.checklist li::after { content: '✓'; position: absolute; left: 5px; top: 4px; color: #fff; font-size: 11px; font-weight: 700; }
.link-arrow { display: inline-flex; align-items: center; gap: 8px; margin-top: 26px; font-weight: 600; color: var(--warm); }
.link-arrow span { transition: transform .25s var(--ease); }
.link-arrow:hover span { transform: translateX(5px); }

/* World tiles (showcase) */
.world-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 14px; }
.world-tile { height: 116px; border-radius: var(--r-lg); display: grid; align-items: end; padding: 16px; color: #fff; background: var(--a); position: relative; overflow: hidden; box-shadow: var(--shadow-sm); }
.world-tile::after { content: ''; position: absolute; inset: 0; background: linear-gradient(180deg, transparent 40%, rgba(44,42,38,.35)); }
.world-tile span { position: relative; z-index: 1; font-family: var(--display); font-size: 1.15rem; font-weight: 500; }
.world-tile--wide { grid-column: span 2; height: 96px; }

/* Stat card (Lab / Frigo showcase) */
.stat-card { background: var(--bg-elev); border: 1px solid var(--border); border-radius: var(--r-xl); padding: 26px; box-shadow: var(--shadow-md); max-width: 420px; margin-inline: auto; }
.stat-card__photo { height: 158px; border-radius: var(--r-lg); margin-bottom: 22px; }
.stat-card__head { display: flex; justify-content: space-between; align-items: flex-start; gap: 16px; margin-bottom: 22px; }
.stat-card__head span { font-family: var(--display); font-size: 1.05rem; line-height: 1.2; }
.stat-card__head b { font-family: var(--display); font-weight: 500; color: var(--warm); white-space: nowrap; }
.bars { display: grid; gap: 14px; }
.bar { display: grid; grid-template-columns: 78px 1fr 44px; align-items: center; gap: 12px; }
.bar__label { font-size: .82rem; color: var(--ink-2); }
.bar__track { height: 8px; background: var(--bg-2); border-radius: var(--r-full); overflow: hidden; }
.bar__track i { display: block; height: 100%; border-radius: var(--r-full); }
.bar__val { font-size: .82rem; font-weight: 600; text-align: right; }
.stat-card__foot { display: flex; align-items: center; justify-content: space-between; margin-top: 22px; padding-top: 18px; border-top: 1px solid var(--border); font-size: .85rem; color: var(--ink-2); text-transform: uppercase; letter-spacing: .08em; }

/* Frigo showcase card */
.stat-card--fridge { display: grid; gap: 16px; }
.fr-row { display: flex; align-items: center; gap: 14px; }
.fr-thumb { width: 52px; height: 52px; border-radius: var(--r-md); flex-shrink: 0; box-shadow: var(--shadow-sm); }
.fr-txt { flex: 1; }
.fr-txt b { font-family: var(--display); font-weight: 500; font-size: 1.02rem; display: block; }
.fr-txt small { color: var(--ink-3); font-size: .82rem; }
.fr-kcal { font-family: var(--display); color: var(--warm); font-size: 1.05rem; }
.fr-foot { margin-top: 6px; padding-top: 16px; border-top: 1px solid var(--border); text-align: center; font-weight: 600; font-size: .9rem; color: var(--warm); }

/* ── Plans ── */
.plans { display: grid; grid-template-columns: repeat(auto-fit, minmax(218px, 1fr)); gap: 20px; align-items: stretch; max-width: 1040px; margin-inline: auto; }
.plan { position: relative; background: var(--bg-elev); border: 1px solid var(--border); border-radius: var(--r-xl); padding: 30px 26px; display: flex; flex-direction: column; gap: 16px; transition: transform .35s var(--ease), box-shadow .35s var(--ease); }
.plan:hover { transform: translateY(-4px); box-shadow: var(--shadow-md); }
.plan--featured { border-color: var(--warm); box-shadow: var(--shadow-md); }
.plan--featured::after { content: ''; position: absolute; inset: 0; border-radius: var(--r-xl); border: 1.5px solid var(--warm); pointer-events: none; }
.plan__badge { position: absolute; top: -12px; left: 50%; transform: translateX(-50%); background: var(--warm); color: #fff; font-size: .68rem; font-weight: 600; padding: 5px 14px; border-radius: var(--r-full); white-space: nowrap; }
.plan__name { font-size: 1.35rem; }
.plan__price { display: flex; align-items: baseline; gap: 8px; }
.plan__price b { font-family: var(--display); font-weight: 500; font-size: 2.2rem; color: var(--ink); }
.plan__price small { color: var(--ink-3); font-size: .85rem; }
.plan__list { list-style: none; display: grid; gap: 11px; margin: 4px 0 auto; }
.plan__list li { position: relative; padding-left: 26px; font-size: .94rem; color: var(--ink-2); }
.plan__list li::before { content: '✓'; position: absolute; left: 0; top: 0; color: var(--fresh); font-weight: 700; }
.plans__note { text-align: center; font-size: .82rem; color: var(--ink-3); max-width: 60ch; margin: 30px auto 0; }

/* CTA band */
.cta-band { background: var(--ink); color: var(--bg); padding: clamp(56px, 9vw, 96px) 0; text-align: center; }
.cta-band h2 { color: var(--bg); }
.cta-band p { color: rgba(250,250,247,.72); margin: 14px 0 30px; font-size: 1.1rem; }
.cta-band .btn--play { background: var(--warm); }
.cta-band__inner { display: flex; flex-direction: column; align-items: center; }

/* Footer */
.footer { background: var(--bg-2); border-top: 1px solid var(--border); padding: 56px 0 30px; }
.footer__inner { display: flex; justify-content: space-between; align-items: flex-start; gap: 30px; flex-wrap: wrap; }
.brand--footer { font-size: 1.1rem; }
.footer__tag { color: var(--ink-2); font-size: .92rem; margin-top: 10px; }
.footer__links { display: flex; gap: 26px; flex-wrap: wrap; }
.footer__links a { color: var(--ink-2); font-size: .92rem; transition: color .2s; }
.footer__links a:hover { color: var(--warm); }
.footer__legal { margin-top: 36px; padding-top: 22px; border-top: 1px solid var(--border); font-size: .8rem; color: var(--ink-3); max-width: 70ch; }

/* ═══════════ LEGAL PAGES (privacy / termini) ═══════════ */
.nav__back { color: var(--ink-2); font-weight: 500; font-size: .95rem; display: inline-flex; align-items: center; gap: 7px; transition: color .2s; }
.nav__back:hover { color: var(--warm); }
.legal { max-width: 780px; margin-inline: auto; padding: clamp(40px, 6vw, 72px) 24px clamp(48px, 7vw, 88px); }
.legal__head { margin-bottom: 40px; padding-bottom: 28px; border-bottom: 1px solid var(--border); }
.legal__head .eyebrow { margin-bottom: 12px; }
.legal__head h1 { font-size: clamp(2rem, 4vw, 2.9rem); margin-bottom: 14px; }
.legal__meta { font-size: .85rem; color: var(--ink-3); }
.legal__intro { font-size: 1.08rem; color: var(--ink-2); margin-bottom: 8px; }
.legal section { margin-top: 34px; }
.legal h2 { font-size: 1.28rem; margin-bottom: 12px; display: flex; gap: 12px; align-items: baseline; }
.legal h2 .num { font-family: var(--display); font-size: 1rem; color: var(--warm); font-weight: 500; flex-shrink: 0; min-width: 1.4em; }
.legal p { color: var(--ink-2); margin-bottom: 10px; }
.legal ul { list-style: none; margin: 14px 0 4px; display: grid; gap: 10px; padding-left: 38px; }
.legal li { position: relative; color: var(--ink-2); }
.legal li::before { content: ''; position: absolute; left: -22px; top: 9px; width: 7px; height: 7px; border-radius: 50%; background: var(--warm-soft); border: 1.5px solid var(--warm); }
.legal a { color: var(--warm); text-decoration: underline; text-underline-offset: 2px; }
.legal a:hover { color: var(--warm-hover); }
.legal strong { color: var(--ink); font-weight: 600; }
.legal__box { background: var(--bg-2); border: 1px solid var(--border); border-radius: var(--r-lg); padding: 22px 26px; margin-top: 40px; }
.legal__box p { margin: 0; font-size: .95rem; }
.legal__warn { background: #FBF1DD; border: 1px solid #E6C883; border-radius: var(--r-lg); padding: 22px 26px; }
.legal__warn h2 { color: #8A5A12; }
.legal__warn h2 .num { color: #B07B1E; }
.legal__warn p { color: #6E4F18; }
.legal__warn strong { color: #523A0F; }

/* ═══════════ SHARE / REDEEM LANDING (r.html) ═══════════ */
.redeem-wrap { min-height: calc(100vh - 140px); display: grid; place-items: center; padding: 40px 20px; }
.redeem { width: 100%; max-width: 460px; background: var(--bg-elev); border: 1px solid var(--border); border-radius: var(--r-xl); box-shadow: var(--shadow-lg); overflow: hidden; }
.redeem__media { height: 200px; background: var(--bg-2); position: relative; }
.redeem__media img { width: 100%; height: 100%; object-fit: cover; }
.redeem__gift { position: absolute; top: 14px; left: 14px; background: var(--gold-soft); color: #8A6A1E; font-size: .72rem; font-weight: 600; padding: 6px 12px; border-radius: var(--r-full); display: inline-flex; gap: 6px; align-items: center; box-shadow: var(--shadow-sm); }
.redeem__body { padding: 28px 26px 30px; text-align: center; }
.redeem h1 { font-size: 1.5rem; margin: 8px 0 8px; }
.redeem__sub { color: var(--ink-2); font-size: .96rem; margin-bottom: 22px; }
.redeem__sub b { color: var(--ink); }
.redeem__code { font-family: ui-monospace, 'SF Mono', Menlo, monospace; letter-spacing: .14em; font-size: 1.1rem; color: var(--ink); background: var(--bg-2); border: 1px dashed var(--border-2); border-radius: var(--r-md); padding: 11px; margin-bottom: 20px; }
.redeem .btn { width: 100%; margin-bottom: 10px; }
.redeem__note { font-size: .8rem; color: var(--ink-3); margin-top: 10px; }
.redeem__steps { text-align: left; margin: 22px 0 0; padding-top: 20px; border-top: 1px solid var(--border); display: grid; gap: 12px; }
.redeem__step { display: flex; gap: 12px; align-items: flex-start; font-size: .9rem; color: var(--ink-2); }
.redeem__step b { display: grid; place-items: center; width: 22px; height: 22px; border-radius: 50%; background: var(--warm); color: #fff; font-size: .72rem; flex-shrink: 0; }

/* ── Scroll reveal ── */
.reveal { opacity: 0; transform: translateY(22px); transition: opacity .7s var(--ease), transform .7s var(--ease); }
.reveal.is-in { opacity: 1; transform: none; }

/* ── Responsive ── */
@media (max-width: 920px) {
  .hero__grid { grid-template-columns: 1fr; gap: 40px; }
  .hero__device { order: -1; }
  .grid--3 { grid-template-columns: 1fr 1fr; }
  .split { grid-template-columns: 1fr; gap: 36px; }
  .split--reverse .split__copy { order: 0; }
  .plans { grid-template-columns: 1fr; max-width: 420px; }
  .plan--featured { order: -1; }
  .nav__links { display: none; }
}
@media (max-width: 560px) {
  .grid--3 { grid-template-columns: 1fr; }
  .trust { gap: 22px; }
  .footer__inner { flex-direction: column; }
}
@media (prefers-reduced-motion: reduce) {
  * { animation: none !important; transition: none !important; scroll-behavior: auto !important; }
  .reveal { opacity: 1; transform: none; }
}
