/* ============================================================
   DoseBox — Landing page styles
   Light / teal design language. No dark mode, no purple.
   ============================================================ */

:root {
  --bg:            #EEF2F7;
  --surface:       #FFFFFF;
  --teal:          #22819A;
  --teal-bright:   #00C4AD;
  --teal-bright-2: #13BABD;
  --navy:          #101E52;
  --text:          #1A2332;
  --text-2:        #8896A5;

  --radius-sm: 12px;
  --radius:    18px;
  --radius-lg: 24px;

  --shadow-teal: 0 8px 30px rgba(0, 196, 173, 0.18);
  --shadow-soft: 0 6px 24px rgba(16, 30, 82, 0.06);
  --border-teal: 1px solid rgba(34, 129, 154, 0.14);

  --maxw: 1160px;
  --nav-h: 68px;

  --font: 'DM Sans', system-ui, -apple-system, 'Segoe UI', Roboto, sans-serif;
}

/* ---------- Reset / base ---------- */
* { box-sizing: border-box; margin: 0; padding: 0; }

html { scroll-behavior: smooth; scroll-padding-top: calc(var(--nav-h) + 12px); }

body {
  font-family: var(--font);
  background: var(--bg);
  color: var(--text);
  line-height: 1.6;
  -webkit-font-smoothing: antialiased;
  text-rendering: optimizeLegibility;
  overflow-x: hidden;
}

img { max-width: 100%; display: block; }

a { color: inherit; text-decoration: none; }

h1, h2, h3, h4 { color: var(--navy); font-weight: 700; line-height: 1.15; letter-spacing: -0.02em; }

.sr-only {
  position: absolute; width: 1px; height: 1px; padding: 0; margin: -1px;
  overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; border: 0;
}

.container {
  width: 100%;
  max-width: var(--maxw);
  margin-inline: auto;
  padding-inline: 20px;
}
.container--narrow { max-width: 780px; }

/* ---------- Buttons ---------- */
.btn {
  display: inline-flex; align-items: center; justify-content: center; gap: 8px;
  font-family: var(--font); font-weight: 600; font-size: 0.98rem;
  padding: 13px 22px; border-radius: 999px; border: none; cursor: pointer;
  transition: transform .18s ease, box-shadow .18s ease, background .18s ease, color .18s ease;
  white-space: nowrap;
}
.btn--sm { padding: 9px 18px; font-size: 0.9rem; }

.btn--primary {
  background: linear-gradient(135deg, var(--teal-bright-2), var(--teal));
  color: #fff;
  box-shadow: var(--shadow-teal);
}
.btn--primary:hover { transform: translateY(-2px); box-shadow: 0 12px 34px rgba(0, 196, 173, 0.32); }
.btn--primary:active { transform: translateY(0); }

.btn--ghost {
  background: var(--surface);
  color: var(--teal);
  border: 1.5px solid rgba(34, 129, 154, 0.28);
}
.btn--ghost:hover { border-color: var(--teal); background: rgba(34,129,154,0.05); transform: translateY(-2px); }

:focus-visible { outline: 3px solid rgba(0,196,173,0.55); outline-offset: 2px; border-radius: 6px; }

/* ---------- Nav ---------- */
.nav {
  position: sticky; top: 0; z-index: 60;
  height: var(--nav-h);
  display: flex; align-items: center;
  background: rgba(238, 242, 247, 0.75);
  transition: background .25s ease, box-shadow .25s ease, backdrop-filter .25s ease;
}
.nav.is-scrolled {
  background: rgba(255, 255, 255, 0.82);
  backdrop-filter: blur(14px);
  -webkit-backdrop-filter: blur(14px);
  box-shadow: 0 2px 20px rgba(16, 30, 82, 0.07);
}
.nav__inner { display: flex; align-items: center; justify-content: space-between; gap: 20px; }

/* Brand / wordmark */
.brand { display: inline-flex; align-items: center; gap: 10px; font-weight: 700; }
.brand__logo {
  width: 34px; height: 34px; border-radius: 10px; flex: none;
  display: inline-block; background-size: cover; background-position: center;
}
.brand__word { font-size: 1.28rem; letter-spacing: -0.02em; }
.brand__dose { color: var(--navy); }
.brand__box  { color: var(--teal-bright-2); }

.nav__links { display: flex; gap: 28px; }
.nav__links a { color: var(--text); font-weight: 500; font-size: 0.98rem; position: relative; transition: color .18s; }
.nav__links a::after {
  content: ""; position: absolute; left: 0; bottom: -6px; width: 0; height: 2px;
  background: var(--teal-bright); border-radius: 2px; transition: width .2s ease;
}
.nav__links a:hover { color: var(--teal); }
.nav__links a:hover::after { width: 100%; }

.nav__actions { display: flex; align-items: center; gap: 12px; }

.lang { display: inline-flex; background: rgba(16,30,82,0.06); border-radius: 999px; padding: 3px; }
.lang__btn {
  border: none; background: transparent; cursor: pointer;
  font-family: var(--font); font-weight: 600; font-size: 0.82rem;
  color: var(--text-2); padding: 5px 11px; border-radius: 999px; transition: all .18s;
}
.lang__btn.is-active { background: #fff; color: var(--teal); box-shadow: var(--shadow-soft); }

/* Mobile nav toggle */
.nav__toggle { display: none; flex-direction: column; gap: 4px; background: none; border: none; cursor: pointer; padding: 6px; }
.nav__toggle span { width: 22px; height: 2px; background: var(--navy); border-radius: 2px; transition: .25s; }
.nav__toggle[aria-expanded="true"] span:nth-child(1) { transform: translateY(6px) rotate(45deg); }
.nav__toggle[aria-expanded="true"] span:nth-child(2) { opacity: 0; }
.nav__toggle[aria-expanded="true"] span:nth-child(3) { transform: translateY(-6px) rotate(-45deg); }

.nav__mobile {
  position: absolute; top: var(--nav-h); left: 0; right: 0;
  background: rgba(255,255,255,0.97); backdrop-filter: blur(14px);
  flex-direction: column; gap: 4px; padding: 14px 20px 20px;
  box-shadow: 0 12px 24px rgba(16,30,82,0.08);
  display: none;
}
.nav__mobile.is-open { display: flex; }
.nav__mobile a { padding: 12px 6px; font-weight: 500; border-bottom: 1px solid rgba(16,30,82,0.06); }
.nav__mobile a.btn { border: none; margin-top: 10px; color: #fff; justify-content: center; }

/* ---------- Sections ---------- */
.section { padding: 84px 0; }
.section__head { max-width: 640px; margin: 0 auto 48px; text-align: center; }
.section__head h2 { font-size: clamp(1.7rem, 3.4vw, 2.5rem); margin-bottom: 12px; }
.section__head p { color: var(--text-2); font-size: 1.05rem; }

.eyebrow {
  display: inline-block; font-size: 0.8rem; font-weight: 700; letter-spacing: 0.08em;
  text-transform: uppercase; color: var(--teal); margin-bottom: 12px;
}

.card {
  background: var(--surface);
  border-radius: var(--radius-lg);
  border: var(--border-teal);
  box-shadow: var(--shadow-teal);
}

.grid { display: grid; gap: 22px; }
.grid--3 { grid-template-columns: repeat(3, 1fr); }
.grid--2 { grid-template-columns: repeat(2, 1fr); }

/* ---------- Hero ---------- */
.hero { position: relative; padding: 72px 0 64px; overflow: hidden; }
.hero__blob { position: absolute; border-radius: 50%; filter: blur(60px); opacity: 0.5; z-index: 0; pointer-events: none; }
.hero__blob--1 { width: 460px; height: 460px; top: -140px; right: -120px; background: radial-gradient(circle, rgba(0,196,173,0.35), transparent 70%); }
.hero__blob--2 { width: 380px; height: 380px; bottom: -160px; left: -120px; background: radial-gradient(circle, rgba(34,129,154,0.22), transparent 70%); }

.hero__inner {
  position: relative; z-index: 1;
  display: grid; grid-template-columns: 1.05fr 0.95fr; gap: 48px; align-items: center;
}

.pill {
  display: inline-block; background: rgba(0,196,173,0.12); color: var(--teal);
  font-weight: 600; font-size: 0.85rem; padding: 7px 15px; border-radius: 999px;
  margin-bottom: 22px; border: 1px solid rgba(0,196,173,0.22);
}
.hero__title { font-size: clamp(2.3rem, 5.2vw, 3.6rem); margin-bottom: 20px; }
.hero__sub { font-size: 1.14rem; color: var(--text-2); max-width: 520px; margin-bottom: 30px; }

.hero__cta { display: flex; flex-wrap: wrap; gap: 14px; align-items: center; margin-bottom: 26px; }

/* Google Play badge */
.badge-play {
  display: inline-flex; align-items: center;
  background: var(--navy); color: #fff; border-radius: 14px;
  padding: 11px 20px; transition: transform .18s, box-shadow .18s; box-shadow: var(--shadow-soft);
}
.badge-play:hover { transform: translateY(-2px); box-shadow: 0 12px 28px rgba(16,30,82,0.22); }
.badge-play__soon { font-weight: 600; font-size: 0.95rem; }
.badge-play.is-soon { background: rgba(16,30,82,0.08); color: var(--text-2); cursor: default; box-shadow: none; }
.badge-play.is-soon:hover { transform: none; box-shadow: none; }
.badge-play__real { display: inline-flex; align-items: center; gap: 12px; color: #fff; }
.badge-play__real small { display: block; font-size: 0.68rem; opacity: 0.85; line-height: 1; margin-bottom: 3px; }
.badge-play__real strong { font-size: 1.12rem; font-weight: 600; line-height: 1; }

.hero__points { list-style: none; display: flex; flex-wrap: wrap; gap: 18px; }
.hero__points li { display: flex; align-items: center; gap: 8px; font-size: 0.92rem; color: var(--text); font-weight: 500; }
.hero__points .dot { width: 8px; height: 8px; border-radius: 50%; background: var(--teal-bright); flex: none; box-shadow: 0 0 0 4px rgba(0,196,173,0.16); }

/* ---------- Phone mockup ---------- */
.hero__visual { display: flex; justify-content: center; }
.phone {
  position: relative; width: 264px; aspect-ratio: 9 / 19.3;
  background: #0d1533; border-radius: 38px; padding: 10px;
  box-shadow: 0 24px 60px rgba(16,30,82,0.28), 0 4px 14px rgba(0,196,173,0.16);
}
.phone--hero { animation: floaty 6s ease-in-out infinite; }
.phone__notch {
  position: absolute; top: 16px; left: 50%; transform: translateX(-50%);
  width: 92px; height: 20px; background: #0d1533; border-radius: 0 0 14px 14px; z-index: 3;
}
.phone__screen {
  position: relative; width: 100%; height: 100%; border-radius: 30px; overflow: hidden;
  background: linear-gradient(180deg, #ffffff, #f3f7fa);
}
.phone__screen .shot { width: 100%; height: 100%; object-fit: cover; }

@keyframes floaty { 0%,100% { transform: translateY(0); } 50% { transform: translateY(-12px); } }
@media (prefers-reduced-motion: reduce) { .phone--hero { animation: none; } }

/* Screenshot placeholder (when image missing) */
.shot.is-placeholder {
  display: flex; flex-direction: column; align-items: center; justify-content: center; gap: 12px;
  background: linear-gradient(160deg, #ffffff, #e9f4f4);
  color: var(--teal); text-align: center; padding: 24px;
}
.shot.is-placeholder .ph-mark {
  width: 54px; height: 54px; border-radius: 16px; display: grid; place-items: center;
  background: rgba(0,196,173,0.12); color: var(--teal);
}
.shot.is-placeholder .ph-mark svg { width: 28px; height: 28px; }
.shot.is-placeholder .ph-name { font-weight: 700; font-size: 1rem; color: var(--navy); }
.shot.is-placeholder .ph-sub { font-size: 0.78rem; color: var(--text-2); }

/* ---------- Features ---------- */
.feature { padding: 30px 26px; transition: transform .22s ease, box-shadow .22s ease; }
.feature:hover { transform: translateY(-5px); box-shadow: 0 16px 40px rgba(0,196,173,0.24); }
/* More pronounced entrance for feature cards: bigger rise + a subtle scale-up
   "pop". :hover kept more specific than .reveal.is-visible so the lift still works. */
.feature.reveal { --reveal-y: 40px; --reveal-s: 0.92; transition: opacity .5s ease, transform .55s cubic-bezier(0.22, 1, 0.36, 1); }
.feature.reveal:hover { transform: translateY(-5px); }
.feature__icon {
  display: inline-grid; place-items: center; width: 54px; height: 54px; border-radius: 15px;
  background: linear-gradient(135deg, rgba(0,196,173,0.16), rgba(34,129,154,0.12));
  color: var(--teal); margin-bottom: 18px;
}
.feature__icon svg { width: 28px; height: 28px; }
.feature h3 { font-size: 1.18rem; margin-bottom: 8px; }
.feature p { color: var(--text-2); font-size: 0.97rem; }

/* ---------- How it works ---------- */
.how { background: linear-gradient(180deg, rgba(255,255,255,0.5), rgba(255,255,255,0)); }
.steps { counter-reset: step; }
.step {
  position: relative; background: var(--surface); border-radius: var(--radius-lg);
  border: var(--border-teal); box-shadow: var(--shadow-soft); padding: 34px 28px 30px; text-align: left;
}
.step__num {
  display: inline-grid; place-items: center; width: 46px; height: 46px; border-radius: 14px;
  background: linear-gradient(135deg, var(--teal-bright-2), var(--teal)); color: #fff;
  font-weight: 700; font-size: 1.35rem; margin-bottom: 16px; box-shadow: var(--shadow-teal);
}
.step h3 { font-size: 1.2rem; margin-bottom: 8px; }
.step p { color: var(--text-2); font-size: 0.97rem; }

/* ---------- Gallery ---------- */
.gallery { position: relative; display: flex; align-items: center; gap: 8px; max-width: 1240px; margin-inline: auto; padding-inline: 12px; }
.gallery__track {
  display: flex; gap: 26px; overflow-x: auto; scroll-snap-type: x mandatory;
  padding: 20px 16px 28px; scrollbar-width: none; flex: 1; scroll-behavior: smooth;
}
.gallery__track::-webkit-scrollbar { display: none; }
.gallery__item { flex: none; scroll-snap-align: center; display: flex; flex-direction: column; align-items: center; gap: 14px; }
.gallery__item .phone { width: 230px; }
.gallery__item figcaption { font-weight: 600; color: var(--navy); font-size: 0.95rem; }

.gallery__arrow {
  flex: none; width: 46px; height: 46px; border-radius: 50%; border: var(--border-teal);
  background: var(--surface); color: var(--teal); cursor: pointer; display: grid; place-items: center;
  box-shadow: var(--shadow-soft); transition: transform .18s, box-shadow .18s, background .18s;
  z-index: 2;
}
.gallery__arrow:hover { transform: scale(1.08); box-shadow: var(--shadow-teal); background: #fff; }
.gallery__arrow:disabled { opacity: 0.35; cursor: default; transform: none; box-shadow: none; }

/* ---------- Showcase (banner images) ---------- */
.showcase__list { display: flex; flex-direction: column; gap: 30px; max-width: 1080px; margin-inline: auto; }
.showcase__item {
  margin: 0; border-radius: var(--radius-lg); overflow: hidden;
  border: var(--border-teal); box-shadow: var(--shadow-teal); background: var(--surface);
  transition: transform .22s ease, box-shadow .22s ease;
}
.showcase__item:hover { transform: translateY(-4px); box-shadow: 0 16px 44px rgba(0,196,173,0.24); }
.showcase__img { width: 100%; height: auto; display: block; }
.showcase__ph {
  width: 100%; aspect-ratio: 16 / 9; display: flex; flex-direction: column;
  align-items: center; justify-content: center; gap: 12px; text-align: center; padding: 24px;
  background: linear-gradient(160deg, #ffffff, #e6f3f3); color: var(--teal);
}
.showcase__ph .ph-mark { width: 56px; height: 56px; border-radius: 16px; display: grid; place-items: center; background: rgba(0,196,173,0.12); }
.showcase__ph .ph-mark svg { width: 30px; height: 30px; }
.showcase__ph .ph-name { font-weight: 700; font-size: 1.1rem; color: var(--navy); }
.showcase__ph .ph-sub { font-size: 0.85rem; color: var(--text-2); }
@media (max-width: 620px) { .showcase__list { gap: 20px; } }

/* ---------- Trust ---------- */
.trust__card { padding: 34px 30px; }
.trust__icon {
  display: inline-grid; place-items: center; width: 58px; height: 58px; border-radius: 16px;
  background: linear-gradient(135deg, rgba(0,196,173,0.16), rgba(34,129,154,0.12));
  color: var(--teal); margin-bottom: 18px;
}
.trust__icon svg { width: 30px; height: 30px; }
.trust__card h3 { font-size: 1.3rem; margin-bottom: 10px; }
.trust__card p { color: var(--text-2); }

/* ---------- Contact ---------- */
.contact {
  padding: 36px 34px;
  background:
    radial-gradient(circle at 100% 0%, rgba(0,196,173,0.1), transparent 55%),
    var(--surface);
}
.contact__hp { position: absolute; left: -9999px; opacity: 0; pointer-events: none; } /* honeypot */
.contact__row { display: grid; grid-template-columns: 1fr 1fr; gap: 16px; margin-bottom: 16px; }
.field { display: flex; flex-direction: column; gap: 7px; }
.field label { font-size: 0.9rem; font-weight: 600; color: var(--navy); }
.contact input, .contact textarea {
  width: 100%; font-family: var(--font); font-size: 1rem; color: var(--text);
  padding: 12px 16px; border-radius: 12px; border: 1.5px solid rgba(34,129,154,0.22);
  background: var(--bg); transition: border-color .18s, box-shadow .18s;
}
.contact textarea { border-radius: 14px; resize: vertical; min-height: 120px; line-height: 1.6; }
.contact input:focus, .contact textarea:focus {
  outline: none; border-color: var(--teal); box-shadow: 0 0 0 4px rgba(0,196,173,0.16); background: #fff;
}
.contact input.is-invalid, .contact textarea.is-invalid { border-color: #e0576b; box-shadow: 0 0 0 4px rgba(224,87,107,0.14); }
.contact__actions { display: flex; flex-wrap: wrap; align-items: center; gap: 16px; margin-top: 18px; }
.contact__msg { font-size: 0.92rem; font-weight: 600; min-height: 1.2em; }
.contact__msg.is-ok { color: var(--teal); }
.contact__msg.is-err { color: #e0576b; }
@media (max-width: 560px) {
  .contact { padding: 28px 20px; }
  .contact__row { grid-template-columns: 1fr; gap: 16px; }
}

/* ---------- FAQ ---------- */
.faq { display: flex; flex-direction: column; gap: 12px; }
.faq__item { background: var(--surface); border-radius: var(--radius); border: var(--border-teal); box-shadow: var(--shadow-soft); overflow: hidden; }
.faq__q {
  width: 100%; display: flex; align-items: center; justify-content: space-between; gap: 16px;
  background: none; border: none; cursor: pointer; text-align: left;
  font-family: var(--font); font-weight: 600; font-size: 1.05rem; color: var(--navy);
  padding: 20px 22px;
}
.faq__chev { position: relative; width: 14px; height: 14px; flex: none; }
.faq__chev::before, .faq__chev::after {
  content: ""; position: absolute; top: 50%; width: 10px; height: 2px; background: var(--teal); border-radius: 2px; transition: transform .25s;
}
.faq__chev::before { left: 0; transform: translateY(-50%) rotate(45deg); }
.faq__chev::after  { right: 0; transform: translateY(-50%) rotate(-45deg); }
.faq__item.is-open .faq__chev::before { transform: translateY(-50%) rotate(-45deg); }
.faq__item.is-open .faq__chev::after  { transform: translateY(-50%) rotate(45deg); }
.faq__a { max-height: 0; overflow: hidden; transition: max-height .3s ease; }
.faq__a p { padding: 0 22px 20px; color: var(--text-2); }

/* ---------- Footer ---------- */
.footer { background: var(--navy); color: #cdd6ea; padding: 60px 0 26px; }
.footer h4 { color: #fff; font-size: 1rem; margin-bottom: 14px; }
.footer__inner { display: grid; grid-template-columns: 1.6fr 1fr 1.4fr; gap: 40px; }
.footer .brand__dose { color: #fff; }
.footer .brand__box { color: var(--teal-bright); }
.footer__desc { margin: 16px 0 12px; color: #9aa7c6; max-width: 320px; font-size: 0.95rem; }
.footer__mail { color: var(--teal-bright); font-weight: 600; }
.footer__col { display: flex; flex-direction: column; gap: 10px; }
.footer__col a { color: #b6c1dc; font-size: 0.95rem; transition: color .18s; width: fit-content; }
.footer__col a:hover { color: #fff; }
.footer__disclaimer p { color: #9aa7c6; font-size: 0.9rem; line-height: 1.7; }
.footer__bottom {
  display: flex; justify-content: space-between; flex-wrap: wrap; gap: 10px;
  margin-top: 42px; padding-top: 22px; border-top: 1px solid rgba(255,255,255,0.1);
  font-size: 0.85rem; color: #8695b8;
}

/* ---------- Reveal animation ----------
   Progressive enhancement: content is visible by default. The hidden start
   state only applies when JS is active (html.js), so if scripts/IO fail to
   run the page still shows all content. */
.reveal { transition: opacity .6s ease, transform .6s ease; }
.js .reveal { opacity: 0; transform: translateY(var(--reveal-y, 26px)) scale(var(--reveal-s, 1)); }
.reveal.is-visible { opacity: 1; transform: none; }
@media (prefers-reduced-motion: reduce) {
  .js .reveal { opacity: 1; transform: none; }
  .reveal { transition: none; }
  html { scroll-behavior: auto; }
}

/* ============================================================
   Responsive
   ============================================================ */
@media (max-width: 960px) {
  .hero__inner { grid-template-columns: 1fr; gap: 40px; text-align: center; }
  .hero__copy { display: flex; flex-direction: column; align-items: center; }
  .hero__sub { margin-inline: auto; }
  .hero__cta, .hero__points { justify-content: center; }
  .notify { grid-template-columns: 1fr; gap: 24px; text-align: center; }
  .notify__form { justify-content: center; }
  .footer__inner { grid-template-columns: 1fr 1fr; }
  .footer__brand { grid-column: 1 / -1; }
}

@media (max-width: 820px) {
  .nav__links { display: none; }
  .nav__toggle { display: flex; }
  .grid--3 { grid-template-columns: 1fr 1fr; }
}

@media (max-width: 620px) {
  .section { padding: 60px 0; }
  .hero { padding: 48px 0 40px; }
  .grid--3, .grid--2 { grid-template-columns: 1fr; }
  .notify { padding: 32px 22px; }
  .footer__inner { grid-template-columns: 1fr; }
  .gallery { padding-inline: 4px; gap: 4px; }
  .gallery__arrow { width: 40px; height: 40px; }
  .brand__word { font-size: 1.15rem; }
  .nav__actions .btn--sm { display: none; }

  /* Compact feature cards on mobile: icon to the left of the text so the
     six-card stack is shorter and reads faster than tall stacked blocks. */
  .features { gap: 14px; }
  .feature { display: grid; grid-template-columns: auto 1fr; column-gap: 15px; row-gap: 4px; padding: 20px 18px; }
  .feature__icon { grid-column: 1; grid-row: 1 / span 2; align-self: start; width: 46px; height: 46px; margin-bottom: 0; }
  .feature__icon svg { width: 24px; height: 24px; }
  .feature h3 { grid-column: 2; align-self: center; font-size: 1.08rem; }
  .feature p { grid-column: 2; font-size: 0.94rem; }
  .feature.reveal:hover { transform: none; }
}

@media (max-width: 380px) {
  .container { padding-inline: 16px; }
  .phone { width: 240px; }
  .hero__points { gap: 12px; }
}
