/*
 * nutrimy.it — the public site. Same identity as the app and Nutrimy Studio
 * (Bricolage Grotesque + Figtree, garden green, terracotta, amber, plum), each
 * section with its own world: green for the studio, warm amber for patients,
 * plum for privacy. Fonts are served from here: no third-party requests.
 */
@font-face {
  font-family: 'Bricolage Grotesque';
  src: url('fonts/bricolage-grotesque-latin-wght-normal.woff2') format('woff2');
  font-weight: 200 800;
  font-display: swap;
}
@font-face {
  font-family: 'Figtree';
  src: url('fonts/figtree-latin-wght-normal.woff2') format('woff2');
  font-weight: 300 900;
  font-display: swap;
}

:root {
  --paper: #fbf6ee;
  --paper-deep: #f3ece0;
  --white: #ffffff;
  --green: #1f6b4a;
  --green-deep: #14432f;
  --green-night: #0f3424;
  --green-soft: #e4f0e8;
  --mint: #b9e3c6;
  --terracotta: #d2603a;
  --terracotta-soft: #fbeae3;
  --sun: #ffd23f;
  --amber: #e9a020;
  --amber-soft: #fdf1dc;
  --amber-ink: #7a4f05;
  --plum: #6b4a7a;
  --plum-soft: #f0e9f3;
  --ink: #1b241e;
  --ink-soft: #46524a;
  --line: #e7dfd2;

  --display: 'Bricolage Grotesque', ui-rounded, system-ui, sans-serif;
  --body: 'Figtree', system-ui, -apple-system, 'Segoe UI', sans-serif;
  --ease: cubic-bezier(0.22, 1, 0.36, 1);
  --gutter: clamp(16px, 4vw, 40px);

  /* stacking: sticky header above content, skip link above all */
  --z-header: 10;
  --z-skip: 20;
}

* { box-sizing: border-box; }
html { scroll-behavior: smooth; scroll-padding-top: 88px; }
body {
  margin: 0;
  background: var(--paper);
  color: var(--ink);
  font: 17px/1.6 var(--body);
  -webkit-font-smoothing: antialiased;
  text-rendering: optimizeLegibility;
}
img { max-width: 100%; height: auto; display: block; }
a { color: var(--green); }
h1, h2, h3 { font-family: var(--display); line-height: 1.08; margin: 0; text-wrap: balance; letter-spacing: -0.02em; }
p { margin: 0; text-wrap: pretty; }
:focus-visible { outline: 3px solid var(--sun); outline-offset: 3px; border-radius: 6px; }

.wrap { width: min(1180px, 100% - 2 * var(--gutter)); margin-inline: auto; }
.i { width: 1.15em; height: 1.15em; flex: none; fill: currentColor; vertical-align: -0.2em; }

.skip {
  position: absolute; left: 16px; top: -60px; z-index: var(--z-skip);
  background: var(--sun); color: var(--green-night); padding: 10px 16px; border-radius: 999px; font-weight: 700;
}
.skip:focus { top: 12px; }

/* ── Buttons ─────────────────────────────────────────────────────────── */

.btn {
  display: inline-flex; align-items: center; justify-content: center; gap: 10px;
  min-height: 52px; padding: 0 26px; border-radius: 999px;
  font: 700 17px/1 var(--body); text-decoration: none; white-space: nowrap;
  transition: transform 200ms var(--ease), background 200ms var(--ease), box-shadow 200ms var(--ease);
}
.btn:hover { transform: translateY(-2px); }
.btn:active { transform: translateY(0); }
.btn-sun { background: var(--sun); color: var(--green-night); box-shadow: 0 10px 24px -10px rgba(255, 210, 63, 0.8); }
.btn-sun:hover { background: #ffdb60; box-shadow: 0 14px 30px -10px rgba(255, 210, 63, 0.9); }
.btn-ghost-light { color: #fff; border: 2px solid rgba(255, 255, 255, 0.35); }
.btn-ghost-light:hover { border-color: #fff; }
.btn-light { background: #fff; color: var(--green-deep); }
.btn-sm { min-height: 44px; padding: 0 18px; font-size: 15px; }
.btn .i { transition: transform 200ms var(--ease); }
.btn:hover .i { transform: translateX(3px); }

/* ── Header ──────────────────────────────────────────────────────────── */

.top {
  position: sticky; top: 0; z-index: var(--z-header);
  background: color-mix(in srgb, var(--green-deep) 92%, transparent);
  backdrop-filter: saturate(140%) blur(10px);
  -webkit-backdrop-filter: saturate(140%) blur(10px);
}
.top-row { display: flex; align-items: center; gap: 28px; min-height: 72px; }
.logo { display: inline-flex; align-items: center; gap: 10px; text-decoration: none; color: #fff; font: 800 22px/1 var(--display); letter-spacing: -0.02em; }
.logo img { width: 36px; height: 36px; border-radius: 10px; }
.foot .logo img { width: 32px; height: 32px; }
.logo-dark { color: var(--green-deep); }
.top-nav { display: flex; gap: 24px; margin-left: 12px; }
.top-nav a, .link-quiet { color: rgba(255, 255, 255, 0.82); text-decoration: none; font-weight: 600; font-size: 15px; }
.top-nav a:hover, .link-quiet:hover { color: #fff; }
.top-cta { margin-left: auto; display: flex; align-items: center; gap: 20px; }
@media (max-width: 900px) {
  .top-nav { display: none; }
}
@media (max-width: 420px) {
  .link-quiet { display: none; }
}

/* ── Hero ────────────────────────────────────────────────────────────── */

.hero {
  position: relative;
  background:
    radial-gradient(60% 70% at 85% 30%, rgba(123, 203, 82, 0.22), transparent 70%),
    radial-gradient(50% 60% at 10% 90%, rgba(255, 210, 63, 0.10), transparent 70%),
    var(--green-deep);
  color: #fff;
  padding: clamp(40px, 7vw, 88px) 0 clamp(110px, 12vw, 160px);
  overflow: hidden;
}
.hero-grid { display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 1.05fr); gap: clamp(32px, 5vw, 72px); align-items: center; }
.hero-tag {
  display: inline-flex; align-items: center; gap: 8px; padding: 7px 14px; border-radius: 999px;
  background: rgba(255, 255, 255, 0.1); color: var(--mint); font-weight: 600; font-size: 15px;
}
.hero h1 { font-weight: 800; font-size: clamp(40px, 5.6vw, 76px); margin: 22px 0 22px; letter-spacing: -0.03em; }
.mark { position: relative; white-space: normal; color: var(--sun); }
.hero-lead { font-size: clamp(18px, 1.6vw, 21px); color: rgba(255, 255, 255, 0.86); max-width: 34ch; line-height: 1.55; }
.hero-actions { display: flex; flex-wrap: wrap; gap: 14px; margin-top: 34px; }
.hero-proof { list-style: none; padding: 0; margin: 28px 0 0; display: flex; flex-wrap: wrap; gap: 10px 22px; font-size: 15px; color: rgba(255, 255, 255, 0.8); }
.hero-proof li { display: inline-flex; align-items: center; gap: 7px; }
.hero-proof .i { color: var(--mint); }

.hero-scene { position: relative; min-height: 520px; }
.browser {
  background: #fff; border-radius: 18px; overflow: hidden;
  box-shadow: 0 40px 80px -30px rgba(0, 0, 0, 0.55), 0 0 0 1px rgba(255, 255, 255, 0.08);
}
.browser-bar { display: flex; align-items: center; gap: 7px; padding: 11px 14px; background: #f4efe6; }
.browser-bar span { width: 11px; height: 11px; border-radius: 50%; background: #dccfbd; }
.browser-bar em { margin-left: 10px; font: 600 12px var(--body); font-style: normal; color: #8a7e6c; background: #fff; padding: 4px 12px; border-radius: 999px; }
.hero-scene .browser { position: absolute; right: 0; top: 10px; width: 92%; }
.phone {
  background: #1a1a1a; border-radius: 34px; padding: 8px;
  box-shadow: 0 30px 60px -20px rgba(0, 0, 0, 0.55);
}
.phone img { border-radius: 27px; }
.phone-hero { position: absolute; left: 0; bottom: 0; width: 34%; max-width: 220px; }
.hero-plant { position: absolute; right: -6px; bottom: -36px; width: 22%; max-width: 160px; filter: drop-shadow(0 18px 24px rgba(0, 0, 0, 0.35)); }
.bubble {
  position: absolute; left: 30%; bottom: 36px; display: flex; align-items: center; gap: 10px;
  background: #fff; color: var(--ink); border-radius: 18px; padding: 10px 16px 10px 10px;
  box-shadow: 0 20px 40px -16px rgba(0, 0, 0, 0.45); font-size: 15px; max-width: 280px;
}
.bubble img { width: 38px; height: auto; }
.bubble strong { color: var(--green); }
.hero-edge { position: absolute; left: 0; right: 0; bottom: -1px; width: 100%; height: 80px; fill: var(--paper); }

@media (max-width: 940px) {
  .hero-grid { grid-template-columns: 1fr; }
  .hero-scene { min-height: 0; aspect-ratio: 1.15; margin-top: 8px; }
}
@media (max-width: 520px) {
  .bubble { left: 24%; bottom: 8px; font-size: 13px; }
  .hero-plant { bottom: -20px; }
}

/* Page-load choreography for the hero: content is visible without it. */
@media (prefers-reduced-motion: no-preference) {
  .hero-tag, .hero h1, .hero-lead, .hero-actions, .hero-proof { animation: rise 900ms var(--ease) both; }
  .hero h1 { animation-delay: 80ms; }
  .hero-lead { animation-delay: 180ms; }
  .hero-actions { animation-delay: 260ms; }
  .hero-proof { animation-delay: 340ms; }
  .hero-scene .browser { animation: rise 1100ms var(--ease) 200ms both; }
  .phone-hero { animation: slide-in 1100ms var(--ease) 420ms both; }
  .hero-plant { animation: grow 900ms var(--ease) 780ms both; transform-origin: 50% 100%; }
  .bubble { animation: pop 700ms var(--ease) 1150ms both; }
}
@keyframes rise { from { opacity: 0; transform: translateY(28px); } to { opacity: 1; transform: none; } }
@keyframes slide-in { from { opacity: 0; transform: translate(-30px, 40px) rotate(-4deg); } to { opacity: 1; transform: none; } }
@keyframes grow { from { opacity: 0; transform: scale(0.4); } to { opacity: 1; transform: none; } }
@keyframes pop { from { opacity: 0; transform: translateY(12px) scale(0.92); } to { opacity: 1; transform: none; } }

/* ── Statement ───────────────────────────────────────────────────────── */

.statement { padding: clamp(56px, 8vw, 104px) 0 clamp(24px, 4vw, 48px); }
.statement p {
  font: 800 clamp(28px, 3.6vw, 48px)/1.15 var(--display); letter-spacing: -0.025em;
  max-width: 24ch; color: var(--green-deep); text-wrap: balance;
}
.statement span { display: block; margin-top: 18px; font: 500 clamp(18px, 1.7vw, 22px)/1.55 var(--body); letter-spacing: 0; color: var(--ink-soft); max-width: 52ch; }

/* ── Steps (a real sequence: numbered on purpose) ────────────────────── */

.steps-section { padding: clamp(40px, 6vw, 80px) 0; }
.section-title { font-weight: 800; font-size: clamp(30px, 3.4vw, 46px); max-width: 22ch; color: var(--green-deep); }
.steps { list-style: none; padding: 0; margin: 48px 0 0; display: grid; grid-template-columns: repeat(3, 1fr); gap: clamp(20px, 3vw, 40px); position: relative; }
.steps::before {
  content: ''; position: absolute; top: 28px; left: 8%; right: 8%; height: 0;
  border-top: 3px dashed color-mix(in srgb, var(--amber) 70%, transparent);
}
.steps li { position: relative; }
.step-n {
  position: relative; display: grid; place-items: center; width: 56px; height: 56px; border-radius: 50%;
  background: var(--green); color: #fff; font: 800 24px var(--display);
  box-shadow: 0 0 0 8px var(--paper);
}
.step-i { position: absolute; top: 12px; left: 72px; width: 32px; height: 32px; color: var(--amber); }
.steps h3 { margin: 24px 0 10px; font-size: 24px; color: var(--ink); }
.steps p { color: var(--ink-soft); max-width: 34ch; }
@media (max-width: 820px) {
  .steps { grid-template-columns: 1fr; gap: 36px; }
  .steps::before { top: 28px; bottom: 28px; left: 27px; right: auto; height: auto; border-top: 0; border-left: 3px dashed color-mix(in srgb, var(--amber) 70%, transparent); }
  .steps li { padding-left: 80px; }
  .step-n { position: absolute; left: 0; top: 0; }
  .step-i { display: none; }
  .steps h3 { margin-top: 10px; }
}

/* ── Features ────────────────────────────────────────────────────────── */

.feature {
  display: grid; grid-template-columns: minmax(0, 0.9fr) minmax(0, 1.1fr); gap: clamp(32px, 6vw, 88px);
  align-items: center; padding: clamp(48px, 7vw, 96px) 0;
}
.feature-flip .feature-copy { order: 2; }
.feature h2 { font-weight: 800; font-size: clamp(28px, 3vw, 42px); color: var(--green-deep); }
.feature-copy > p { margin-top: 16px; color: var(--ink-soft); font-size: 18px; max-width: 46ch; }
.ticks { list-style: none; padding: 0; margin: 26px 0 0; display: grid; gap: 12px; }
.ticks li { display: flex; gap: 12px; align-items: flex-start; }
.ticks .i { margin-top: 3px; width: 22px; height: 22px; padding: 4px; border-radius: 50%; background: var(--green-soft); color: var(--green); }
.feature-shot { margin: 0; position: relative; }
.feature-shot::before {
  content: ''; position: absolute; inset: 10% -4% -6% 8%; border-radius: 40px; z-index: -1;
  background: var(--green-soft);
}
.feature-flip .feature-shot::before { background: var(--amber-soft); inset: 10% 8% -6% -4%; }
.feature-shot .browser { box-shadow: 0 30px 60px -28px rgba(20, 67, 47, 0.45), 0 0 0 1px var(--line); }
.tilt-r .browser { transform: rotate(1.2deg); }
.tilt-l .browser { transform: rotate(-1.2deg); }
@media (max-width: 900px) {
  .feature { grid-template-columns: 1fr; }
  .feature-flip .feature-copy { order: 0; }
}

.soon {
  display: flex; gap: 24px; align-items: flex-start; margin-block: clamp(8px, 2vw, 24px) clamp(56px, 8vw, 104px);
  padding: clamp(24px, 4vw, 40px); border-radius: 28px; background: var(--white); border: 1px solid var(--line);
}
.soon-i { width: 52px; height: 52px; color: var(--terracotta); }
.soon-pill { display: inline-block; margin-bottom: 10px; padding: 4px 12px; border-radius: 999px; background: var(--terracotta-soft); color: #9c3d1e; font-weight: 700; font-size: 13px; }
.soon h2 { font-weight: 800; font-size: clamp(24px, 2.4vw, 32px); color: var(--ink); }
.soon p:last-child { margin-top: 10px; color: var(--ink-soft); max-width: 60ch; }
@media (max-width: 560px) { .soon { flex-direction: column; } }

/* ── Patients ────────────────────────────────────────────────────────── */

.patients {
  background: linear-gradient(180deg, var(--amber-soft), #fbe6c3);
  padding: clamp(64px, 9vw, 120px) 0 clamp(56px, 8vw, 96px);
  border-radius: clamp(32px, 5vw, 64px) clamp(32px, 5vw, 64px) 0 0;
}
.patients-head { max-width: 760px; }
.patients-head h2 { font-weight: 800; font-size: clamp(30px, 3.6vw, 50px); color: #4a2f04; }
.patients-head p { margin-top: 18px; font-size: 19px; color: #5a4320; max-width: 56ch; }

.phones { display: flex; justify-content: center; align-items: flex-end; gap: clamp(12px, 3vw, 36px); margin: 56px 0 48px; }
.phones .phone { width: clamp(150px, 22vw, 260px); }
.phone-a { transform: rotate(-6deg) translateY(24px); }
.phone-c { transform: rotate(6deg) translateY(24px); }
.phone-b { z-index: 1; }
@media (max-width: 560px) {
  .phones .phone { width: 31%; border-radius: 22px; padding: 5px; }
  .phones .phone img { border-radius: 18px; }
}

.patient-points { list-style: none; padding: 0; margin: 0; display: flex; flex-wrap: wrap; gap: 24px 40px; }
.patient-points li { display: flex; gap: 14px; flex: 1 1 260px; }
.patient-points .i { width: 40px; height: 40px; color: var(--terracotta); padding: 8px; border-radius: 14px; background: rgba(255, 255, 255, 0.7); }
.patient-points h3 { font-size: 20px; color: #4a2f04; }
.patient-points p { margin-top: 4px; color: #5a4320; font-size: 16px; }

.greenhouse {
  margin-top: clamp(48px, 7vw, 88px); display: grid; grid-template-columns: minmax(0, 0.8fr) minmax(0, 1.2fr);
  gap: 32px; align-items: end;
}
.greenhouse h3 { font-weight: 800; font-size: clamp(26px, 2.6vw, 36px); color: #4a2f04; }
.greenhouse p { margin-top: 14px; color: #5a4320; }
.shelves { display: flex; align-items: flex-end; }
.shelf {
  flex: 1; display: flex; align-items: flex-end; justify-content: space-around; gap: 2px;
  padding: 0 6px; border-bottom: 14px solid #c9b79a; position: relative;
}
.shelf::after { content: ''; position: absolute; left: 0; right: 0; bottom: -14px; height: 3px; background: #2b2a1f; opacity: 0.6; }
.shelf img { width: 18%; height: auto; margin-bottom: -4px; transition: transform 400ms var(--ease); transform-origin: 50% 100%; }
@media (hover: hover) { .shelf img:hover { transform: rotate(-4deg) scale(1.08); } }
@media (max-width: 900px) { .greenhouse { grid-template-columns: 1fr; } }

.download { margin-top: clamp(48px, 6vw, 72px); display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between; gap: 20px; }
.download p { font-size: 18px; color: #4a2f04; }
.stores { display: flex; flex-wrap: wrap; gap: 12px; }
.store {
  display: inline-flex; align-items: center; gap: 10px; min-height: 56px; padding: 0 20px 0 16px; border-radius: 16px;
  background: var(--ink); color: #fff; text-decoration: none; font: 700 18px/1.1 var(--body);
  transition: transform 200ms var(--ease);
}
.store:hover { transform: translateY(-2px); }
.store .i { width: 28px; height: 28px; }
.store small { display: block; font-size: 12px; font-weight: 500; opacity: 0.8; }
.store-soon { background: rgba(27, 36, 30, 0.12); color: #4a2f04; }
.store-soon:hover { transform: none; }

/* ── Privacy ─────────────────────────────────────────────────────────── */

.privacy { padding: clamp(64px, 9vw, 120px) 0; display: grid; grid-template-columns: minmax(0, 0.8fr) minmax(0, 1.2fr); gap: clamp(32px, 6vw, 80px); }
.privacy-i { width: 56px; height: 56px; color: var(--plum); }
.privacy-head h2 { margin-top: 18px; font-weight: 800; font-size: clamp(30px, 3.4vw, 46px); color: #3e2a49; }
.privacy-head p { margin-top: 14px; color: var(--ink-soft); font-size: 18px; }
.privacy-list { margin: 0; display: grid; grid-template-columns: 1fr 1fr; gap: 28px 36px; }
.privacy-list div { padding-top: 18px; border-top: 2px solid var(--plum-soft); }
.privacy-list dt { display: flex; align-items: center; gap: 10px; font: 700 19px/1.3 var(--display); color: #3e2a49; }
.privacy-list dt .i { color: var(--plum); width: 24px; height: 24px; }
.privacy-list dd { margin: 8px 0 0; color: var(--ink-soft); }
@media (max-width: 900px) { .privacy { grid-template-columns: 1fr; } }
@media (max-width: 560px) { .privacy-list { grid-template-columns: 1fr; } }

/* ── FAQ ─────────────────────────────────────────────────────────────── */

.faq { padding: 0 0 clamp(64px, 9vw, 120px); max-width: 860px; }
.faq .section-title { margin-bottom: 28px; }
.faq details { border-top: 1px solid var(--line); }
.faq details:last-of-type { border-bottom: 1px solid var(--line); }
.faq summary {
  display: flex; justify-content: space-between; align-items: center; gap: 16px; cursor: pointer;
  padding: 22px 4px; font: 700 20px/1.3 var(--display); color: var(--ink); list-style: none;
}
.faq summary::-webkit-details-marker { display: none; }
.faq summary .i { width: 22px; height: 22px; color: var(--green); transition: transform 300ms var(--ease); }
.faq details[open] summary .i { transform: rotate(180deg); }
.faq details p { padding: 0 4px 24px; color: var(--ink-soft); max-width: 68ch; }

/* ── Closing ─────────────────────────────────────────────────────────── */

.closing { background: var(--green-deep); color: #fff; overflow: hidden; }
.closing-grid { display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 0.9fr); gap: 32px; align-items: end; padding-top: clamp(56px, 8vw, 96px); }
.closing h2 { font-weight: 800; font-size: clamp(32px, 4vw, 56px); max-width: 16ch; }
.closing p { margin: 16px 0 30px; color: rgba(255, 255, 255, 0.82); font-size: 19px; }
.closing-grid > div:first-child { padding-bottom: clamp(56px, 8vw, 96px); }
.closing-plants { display: flex; align-items: flex-end; justify-content: center; gap: 4px; }
.closing-plants img { width: 30%; margin-bottom: -8px; }
.closing-plants img:nth-child(2) { width: 38%; }
@media (max-width: 760px) { .closing-grid { grid-template-columns: 1fr; } .closing-grid > div:first-child { padding-bottom: 0; } }

/* ── Footer ──────────────────────────────────────────────────────────── */

.foot { background: var(--paper-deep); padding: 56px 0 28px; font-size: 15px; }
.foot-grid { display: grid; grid-template-columns: 1.4fr 1fr 1fr; gap: 32px; }
.foot-grid p { margin-top: 12px; color: var(--ink-soft); max-width: 34ch; }
.foot nav { display: flex; flex-direction: column; gap: 8px; }
.foot nav h2 { font: 700 13px/1.4 var(--body); letter-spacing: 0.06em; text-transform: uppercase; color: var(--ink-soft); margin-bottom: 4px; }
.foot nav a { color: var(--ink); text-decoration: none; padding: 6px 0; }
.foot nav a:hover { color: var(--green); text-decoration: underline; }
.foot-note { margin-top: 40px; padding-top: 20px; border-top: 1px solid var(--line); color: var(--ink-soft); font-size: 13px; }
@media (max-width: 760px) { .foot-grid { grid-template-columns: 1fr; } }

/* Gentle reveals as sections enter, where the browser supports scroll timelines.
   Everything is fully visible without them. */
@media (prefers-reduced-motion: no-preference) {
  @supports (animation-timeline: view()) {
    .steps li, .feature-shot, .phones .phone, .shelf img, .privacy-list div {
      animation: reveal linear both;
      animation-timeline: view();
      animation-range: entry 0% entry 60%;
    }
  }
}
@keyframes reveal { from { opacity: 0.001; translate: 0 32px; } to { opacity: 1; translate: 0 0; } }

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

/* ── Phones ──────────────────────────────────────────────────────────── */

@media (max-width: 640px) {
  body { font-size: 16px; }
  .top-row { min-height: 64px; gap: 12px; }
  .logo { font-size: 20px; }
  .top-cta .btn-sm { padding: 0 14px; font-size: 14px; }

  /* Hero: short copy first, then a scene built for a narrow screen. */
  .hero { padding: 28px 0 96px; }
  .hero-tag { font-size: 13px; padding: 6px 12px; }
  .hero h1 { font-size: clamp(34px, 10vw, 42px); margin: 18px 0 16px; }
  .hero-lead { font-size: 17px; }
  .hero-actions { margin-top: 26px; flex-direction: column; align-items: stretch; }
  .hero-actions .btn { width: 100%; }
  .hero-proof { margin-top: 22px; gap: 8px 16px; font-size: 14px; }
  .hero-scene { aspect-ratio: auto; height: 400px; margin-top: 36px; }
  .hero-scene .browser { top: 0; right: 0; width: 82%; border-radius: 16px; }
  .hero-scene .browser-bar { padding: 8px 10px; }
  .hero-scene .browser-bar em { font-size: 11px; }
  .phone-hero { width: 46%; max-width: 190px; bottom: 0; left: 0; border-radius: 28px; padding: 6px; }
  .phone-hero img { border-radius: 23px; }
  .hero-plant { width: 26%; right: -4px; bottom: -14px; }
  .bubble { left: auto; right: 22%; bottom: 120px; max-width: 170px; font-size: 13px; padding: 8px 12px 8px 8px; }
  .bubble img { width: 30px; }

  .statement { padding: 44px 0 16px; }
  .statement p { font-size: 28px; }
  .statement span { font-size: 17px; }

  .steps-section { padding: 36px 0; }
  .section-title { font-size: 30px; }
  .steps { margin-top: 32px; }

  .feature { padding: 44px 0; gap: 28px; }
  .feature h2 { font-size: 28px; }
  .feature-copy > p { font-size: 17px; }
  .tilt-r .browser, .tilt-l .browser { transform: none; }
  .feature-shot::before { inset: 14% -10px -10px 14%; border-radius: 28px; }
  .feature-flip .feature-shot::before { inset: 14% 14% -10px -10px; }

  .soon { margin-bottom: 48px; }

  /* Patients: the screens become a carousel to swipe. */
  .patients { padding-top: 52px; border-radius: 32px 32px 0 0; }
  .patients-head h2 { font-size: 30px; }
  .patients-head p { font-size: 17px; }
  .phones {
    justify-content: flex-start; align-items: stretch; gap: 16px; margin: 36px calc(-1 * var(--gutter)) 36px;
    padding: 8px var(--gutter) 24px; overflow-x: auto; scroll-snap-type: x mandatory; scrollbar-width: none;
  }
  .phones::-webkit-scrollbar { display: none; }
  .phones .phone { flex: 0 0 62%; width: auto; transform: none; scroll-snap-align: center; border-radius: 30px; padding: 7px; }
  .phones .phone img { border-radius: 24px; }
  .phone-b { order: -1; }

  .greenhouse { margin-top: 44px; gap: 28px; }
  .shelves { flex-direction: column; align-items: stretch; gap: 30px; }
  .shelf { justify-content: space-between; padding: 0 10px; }

  .download { flex-direction: column; align-items: stretch; }
  .stores .store { flex: 1; justify-content: center; }

  .privacy { padding: 56px 0; gap: 28px; }
  .privacy-head h2 { font-size: 30px; }

  .faq summary { font-size: 18px; padding: 18px 2px; min-height: 56px; }

  .closing h2 { font-size: 32px; }
  .closing .btn { width: 100%; }
  .closing-plants { margin-top: 12px; }
  .closing-plants img { width: 28%; }
  .closing-plants img:nth-child(2) { width: 34%; }

  .foot { padding: 40px 0 calc(24px + env(safe-area-inset-bottom)); }
}

/* ── Invite page (/invito/CODICE, rendered by worker.js) ─────────────── */

.invite-body { background: var(--green-deep); min-height: 100vh; }
.invite-body .top { background: transparent; backdrop-filter: none; position: static; }
.invite { position: relative; display: flex; justify-content: center; padding: 24px 0 64px; }
.invite-card {
  position: relative; z-index: 1; width: min(560px, 100%); background: var(--paper); border-radius: 28px;
  padding: clamp(24px, 5vw, 40px); box-shadow: 0 40px 80px -30px rgba(0, 0, 0, 0.55);
}
.invite-plant { position: absolute; z-index: 2; width: 120px; right: calc(50% - 320px); top: -10px; filter: drop-shadow(0 16px 20px rgba(0, 0, 0, 0.35)); }
.invite-kicker { color: var(--green); font-weight: 700; font-size: 15px; }
.invite-card h1 { margin-top: 8px; font-weight: 800; font-size: clamp(28px, 5vw, 38px); color: var(--green-deep); max-width: 16ch; }
.invite-where { margin-top: 8px; color: var(--ink-soft); font-weight: 600; }
.invite-lead { margin-top: 16px; color: var(--ink-soft); font-size: 17px; }
.invite-steps { list-style: none; padding: 0; margin: 28px 0 0; display: grid; gap: 24px; counter-reset: step; }
.invite-steps li { counter-increment: step; position: relative; padding-left: 52px; }
.invite-steps li::before {
  content: counter(step); position: absolute; left: 0; top: -2px; width: 36px; height: 36px; border-radius: 50%;
  display: grid; place-items: center; background: var(--green); color: #fff; font: 800 18px var(--display);
}
.invite-steps h2 { font-size: 21px; color: var(--ink); }
.invite-steps p { margin-top: 6px; color: var(--ink-soft); }
.invite-steps .stores { margin-top: 12px; }
.invite-code {
  margin: 14px 0; font: 800 clamp(34px, 9vw, 44px)/1 var(--display); letter-spacing: 0.18em; color: var(--green-deep);
  background: var(--green-soft); border-radius: 16px; padding: 16px 18px; text-align: center;
}
.btn-green { background: var(--green); color: #fff; width: 100%; }
.btn-green:hover { background: var(--green-deep); }
.invite-privacy { margin-top: 28px; display: flex; gap: 10px; align-items: flex-start; color: var(--plum); font-size: 15px; }
.invite-privacy .i { width: 22px; height: 22px; flex: none; }
.invite-card > .stores { margin-top: 20px; }
@media (max-width: 760px) { .invite-plant { width: 84px; right: 4px; top: -36px; } .invite { padding-top: 40px; } .invite-card h1 { padding-right: 56px; } }
