/* Nomlift homepage sections. Loaded after site.css on / only. */

/* ---------- Hero ---------- */
.hero { padding: clamp(40px, 7vw, 96px) 0 clamp(40px, 6vw, 88px); }
.hero .wrap { display: grid; grid-template-columns: minmax(0, 1.12fr) minmax(0, .88fr); gap: clamp(32px, 6vw, 80px); align-items: center; }
.hero h1 {
  font-size: clamp(2.7rem, 1.4rem + 5.2vw, 5.4rem);
  font-weight: 800; line-height: .98; letter-spacing: -0.04em;
}
.hero h1 em { font-style: normal; color: var(--brand-ink); }
.hero-lede { font-size: clamp(1.125rem, 1rem + .4vw, 1.3rem); color: var(--ink-2); max-width: 34em; margin: 28px 0 32px; }
.hero-ctas { display: flex; flex-wrap: wrap; gap: 12px; }
.hero-note { margin-top: 18px; font-size: .9375rem; color: var(--ink-3); max-width: 36em; }

/* The label: the one loud thing on the page */
.label-card {
  position: relative; justify-self: center; width: 100%; max-width: 380px;
  background: var(--label); color: var(--label-ink);
  font-family: var(--font-label); font-size: .875rem; line-height: 1.55;
  padding: 26px 24px 22px; border-radius: 6px;
  box-shadow: var(--shadow-label); border: 1.5px solid var(--label-ink);
  --tilt: 1.4deg;
  transform: rotate(var(--tilt));
}
.label-card::before {
  content: ""; position: absolute; top: -13px; left: 50%; width: 64px; height: 26px; transform: translateX(-50%) rotate(-2deg);
  background: color-mix(in srgb, var(--brand) 55%, transparent); border-radius: 3px;
}
.label-head { display: flex; justify-content: space-between; align-items: baseline; gap: 12px; }
.label-head strong { font-family: var(--font-display); font-weight: 800; font-size: 1.6rem; letter-spacing: -0.03em; }
.label-head span { color: var(--ink-3); font-size: .75rem; text-align: right; }
.label-rule { border: 0; border-top: 7px solid var(--label-ink); margin: 10px 0 8px; }
.label-rule.thin { border-top-width: 1.5px; margin: 8px 0; }
.label-lines { list-style: none; margin: 0; padding: 0; }
.label-lines li { display: flex; gap: 8px; }
.label-lines li span:first-child { flex: none; }
.label-lines .dots { flex: 1; overflow: hidden; color: var(--ink-3); opacity: .55; white-space: nowrap; }
.label-lines .dots::before { content: "................................................................"; }
.label-lines b { font-weight: 500; flex: none; font-variant-numeric: tabular-nums; }
.label-kcal { display: flex; justify-content: space-between; align-items: baseline; gap: 12px; }
.label-kcal span { font-family: var(--font-display); font-weight: 800; font-size: 1.35rem; letter-spacing: -0.02em; }
.label-kcal b { font-family: var(--font-display); font-weight: 800; font-size: 2.1rem; letter-spacing: -0.03em; font-variant-numeric: tabular-nums; white-space: nowrap; }
.range-track { position: relative; height: 12px; background: var(--fill); border-radius: 99px; margin: 10px 0 4px; }
.range-band {
  position: absolute; top: 0; bottom: 0; left: var(--lo); right: calc(100% - var(--hi));
  background: var(--brand); border-radius: 99px;
}
.range-scale { display: flex; justify-content: space-between; font-size: .6875rem; color: var(--ink-3); }
.label-macros { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 8px; margin-top: 6px; }
.label-macros div { display: flex; flex-direction: column; }
.label-macros small { font-size: .6875rem; color: var(--ink-3); }
.label-macros b { font-weight: 500; font-size: 1rem; }
.m-protein { color: var(--protein); } .m-carbs { color: var(--carbs); } .m-fat { color: var(--fat); }
.label-note { margin: 0; font-size: .75rem; color: var(--ink-3); }
.label-note b { color: var(--label-ink); font-weight: 500; }

@media (max-width: 860px) {
  /* minmax(0, …), not 1fr: a bare 1fr column grows to the label's widest line,
     which made the page 381 px wide on 320–375 px phones, so they zoomed out. */
  .hero .wrap { grid-template-columns: minmax(0, 1fr); }
  .label-card { max-width: 400px; margin-top: 12px; --tilt: 0deg; }
}
@media (max-width: 420px) {
  .label-card { font-size: .8125rem; padding: 22px 16px 18px; }
  .label-head strong { font-size: 1.35rem; }
  .label-kcal span { font-size: 1.2rem; }
  .label-kcal b { font-size: 1.8rem; }
  .label-lines li span:first-child { flex: 0 1 auto; min-width: 0; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
}

/* ---------- Ways in ---------- */
.ways { list-style: none; margin: 0; padding: 0 28px; background: var(--surface); border-radius: var(--r-card); }
.way {
  display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 1.25fr); gap: 24px 48px;
  padding: 30px 0; border-bottom: 1px solid var(--rule); align-items: center;
}
.way:last-child { border-bottom: 0; }
.way-text p { color: var(--ink-2); margin: 8px 0 0; max-width: 42ch; }
.way-flow { display: grid; grid-template-columns: minmax(0, 1fr) 28px minmax(0, 1fr); align-items: center; gap: 12px; }
.way-flow .arrow { color: var(--ink-3); justify-self: center; }

.sample { font-size: .875rem; line-height: 1.45; }
.sample-photo {
  position: relative; aspect-ratio: 4 / 3; border-radius: 16px; overflow: hidden;
  background: linear-gradient(160deg, #8a5a3c, #5a3a26); box-shadow: 0 10px 24px -14px rgba(0, 0, 0, .55);
}
.plate { position: absolute; inset: 12% 18%; border-radius: 50%; background: #f7f1ea; box-shadow: inset 0 0 0 7px #ece3d8, 0 8px 18px -8px rgba(0, 0, 0, .5); }
.plate .curry { position: absolute; left: 14%; top: 18%; width: 48%; height: 62%; border-radius: 50%; background: radial-gradient(circle at 40% 40%, #e2762e, #b5461b 70%); box-shadow: inset 0 0 0 3px rgba(255, 220, 160, .35); }
.plate .curry::after { content: ""; position: absolute; inset: 22% 26% 30% 30%; border-radius: 50%; background: radial-gradient(circle, #f2c46b 0 18%, transparent 20%) 0 0 / 14px 14px; opacity: .7; }
.plate .roti { position: absolute; right: 10%; width: 34%; aspect-ratio: 1; border-radius: 50%; background: radial-gradient(circle at 40% 40%, #f0d29a, #d9a85e 75%); box-shadow: inset 0 0 0 2px rgba(120, 70, 20, .25); }
.plate .roti.r1 { top: 14%; } .plate .roti.r2 { top: 44%; right: 16%; }
.sample-photo .chip { position: absolute; left: 10px; bottom: 10px; font: 500 .6875rem/1 var(--font-label); color: #fff; background: rgba(0, 0, 0, .55); padding: 6px 8px; border-radius: 6px; }
.sample-voice {
  display: flex; gap: 10px; align-items: flex-start; justify-self: end;
  background: var(--brand); color: var(--btn-ink); border-radius: 20px 20px 6px 20px; padding: 12px 16px; font-weight: 500;
}
.sample-voice svg { flex: none; margin-top: 2px; }
.sample-barcode { font-family: var(--font-label); background: var(--label); color: var(--label-ink); border: 1.5px solid var(--label-ink); border-radius: 4px; padding: 12px 14px; transform: rotate(-1.2deg); }
.sample-barcode .bars-code {
  height: 34px; margin-top: 8px;
  background: repeating-linear-gradient(90deg, var(--label-ink) 0 2px, transparent 2px 4px, var(--label-ink) 4px 5px, transparent 5px 8px, var(--label-ink) 8px 11px, transparent 11px 12px, var(--label-ink) 12px 13px, transparent 13px 17px);
}
.sample-barcode .r { display: flex; justify-content: space-between; }
.sample-search { background: var(--fill); border-radius: 14px; padding: 10px 12px; }
.search-box { display: flex; gap: 8px; align-items: center; background: var(--surface); border-radius: 10px; padding: 8px 10px; font-weight: 500; }
.search-box svg { color: var(--ink-3); flex: none; }
.search-box .caret { display: inline-block; width: 2px; height: 1.05em; background: var(--brand-ink); vertical-align: -2px; margin-left: 1px; }
.motion .search-box .caret { animation: blink 1s steps(2, start) infinite; }
@keyframes blink { to { visibility: hidden; } }
.search-hits { list-style: none; margin: 8px 0 0; padding: 0; font-size: .8125rem; }
.search-hits li { display: flex; justify-content: space-between; padding: 5px 4px; color: var(--ink-2); }
.search-hits li + li { border-top: 1px solid var(--rule); }

.entry {
  display: grid; grid-template-columns: auto 1fr; gap: 2px 12px; align-items: center;
  background: var(--fill); border-radius: var(--r-inner); padding: 12px 14px; font-size: .9375rem;
}
.entry .cat { grid-row: span 3; width: 36px; height: 36px; border-radius: 10px; display: grid; place-items: center; background: var(--surface); color: var(--brand-ink); }
.entry .who { font-weight: 600; line-height: 1.25; }
.entry .meta { color: var(--ink-3); font-size: .8125rem; line-height: 1.25; }
.entry .amt { font-variant-numeric: tabular-nums; font-weight: 700; color: var(--ink); font-family: var(--font-display); letter-spacing: -0.01em; }
.entry .amt small { font: 500 .75rem var(--font-body); color: var(--ink-3); }

@media (max-width: 860px) { .way { grid-template-columns: 1fr; } }
@media (max-width: 560px) {
  .ways { padding: 0 18px; }
  .way-flow { grid-template-columns: 1fr; }
  .way-flow .arrow { transform: rotate(90deg); }
  .sample-voice { justify-self: stretch; }
}

/* ---------- Why a range ---------- */
.range .wrap { display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 1fr); gap: clamp(32px, 6vw, 80px); align-items: center; }
.range-copy p { color: var(--ink-2); max-width: var(--measure); }
.range-copy h2 { margin-bottom: 20px; }
.range-demo { background: var(--surface); border-radius: var(--r-card); padding: clamp(20px, 4vw, 30px); }
.range-demo .top { display: flex; justify-content: space-between; align-items: baseline; gap: 12px; flex-wrap: wrap; }
.range-demo .dish { font: 700 1.25rem/1.25 var(--font-display); letter-spacing: -0.015em; }
.range-demo .from { font: 500 .75rem/1 var(--font-label); letter-spacing: .06em; text-transform: uppercase; color: var(--ink-3); }
.range-value { font: 800 clamp(2.4rem, 1.8rem + 2vw, 3.2rem)/1 var(--font-display); letter-spacing: -0.035em; font-variant-numeric: tabular-nums; margin: 18px 0 4px; }
.range-value small { font: 600 1rem var(--font-body); color: var(--ink-3); letter-spacing: 0; }
.range-demo .range-track { height: 14px; margin-top: 16px; }
.range-demo .range-band { transition: left .6s var(--spring), right .6s var(--spring); }
.range-why { color: var(--ink-2); font-size: .9375rem; margin: 14px 0 18px; min-height: 3.1em; }
.portion { display: inline-grid; grid-template-columns: repeat(3, auto); position: relative; background: var(--fill); border-radius: 12px; padding: 3px; }
.portion button {
  position: relative; z-index: 1; border: 0; background: transparent; color: var(--ink); border-radius: 9px;
  padding: 9px 14px; font: 600 .9375rem var(--font-body); cursor: pointer; min-height: 40px;
}
.portion button[aria-pressed="true"] { background: var(--surface); box-shadow: 0 3px 8px rgba(0, 0, 0, .12), 0 1px 1px rgba(0, 0, 0, .04); }
[data-theme="dark"] .portion button[aria-pressed="true"] { background: #4a413a; }
.motion .range-value.swap { animation: swap .45s var(--spring); }
@keyframes swap { from { opacity: 0; transform: translateY(12px); } to { opacity: 1; transform: none; } }
.vs { display: flex; gap: 12px; align-items: center; margin-top: 22px; padding-top: 18px; border-top: 1px solid var(--rule); font-size: .9375rem; color: var(--ink-3); }
.vs s { white-space: nowrap; flex: none; font: 700 1.1rem var(--font-display); color: var(--ink-3); text-decoration-thickness: 2px; text-decoration-color: var(--brand); }
@media (max-width: 860px) { .range .wrap { grid-template-columns: 1fr; } }
@media (max-width: 400px) { .portion button { padding: 9px 10px; font-size: .875rem; } }

/* ---------- Training and progress: cards with a live preview ---------- */
.tools { list-style: none; margin: 0; padding: 0; display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 16px; }
.tool { display: flex; flex-direction: column; padding: 14px 14px 22px; background: var(--surface); border-radius: var(--r-card); }
.tool h3 { font-size: 1.125rem; margin: 18px 8px 6px; }
.tool p { margin: 0 8px; color: var(--ink-2); font-size: .96875rem; }
.tool-demo {
  background: var(--paper); border-radius: var(--r-inner); padding: 14px 16px;
  height: 176px; font-size: .8125rem; color: var(--ink-2); font-variant-numeric: tabular-nums; overflow: hidden;
}
.demo-top { display: flex; justify-content: space-between; align-items: baseline; gap: 8px; margin-bottom: 8px; }
.demo-top b { color: var(--ink); font-size: 1.0625rem; letter-spacing: -0.02em; font-family: var(--font-display); }
.demo-top .good { color: var(--leaf); font-weight: 600; }

.spark { width: 100%; height: 92px; display: block; overflow: visible; }
.spark .day { fill: var(--ink-3); opacity: .45; }
.spark .avg { fill: none; stroke: var(--brand); stroke-width: 3; stroke-linecap: round; stroke-linejoin: round; vector-effect: non-scaling-stroke; }
.spark-key { display: flex; justify-content: space-between; font-size: .6875rem; color: var(--ink-3); margin-top: 6px; }

.meter { height: 8px; background: var(--fill); border-radius: 99px; overflow: hidden; }
.meter i { display: block; height: 100%; width: var(--w); background: var(--c, var(--brand)); border-radius: 99px; transform-origin: left; }
.budget-row { display: flex; justify-content: space-between; color: var(--ink); font-weight: 500; margin-top: 10px; }
.budget-row + .meter { margin-top: 6px; }
.budget-row b { font-weight: 600; }
.demo-small { display: block; color: var(--ink-3); margin-top: 10px; font-size: .75rem; }

.set-line { display: flex; justify-content: space-between; padding: 7px 0; border-bottom: 1px solid var(--rule); color: var(--ink); }
.set-line:last-of-type { border-bottom: 0; }
.set-line span:first-child { color: var(--ink-3); }
.plates { display: flex; align-items: center; gap: 3px; margin-top: 10px; height: 46px; }
.plates .bar { width: 46px; height: 6px; background: var(--ink-3); border-radius: 2px; }
.plates i { display: block; width: var(--t); height: var(--h); background: var(--c); border-radius: 3px; transform-origin: center; }
.plates small { margin-left: 10px; color: var(--ink-2); font-size: .75rem; }

.demo-goal { display: flex; align-items: center; gap: 18px; height: 100%; }
.ring { flex: none; transform: rotate(-90deg); }
.ring circle { fill: none; stroke: var(--fill); stroke-width: 9; }
.ring circle.arc { stroke: var(--brand); stroke-linecap: round; stroke-dasharray: 100; stroke-dashoffset: calc(100 - var(--p)); }
.goal-text { display: flex; flex-direction: column; gap: 3px; }
.goal-text b { color: var(--ink); font: 700 1.5rem/1 var(--font-display); letter-spacing: -0.02em; }
.goal-text small { color: var(--ink-3); font-size: .75rem; }
.goal-text .good { color: var(--leaf); font-weight: 600; font-size: .8125rem; }

.bars { display: grid; grid-template-columns: repeat(7, 1fr); gap: 7px; height: 96px; align-items: end; position: relative; }
.bars span { position: relative; height: 100%; display: flex; flex-direction: column; justify-content: flex-end; align-items: center; }
.bars i { display: block; width: 100%; height: var(--h); background: color-mix(in srgb, var(--protein) 30%, var(--paper)); border-radius: 5px 5px 2px 2px; transform-origin: bottom; }
.bars .hit i { background: var(--protein); }
.bars em { font-style: normal; font-size: .6875rem; color: var(--ink-3); margin-top: 3px; }
.bars .target { position: absolute; z-index: 1; left: -2px; right: -2px; height: 0; bottom: calc(68% + 17px); border-top: 2px dashed var(--ink); opacity: .55; pointer-events: none; }

.timer { display: flex; align-items: center; gap: 16px; height: 100%; }
.timer-face { position: relative; flex: none; width: 104px; height: 104px; }
.timer-face svg { position: absolute; inset: 0; transform: rotate(-90deg); }
.timer-face circle { fill: none; stroke: var(--fill); stroke-width: 8; }
.timer-face circle.arc { stroke: var(--leaf); stroke-linecap: round; stroke-dasharray: 100; stroke-dashoffset: calc(100 - var(--p)); }
.timer-face b { position: absolute; inset: 0; display: grid; place-items: center; font: 700 1.35rem var(--font-display); color: var(--ink); letter-spacing: -0.02em; }
.lock-note { display: flex; flex-direction: column; gap: 6px; }
.lock-note .pill { align-self: flex-start; font: 500 .6875rem/1 var(--font-label); background: var(--surface); color: var(--ink-2); padding: 6px 8px; border-radius: 6px; }

.pr { display: flex; flex-direction: column; justify-content: center; gap: 10px; height: 100%; }
.pr-toast { display: flex; gap: 10px; align-items: center; background: var(--ink); color: var(--paper); padding: 12px 14px; border-radius: 14px; font-weight: 600; font-size: .875rem; }
.pr-toast svg { flex: none; color: var(--brand); }

@media (max-width: 900px) { .tools { grid-template-columns: repeat(2, minmax(0, 1fr)); } }
@media (max-width: 600px) { .tools { grid-template-columns: 1fr; } }

/* ---------- Privacy ---------- */
.privacy-grid { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 16px; }
.privacy-col { background: var(--surface); border-radius: var(--r-card); padding: 24px 24px 8px; }
.privacy-col h3 { display: flex; align-items: center; gap: 10px; margin-bottom: 18px; }
.privacy-col h3 .dot { width: 12px; height: 12px; border-radius: 999px; flex: none; }
.privacy-col ul { list-style: none; margin: 0; padding: 0; }
.privacy-col li { padding: 12px 0; border-top: 1px solid var(--rule); color: var(--ink-2); }
.privacy-col li strong { color: var(--ink); display: block; font-weight: 600; }
.dot-stay { background: var(--leaf); }
.dot-opt { background: var(--brand); }
.dot-never { background: var(--ink); }
.privacy-foot { margin-top: 28px; color: var(--ink-3); font-size: .9375rem; }
.privacy-foot a { color: var(--brand-ink); }
@media (max-width: 860px) { .privacy-grid { grid-template-columns: 1fr; } }

/* ---------- Pricing ---------- */
.plans { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 20px; max-width: 900px; }
.plan { display: flex; flex-direction: column; padding: 28px; border-radius: var(--r-card); background: var(--surface); }
.plan-pro { box-shadow: inset 0 0 0 2px var(--brand); }
.plan-top { display: flex; justify-content: space-between; align-items: center; gap: 12px; flex-wrap: wrap; margin-bottom: 6px; }
.plan .for { color: var(--ink-3); font-size: .9375rem; margin: 0 0 18px; }
.price { font: 800 2.6rem/1 var(--font-display); letter-spacing: -0.035em; }
.price small { font: 500 1rem var(--font-body); color: var(--ink-3); letter-spacing: 0; }
.price-note { color: var(--leaf); font-size: .9375rem; font-weight: 600; margin: 10px 0 18px; min-height: 1.5em; }
.plan ul { list-style: none; margin: 0; padding: 0; flex: 1; }
.plan li { padding: 9px 0 9px 28px; position: relative; border-top: 1px solid var(--rule); font-size: .9875rem; }
.plan li::before {
  content: ""; position: absolute; left: 2px; top: 16px; width: 12px; height: 7px;
  border-left: 2px solid var(--leaf); border-bottom: 2px solid var(--leaf); transform: rotate(-45deg);
}
.pricing-foot { margin-top: 24px; color: var(--ink-3); font-size: .9375rem; max-width: var(--measure); }
@media (max-width: 760px) { .plans { grid-template-columns: 1fr; max-width: 480px; } }

/* ---------- FAQ ---------- */
.faq { max-width: 52rem; background: var(--surface); border-radius: var(--r-card); padding: 0 24px; }
.faq details { border-bottom: 1px solid var(--rule); }
.faq details:last-child { border-bottom: 0; }
.faq summary {
  cursor: pointer; list-style: none; padding: 20px 40px 20px 0; position: relative;
  font: 600 1.125rem/1.35 var(--font-display); letter-spacing: -0.015em;
}
.faq summary::-webkit-details-marker { display: none; }
.faq summary::after {
  content: ""; position: absolute; right: 6px; top: 26px; width: 9px; height: 9px;
  border-right: 2px solid var(--ink-3); border-bottom: 2px solid var(--ink-3); transform: rotate(45deg);
  transition: transform .25s var(--ease), top .25s var(--ease);
}
.faq details[open] summary::after { transform: rotate(-135deg); top: 30px; }
.faq details p { color: var(--ink-2); max-width: var(--measure); padding-bottom: 8px; }
.faq details p a { color: var(--brand-ink); }
.motion .faq details[open] p { animation: faqIn .35s var(--ease); }
@keyframes faqIn { from { opacity: 0; transform: translateY(-4px); } }

/* ---------- Closing / beta ---------- */
.closing { padding: clamp(72px, 10vw, 128px) 0; border-top: 1px solid var(--rule); }
.closing-card { background: var(--ink); color: var(--paper); border-radius: 28px; padding: clamp(28px, 6vw, 64px); }
.closing h2 { font-size: clamp(2.2rem, 1.4rem + 3.4vw, 4rem); font-weight: 800; letter-spacing: -0.04em; max-width: 14em; }
.closing p { color: color-mix(in srgb, var(--paper) 78%, var(--ink)); font-size: 1.125rem; margin: 20px 0 28px; max-width: 36em; }
.closing .btn-quiet { color: var(--paper); border-color: color-mix(in srgb, var(--paper) 35%, transparent); }
.closing .btn-quiet:hover { border-color: var(--paper); }
.steps { list-style: none; margin: 0 0 30px; padding: 0; display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 16px; counter-reset: s; }
.steps li { counter-increment: s; border-top: 1px solid color-mix(in srgb, var(--paper) 25%, transparent); padding-top: 14px; color: color-mix(in srgb, var(--paper) 80%, var(--ink)); font-size: .9375rem; }
.steps li::before { content: "0" counter(s); display: block; font: 500 .75rem var(--font-label); color: var(--brand); margin-bottom: 6px; }
@media (max-width: 760px) { .steps { grid-template-columns: 1fr; } }

/* ---------- Demo values (kept here, not in style="" attributes) ---------- */
[data-in="0"] { --i: 0; } [data-in="1"] { --i: 1; } [data-in="2"] { --i: 2; } [data-in="3"] { --i: 3; }
[data-in="4"] { --i: 4; } [data-in="5"] { --i: 5; } [data-in="6"] { --i: 6; } [data-in="7"] { --i: 7; }
/* 710–970 on a 0–1,400 scale */
.hero-band, #rangeBand { --lo: 50.7%; --hi: 69.3%; --mid: 60%; }
/* Protein by day, M–S; days at or over the target carry .hit */
.bars span:nth-child(1) { --h: 80%; } .bars span:nth-child(2) { --h: 55%; } .bars span:nth-child(3) { --h: 84%; }
.bars span:nth-child(4) { --h: 78%; } .bars span:nth-child(5) { --h: 48%; } .bars span:nth-child(6) { --h: 90%; }
.bars span:nth-child(7) { --h: 79%; }
/* Each side of 62.5 kg on a 20 kg bar: 15 + 5 + 1.25 */
.plates i:nth-of-type(1) { --t: 12px; --h: 44px; --c: var(--brand); }
.plates i:nth-of-type(2) { --t: 8px; --h: 28px; --c: var(--ink-3); }
.plates i:nth-of-type(3) { --t: 5px; --h: 20px; --c: var(--fat); }
.demo-goal .arc { --p: 62; }
.meter-plan { --w: 100%; }
.meter-real { --w: 80%; --c: var(--leaf); }

/* ---------- Motion (site.js adds .motion only when reduced motion is off) ---------- */

/* Hero label: lines land one by one, then the range opens out from a single guess */
.motion .label-card [data-in] { opacity: 0; transform: translateY(6px); animation: lineIn .5s var(--ease) forwards; animation-delay: calc(var(--i) * 110ms + 250ms); }
@keyframes lineIn { to { opacity: 1; transform: none; } }
.motion .label-card .range-band { animation: openRange 1.1s var(--spring) 1.3s both; }
@keyframes openRange { from { left: calc(var(--mid) - 3px); right: calc(100% - var(--mid) - 3px); } }
.motion .label-card { animation: settle .9s var(--spring) both; }
@keyframes settle { from { opacity: 0; transform: translateY(18px) rotate(-3deg); } to { opacity: 1; transform: rotate(var(--tilt)); } }

/* Ways in: each row plays "input becomes an entry" once, when it scrolls into view */
.motion .way .sample, .motion .way .entry { transition: opacity .5s var(--ease), transform .6s var(--spring); }
.motion .way:not(.in) .sample { opacity: 0; transform: translateY(10px); }
.motion .way:not(.in) .sample-barcode { transform: translateY(10px) rotate(-1.2deg); }
.motion .way .sample-voice { transform-origin: 100% 100%; }
.motion .way:not(.in) .sample-voice { transform: scale(.6); }
.motion .way .arrow path { stroke-dasharray: 40; transition: stroke-dashoffset .45s var(--ease) var(--d-arrow, .35s); }
.motion .way:not(.in) .arrow path { stroke-dashoffset: 40; }
.motion .way .entry { transition-delay: var(--d-entry, .6s); }
.motion .way:not(.in) .entry { opacity: 0; transform: translateX(-14px); }
.motion .way.in .entry .cat { animation: pop .5s var(--spring) var(--d-entry, .6s) both; }
@keyframes pop { from { transform: scale(.4); } to { transform: scale(1); } }
/* The photo row waits for a scan beam to pass before the entry appears */
.motion .way:has(.sample-photo) { --d-arrow: 1s; --d-entry: 1.25s; }
.sample-photo::after {
  content: ""; position: absolute; left: 0; right: 0; top: 0; height: 30px; opacity: 0; pointer-events: none;
  background: linear-gradient(to bottom, transparent, rgba(255, 140, 90, .35) 70%, #ff8c5a 72%, transparent 74%);
}
.motion .way.in .sample-photo::after { animation: scan 1s var(--ease) .25s; }
@keyframes scan { 0% { opacity: 1; transform: translateY(-30px); } 90% { opacity: 1; } 100% { opacity: 0; transform: translateY(160px); } }

/* Tool previews: draw on scroll-in, replay when hovered */
.motion .tool-demo i, .motion .tool-demo .arc, .motion .spark .avg, .motion .spark .day, .motion .set-line, .motion .pr-toast {
  transition: transform .8s var(--spring), stroke-dashoffset 1s var(--ease), opacity .5s var(--ease);
}
.motion .tool:not(.in) .bars i { transform: scaleY(0); }
.motion .bars span:nth-child(2) i { transition-delay: .05s; }
.motion .bars span:nth-child(3) i { transition-delay: .1s; }
.motion .bars span:nth-child(4) i { transition-delay: .15s; }
.motion .bars span:nth-child(5) i { transition-delay: .2s; }
.motion .bars span:nth-child(6) i { transition-delay: .25s; }
.motion .bars span:nth-child(7) i { transition-delay: .3s; }
.motion .tool:not(.in) .meter i { transform: scaleX(0); }
.motion .meter i { transition-delay: .25s; transition-duration: .9s; transition-timing-function: var(--ease); }
.motion .tool:not(.in) .arc { stroke-dashoffset: 100; }
.motion .spark .avg { stroke-dasharray: 100; }
.motion .tool:not(.in) .spark .avg { stroke-dashoffset: 100; }
.motion .tool:not(.in) .spark .day { opacity: 0; }
.motion .tool:not(.in) .plates i { transform: scaleY(0); }
.motion .plates i:nth-of-type(2) { transition-delay: .12s; }
.motion .plates i:nth-of-type(3) { transition-delay: .24s; }
.motion .tool:not(.in) .set-line { opacity: 0; transform: translateY(6px); }
.motion .set-line:nth-child(2) { transition-delay: .1s; }
.motion .set-line:nth-child(3) { transition-delay: .2s; }
.motion .tool:not(.in) .pr-toast { opacity: 0; transform: translateY(16px) scale(.96); }
.motion .pr-toast { transition-delay: .2s; }
