/* Sehatora landing (#92). Colours and type from docs/designs/project/tokens.css. */
@font-face {
  font-family: 'Plus Jakarta Sans';
  font-style: normal;
  font-display: swap;
  font-weight: 200 800;
  src: url(/fonts/plus-jakarta-sans-latin-wght-normal.woff2) format('woff2');
  unicode-range: U+0000-00FF, U+0131, U+0152-0153, U+02BB-02BC, U+02C6, U+02DA, U+02DC, U+0304, U+0308, U+0329, U+2000-206F, U+20AC, U+2122, U+2191, U+2193, U+2212, U+2215, U+FEFF, U+FFFD;
}
@font-face {
  font-family: 'Plus Jakarta Sans';
  font-style: normal;
  font-display: swap;
  font-weight: 200 800;
  src: url(/fonts/plus-jakarta-sans-latin-ext-wght-normal.woff2) format('woff2');
  unicode-range: U+0100-02BA, U+02BD-02C5, U+02C7-02CC, U+02CE-02D7, U+02DD-02FF, U+0304, U+0308, U+0329, U+1D00-1DBF, U+1E00-1E9F, U+1EF2-1EFF, U+2020, U+20A0-20AB, U+20AD-20C0, U+2113, U+2C60-2C7F, U+A720-A7FF;
}

:root {
  --brand: #1FB582;
  --brand-600: #0E9F6E;
  --brand-700: #0A7E58;
  --brand-50: #E6F7F0;
  --brand-soft: #B7E8D6;
  --ink: #1A1A1A;
  --ink-2: #52525B;
  --muted: #71717A;
  --line: #E4E4E7;
  --bg: #F5F5F4;
  --dark: #0A2A22;
  --green: linear-gradient(160deg, #0E9F6E 0%, #1FB582 60%, #2BCC9E 100%);
  --gutter: clamp(16px, 5vw, 64px);
}

*, *::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;
  font-family: 'Plus Jakarta Sans', -apple-system, system-ui, sans-serif;
  color: var(--ink);
  background: var(--bg);
  -webkit-font-smoothing: antialiased;
  line-height: 1.5;
  overflow-x: hidden;
}
img { max-width: 100%; height: auto; display: block; }
[hidden] { display: none !important; } /* tab panels: beats .steps { display: grid } */
a { color: inherit; }
h1, h2, h3 { margin: 0; line-height: 1.1; letter-spacing: -0.02em; }
:focus-visible { outline: 3px solid var(--brand-600); outline-offset: 3px; border-radius: 6px; }

.skip { position: absolute; left: -999px; top: 8px; background: #fff; padding: 8px 12px; border-radius: 8px; z-index: 20; }
.skip:focus { left: 8px; }

/* Buttons */
.btn {
  display: inline-flex; align-items: center; gap: 6px; justify-content: center;
  padding: 13px 22px; border-radius: 12px; font-weight: 700; font-size: 16px; text-decoration: none;
  transition: transform .15s ease, box-shadow .15s ease, background .15s ease;
}
.btn:hover { transform: translateY(-1px); }
.btn-primary { background: var(--brand); color: #fff; box-shadow: 0 6px 16px rgba(31, 181, 130, .3); }
.btn-primary:hover { background: var(--brand-600); }
.btn-ghost { background: #fff; color: var(--ink); border: 1px solid #D4D4D8; }
.btn-white { background: #fff; color: var(--brand-700); }

/* Nav */
.nav {
  position: absolute; top: 0; left: 0; right: 0; z-index: 10;
  display: flex; align-items: center; justify-content: space-between;
  padding: 20px var(--gutter);
}
.logo { font-weight: 800; font-size: 24px; letter-spacing: -0.4px; text-decoration: none; }
.logo sup { color: var(--brand); font-size: 0.55em; }
.nav nav { display: flex; align-items: center; gap: 28px; }
.nav-link { text-decoration: none; color: var(--ink-2); font-weight: 500; font-size: 15px; }
.nav-link:hover { color: var(--ink); }
.nav .btn { padding: 10px 18px; font-size: 15px; }

/* 1. Hero: centered text, phones on a green band (option 3) */
.hero {
  /* Exactly one screen tall: the phones run off the bottom edge, as in the mockup. */
  position: relative; height: 100vh; height: 100svh; min-height: 640px; overflow: hidden;
  display: flex; flex-direction: column; align-items: center; text-align: center;
  padding: clamp(96px, 13vh, 130px) var(--gutter) 0;
}
.hero-text { position: relative; z-index: 2; max-width: 1000px; }
.badge {
  display: inline-block; font-size: 13px; font-weight: 700; color: var(--brand-700);
  background: var(--brand-50); padding: 6px 14px; border-radius: 99px;
}
.hero h1 { font-size: clamp(40px, 6.4vw, 72px); font-weight: 800; letter-spacing: -0.035em; margin: 16px 0 14px; }
.lead { font-size: clamp(17px, 1.6vw, 20px); color: var(--ink-2); margin: 0 auto 26px; max-width: 600px; }
.actions { display: flex; gap: 10px; justify-content: center; flex-wrap: wrap; }
.hero-band { position: absolute; left: 0; right: 0; bottom: 0; height: 32%; background: var(--green); }
.hero-phones {
  position: relative; z-index: 1; flex: 1; width: 100%;
  display: flex; justify-content: center; align-items: flex-start; gap: clamp(16px, 2.5vw, 34px);
  margin-top: clamp(32px, 6vh, 64px);
}
.phone { margin: 0; background: #111; border-radius: 42px; padding: 9px; box-shadow: 0 40px 80px rgba(10, 42, 34, .3); }
.phone img { border-radius: 34px; }
.phone-main { width: clamp(220px, 21vw, 310px); }
.phone-side { width: clamp(190px, 19vw, 280px); margin-top: 64px; }

/* Sections */
/* Content stays within 1200 px and centred on wide screens. */
.section { padding: clamp(64px, 9vw, 112px) max(var(--gutter), calc((100% - 1200px) / 2)); }
.section-white { background: #fff; }
.section h2 { font-size: clamp(28px, 3.4vw, 42px); font-weight: 800; max-width: 760px; margin-bottom: 28px; }
.eyebrow { margin: 0 0 8px; font-size: 13px; font-weight: 700; letter-spacing: .08em; text-transform: uppercase; color: var(--brand); }
.eyebrow-light { color: #2BCC9E; }

/* 2. How it works */
.tabs { display: inline-flex; gap: 6px; background: #fff; border: 1px solid var(--line); border-radius: 99px; padding: 5px; margin-bottom: 32px; }
.tabs button {
  font: inherit; font-weight: 700; font-size: 15px; border: 0; background: transparent; color: var(--ink-2);
  padding: 9px 18px; border-radius: 99px; cursor: pointer;
}
.tabs button[aria-selected='true'] { background: var(--brand); color: #fff; }
.steps { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 24px; }
.step { background: #fff; border: 1px solid var(--line); border-radius: 20px; padding: 24px; }
.step h3 { font-size: 19px; margin: 12px 0 6px; }
.step p { margin: 0; color: var(--ink-2); }
.num {
  display: inline-flex; width: 30px; height: 30px; border-radius: 50%; align-items: center; justify-content: center;
  background: var(--brand); color: #fff; font-weight: 800; font-size: 15px;
}
/* Patient steps: a phone rising from a light backdrop, the same size at any card width (never zoomed or cropped mid-line). */
.steps-with-shots .step { padding: 0 0 24px; overflow: hidden; }
.steps-with-shots .step > div { padding: 0 24px; }
.shot-frame { height: 300px; overflow: hidden; display: flex; justify-content: center; padding-top: 28px; background: linear-gradient(180deg, var(--brand-50), #fff); border-bottom: 1px solid var(--line); margin-bottom: 8px; }
.step-shot { width: 210px; height: auto; flex-shrink: 0; align-self: flex-start; border: 7px solid #111; border-radius: 30px; box-shadow: 0 18px 36px rgba(10, 42, 34, .18); }

/* 3. Gallery */
.gallery { display: flex; gap: 22px; overflow-x: auto; scroll-snap-type: x mandatory; padding: 4px 4px 16px; }
.gallery figure { margin: 0; flex: 0 0 auto; width: clamp(180px, 17vw, 230px); scroll-snap-align: start; }
.gallery img { border-radius: 30px; border: 8px solid #111; box-shadow: 0 20px 40px rgba(10, 42, 34, .16); }
.gallery figcaption { text-align: center; margin-top: 12px; font-weight: 700; color: var(--ink-2); }
@media (min-width: 1240px) { .gallery { justify-content: center; overflow: visible; } }

/* 4. Features */
.features { list-style: none; margin: 0; padding: 0; display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 18px; }
.features li { background: #fff; border: 1px solid var(--line); border-radius: 18px; padding: 22px; }
.features .icon { display: inline-flex; width: 42px; height: 42px; border-radius: 12px; background: var(--brand-50); align-items: center; justify-content: center; font-size: 20px; }
.features h3 { font-size: 17px; margin: 12px 0 4px; }
.features p { margin: 0; color: var(--muted); }

/* 5. Privacy */
.privacy { display: flex; gap: 24px; align-items: flex-start; max-width: 900px; }
.privacy-icon { font-size: 44px; line-height: 1; }
.privacy h2 { margin-bottom: 10px; }
.privacy p { margin: 0; color: var(--ink-2); font-size: 17px; }
.privacy a { color: var(--brand-700); font-weight: 700; }

/* 6. Doctors & pharmacies */
.section-dark { background: var(--dark); color: #fff; }
.providers { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 18px; max-width: 900px; }
.providers p { margin: 0; color: rgba(255, 255, 255, .85); font-size: 17px; }
.join { margin: 28px 0 0; font-size: 17px; display: flex; flex-wrap: wrap; gap: 14px; align-items: center; }

/* 7. FAQ */
.faq { max-width: 820px; display: grid; gap: 10px; }
.faq details { background: #fff; border: 1px solid var(--line); border-radius: 14px; padding: 16px 20px; }
.faq summary { font-weight: 700; font-size: 17px; cursor: pointer; }
.faq p { margin: 10px 0 0; color: var(--ink-2); }

/* 8. Final call to action */
.cta { background: var(--green); color: #fff; text-align: center; padding: clamp(64px, 9vw, 100px) var(--gutter); }
.cta h2 { font-size: clamp(28px, 3.4vw, 42px); font-weight: 800; margin-bottom: 24px; }
.cta p { margin: 16px 0 0; opacity: .9; }

/* Footer */
.footer {
  display: flex; flex-wrap: wrap; gap: 14px 28px; align-items: center; justify-content: space-between;
  padding: 28px var(--gutter) calc(28px + env(safe-area-inset-bottom, 0px));
  color: var(--ink-2); font-size: 15px; background: #FAFAF9; border-top: 1px solid var(--line);
}
.footer .logo { color: var(--ink); font-size: 20px; }
.footer nav { display: flex; flex-wrap: wrap; align-items: center; gap: 8px 22px; }
.footer a { text-decoration: none; }
.footer a:hover { color: var(--ink); text-decoration: underline; }
.footer .copyright { font-size: 14px; color: var(--muted); }

/* Phones and small tablets */
@media (max-width: 900px) {
  .steps, .features { grid-template-columns: 1fr; }
  .providers { grid-template-columns: 1fr; }
  .steps-with-shots .step { display: grid; grid-template-columns: 120px 1fr; gap: 16px; padding: 16px; align-items: center; }
  .steps-with-shots .step > div { padding: 0; }
  .shot-frame { height: 190px; padding-top: 14px; border: 1px solid var(--line); border-radius: 14px; margin: 0; }
  .step-shot { width: 110px; border-width: 4px; border-radius: 16px; }
}
@media (max-width: 640px) {
  .nav-link { display: none; }
  .logo { font-size: 21px; }
  .hero { padding-top: 92px; }
  .hero-band { height: 38%; }
  .phone-side { display: none; }
  .phone-main { width: min(68vw, 260px); }
  .tabs { display: flex; width: 100%; }
  .tabs button { flex: 1; padding: 9px 8px; }
  .privacy { flex-direction: column; gap: 12px; }
  /* Phones: centred, like the call to action above it. */
  .footer { flex-direction: column; align-items: center; text-align: center; gap: 12px; padding-top: 32px; }
  .footer nav { justify-content: center; gap: 6px 20px; }
  .footer .email { flex-basis: 100%; }
}

/* Step 2 shows the medicines Sehatora read, lower on the Check and save screen. */
