/* Curedoctor — site styles */
:root {
  /* Sampled from the Curedoctor logo */
  --navy: #013771;
  --navy-deep: #00183c;
  --blue: #004185;
  --teal: #02b39c;
  --teal-dark: #01847f;
  --green: #3fc04f;
  --ink: #0a2244;
  --muted: #5a6b84;
  --line: #e2eaf3;
  --bg: #ffffff;
  --bg-soft: #f1f9f8;
  --radius: 18px;
  --shadow: 0 10px 30px rgba(1, 55, 113, 0.08);
  --shadow-lg: 0 24px 60px rgba(1, 55, 113, 0.16);
  --grad: linear-gradient(135deg, var(--teal) 0%, var(--blue) 100%);
}

*,
*::before,
*::after { box-sizing: border-box; }

html { scroll-behavior: smooth; -webkit-text-size-adjust: 100%; }

body {
  margin: 0;
  font-family: "Plus Jakarta Sans", "Segoe UI", system-ui, -apple-system, Roboto, Arial, sans-serif;
  color: var(--ink);
  background: var(--bg);
  line-height: 1.65;
  font-size: 16px;
  overflow-x: hidden;
}

img { max-width: 100%; height: auto; display: block; }
a { color: var(--blue); text-decoration: none; }
a:hover { color: var(--teal-dark); }
h1, h2, h3, h4 { line-height: 1.2; margin: 0 0 .5em; color: var(--navy-deep); letter-spacing: -0.02em; }
h1 { font-size: clamp(2rem, 5.2vw, 3.4rem); font-weight: 800; }
h2 { font-size: clamp(1.6rem, 3.6vw, 2.4rem); font-weight: 800; }
h3 { font-size: 1.15rem; font-weight: 700; }
p { margin: 0 0 1em; }

.container { width: 100%; max-width: 1160px; margin: 0 auto; padding: 0 20px; }
.section { padding: 80px 0; }
.section--soft { background: var(--bg-soft); }
.section-head { max-width: 680px; margin: 0 auto 48px; text-align: center; }
.section-head p { color: var(--muted); font-size: 1.05rem; margin: 0; }
.eyebrow {
  display: inline-block;
  font-size: .78rem;
  font-weight: 700;
  letter-spacing: .12em;
  text-transform: uppercase;
  color: var(--teal-dark);
  background: rgba(2, 179, 156, .12);
  padding: 6px 14px;
  border-radius: 999px;
  margin-bottom: 16px;
}
.grad-text {
  background: var(--grad);
  -webkit-background-clip: text;
  background-clip: text;
  color: transparent;
}

.skip-link {
  position: absolute; left: -999px; top: 0;
  background: var(--navy); color: #fff; padding: 10px 16px; z-index: 200; border-radius: 0 0 8px 0;
}
.skip-link:focus { left: 0; color: #fff; }

:focus-visible { outline: 3px solid var(--teal); outline-offset: 3px; border-radius: 6px; }

/* Buttons */
.btn {
  display: inline-flex; align-items: center; justify-content: center; gap: 10px;
  font: inherit; font-weight: 700; font-size: .98rem;
  padding: 14px 24px; border-radius: 999px; border: 2px solid transparent;
  cursor: pointer; transition: transform .15s ease, box-shadow .15s ease, background .15s ease;
  text-align: center;
}
.btn:hover { transform: translateY(-2px); }
.btn--primary { background: var(--grad); color: #fff; box-shadow: 0 10px 24px rgba(0, 65, 133, .28); }
.btn--primary:hover { color: #fff; box-shadow: 0 14px 30px rgba(0, 65, 133, .36); }
.btn--ghost { background: #fff; color: var(--navy); border-color: var(--line); }
.btn--ghost:hover { border-color: var(--teal); color: var(--navy); }
.btn--light { background: #fff; color: var(--navy); }
.btn--light:hover { color: var(--navy); }
.btn--sm { padding: 10px 18px; font-size: .9rem; }
.btn svg { width: 20px; height: 20px; flex: none; }

/* Header */
.site-header {
  position: sticky; top: 0; z-index: 100;
  background: rgba(255, 255, 255, .92);
  backdrop-filter: blur(12px);
  -webkit-backdrop-filter: blur(12px);
  border-bottom: 1px solid var(--line);
}
.nav { display: flex; align-items: center; justify-content: space-between; height: 72px; gap: 16px; }
.brand { display: inline-flex; align-items: center; flex: none; }
.brand img { height: 56px; width: auto; }
.nav-links { display: flex; align-items: center; gap: 28px; list-style: none; margin: 0; padding: 0; }
.nav-links a { color: var(--ink); font-weight: 600; font-size: .95rem; }
.nav-links a:hover { color: var(--teal-dark); }
.nav-links a.btn--primary, .nav-links a.btn--primary:hover { color: #fff; }
.nav-toggle {
  display: none; width: 44px; height: 44px; border: 1px solid var(--line); background: #fff;
  border-radius: 12px; cursor: pointer; padding: 0; align-items: center; justify-content: center;
}
.nav-toggle span, .nav-toggle span::before, .nav-toggle span::after {
  display: block; width: 20px; height: 2px; background: var(--navy); border-radius: 2px;
  position: relative; transition: transform .2s ease, background .2s ease;
}
.nav-toggle span::before, .nav-toggle span::after { content: ""; position: absolute; left: 0; }
.nav-toggle span::before { top: -6px; }
.nav-toggle span::after { top: 6px; }
.nav-toggle[aria-expanded="true"] span { background: transparent; }
.nav-toggle[aria-expanded="true"] span::before { transform: translateY(6px) rotate(45deg); }
.nav-toggle[aria-expanded="true"] span::after { transform: translateY(-6px) rotate(-45deg); }

/* Hero */
.hero {
  position: relative; overflow: hidden;
  background:
    radial-gradient(700px 400px at 90% 0%, rgba(2, 179, 156, .16), transparent 70%),
    radial-gradient(600px 400px at 0% 100%, rgba(0, 65, 133, .10), transparent 70%),
    var(--bg-soft);
  padding: 64px 0 80px;
}
.hero-grid { display: grid; grid-template-columns: 1.1fr .9fr; gap: 48px; align-items: center; }
.hero p.lead { font-size: 1.12rem; color: var(--muted); max-width: 540px; }
.hero-actions { display: flex; flex-wrap: wrap; gap: 14px; margin: 28px 0 28px; }
.hero-points { list-style: none; padding: 0; margin: 0; display: flex; flex-wrap: wrap; gap: 10px 22px; }
.hero-points li { display: flex; align-items: center; gap: 8px; font-weight: 600; font-size: .93rem; color: var(--ink); }
.hero-points svg { width: 18px; height: 18px; color: var(--teal-dark); flex: none; }

/* Phone mockup */
.phone-wrap { position: relative; display: flex; justify-content: center; }
.phone-wrap::before {
  content: ""; position: absolute; inset: 8% 6%; border-radius: 50%;
  background: var(--grad); opacity: .16; filter: blur(40px);
}
.phone {
  position: relative; width: 290px; max-width: 78vw; aspect-ratio: 9 / 18.5;
  background: var(--navy-deep); border-radius: 40px; padding: 10px;
  box-shadow: var(--shadow-lg);
}
.phone::before {
  content: ""; position: absolute; top: 18px; left: 50%; transform: translateX(-50%);
  width: 70px; height: 8px; border-radius: 8px; background: var(--navy-deep); z-index: 2;
}
.screen {
  height: 100%; background: #f6fafc; border-radius: 31px; overflow: hidden;
  display: flex; flex-direction: column; font-size: 11px; line-height: 1.4;
}
.screen-top { background: var(--grad); color: #fff; padding: 34px 16px 18px; }
.screen-top small { opacity: .85; display: block; }
.screen-top strong { font-size: 15px; display: block; margin-bottom: 12px; }
.screen-search { background: rgba(255, 255, 255, .95); color: var(--muted); border-radius: 12px; padding: 9px 12px; }
.screen-search .dot { display: inline-block; width: 8px; height: 8px; border-radius: 50%; background: var(--green); margin-right: 7px; }
.screen-body { padding: 14px; display: grid; gap: 12px; }
.tiles { display: grid; grid-template-columns: 1fr 1fr; gap: 10px; }
.tile { background: #fff; border-radius: 14px; padding: 12px 10px; box-shadow: 0 4px 12px rgba(1, 55, 113, .06); font-weight: 700; color: var(--navy); }
.tile i {
  display: grid; place-items: center; width: 30px; height: 30px; border-radius: 10px; margin-bottom: 8px;
  background: rgba(2, 179, 156, .14); color: var(--teal-dark);
}
.tile i svg { width: 16px; height: 16px; }
.tile small { display: block; font-weight: 600; font-size: 9px; color: var(--muted); }
.appt { background: #fff; border-radius: 14px; padding: 12px; box-shadow: 0 4px 12px rgba(1, 55, 113, .06); display: flex; gap: 10px; align-items: center; }
.appt .avatar { width: 36px; height: 36px; border-radius: 50%; background: var(--grad); flex: none; display: grid; place-items: center; color: #fff; }
.appt .avatar svg { width: 18px; height: 18px; }
.appt b { display: block; color: var(--navy); }
.appt span { color: var(--muted); }
.appt em { margin-left: auto; font-style: normal; font-weight: 700; color: #fff; background: var(--green); border-radius: 999px; padding: 4px 9px; font-size: 10px; }
.screen-label { font-weight: 700; color: var(--navy); font-size: 12px; }

/* Cards */
.grid { display: grid; gap: 24px; }
.grid--4 { grid-template-columns: repeat(4, 1fr); }
.grid--3 { grid-template-columns: repeat(3, 1fr); }
.grid--2 { grid-template-columns: repeat(2, 1fr); }
.card {
  background: #fff; border: 1px solid var(--line); border-radius: var(--radius);
  padding: 28px 24px; box-shadow: var(--shadow);
  transition: transform .2s ease, box-shadow .2s ease, border-color .2s ease;
}
.card:hover { transform: translateY(-4px); box-shadow: var(--shadow-lg); border-color: rgba(2, 179, 156, .45); }
.card p { color: var(--muted); margin: 0; font-size: .96rem; }
.card ul { margin: 14px 0 0; padding: 0; list-style: none; display: grid; gap: 6px; }
.card ul li { position: relative; padding-left: 22px; color: var(--ink); font-size: .92rem; }
.card ul li::before {
  content: ""; position: absolute; left: 0; top: .55em; width: 10px; height: 6px;
  border-left: 2px solid var(--teal-dark); border-bottom: 2px solid var(--teal-dark); transform: rotate(-45deg);
}
.icon {
  width: 56px; height: 56px; border-radius: 16px; display: grid; place-items: center;
  background: var(--grad); color: #fff; margin-bottom: 18px;
}
.icon svg { width: 28px; height: 28px; }
.icon--soft { background: rgba(2, 179, 156, .14); color: var(--teal-dark); }

/* eClinic */
.section--dark {
  background:
    radial-gradient(600px 360px at 100% 0%, rgba(2, 179, 156, .28), transparent 70%),
    linear-gradient(135deg, var(--navy-deep) 0%, var(--navy) 100%);
  color: #d5e2f2;
}
.section--dark .section-head h2 { color: #fff; }
.section--dark .section-head p { color: #c5d6ea; }
.section--dark .eyebrow { background: rgba(255, 255, 255, .12); color: #7fe6d6; }
.card .tag {
  display: inline-block; font-size: .74rem; font-weight: 700; letter-spacing: .1em; text-transform: uppercase;
  color: var(--teal-dark); margin-bottom: 8px;
}
.card .tag--soon { color: var(--blue); background: rgba(0, 65, 133, .1); padding: 4px 10px; border-radius: 999px; }
.card .btn { margin-top: 20px; }
.flow {
  list-style: none; margin: 40px 0 0; padding: 0; counter-reset: flow;
  display: grid; grid-template-columns: repeat(4, 1fr); gap: 18px;
}
.flow li {
  counter-increment: flow; position: relative;
  background: rgba(255, 255, 255, .07); border: 1px solid rgba(255, 255, 255, .16);
  border-radius: 16px; padding: 18px 18px 18px 60px; color: #fff; font-weight: 600; font-size: .95rem;
}
.flow li::before {
  content: counter(flow); position: absolute; left: 16px; top: 16px;
  width: 30px; height: 30px; border-radius: 50%; display: grid; place-items: center;
  background: var(--teal); color: #fff; font-weight: 800; font-size: .9rem;
}

/* Steps */
.steps { counter-reset: step; }
.step { position: relative; padding-top: 34px; }
.step::before {
  counter-increment: step; content: "0" counter(step);
  position: absolute; top: -18px; left: 24px;
  background: var(--navy); color: #fff; font-weight: 800; font-size: .9rem;
  width: 44px; height: 44px; border-radius: 14px; display: grid; place-items: center;
  box-shadow: 0 8px 18px rgba(1, 55, 113, .25);
}

/* Specialties */
.chips { display: flex; flex-wrap: wrap; justify-content: center; gap: 12px; list-style: none; padding: 0; margin: 0; }
.chips li {
  background: #fff; border: 1px solid var(--line); border-radius: 999px;
  padding: 10px 20px; font-weight: 600; font-size: .95rem; color: var(--navy);
}

/* Notice */
.notice {
  display: flex; gap: 16px; align-items: flex-start;
  background: #fff7ed; border: 1px solid #fed7aa; border-radius: var(--radius);
  padding: 20px 22px; color: #7c2d12;
}
.notice svg { width: 26px; height: 26px; flex: none; margin-top: 2px; }
.notice p { margin: 0; font-size: .96rem; }

/* FAQ */
.faq { max-width: 800px; margin: 0 auto; display: grid; gap: 12px; }
.faq details { background: #fff; border: 1px solid var(--line); border-radius: 14px; padding: 0 22px; }
.faq summary {
  cursor: pointer; list-style: none; font-weight: 700; color: var(--navy-deep);
  padding: 18px 30px 18px 0; position: relative;
}
.faq summary::-webkit-details-marker { display: none; }
.faq summary::after {
  content: "+"; position: absolute; right: 0; top: 50%; transform: translateY(-50%);
  font-size: 1.5rem; font-weight: 500; color: var(--teal-dark); line-height: 1;
}
.faq details[open] summary::after { content: "–"; }
.faq details p { color: var(--muted); margin: 0 0 18px; }

/* CTA */
.cta {
  background: var(--grad); color: #fff; border-radius: 28px; padding: 56px 40px; text-align: center;
  position: relative; overflow: hidden;
}
.cta::after {
  content: ""; position: absolute; width: 380px; height: 380px; border-radius: 50%;
  background: rgba(255, 255, 255, .08); right: -120px; top: -160px;
}
.cta h2 { color: #fff; }
.cta p { max-width: 560px; margin: 0 auto 26px; opacity: .92; position: relative; z-index: 1; }
.cta .btn { position: relative; z-index: 1; }

/* Contact */
.contact-card { text-align: center; }
.contact-card .icon { margin-left: auto; margin-right: auto; }
.contact-card a { font-weight: 700; word-break: break-word; }

/* Footer */
.site-footer { background: var(--navy-deep); color: #c5d3e8; padding: 60px 0 0; font-size: .95rem; }
.footer-grid { display: grid; grid-template-columns: 1.6fr 1fr 1fr 1fr; gap: 36px; }
.footer-brand { display: inline-flex; align-items: center; gap: 12px; color: #fff; font-weight: 800; font-size: 1.3rem; margin-bottom: 14px; }
.footer-brand img { width: 46px; height: 46px; background: #fff; border-radius: 12px; padding: 4px; }
.site-footer h4 { color: #fff; font-size: .95rem; text-transform: uppercase; letter-spacing: .08em; margin-bottom: 16px; }
.site-footer ul { list-style: none; margin: 0; padding: 0; display: grid; gap: 10px; }
.site-footer a { color: #c5d3e8; }
.site-footer a:hover { color: #fff; }
.footer-bottom {
  border-top: 1px solid rgba(255, 255, 255, .12); margin-top: 44px; padding: 22px 0;
  display: flex; flex-wrap: wrap; gap: 10px; justify-content: space-between; font-size: .88rem;
}

/* Legal pages */
.page-hero { background: var(--bg-soft); border-bottom: 1px solid var(--line); padding: 56px 0 44px; }
.page-hero h1 { font-size: clamp(1.8rem, 4.4vw, 2.7rem); margin-bottom: 8px; }
.page-hero p { color: var(--muted); margin: 0; }
.legal { max-width: 820px; margin: 0 auto; padding: 48px 20px 80px; }
.legal h2 { font-size: 1.35rem; margin-top: 2.2em; scroll-margin-top: 90px; }
.legal h3 { font-size: 1.05rem; margin-top: 1.6em; }
.legal p, .legal li { color: #34455f; }
.legal ul, .legal ol { padding-left: 22px; margin: 0 0 1em; }
.legal li { margin-bottom: 6px; }
.legal .toc { background: var(--bg-soft); border: 1px solid var(--line); border-radius: var(--radius); padding: 22px 26px; }
.legal .toc strong { display: block; margin-bottom: 8px; color: var(--navy-deep); }
.legal .toc ol { margin: 0; columns: 2; column-gap: 32px; }
.legal .notice { margin: 24px 0; }
.legal table { width: 100%; border-collapse: collapse; margin: 0 0 1em; font-size: .94rem; }
.legal th, .legal td { text-align: left; vertical-align: top; padding: 12px 14px; border: 1px solid var(--line); color: #34455f; }
.legal th { background: var(--bg-soft); color: var(--navy-deep); }
.table-scroll { overflow-x: auto; }

/* Reveal on scroll */
.reveal { opacity: 0; transform: translateY(18px); transition: opacity .6s ease, transform .6s ease; }
.reveal.is-visible { opacity: 1; transform: none; }

/* Responsive */
@media (max-width: 1000px) {
  .grid--4 { grid-template-columns: repeat(2, 1fr); }
  .grid--3 { grid-template-columns: repeat(2, 1fr); }
  .flow { grid-template-columns: repeat(2, 1fr); }
  .nav-links { gap: 20px; }
  .footer-grid { grid-template-columns: 1fr 1fr; }
}

@media (max-width: 860px) {
  .nav-toggle { display: inline-flex; }
  .nav-menu {
    position: absolute; top: 72px; left: 0; right: 0;
    background: #fff; border-bottom: 1px solid var(--line); box-shadow: var(--shadow);
    padding: 12px 20px 22px; display: none;
  }
  .nav-menu.is-open { display: block; }
  .nav-links { flex-direction: column; align-items: stretch; gap: 0; }
  .nav-links a { display: block; padding: 14px 4px; border-bottom: 1px solid var(--line); }
  .nav-links .btn { margin-top: 16px; border-bottom: 0; padding: 14px 24px; }
  .hero { padding: 44px 0 64px; }
  .hero-grid { grid-template-columns: 1fr; gap: 44px; text-align: center; }
  .hero p.lead { margin-left: auto; margin-right: auto; }
  .hero-actions, .hero-points { justify-content: center; }
  .screen { text-align: left; }
  .section { padding: 60px 0; }
  .step { margin-top: 12px; }
}

@media (max-width: 640px) {
  .grid--4, .grid--3, .grid--2, .flow { grid-template-columns: 1fr; }
  .steps { gap: 40px; }
  .footer-grid { grid-template-columns: 1fr; gap: 28px; }
  .cta { padding: 44px 22px; border-radius: 22px; }
  .hero-actions .btn { width: 100%; }
  .brand img { height: 48px; }
  .legal .toc ol { columns: 1; }
  .footer-bottom { flex-direction: column; }
}

@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  .reveal { opacity: 1; transform: none; transition: none; }
  .btn, .card { transition: none; }
}
