/* 17 Fit — the public website. One dark theme, the app's own: the colours
   of its dark palette (lib/core/theme/app_palette.dart), its typeface
   (Manrope, @font-face in base.html) and the calorie ring of its icon.
   Images are always shown whole and in proportion: phones are never
   cropped, rotated or laid over one another. */

:root {
  --bg: #0A0B0D;
  --raise: #0F1114;
  --card: #15171B;
  --track: #24272D;
  --line: rgba(255, 255, 255, .075);
  --line-strong: rgba(255, 255, 255, .14);
  --fg: #F2F3F5;
  --soft: #C3C7CD;
  --muted: #8B9099;
  --lime: #C8F560;
  --lime-hover: #D6FA82;
  --green: #4ADE80;
  --violet: #7C5CFF;
  --violet-soft: #B7A6FF;
  --protein: #FF7A93;
  --fat: #FFC04D;
  --carbs: #6EA8FF;
  --on-accent: #0A0B0D;
  --glass: rgba(21, 23, 27, .78);
  --grad: linear-gradient(115deg, var(--lime) 0%, var(--green) 100%);
  --font: "Manrope", ui-sans-serif, system-ui, -apple-system, "Segoe UI", Roboto, sans-serif;
  --step-1: 20px;
  --step-2: clamp(24px, 2.4vw, 30px);
  --step-3: clamp(32px, 4.6vw, 54px);
  --step-4: clamp(42px, 7vw, 86px);
  --radius: 28px;
  --wrap: 1180px;
  --head: 68px;
  color-scheme: dark;
}

*, *::before, *::after { box-sizing: border-box; }
html { background: var(--bg); scroll-behavior: smooth; scroll-padding-top: calc(var(--head) + 16px); -webkit-text-size-adjust: 100%; }
body { margin: 0; background: var(--bg); color: var(--fg); font: 500 17px/1.6 var(--font); -webkit-font-smoothing: antialiased; overflow-wrap: break-word; }
main { display: block; overflow-x: clip; }
img { display: block; max-width: 100%; height: auto; }
a { color: inherit; }
:focus-visible { outline: 2px solid var(--lime); outline-offset: 3px; border-radius: 8px; }
h1, h2, h3 { margin: 0; font-weight: 800; letter-spacing: -.035em; line-height: 1.06; text-wrap: balance; hyphens: auto; }
h2 { font-size: var(--step-3); }
h3 { font-size: var(--step-1); letter-spacing: -.02em; line-height: 1.25; }
p { margin: 0; }
ul, ol { margin: 0; padding: 0; }
.wrap { width: 100%; max-width: var(--wrap); margin: 0 auto; padding-inline: 20px; }
.grad { background: var(--grad); -webkit-background-clip: text; background-clip: text; color: transparent; }
.eyebrow { display: block; font-size: 13px; font-weight: 700; letter-spacing: .14em; text-transform: uppercase; color: var(--lime); }
.lead { color: var(--soft); font-size: var(--step-1); line-height: 1.55; max-width: 36em; }
.muted { color: var(--muted); }
.num { font-variant-numeric: tabular-nums; }
.skip { position: absolute; left: 16px; top: -60px; z-index: 50; padding: 10px 16px; border-radius: 999px; background: var(--lime); color: var(--on-accent); font-weight: 700; text-decoration: none; }
.skip:focus { top: 12px; }
.section { padding-block: clamp(72px, 10vw, 132px); }
.section.tight { padding-top: 0; }
.section-head { display: grid; gap: 18px; max-width: 780px; margin-bottom: clamp(36px, 5vw, 60px); }
.stack { display: grid; gap: 20px; align-content: start; }

/* Header */
.site-head { position: sticky; top: 0; z-index: 30; background: rgba(10, 11, 13, .78); -webkit-backdrop-filter: saturate(160%) blur(18px); backdrop-filter: saturate(160%) blur(18px); border-bottom: 1px solid var(--line); padding-top: env(safe-area-inset-top, 0px); }
.site-head .wrap { display: flex; align-items: center; gap: 28px; min-height: var(--head); }
.brand { display: inline-flex; align-items: center; gap: 10px; flex: none; text-decoration: none; font-weight: 800; font-size: 19px; letter-spacing: -.02em; color: var(--fg); }
.brand img { width: 34px; height: 34px; }
.nav { display: flex; gap: 24px; margin-right: auto; min-width: 0; }
.nav a { text-decoration: none; color: var(--soft); font-size: 15px; font-weight: 600; white-space: nowrap; }
.nav a:hover { color: var(--fg); }
.head-actions { display: flex; align-items: center; gap: 10px; margin-left: auto; }

/* Language menu */
.lang { position: relative; }
.lang summary { list-style: none; cursor: pointer; display: flex; align-items: center; gap: 6px; min-height: 40px; padding: 0 12px; border-radius: 999px; border: 1px solid var(--line-strong); font-size: 14px; font-weight: 700; color: var(--soft); text-transform: uppercase; }
.lang summary::-webkit-details-marker { display: none; }
.lang summary:hover { color: var(--fg); }
.lang summary svg { width: 16px; height: 16px; }
.lang ul { position: absolute; right: 0; top: calc(100% + 8px); list-style: none; padding: 6px; background: var(--card); border: 1px solid var(--line-strong); border-radius: 16px; width: 210px; box-shadow: 0 24px 60px rgba(0, 0, 0, .5); }
.lang li a { display: flex; justify-content: space-between; gap: 12px; padding: 9px 12px; border-radius: 10px; text-decoration: none; font-size: 15px; color: var(--soft); }
.lang li a:hover { background: var(--track); color: var(--fg); }
.lang li a[aria-current] { color: var(--lime); }
.lang li a span { color: var(--muted); font-size: 13px; text-transform: uppercase; }

/* Buttons and store badges */
.btn { display: inline-flex; align-items: center; justify-content: center; gap: 10px; min-height: 48px; padding: 0 22px; border-radius: 999px; font: 700 16px/1.2 var(--font); text-decoration: none; text-align: center; border: 1px solid transparent; cursor: pointer; transition: background .15s ease, transform .15s ease; }
.btn:active { transform: scale(.98); }
.btn-primary { background: var(--lime); color: var(--on-accent); }
.btn-primary:hover { background: var(--lime-hover); }
.btn-ghost { border-color: var(--line-strong); color: var(--fg); background: transparent; }
.btn-ghost:hover { background: rgba(255, 255, 255, .05); }
.btn-sm { min-height: 40px; padding: 0 16px; font-size: 14px; }
.btn svg { width: 18px; height: 18px; flex: none; }
.cta-row { display: flex; flex-wrap: wrap; gap: 12px; align-items: center; }
.store { display: inline-flex; align-items: center; gap: 12px; min-height: 58px; padding: 6px 22px 6px 18px; border-radius: 16px; background: var(--fg); color: var(--on-accent); text-decoration: none; transition: transform .15s ease; }
.store:hover { transform: translateY(-1px); }
.store svg { width: 26px; height: 26px; flex: none; }
.store span { display: grid; }
.store small { font-size: 12px; font-weight: 600; line-height: 1.15; }
.store b { font-size: 21px; font-weight: 800; letter-spacing: -.02em; line-height: 1.1; }
.store.alt { background: #000; color: var(--fg); border: 1px solid var(--line-strong); }

/* Phones: an app screenshot in its frame, always whole */
.phone { width: 100%; height: auto; filter: drop-shadow(0 30px 50px rgba(0, 0, 0, .55)); }
.phones { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: clamp(14px, 3vw, 32px); align-items: start; max-width: 600px; margin-inline: auto; }

/* Hero */
.hero { position: relative; padding-block: clamp(40px, 7vw, 96px) clamp(56px, 7vw, 96px); }
.hero::before { content: ""; position: absolute; right: -10%; top: -20%; width: 70%; aspect-ratio: 1; background: radial-gradient(closest-side, rgba(200, 245, 96, .15), transparent 70%); pointer-events: none; }
.hero .wrap { position: relative; display: grid; grid-template-columns: minmax(0, 1.02fr) minmax(0, 1fr); gap: clamp(36px, 5vw, 72px); align-items: center; }
.hero-copy { display: grid; gap: 26px; }
.hero h1 { font-size: var(--step-4); line-height: 1; letter-spacing: -.045em; }
.hero h1 .kicker { display: block; margin-bottom: 22px; font-size: 15px; line-height: 1.4; letter-spacing: .14em; text-transform: uppercase; color: var(--lime); }
.hero h1 .line { display: block; }
.facts { list-style: none; display: flex; flex-wrap: wrap; gap: 10px 22px; color: var(--soft); font-size: 15px; font-weight: 600; }
.facts li { display: flex; align-items: center; gap: 8px; }
.facts svg { width: 18px; height: 18px; flex: none; color: var(--lime); }

.visual { display: grid; gap: 18px; width: min(520px, 100%); margin-inline: auto; }
.stage { position: relative; width: 100%; aspect-ratio: 1; }
.ring { position: absolute; inset: 0; width: 100%; height: 100%; }
.ring .arc { stroke-dasharray: 83 100; animation: draw 1.6s cubic-bezier(.2, .7, .2, 1) both; }
.ring .knob { animation: fade .4s 1.4s both; }
.plate { position: absolute; inset: 11%; border-radius: 50%; overflow: hidden; box-shadow: 0 40px 90px rgba(0, 0, 0, .55), inset 0 0 0 1px rgba(255, 255, 255, .08); }
.plate img { width: 100%; height: 100%; object-fit: cover; }
.pin { position: absolute; display: grid; justify-items: center; gap: 6px; transform: translate(-50%, -6px); max-width: 60%; animation: pop .5s both; }
.pin i { width: 12px; height: 12px; border-radius: 50%; background: var(--lime); box-shadow: 0 0 0 4px rgba(200, 245, 96, .3), 0 0 18px rgba(200, 245, 96, .8); }
.pin span { padding: 6px 12px; border-radius: 999px; background: var(--glass); -webkit-backdrop-filter: blur(12px); backdrop-filter: blur(12px); border: 1px solid var(--line-strong); font-size: 14px; font-weight: 700; line-height: 1.3; text-align: center; }
.pin b { color: var(--lime); font-weight: 800; white-space: nowrap; }
.pin.p1 { left: 56%; top: 32%; animation-delay: 1s; }
.pin.p2 { left: 41%; top: 50%; animation-delay: 1.2s; }
.pin.p3 { left: 54%; top: 67%; animation-delay: 1.4s; }
.meal { display: grid; grid-template-columns: auto minmax(0, 1fr); gap: 14px 24px; align-items: center; padding: 18px 22px; border-radius: 22px; background: var(--card); border: 1px solid var(--line-strong); animation: rise .6s 1.7s both; }
.meal-head { display: grid; gap: 2px; }
.meal-label { font-size: 13px; color: var(--muted); font-weight: 700; }
.meal-kcal { font-size: 40px; font-weight: 800; letter-spacing: -.04em; line-height: 1; white-space: nowrap; }
.meal-kcal small { margin-left: 4px; font-size: 15px; color: var(--muted); font-weight: 700; letter-spacing: 0; }
.macros { display: grid; gap: 8px; }
.macro { display: grid; grid-template-columns: minmax(0, 1fr) auto; gap: 3px 8px; font-size: 13px; font-weight: 700; }
.macro .bar { grid-column: 1 / -1; height: 5px; border-radius: 4px; background: var(--track); overflow: hidden; }
.macro .bar i { display: block; height: 100%; border-radius: 4px; }
@keyframes draw { from { stroke-dasharray: 0 100; } }
@keyframes fade { from { opacity: 0; } }
@keyframes pop { from { opacity: 0; transform: translate(-50%, 2px) scale(.96); } }
@keyframes rise { from { opacity: 0; transform: translateY(8px); } }

/* Stats */
.stats { border-block: 1px solid var(--line); background: var(--raise); }
.stats ul { list-style: none; display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 24px; padding-block: 34px; }
.stats li { display: grid; gap: 4px; align-content: start; }
.stats b { font-size: clamp(30px, 3.6vw, 44px); font-weight: 800; letter-spacing: -.04em; line-height: 1.05; }
.stats span { color: var(--muted); font-size: 15px; line-height: 1.4; }

/* Logging: three cards, each with its phone whole */
.trio { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 16px; }
.tile { display: grid; grid-template-rows: auto 1fr; gap: 26px; padding: 30px; border-radius: var(--radius); background: var(--card); border: 1px solid var(--line); min-width: 0; }
.tile.hl { background: radial-gradient(120% 70% at 50% 100%, rgba(200, 245, 96, .1), transparent 60%), var(--card); }
.tile .copy { display: grid; gap: 10px; align-content: start; }
.tile p { color: var(--soft); }
.tile .shot { align-self: end; width: min(240px, 100%); margin-inline: auto; }
.quote { padding: 12px 14px; border-radius: 14px; background: var(--track); color: var(--fg); font-style: italic; }
.minis { list-style: none; display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 16px; margin-top: 16px; }
.mini { display: grid; gap: 8px; align-content: start; padding: 22px; border-radius: 22px; background: var(--card); border: 1px solid var(--line); }
.mini svg { width: 28px; height: 28px; color: var(--lime); }
.mini h3 { font-size: 17px; }
.mini p { color: var(--muted); font-size: 15px; line-height: 1.5; }

/* Split sections */
.split { display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 1fr); gap: clamp(40px, 6vw, 96px); align-items: center; }
.checks { list-style: none; display: grid; gap: 18px; margin-top: 8px; }
.checks li { display: grid; grid-template-columns: 28px minmax(0, 1fr); gap: 14px; align-items: start; }
.checks svg { width: 28px; height: 28px; color: var(--lime); }
.checks b { display: block; font-weight: 800; letter-spacing: -.01em; }
.checks span { color: var(--muted); font-size: 16px; }

/* Coach */
.coach { background: radial-gradient(60% 70% at 25% 40%, rgba(124, 92, 255, .22), transparent 70%), radial-gradient(40% 50% at 90% 90%, rgba(74, 222, 128, .08), transparent 70%), var(--raise); border-block: 1px solid var(--line); }
.coach .eyebrow { color: var(--violet-soft); }
.chat { display: grid; gap: 10px; max-width: 480px; }
.bubble { padding: 12px 16px; border-radius: 20px; font-size: 15px; line-height: 1.5; }
.bubble.me { justify-self: end; max-width: 85%; background: #2A2552; border-bottom-right-radius: 6px; }
.bubble.ai { background: var(--card); border: 1px solid var(--line); border-bottom-left-radius: 6px; color: var(--soft); }
.bubble.ai b { color: var(--lime); white-space: nowrap; }
.chips { display: flex; flex-wrap: wrap; gap: 8px; list-style: none; }
.chip { padding: 8px 14px; border-radius: 999px; border: 1px solid var(--line-strong); font-size: 14px; font-weight: 600; color: var(--soft); }

/* iPhone */
.lock { display: flex; flex-direction: column; align-items: center; gap: 6px; padding: 24px 22px; border-radius: 44px; min-height: 460px; background: radial-gradient(90% 60% at 20% 0%, rgba(124, 92, 255, .55), transparent 60%), radial-gradient(80% 70% at 100% 100%, rgba(74, 222, 128, .32), transparent 60%), #111; border: 1px solid var(--line-strong); }
.island { display: flex; align-items: center; justify-content: space-between; gap: 12px; min-width: 170px; height: 36px; padding: 0 12px; border-radius: 999px; background: #000; font-size: 13px; font-weight: 800; color: var(--lime); }
.island svg { width: 20px; height: 20px; flex: none; }
.lock time { margin-top: 20px; font-size: clamp(64px, 9vw, 96px); font-weight: 700; letter-spacing: -.04em; line-height: 1; color: rgba(255, 255, 255, .92); }
.lock .date { color: rgba(255, 255, 255, .8); font-weight: 700; font-size: 16px; text-align: center; }
.live { margin-top: auto; width: 100%; display: grid; grid-template-columns: 64px minmax(0, 1fr); gap: 12px 16px; align-items: center; padding: 16px 18px; border-radius: 26px; background: rgba(20, 20, 22, .84); -webkit-backdrop-filter: blur(20px); backdrop-filter: blur(20px); }
.live svg { width: 64px; height: 64px; }
.live .big { font-size: 26px; font-weight: 800; letter-spacing: -.03em; line-height: 1.15; }
.live .big small { font-size: 14px; color: var(--muted); font-weight: 700; letter-spacing: 0; }
.live .row { display: flex; flex-wrap: wrap; gap: 4px 12px; margin-top: 4px; font-size: 13px; font-weight: 700; color: var(--soft); }
.live .row span { white-space: nowrap; }
.live .row i { display: inline-block; width: 8px; height: 8px; margin-right: 5px; border-radius: 50%; }
.live .next { grid-column: 1 / -1; padding-top: 10px; border-top: 1px solid var(--line); font-size: 13px; color: var(--muted); font-weight: 600; }
.feats { list-style: none; display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 28px 32px; }
.feat { display: grid; gap: 6px; align-content: start; }
.feat svg { width: 26px; height: 26px; margin-bottom: 6px; color: var(--lime); }
.feat h3 { font-size: 18px; }
.feat p { color: var(--muted); font-size: 15px; line-height: 1.5; }

/* Gallery: every phone whole, in a grid that wraps */
.gallery { list-style: none; display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 48px 32px; }
.gallery figure { margin: 0; display: grid; gap: 16px; justify-items: center; text-align: center; }
.gallery .phone { width: min(250px, 100%); }
.gallery figcaption { display: grid; gap: 2px; max-width: 300px; }
.gallery figcaption b { font-size: 17px; letter-spacing: -.01em; }
.gallery figcaption span { color: var(--muted); font-size: 14px; line-height: 1.45; }
.tags { margin-top: 48px; justify-content: center; }

/* Principles */
.principles { list-style: none; display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); border-top: 1px solid var(--line); }
.principle { display: grid; gap: 10px; align-content: start; padding: 28px 24px 8px 0; }
.principle + .principle { padding-left: 24px; border-left: 1px solid var(--line); }
.principle svg { width: 30px; height: 30px; color: var(--lime); }
.principle p { color: var(--muted); font-size: 15px; line-height: 1.55; }
.text-link { display: inline-flex; align-items: center; gap: 6px; margin-top: 30px; color: var(--lime); font-weight: 700; text-decoration: none; }
.text-link:hover { text-decoration: underline; }
.text-link svg { width: 18px; height: 18px; }

/* Plans: names and limits, no prices */
.plans { list-style: none; display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 16px; }
.plan { display: flex; flex-direction: column; gap: 16px; padding: 30px; border-radius: var(--radius); background: var(--card); border: 1px solid var(--line); }
.plan.featured { background: linear-gradient(var(--card), var(--card)) padding-box, var(--grad) border-box; border: 1.5px solid transparent; }
.plan-top { display: flex; flex-wrap: wrap; justify-content: space-between; align-items: center; gap: 10px; }
.plan h3 { font-size: 26px; }
.badge { padding: 5px 10px; border-radius: 999px; background: var(--track); color: var(--fg); font-size: 12px; font-weight: 800; }
.plan.featured .badge, .badge.free { background: var(--lime); color: var(--on-accent); }
.plan .tagline { color: var(--soft); font-size: 15px; }
.limits { list-style: none; display: grid; gap: 11px; padding-top: 18px; border-top: 1px solid var(--line); font-size: 15px; }
.limits li { display: flex; justify-content: space-between; align-items: baseline; gap: 12px; }
.limits li span { color: var(--soft); min-width: 0; }
.limits li b { flex: none; text-align: right; font-variant-numeric: tabular-nums; }
.limits li.off b { color: var(--muted); font-weight: 600; }
.limits li.inc { justify-content: flex-start; }
.limits li.inc svg { width: 18px; height: 18px; flex: none; color: var(--lime); align-self: center; }
.limits li.inc.off svg { color: var(--muted); }
.fine { margin-top: 24px; max-width: 62em; color: var(--muted); font-size: 14px; }

/* FAQ */
.faq { display: grid; grid-template-columns: minmax(0, .8fr) minmax(0, 1.2fr); gap: clamp(32px, 6vw, 96px); }
.qa { border-top: 1px solid var(--line); }
.qa details { border-bottom: 1px solid var(--line); }
.qa summary { cursor: pointer; list-style: none; display: flex; justify-content: space-between; gap: 20px; padding: 22px 0; font-size: 19px; font-weight: 700; letter-spacing: -.01em; }
.qa summary::-webkit-details-marker { display: none; }
.qa summary::after { content: "+"; flex: none; color: var(--lime); font-size: 26px; line-height: .8; font-weight: 500; transition: transform .2s ease; }
.qa details[open] summary::after { transform: rotate(45deg); }
.qa details p { max-width: 42em; padding-bottom: 22px; color: var(--soft); }
.faq-note a { color: var(--lime); }

/* Final call */
.final { position: relative; text-align: center; }
.final::before { content: ""; position: absolute; left: 50%; top: 45%; width: min(760px, 100%); aspect-ratio: 1; transform: translate(-50%, -50%); background: radial-gradient(closest-side, rgba(200, 245, 96, .13), transparent 70%); pointer-events: none; }
.final .wrap { position: relative; display: grid; justify-items: center; gap: 24px; }
.final .app-icon { width: 120px; height: 120px; filter: drop-shadow(0 30px 60px rgba(200, 245, 96, .18)); }
.final h2 { font-size: var(--step-4); }
.final .lead { text-align: center; }
.final .cta-row { justify-content: center; }

/* Footer */
.foot { padding-block: 56px 40px; border-top: 1px solid var(--line); color: var(--muted); font-size: 15px; }
.foot-grid { display: grid; grid-template-columns: minmax(0, 1.4fr) repeat(3, minmax(0, 1fr)); gap: 32px; }
.foot-grid > div { display: grid; gap: 12px; align-content: start; }
.foot-h { font-size: 14px; font-weight: 800; letter-spacing: .02em; color: var(--fg); }
.foot ul { list-style: none; display: grid; gap: 8px; }
.foot a { color: var(--muted); text-decoration: none; }
.foot a:hover { color: var(--fg); }
.foot .brand { color: var(--fg); }
.foot-langs { display: flex; flex-wrap: wrap; gap: 6px 16px; margin-top: 40px; padding-top: 24px; border-top: 1px solid var(--line); }
.foot-langs a[aria-current] { color: var(--lime); }
.copyright { margin-top: 18px; font-size: 13px; }

/* Document pages: privacy, support */
.doc-head { padding-block: clamp(48px, 7vw, 96px) 40px; border-bottom: 1px solid var(--line); }
.doc-head .wrap { display: grid; gap: 18px; }
.doc-head h1 { font-size: clamp(36px, 5.6vw, 66px); letter-spacing: -.045em; }
.crumbs { display: flex; flex-wrap: wrap; gap: 8px; font-size: 14px; color: var(--muted); font-weight: 600; }
.crumbs a { text-decoration: none; }
.crumbs a:hover { color: var(--fg); }
.updated { color: var(--muted); font-size: 14px; }
.doc { display: grid; grid-template-columns: 250px minmax(0, 1fr); gap: clamp(32px, 6vw, 88px); padding-block: 48px 96px; }
.toc { position: sticky; top: calc(var(--head) + 32px); align-self: start; display: grid; gap: 4px; font-size: 14px; }
.toc b { margin-bottom: 8px; font-size: 12px; letter-spacing: .14em; text-transform: uppercase; color: var(--muted); }
.toc a { padding: 7px 12px; border-left: 2px solid var(--line); color: var(--soft); text-decoration: none; }
.toc a:hover { color: var(--fg); border-left-color: var(--lime); }
.prose { max-width: 720px; }
.prose section { padding-block: 30px; border-bottom: 1px solid var(--line); }
.prose section:first-child { padding-top: 0; }
.prose h2 { margin-bottom: 14px; font-size: 26px; letter-spacing: -.025em; }
.prose p, .prose li { color: var(--soft); line-height: 1.7; }
.prose p + p { margin-top: 12px; }
.prose ul { display: grid; gap: 10px; padding-left: 20px; }
.prose li::marker { color: var(--lime); }
.prose b { color: var(--fg); }
.prose a { color: var(--lime); }
.contact { display: grid; gap: 14px; margin-block: 36px; padding: 26px; border-radius: 24px; background: var(--card); border: 1px solid var(--line-strong); }
.prose .contact:first-child { margin-top: 0; }
.contact h2 { margin: 0; font-size: 22px; }
.contact p { color: var(--soft); }
.mail-row { display: flex; flex-wrap: wrap; gap: 10px 16px; align-items: center; }
.mail { font-size: 20px; font-weight: 800; letter-spacing: -.01em; color: var(--lime); text-decoration: none; overflow-wrap: anywhere; }

/* Invitation (/r/<code>): a page of its own, outside the site */
.invite { position: relative; padding-block: clamp(40px, 7vw, 88px) clamp(64px, 8vw, 104px); }
.invite::before { content: ""; position: absolute; right: -10%; top: -10%; width: 60%; aspect-ratio: 1; background: radial-gradient(closest-side, rgba(200, 245, 96, .13), transparent 70%); pointer-events: none; }
.invite .wrap { position: relative; display: grid; grid-template-columns: minmax(0, 1.1fr) minmax(0, .9fr); gap: clamp(40px, 6vw, 90px); align-items: start; }
.invite h1 { font-size: clamp(38px, 6vw, 70px); letter-spacing: -.045em; }
.ticket { border-radius: 26px; background: var(--card); border: 1px solid var(--line-strong); overflow: hidden; }
.ticket-top { padding: 22px 24px; background: var(--grad); color: var(--on-accent); font-size: clamp(20px, 2.4vw, 26px); font-weight: 800; letter-spacing: -.02em; line-height: 1.2; }
.ticket-body { display: flex; flex-wrap: wrap; justify-content: space-between; align-items: center; gap: 16px; padding: 22px 24px; border-top: 2px dashed var(--bg); }
.ticket-body .label { font-size: 13px; color: var(--muted); font-weight: 700; letter-spacing: .1em; text-transform: uppercase; }
.ticket .code { margin: 0; font-size: clamp(28px, 4vw, 38px); font-weight: 800; letter-spacing: .16em; font-variant-numeric: tabular-nums; overflow-wrap: anywhere; }
.steps { list-style: none; counter-reset: step; display: grid; gap: 14px; }
.steps li { counter-increment: step; display: grid; grid-template-columns: 34px minmax(0, 1fr); gap: 14px; align-items: start; color: var(--soft); }
.steps li::before { content: counter(step); display: grid; place-items: center; width: 34px; height: 34px; border-radius: 50%; border: 1px solid var(--line-strong); color: var(--lime); font-weight: 800; font-size: 15px; }
.invite-side { display: grid; gap: 28px; justify-items: center; }
.invite-side .phone { width: min(280px, 100%); }
.points { list-style: none; display: grid; gap: 10px; color: var(--soft); font-size: 16px; }
.points li { display: grid; grid-template-columns: 22px minmax(0, 1fr); gap: 10px; }
.points svg { width: 22px; height: 22px; margin-top: 2px; color: var(--lime); }
.mini-head .wrap { justify-content: space-between; }
.mini-foot { padding-block: 28px; border-top: 1px solid var(--line); color: var(--muted); font-size: 15px; }
.mini-foot .wrap { display: flex; flex-wrap: wrap; gap: 12px 24px; justify-content: space-between; }
.mini-foot a { color: var(--muted); }
.mini-foot a:hover { color: var(--fg); }

/* 404 */
.lost { padding-block: clamp(80px, 14vw, 180px); text-align: center; }
.lost .wrap { display: grid; justify-items: center; gap: 22px; }
.lost h1 { font-size: clamp(36px, 6vw, 64px); }
.lost .code-404 { font-size: clamp(80px, 16vw, 160px); font-weight: 800; letter-spacing: -.06em; line-height: 1; }

/* Narrower screens */
@media (max-width: 1080px) {
  .nav { display: none; }
  .hero .wrap, .split, .faq, .invite .wrap { grid-template-columns: minmax(0, 1fr); }
  .trio { grid-template-columns: minmax(0, 1fr); }
  .tile { grid-template-columns: minmax(0, 1fr) 200px; grid-template-rows: none; align-items: center; }
  .tile .shot { width: 200px; }
  .minis { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .plans { grid-template-columns: minmax(0, 1fr); max-width: 560px; }
  .principles { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .principle:nth-child(3) { padding-left: 0; border-left: 0; }
  .foot-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .doc { grid-template-columns: minmax(0, 1fr); }
  .toc { position: static; }
  .lock { max-width: 460px; width: 100%; margin-inline: auto; }
  .invite-side { grid-row: 2; }
}
@media (max-width: 760px) {
  .gallery { grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 40px 16px; }
}
@media (max-width: 640px) {
  .wrap { padding-inline: 16px; }
  .head-actions .btn { display: none; }
  .stats ul { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .tile { grid-template-columns: minmax(0, 1fr); padding: 24px; }
  .tile .shot { width: min(240px, 100%); }
  .minis { grid-template-columns: minmax(0, 1fr); }
  .feats { grid-template-columns: minmax(0, 1fr); }
  .principles { grid-template-columns: minmax(0, 1fr); }
  .principle, .principle + .principle { padding: 24px 0; border-left: 0; border-bottom: 1px solid var(--line); }
  .pin span { padding: 5px 9px; font-size: 12px; }
  .meal { grid-template-columns: minmax(0, 1fr); }
  .foot-grid { grid-template-columns: minmax(0, 1fr); }
  .lock { border-radius: 36px; min-height: 420px; }
  .plan, .contact { padding: 22px; }
}
@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after { animation: none !important; transition: none !important; }
  html { scroll-behavior: auto; }
}
