/* Sally's Pet Tracker — getsallys.com
   Tokens mirror lib/core/theme/colors.dart (B palette). Dark = true black. */
:root {
  --bg: #F7F7EE; --bg2: #EEEEDF; --card: #FFFFFF; --card2: #F1F2E7;
  --ink: #25372F; --ink2: #43584B; --mute: #627061; --line: #DEE3D4; --line2: #A6AF9E;
  --forest: #2D5A46; --forest-soft: #E2EAD8; --on-forest: #FFFFFF;
  --yellow: #E5BF55; --yellow-soft: #F5E6B3; --on-yellow: #25372F; --yellow-ink: #5E4710;
  --pink: #DEA2AC; --pink-soft: #F2CDD3;
  --ok: #2D6547; --food: #826214; --health: #2D6547; --mem: #915568;
  --chart-fill: #E2EAD8;
  --cta: var(--forest); --on-cta: #FFFFFF;
  --nav-active: #25372F; --nav-active-fg: #FFFFFF;
  --shadow: 0 30px 60px -30px rgba(37, 55, 47, .35);
  --sans: 'Manrope', system-ui, -apple-system, 'Segoe UI', sans-serif;
  --display: 'Bricolage Grotesque', 'Manrope', system-ui, sans-serif;
  color-scheme: light;
}
@media (prefers-color-scheme: dark) {
  :root:not([data-theme="light"]) {
    --bg: #0A0A0A; --bg2: #1C1C1C; --card: #171717; --card2: #222222;
    --ink: #F4F4EC; --ink2: #D9D9D0; --mute: #A6A69C; --line: #2C2C2C; --line2: #5A5A55;
    --forest: #8CC0A0; --forest-soft: #1B2B22; --on-forest: #17251E;
    --yellow-soft: #3A3218; --yellow-ink: #F1D584; --pink-soft: #3B2629;
    --ok: #8CC0A0; --food: #E5BF55; --health: #8CC0A0; --mem: #DEA2AC;
    --chart-fill: #1B2B22;
    --cta: #E5BF55; --on-cta: #17251E;
    --nav-active: #E5BF55; --nav-active-fg: #17251E;
    --shadow: 0 30px 60px -30px rgba(0, 0, 0, .8);
    color-scheme: dark;
  }
}
:root[data-theme="dark"] {
  --bg: #0A0A0A; --bg2: #1C1C1C; --card: #171717; --card2: #222222;
  --ink: #F4F4EC; --ink2: #D9D9D0; --mute: #A6A69C; --line: #2C2C2C; --line2: #5A5A55;
  --forest: #8CC0A0; --forest-soft: #1B2B22; --on-forest: #17251E;
  --yellow-soft: #3A3218; --yellow-ink: #F1D584; --pink-soft: #3B2629;
  --ok: #8CC0A0; --food: #E5BF55; --health: #8CC0A0; --mem: #DEA2AC;
  --chart-fill: #1B2B22;
  --cta: #E5BF55; --on-cta: #17251E;
  --nav-active: #E5BF55; --nav-active-fg: #17251E;
  --shadow: 0 30px 60px -30px rgba(0, 0, 0, .8);
  color-scheme: dark;
}

*, *::before, *::after { box-sizing: border-box; }
html { scroll-behavior: smooth; -webkit-text-size-adjust: 100%; }
@media (prefers-reduced-motion: reduce) { html { scroll-behavior: auto; } }
body { margin: 0; background: var(--bg); color: var(--ink); font: 500 17px/1.6 var(--sans); overflow-x: hidden; }
img { max-width: 100%; height: auto; display: block; }
a { color: inherit; }
button { font: inherit; color: inherit; cursor: pointer; }
:focus-visible { outline: 3px solid var(--yellow); outline-offset: 3px; border-radius: 8px; }
.skip { position: absolute; left: -999px; top: 8px; background: var(--ink); color: var(--bg); padding: 8px 14px; border-radius: 10px; z-index: 99; }
.skip:focus { left: 16px; }
.wrap { width: min(1180px, 100% - 32px); margin-inline: auto; }
.muted { color: var(--mute); }
.small { font-size: 14px; }
.tnum { font-variant-numeric: tabular-nums; }

/* ---------- type ---------- */
.display { font: 800 clamp(44px, 7.4vw, 92px)/.98 var(--display); letter-spacing: -.035em; margin: 0; text-wrap: balance; }
.display.sm { font-size: clamp(40px, 6vw, 72px); }
.h2 { font: 800 clamp(34px, 4.8vw, 58px)/1.02 var(--display); letter-spacing: -.03em; margin: 0; text-wrap: balance; }
.h3 { font: 800 clamp(26px, 3vw, 36px)/1.1 var(--display); letter-spacing: -.02em; margin: 0 0 12px; }
.lead { font-size: clamp(18px, 1.6vw, 21px); color: var(--ink2); max-width: 34ch; margin: 22px 0 0; }
.kicker { display: inline-block; font: 800 13px/1 var(--sans); letter-spacing: .14em; text-transform: uppercase; color: var(--ink2); margin: 0 0 18px; padding: 8px 12px; border-radius: 999px; background: var(--yellow-soft); }
.kicker.on-dark { background: rgba(229, 191, 85, .18); color: var(--yellow); }
/* hand-drawn underline under key words */
.ul { position: relative; white-space: nowrap; z-index: 0; }
.ul::after { content: ""; position: absolute; left: -2%; right: -2%; bottom: -.04em; height: .2em; z-index: -1; background: no-repeat center / 100% 100%; }
.ul-yellow::after { background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 220 24' preserveAspectRatio='none'%3E%3Cpath d='M6 17C70 7 160 3 214 11' fill='none' stroke='%23E5BF55' stroke-width='9' stroke-linecap='round'/%3E%3C/svg%3E"); }
.ul-pink::after { background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 220 24' preserveAspectRatio='none'%3E%3Cpath d='M6 15C63 4 159 6 214 14' fill='none' stroke='%23DEA2AC' stroke-width='9' stroke-linecap='round'/%3E%3C/svg%3E"); }
@media (max-width: 520px) { .ul { white-space: normal; } }

/* ---------- buttons ---------- */
.btn { display: inline-flex; align-items: center; justify-content: center; height: 44px; padding: 0 18px; border-radius: 14px; font: 800 15px var(--sans); text-decoration: none; border: 0; }
.btn-ink { background: var(--ink); color: var(--bg); }
.icon-btn { width: 44px; height: 44px; border-radius: 14px; border: 1.5px solid var(--line); background: var(--card); display: grid; place-items: center; }
.icon-btn .i-moon { display: none; }
:root[data-theme="dark"] .icon-btn .i-sun { display: none; }
:root[data-theme="dark"] .icon-btn .i-moon { display: block; }
@media (prefers-color-scheme: dark) {
  :root:not([data-theme="light"]) .icon-btn .i-sun { display: none; }
  :root:not([data-theme="light"]) .icon-btn .i-moon { display: block; }
}
.seg { display: inline-flex; padding: 3px; border-radius: 12px; background: var(--bg2); }
.seg button { height: 38px; min-width: 44px; padding: 0 12px; border: 0; border-radius: 9px; background: transparent; color: var(--ink2); font: 800 13px var(--sans); }
.seg button[aria-pressed="true"] { background: var(--card); color: var(--ink); box-shadow: 0 1px 2px rgba(0,0,0,.12); }
.seg-lg button { height: 44px; padding: 0 18px; font-size: 15px; }
.link-btn { border: 0; background: none; padding: 6px 4px; font: 700 13px var(--sans); color: var(--ink2); text-decoration: underline; text-underline-offset: 3px; min-height: 44px; }

/* store badges */
.stores { display: flex; flex-wrap: wrap; gap: 12px; margin-top: 34px; }
.stores.center { justify-content: center; }
.store { position: relative; display: inline-flex; align-items: center; gap: 12px; height: 60px; padding: 0 22px 0 18px; border-radius: 16px; background: #111; color: #fff; text-decoration: none; border: 1.5px solid #111; transition: transform .2s cubic-bezier(.22,1,.36,1), box-shadow .2s; }
:root[data-theme="dark"] .store { border-color: #3a3a3a; }
.store span { display: flex; flex-direction: column; line-height: 1.1; }
.store small { font: 600 11px var(--sans); opacity: .8; }
.store b { font: 700 21px/1.1 var(--display); letter-spacing: -.01em; }
.store:hover:not([aria-disabled]) { transform: translateY(-2px); box-shadow: 0 10px 24px -10px rgba(0,0,0,.5); }
.store[aria-disabled] { opacity: .72; cursor: default; }
.store .soon { position: absolute; top: -10px; right: -8px; font: 800 11px/1 var(--sans); font-style: normal; background: var(--yellow); color: #25372F; padding: 5px 8px; border-radius: 999px; transform: rotate(4deg); }
.pills { margin: 18px 0 0; font: 700 14px var(--sans); color: var(--mute); letter-spacing: .02em; }

/* ---------- nav ---------- */
.nav { position: sticky; top: 0; z-index: 40; background: color-mix(in srgb, var(--bg) 82%, transparent); backdrop-filter: saturate(1.4) blur(14px); -webkit-backdrop-filter: saturate(1.4) blur(14px); border-bottom: 1px solid color-mix(in srgb, var(--line) 70%, transparent); }
.nav-in { display: flex; align-items: center; gap: 24px; height: 72px; }
.brand { display: flex; align-items: center; gap: 10px; text-decoration: none; font: 700 18px var(--display); letter-spacing: -.01em; white-space: nowrap; }
.brand img { border-radius: 11px; }
.brand b { font-weight: 800; }
.nav-links { display: flex; gap: 6px; margin-left: auto; }
.nav-links a { text-decoration: none; font: 700 15px var(--sans); color: var(--ink2); padding: 10px 12px; border-radius: 10px; }
.nav-links a:hover { background: var(--bg2); color: var(--ink); }
.nav-tools { display: flex; align-items: center; gap: 10px; }
@media (max-width: 900px) { .nav-links { display: none; } .nav-tools { margin-left: auto; } }
@media (max-width: 520px) { .nav-cta { display: none; } .brand span { font-size: 16px; } .nav-in { gap: 10px; } }
@media (max-width: 380px) { .brand span { display: none; } }

/* ---------- hero ---------- */
.hero { position: relative; overflow: hidden; padding: 48px 0 72px; }
#hero-3d { position: absolute; inset: 0; width: 100%; height: 100%; opacity: 0; transition: opacity 1.2s ease; pointer-events: none; }
#hero-3d.ready { opacity: 1; }
.hero-in { position: relative; display: grid; grid-template-columns: 1.08fr .92fr; align-items: center; gap: 40px; }
.hero-copy { padding: 30px 0; }
.hero-copy .display { max-width: 11ch; }
@media (max-width: 960px) {
  .hero-in { grid-template-columns: 1fr; gap: 24px; }
  .hero-copy { padding: 40px 0 0; }
}

.hero-phone { position: relative; display: flex; flex-direction: column; align-items: center; }
.try-hint { position: absolute; right: calc(50% + min(185px, 43vw) + 8px); top: 9%; z-index: 3; margin: 0; width: 160px; text-align: right; font: 700 15px/1.3 var(--display); color: var(--ink); transform: rotate(-6deg); transition: opacity .4s; }
.try-hint b { background: var(--yellow); color: #25372F; padding: 0 4px; border-radius: 5px; }
.try-arrow { position: absolute; right: calc(50% + min(185px, 43vw) - 34px); top: 19%; width: 70px; z-index: 3; fill: none; stroke: var(--ink); stroke-width: 3; stroke-linecap: round; stroke-linejoin: round; transition: opacity .4s; }
.try-hint.used, .try-hint.used + .try-arrow { opacity: 0; }
@media (max-width: 1100px) { .try-hint, .try-arrow { display: none; } }

.phone { --k: .9; position: relative; overflow: hidden; width: min(370px, 86vw); aspect-ratio: 412 / 866; border-radius: calc(54px * var(--k)); background: #111; padding: calc(11px * var(--k)); box-shadow: var(--shadow), 0 0 0 1.5px #2a2a2a inset; }
/* the 390×844 design canvas, scaled to the frame (412 = 390 + 2×11 bezel) */
/* absolute so the unscaled 844px layout box can't stretch the frame */
.phone-inner { position: absolute; top: calc(11px * var(--k)); left: calc(11px * var(--k)); width: 390px; height: 844px; transform-origin: top left; transform: scale(var(--k)); border-radius: 44px; overflow: hidden; }
.phone-island { position: absolute; top: calc(22px * var(--k)); left: 50%; width: calc(110px * var(--k)); height: calc(32px * var(--k)); margin-left: calc(-55px * var(--k)); background: #000; border-radius: 999px; z-index: 5; }

/* ---------- features ---------- */
.features { padding: 110px 0 60px; }
.sec-head { margin-bottom: 64px; max-width: 760px; }
.sec-head.row { display: flex; align-items: flex-end; justify-content: space-between; gap: 24px; max-width: none; flex-wrap: wrap; margin-bottom: 40px; }
.feat { display: grid; grid-template-columns: 1fr 1fr; align-items: center; gap: clamp(28px, 6vw, 90px); padding: 44px 0; }
.feat.flip .feat-art { order: 2; }
.feat-art { position: relative; aspect-ratio: 1; border-radius: 40px; display: grid; place-items: center; overflow: hidden; border: 1.5px solid var(--line); }
.tint-y { background: var(--yellow-soft); }
.tint-g { background: var(--forest-soft); }
.tint-p { background: var(--pink-soft); }
.feat-art .lottie { width: 82%; height: 82%; position: relative; z-index: 1; }
.feat-art .lottie-fallback { position: absolute; width: 70%; opacity: 1; transition: opacity .3s; }
.feat-art .lottie.has-anim + .lottie-fallback { opacity: 0; }
.feat-copy p { color: var(--ink2); margin: 0; max-width: 46ch; }
.ticks { list-style: none; padding: 0; margin: 22px 0 0; display: grid; gap: 10px; }
.ticks li { position: relative; padding-left: 34px; font-weight: 700; }
.ticks li::before { content: ""; position: absolute; left: 0; top: .2em; width: 22px; height: 22px; border-radius: 8px; background: var(--yellow) url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 32 32'%3E%3Cpath d='m8 16 6 6L25 10' fill='none' stroke='%2325372F' stroke-width='4' stroke-linecap='round' stroke-linejoin='round'/%3E%3C/svg%3E") center / 15px no-repeat; }
@media (max-width: 820px) {
  .feat { grid-template-columns: 1fr; padding: 28px 0; }
  .feat.flip .feat-art { order: 0; }
  .feat-art { max-width: 440px; width: 100%; }
}

/* ---------- screens ---------- */
.screens { padding: 80px 0 100px; }
.shots { display: flex; gap: 28px; overflow-x: auto; scroll-snap-type: x mandatory; padding: 12px max(16px, calc((100vw - 1180px) / 2)) 28px; scrollbar-width: thin; }
.shot { flex: none; margin: 0; scroll-snap-align: center; }
.shot-frame { width: clamp(220px, 24vw, 280px); aspect-ratio: 390 / 844; border-radius: 38px; padding: 8px; background: #111; box-shadow: var(--shadow); }
.shot-frame img { width: 100%; height: 100%; object-fit: cover; border-radius: 31px; }
.shot figcaption { text-align: center; margin-top: 14px; font: 800 16px var(--display); }

/* ---------- privacy ---------- */
.privacy { background: #25372F; color: #F7F7EE; padding: 110px 0; overflow: hidden; }
:root[data-theme="dark"] .privacy { background: #131313; border-block: 1px solid #2C2C2C; }
@media (prefers-color-scheme: dark) { :root:not([data-theme="light"]) .privacy { background: #131313; border-block: 1px solid #2C2C2C; } }
.privacy .lead { color: #D9DED3; max-width: 46ch; }
.privacy-in { display: grid; grid-template-columns: 1.3fr .7fr; gap: 40px; align-items: center; }
.p-grid { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 24px; margin: 44px 0 34px; }
.p-grid h3 { font: 800 20px var(--display); margin: 0 0 6px; color: #E5BF55; }
.p-grid p { margin: 0; color: #D9DED3; font-size: 15px; }
.arrow-link { font: 800 16px var(--sans); color: #F7F7EE; text-underline-offset: 5px; text-decoration-color: #E5BF55; text-decoration-thickness: 2px; }
.privacy-art { width: 100%; max-width: 380px; height: auto; aspect-ratio: 1; object-fit: contain; justify-self: center; align-self: center; border-radius: 50%; background: #E5BF55; padding: 9%; }
@media (max-width: 860px) { .privacy-in { grid-template-columns: 1fr; } .p-grid { grid-template-columns: 1fr; } .privacy-art { max-width: 280px; order: -1; } }

/* ---------- faq ---------- */
.faq { padding: 110px 0; }
.faq-in { display: grid; grid-template-columns: .7fr 1.3fr; gap: 40px; }
.faq-list details { border-bottom: 1.5px solid var(--line); }
.faq-list summary { list-style: none; cursor: pointer; display: flex; justify-content: space-between; align-items: center; gap: 16px; min-height: 64px; font: 800 20px/1.25 var(--display); padding: 14px 0; }
.faq-list summary::-webkit-details-marker { display: none; }
.faq-list summary::after { content: "+"; flex: none; width: 36px; height: 36px; border-radius: 12px; display: grid; place-items: center; background: var(--bg2); font: 700 22px var(--sans); transition: transform .3s; }
.faq-list details[open] summary::after { transform: rotate(45deg); background: var(--yellow); color: #25372F; }
.faq-list p { margin: 0 0 22px; color: var(--ink2); max-width: 60ch; }
@media (max-width: 820px) { .faq-in { grid-template-columns: 1fr; } }

/* ---------- cta ---------- */
.cta { padding: 40px 0 120px; }
.cta-in { text-align: center; display: flex; flex-direction: column; align-items: center; background: var(--yellow-soft); border-radius: 48px; padding: 30px 20px 70px; border: 1.5px solid var(--line); }
.cta-in .lead { margin-inline: auto; }
.cta-pets { display: flex; gap: 0; margin-bottom: 8px; }
.cta-pets .lottie { width: clamp(140px, 20vw, 220px); aspect-ratio: 1; }

/* ---------- footer ---------- */
.foot { border-top: 1.5px solid var(--line); padding: 44px 0 60px; }
.foot-in { display: grid; grid-template-columns: auto 1fr auto; align-items: center; gap: 12px 28px; }
.foot-links { display: flex; gap: 18px; font: 700 15px var(--sans); }
.foot-links a { text-underline-offset: 4px; padding: 10px 0; }
.foot .disc { grid-column: 1 / -1; margin: 0; }
@media (max-width: 720px) { .foot-in { grid-template-columns: 1fr; } }

/* ---------- reveal ---------- */
.reveal { opacity: 0; transform: translateY(28px); transition: opacity .9s cubic-bezier(.22,1,.36,1), transform .9s cubic-bezier(.22,1,.36,1); }
.reveal.in { opacity: 1; transform: none; }
@media (prefers-reduced-motion: reduce) { .reveal { opacity: 1; transform: none; transition: none; } }

/* =====================================================================
   PHONE MOCKUP (390×844 design units, scaled by --k)
   ===================================================================== */
.app { position: absolute; inset: 0; background: var(--bg); color: var(--ink); font-family: var(--sans); overflow: hidden; }
.app-scroll { position: absolute; inset: 0 0 88px; overflow-y: auto; overscroll-behavior: contain; scrollbar-width: none; }
.app-scroll::-webkit-scrollbar { display: none; }
.a-screen { padding: 58px 22px 28px; animation: aIn .35s cubic-bezier(.22,1,.36,1); }
@keyframes aIn { from { opacity: 0; transform: translateY(8px); } }
@media (prefers-reduced-motion: reduce) { .a-screen { animation: none; } }
.app button { -webkit-tap-highlight-color: transparent; }
.a-mute { color: var(--mute); }
.a-sm { font-size: 14px; margin: 4px 0 0; }
.a-xs { font-size: 12px; }
.a-b { font-weight: 700; font-size: 15px; }
.a-row-between { display: flex; justify-content: space-between; align-items: center; gap: 10px; }

.a-top { display: flex; justify-content: space-between; align-items: center; }
.a-pet { display: flex; align-items: center; gap: 8px; height: 46px; padding: 0 14px 0 5px; border-radius: 999px; border: 1.5px solid var(--line); background: var(--card); font: 700 16px var(--sans); }
.a-pet-av { width: 36px; height: 36px; border-radius: 999px; overflow: hidden; background: var(--yellow-soft); display: block; }
.a-pet-av img { width: 100%; height: 100%; object-fit: cover; transform: scale(1.25) translateY(6%); }
.a-pet-av.dog img { transform: scale(1.9) translateY(18%); }
.a-sq { width: 46px; height: 46px; border-radius: 15px; border: 1.5px solid var(--line); background: var(--card); display: grid; place-items: center; }

.rays { width: 30px; height: 26px; margin: -8px 0 0 2px; vertical-align: top; overflow: visible; }
.rays path { fill: none; stroke: var(--yellow); stroke-width: 7; stroke-linecap: round; stroke-dasharray: 40; animation: rays 1s .2s cubic-bezier(.22,1,.36,1) both; }
@keyframes rays { from { stroke-dashoffset: 40; } }
.squig { display: block; width: 86px; height: 10px; margin-top: 2px; }
.squig path { fill: none; stroke: var(--pink); stroke-width: 7; stroke-linecap: round; }

.a-hero { position: relative; height: 230px; margin: 10px -22px 4px 0; }
.a-hero-txt { position: relative; z-index: 2; width: 190px; padding-top: 18px; }
.a-h1 { margin: 0; font: 800 42px/1.02 var(--display); letter-spacing: -.035em; }
.a-weight { margin: 14px 0 0; font: 800 24px var(--display); }
.a-scene { position: absolute; right: -24px; bottom: 0; width: 250px; height: 208px; object-fit: contain; object-position: right bottom; }
.a-segs { display: grid; grid-template-columns: repeat(8, minmax(0, 1fr)); gap: 5px; margin: 10px 0 18px; }
.a-segs i { height: 10px; border-radius: 4px; background: var(--line); transition: background .4s var(--d) cubic-bezier(.22,1,.36,1); }
.a-segs i.on { background: var(--forest); }
:root[data-theme="dark"] .a-segs i.on { background: #8CC0A0; }

.a-list { display: flex; flex-direction: column; }
.a-li { display: grid; grid-template-columns: 96px 30px 1fr; align-items: center; gap: 14px; padding: 12px 0; }
.a-li + .a-li { border-top: 1.5px dashed var(--line); }
.a-li b { display: block; font: 800 16px var(--sans); }
.a-li .a-mute { font-size: 14px; }
.a-big { display: block; font: 800 20px var(--display); }
.tag { justify-self: start; padding: 6px 13px; border-radius: 10px; font: 800 17px var(--display); color: #25372F; }
.tag-y { background: var(--yellow); transform: rotate(-4deg); }
.tag-p { background: #F2CDD3; transform: rotate(-3deg); }

.a-cards { display: grid; grid-template-columns: 1fr 1fr; gap: 12px; margin: 14px 0; }
.a-card { display: flex; align-items: center; gap: 10px; padding: 14px; border-radius: 20px; background: var(--card); border: 1.5px solid var(--line); text-align: left; transition: transform .15s; }
.a-card:active { transform: scale(.97); }
.a-card span { font: 500 14px/1.25 var(--sans); }
.a-card b { display: block; font: 800 17px var(--display); }

.a-cta { width: 100%; height: 58px; border: 0; border-radius: 18px; background: var(--cta); color: var(--on-cta); display: flex; align-items: center; justify-content: center; gap: 12px; font: 800 17px var(--sans); transition: transform .15s, opacity .2s; }
.a-cta:active { transform: scale(.98); }
.a-cta:disabled { opacity: .45; cursor: default; }

.a-titlebar { position: relative; display: flex; justify-content: space-between; align-items: center; margin: 20px 0 6px; min-height: 120px; }
.a-titlebar > div { position: relative; z-index: 1; max-width: 220px; }
.a-side-art { width: 130px; height: 130px; object-fit: contain; margin-right: -8px; }
.a-side-art.wide { width: 150px; }
.a-split { display: grid; grid-template-columns: 1fr 1fr; margin: 12px 0 8px; }
.a-split > div + div { padding-left: 18px; border-left: 1.5px solid var(--line); }
.a-num { font: 800 46px/1.05 var(--display); letter-spacing: -.02em; }
.a-num small { font-size: 24px; }
.a-num.sm { font-size: 38px; }
.a-h2 { margin: 22px 0 10px; font: 800 23px var(--display); letter-spacing: -.01em; }

.a-scheds { list-style: none; margin: 0; padding: 0; }
.a-sched { display: grid; grid-template-columns: 30px 96px 1fr auto; align-items: center; gap: 10px; height: 54px; }
.dot { width: 24px; height: 24px; border-radius: 999px; border: 2.5px solid var(--forest); background: transparent; display: grid; place-items: center; padding: 0; color: var(--on-forest); }
.dot.done { background: var(--forest); }
.dot.dashed { border-style: dashed; border-color: var(--mute); }
.chip { padding: 7px 10px; text-align: center; border-radius: 10px; background: var(--forest-soft); font: 800 15px var(--sans); }
.chip.mute { background: var(--bg2); }
.a-g { font: 800 22px var(--display); }
.ok { font: 700 14px var(--sans); color: var(--ok); }
.pill-y { padding: 5px 12px; border-radius: 999px; background: var(--yellow-soft); color: var(--yellow-ink); font: 800 13px var(--sans); }
.pill-g { padding: 5px 10px; border-radius: 8px; background: var(--forest-soft); font: 800 12px var(--sans); white-space: nowrap; }
.a-stepper { margin-top: 18px; padding: 16px; border-radius: 26px; background: var(--bg2); }
.a-stepper .center { text-align: center; }
.a-step { width: 58px; height: 52px; border-radius: 16px; border: 0; background: var(--card); display: grid; place-items: center; }
.a-stepper .a-cta { margin-top: 14px; }

.a-wrow { margin-top: 6px; }
.a-link { border: 0; background: none; font: 800 16px var(--sans); color: var(--forest); padding: 10px 4px; }
.a-chart { width: 100%; height: auto; margin-top: 8px; overflow: visible; }
.a-chart .area { fill: var(--chart-fill); }
.a-chart .ln { fill: none; stroke: var(--forest); stroke-width: 3; stroke-linejoin: round; }
.a-chart circle { fill: var(--forest); }
.a-chart circle.last { fill: var(--bg); stroke: var(--yellow); stroke-width: 4; }
.a-chart text { font: 600 11px var(--sans); fill: var(--mute); }
.a-care { display: flex; flex-direction: column; gap: 10px; }
.a-care-row { display: grid; grid-template-columns: 30px 1fr auto; gap: 12px; align-items: center; padding: 14px; border-radius: 20px; background: var(--card); border: 1.5px solid var(--line); }
.a-care-row b { display: block; font: 800 16px var(--sans); }
.a-care-row .a-mute { font-size: 13px; }
.a-give { height: 40px; padding: 0 16px; border-radius: 12px; border: 0; background: var(--cta); color: var(--on-cta); font: 800 14px var(--sans); display: inline-flex; align-items: center; gap: 6px; }
.a-give.done { background: var(--forest-soft); color: var(--ok); }

.a-fab { width: 60px; height: 60px; border-radius: 18px; border: 0; background: var(--yellow); color: #25372F; display: grid; place-items: center; transform: rotate(-3deg); }
.a-chips { display: flex; gap: 8px; overflow: hidden; margin: 6px -22px 4px 0; }
.a-chips span { flex: none; padding: 9px 16px; border-radius: 999px; border: 1.5px solid var(--line); background: var(--card); font: 700 14px var(--sans); }
.a-chips span.on { background: var(--nav-active); color: var(--nav-active-fg); border-color: transparent; }
.a-day { margin: 20px 0 8px; font: 800 18px var(--display); }
.a-tls { list-style: none; margin: 0; padding: 0; display: flex; flex-direction: column; gap: 10px; }
.a-tl { display: grid; grid-template-columns: 30px 1fr; gap: 10px; align-items: center; animation: aIn .4s cubic-bezier(.22,1,.36,1); }
.tl-ic { width: 28px; height: 28px; border-radius: 999px; display: grid; place-items: center; background: var(--bg2); }
.tl-ic.food { color: var(--food); } .tl-ic.health { color: var(--health); } .tl-ic.mem { color: var(--mem); }
.tl-card { padding: 14px 16px; border-radius: 18px; border: 1.5px solid var(--line); background: var(--card); display: flex; flex-direction: column; }
.tl-card b { font: 800 16px var(--sans); }
.tl-cat { font: 800 12px var(--sans); }
.tl-cat.food { color: var(--food); } .tl-cat.health { color: var(--health); } .tl-cat.mem { color: var(--mem); }

.app-nav { position: absolute; left: 0; right: 0; bottom: 0; height: 88px; padding: 8px 10px 22px; background: var(--card); border-top: 1.5px solid var(--line); display: grid; grid-template-columns: repeat(5, minmax(0, 1fr)); gap: 4px; z-index: 3; }
.app-nav button { border: 0; background: transparent; border-radius: 16px; display: flex; flex-direction: column; align-items: center; justify-content: center; gap: 2px; font: 700 11px var(--sans); color: var(--ink2); transition: background .25s; }
.app-nav button[aria-current="page"] { background: var(--nav-active); color: var(--nav-active-fg); }
.app-nav button[aria-current="page"] svg { color: var(--yellow); }
:root[data-theme="dark"] .app-nav button[aria-current="page"] svg { color: #17251E; }
@media (prefers-color-scheme: dark) { :root:not([data-theme="light"]) .app-nav button[aria-current="page"] svg { color: #17251E; } }

.app-toast { position: absolute; left: 14px; right: 14px; bottom: 100px; z-index: 4; display: flex; align-items: center; justify-content: space-between; gap: 10px; min-height: 52px; padding: 8px 8px 8px 18px; border-radius: 16px; background: #25372F; color: #F7F7EE; font: 700 14px var(--sans); opacity: 0; transform: translateY(16px); pointer-events: none; transition: opacity .25s, transform .3s cubic-bezier(.22,1,.36,1); }
:root[data-theme="dark"] .app-toast { background: #F4F4EC; color: #17251E; }
@media (prefers-color-scheme: dark) { :root:not([data-theme="light"]) .app-toast { background: #F4F4EC; color: #17251E; } }
.app-toast.show { opacity: 1; transform: none; pointer-events: auto; }
.app-toast button { height: 38px; padding: 0 14px; border: 0; border-radius: 11px; background: #E5BF55; color: #25372F; font: 800 14px var(--sans); }
.app-fx { position: absolute; inset: 120px 30px auto; height: 330px; z-index: 4; pointer-events: none; opacity: 0; transition: opacity .2s; }
.app-fx.on { opacity: 1; }
.app-fx svg { filter: drop-shadow(0 10px 20px rgba(0,0,0,.18)); }

/* ---------- notifications ---------- */
.notifs { padding: 100px 0; }
.notifs-in { display: grid; grid-template-columns: 1.05fr .95fr; gap: clamp(32px, 6vw, 90px); align-items: center; }
.notifs-copy .lead { max-width: 44ch; }
.nchips { display: flex; flex-wrap: wrap; gap: 8px; margin: 28px 0 22px; }
.nchips button { min-height: 44px; padding: 0 16px; border-radius: 999px; border: 1.5px solid var(--line); background: var(--card); font: 700 14px var(--sans); color: var(--ink2); transition: background .3s, color .3s, border-color .3s; }
.nchips button.on { background: var(--nav-active); color: var(--nav-active-fg); border-color: transparent; }
.notifs-copy .small { margin: 6px 0 0; max-width: 52ch; }
.shot-note { margin: 10px 0 0; font: 700 14px var(--sans); color: var(--yellow-ink); background: var(--yellow-soft); display: inline-block; padding: 8px 12px; border-radius: 12px; }
.shot-note[hidden] { display: none; }

.lock { position: relative; justify-self: center; width: min(360px, 86vw); aspect-ratio: 412 / 866; border-radius: 50px; background: #111; padding: 10px; box-shadow: var(--shadow); }
.lock .phone-island { top: 20px; width: 100px; height: 30px; margin-left: -50px; }
.lock-screen { position: relative; height: 100%; border-radius: 41px; overflow: hidden; background: #2D5A46; }
.lock-art { position: absolute; left: 50%; bottom: -4%; width: 92%; transform: translateX(-50%); }
.lock-clock { position: absolute; top: 12%; left: 0; right: 0; text-align: center; color: #F7F7EE; display: flex; flex-direction: column; }
.lock-date { font: 700 15px var(--sans); opacity: .9; }
.lock-time { font: 800 76px/1 var(--display); letter-spacing: -.03em; }
.nstack { position: absolute; top: 37%; left: 12px; right: 12px; display: flex; flex-direction: column; gap: 8px; }

.nt { display: flex; gap: 10px; align-items: flex-start; padding: 11px 12px; border-radius: 20px; background: rgba(247, 247, 238, .9); color: #25372F; backdrop-filter: blur(12px); -webkit-backdrop-filter: blur(12px); box-shadow: 0 8px 22px -10px rgba(0,0,0,.45); text-align: left; opacity: 0; transform: translateY(-18px) scale(.96); transition: opacity .45s, transform .55s cubic-bezier(.22,1,.36,1); }
.nt.in { opacity: 1; transform: none; }
.nt.out { opacity: 0; transform: scale(.94); }
.nstack .nt:nth-child(3) { opacity: .85; }
.nstack .nt:nth-child(4) { opacity: .55; }
.nt-app { width: 38px; height: 38px; border-radius: 10px; flex: none; }
.nt-body { min-width: 0; flex: 1; display: flex; flex-direction: column; }
.nt-top { display: flex; justify-content: space-between; gap: 8px; font: 600 11px var(--sans); color: #627061; }
.nt-name { text-transform: uppercase; letter-spacing: .04em; }
.nt-title { display: flex; align-items: center; gap: 6px; font: 800 14px/1.25 var(--sans); margin-top: 2px; }
.nt-ic { display: inline-grid; place-items: center; width: 22px; height: 22px; border-radius: 7px; flex: none; }
.k-meal, .k-restock { background: #F5E6B3; color: #5E4710; }
.k-water, .k-filter { background: #E1ECE8; color: #3D676A; }
.k-med, .k-due, .k-appt { background: #E2EAD8; color: #2D6547; }
.k-bday { background: #F2CDD3; color: #915568; }
.nt-text { font: 500 13px/1.35 var(--sans); color: #43584B; }
@media (max-width: 860px) { .notifs-in { grid-template-columns: 1fr; } }

/* banner inside the hero mockup */
.app-banner { position: absolute; top: 52px; left: 10px; right: 10px; z-index: 6; padding: 0; border: 0; background: none; transform: translateY(-140%); transition: transform .55s cubic-bezier(.22,1,.36,1); }
.app-banner.show { transform: none; }
.app-banner .nt { opacity: 1; transform: none; background: rgba(255, 255, 255, .94); }
:root[data-theme="dark"] .app-banner .nt { background: rgba(44, 44, 44, .94); color: #F4F4EC; }
:root[data-theme="dark"] .app-banner .nt-text { color: #D9D9D0; }
@media (prefers-color-scheme: dark) {
  :root:not([data-theme="light"]) .app-banner .nt { background: rgba(44, 44, 44, .94); color: #F4F4EC; }
  :root:not([data-theme="light"]) .app-banner .nt-text { color: #D9D9D0; }
}
.nudge { animation: nudge 1s cubic-bezier(.22,1,.36,1) 2; }
@keyframes nudge { 30% { transform: scale(1.04); } 60% { transform: scale(.98); } }
@media (prefers-reduced-motion: reduce) { .nt, .app-banner { transition: none; } .nudge { animation: none; } }

/* ---------- legal pages ---------- */
.legal { padding: 64px 0 100px; }
.legal article { max-width: 720px; }
.legal h1 { font: 800 clamp(38px, 6vw, 60px)/1.02 var(--display); letter-spacing: -.03em; margin: 0 0 12px; }
.legal h2 { font: 800 24px var(--display); margin: 44px 0 10px; }
.legal p, .legal li { color: var(--ink2); }
.legal .meta { color: var(--mute); font-size: 15px; }
.legal .sum { background: var(--yellow-soft); border-radius: 24px; padding: 22px 24px; color: var(--ink); font-weight: 600; margin: 28px 0 0; }
.legal .card-link { display: block; padding: 20px 22px; border-radius: 20px; border: 1.5px solid var(--line); background: var(--card); text-decoration: none; margin-top: 12px; }
.legal .card-link b { display: block; font: 800 18px var(--display); color: var(--ink); }
html[lang="en"] [lang="es"], html[lang="es"] [lang="en"] { display: none; }
.nav-in > .brand + .nav-tools { margin-left: auto; }
