/* ProteinWay website. Layout after calai.app and welmi.ai (Rod's references, 26/11/2026); colours from the app (mobile/DESIGN.md). */
:root {
  --bg: #FFFFFF;
  --soft: #F2F5F9;        /* grey-blue boxes, like the app canvas */
  --soft-2: #E7EDF4;
  --tint: #E6F2FB;        /* protein blue, washed */
  --ink: #171B19;
  --muted: #5D6560;
  --accent: #176AA0;      /* protein deep: buttons */
  --accent-hover: #0F5784;
  --sky: #38A9E8;         /* protein fill */
  --amber: #F59E0B;
  --coral: #FB7185;
  --leaf: #2ECC71;
  --night: #0F1311;
  --night-2: #1A201D;
  --wrap: 1160px;
  --pad: clamp(16px, 4vw, 32px);
  --r: 28px;
  --shadow: 0 10px 30px rgba(18, 42, 30, .08);
  --ease: cubic-bezier(.2, .8, .2, 1);
  font-family: 'Plus Jakarta Sans', system-ui, -apple-system, 'Segoe UI', Roboto, sans-serif;
  color: var(--ink);
  background: var(--bg);
  -webkit-text-size-adjust: 100%;
}
*, *::before, *::after { box-sizing: border-box; }
html { scroll-behavior: smooth; scroll-padding-top: 84px; }
body { margin: 0; font-size: 17px; line-height: 1.55; background: var(--bg); overflow-x: hidden; }
img, video { display: block; max-width: 100%; height: auto; }
h1, h2, h3, p, figure { margin: 0; }
a { color: inherit; }
button, input, select { font: inherit; color: inherit; }
:focus-visible { outline: 3px solid var(--accent); outline-offset: 3px; border-radius: 8px; }
.wrap { width: 100%; max-width: calc(var(--wrap) + var(--pad) * 2); margin: 0 auto; padding: 0 var(--pad); }
.center { text-align: center; }
.sr { position: absolute !important; width: 1px; height: 1px; padding: 0; margin: -1px; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; border: 0; }
.skip { position: absolute; left: 16px; top: -60px; z-index: 50; background: #fff; padding: 10px 16px; border-radius: 999px; font-weight: 700; }
.skip:focus { top: 12px; }

h2 { font-size: clamp(32px, 4.2vw, 52px); line-height: 1.08; letter-spacing: -.035em; font-weight: 700; }
.sub { margin-top: 14px; font-size: 18px; color: var(--muted); }
section h2.center + .sub { max-width: 620px; margin-left: auto; margin-right: auto; }

/* buttons and store badges */
.btn { border: 0; appearance: none; -webkit-appearance: none; cursor: pointer; display: inline-flex; align-items: center; justify-content: center; min-height: 50px; padding: 0 26px; border-radius: 999px; background: var(--accent); color: #fff; font-size: 16px; font-weight: 700; text-decoration: none; transition: background-color .2s, transform .2s var(--ease); }
.btn:hover { background: var(--accent-hover); transform: translateY(-1px); }
.btn:active { transform: scale(.97); }
.btn-ghost { background: var(--soft); color: var(--ink); }
.btn-ghost:hover { background: var(--soft-2); }
.badges { display: flex; flex-wrap: wrap; gap: 10px; }
.badges-center { justify-content: center; }
.badge { display: inline-flex; align-items: center; gap: 8px; height: 52px; padding: 0 16px 0 12px; border-radius: 12px; background: #000; color: #fff; text-decoration: none; transition: transform .2s var(--ease), background-color .2s; }
.badge:hover { background: #222; transform: translateY(-2px); }
.badge span { display: grid; font-size: 19px; font-weight: 700; line-height: 1.05; letter-spacing: -.01em; }
.badge small { font-size: 11px; font-weight: 500; letter-spacing: 0; }
.badges-sm .badge { height: 40px; padding: 0 12px 0 9px; border-radius: 9px; gap: 6px; }
.badges-sm .badge svg { width: 20px; height: 20px; }
.badges-sm .badge span { font-size: 15px; }
.badges-sm .badge small { font-size: 9.5px; }

/* nav */
.nav { position: sticky; top: 0; z-index: 20; background: rgba(255, 255, 255, .9); backdrop-filter: saturate(1.4) blur(14px); -webkit-backdrop-filter: saturate(1.4) blur(14px); }
.nav-in { display: flex; align-items: center; justify-content: space-between; gap: 24px; height: 72px; }
.mark { display: inline-flex; align-items: center; gap: 10px; font-weight: 800; font-size: 21px; letter-spacing: -.03em; text-decoration: none; }
.mark img { border-radius: 9px; }
.nav-links { display: flex; gap: 30px; }
.nav-links a { font-size: 15px; font-weight: 600; text-decoration: none; color: #333; transition: color .15s; }
.nav-links a:hover { color: var(--accent); }
.nav-end { display: flex; align-items: center; gap: 14px; }
.lang { font-size: 14px; font-weight: 700; text-decoration: none; padding: 8px 10px; border-radius: 8px; }
.lang:hover { background: var(--soft); }

/* hero (Cal AI) */
.hero { padding: clamp(40px, 6vw, 80px) 0 clamp(56px, 7vw, 96px); }
.hero-in { display: grid; grid-template-columns: 1.05fr 1fr; gap: 40px; align-items: center; }
.pill { display: inline-flex; align-items: center; gap: 8px; padding: 6px 14px 6px 8px; border-radius: 999px; background: var(--tint); color: var(--accent); font-size: 14px; font-weight: 700; }
.pill-dot { width: 22px; height: 22px; border-radius: 50%; background: url(/img/icon.png) center / cover; }
.hero h1 { margin-top: 22px; letter-spacing: -.04em; line-height: 1.06; }
.h1a { display: block; font-size: clamp(38px, 5vw, 64px); font-weight: 800; }
.h1b { display: block; margin-top: 6px; font-size: clamp(30px, 3.8vw, 50px); font-weight: 500; }
.lead { margin-top: 22px; max-width: 520px; font-size: 18px; color: var(--muted); }
.hero-copy .badges { margin-top: 30px; }
.hero-phones { position: relative; display: flex; justify-content: center; align-items: flex-start; min-height: 620px; }
.phone { width: 280px; will-change: transform; backface-visibility: hidden; background: #101312; border-radius: 46px; padding: 9px; box-shadow: 0 30px 60px rgba(15, 30, 45, .18); }
.phone-screen { position: relative; border-radius: 38px; overflow: hidden; aspect-ratio: 9 / 19.5; background: #F0F4F8; }
.phone-screen img { position: absolute; left: 0; right: 0; top: 30px; width: 100%; height: calc(100% - 30px); object-fit: cover; object-position: top; }
.phone-full .phone-screen img { top: 0; height: 100%; }
.phone-full .phone-screen { background: #000; }
.island { position: absolute; z-index: 1; top: 9px; left: 50%; width: 84px; height: 24px; margin-left: -42px; border-radius: 999px; background: #000; }
.phone-cam .phone-screen img { height: auto; }
.shutter { position: absolute; left: 50%; bottom: 7%; width: 54px; height: 54px; margin-left: -27px; border-radius: 50%; background: #111; box-shadow: 0 0 0 4px #F0F4F8, 0 0 0 7px #111; }
.phone-a { transform: rotate(-3deg) translateY(10px); margin-right: -10px; z-index: 1; }
.phone-b { transform: rotate(3deg) translateY(60px); margin-left: -10px; z-index: 2; }
.scribble { position: absolute; z-index: 2; left: 50%; top: 2%; transform: translateX(-20%) rotate(12deg); color: var(--ink); }
.trust { list-style: none; display: flex; justify-content: center; flex-wrap: wrap; gap: 20px 48px; margin-top: clamp(56px, 7vw, 88px); }
.trust li { display: flex; align-items: center; gap: 6px; color: #9AA29E; }
.trust li > span:nth-child(3) { display: grid; text-align: center; color: var(--ink); }
.trust b { font-size: 15px; font-weight: 800; line-height: 1.2; }
.trust small { font-size: 13px; color: var(--muted); }
.laurel.flip svg { transform: scaleX(-1); }

/* feature rows (Welmi) */
.feature { padding: clamp(56px, 7vw, 96px) 0; }
.feature + .feature { padding-top: 0; }
.feature + .feature .feature-in { padding-top: clamp(56px, 7vw, 96px); border-top: 1px solid var(--soft-2); }
.feature-in { display: grid; grid-template-columns: 1fr 1fr; gap: clamp(32px, 6vw, 88px); align-items: center; }
.feature-flip .feature-media { order: 2; }
.feature-media { background: var(--soft); border-radius: 32px; min-height: 480px; display: grid; place-items: center; overflow: hidden; padding: 40px 32px 0; }
.feature-copy p { margin-top: 20px; font-size: 18px; color: var(--muted); max-width: 520px; }
.checks { list-style: none; padding: 0; margin: 26px 0 0; display: grid; gap: 12px; }
.checks li { display: flex; gap: 12px; align-items: flex-start; font-size: 16.5px; font-weight: 500; }
.checks svg { flex: none; margin-top: 4px; color: var(--leaf); font-size: 18px; }
.feature-copy .btn { margin-top: 30px; }
.phone-crop { width: 290px; margin-bottom: -170px; }
.media-dark { background: #000; }
.cards-stack { position: relative; width: min(440px, 100%); padding-bottom: 32px; display: grid; }
.card-shot { display: block; }
.card-shot + .card-shot { width: 82%; margin: -28px 0 0 auto; }

/* the plate inside the first feature box */
.feature-media:has(.plate) { padding: 32px; }
.plate { position: relative; width: min(460px, 100%); aspect-ratio: 1; border-radius: 26px; overflow: hidden; background: #2a2a2a; }
.plate-photo { width: 100%; height: 100%; object-fit: cover; transform: scale(1.5); }
.tag { position: absolute; left: var(--x); top: var(--y); padding: 0; border: 0; background: none; cursor: pointer; display: flex; align-items: center; transform: translate(-7px, -50%); }
.tag-l { flex-direction: row-reverse; transform: translate(calc(-100% + 7px), -50%); }
.dot { width: 14px; height: 14px; border-radius: 50%; background: #fff; border: 4px solid var(--accent); flex: none; transition: transform .2s var(--ease); }
.tag:hover .dot { transform: scale(1.25); }
.chip { display: grid; grid-template-columns: auto 1fr; column-gap: 6px; align-items: center; margin: 0 6px; padding: 6px 10px 6px 7px; border-radius: 12px; background: rgba(255, 255, 255, .95); color: var(--ink); text-align: left; transition: opacity .25s, transform .2s var(--ease); }
.tag:hover .chip { transform: translateY(-1px); }
.tick { grid-row: span 2; display: grid; place-items: center; width: 20px; height: 20px; border-radius: 50%; background: var(--accent); color: #fff; font-size: 12px; }
.tag-name { font-size: 13.5px; font-weight: 800; line-height: 1.15; white-space: nowrap; }
.tag-val { font-size: 12.5px; font-weight: 700; color: var(--accent); line-height: 1.2; white-space: nowrap; }
.tag[aria-pressed="false"] .chip { opacity: .6; }
.tag[aria-pressed="false"] .tag-name { text-decoration: line-through; }
.tag[aria-pressed="false"] .tick { background: #A8B0AB; color: transparent; }
.tag[aria-pressed="false"] .dot { border-color: #A8B0AB; }
.plate-total { position: absolute; left: 10px; right: 10px; bottom: 10px; display: flex; justify-content: space-between; align-items: center; gap: 10px; padding: 11px 14px; border-radius: 16px; background: rgba(15, 19, 17, .86); color: #fff; font-size: 14px; font-weight: 700; }
.plate-total small { display: block; font-size: 12px; font-weight: 600; color: #B9C2BC; }

/* why (Cal AI cards) */
.why { background: var(--soft); padding: clamp(72px, 9vw, 120px) 0; }
.why-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 20px; margin-top: 48px; }
.why-card { background: #fff; border-radius: var(--r); padding: 30px; box-shadow: var(--shadow); transition: transform .25s var(--ease); }
.why-card:hover { transform: translateY(-4px); }
.why-ic { display: grid; place-items: center; width: 56px; height: 56px; border-radius: 16px; background: var(--tint); color: var(--accent); }
.ic-heart { background: #FFE8EC; color: #E5485F; }
.ic-shield { background: #E4F7EC; color: #1F8A50; }
.why-card h3 { margin-top: 22px; font-size: 21px; font-weight: 700; letter-spacing: -.02em; }
.why-card p { margin-top: 10px; font-size: 16px; color: var(--muted); }

/* steps (Welmi) + calculator */
.steps { padding: clamp(72px, 9vw, 120px) 0; }
.steps-row { list-style: none; padding: 0; margin: 56px 0 0; display: grid; grid-template-columns: repeat(3, 1fr); gap: 32px; text-align: center; }
.steps-row li { position: relative; }
.steps-row li:not(:last-child)::after { content: ''; position: absolute; top: 28px; left: calc(50% + 44px); width: calc(100% - 88px + 32px); border-top: 2px dashed var(--soft-2); }
.num { display: inline-grid; place-items: center; width: 56px; height: 56px; border-radius: 50%; background: var(--accent); color: #fff; font-size: 22px; font-weight: 700; }
.steps-row h3 { margin-top: 18px; font-size: 19px; font-weight: 700; }
.steps-row p { margin: 8px auto 0; max-width: 300px; font-size: 16px; color: var(--muted); }
.calc { margin: 64px auto 0; max-width: 900px; background: var(--soft); border-radius: 32px; padding: clamp(28px, 4vw, 48px); display: grid; grid-template-columns: 1.4fr 1fr; gap: 16px 40px; align-items: center; }
.calc h3 { grid-column: 1 / -1; font-size: clamp(24px, 2.6vw, 32px); font-weight: 700; letter-spacing: -.03em; }
.calc-sentence { font-size: clamp(20px, 2vw, 26px); line-height: 1.8; font-weight: 600; }
.calc input, .calc select { font-size: 1em; font-weight: 800; color: var(--accent); background: #fff; border: 2px solid var(--soft-2); border-radius: 12px; padding: 0 .35em; height: 1.65em; vertical-align: baseline; transition: border-color .15s; }
.calc input { width: 3em; text-align: center; -moz-appearance: textfield; }
.calc input::-webkit-outer-spin-button, .calc input::-webkit-inner-spin-button { -webkit-appearance: none; margin: 0; }
.calc select { cursor: pointer; max-width: 100%; }
.calc input:hover, .calc select:hover, .calc input:focus, .calc select:focus { border-color: var(--sky); outline: none; }
.calc-out { text-align: center; background: #fff; border-radius: 24px; padding: 24px; }
.calc-num { font-size: clamp(56px, 7vw, 88px); font-weight: 800; letter-spacing: -.05em; line-height: 1; color: var(--accent); }
.calc-per { margin-top: 8px; font-size: 17px; font-weight: 700; }
.calc-per span { font-size: 14px; font-weight: 500; color: var(--muted); }
.calc-after { grid-column: 1 / -1; font-size: 15px; color: var(--muted); }
.calc .badges { grid-column: 1 / -1; }

/* founder (Cal AI dark testimonial band, with the real founder) */
.founder { background: var(--night); color: #fff; padding: clamp(72px, 9vw, 120px) 0; }
.founder-in { display: grid; grid-template-columns: 380px 1fr; gap: clamp(32px, 6vw, 80px); align-items: center; margin-top: 56px; }
.founder-card { position: relative; border-radius: 28px; overflow: hidden; aspect-ratio: 4 / 5; }
.founder-card img { width: 100%; height: 100%; object-fit: cover; object-position: 50% 0%; }
.founder-card figcaption { position: absolute; left: 14px; right: 14px; bottom: 14px; display: grid; gap: 4px; padding: 18px; border-radius: 18px; background: rgba(15, 19, 17, .62); backdrop-filter: blur(10px); -webkit-backdrop-filter: blur(10px); border: 1px solid rgba(255, 255, 255, .14); }
.founder-card .q { color: var(--sky); font-size: 20px; line-height: 1; }
.founder-card b { font-size: 20px; }
.founder-card figcaption span:not(.q) { font-size: 15.5px; color: #E3E8E5; }
.founder-card small { font-size: 13px; color: #A9B2AD; }
.founder-text p { font-size: 19px; line-height: 1.6; color: #D9DFDB; }
.founder-text p + p { margin-top: 18px; }
.founder-text p:first-child { font-size: 24px; line-height: 1.4; color: #fff; font-weight: 600; letter-spacing: -.01em; }

/* pricing */
.pricing { padding: clamp(72px, 9vw, 120px) 0; }
.plans { display: grid; grid-template-columns: repeat(3, 1fr); gap: 20px; margin-top: 48px; align-items: stretch; }
.plan { position: relative; display: flex; flex-direction: column; background: var(--soft); border-radius: var(--r); padding: 30px; border: 2px solid transparent; }
.plan.pick { background: #fff; border-color: var(--accent); box-shadow: var(--shadow); }
.plan-tag { position: absolute; top: -14px; left: 30px; padding: 4px 12px; border-radius: 999px; background: var(--accent); color: #fff; font-size: 13px; font-weight: 700; }
.plan h3 { font-size: 19px; font-weight: 700; }
.price { margin-top: 10px; display: grid; }
.price b { font-size: 40px; font-weight: 800; letter-spacing: -.04em; line-height: 1.1; }
.price span { font-size: 14.5px; color: var(--muted); }
.plan .checks { margin-bottom: 28px; }
.plan .btn { margin-top: auto; }
.plan .btn-ghost { background: #fff; }
.plan .btn-ghost:hover { background: var(--soft-2); }
.note { margin: 28px auto 0; max-width: 680px; font-size: 14px; color: var(--muted); }

/* faq (Cal AI accordion) */
.faq { background: var(--soft); padding: clamp(72px, 9vw, 120px) 0; }
.faq-in { max-width: calc(780px + var(--pad) * 2); }
.faq h2 { margin-bottom: 40px; }
.faq-item { background: #fff; border-radius: 20px; margin-top: 12px; }
.q-btn { display: flex; justify-content: space-between; align-items: center; gap: 16px; width: 100%; padding: 22px 24px; border: 0; background: none; text-align: left; font-size: 17px; font-weight: 600; cursor: pointer; }
.chev { flex: none; display: grid; place-items: center; width: 30px; height: 30px; border-radius: 50%; background: var(--soft); transition: transform .25s var(--ease), background-color .2s; }
.q-btn:hover .chev { background: var(--soft-2); }
.q-btn[aria-expanded="true"] .chev { transform: rotate(180deg); }
.a p { padding: 0 24px 22px; font-size: 16px; color: var(--muted); }

/* final call (Cal AI) */
.final { padding: clamp(80px, 10vw, 140px) 0; background: radial-gradient(60% 80% at 20% 0%, #E1F0FB 0%, transparent 70%), radial-gradient(50% 70% at 90% 100%, #FDEFD8 0%, transparent 70%), #F7FAFC; }
.final-icon { margin: 0 auto; border-radius: 22px; box-shadow: var(--shadow); }
.final h2 { margin-top: 24px; font-size: clamp(36px, 5vw, 60px); font-weight: 800; }
.final .badges { margin-top: 30px; }

/* footer */
.foot { padding: 56px 0 28px; }
.foot-in { display: grid; grid-template-columns: 1.4fr 1fr 1fr; gap: 32px; }
.foot-tag { margin: 12px 0 14px; color: var(--muted); font-size: 15px; }
.foot h2 { font-size: 16px; font-weight: 700; letter-spacing: 0; }
.foot ul { list-style: none; padding: 0; margin: 14px 0 0; display: grid; gap: 10px; }
.foot ul a { font-size: 15px; color: var(--muted); text-decoration: none; }
.foot ul a:hover { color: var(--ink); text-decoration: underline; }
.foot-copy { margin-top: 40px; padding-top: 20px; border-top: 1px solid var(--soft-2); font-size: 13.5px; color: var(--muted); display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between; gap: 16px; }
.foot-copy p { margin: 0; flex: 1 1 320px; }
.foot-fs { display: block; flex: none; line-height: 0; }
.foot-fs img { width: 170px; height: auto; }

/* legal pages */
.doc-bar { display: flex; justify-content: space-between; align-items: center; max-width: 820px; margin: 0 auto; padding: 20px var(--pad); }
.doc-bar a:last-child { font-weight: 700; font-size: 15px; }
.doc { max-width: 820px; margin: 0 auto; padding: 32px var(--pad) 120px; }
.doc .xl { font-size: clamp(36px, 5vw, 56px); line-height: 1.05; letter-spacing: -.04em; font-weight: 800; }
.doc .md { font-size: 21px; font-weight: 700; letter-spacing: -.015em; }
.doc-date { margin-top: 12px; color: var(--muted); font-size: 15px; }
.doc section { margin-top: 36px; }
.doc section p { margin-top: 8px; font-size: 17px; line-height: 1.65; color: #333; }
.doc a { overflow-wrap: anywhere; }
.doc-back { margin-top: 56px; }

/* motion */
.js .rise { opacity: 0; animation: fadeUp .8s var(--ease) forwards; }
.js .hero-copy .rise:nth-child(2) { animation-delay: .08s; }
.js .hero-copy .rise:nth-child(3) { animation-delay: .16s; }
.js .hero-copy .rise:nth-child(4) { animation-delay: .24s; }
.js .hero-phones .phone { opacity: 0; animation: phoneIn 1s var(--ease) .2s forwards; }
.js .hero-phones .phone-b { animation-delay: .35s; }
.js .scribble { opacity: 0; animation: fadeUp .6s var(--ease) .9s forwards; }
@keyframes fadeUp { from { opacity: 0; translate: 0 18px; } to { opacity: 1; translate: 0 0; } }
@keyframes phoneIn { from { opacity: 0; translate: 0 40px; } to { opacity: 1; translate: 0 0; } }
.js .reveal { opacity: 0; translate: 0 24px; transition: opacity .7s var(--ease), translate .7s var(--ease); }
.js .reveal.in { opacity: 1; translate: 0 0; }
.js .why-grid .reveal:nth-child(2), .js .plans .reveal:nth-child(2), .js .steps-row .reveal:nth-child(2), .js .trust .reveal:nth-child(2) { transition-delay: .08s; }
.js .why-grid .reveal:nth-child(3), .js .plans .reveal:nth-child(3), .js .steps-row .reveal:nth-child(3), .js .trust .reveal:nth-child(3) { transition-delay: .16s; }
.js .feature-copy.reveal { transition-delay: .1s; }
@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  *, *::before, *::after { animation-duration: .01ms !important; animation-delay: 0s !important; transition-duration: .01ms !important; transition-delay: 0s !important; }
  .js .reveal { translate: none; opacity: 1; }
}

/* tablet */
@media (max-width: 1000px) {
  .nav-links { display: none; }
  .hero-in, .feature-in { grid-template-columns: 1fr; }
  .hero-copy { text-align: center; }
  .hero-copy .lead { margin-left: auto; margin-right: auto; }
  .hero-copy .badges { justify-content: center; }
  .feature-flip .feature-media { order: 0; }
  .why-grid, .plans { grid-template-columns: 1fr; max-width: 560px; margin-left: auto; margin-right: auto; }
  .plans { gap: 28px; }
  .founder-in { grid-template-columns: 1fr; }
  .founder-card { max-width: 380px; width: 100%; margin: 0 auto; }
  .calc { grid-template-columns: 1fr; }
}
/* phone */
@media (max-width: 640px) {
  body { font-size: 16px; }
  .nav-in { height: 62px; }
  .nav-end .badges { display: none; }
  .mark { font-size: 19px; }
  .hero-phones { min-height: 0; padding-bottom: 50px; }
  .phone { width: 46vw; border-radius: 34px; padding: 6px; }
  .phone-screen { border-radius: 28px; }
  .phone-screen img { top: 22px; height: calc(100% - 22px); }
  .shutter { width: 34px; height: 34px; margin-left: -17px; box-shadow: 0 0 0 3px #F0F4F8, 0 0 0 5px #111; }
  .island { width: 56px; height: 16px; margin-left: -28px; top: 7px; }
  .scribble svg { width: 80px; }
  .trust { flex-direction: column; align-items: center; gap: 14px; }
  .feature-media { min-height: 0; padding: 28px 20px 0; border-radius: 26px; }
  .feature-media:has(.plate) { padding: 14px; }
  .phone-crop { width: 64vw; margin-bottom: -40%; }
  .steps-row { grid-template-columns: 1fr; gap: 28px; }
  .steps-row li::after { display: none; }
  .tag { left: calc(50% + (var(--x) - 50%) * .6); }
  .chip { padding: 5px 8px 5px 6px; }
  .tick { width: 18px; height: 18px; }
  .tag-name { font-size: 13px; }
  .foot-in { grid-template-columns: 1fr 1fr; }
  .foot-in > div:first-child { grid-column: 1 / -1; }
  .founder-text p:first-child { font-size: 21px; }
  .founder-text p { font-size: 17px; }
}

/* hero camera screen: the app's photo screen at 390 × 844, scaled to the mockup (--s is set by site.js) */
.cam-wrap { background: #000; }
.cam { position: absolute; left: 0; top: 0; width: 390px; height: 844px; transform-origin: 0 0; transform: scale(var(--s, .595)); background: #000; color: #fff; overflow: hidden; }
.phone-screen .cam .cam-photo { position: absolute; left: -228.5px; top: 130px; width: 847px; height: 564px; max-width: none; object-fit: fill; }
.cam-status { position: absolute; top: 14px; left: 36px; right: 30px; display: flex; justify-content: space-between; align-items: center; font-size: 16px; }
.cam-sig { display: flex; align-items: flex-end; gap: 2px; height: 12px; }
.cam-sig i { width: 3.5px; background: #fff; border-radius: 1px; }
.cam-sig i:nth-child(1) { height: 4px; } .cam-sig i:nth-child(2) { height: 6.5px; } .cam-sig i:nth-child(3) { height: 9px; } .cam-sig i:nth-child(4) { height: 12px; }
.cam-head { position: absolute; top: 50px; left: 16px; right: 16px; height: 40px; display: flex; align-items: center; gap: 12px; }
.cam-round { display: grid; place-items: center; width: 40px; height: 40px; border-radius: 50%; background: #262626; }
.cam-head b { flex: 1; font-size: 19px; font-weight: 800; letter-spacing: -.01em; }
.cam-meal { display: inline-flex; align-items: center; gap: 4px; height: 36px; padding: 0 14px; border-radius: 999px; background: #262626; font-size: 14px; font-weight: 800; }
.cam-hint { position: absolute; top: 100px; left: 0; right: 0; text-align: center; font-size: 13px; font-weight: 600; color: #9A9A9A; }
.cam-i { position: absolute; right: 16px; top: -6px; display: grid; place-items: center; width: 28px; height: 28px; border-radius: 50%; background: #262626; color: #fff; font-size: 14px; font-weight: 800; }
.br { position: absolute; width: 34px; height: 34px; border: 0 solid #fff; }
.br-tl { left: 18px; top: 130px; border-width: 3.5px 0 0 3.5px; border-top-left-radius: 12px; }
.br-tr { right: 18px; top: 130px; border-width: 3.5px 3.5px 0 0; border-top-right-radius: 12px; }
.br-bl { left: 18px; top: 660px; border-width: 0 0 3.5px 3.5px; border-bottom-left-radius: 12px; }
.br-br { right: 18px; top: 660px; border-width: 0 3.5px 3.5px 0; border-bottom-right-radius: 12px; }
.cam-lines { position: absolute; left: 0; top: 0; width: 390px; height: 844px; }
.cam-lines line { stroke: #fff; stroke-width: 1.6; opacity: .9; }
.cam-dot { position: absolute; width: 18px; height: 18px; margin: -9px 0 0 -9px; border-radius: 50%; background: #fff; border: 5px solid var(--accent); box-shadow: 0 0 0 4px rgba(255, 255, 255, .35); }
.ctag { position: absolute; transform: translateY(-50%); display: grid; gap: 1px; text-align: left; padding: 7px 12px 8px; border: 0; border-radius: 12px; background: rgba(255, 255, 255, .96); color: var(--ink); cursor: pointer; line-height: 1.2; transition: opacity .2s, transform .2s var(--ease); }
.ctag:hover { transform: translateY(-50%) scale(1.04); }
.ctag b { font-size: 15px; font-weight: 800; white-space: nowrap; }
.ctag span { font-size: 13.5px; font-weight: 700; color: var(--accent); white-space: nowrap; }
.ctag[aria-pressed="false"] { opacity: .55; }
.ctag[aria-pressed="false"] b { text-decoration: line-through; }
.cam-total { position: absolute; left: 14px; right: 14px; top: 636px; height: 40px; display: flex; justify-content: space-between; align-items: center; padding: 0 14px; border-radius: 12px; background: rgba(10, 12, 11, .84); font-size: 13.5px; font-weight: 700; }
.cam-tools { position: absolute; top: 694px; left: 0; right: 0; display: flex; justify-content: center; gap: 62px; }
.cam-tools span { display: grid; justify-items: center; gap: 4px; font-size: 12.5px; font-weight: 700; }
.cam-tools i { display: grid; place-items: center; width: 44px; height: 44px; border-radius: 50%; background: #1F1F1F; }
.cam-bottom { position: absolute; top: 774px; left: 0; right: 0; height: 66px; }
.cam-gal { position: absolute; left: 32px; top: 9px; display: grid; place-items: center; width: 48px; height: 48px; border-radius: 12px; background: #1F1F1F; }
.cam-shutter { position: absolute; left: 50%; top: 2px; width: 62px; height: 62px; margin-left: -31px; border-radius: 50%; background: #fff; box-shadow: 0 0 0 4px #000, 0 0 0 7px #fff; }
.js .ctag, .js .cam-dot { opacity: 0; animation: camPop .45s var(--ease) forwards; }
.js .cam-lines { opacity: 0; animation: fadeUp .4s ease 1.1s forwards; }
.js .ctag:nth-of-type(1), .js .cam-dot:nth-of-type(1) { animation-delay: .9s; }
.js .ctag:nth-of-type(2), .js .cam-dot:nth-of-type(2) { animation-delay: 1s; }
.js .ctag:nth-of-type(3), .js .cam-dot:nth-of-type(3) { animation-delay: 1.1s; }
.js .ctag:nth-of-type(4), .js .cam-dot:nth-of-type(4) { animation-delay: 1.2s; }
.js .ctag:nth-of-type(5), .js .cam-dot:nth-of-type(5) { animation-delay: 1.3s; }
.js .ctag[aria-pressed="false"] { opacity: .55; animation: none; }
@keyframes camPop { from { opacity: 0; scale: .85; } to { opacity: 1; scale: 1; } }

/* ---------- motion demos (after welmi.ai: phones that run the app on a loop) ---------- */
/* 2) Protein sources, live and dark (app colours): rings fill, numbers count */
.cards-stack .srcs { width: 86%; margin: -24px 0 0 auto; position: relative; z-index: 1; }
.srcs { background: #111113; border: 1px solid rgba(255, 255, 255, .09); border-radius: 24px; padding: 18px; color: #F5F5F7; font-family: -apple-system, 'SF Pro Text', 'Segoe UI', Roboto, sans-serif; box-shadow: 0 20px 40px rgba(0, 0, 0, .45); }
.srcs-h { display: flex; justify-content: space-between; align-items: center; padding-bottom: 12px; }
.srcs-h b { font-size: 16px; font-weight: 800; letter-spacing: -.02em; }
.srcs-h span { font-size: 12px; font-weight: 600; color: #C7C7CC; }
.srcs-rings { display: flex; flex-wrap: wrap; justify-content: center; row-gap: 12px; }
.srcs-i { width: 33.33%; display: flex; flex-direction: column; align-items: center; }
.srcs-rg { position: relative; width: 58px; height: 58px; display: grid; place-items: center; }
.srcs-rg svg { position: absolute; inset: 0; width: 100%; height: 100%; transform: rotate(-90deg); }
.srcs-rg circle { fill: none; stroke-width: 6; }
.srcs-rg .trk { stroke: #2A2A2D; }
.srcs-rg .fil { stroke-linecap: round; stroke-dasharray: 175.9; stroke-dashoffset: var(--off); }
.srcs-rg b { position: relative; font-size: 14.5px; font-weight: 900; letter-spacing: -.03em; }
.srcs-rg small { font-size: 10px; font-weight: 800; color: #98989F; }
.srcs-ic { margin-top: 8px; width: 32px; height: 32px; border-radius: 12px; background: #1B1B1E; display: grid; place-items: center; }
.srcs-ic svg { width: 21px; height: 21px; }
.srcs-n { margin-top: 5px; font-size: 11px; font-weight: 800; }
.srcs-g { font-size: 11.5px; color: #98989F; }
.js .srcs .fil { stroke-dashoffset: 175.9; transition: stroke-dashoffset 1.4s var(--ease); }
.js .srcs .srcs-i:nth-child(2) .fil { transition-delay: .12s; } .js .srcs .srcs-i:nth-child(3) .fil { transition-delay: .24s; }
.js .srcs .srcs-i:nth-child(4) .fil { transition-delay: .36s; } .js .srcs .srcs-i:nth-child(5) .fil { transition-delay: .48s; }
.js .srcs.filled .fil { stroke-dashoffset: var(--off); }
.cards-stack .card-shot { transition: transform .8s var(--ease); }
.cards-stack:has(.srcs.filled) .card-shot { transform: translateY(-6px); }

/* 3) Progress screen scrolls on its own inside the phone */
.play.phone-scroll .phone-screen img { animation: shotScroll 16s ease-in-out infinite alternate; }
@keyframes shotScroll { 0%, 12% { object-position: 50% 0; } 88%, 100% { object-position: 50% 100%; } }

@media (prefers-reduced-motion: reduce) {
  .play.phone-scroll .phone-screen img { animation: none; }
}
@media (max-width: 640px) {
  .cards-stack .srcs { width: 94%; }
}

/* ---------- standard feature boxes: every row's picture box has the same size ---------- */
.feature-media { height: 540px; min-height: 0; }
.media-dark { padding: 28px; }
.cards-stack { width: min(340px, 100%); padding-bottom: 0; }
.cards-stack .card-shot { width: 100%; }
.cards-stack .srcs { width: 100%; margin: -18px 0 0; }
.srcs-i { width: 25%; }

/* ---------- tour (after calai.app "What does Cal AI include?") ---------- */
.tour { padding: clamp(72px, 9vw, 120px) 0; background: var(--soft); }
.tour-in { display: grid; grid-template-columns: 1fr 1.1fr; gap: clamp(32px, 6vw, 80px); align-items: center; margin-top: 56px; }
.tour-phone { display: grid; place-items: center; }
.tour-phone .phone { width: 300px; }
.tour-pane { position: absolute; inset: 0; opacity: 0; transform: scale(.98); transition: opacity .45s var(--ease), transform .45s var(--ease); pointer-events: none; }
.tour-pane.on { opacity: 1; transform: none; pointer-events: auto; }
.phone-screen .tour-pane > img { position: absolute; left: 0; top: 0; width: 100%; height: 100%; object-fit: cover; object-position: top; }
.tp-photo .tp-b { opacity: 0; transition: opacity .6s var(--ease); }
.tp-photo.done .tp-b { opacity: 1; }
.phone-screen .tp-progress > img { top: 30px; height: calc(100% - 30px); }
.tp-progress.play img { animation: shotScroll 9s ease-in-out forwards; }
.live .island { z-index: 5; }
.tour-list { display: grid; gap: 12px; }
.tour-tab { display: grid; gap: 6px; text-align: left; padding: 20px 22px; border-radius: 20px; border: 1.5px solid var(--soft-2); background: #fff; cursor: pointer; transition: border-color .2s, background-color .2s, transform .2s var(--ease); }
.tour-tab b { font-size: 18px; font-weight: 700; letter-spacing: -.02em; }
.tour-tab span { font-size: 15px; color: var(--muted); line-height: 1.45; }
.tour-tab:hover { transform: translateX(4px); }
.tour-tab[aria-selected="true"] { border-color: var(--ink); background: #F7F9FB; }
.tour-tab[aria-selected="true"] b { color: var(--accent); }

/* ---------- dark mode ---------- */
.darkmode { padding: clamp(72px, 9vw, 120px) 0; background: #0B0D0C; color: #fff; }
.darkmode .sub { color: #A9B2AD; }
.dark-phones { display: flex; justify-content: center; align-items: flex-end; gap: clamp(16px, 3vw, 40px); margin-top: 56px; }
.dark-phones .phone { width: 260px; background: #2A2D2C; box-shadow: 0 30px 70px rgba(0, 0, 0, .6); }
.dark-phones .phone:nth-child(2) { width: 290px; transform: translateY(-24px); }

@media (max-width: 1000px) {
  .tour-in { grid-template-columns: 1fr; }
  .tour-phone { order: -1; }
  .feature-media { height: auto; min-height: 420px; }
}
@media (max-width: 640px) {
  .tour-phone .phone { width: 72vw; }
  .tour-list { gap: 8px; }
  .tour-tab { padding: 14px 16px; }
  .tour-tab span { font-size: 14px; }
  .dark-phones { overflow-x: auto; justify-content: flex-start; padding: 0 16px 24px; scroll-snap-type: x mandatory; }
  .dark-phones .phone, .dark-phones .phone:nth-child(2) { flex: none; width: 66vw; transform: none; scroll-snap-align: center; }
}
@media (max-width: 1000px) {
  .tour-list { display: flex; overflow-x: auto; gap: 10px; padding: 4px 2px 12px; scroll-snap-type: x mandatory; -webkit-overflow-scrolling: touch; }
  .tour-tab { flex: none; width: 250px; scroll-snap-align: start; }
  .tour-tab:hover { transform: none; }
  .tour-in { gap: 24px; }
}

/* "Bata sua proteína": the protein-sources card is the main thing; the photo result sits behind it, smaller and dimmed */
.media-dark { padding: 28px; }
.media-dark .cards-stack { position: relative; width: min(460px, 100%); height: 100%; }
.media-dark .card-shot { position: absolute; top: 0; left: 50%; width: 76%; transform: translateX(-50%); opacity: .45; filter: saturate(.8); }
.media-dark .cards-stack .srcs { position: absolute; left: 0; right: 0; bottom: 0; width: 100%; margin: 0; padding: 22px 20px 20px; }
.media-dark .cards-stack:has(.srcs.filled) .card-shot { transform: translate(-50%, -6px); }
.media-dark .srcs-h b { font-size: 19px; }
.media-dark .srcs-h span { font-size: 13.5px; }
.media-dark .srcs-rg { width: 74px; height: 74px; }
.media-dark .srcs-rg b { font-size: 18px; }
.media-dark .srcs-rg small { font-size: 12px; }
.media-dark .srcs-ic { width: 38px; height: 38px; margin-top: 10px; }
.media-dark .srcs-ic svg { width: 25px; height: 25px; }
.media-dark .srcs-n { font-size: 13px; }
.media-dark .srcs-g { font-size: 13px; }
@media (max-width: 1000px) {
  .media-dark .cards-stack { height: 440px; }
}
@media (max-width: 640px) {
  .media-dark { padding: 16px; }
  .media-dark .cards-stack { height: 400px; }
  .media-dark .srcs-rg { width: 60px; height: 60px; }
  .media-dark .srcs-rg b { font-size: 15px; }
  .media-dark .srcs-h b { font-size: 16px; }
}

/* tour v2 (Rod, 26/11): the list is exactly as tall as the phone (first card at its top, last at its bottom) and sits closer to it */
.tour-in { grid-template-columns: auto minmax(0, 440px); justify-content: center; align-items: stretch; gap: clamp(32px, 4vw, 56px); max-width: 920px; margin: 56px auto 0; }
.tour-phone { position: relative; align-self: start; }
.tour-list { display: flex; flex-direction: column; gap: 10px; }
.tour-tab { flex: 1 1 0; align-content: center; padding: 12px 20px; }
.tour-tab span { font-size: 14.5px; }
.lift { position: absolute; z-index: 6; max-width: none; border-radius: 14px; opacity: 0; transform-origin: 50% 50%; transform: none; pointer-events: none; transition: transform .6s var(--ease), opacity .3s ease, box-shadow .6s var(--ease); }
.lift.up { opacity: 1; transform: scale(1.16); box-shadow: 0 30px 70px rgba(15, 30, 45, .28); }
@media (max-width: 1000px) {
  .tour-in { grid-template-columns: 1fr; max-width: none; }
  .tour-phone { justify-self: center; }
  .tour-tab { flex: none; }
}
@media (max-width: 640px) { .lift.up { transform: scale(1.08); } }

/* camera flash (hero phone loop and the tour's photo step) */
.flash { position: absolute; inset: 0; z-index: 4; background: #fff; opacity: 0; pointer-events: none; }
.hero-cam .hc-b { opacity: 0; }
.js .hero-cam .hc-b { animation: hcB 8s linear 1.4s infinite; }
.js .hero-cam .flash { animation: hcFlash 8s linear 1.4s infinite; }
@keyframes hcB { 0%, 37.9% { opacity: 0; } 38%, 92% { opacity: 1; } 97%, 100% { opacity: 0; } }
@keyframes hcFlash { 0%, 37% { opacity: 0; } 38% { opacity: 1; } 45%, 100% { opacity: 0; } }
.tp-photo .tp-b { transition: opacity .12s ease; }
.tp-photo.done .flash { animation: flashOnce .7s ease-out; }
@keyframes flashOnce { 0% { opacity: 0; } 12% { opacity: 1; } 100% { opacity: 0; } }
@media (prefers-reduced-motion: reduce) { .hero-cam .hc-b { opacity: 1; } .js .hero-cam .hc-b, .js .hero-cam .flash { animation: none; } }

/* protein-goal quiz: the app's onboarding questions, answer blurred until the app is downloaded */
.quiz { margin: 64px auto 0; max-width: 640px; background: #fff; border-radius: 32px; padding: clamp(24px, 4vw, 40px); box-shadow: 0 20px 50px rgba(18, 42, 30, .10); border: 1px solid var(--soft-2); }
.qz-top { display: flex; justify-content: space-between; align-items: baseline; gap: 16px; }
.qz-top h3 { font-size: clamp(22px, 2.4vw, 28px); font-weight: 800; letter-spacing: -.03em; }
.qz-count { font-size: 14px; font-weight: 700; color: var(--muted); white-space: nowrap; }
.qz-bar { margin-top: 16px; height: 6px; border-radius: 3px; background: var(--soft-2); overflow: hidden; }
.qz-bar i { display: block; height: 100%; width: 25%; background: var(--ink); border-radius: 3px; transition: width .4s var(--ease); }
.quiz form { margin-top: 24px; }
.qz-step { display: none; border: 0; padding: 0; margin: 0; min-width: 0; }
.qz-step.on { display: block; animation: fadeUp .35s var(--ease); }
.qz-step legend { padding: 0; margin-bottom: 14px; font-size: 18px; font-weight: 700; }
.qz-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 10px; }
.qz-row { display: grid; grid-template-columns: repeat(3, 1fr); gap: 10px; }
.qz-opt { position: relative; cursor: pointer; }
.qz-opt input { position: absolute; opacity: 0; pointer-events: none; }
.qz-opt span { display: grid; gap: 4px; height: 100%; padding: 14px 16px; border-radius: 18px; border: 2px solid var(--soft-2); background: #fff; transition: border-color .15s, background-color .15s; }
.qz-row .qz-opt span { place-items: center; padding: 16px 10px; }
.qz-opt b { font-size: 15.5px; font-weight: 700; }
.qz-opt small { font-size: 13px; color: var(--muted); line-height: 1.4; }
.qz-opt:hover span { border-color: #C9D6E3; }
.qz-opt:has(input:checked) span { border-color: var(--accent); background: var(--tint); }
.qz-opt:has(input:focus-visible) span { outline: 3px solid var(--sky); outline-offset: 2px; }
.qz-body { display: grid; gap: 12px; }
.qz-num { display: flex; justify-content: space-between; align-items: center; gap: 12px; padding: 12px 14px 12px 18px; border-radius: 18px; background: var(--soft); }
.qz-num > span { font-size: 16px; font-weight: 700; }
.qz-num > div { display: flex; align-items: center; gap: 10px; }
.qz-num button { width: 40px; height: 40px; border-radius: 50%; border: 0; background: #fff; font-size: 22px; font-weight: 600; cursor: pointer; box-shadow: 0 1px 3px rgba(0, 0, 0, .1); }
.qz-num button:hover { background: var(--tint); }
.qz-num output { display: flex; align-items: baseline; gap: 4px; min-width: 96px; justify-content: center; }
.qz-num input { width: 64px; border: 0; background: none; text-align: right; font-size: 24px; font-weight: 800; letter-spacing: -.02em; -moz-appearance: textfield; }
.qz-num input::-webkit-outer-spin-button, .qz-num input::-webkit-inner-spin-button { -webkit-appearance: none; margin: 0; }
.qz-num small { font-size: 14px; color: var(--muted); font-weight: 600; width: 34px; }
.qz-nav { display: flex; justify-content: space-between; margin-top: 24px; }
.qz-nav [data-back] { visibility: hidden; }
.qz-nav .btn:disabled { opacity: .4; cursor: not-allowed; transform: none; }
.quiz.s2 .qz-nav [data-back], .quiz.s3 .qz-nav [data-back], .quiz.s4 .qz-nav [data-back] { visibility: visible; }
.quiz.s5 .qz-nav, .quiz.s5 .qz-count { display: none; }
.qz-result { text-align: center; }
.qz-rt { font-size: 20px; font-weight: 800; }
.qz-res { position: relative; display: grid; grid-template-columns: 1fr 1fr; gap: 12px; margin-top: 18px; }
.qz-val { display: grid; gap: 4px; padding: 22px 12px; border-radius: 22px; background: var(--soft); }
.qz-val b { font-size: 44px; font-weight: 800; letter-spacing: -.04em; color: var(--accent); line-height: 1.05; }
.qz-val b.k { color: #B45309; }
.qz-val span { font-size: 14px; color: var(--muted); font-weight: 600; }
.qz-val .blur { filter: blur(11px); user-select: none; }
.qz-lock { position: absolute; left: 50%; top: 50%; transform: translate(-50%, -50%); display: inline-flex; align-items: center; gap: 8px; padding: 10px 16px; border-radius: 999px; background: var(--ink); color: #fff; font-size: 14px; font-weight: 700; white-space: nowrap; box-shadow: 0 10px 24px rgba(0, 0, 0, .2); }
.qz-rtext { margin: 20px auto 18px; max-width: 440px; font-size: 16px; color: var(--muted); }
.qz-again { margin-top: 16px; border: 0; background: none; font-size: 14px; font-weight: 700; color: var(--muted); text-decoration: underline; cursor: pointer; }
@media (max-width: 640px) {
  .qz-grid { grid-template-columns: 1fr; }
  .qz-val b { font-size: 34px; }
  .qz-top { flex-direction: column; gap: 4px; }
}

/* live screens: the screen has the app proportions (390 x 844), so no sliver of the phone background shows at the bottom */
.phone-screen.live { aspect-ratio: 390 / 844; }
.phone-screen.live:has(.hcam), .phone-screen.live:has(.scr-code), .phone-screen.live:has(.dark) { background: #000; }

/* ===== mobile pass (Rod, 26/11): checked against calai.app and welmi.ai on a 390 px phone ===== */
.btn-nav { display: none; }
.lift { width: 10px; }                       /* until the progress step places it; never widens the page */
.tour { overflow-x: clip; }
.tour-list::-webkit-scrollbar, .dark-phones::-webkit-scrollbar { display: none; }
.tour-list, .dark-phones { scrollbar-width: none; }

@media (max-width: 1000px) {
  /* tour: the feature cards in one row on top, the phone right under them, both on the same screen */
  .tour-in { display: flex; flex-direction: column; gap: 18px; margin-top: 32px; }
  .tour-list { order: 0; position: relative; flex-direction: row; align-items: stretch; overflow-x: auto; scroll-snap-type: x mandatory; scroll-padding-inline: var(--pad); gap: 10px; margin: 0 calc(-1 * var(--pad)); padding: 2px var(--pad) 4px; }
  .tour-tab { flex: none; width: 236px; padding: 14px 16px; scroll-snap-align: start; align-content: start; }
  .tour-tab b { font-size: 16.5px; }
  .tour-tab span { font-size: 14px; }
  .tour-phone { order: 1; align-self: center; }
  .plans .plan.pick { order: -1; }
}
@media (max-width: 640px) {
  .nav-end { gap: 6px; }
  .btn-nav { display: inline-flex; min-height: 40px; padding: 0 18px; font-size: 15px; }
  .lang { min-width: 44px; min-height: 44px; display: inline-grid; place-items: center; padding: 0; }

  /* hero */
  .hero { padding-top: 20px; }
  .pill { font-size: 13px; }
  .hero h1 { margin-top: 18px; }
  .h1a { font-size: 44px; }
  .h1b { font-size: 26px; line-height: 1.15; margin-top: 8px; }
  .lead { margin-top: 16px; font-size: 16.5px; }
  .hero-copy .badges { margin-top: 24px; }
  .hero-phones { margin: 8px calc(-1 * var(--pad)) 0; padding-bottom: 56px; }
  .phone-a { margin-right: -4px; }
  .phone-b { margin-left: -4px; }

  /* trust row: three short facts side by side */
  .trust { flex-direction: row; display: grid; grid-template-columns: repeat(3, 1fr); gap: 10px; margin-top: 28px; }
  .trust li { justify-content: center; }
  .trust .laurel { display: none; }
  .trust b { font-size: 13.5px; }
  .trust small { font-size: 12px; line-height: 1.3; }

  /* tour */
  .tour-phone .phone { width: min(64vw, 270px); }

  /* dark mode: swipe the three phones, the middle one starts in the centre */
  .dark-phones { margin: 36px calc(-1 * var(--pad)) 0; padding: 0 18vw 12px; gap: 14px; scroll-padding-inline: 18vw; align-items: center; }
  .dark-phones .phone, .dark-phones .phone:nth-child(2) { width: 64vw; }

  /* pricing and quiz */
  .quiz { margin-top: 40px; border-radius: 26px; }
  .qz-opt span { padding: 12px 14px; }
}

/* headings never leave one word alone on the last line */
h1, h2, h3, .h1b { text-wrap: balance; }
.sub, .lead, .feature-copy p, .why-card p, .steps-row p { text-wrap: pretty; }

/* ===== round 3 (Rod, 26/11) ===== */
.trust-ic { display: none; }
.tour-cap { display: none; }

/* "Why" icon tiles in the app's colours: speed (amber), voice (protein blue), verified (green) */
.ic-bolt { background: #FEF3C7; color: #B45309; }
.ic-mic { background: var(--tint); color: var(--accent); }
.ic-verified { background: #E4F7EC; color: #1F8A50; }

/* quiz buttons: one clean primary, a quiet "Voltar", a calm disabled state */
.qz-nav { align-items: center; }
.quiz form { overflow: clip; overflow-clip-margin: 8px; }
.qz-nav .btn { min-height: 52px; padding: 0 30px; box-shadow: 0 6px 16px rgba(23, 106, 160, .22); transition: background-color .2s, transform .15s var(--ease), box-shadow .2s, opacity .2s; }
.qz-nav .btn:disabled { opacity: 1; background: #BFD3E4; box-shadow: none; }
.qz-nav .btn-ghost { background: var(--soft); color: var(--ink); box-shadow: none; }
.qz-nav .btn-ghost:hover { background: var(--soft-2); }
.qz-nav .btn:not(:disabled):active { transform: scale(.96); }
.qz-again { color: var(--accent); }

/* quiz motion: the step slides in from where it comes from, options follow one by one, the picked one pops */
.qz-step.on { animation: none; }
.qz-step.fwd { animation: qzIn .42s cubic-bezier(.2, .8, .2, 1) both; }
.qz-step.back { animation: qzBack .42s cubic-bezier(.2, .8, .2, 1) both; }
@keyframes qzIn { from { opacity: 0; transform: translateX(36px); } to { opacity: 1; transform: none; } }
@keyframes qzBack { from { opacity: 0; transform: translateX(-36px); } to { opacity: 1; transform: none; } }
.qz-step.fwd .qz-opt, .qz-step.back .qz-opt, .qz-step.fwd .qz-num, .qz-step.back .qz-num { animation: qzOpt .38s cubic-bezier(.2, .8, .2, 1) both; }
.qz-step .qz-opt:nth-child(2), .qz-step .qz-num:nth-child(2) { animation-delay: .04s; }
.qz-step .qz-opt:nth-child(3), .qz-step .qz-num:nth-child(3) { animation-delay: .08s; }
.qz-step .qz-opt:nth-child(4) { animation-delay: .12s; }
.qz-step .qz-opt:nth-child(5) { animation-delay: .16s; }
.qz-step .qz-opt:nth-child(6) { animation-delay: .2s; }
@keyframes qzOpt { from { opacity: 0; transform: translateY(10px); } to { opacity: 1; transform: none; } }
.qz-opt span { transition: border-color .18s, background-color .18s, transform .18s var(--ease); }
.qz-opt:active span { transform: scale(.98); }
.qz-opt:has(input:checked) span { animation: qzPick .32s var(--ease); }
@keyframes qzPick { 0% { transform: scale(.97); } 60% { transform: scale(1.015); } 100% { transform: none; } }
.qz-bar i { transition: width .5s cubic-bezier(.2, .8, .2, 1); }
.qz-res .qz-val { animation: qzOpt .45s cubic-bezier(.2, .8, .2, 1) both; }
.qz-res .qz-val + .qz-val { animation-delay: .08s; }
.qz-lock { animation: qzOpt .45s cubic-bezier(.2, .8, .2, 1) .2s both; }
@media (prefers-reduced-motion: reduce) { .qz-step.fwd, .qz-step.back, .qz-step .qz-opt, .qz-step .qz-num, .qz-res .qz-val, .qz-lock, .qz-opt:has(input:checked) span { animation: none !important; } }

/* dark-mode arrows: only where the phones are swiped */
.dark-nav { display: none; }

@media (max-width: 1000px) {
  /* tour chips: about a third of the old card's height; the description sits under the row */
  .tour-tab { width: auto; padding: 11px 18px; border-radius: 999px; white-space: nowrap; align-content: center; }
  .tour-tab b { font-size: 15px; }
  .tour-tab span { display: none; }
  .tour-tab[aria-selected="true"] { background: var(--ink); border-color: var(--ink); }
  .tour-tab[aria-selected="true"] b { color: #fff; }
  .tour-cap { display: block; order: 0; margin: -6px auto 0; max-width: 34ch; min-height: 2.9em; text-align: center; font-size: 14.5px; line-height: 1.45; color: var(--muted); }
  .tour-cap.swap { animation: fadeUp .35s var(--ease); }
  .tour-phone { order: 1; }
  /* pricing on one column: annual, monthly, free */
  .plans .plan:first-child { order: 3; }
}
@media (max-width: 640px) {
  /* trust: two soft tiles, a bit away from the phones; the dark card below comes up */
  .hero { padding-bottom: 24px; }
  .hero-phones { padding-bottom: 64px; }
  .trust { grid-template-columns: 1fr 1fr; gap: 10px; margin-top: 8px; }
  .trust li { display: flex; align-items: center; justify-content: center; padding: 14px 10px; border-radius: 18px; background: var(--soft); }
  .trust b { font-size: 14px; white-space: nowrap; }
  .trust small { font-size: 12.5px; white-space: nowrap; }
  .hero + .feature { padding-top: 32px; }

  .dark-nav { display: flex; justify-content: center; align-items: center; gap: 18px; margin-top: 18px; }
  .dn-btn { display: grid; place-items: center; width: 44px; height: 44px; border: 0; border-radius: 50%; background: #1E2422; color: #fff; cursor: pointer; transition: opacity .2s, transform .15s var(--ease); }
  .dn-btn:active { transform: scale(.92); }
  .dn-btn:disabled { opacity: .35; cursor: default; }
  .dn-dots { display: flex; gap: 6px; }
  .dn-dots i { width: 7px; height: 7px; border-radius: 4px; background: #4A524E; transition: width .25s var(--ease), background-color .25s; }
  .dn-dots i.on { width: 20px; background: #fff; }
}

/* ===== e-mail pop-up (calai.app style): a centred card on a computer, a bottom sheet on a phone ===== */
.mail { position: fixed; inset: 0; z-index: 60; display: grid; place-items: center; padding: 24px; }
.mail[hidden] { display: none; }
.mail-bg { position: absolute; inset: 0; background: rgba(15, 19, 17, .52); opacity: 0; transition: opacity .26s ease; }
.mail-box { position: relative; width: min(440px, 100%); max-height: calc(100dvh - 48px); overflow: auto; padding: 36px 32px 28px; border-radius: 30px; background: #fff; text-align: center; box-shadow: 0 30px 80px rgba(15, 30, 45, .3); opacity: 0; transform: translateY(16px) scale(.97); transition: opacity .26s ease, transform .32s cubic-bezier(.2, .8, .2, 1); outline: none; }
.mail.in .mail-bg { opacity: 1; }
.mail.in .mail-box { opacity: 1; transform: none; }
html.mail-on { overflow: hidden; }
.mail-grab { display: none; }
.mail-x { position: absolute; top: 14px; right: 14px; display: grid; place-items: center; width: 44px; height: 44px; border: 0; border-radius: 50%; background: var(--soft); color: var(--ink); cursor: pointer; transition: background-color .15s; }
.mail-x:hover { background: var(--soft-2); }
.mail-icon { margin: 0 auto 18px; border-radius: 16px; }
.mail-box h2 { font-size: 26px; line-height: 1.15; letter-spacing: -.03em; font-weight: 800; text-wrap: balance; }
.mail-sub { margin-top: 10px; font-size: 16px; color: var(--muted); text-wrap: pretty; }
.mail-form { display: grid; gap: 10px; margin-top: 22px; text-align: left; }
.mail-form input[type=email] { width: 100%; height: 56px; padding: 0 18px; border-radius: 18px; border: 1.5px solid var(--soft-2); background: #fff; font-size: 17px; font-weight: 600; outline: none; transition: border-color .15s, box-shadow .15s; }
.mail-form input[type=email]:focus { border-color: var(--accent); box-shadow: 0 0 0 4px var(--tint); }
.mail-form input[aria-invalid=true] { border-color: #DC2626; }
.mail-hp { position: absolute !important; left: -9999px; width: 1px; height: 1px; opacity: 0; }
.mail-err { min-height: 0; font-size: 14px; font-weight: 600; color: #B91C1C; }
.mail-err:empty { display: none; }
.mail-btn { width: 100%; min-height: 54px; font-size: 17px; }
.mail-btn:disabled { opacity: .7; cursor: progress; }
.mail-legal { margin-top: 4px; font-size: 13px; line-height: 1.45; color: var(--muted); text-align: center; }
.mail-legal a { color: var(--accent); font-weight: 600; }
.mail-ok { padding-top: 6px; }
.mail-ok h2:focus { outline: none; }
.mail-tick { display: grid; place-items: center; width: 64px; height: 64px; margin: 0 auto 18px; border-radius: 50%; background: #E4F7EC; color: #1F8A50; font-size: 30px; animation: qzPick .45s var(--ease); }
.mail-ok .badges { margin-top: 22px; }
@media (max-width: 640px) {
  .mail { place-items: end stretch; padding: 0; }
  .mail-box { width: 100%; max-height: calc(100dvh - 24px - var(--kb, 0px)); margin-bottom: var(--kb, 0px); padding: 14px 20px calc(22px + env(safe-area-inset-bottom)); border-radius: 28px 28px 0 0; transform: translateY(100%); transition: opacity .2s ease, transform .36s cubic-bezier(.2, .8, .2, 1), margin-bottom .2s ease; }
  .mail.in .mail-box { transform: none; }
  .mail-grab { display: block; width: 40px; height: 5px; margin: 0 auto 14px; border-radius: 3px; background: var(--soft-2); }
  .mail-x { top: 10px; right: 10px; }
  .mail-icon { width: 52px; height: 52px; margin-bottom: 12px; }
  .mail-box h2 { font-size: 23px; padding: 0 30px; }
  .mail-sub { font-size: 15px; }
  .mail-form { margin-top: 18px; }
}
@media (prefers-reduced-motion: reduce) { .mail-bg, .mail-box { transition: none; } .mail-tick { animation: none; } }
