/* App shell and calculator. This stylesheet is loaded only by the cut funnel. */
:root { background:#f4f6fa; color-scheme:light; scroll-padding-block:82px 105px; }
body[data-funnel="performance-protected-cut"] {
  --bg:#f4f6fa; --surface:#fff; --surface-2:#eaf3ff; --surface-3:#e5edf8;
  --line:#e5e9f0; --line-strong:#cdd5e2; --text:#172235; --muted:#687387;
  --soft:#445168; --green:#0066ee; --green-strong:#0066ee; --green-dark:#eaf3ff;
  --danger:#b82737; --ppc-blue:#0066ee; --ppc-carb:#20b6b0; --ppc-fat:#8a42bf; --ppc-protein:#efa92f;
  margin:0; color:var(--text); background:var(--bg); font-family:Inter,-apple-system,BlinkMacSystemFont,"Segoe UI",sans-serif;
  font-size:15px; line-height:1.5; -webkit-font-smoothing:antialiased;
}
body[data-funnel="performance-protected-cut"] * { box-sizing:border-box; }
body[data-funnel="performance-protected-cut"] .stage { display:block; padding:0; min-height:0; overflow:visible; }
body[data-funnel="performance-protected-cut"] .stage::before,
body[data-funnel="performance-protected-cut"] .phone-shell::before,
body[data-funnel="performance-protected-cut"] .phone-shell::after { display:none; }
body[data-funnel="performance-protected-cut"] .phone-shell {
  display:block; width:100%; max-width:480px; min-height:100dvh; margin:0 auto;
  background:var(--bg); border:0; border-radius:0; box-shadow:none; overflow:visible;
}
body[data-funnel="performance-protected-cut"] #app { display:flex; flex-direction:column; min-height:100dvh; }
body[data-funnel="performance-protected-cut"] .app-header {
  position:sticky; top:0; z-index:15; display:flex; align-items:center; justify-content:space-between;
  min-height:66px; padding:13px 18px; background:#fff; border-bottom:1px solid var(--line);
  backdrop-filter:none; box-shadow:none;
}
body[data-funnel="performance-protected-cut"] .brand-lockup { gap:8px; color:var(--text); text-decoration:none; }
body[data-funnel="performance-protected-cut"] .brand-name { font-size:22px; font-weight:750; letter-spacing:-.7px; color:var(--text); }
.ppc-brand-symbol { width:31px; height:31px; display:grid; place-items:center; color:var(--ppc-blue); background:var(--surface-2); border-radius:9px; }
.ppc-brand-symbol svg { width:21px; height:21px; fill:currentColor; }
.ppc-header-context { font-size:12px; font-weight:500; color:var(--muted); }
body[data-funnel="performance-protected-cut"] .screen { padding:20px 16px; overflow:visible; animation:none; }
body[data-funnel="performance-protected-cut"] .ppc-result-screen { padding-top:14px; padding-bottom:100px; }
body[data-funnel="performance-protected-cut"] h1,
body[data-funnel="performance-protected-cut"] h2,
body[data-funnel="performance-protected-cut"] h3 { font-family:inherit; color:var(--text); }
body[data-funnel="performance-protected-cut"] .ppc-calculator-screen { padding-bottom:105px; }
.ppc-calculator-progress { margin-bottom:23px; }
.ppc-calculator-progress>div:first-child { display:flex; justify-content:space-between; font-size:12px; font-weight:600; color:var(--muted); margin-bottom:10px; }
.ppc-calculator-progress>div:first-child>span:first-child { color:var(--ppc-blue); }
.ppc-progress-track { height:4px; overflow:hidden; background:#e0e5ed; border-radius:8px; }
.ppc-progress-track>span { display:block; height:100%; background:var(--ppc-blue); border-radius:8px; }
.ppc-onboarding-heading { margin-bottom:21px; }
body[data-funnel="performance-protected-cut"] .ppc-onboarding-heading h1 { margin:0 0 9px; max-width:370px; font-size:27px; line-height:1.18; font-weight:750; letter-spacing:-.8px; }
.ppc-onboarding-heading p { font-size:14px; line-height:1.5; color:var(--muted); margin:0; }
.ppc-input-panel { display:grid; gap:19px; padding:18px; background:#fff; border:1px solid var(--line); border-radius:16px; }
body[data-funnel="performance-protected-cut"] .field-stack { gap:14px; }
body[data-funnel="performance-protected-cut"] .field { gap:8px; }
body[data-funnel="performance-protected-cut"] label,
body[data-funnel="performance-protected-cut"] .label { font-size:13px; font-weight:650; color:var(--text); }
body[data-funnel="performance-protected-cut"] .grid-2,
body[data-funnel="performance-protected-cut"] .grid-3,
body[data-funnel="performance-protected-cut"] .option-grid { gap:8px; }
body[data-funnel="performance-protected-cut"] .input {
  height:48px; min-height:48px; padding:0 13px; border:1px solid var(--line-strong); border-radius:9px;
  background:#fff; box-shadow:none; color:var(--text); font-size:16px; font-weight:500; scroll-margin-block:82px 105px;
}
body[data-funnel="performance-protected-cut"] .input::placeholder { color:#9aa4b3; opacity:1; }
body[data-funnel="performance-protected-cut"] .input:focus { border-color:var(--ppc-blue); box-shadow:0 0 0 3px #0066ee18; }
.ppc-height-field .field { gap:5px; }
.ppc-height-field .field>label { color:var(--muted); font-size:11px; font-weight:500; }
body[data-funnel="performance-protected-cut"] .option-btn,
body[data-funnel="performance-protected-cut"] .body-comp-card {
  min-height:45px; padding:10px 12px; border:1px solid var(--line-strong); border-radius:9px;
  color:var(--soft); background:#fff; box-shadow:none; font-size:13px; font-weight:550; line-height:1.3;
}
body[data-funnel="performance-protected-cut"] .option-btn.selected,
body[data-funnel="performance-protected-cut"] .body-comp-card.selected {
  color:#0055c7; background:var(--surface-2); border-color:var(--ppc-blue); box-shadow:inset 0 0 0 .5px var(--ppc-blue);
}
body[data-funnel="performance-protected-cut"] .option-grid.compact { grid-template-columns:repeat(5,minmax(0,1fr)); }
body[data-funnel="performance-protected-cut"] .option-grid.compact .option-btn { padding:10px 3px; font-size:16px; }
body[data-funnel="performance-protected-cut"] .ppc-calculator-screen:not(.body-screen)>.field-stack>.field {
  background:#fff; border:1px solid var(--line); border-radius:15px; padding:16px;
}
body[data-funnel="performance-protected-cut"] .body-comp-list,
body[data-funnel="performance-protected-cut"] .body-screen .body-comp-list { grid-template-columns:repeat(2,minmax(0,1fr)); grid-template-rows:auto; min-height:0; gap:8px; }
body[data-funnel="performance-protected-cut"] .body-comp-card,
body[data-funnel="performance-protected-cut"] .body-screen .body-comp-card {
  display:flex; flex-direction:column; align-items:flex-start; justify-content:flex-start; min-height:112px; gap:6px; padding:12px; text-align:left;
}
body[data-funnel="performance-protected-cut"] .body-comp-range { order:2; min-width:0; min-height:0; color:var(--muted); background:none; border-radius:0; padding:0; font-size:11px; font-weight:500; }
body[data-funnel="performance-protected-cut"] .body-comp-title { order:1; color:inherit; font-size:13px; font-weight:650; }
body[data-funnel="performance-protected-cut"] .body-comp-desc,
body[data-funnel="performance-protected-cut"] .body-comp-card.selected .body-comp-desc { order:3; color:var(--muted); font-size:11px; font-weight:400; line-height:1.4; }
body[data-funnel="performance-protected-cut"] .ppc-body-hint { margin:0 0 4px; color:var(--muted); font-size:11px; line-height:1.5; font-weight:400; }
body[data-funnel="performance-protected-cut"] .bottom-bar {
  position:fixed; bottom:0; left:50%; transform:translateX(-50%); width:100%; max-width:480px; z-index:20; gap:10px; padding:12px 16px max(15px,env(safe-area-inset-bottom)); margin-top:0;
  background:#fff; border-top:1px solid var(--line); box-shadow:0 -3px 16px #17223505; backdrop-filter:none;
}
body[data-funnel="performance-protected-cut"] .btn { min-height:50px; border-radius:10px; font-size:15px; font-weight:650; }
body[data-funnel="performance-protected-cut"] .btn.primary { display:flex; align-items:center; justify-content:center; gap:12px; background:var(--ppc-blue); color:#fff; border-color:var(--ppc-blue); box-shadow:none; }
body[data-funnel="performance-protected-cut"] .btn.secondary { width:51px; flex-shrink:0; display:grid; place-items:center; padding:0; background:#fff; color:var(--soft); border-color:var(--line-strong); }
.ppc-calculator-actions svg { width:20px; height:20px; fill:none; stroke:currentColor; stroke-width:1.8; stroke-linecap:round; stroke-linejoin:round; }
body[data-funnel="performance-protected-cut"] .error { color:var(--danger); font-size:13px; }
body[data-funnel="performance-protected-cut"] :focus-visible { outline:3px solid #0066ee55; outline-offset:3px; }
body[data-funnel="performance-protected-cut"] .seo-library { display:flex; justify-content:center; gap:15px; max-width:480px; margin:0 auto; padding:15px 16px 102px; color:var(--muted); font-size:11px; background:var(--bg); z-index:0; }
body[data-funnel="performance-protected-cut"][data-screen="form"] .seo-library { padding-bottom:105px; }
body[data-funnel="performance-protected-cut"] .seo-library a { color:var(--muted); }
.ppc-review-banner { display:flex; gap:7px; align-items:center; margin:0 0 18px; padding:8px 11px; background:var(--surface-2); color:#416189; border:1px solid #d9e8ff; border-radius:8px; font-size:11px; line-height:1.4; }
.ppc-review-banner>span { width:5px; height:5px; border-radius:50%; background:var(--ppc-blue); flex-shrink:0; }
.ppc-dashboard-heading { display:flex; align-items:center; justify-content:space-between; gap:15px; margin:0 0 16px; }
.ppc-targets .eyebrow { margin:0 0 3px; color:var(--muted); font-size:11px; text-transform:none; font-weight:500; letter-spacing:0; }
body[data-funnel="performance-protected-cut"] .ppc-targets h1 { margin:0; font-size:26px; font-weight:750; letter-spacing:-.7px; line-height:1.2; }
.ppc-targets .ppc-edit-targets { min-height:40px; padding:8px 4px 8px 12px; color:var(--ppc-blue); font-size:13px; font-weight:600; text-decoration:none; }
.ppc-target-grid { display:grid; grid-template-columns:repeat(3,minmax(0,1fr)); overflow:hidden; background:#fff; border:1px solid var(--line); border-radius:16px; box-shadow:0 2px 4px #17223502; }
.ppc-target-grid .ppc-calorie-target { grid-column:1/-1; display:block; padding:20px 19px 16px; border-bottom:1px solid var(--line); }
.ppc-calorie-label { display:flex; align-items:center; justify-content:space-between; gap:10px; font-size:16px; font-weight:650; color:var(--text); }
.ppc-goal-tag { background:var(--surface-2); color:var(--ppc-blue); padding:4px 7px; border-radius:5px; font-size:10px; font-weight:600; }
.ppc-calorie-value { display:flex; align-items:baseline; gap:7px; margin:10px 0 0; }
.ppc-calorie-value strong { font-size:44px; font-weight:750; line-height:1.1; letter-spacing:-1.7px; font-variant-numeric:tabular-nums; }
.ppc-calorie-value>span { color:var(--muted); font-size:13px; }
.ppc-calorie-target>small { display:block; margin-top:5px; color:var(--muted); font-size:11px; }
.ppc-macro-split { display:flex; gap:3px; height:7px; overflow:hidden; border-radius:6px; margin-top:19px; }
.ppc-macro-split>span { height:100%; background:var(--macro-color); border-radius:4px; }
.ppc-split-caption { display:block; margin-top:7px; color:var(--muted); font-size:10px; line-height:1.4; }
.ppc-macro-carbs { --macro-color:var(--ppc-carb); }
.ppc-macro-fat { --macro-color:var(--ppc-fat); }
.ppc-macro-protein { --macro-color:var(--ppc-protein); }
.ppc-macro-target { min-width:0; display:flex; flex-direction:column; gap:5px; padding:17px 12px; border-left:1px solid var(--line); }
.ppc-macro-target:nth-child(2) { border-left:0; }
.ppc-macro-target>span { display:flex; align-items:center; gap:5px; color:var(--soft); font-size:11px; font-weight:600; }
.ppc-macro-target i { display:inline-block; width:6px; height:6px; border-radius:50%; background:var(--macro-color); }
.ppc-macro-target>strong { color:var(--text); font-size:26px; font-weight:700; letter-spacing:-.7px; line-height:1.2; }
.ppc-macro-target strong small { margin-left:2px; color:var(--muted); font-size:13px; font-weight:500; letter-spacing:0; }
.ppc-macro-target>small { color:var(--muted); font-size:9px; line-height:1.4; }
.ppc-target-note { color:var(--muted); font-size:11px; line-height:1.6; margin:12px 2px 22px; }
@media(min-width:600px) {
  body[data-funnel="performance-protected-cut"] { background:#e9edf3; }
  body[data-funnel="performance-protected-cut"] .phone-shell { border-inline:1px solid #dde3ec; }
}
@media(max-width:359px) {
  body[data-funnel="performance-protected-cut"] .screen { padding-inline:12px; }
  .ppc-input-panel { padding:14px; }
  body[data-funnel="performance-protected-cut"] .ppc-onboarding-heading h1 { font-size:25px; }
  .ppc-macro-target { padding:15px 10px; }
  .ppc-macro-target>small { font-size:8px; }
}
@media(prefers-reduced-motion:reduce) {
  body[data-funnel="performance-protected-cut"] * { animation:none!important; transition:none!important; scroll-behavior:auto!important; }
}
