/* Colours and type are the app's own (badem-mobile/src/global.css). */
:root {
  --background: #faf9f6;
  --surface: #f4f2ec;
  --border: #e2ded7;
  --positive: #76a17d;
  --primary: #4d342d;
  --primary-50: #eae7e6;
  --primary-100: #d4cecd;
  --primary-400: #6d5953;
  --primary-800: #34231f;
  --ink: #3b1f11;
  --almond: #dd9450;
  --almond-soft: #f6e6d3;
  --shadow: 0 8px 24px 0 rgba(59, 31, 17, 0.07);
  --radius: 24px;
  --wrap: 1120px;
}

*, *::before, *::after { box-sizing: border-box; }
html { scroll-behavior: smooth; -webkit-text-size-adjust: 100%; }
body {
  margin: 0;
  background: var(--background);
  color: var(--primary);
  font-family: "Atkinson Hyperlegible Next", "Atkinson Hyperlegible", system-ui, -apple-system, "Segoe UI", sans-serif;
  font-size: 18px;
  line-height: 1.55;
  -webkit-font-smoothing: antialiased;
}
img { max-width: 100%; height: auto; display: block; }
a { color: inherit; }
h1, h2, h3, p { margin: 0; }
h1, h2, h3 { color: var(--ink); line-height: 1.12; text-wrap: balance; }
p { text-wrap: pretty; }
:focus-visible { outline: 3px solid var(--almond); outline-offset: 3px; border-radius: 6px; }

.wrap { width: 100%; max-width: var(--wrap); margin: 0 auto; padding: 0 24px; }
.skip { position: absolute; left: -999px; top: 8px; background: var(--primary); color: #fff; padding: 10px 16px; border-radius: 10px; z-index: 10; }
.skip:focus { left: 16px; }

/* Header */
header { position: sticky; top: 0; z-index: 5; background: rgba(250, 249, 246, 0.88); backdrop-filter: saturate(1.4) blur(10px); border-bottom: 1px solid transparent; transition: border-color .2s; }
header.scrolled { border-bottom-color: var(--border); }
.bar { display: flex; align-items: center; justify-content: space-between; gap: 16px; height: 68px; }
.brand { display: flex; align-items: center; gap: 10px; font-weight: 700; font-size: 26px; color: var(--primary); text-decoration: none; letter-spacing: -0.01em; }
.brand img { width: 34px; height: 34px; object-fit: contain; }
nav ul { display: flex; gap: 28px; list-style: none; margin: 0; padding: 0; }
nav a { text-decoration: none; font-weight: 600; font-size: 16px; color: var(--primary-400); padding: 8px 0; }
nav a:hover { color: var(--ink); }
/* The language switch sits at the end of the bar, and stays when the nav hides on narrow screens. */
nav { margin-left: auto; }
.lang { font-weight: 600; font-size: 16px; color: var(--primary-400); text-decoration: none; padding: 8px 0; }
.lang:hover { color: var(--ink); }
nav + .lang { margin-left: 12px; }
.pill { display: inline-flex; align-items: center; gap: 8px; padding: 8px 14px; border-radius: 999px; background: var(--primary-50); color: var(--primary); font-weight: 700; font-size: 14px; white-space: nowrap; }
.pill::before { content: ""; width: 8px; height: 8px; border-radius: 50%; background: var(--positive); }

/* Hero: a full-bleed photo with the copy over it on wide screens, stacked on narrow ones. */
/* Hero: the video fills the screen, the header sits on it, and the copy reads on its darker left side. */
.over header { position: fixed; left: 0; right: 0; }
.over header:not(.scrolled) { background: transparent; backdrop-filter: none; }
.over header:not(.scrolled) .brand, .over header:not(.scrolled) nav a, .over header:not(.scrolled) .lang { color: #fff; }
.hero { position: relative; display: flex; align-items: center; height: 100svh; min-height: 600px; padding: 0; overflow: hidden; isolation: isolate; color: #fff; }
.hero::before { content: ""; position: absolute; inset: 0; z-index: -1; background: linear-gradient(180deg, rgba(24, 14, 9, 0.55), rgba(24, 14, 9, 0) 22%), linear-gradient(90deg, rgba(24, 14, 9, 0.85) 0%, rgba(24, 14, 9, 0.6) 38%, rgba(24, 14, 9, 0) 66%); }
.hero-video { position: absolute; inset: 0; z-index: -2; width: 100%; height: 100%; object-fit: cover; object-position: 70% 50%; background: var(--primary-800); }
.hero-copy { max-width: 600px; padding-top: 68px; }
.hero h1 { color: #fff; font-size: clamp(44px, 6vw, 84px); letter-spacing: -0.03em; }
.hero h1 em { color: #fff; background: none; }
.hero .lede { color: rgba(255, 255, 255, 0.88); max-width: 30ch; }
.hero .stores { margin-top: 36px; }
.hero .store { gap: 10px; padding: 15px 24px 15px 20px; border: 0; border-radius: 4px; background: transparent; color: #fff; box-shadow: inset 0 0 0 1.5px rgba(255, 255, 255, 0.85); }
.hero .store svg { width: 20px; height: 20px; }
.hero .store span { font-size: 17px; font-weight: 600; line-height: 1.2; }
.hero-strip { position: absolute; left: 0; right: 0; bottom: 0; border-top: 1px solid rgba(255, 255, 255, 0.18); background: rgba(24, 14, 9, 0.35); backdrop-filter: blur(8px); }
.hero-strip .wrap { display: flex; align-items: center; justify-content: space-between; gap: 24px; height: 76px; }
.hero-strip ul { display: flex; gap: 40px; list-style: none; margin: 0; padding: 0; font-weight: 600; font-size: 16px; color: rgba(255, 255, 255, 0.85); }
.eyebrow { font-weight: 700; font-size: 15px; letter-spacing: 0.08em; text-transform: uppercase; color: var(--primary-400); }
h1 { font-size: clamp(40px, 6vw, 68px); font-weight: 700; letter-spacing: -0.025em; margin-top: 14px; }
h1 em { font-style: normal; color: var(--primary); background: linear-gradient(transparent 62%, var(--almond-soft) 62%); }
.lede { font-size: clamp(19px, 2.1vw, 22px); color: var(--primary-400); margin-top: 20px; max-width: 34ch; }
.stores { display: flex; flex-wrap: wrap; gap: 12px; margin-top: 32px; }
.store { display: flex; align-items: center; gap: 12px; padding: 11px 20px 11px 16px; border-radius: 14px; border: 1.5px solid var(--primary-100); background: #fff; color: var(--ink); }
.store svg { width: 24px; height: 24px; flex: none; }
.store small { display: block; font-size: 12px; color: var(--primary-400); line-height: 1.2; }
.store strong { display: block; font-size: 17px; line-height: 1.25; }


/* Sections */
section { padding: 84px 0; }
.section-head { max-width: 640px; }
.section-head.center { margin: 0 auto; text-align: center; }
h2 { font-size: clamp(30px, 4vw, 44px); font-weight: 700; letter-spacing: -0.02em; margin-top: 12px; }
.section-head p { margin-top: 16px; font-size: 20px; color: var(--primary-400); }
.tint { background: var(--surface); }

/* The app's soft card: no outline, large corners and a deep, soft shadow (badem-mobile/src/components/ui/card.tsx). */
.card { background: #fff; border-radius: var(--radius); box-shadow: var(--shadow); }


/* Steps */
.steps { --pw: 250px; --s: 0.71; display: grid; grid-template-columns: repeat(3, 1fr); gap: 24px; margin-top: 48px; list-style: none; padding: 0; }
.steps li { display: flex; flex-direction: column; overflow: hidden; }
.txt { padding: 30px 30px 24px; display: flex; flex-direction: column; gap: 12px; }
.st { display: flex; align-items: center; gap: 12px; }
.n { width: 44px; height: 44px; border-radius: 50%; background: var(--primary); color: #fff; font-weight: 700; font-size: 20px; display: grid; place-items: center; }
.who { padding: 6px 14px; border-radius: 999px; background: var(--primary-50); color: var(--primary); font-weight: 700; font-size: 14px; }
.who.them { background: var(--almond-soft); color: var(--ink); }
.steps h3 { font-size: 23px; margin-top: 6px; }
.steps p { color: var(--primary-400); }
/* Each step's picture sits in a tinted band that runs to the card's edge. */
.vis { margin-top: auto; height: 330px; padding: 26px 24px 0; background: var(--almond-soft); display: flex; align-items: flex-end; justify-content: center; overflow: hidden; }
/* Each picture is the top of a phone, so it reads as the app and not as part of the page. */
.mphone { position: relative; width: min(var(--pw), 100%); height: 100%; padding: 8px 8px 0; border-radius: 30px 30px 0 0; background: var(--ink); box-shadow: 0 -2px 0 rgba(255, 255, 255, 0.08) inset, 0 18px 40px -14px rgba(59, 31, 17, 0.5); overflow: hidden; }
.mphone::before { content: ""; position: absolute; top: 15px; left: 50%; z-index: 1; width: 62px; height: 18px; margin-left: -31px; border-radius: 99px; background: #000; }
.mscreen { height: 100%; border-radius: 24px 24px 0 0; background: var(--background); overflow: hidden; }
/* The three screens are drawn at the app's own size (330px wide) and scaled down into the phone. */
.app { width: 330px; transform: scale(var(--s)); transform-origin: top left; color: var(--ink); }
.a-status { display: flex; align-items: center; justify-content: space-between; height: 46px; padding: 6px 26px 0 30px; font-size: 15px; }
.a-body { display: grid; gap: 14px; padding: 14px 22px 0; }
.a-h { display: block; font-size: 26px; line-height: 1.15; }
.a-sub { margin-top: -6px; font-size: 15px; line-height: 1.4; color: var(--primary-400); }
.a-field { display: grid; gap: 6px; }
.a-field span { font-size: 14px; font-weight: 700; color: var(--ink); }
.a-in { display: flex; align-items: center; justify-content: space-between; height: 52px; padding: 0 16px; border: 1px solid var(--border); border-radius: 12px; background: #fff; font-size: 16px; color: var(--ink); }
.a-in em { font-style: normal; color: var(--primary-400); font-size: 18px; }
.a-card { display: grid; gap: 14px; padding: 16px; border-radius: 24px; background: #fff; box-shadow: var(--shadow); }
.a-row { display: flex; align-items: center; justify-content: space-between; gap: 8px; }
.a-ct { display: flex; flex: 1; min-width: 0; align-items: center; gap: 7px; font-size: 12px; font-weight: 700; text-transform: uppercase; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; color: var(--primary-400); }
.a-ct svg { flex: none; }
.a-ok { display: flex; flex: none; align-items: center; gap: 4px; white-space: nowrap; font-size: 12px; font-weight: 700; color: var(--primary); }
.a-ok::before { content: ""; width: 8px; height: 8px; border-radius: 50%; background: var(--positive); }
.a-code { display: flex; align-items: center; justify-content: space-between; gap: 8px; padding: 13px 14px; border: 1px solid var(--primary-100); border-radius: 12px; background: var(--background); }
.a-code span { display: block; font-size: 13px; font-weight: 700; color: var(--primary-400); }
.a-code b { display: block; font-size: 34px; line-height: 1.1; letter-spacing: 3px; color: var(--primary); }
.a-code i { flex: none; width: 50px; height: 50px; border-radius: 12px; background: var(--primary); display: grid; place-items: center; }
.a-g { font-size: 14px; line-height: 1.35; color: var(--primary-400); }
.a-btn { height: 52px; border-radius: 12px; background: var(--primary); color: #fff; display: grid; place-items: center; font-size: 16px; font-weight: 600; }
.a-top { display: flex; justify-content: flex-end; padding: 8px 22px 0; }
.a-home { display: grid; justify-items: center; gap: 10px; padding: 18px 22px 0; text-align: center; }
.a-greet { font-size: 25px; line-height: 1.15; }
.a-p { font-size: 15px; color: var(--primary-400); }
.a-mic { width: 140px; height: 140px; margin-top: 22px; border-radius: 50%; background: var(--ink); display: grid; place-items: center; box-shadow: 0 8px 24px rgba(59, 31, 17, 0.25); }
.a-mic svg { width: 46px; height: 46px; stroke-width: 2.5; }
.a-tt { margin-top: 4px; font-size: 18px; }

/* Family */
.family { display: grid; grid-template-columns: 1.05fr 0.95fr; gap: 56px; align-items: center; }
/* The app's wellbeing card: one row per metric with its own colour, a trend arrow and the last 7 days. */
.wellbeing { margin-top: 0; padding: 6px 20px; --mood: #f2a900; --sleep: #5b4fcf; --appetite: #e4572e; --social: #2e9e5b; --caution: #c0623f; }
.wellbeing .row { display: flex; align-items: center; gap: 14px; padding: 14px 0; }
.wellbeing .row + .row { border-top: 1px solid var(--primary-50); }
.wellbeing .m-mood { --c: var(--mood); } .wellbeing .m-sleep { --c: var(--sleep); } .wellbeing .m-appetite { --c: var(--appetite); } .wellbeing .m-social { --c: var(--social); }
.chip { flex: none; width: 44px; height: 44px; border-radius: 50%; display: grid; place-items: center; background: color-mix(in srgb, var(--c) 15%, transparent); }
.chip svg { fill: var(--c); }
.rd { flex: 1; min-width: 0; }
.rd small { display: block; font-size: 14px; font-weight: 600; color: var(--primary-400); line-height: 1.3; }
.rd b { display: block; font-size: 18px; color: var(--ink); line-height: 1.35; }
.rd em { font-style: normal; font-size: 10px; vertical-align: 2px; }
.rd em.up { color: var(--positive); } .rd em.down { color: var(--caution); }
.bars { flex: none; display: flex; align-items: flex-end; gap: 3px; height: 32px; }
.bars i { width: 7px; border-radius: 3px; background: color-mix(in srgb, var(--c) 30%, transparent); }
.bars i.today { background: var(--c); }
.legend { margin-top: 12px; padding: 0 4px; font-size: 14px; color: var(--primary-400); }

/* For families: the caregiver's dashboard in a phone, with an alert arriving over it. */
.vals { list-style: none; margin: 30px 0 0; padding: 0; display: grid; gap: 18px; }
.vals li { display: grid; grid-template-columns: 28px 1fr; column-gap: 14px; align-items: start; }
.vals li::before { content: "✓"; grid-row: 1 / 3; width: 28px; height: 28px; border-radius: 50%; background: var(--almond-soft); color: var(--primary); font-weight: 700; font-size: 15px; display: grid; place-items: center; margin-top: 1px; }
.vals b { color: var(--ink); font-size: 20px; line-height: 1.3; }
.vals span { color: var(--primary-400); font-size: 17px; }
.fam-visual { position: relative; display: flex; justify-content: center; padding-bottom: 44px; }
.mphone.full { --pw: 280px; --s: 0.8; width: 280px; height: 580px; padding: 8px; border-radius: 44px; }
.mphone.full .mscreen { border-radius: 36px; }
.mphone.full .a-body { gap: 12px; }
.mphone.full .wellbeing { padding: 4px 14px; }
.mphone.full .wellbeing .row { gap: 10px; padding: 11px 0; }
.mphone.full .chip { width: 38px; height: 38px; }
.mphone.full .rd b { font-size: 16px; }
.sw { display: flex; align-items: center; gap: 12px; height: 72px; padding: 0 14px; border-radius: 24px; background: #fff; box-shadow: var(--shadow); }
.sw > div { flex: 1; min-width: 0; }
.sw b { display: block; font-size: 16px; line-height: 1.4; }
.sw small { display: block; font-size: 12px; line-height: 1.4; color: var(--primary); }
.av { flex: none; width: 44px; height: 44px; border-radius: 50%; background: var(--primary-50); color: var(--primary); display: grid; place-items: center; font-size: 14px; font-weight: 700; }
.a-lab { margin: 4px 0 -4px; padding: 0 4px; font-size: 12px; font-weight: 600; letter-spacing: 0.12em; text-transform: uppercase; color: var(--primary-400); }
.mphone.full .legend { margin-top: -2px; font-size: 12px; line-height: 1.4; color: var(--primary-300, #8d7d79); }
.a-ins { padding: 18px; border-radius: 24px; background: #fff; box-shadow: var(--shadow); }
.a-ins-top { display: flex; align-items: center; justify-content: space-between; margin-bottom: 14px; }
.a-ins-top b { font-size: 20px; }
.a-ins-top span { font-size: 15px; font-weight: 600; color: var(--primary); }
.a-tl { display: grid; grid-template-columns: 11px 1fr; gap: 12px; }
.a-tl i { width: 11px; height: 11px; margin-top: 7px; border-radius: 50%; border: 2px solid var(--primary-300, #8d7d79); background: #fff; }
.a-tl-top { display: flex; align-items: baseline; justify-content: space-between; gap: 8px; }
.a-tl-top b { font-size: 14px; }
.a-tl-top small { font-size: 12px; color: var(--primary-300, #8d7d79); }
.a-tl p { margin-top: 6px; font-size: 16px; line-height: 1.45; color: var(--primary-400); }
.notif { position: absolute; left: 0; bottom: 0; z-index: 2; width: 276px; display: grid; grid-template-columns: 36px 1fr; gap: 12px; align-items: start; padding: 13px 14px; border-radius: 22px; background: rgba(255, 255, 255, 0.94); backdrop-filter: blur(14px); box-shadow: 0 18px 44px -12px rgba(59, 31, 17, 0.38); color: var(--ink); }
.notif img { width: 36px; height: 36px; border-radius: 22.4%; }
.notif small { display: flex; justify-content: space-between; font-size: 12px; font-weight: 600; letter-spacing: 0.02em; text-transform: uppercase; color: var(--primary-400); }
.notif b { display: block; margin-top: 2px; font-size: 15px; line-height: 1.3; }
.notif p { margin-top: 2px; font-size: 14px; line-height: 1.35; color: var(--primary-400); }

/* Its own section: the plain feature phone, for people who talk to Badem on a regular phone line. */
.peach { background: var(--almond-soft); }
.callline { display: grid; grid-template-columns: 1.05fr 0.95fr; gap: 64px; align-items: center; }
.n3310 { justify-self: center; width: min(240px, 100%); height: auto; filter: drop-shadow(0 26px 30px rgba(59, 31, 17, 0.3)); }
.n3310 .hit { fill: transparent; cursor: pointer; -webkit-tap-highlight-color: transparent; }
.n3310 .hit:active, .n3310 .hit.on { fill: rgba(59, 31, 17, 0.28); }

/* FAQ: plain rows split by hairlines, the question on the left and a thin plus on the right. */
.faq { max-width: 880px; margin: 48px auto 0; }
.faq details { border-bottom: 1px solid var(--border); }
.faq summary { display: flex; align-items: center; justify-content: space-between; gap: 24px; padding: 30px 4px; cursor: pointer; list-style: none; font-size: clamp(19px, 2.4vw, 24px); line-height: 1.35; color: var(--ink); }
.faq summary::-webkit-details-marker { display: none; }
.faq summary { -webkit-user-select: none; user-select: none; }
.faq summary::after { content: ""; flex: none; width: 22px; height: 22px; background: linear-gradient(var(--ink), var(--ink)) center / 100% 1.5px no-repeat, linear-gradient(var(--ink), var(--ink)) center / 1.5px 100% no-repeat; }
.faq details[open] summary::after { background: linear-gradient(var(--ink), var(--ink)) center / 100% 1.5px no-repeat; }
.faq details p { max-width: 68ch; padding: 0 56px 32px 4px; font-size: 19px; line-height: 1.6; color: var(--primary-400); }

/* Closing + footer */
.closing { text-align: center; }
.closing .stores { justify-content: center; }
footer { border-top: 1px solid var(--border); padding: 36px 0 48px; font-size: 15px; color: var(--primary-400); }
.foot { display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between; gap: 16px; }
.foot .brand { font-size: 21px; }
.foot .brand img { width: 28px; height: 28px; }

@media (max-width: 920px) {
  nav { display: none; }
  .hero { align-items: flex-end; padding-top: 0; }
  .hero::before { background: linear-gradient(180deg, rgba(24, 14, 9, 0.55), rgba(24, 14, 9, 0) 22%), linear-gradient(0deg, rgba(24, 14, 9, 0.9) 0%, rgba(24, 14, 9, 0.6) 45%, rgba(24, 14, 9, 0) 72%); }
  .hero-video { object-position: 90% 50%; }
  .hero-copy { padding: 0 0 56px; text-align: left; }
  .hero .lede { margin-left: 0; }
  .hero .stores { justify-content: flex-start; margin-top: 28px; }
  .hero-strip { display: none; }
  .family { grid-template-columns: 1fr; gap: 44px; }
  .notif { left: 50%; transform: translateX(-50%); bottom: 0; width: min(276px, calc(100% - 24px)); }
  .lede { margin-left: auto; margin-right: auto; }
  .stores { justify-content: center; }
  .steps { grid-template-columns: 1fr; }
  .callline { grid-template-columns: 1fr; gap: 44px; }
  section { padding: 64px 0; }
}
@media (max-width: 420px) {
  body { font-size: 17px; }
  .wrap { padding: 0 16px; }
  .txt { padding: 24px 24px 20px; }
  .vis { height: 320px; padding: 22px 24px 0; }
  .hero .stores { display: grid; grid-template-columns: max-content; }
}
@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
}
