/* =========================================================
   KidiPlate — One-Pager (single screen, no scroll by design)
   ========================================================= */

:root{
  --red:        #E0301E;
  --red-deep:   #B8230F;
  --red-tint:   rgba(224,48,30,0.08);

  --ink:        #14161A;
  --ink-soft:   #5A5D64;

  --paper:      #FFFFFF;
  --mist:       #F5F2EF;
  --mist-2:     #EFEBE7;
  --line:       #E7E2DD;

  --font-display: "Fraunces", Georgia, serif;
  --font-body: "Inter", -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;

  --cut: 12px;
  --ease: cubic-bezier(.22,.61,.36,1);
  --shadow: 0 18px 34px rgba(20,16,14,0.08);
}

*{ box-sizing: border-box; }
html, body{ height: 100%; }
body{
  margin: 0;
  font-family: var(--font-body);
  color: var(--ink);
  background:
    radial-gradient(50% 42% at 88% 6%, rgba(224,48,30,0.08), transparent 62%),
    var(--paper);
  -webkit-font-smoothing: antialiased;
  line-height: 1.5;
}
img{ max-width: 100%; display: block; }
a{ color: inherit; text-decoration: none; }
h1, h4{ font-family: var(--font-display); line-height: 1.1; margin: 0; font-weight: 600; letter-spacing: -0.01em; }
p{ margin: 0; }
.cut{ clip-path: polygon(0 0, 100% 0, 100% 100%, var(--cut) 100%, 0 calc(100% - var(--cut))); }

.page{ min-height: 100vh; display: flex; flex-direction: column; }

.eyebrow{ font-size: 12px; font-weight: 600; letter-spacing: 0.14em; text-transform: uppercase; color: var(--red-deep); margin: 0 0 10px; }

/* ---------- Buttons ---------- */
.btn{ display: inline-flex; align-items: center; gap: 8px; font-weight: 600; border: 1.5px solid transparent; white-space: nowrap; transition: transform .2s var(--ease), background .2s ease; }
.btn--primary{ background: var(--red); color: #fff; box-shadow: 0 8px 18px -6px rgba(224,48,30,0.5); }
.btn--primary:hover{ background: var(--red-deep); transform: translateY(-1px); }
.btn--sm{ padding: 11px 20px; font-size: 13.5px; clip-path: polygon(0 0, 100% 0, 100% 100%, 10px 100%, 0 calc(100% - 10px)); }

/* ---------- Top / bottom bars ---------- */
.bar{ display: flex; align-items: center; justify-content: space-between; padding: 18px 5vw; flex: none; }
.bar__logo{ height: 46px !important; width: auto !important; max-width: none !important; }
.bar--bottom{ border-top: 1px solid var(--line); background: var(--mist); font-size: 12.5px; color: var(--ink-soft); }
.bar--bottom a{ font-weight: 600; color: var(--ink); }

/* ---------- Sheet (main single-screen content) ---------- */
.sheet{ flex: 1; display: flex; flex-direction: column; justify-content: center; gap: clamp(20px, 3vh, 34px); padding: 0.5vh 5vw 2vh; max-width: 1280px; margin: 0 auto; width: 100%; }

.intro{ display: flex; align-items: center; gap: clamp(24px, 4vw, 56px); }
.intro__text{ flex: 1.25; }
.intro__text h1{ font-size: clamp(26px, 3.1vw, 40px); margin-bottom: 12px; color: var(--ink); }
.intro__text h1 span{ color: var(--red); }
.intro__lead{ font-size: clamp(13.5px, 1.1vw, 15.5px); color: var(--ink-soft); max-width: 56ch; margin-bottom: 16px; }
.intro__visual{ flex: 0.85; max-width: 260px; }
.intro__visual .angle-fig{ width: 100%; height: auto; display: block; }

.badges{ display: flex; gap: 10px; flex-wrap: wrap; }
.badge{ display: inline-flex; align-items: center; gap: 7px; background: var(--mist); border: 1px solid var(--line); padding: 7px 13px; font-size: 12px; font-weight: 600; color: var(--ink-soft); }
.badge span[data-icon]{ width: 14px; height: 14px; color: var(--red); display: inline-flex; }
.badge svg{ width: 100%; height: 100%; }

/* angle figure animation (shared) */
.angle-fig__pulse{ transform-box: view-box; transform-origin: 260px 380px; animation: pulse 2.6s var(--ease) infinite; }
.angle-fig__pulse--b{ animation-delay: 1.1s; }
@keyframes pulse{ 0%{ transform: scale(1); opacity: .45; } 100%{ transform: scale(2.1); opacity: 0; } }
.angle-fig__sweep{ transform-box: view-box; transform-origin: 260px 380px; animation: sweep 1.15s var(--ease) .25s both; }
@keyframes sweep{ 0%{ transform: rotate(0deg); } 100%{ transform: rotate(38deg); } }
.angle-fig__arc{ opacity: 0; animation: fadeIn .5s ease 1.4s forwards; }
.angle-fig__label{ opacity: 0; animation: fadeIn .5s ease 1.5s forwards; }
@keyframes fadeIn{ to{ opacity: 1; } }

/* ---------- Grid: Today | KidiPlate | Savings strip ---------- */
.grid{ display: grid; grid-template-columns: 1fr 1fr; grid-template-rows: auto auto; gap: 14px; }
.label{ font-size: 11.5px; font-weight: 600; letter-spacing: 0.1em; text-transform: uppercase; color: var(--ink-soft); margin: 0 0 10px; }
.label--red{ color: var(--red-deep); }

.today{ display: flex; flex-direction: column; gap: 10px; }
.mini{ background: #fff; border: 1px solid var(--line); padding: 12px 14px; display: flex; gap: 12px; align-items: flex-start; box-shadow: var(--shadow); }
.mini__icon{ flex: none; width: 28px; height: 28px; display: flex; align-items: center; justify-content: center; background: var(--mist-2); color: var(--ink-soft); }
.mini__icon svg{ width: 14px; height: 14px; }
.mini h4{ font-family: var(--font-body); font-size: 13px; font-weight: 600; color: var(--ink); margin-bottom: 3px; }
.mini p{ font-size: 11.5px; line-height: 1.4; color: var(--ink-soft); }

.kp{ background: var(--red-tint); border: 1.5px solid rgba(224,48,30,0.35); padding: 16px 18px; display: flex; flex-direction: column; justify-content: center; }
.kp__icon{ width: 30px; height: 30px; display: flex; align-items: center; justify-content: center; background: var(--red); color: #fff; margin-bottom: 10px; }
.kp__icon svg{ width: 15px; height: 15px; }
.kp h4{ font-family: var(--font-body); font-size: 14.5px; font-weight: 600; color: var(--ink); margin-bottom: 6px; }
.kp p{ font-size: 12px; line-height: 1.45; color: var(--ink-soft); }

.savings{ grid-column: 1 / -1; background: #fff; border: 1px solid var(--line); box-shadow: var(--shadow); padding: 14px 22px; display: flex; align-items: center; justify-content: space-between; gap: 20px; flex-wrap: wrap; }
.savings__label{ font-size: 11px; font-weight: 600; letter-spacing: 0.08em; text-transform: uppercase; color: var(--ink-soft); max-width: 16ch; }
.savings__stats{ display: flex; gap: clamp(20px, 4vw, 48px); }
.savings-stat{ text-align: center; }
.savings-stat b{ display: block; font-family: var(--font-display); font-size: clamp(19px, 2vw, 26px); font-weight: 600; color: var(--red-deep); line-height: 1; margin-bottom: 4px; }
.savings-stat span{ font-size: 10.5px; color: var(--ink-soft); white-space: nowrap; }

/* ---------- Responsive ---------- */
@media (max-width: 860px){
  html, body{ height: auto; }
  .intro{ flex-direction: column; align-items: flex-start; }
  .intro__visual{ max-width: 200px; align-self: center; }
  .grid{ grid-template-columns: 1fr; }
  .savings{ flex-direction: column; align-items: flex-start; }
  .savings__stats{ gap: 28px; }
}

/* ---------- Footer: legal links + regulatory note ---------- */
.skip{ position: absolute; left: -9999px; top: 0; background: #fff; color: var(--red-deep); padding: 8px 14px; z-index: 10; font-weight: 600; }
.skip:focus{ left: 12px; top: 12px; outline: 2px solid var(--red-deep); }
.bar--bottom.footer{ flex-direction: column; align-items: stretch; gap: 6px; padding-top: 14px; padding-bottom: 14px; }
.footer__row{ display: flex; align-items: center; justify-content: space-between; gap: 8px 24px; flex-wrap: wrap; }
.footer__legal{ display: flex; flex-wrap: wrap; gap: 4px 18px; }
.bar--bottom .footer__legal a{ font-weight: 500; color: var(--ink-soft); }
.bar--bottom a:hover, .bar--bottom a:focus-visible{ text-decoration: underline; text-underline-offset: 3px; }
.footer__note{ font-size: 11.5px; line-height: 1.45; color: var(--ink-soft); }
a:focus-visible{ outline: 2px solid var(--red-deep); outline-offset: 2px; }

/* ---------- Legal pages ---------- */
.legal{ flex: 1; width: 100%; max-width: 820px; margin: 0 auto; padding: 24px 5vw 64px; font-size: 16px; line-height: 1.7; color: #2B2E33; }
.legal h1{ font-size: clamp(28px, 3.4vw, 40px); color: var(--ink); margin-bottom: 6px; }
.legal h2{ font-family: var(--font-body); font-size: 19px; font-weight: 600; letter-spacing: 0; color: var(--ink); margin: 32px 0 8px; }
.legal p, .legal ul{ margin: 0 0 14px; }
.legal ul{ padding-left: 22px; }
.legal li{ margin-bottom: 6px; }
.legal a{ color: var(--red-deep); text-decoration: underline; text-underline-offset: 2px; }
.legal__updated{ font-size: 14px; color: var(--ink-soft); margin-bottom: 26px !important; }
.legal__plain{ list-style: none; padding-left: 0 !important; }
.legal__table{ overflow-x: auto; margin: 0 0 16px; }
.legal table{ width: 100%; border-collapse: collapse; font-size: 14.5px; line-height: 1.55; }
.legal th, .legal td{ border: 1px solid var(--line); padding: 10px 12px; text-align: left; vertical-align: top; }
.legal th{ background: var(--mist); font-weight: 600; color: var(--ink); }
.legal__note{ background: var(--red-tint); border-left: 3px solid var(--red); padding: 12px 16px; }
