/* kinready.app — shared by / and /es/. Colors are the app's DS.Palette. */
:root {
  --ground: #F4F5F2;
  --surface: #FFFFFF;
  --ink: #111A22;
  --ink-secondary: #5A6169;
  --accent: #B9E08E;
  --accent-ink: #3E6B2C;
  --on-accent-secondary: #26361E;
  --accent-wash: #EEF6E4;
  --accent-soft: #DCEBCB;
  --rule: #DCDEDA;
  --night: #0C0F12;
  --night-surface: #1B1F24;
  --night-rule: #2E343B;
  --night-ink: #F4F6F3;
  --night-ink-secondary: #A7AEB6;

  --rounded: ui-rounded, "SF Pro Rounded", -apple-system, BlinkMacSystemFont,
             "Segoe UI", system-ui, sans-serif;
  --mono: ui-monospace, "SF Mono", SFMono-Regular, Menlo, Consolas, monospace;
  --gutter: clamp(16px, 4vw, 56px);
  --section: clamp(72px, 10vw, 140px);

  color-scheme: light;
}

* { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; scroll-behavior: smooth; }
@media (prefers-reduced-motion: reduce) { html { scroll-behavior: auto; } }

body {
  margin: 0;
  background: var(--ground);
  color: var(--ink);
  font-family: var(--rounded);
  font-size: 17px;
  line-height: 1.55;
  -webkit-font-smoothing: antialiased;
  overflow-x: hidden;
}

img { display: block; max-width: 100%; height: auto; }
a { color: var(--accent-ink); }
a:hover { color: var(--ink); }
:focus-visible { outline: 3px solid var(--accent-ink); outline-offset: 3px; }

.wrap { max-width: 1200px; margin: 0 auto; }
.section { padding: var(--section) var(--gutter); }
.mono { font-family: var(--mono); }

.skip {
  position: absolute; left: 16px; top: -100px; z-index: 10;
  padding: 10px 16px; border-radius: 12px;
  background: var(--ink); color: #fff; font-weight: 700;
}
.skip:focus { top: 16px; }

.eyebrow {
  margin: 0 0 16px;
  font-size: 14px; font-weight: 800; letter-spacing: 0.11em; text-transform: uppercase;
  color: var(--accent-ink);
}
h1, h2, h3 { margin: 0; font-weight: 900; text-wrap: balance; }
h2 { font-size: clamp(34px, 4vw, 54px); line-height: 1.04; letter-spacing: -0.03em; }
.lede { margin: 24px 0 0; max-width: 500px; font-size: 19px; color: var(--ink-secondary); text-wrap: pretty; }

/* The pale circles from the app's Emergency card tile. */
.circle { position: absolute; border-radius: 50%; background: rgba(255, 255, 255, 0.3); pointer-events: none; }

/* Phone: a real capture in a plain bezel. */
.phone { padding: 9px; background: var(--ink); border-radius: 52px; box-shadow: 0 30px 60px -28px rgba(17, 26, 34, 0.45); }
.phone img { width: 100%; border-radius: 43px; }

/* Buttons */
.btn-store {
  display: inline-flex; align-items: center; gap: 16px;
  min-height: 64px; padding: 0 10px 0 28px; border-radius: 999px;
  background: var(--ink); color: #fff; text-decoration: none;
  font-size: 19px; font-weight: 800;
}
.btn-store:hover { color: #fff; background: #1F2A34; }
.btn-store .arrow {
  display: inline-flex; align-items: center; justify-content: center;
  width: 46px; height: 46px; border-radius: 50%; background: var(--accent);
  transition: transform .2s;
}
.btn-store:hover .arrow { transform: translateX(3px); }
.pill {
  display: inline-flex; align-items: center; min-height: 44px; padding: 0 16px;
  border-radius: 999px; text-decoration: none; font-size: 15px; font-weight: 700;
}
.pill-outline { border: 1.5px solid rgba(17, 26, 34, 0.25); color: var(--ink); }
.pill-outline:hover { border-color: var(--ink); }
.pill-solid { background: var(--ink); color: #fff; }
.pill-solid:hover { color: #fff; background: #1F2A34; }

/* Hero */
.hero { position: relative; overflow: hidden; background: var(--accent); padding: 0 var(--gutter); }
.hero .c1 { width: 620px; height: 620px; right: -160px; top: -220px; background: rgba(255,255,255,0.32); }
.hero .c2 { width: 300px; height: 300px; left: 38%; bottom: -170px; background: rgba(255,255,255,0.28); }
.nav { position: relative; display: flex; align-items: center; justify-content: space-between; gap: 16px; padding: 22px 0; }
.brand { display: flex; align-items: center; gap: 12px; color: var(--ink); text-decoration: none; font-size: 21px; font-weight: 800; letter-spacing: -0.01em; }
.brand img { width: 40px; height: 40px; border-radius: 10px; }
.nav-links { display: flex; gap: 32px; font-size: 16px; font-weight: 700; }
.nav-links a { color: var(--ink); text-decoration: none; }
.nav-links a:hover { text-decoration: underline; text-underline-offset: 4px; }
.nav-actions { display: flex; align-items: center; gap: 10px; }
@media (max-width: 860px) { .nav-links { display: none; } }
@media (max-width: 420px) { .nav-actions .pill-solid { display: none; } }

.hero-grid { position: relative; display: flex; flex-wrap: wrap; align-items: flex-end; gap: 48px 64px; padding-top: clamp(32px, 6vw, 80px); }
.hero-copy { flex: 1 1 460px; min-width: 0; padding-bottom: clamp(40px, 8vw, 120px); }
.hero-for { margin: 0 0 22px; font-family: var(--mono); font-size: 14px; color: #2C4220; }
.hero h1 { font-size: clamp(46px, 6.4vw, 92px); line-height: 0.98; letter-spacing: -0.035em; }
.hero-sub { margin: 28px 0 0; max-width: 520px; font-size: clamp(18px, 1.6vw, 21px); line-height: 1.5; font-weight: 600; color: var(--on-accent-secondary); text-wrap: pretty; }
.hero-cta { display: flex; flex-wrap: wrap; align-items: center; gap: 16px 24px; margin-top: 36px; }
.hero-note { margin: 0; font-size: 15px; font-weight: 700; color: #2C4220; }
.hero-art { flex: 1 1 440px; min-width: 0; position: relative; height: clamp(520px, 52vw, 700px); }
.hero-art .back { position: absolute; left: 50%; top: 70px; transform: translateX(-96%); width: min(290px, 44vw); }
.hero-art .front { position: absolute; left: 50%; top: 0; transform: translateX(-18%); width: min(310px, 48vw); padding: 10px; border-radius: 54px; box-shadow: 0 40px 80px -24px rgba(17,26,34,0.55); }
.hero-art .front img { border-radius: 44px; }

/* Strip */
.strip { background: var(--ink); padding: 22px var(--gutter); }
.strip ul { list-style: none; margin: 0 auto; padding: 0; max-width: 1200px; display: flex; flex-wrap: wrap; justify-content: space-between; gap: 12px 32px; font-family: var(--mono); font-size: 14px; color: #C9D0D6; }
.strip li::before { content: "●"; color: var(--accent); margin-right: 10px; }

/* Rows shaped like the app's medication list */
.ledger { background: var(--surface); border-radius: 28px; padding: 8px 24px; }
.ledger > div { display: flex; justify-content: space-between; align-items: baseline; gap: 16px; padding: 18px 0; border-bottom: 1px solid #E6E8E4; }
.ledger > div:last-child { border-bottom: 0; }
.ledger dt { flex: none; font-size: 17px; font-weight: 800; }
.ledger dd { margin: 0; font-family: var(--mono); font-size: 15px; color: var(--ink-secondary); text-align: right; }
.ledger dd.yes { color: var(--accent-ink); font-weight: 500; }

/* Emergency card */
.split { display: flex; flex-wrap: wrap; align-items: center; gap: 56px 80px; }
.split > .copy { flex: 1 1 420px; min-width: 0; }
.card-copy .ledger { margin-top: 36px; max-width: 500px; }
.card-shots { flex: 1 1 520px; min-width: 0; display: flex; justify-content: center; align-items: flex-start; gap: clamp(16px, 3vw, 36px); }
.card-shots figure { margin: 0; width: min(270px, 44vw); }
.card-shots figure + figure { margin-top: 72px; }
.card-shots .phone { padding: 8px; border-radius: 46px; }
.card-shots .phone img { border-radius: 38px; }
.card-shots .dark { background: #2A3038; }
.card-shots figcaption { margin-top: 16px; font-size: 15px; font-weight: 700; color: var(--ink-secondary); text-align: center; }

/* Features */
.features { padding: 0 var(--gutter) var(--section); }
.features-panel { background: var(--surface); border-radius: 40px; padding: clamp(28px, 5vw, 72px); display: flex; flex-wrap: wrap; gap: 48px 72px; align-items: center; }
.features-list { flex: 1 1 440px; min-width: 0; }
.features-list h2 { margin-bottom: 32px; }
.feature-buttons { display: flex; flex-direction: column; gap: 8px; margin: 0; padding: 0; list-style: none; }
.feature {
  display: flex; gap: 18px; align-items: flex-start; width: 100%;
  padding: 18px 20px; border: 0; border-radius: 22px;
  background: transparent; color: var(--ink); font: inherit; text-align: left; cursor: pointer;
}
.feature:hover { background: #F6F7F4; }
.feature[aria-pressed="true"] { background: var(--accent-wash); }
.feature .num { flex: none; display: inline-flex; align-items: center; justify-content: center; width: 36px; height: 36px; border-radius: 50%; background: #EFF0EC; font-family: var(--mono); font-size: 14px; font-weight: 500; }
.feature[aria-pressed="true"] .num { background: var(--accent); }
.feature .text { display: flex; flex-direction: column; gap: 6px; min-width: 0; }
.feature .title { font-size: 20px; font-weight: 800; letter-spacing: -0.01em; }
.feature .body { font-size: 16px; line-height: 1.5; color: var(--ink-secondary); }
/* Without JavaScript every description shows; with it, only the chosen one. */
.js .feature[aria-pressed="false"] .body { display: none; }
.features-shot { flex: 1 1 360px; min-width: 0; display: flex; justify-content: center; background: var(--accent-wash); border-radius: 32px; padding: 48px 16px; }
.features-shot .phone { width: min(300px, 70vw); }

/* Privacy */
.privacy { background: var(--night); color: var(--night-ink); }
.privacy .eyebrow, .privacy a { color: var(--accent); }
.privacy a:hover { color: var(--night-ink); }
.privacy .split { align-items: flex-start; gap: 48px 96px; }
.privacy h2 { font-size: clamp(38px, 4.8vw, 66px); line-height: 1; letter-spacing: -0.035em; }
.privacy .lede { max-width: 460px; color: var(--night-ink-secondary); }
.privacy .more { display: inline-flex; align-items: center; min-height: 44px; margin-top: 24px; font-size: 17px; font-weight: 800; }
.privacy .ledger { flex: 1 1 480px; min-width: 0; background: var(--night-surface); border-radius: 32px; padding: 12px 28px; margin: 0; }
.privacy .ledger > div { padding: 22px 0; border-color: var(--night-rule); }
.privacy .ledger dt { font-size: 18px; }
.privacy .ledger dd { font-size: 16px; color: #DDE2E6; }
.privacy .ledger dd.yes { color: var(--accent); font-weight: 400; }

/* Yours to keep */
.keep { padding: var(--section) var(--gutter) 0; }
.keep-head { display: flex; flex-wrap: wrap; gap: 24px 80px; align-items: flex-end; margin-bottom: 48px; }
.keep-head > div { flex: 1 1 440px; min-width: 0; }
.keep-head p { flex: 1 1 400px; min-width: 0; margin: 0; font-size: 18px; line-height: 1.6; color: var(--ink-secondary); text-wrap: pretty; }
.duo { background: var(--accent-soft); border-radius: 40px; padding: clamp(16px, 4vw, 56px) clamp(16px, 4vw, 56px) 0; overflow: hidden; }
.duo-frame { padding: 12px 12px 0; background: var(--ink); border-radius: 40px 40px 0 0; }
.duo-frame img { width: 100%; border-radius: 30px 30px 0 0; }

/* Pricing */
.pricing h2 { margin-bottom: 12px; }
.pricing .sub { margin: 0 0 48px; font-size: 18px; color: var(--ink-secondary); }
.plans { display: grid; grid-template-columns: repeat(auto-fit, minmax(min(100%, 360px), 1fr)); gap: 24px; }
.plan { position: relative; overflow: hidden; background: var(--surface); border-radius: 32px; padding: 40px; display: flex; flex-direction: column; gap: 24px; }
.plan > * { position: relative; }
.plan h3 { font-size: 24px; font-weight: 800; }
.plan .price { margin: 10px 0 0; font-family: var(--mono); font-size: 34px; letter-spacing: -0.02em; }
.plan .price span { font-size: 16px; color: var(--ink-secondary); }
.plan .terms { margin: 6px 0 0; font-size: 16px; font-weight: 700; color: #2C4220; }
.plan ul { margin: 0; padding: 0; list-style: none; display: flex; flex-direction: column; gap: 14px; font-size: 17px; }
.plan li { display: flex; gap: 12px; }
.plan li svg { flex: none; margin-top: 1px; stroke: var(--accent-ink); }
.plan-family { background: var(--accent); }
.plan-family .price span { color: #2C4220; }
.plan-family li svg { stroke: var(--ink); }
.plan-family .circle { width: 220px; height: 220px; right: -60px; top: -80px; position: absolute; }

/* Questions */
.faq { padding: 0 var(--gutter) var(--section); }
.faq .wrap { display: flex; flex-wrap: wrap; gap: 32px 80px; }
.faq h2 { flex: 1 1 300px; font-size: clamp(30px, 3.2vw, 42px); line-height: 1.08; letter-spacing: -0.025em; }
.faq-list { flex: 2 1 560px; min-width: 0; border-top: 1.5px solid var(--ink); }
.faq details { border-bottom: 1px solid var(--rule); }
.faq summary { display: flex; justify-content: space-between; align-items: center; gap: 16px; min-height: 44px; padding: 22px 0; font-size: 20px; font-weight: 800; list-style: none; cursor: pointer; }
.faq summary::-webkit-details-marker { display: none; }
.faq summary::after { content: "+"; flex: none; font-size: 28px; font-weight: 600; transition: transform .2s; }
.faq details[open] summary::after { transform: rotate(45deg); }
.faq details p { margin: 0 0 24px; max-width: 620px; font-size: 17px; line-height: 1.6; color: var(--ink-secondary); }

/* Closing */
.closing { padding: 0 var(--gutter) clamp(56px, 6vw, 88px); }
.closing-panel { position: relative; overflow: hidden; background: var(--accent); border-radius: 40px; padding: clamp(48px, 7vw, 96px) clamp(24px, 6vw, 80px); display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between; gap: 32px; }
.closing-panel .c1 { width: 420px; height: 420px; right: -120px; top: -200px; }
.closing-panel .c2 { width: 180px; height: 180px; right: 22%; bottom: -110px; background: rgba(255,255,255,0.26); }
.closing-title { position: relative; display: flex; align-items: center; gap: 28px; flex: 1 1 480px; min-width: 0; }
.closing-title img { width: 96px; height: 96px; border-radius: 22px; flex: none; box-shadow: 0 16px 32px -16px rgba(17,26,34,0.4); }
.closing-title h2 { font-size: clamp(30px, 3.6vw, 48px); }
.closing .btn-store { position: relative; }
@media (max-width: 520px) { .closing-title { flex-direction: column; align-items: flex-start; } }

footer { padding: 0 var(--gutter) 48px; }
footer .wrap { padding-top: 24px; border-top: 1px solid var(--rule); display: flex; flex-wrap: wrap; justify-content: space-between; gap: 16px; font-size: 15px; color: var(--ink-secondary); }
footer nav { display: flex; flex-wrap: wrap; gap: 8px 24px; }
footer a { color: var(--ink-secondary); text-decoration-color: var(--rule); }
footer a:hover { color: var(--ink); }
