/* YumBalance product page: phone demo, health checks, plan, features, privacy and pricing. */
/* phone */
.stage { display: grid; justify-items: center; gap: 18px; }
.phone { width: 300px; max-width: 100%; aspect-ratio: 300 / 610; border-radius: 46px; background: var(--phone-bezel); padding: 11px; box-shadow: var(--shadow); position: relative; transform: rotate(-3deg); }
.screen { position: relative; width: 100%; height: 100%; border-radius: 36px; overflow: hidden; background: var(--paper); }
.island { position: absolute; top: 10px; left: 50%; translate: -50% 0; width: 92px; height: 26px; border-radius: 20px; background: var(--phone-bezel); z-index: 5; }
.scene { position: absolute; inset: 0; padding: 50px 18px 18px; opacity: 0; transition: opacity .45s ease; display: flex; flex-direction: column; }
.scene.on { opacity: 1; }
.floaty { position: absolute; z-index: 3; background: var(--surface); border: 1px solid var(--line); border-radius: 16px; padding: 10px 14px; box-shadow: var(--shadow); font-size: 13px; line-height: 1.3; }
.floaty b { font-family: var(--mono); font-size: 15px; display: block; }
.floaty.f1 { left: -24%; top: 40%; rotate: -4deg; }
.floaty.f2 { right: -18%; bottom: 16%; rotate: 5deg; }
.scene-tabs { display: flex; gap: 6px; background: color-mix(in srgb, var(--surface) 75%, transparent); border: 1px solid var(--line); border-radius: 999px; padding: 4px; }
.scene-tabs button { border: 0; background: transparent; color: var(--ink-soft); font: 600 13px/1 var(--body); padding: 9px 14px; border-radius: 999px; cursor: pointer; }
.scene-tabs button[aria-pressed="true"] { background: var(--ink); color: var(--paper); }

/* in-phone UI */
.k { font-family: var(--mono); font-size: 10.5px; letter-spacing: .12em; color: var(--ink-soft); text-transform: uppercase; }
.big { font-family: var(--display); font-weight: 800; font-size: 44px; letter-spacing: -0.03em; line-height: 1; margin-top: 4px; }
.muted { color: var(--ink-soft); font-size: 12px; }
.bar { height: 8px; border-radius: 99px; background: var(--paper-2); overflow: hidden; margin-top: 10px; }
.bar > i { display: block; height: 100%; border-radius: 99px; width: 0; transition: width 1.1s cubic-bezier(.2,.8,.2,1); }
.stats { display: grid; grid-template-columns: repeat(3, 1fr); margin-top: 12px; }
.stats b { font-family: var(--mono); font-size: 14px; display: block; }
.stats span { font-size: 11px; color: var(--ink-soft); }
.mini { border: 1px solid var(--line); background: var(--surface); border-radius: 16px; padding: 12px; margin-top: 12px; }
.mini h4 { margin: 0; font-size: 13px; font-weight: 700; }
.chips { display: flex; flex-wrap: wrap; gap: 6px; margin-top: 8px; }
.chips span { font-size: 11px; font-weight: 600; background: var(--paper-2); border-radius: 8px; padding: 5px 8px; }
.cam { background: #15172A; color: #fff; align-items: center; justify-content: space-between; }
.cam .hint { font-size: 11.5px; font-weight: 700; background: rgba(0,0,0,.45); padding: 5px 10px; border-radius: 8px; }
.viewfinder { position: relative; width: 220px; height: 220px; display: grid; place-items: center; }
.viewfinder .c { position: absolute; width: 26px; height: 26px; border-color: #fff; border-style: solid; }
.viewfinder .tl { top: 0; left: 0; border-width: 3px 0 0 3px; border-radius: 8px 0 0 0; }
.viewfinder .tr { top: 0; right: 0; border-width: 3px 3px 0 0; border-radius: 0 8px 0 0; }
.viewfinder .bl { bottom: 0; left: 0; border-width: 0 0 3px 3px; border-radius: 0 0 0 8px; }
.viewfinder .br { bottom: 0; right: 0; border-width: 0 3px 3px 0; border-radius: 0 0 8px 0; }
.scanline { position: absolute; left: 8px; right: 8px; height: 3px; border-radius: 3px; top: 12px;
  background: linear-gradient(90deg, transparent, #5CF2C4, transparent); box-shadow: 0 0 18px 4px rgba(92, 242, 196, .55); animation: scan 1.8s ease-in-out infinite alternate; }
@keyframes scan { to { top: calc(100% - 15px); } }
.shutter { width: 58px; height: 58px; border-radius: 50%; border: 3px solid #fff; display: grid; place-items: center; }
.shutter::after { content: ""; width: 44px; height: 44px; border-radius: 50%; background: #fff; }
.dials { display: grid; grid-template-columns: repeat(4, 1fr); gap: 4px; margin-top: 10px; text-align: center; }
.dial { position: relative; width: 56px; height: 56px; margin: 0 auto; }
.dial svg { transform: rotate(-90deg); }
.dial .val { position: absolute; inset: 0; display: grid; place-items: center; font-family: var(--mono); font-weight: 700; font-size: 11.5px; }
.dial-label { font-size: 11px; color: var(--ink-soft); margin-top: 4px; }
.ring { transition: stroke-dashoffset 1.2s cubic-bezier(.2,.8,.2,1); }
.verdict { display: grid; grid-template-columns: auto 1fr; gap: 2px 8px; align-items: start; background: var(--surface); border: 1px solid var(--line); border-radius: 12px; padding: 8px 10px; margin-top: 7px; font-size: 11px; line-height: 1.35; opacity: 0; translate: 0 8px; transition: opacity .4s, translate .4s; }
.scene.on .verdict { opacity: 1; translate: 0 0; }
.scene.on .verdict:nth-child(2) { transition-delay: .5s; }
.scene.on .verdict:nth-child(3) { transition-delay: .8s; }
.scene.on .verdict:nth-child(4) { transition-delay: 1.1s; }
.verdict b { font-size: 12px; }
.verdict p { grid-column: 2; color: var(--ink-soft); }

/* status marks: icon + label, never color alone */
.mark { width: 18px; height: 18px; border-radius: 50%; display: inline-grid; place-items: center; font: 800 11px/1 var(--mono); color: #fff; flex: none; }
.mark.safe { background: var(--safe); }
.mark.caution { background: var(--caution); }
.mark.avoid { background: var(--avoid); }
.status { display: inline-flex; align-items: center; gap: 6px; font-family: var(--mono); font-size: 11.5px; font-weight: 700; letter-spacing: .06em; text-transform: uppercase; }
.status.safe { color: var(--safe); }
.status.caution { color: var(--caution); }
.status.avoid { color: var(--avoid); }

/* conditions */
.conditions { display: grid; grid-template-columns: repeat(4, 1fr); gap: 14px; }
.cond { padding: 22px 20px; border-radius: 22px; background: var(--surface); border: 1px solid var(--line); display: flex; flex-direction: column; gap: 10px; transition: transform .25s, box-shadow .25s; }
.cond:hover { transform: translateY(-4px); box-shadow: var(--shadow); }
.cond h3 { font-family: var(--body); font-weight: 700; font-size: 18px; letter-spacing: -0.01em; }
.cond .ex { font-size: 14.5px; color: var(--ink-soft); line-height: 1.5; }
.cond .ex .num { color: var(--ink); font-size: 13.5px; }
.cond .food { font-family: var(--mono); font-size: 11.5px; color: var(--ink-soft); margin-top: auto; padding-top: 10px; border-top: 1px dashed var(--line); }
.note { margin-top: 22px; font-size: 14px; color: var(--ink-soft); max-width: 70ch; }

.plan { background: color-mix(in srgb, var(--paper) 7%, var(--ink)); border: 1px solid color-mix(in srgb, var(--paper) 14%, var(--ink)); border-radius: 30px; padding: 26px; }
.plan-top { display: grid; grid-template-columns: repeat(3, 1fr); gap: 10px; }
.tile { border-radius: 18px; padding: 16px; background: color-mix(in srgb, var(--paper) 10%, var(--ink)); }
.tile .k { color: color-mix(in srgb, var(--paper) 60%, var(--ink)); }
.tile b { display: block; font-family: var(--mono); font-size: clamp(20px, 2.4vw, 26px); margin-top: 6px; }
.tile small { font-size: 12px; color: color-mix(in srgb, var(--paper) 60%, var(--ink)); }
.bmi { margin-top: 18px; }
.bmi-scale { position: relative; display: grid; grid-template-columns: 17.5fr 32.5fr 25fr 25fr; gap: 3px; height: 10px; margin-top: 10px; }
.bmi-scale i { border-radius: 4px; }
.bmi-pin { position: absolute; top: -5px; width: 20px; height: 20px; border-radius: 50%; background: var(--paper); border: 4px solid var(--ink); translate: -50% 0; }
.bmi-ticks { display: flex; justify-content: space-between; font-family: var(--mono); font-size: 11px; color: color-mix(in srgb, var(--paper) 55%, var(--ink)); margin-top: 8px; }
.chart-head { display: flex; justify-content: space-between; align-items: center; gap: 12px; margin-top: 26px; flex-wrap: wrap; }
.ranges { display: flex; gap: 4px; background: color-mix(in srgb, var(--paper) 10%, var(--ink)); border-radius: 12px; padding: 4px; }
.ranges button { border: 0; background: transparent; color: color-mix(in srgb, var(--paper) 65%, var(--ink)); font: 700 12.5px/1 var(--mono); padding: 8px 11px; border-radius: 9px; cursor: pointer; }
.ranges button[aria-pressed="true"] { background: var(--paper); color: var(--ink); }
.chart { margin-top: 14px; }
.chart svg { width: 100%; height: auto; display: block; overflow: visible; }
.example-tag { font-family: var(--mono); font-size: 11px; color: color-mix(in srgb, var(--paper) 55%, var(--ink)); }

/* features */
.features { display: grid; grid-template-columns: repeat(3, 1fr); gap: 0; border-top: 1px solid var(--line); }
.feature { padding: 30px 28px 34px 0; border-bottom: 1px solid var(--line); display: grid; gap: 8px; align-content: start; }
.feature:not(:nth-child(3n+1)) { padding-left: 28px; border-left: 1px solid var(--line); }
.feature .dot { width: 34px; height: 34px; border-radius: 12px; display: grid; place-items: center; }
.feature h3 { font-family: var(--body); font-size: 19px; font-weight: 700; letter-spacing: -0.01em; margin-top: 8px; }
.feature p { color: var(--ink-soft); font-size: 15.5px; }

/* privacy */
.privacy { display: grid; grid-template-columns: .8fr 1.2fr; gap: 48px; align-items: center; padding: clamp(32px, 5vw, 56px); border-radius: 36px;
  background: linear-gradient(135deg, color-mix(in srgb, var(--protein) 16%, var(--surface)), color-mix(in srgb, var(--kcal) 14%, var(--surface))); border: 1px solid var(--line); }
.privacy h2 { font-size: clamp(34px, 4.4vw, 54px); font-weight: 800; }
.privacy ul { list-style: none; margin: 0; padding: 0; display: grid; gap: 14px; }
.privacy li { display: grid; grid-template-columns: 26px 1fr; gap: 12px; font-size: 16px; }
.privacy li svg { margin-top: 3px; }

/* pricing */
.pricing { display: grid; grid-template-columns: 1fr 1fr; gap: 20px; max-width: 880px; }
.price { position: relative; border-radius: 30px; padding: 32px; background: var(--surface); border: 1px solid var(--line); display: grid; gap: 14px; align-content: start; }
.price.featured { border: 2px solid transparent; background:
  linear-gradient(var(--surface), var(--surface)) padding-box,
  linear-gradient(120deg, var(--kcal), var(--fat), var(--burn), var(--carbs), var(--protein)) border-box; }
.price .tag { position: absolute; top: 22px; right: 22px; font: 700 12px/1 var(--mono); padding: 7px 10px; border-radius: 999px; background: var(--ink); color: var(--paper); }
.price h3 { font-family: var(--body); font-size: 20px; font-weight: 700; }
.price .amt { font-family: var(--display); font-weight: 800; font-size: clamp(40px, 4.4vw, 52px); letter-spacing: -0.03em; line-height: 1; white-space: nowrap; }
.price .amt small { font-family: var(--body); font-size: 17px; font-weight: 600; color: var(--ink-soft); letter-spacing: 0; }
.price .sub { color: var(--ink-soft); font-size: 14.5px; }
.price ul { margin: 6px 0 0; padding: 0; list-style: none; display: grid; gap: 8px; font-size: 15px; }
.price li { display: flex; gap: 10px; }
.price li::before { content: "✓"; font-family: var(--mono); font-weight: 700; color: var(--safe); }
.fine { margin-top: 22px; font-size: 13px; color: var(--ink-soft); max-width: 80ch; }
.fine p + p { margin-top: 8px; }
.fine a { color: inherit; text-underline-offset: 3px; }
.hero-note { margin-top: 16px; font-size: 13.5px; color: var(--ink-soft); max-width: 52ch; }
.store-note { margin-top: 14px; font-size: 13.5px; color: var(--ink-soft); }

@media (max-width: 980px) {
  .stage { margin-top: 12px; }
  .conditions { grid-template-columns: repeat(2, 1fr); }
  .privacy { grid-template-columns: 1fr; }
  .features { grid-template-columns: repeat(2, 1fr); }
  .feature:not(:nth-child(3n+1)) { padding-left: 0; border-left: 0; }
  .feature:nth-child(even) { padding-left: 24px; border-left: 1px solid var(--line); }
}
@media (max-width: 760px) {
  .pricing { grid-template-columns: 1fr; }
  .floaty { display: none; }
}
@media (max-width: 520px) {
  .pricing { grid-template-columns: minmax(0, 1fr); }
  .price { padding: 26px 22px; }
  .price .amt { white-space: normal; font-size: 36px; }
  .conditions, .features { grid-template-columns: 1fr; }
  .feature:nth-child(even) { padding-left: 0; border-left: 0; }
  .plan-top { grid-template-columns: 1fr 1fr; }
  .plan-top .tile:last-child { grid-column: span 2; }
  .phone { transform: none; }
}
@media (prefers-reduced-motion: reduce) {
  .scene.on .verdict { opacity: 1; translate: 0 0; }
}
