/* Doabl Now website. Colours and type follow the app's "Clinic Calm" tokens (shared/ui/Theme.kt). */
:root {
  --screen: #F4F7F8; --surface: #FFFFFF; --fg: #0F1B24; --muted: #566773; --caption: #3D4F5C;
  --accent: #0B6C75; --accent-pressed: #08525A; --accent-soft: #E3F3F4; --accent-ink: #0B4F55;
  --line: #E2E8EC; --line-strong: #D6DEE3; --medal: #C8962E; --medal-soft: #FBF3E2; --danger: #A3243F;
  --serif: "Source Serif 4", Georgia, serif; --sans: Inter, system-ui, -apple-system, "Segoe UI", Roboto, sans-serif;
  --radius: 18px; --shadow: 0 1px 2px rgba(15,27,36,.06), 0 12px 32px rgba(15,27,36,.08);
}
* { box-sizing: border-box; }
html { scroll-behavior: smooth; }
@media (prefers-reduced-motion: reduce) { html { scroll-behavior: auto; } }
body { margin: 0; background: var(--screen); color: var(--fg); font: 400 17px/1.6 var(--sans); -webkit-font-smoothing: antialiased; }
img, video { display: block; max-width: 100%; height: auto; }
a { color: var(--accent); }
a:focus-visible, summary:focus-visible, .strip:focus-visible { outline: 3px solid var(--accent); outline-offset: 3px; border-radius: 6px; }
h1, h2, h3 { font-family: var(--serif); font-weight: 600; line-height: 1.15; margin: 0 0 .5em; letter-spacing: -.01em; }
h1 { font-size: clamp(2.2rem, 5vw, 3.6rem); }
h2 { font-size: clamp(1.8rem, 3.6vw, 2.6rem); }
h3 { font-size: 1.45rem; }
p { margin: 0 0 1em; }
.wrap { max-width: 1120px; margin: 0 auto; padding: 0 16px; }
.narrow { max-width: 760px; margin-left: auto; margin-right: auto; }
.center { text-align: center; }
.muted { color: var(--muted); }
.small { font-size: .9rem; }
.lead { font-size: 1.15rem; color: var(--caption); }
.eyebrow { font: 600 .8rem/1 var(--sans); letter-spacing: .12em; text-transform: uppercase; color: var(--accent); margin-bottom: 14px; }
.btn { display: inline-block; background: var(--accent); color: #fff; text-decoration: none; font-weight: 600; padding: 14px 24px; border-radius: 14px; }
.btn:hover { background: var(--accent-pressed); }
.btn-small { padding: 9px 16px; font-size: .95rem; border-radius: 12px; }

/* Nav */
.nav { position: sticky; top: 0; z-index: 10; background: rgba(244,247,248,.9); backdrop-filter: saturate(1.4) blur(10px); border-bottom: 1px solid var(--line); }
.nav-in { display: flex; align-items: center; gap: 24px; height: 64px; }
.brand { display: flex; align-items: center; gap: 10px; text-decoration: none; color: var(--fg); font-weight: 700; font-size: 1.1rem; }
.brand img { border-radius: 10px; }
.brand .now { color: var(--accent); }
.nav nav { display: flex; gap: 22px; margin-left: auto; }
.nav nav a { color: var(--caption); text-decoration: none; font-weight: 500; font-size: .95rem; }
.nav nav a:hover { color: var(--accent); }
@media (max-width: 760px) { .nav nav { display: none; } .nav .btn-small { margin-left: auto; } }

/* Phones */
.phone { margin: 0; background: #0F1B24; padding: 8px; border-radius: 34px; box-shadow: var(--shadow); width: 100%; max-width: 280px; }
.phone img, .phone video { border-radius: 27px; width: 100%; aspect-ratio: 9 / 20; object-fit: cover; background: var(--screen); }
.phone-small { max-width: 240px; }

/* Hero */
.hero { padding: 56px 0 40px; }
.hero-in { display: grid; grid-template-columns: 1.1fr .9fr; gap: 40px; align-items: center; }
.hero-phones { position: relative; height: 560px; }
.hero-phones .phone { position: absolute; max-width: 250px; }
.phone-front { right: 40px; top: 0; z-index: 2; }
.phone-back { right: 200px; top: 60px; opacity: .95; transform: rotate(-4deg); }
.cta-row { display: flex; align-items: center; gap: 18px; flex-wrap: wrap; margin-top: 28px; }
.play img { height: 64px; width: auto; margin: -10px; } /* the official badge carries its own clear space */
.cta-note { font-size: .95rem; color: var(--muted); }
.cta-note strong { color: var(--fg); }
@media (max-width: 900px) {
  .hero-in { grid-template-columns: 1fr; }
  .hero-phones { height: 470px; max-width: 420px; margin: 0 auto; width: 100%; }
  .hero-phones .phone { max-width: 210px; }
  .phone-front { right: 8%; } .phone-back { right: auto; left: 8%; }
}

/* Promises */
.promises { background: var(--surface); border-top: 1px solid var(--line); border-bottom: 1px solid var(--line); }
.promises-in { display: grid; grid-template-columns: repeat(5, 1fr); gap: 20px; padding: 26px 16px; }
.promises-in div { display: flex; flex-direction: column; gap: 4px; }
.promises-in strong { font-size: 1rem; }
.promises-in span { font-size: .88rem; color: var(--muted); line-height: 1.45; }
@media (max-width: 900px) { .promises-in { grid-template-columns: repeat(2, 1fr); } }

/* Features */
.features { padding: 80px 0 40px; }
.feature { display: grid; grid-template-columns: 1fr 1fr; gap: 56px; align-items: center; padding: 48px 0; border-bottom: 1px solid var(--line); }
.feature:last-child { border-bottom: 0; }
.feature-media { display: flex; gap: 18px; justify-content: center; }
.feature-media .phone { max-width: 240px; }
.feature.flip .feature-media { order: 2; }
.ticks, .crosses { list-style: none; padding: 0; margin: 0; display: grid; gap: 10px; }
.ticks li, .crosses li { position: relative; padding-left: 30px; }
.ticks li::before { content: ""; position: absolute; left: 0; top: .3em; width: 20px; height: 20px; border-radius: 50%; background: var(--accent-soft) url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='%230B6C75' stroke-width='3' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpath d='M5 12.5l4.5 4.5L19 7.5'/%3E%3C/svg%3E") center/13px no-repeat; }
.crosses li::before { content: ""; position: absolute; left: 0; top: .3em; width: 20px; height: 20px; border-radius: 50%; background: #F9DCE3 url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='%23A3243F' stroke-width='3' stroke-linecap='round'%3E%3Cpath d='M7 7l10 10M17 7L7 17'/%3E%3C/svg%3E") center/11px no-repeat; }
@media (max-width: 860px) {
  .feature { grid-template-columns: 1fr; gap: 28px; padding: 36px 0; }
  .feature.flip .feature-media { order: 0; }
  .feature-media .phone { max-width: 46%; }
}

/* Tour */
.tour { padding: 56px 0 80px; }
.tour-tabs { display: flex; flex-wrap: wrap; justify-content: center; gap: 10px; margin: 28px 0 36px; }
.tour-tab { font: 600 .95rem var(--sans); color: var(--caption); background: var(--surface); border: 1px solid var(--line); border-radius: 999px; padding: 10px 18px; cursor: pointer; transition: all .25s; }
.tour-tab:hover { color: var(--accent); border-color: #B9D9DC; }
.tour-tab.on { color: #fff; background: var(--accent); border-color: var(--accent); box-shadow: 0 6px 22px -6px rgba(20,145,155,.75), 0 0 0 4px rgba(20,145,155,.12); }
.tour-tab:focus-visible, .tour-steps button:focus-visible, .tour-btn:focus-visible { outline: 3px solid var(--accent); outline-offset: 3px; }
.tour-body { display: grid; grid-template-columns: auto 1fr; gap: 56px; align-items: center; max-width: 900px; margin: 0 auto; }
.tour-phone { position: relative; }
.tour-phone::before { content: ""; position: absolute; inset: -40px; background: radial-gradient(closest-side, rgba(20,145,155,.28), transparent); z-index: -1; }
.tour-phone .phone { width: 290px; max-width: 290px; }
.tour-screen { position: relative; overflow: hidden; border-radius: 27px; }
.tour-screen img { border-radius: 0; transition: opacity .18s; }
.tour-screen img.fade { opacity: .15; }
.spot { position: absolute; border-radius: 12px; pointer-events: none;
  box-shadow: 0 0 0 9999px rgba(15,27,36,.42), 0 0 0 2px #7FD3D9, 0 0 22px 4px rgba(20,145,155,.85);
  transition: left .5s cubic-bezier(.3,.7,.2,1), top .5s cubic-bezier(.3,.7,.2,1), width .5s cubic-bezier(.3,.7,.2,1), height .5s cubic-bezier(.3,.7,.2,1); animation: pulse 2.4s ease-in-out infinite; }
@keyframes pulse { 50% { box-shadow: 0 0 0 9999px rgba(15,27,36,.42), 0 0 0 2px #A8EBEF, 0 0 34px 8px rgba(20,145,155,.95); } }
.tour-steps { list-style: none; counter-reset: s; padding: 0; margin: 0; display: grid; gap: 8px; }
.tour-steps li { counter-increment: s; }
.tour-steps button { all: unset; box-sizing: border-box; display: block; width: 100%; cursor: pointer; position: relative; padding: 12px 16px 12px 52px; border-radius: 14px; border: 1px solid transparent; transition: background .25s, box-shadow .25s, border-color .25s; }
.tour-steps button::before { content: counter(s); position: absolute; left: 14px; top: 13px; width: 26px; height: 26px; border-radius: 50%; display: grid; place-items: center; font: 600 .85rem var(--sans); color: var(--accent); background: var(--accent-soft); transition: all .25s; }
.tour-steps strong { display: block; font-weight: 600; }
.tour-steps span { display: block; color: var(--muted); font-size: .93rem; line-height: 1.45; }
.tour-steps button:hover { background: rgba(255,255,255,.7); }
.tour-steps li.on button { background: var(--surface); border-color: #B9D9DC; box-shadow: 0 10px 30px -12px rgba(11,108,117,.45), 0 0 0 4px rgba(20,145,155,.08); }
.tour-steps li.on button::before { color: #fff; background: var(--accent); box-shadow: 0 0 14px rgba(20,145,155,.8); }
.tour-nav { display: flex; align-items: center; gap: 14px; margin-top: 18px; padding-left: 16px; }
.tour-btn { width: 42px; height: 42px; border-radius: 50%; border: 1px solid var(--line-strong); background: var(--surface); color: var(--accent); font-size: 1.15rem; cursor: pointer; transition: all .2s; }
.tour-btn:hover { border-color: var(--accent); box-shadow: 0 0 0 4px rgba(20,145,155,.12), 0 6px 18px -6px rgba(20,145,155,.6); }
.tour-count { color: var(--muted); font-size: .92rem; }
@media (max-width: 760px) {
  .tour-body { grid-template-columns: 1fr; gap: 28px; justify-items: center; }
  .tour-phone .phone { width: 240px; }
  .tour-steps span { display: none; }
  .tour-steps li.on span { display: block; }
}

/* Glow */
.hero { position: relative; overflow: hidden; }
.hero-glow { position: absolute; inset: 0; pointer-events: none; z-index: 0; }
.hero-glow span { position: absolute; border-radius: 50%; filter: blur(60px); opacity: .55; animation: drift 18s ease-in-out infinite alternate; }
.hero-glow span:nth-child(1) { width: 460px; height: 460px; right: 4%; top: 6%; background: #8FD6DC; }
.hero-glow span:nth-child(2) { width: 300px; height: 300px; right: 30%; top: 46%; background: #F6D58E; opacity: .45; animation-duration: 22s; }
.hero-glow span:nth-child(3) { width: 360px; height: 360px; left: -8%; top: -20%; background: #CDEFF1; animation-duration: 26s; }
@keyframes drift { to { transform: translate(-40px, 30px) scale(1.08); } }
.hero-in { position: relative; z-index: 1; }
.hl { background: linear-gradient(transparent 62%, rgba(242,195,91,.5) 62%, rgba(242,195,91,.5) 92%, transparent 92%) no-repeat 0 0 / 100% 100%; animation: mark 1.1s .4s cubic-bezier(.3,.7,.2,1) both; }
@keyframes mark { from { background-size: 0 100%; } }
.phone { box-shadow: var(--shadow), 0 30px 70px -24px rgba(20,145,155,.55); }
.phone-front { box-shadow: var(--shadow), 0 30px 80px -18px rgba(20,145,155,.7); }
.glow-gold { box-shadow: var(--shadow), 0 26px 80px -16px rgba(226,170,60,.75); }
.btn { box-shadow: 0 8px 22px -8px rgba(11,108,117,.7); transition: background .2s, box-shadow .2s, transform .2s; }
.btn:hover { box-shadow: 0 10px 30px -6px rgba(20,145,155,.85), 0 0 0 4px rgba(20,145,155,.14); transform: translateY(-1px); }
.tier-premier { position: relative; overflow: hidden; box-shadow: 0 20px 50px -24px rgba(11,108,117,.55), 0 0 0 1px rgba(20,145,155,.15); }
.tier-premier::after { content: ""; position: absolute; top: 0; left: -60%; width: 40%; height: 100%; background: linear-gradient(100deg, transparent, rgba(255,255,255,.55), transparent); transform: skewX(-18deg); animation: shine 6s ease-in-out 1.5s infinite; pointer-events: none; }
@keyframes shine { 0%, 70% { left: -60%; } 100% { left: 130%; } }
.trust-in div, details { transition: box-shadow .25s, border-color .25s; }
.trust-in div:hover, details[open] { border-color: #B9D9DC; box-shadow: 0 12px 34px -16px rgba(11,108,117,.4); }
.closing { position: relative; overflow: hidden; }
.closing::before { content: ""; position: absolute; width: 700px; height: 700px; left: 50%; top: -260px; transform: translateX(-50%); background: radial-gradient(closest-side, rgba(127,211,217,.45), transparent); pointer-events: none; }
.closing .wrap { position: relative; }
.closing .play img { filter: drop-shadow(0 8px 24px rgba(0,0,0,.25)); }
.reveal-on [data-reveal] { opacity: 0; transform: translateY(18px); transition: opacity .7s ease, transform .7s cubic-bezier(.3,.7,.2,1); }
.reveal-on [data-reveal].in { opacity: 1; transform: none; }
@media (prefers-reduced-motion: reduce) {
  .hero-glow span, .spot, .tier-premier::after, .hl { animation: none; }
  .spot, .tour-screen img, .btn { transition: none; }
}

/* Free and Premier */
.pricing { background: var(--surface); padding: 80px 0; border-top: 1px solid var(--line); }
.tiers { display: grid; grid-template-columns: 1fr 1fr; gap: 24px; margin: 40px 0; }
.tier { background: var(--screen); border: 1px solid var(--line); border-radius: var(--radius); padding: 28px; }
.tier-premier { background: var(--accent-soft); border-color: #B9D9DC; }
.price { font: 600 2rem/1.2 var(--serif); margin: 0 0 18px; }
.price span { font: 500 1rem var(--sans); color: var(--muted); }
.price small { display: block; font: 400 .88rem/1.4 var(--sans); color: var(--muted); margin-top: 4px; }
.trial { margin: 20px 0 0; padding: 14px 16px; background: var(--surface); border-radius: 12px; font-size: .95rem; color: var(--accent-ink); }
.compare-wrap { display: flex; gap: 48px; align-items: center; justify-content: center; }
.notfind { max-width: 420px; }
@media (max-width: 860px) {
  .tiers { grid-template-columns: 1fr; }
  .compare-wrap { flex-direction: column; gap: 28px; }
}

/* Trust */
.trust { padding: 72px 0; }
.trust-in { display: grid; grid-template-columns: repeat(3, 1fr); gap: 24px; }
.trust-in div { background: var(--surface); border: 1px solid var(--line); border-radius: var(--radius); padding: 26px; }
.trust-in p { color: var(--caption); margin: 0; }
@media (max-width: 860px) { .trust-in { grid-template-columns: 1fr; } }

/* FAQ */
.faq { padding: 40px 0 72px; }
details { background: var(--surface); border: 1px solid var(--line); border-radius: 14px; margin: 12px 0; padding: 0 20px; }
summary { cursor: pointer; font-weight: 600; padding: 18px 0; list-style: none; position: relative; padding-right: 28px; }
summary::-webkit-details-marker { display: none; }
summary::after { content: "+"; position: absolute; right: 0; top: 14px; font-size: 1.4rem; color: var(--accent); font-weight: 400; }
details[open] summary::after { content: "−"; }
details p { color: var(--caption); }

/* Contact and closing */
.contact { padding: 64px 0; background: var(--surface); border-top: 1px solid var(--line); }
.closing { padding: 80px 0; background: var(--accent); color: #fff; }
.closing .lead { color: #D3ECEE; }
.closing .play { display: inline-block; margin-top: 12px; }

/* Footer */
.footer { padding: 32px 0 40px; }
.footer-in { display: flex; flex-wrap: wrap; gap: 16px 32px; align-items: center; }
.footer nav { display: flex; flex-wrap: wrap; gap: 20px; }
.footer nav a { color: var(--caption); text-decoration: none; }
.footer nav a:hover { color: var(--accent); }
.footer p { width: 100%; margin: 8px 0 0; }

/* Legal pages */
.legal { padding: 48px 0 72px; }
.legal h1 { font-size: 2.4rem; }
.legal h2 { font-size: 1.4rem; margin-top: 1.6em; }
.draft { background: var(--medal-soft); border: 1px solid #EAD9AE; border-radius: 12px; padding: 12px 16px; color: #7A5A12; font-size: .95rem; }
