/* ============================================================
   Docmee — Marketing site
   Brand: dark navy surfaces, teal/cyan accent (matches app)
   ============================================================ */

:root {
  --bg: #171b2e;
  --bg-soft: #1e2338;
  --bg-card: #232948;
  --bg-card-hover: #2a3154;
  --border: #323a63;
  --text: #eef1fb;
  --text-muted: #9aa3c7;
  --accent: #2ec9d6;
  --accent-strong: #19b3c2;
  --accent-soft: rgba(46, 201, 214, 0.12);
  --gradient: linear-gradient(135deg, #19b3c2 0%, #2ec9d6 55%, #43e0ec 100%);
  --radius: 14px;
  --radius-lg: 22px;
  --shadow: 0 18px 45px rgba(8, 11, 25, 0.45);
  --max-w: 1120px;
  --header-bg: rgba(23, 27, 46, 0.92);
  color-scheme: dark;
}

html[data-theme="light"] {
  --bg: #f4f6fc;
  --bg-soft: #ffffff;
  --bg-card: #ffffff;
  --bg-card-hover: #eef2fa;
  --border: #d9e0ef;
  --text: #1b2238;
  --text-muted: #56618a;
  --accent: #0e9aa9;
  --accent-strong: #0c8896;
  --accent-soft: rgba(14, 154, 169, 0.10);
  --shadow: 0 18px 45px rgba(27, 34, 56, 0.12);
  --header-bg: rgba(255, 255, 255, 0.92);
  color-scheme: light;
}

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

html { scroll-behavior: smooth; }

body {
  font-family: "Segoe UI", system-ui, -apple-system, "Helvetica Neue", Arial, sans-serif;
  background: var(--bg);
  color: var(--text);
  line-height: 1.6;
  -webkit-font-smoothing: antialiased;
}

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

a { color: var(--accent); text-decoration: none; }
a:hover { text-decoration: underline; }

.container {
  max-width: var(--max-w);
  margin: 0 auto;
  padding: 0 24px;
}

/* ---------- Logo wordmark ---------- */
.logo {
  font-size: 1.6rem;
  font-weight: 800;
  letter-spacing: -0.5px;
  color: #8d94ab;
  text-decoration: none;
  white-space: nowrap;
}
.logo b { color: var(--accent); font-weight: 800; }
.logo sup { font-size: 0.5em; color: var(--accent); }
.logo:hover { text-decoration: none; }

/* ---------- Header / nav ---------- */
.site-header {
  position: sticky;
  top: 0;
  z-index: 50;
  background: var(--header-bg);
  backdrop-filter: blur(10px);
  border-bottom: 1px solid var(--border);
}
.nav {
  display: flex;
  align-items: center;
  gap: 28px;
  padding: 16px 0;
}
.nav-links {
  display: flex;
  gap: 24px;
  list-style: none;
  margin-left: auto;
}
.nav-links a {
  color: var(--text-muted);
  font-size: 0.95rem;
  font-weight: 500;
}
.nav-links a:hover { color: var(--text); text-decoration: none; }

.theme-toggle {
  background: transparent;
  border: 1px solid var(--border);
  border-radius: 8px;
  color: var(--text-muted);
  font-size: 0.95rem;
  line-height: 1;
  padding: 6px 10px;
  cursor: pointer;
}
.theme-toggle:hover { border-color: var(--accent); color: var(--accent); }

.lang-toggle {
  display: flex;
  border: 1px solid var(--border);
  border-radius: 8px;
  overflow: hidden;
}
.lang-toggle button {
  background: transparent;
  border: 0;
  color: var(--text-muted);
  font-size: 0.75rem;
  font-weight: 700;
  padding: 6px 10px;
  cursor: pointer;
  letter-spacing: 0.5px;
}
.lang-toggle button.active {
  background: var(--accent);
  color: #0d1120;
}

.btn {
  display: inline-block;
  padding: 12px 26px;
  border-radius: 10px;
  font-weight: 700;
  font-size: 0.98rem;
  cursor: pointer;
  border: 0;
  text-align: center;
  transition: transform 0.15s ease, box-shadow 0.15s ease, background 0.15s ease;
}
.btn:hover { text-decoration: none; transform: translateY(-1px); }
.btn-primary {
  background: var(--gradient);
  color: #0d1120;
  box-shadow: 0 8px 24px rgba(46, 201, 214, 0.28);
}
.btn-ghost {
  background: transparent;
  color: var(--text);
  border: 1px solid var(--border);
}
.btn-ghost:hover { border-color: var(--accent); color: var(--accent); }
.btn-sm { padding: 9px 18px; font-size: 0.9rem; }

.nav .btn { margin-left: 4px; }

/* Simple always-visible nav for legal pages (no burger) */
.nav-links.always { display: flex; }

.nav-burger {
  display: none;
  margin-left: auto;
  background: none;
  border: 1px solid var(--border);
  border-radius: 8px;
  color: var(--text);
  font-size: 1.2rem;
  padding: 6px 12px;
  cursor: pointer;
}

/* ---------- Hero ---------- */
.hero {
  position: relative;
  overflow: hidden;
  padding: 90px 0 70px;
  background:
    radial-gradient(900px 420px at 85% -10%, rgba(46, 201, 214, 0.16), transparent 60%),
    radial-gradient(700px 380px at -10% 30%, rgba(67, 224, 236, 0.08), transparent 60%);
}
.hero-grid {
  display: grid;
  grid-template-columns: 1.05fr 0.95fr;
  gap: 56px;
  align-items: center;
}
.eyebrow {
  display: inline-block;
  background: var(--accent-soft);
  color: var(--accent);
  font-size: 0.78rem;
  font-weight: 700;
  letter-spacing: 1.4px;
  text-transform: uppercase;
  padding: 6px 14px;
  border-radius: 999px;
  margin-bottom: 18px;
}
.hero h1 {
  font-size: clamp(2.2rem, 4.6vw, 3.4rem);
  line-height: 1.12;
  letter-spacing: -1px;
  margin-bottom: 20px;
}
.hero h1 .accent { color: var(--accent); }
.hero .lead {
  color: var(--text-muted);
  font-size: 1.13rem;
  max-width: 34rem;
  margin-bottom: 30px;
}
.hero-ctas { display: flex; gap: 14px; flex-wrap: wrap; }
.hero-note {
  margin-top: 16px;
  font-size: 0.85rem;
  color: var(--text-muted);
}

.hero-visual { position: relative; max-width: 400px; margin: 0 auto; }

/* ---------- Chat mockup ---------- */
.phone {
  background: var(--bg-soft);
  border: 1px solid var(--border);
  border-radius: 26px;
  padding: 18px;
  box-shadow: var(--shadow);
  max-width: 400px;
  margin: 0 auto;
}
.phone-header {
  display: flex;
  align-items: center;
  gap: 12px;
  padding-bottom: 14px;
  border-bottom: 1px solid var(--border);
  margin-bottom: 14px;
}
.phone-avatar {
  width: 40px;
  height: 40px;
  border-radius: 50%;
  background: var(--gradient);
  display: grid;
  place-items: center;
  font-weight: 800;
  color: #0d1120;
  flex-shrink: 0;
}
.phone-header .who { font-weight: 700; font-size: 0.95rem; }
.phone-header .status {
  font-size: 0.75rem;
  color: var(--accent);
}
.phone-header .status::before {
  content: "●";
  margin-right: 5px;
  font-size: 0.6rem;
}
.chat { display: flex; flex-direction: column; gap: 10px; }
.bubble {
  max-width: 82%;
  padding: 10px 14px;
  border-radius: 14px;
  font-size: 0.9rem;
  line-height: 1.45;
}
.bubble.patient {
  align-self: flex-end;
  background: var(--accent-strong);
  color: #08131a;
  border-bottom-right-radius: 4px;
}
.bubble.bot {
  align-self: flex-start;
  background: var(--bg-card);
  border: 1px solid var(--border);
  border-bottom-left-radius: 4px;
}
.bubble .tick { color: rgba(8, 19, 26, 0.6); font-size: 0.72rem; }
.chat-badge {
  align-self: center;
  font-size: 0.72rem;
  color: var(--text-muted);
  background: var(--bg-card);
  border: 1px solid var(--border);
  border-radius: 999px;
  padding: 3px 12px;
  margin-top: 4px;
}

/* ---------- Sections ---------- */
section { padding: 76px 0; }
.section-head { max-width: 640px; margin-bottom: 48px; }
.section-head h2 {
  font-size: clamp(1.7rem, 3vw, 2.3rem);
  letter-spacing: -0.6px;
  margin-bottom: 14px;
}
.section-head p { color: var(--text-muted); font-size: 1.05rem; }
.section-alt { background: var(--bg-soft); border-top: 1px solid var(--border); border-bottom: 1px solid var(--border); }

/* ---------- Channel strip ---------- */
.channel-strip {
  padding: 34px 0;
  border-top: 1px solid var(--border);
}
.channel-strip .container {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 20px 44px;
  flex-wrap: wrap;
}
.channel-strip .label {
  font-size: 0.8rem;
  letter-spacing: 1.2px;
  text-transform: uppercase;
  color: var(--text-muted);
}
.chip {
  display: inline-flex;
  align-items: center;
  gap: 9px;
  color: var(--text);
  font-weight: 600;
  font-size: 0.95rem;
}
.chip .dot {
  width: 9px;
  height: 9px;
  border-radius: 50%;
  background: var(--accent);
}
.chip .dot.green { background: #35d07f; }
.chip .dot.blue { background: #4f8dff; }
.chip .dot.pink { background: #ff5f9e; }
.chip .dot.yellow { background: #f4c542; }

/* ---------- Feature grid ---------- */
.grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 22px;
}
.card {
  background: var(--bg-card);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  padding: 28px 26px;
  transition: transform 0.18s ease, border-color 0.18s ease;
}
.card:hover { transform: translateY(-4px); border-color: var(--accent); }
.card .icon {
  width: 46px;
  height: 46px;
  border-radius: 12px;
  background: var(--accent-soft);
  display: grid;
  place-items: center;
  margin-bottom: 18px;
  font-size: 1.3rem;
}
.card h3 { font-size: 1.08rem; margin-bottom: 10px; }
.card p { color: var(--text-muted); font-size: 0.93rem; }

/* ---------- Steps ---------- */
.steps {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 22px;
  counter-reset: step;
}
.step {
  position: relative;
  background: var(--bg-card);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  padding: 30px 26px 26px;
}
.step .num {
  display: inline-grid;
  place-items: center;
  width: 38px;
  height: 38px;
  border-radius: 50%;
  background: var(--gradient);
  color: #0d1120;
  font-weight: 800;
  margin-bottom: 16px;
}
.step h3 { font-size: 1.05rem; margin-bottom: 8px; }
.step p { color: var(--text-muted); font-size: 0.93rem; }

/* ---------- Compliance / trust ---------- */
.trust-grid {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 22px;
}
.trust-item {
  display: flex;
  gap: 16px;
  background: var(--bg-card);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  padding: 22px 24px;
}
.trust-item .mark {
  flex-shrink: 0;
  width: 34px;
  height: 34px;
  border-radius: 50%;
  background: var(--accent-soft);
  color: var(--accent);
  display: grid;
  place-items: center;
  font-weight: 800;
}
.trust-item h3 { font-size: 1rem; margin-bottom: 6px; }
.trust-item p { color: var(--text-muted); font-size: 0.9rem; }

/* ---------- FAQ ---------- */
.faq { max-width: 780px; }
.faq details {
  background: var(--bg-card);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  padding: 20px 24px;
  margin-bottom: 12px;
}
.faq summary {
  cursor: pointer;
  font-weight: 700;
  font-size: 1rem;
  list-style: none;
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 16px;
}
.faq summary::-webkit-details-marker { display: none; }
.faq summary::after {
  content: "+";
  color: var(--accent);
  font-size: 1.4rem;
  font-weight: 400;
  line-height: 1;
}
.faq details[open] summary::after { content: "–"; }
.faq details p {
  margin-top: 12px;
  color: var(--text-muted);
  font-size: 0.94rem;
}

/* ---------- CTA band ---------- */
.cta-band {
  background:
    radial-gradient(700px 300px at 50% -40%, rgba(46, 201, 214, 0.25), transparent 65%),
    var(--bg-soft);
  border-top: 1px solid var(--border);
  border-bottom: 1px solid var(--border);
  text-align: center;
}
.cta-band h2 {
  font-size: clamp(1.7rem, 3vw, 2.3rem);
  margin-bottom: 14px;
  letter-spacing: -0.6px;
}
.cta-band p {
  color: var(--text-muted);
  max-width: 34rem;
  margin: 0 auto 28px;
}
.cta-band .hero-ctas { justify-content: center; }

/* ---------- Contact ---------- */
.contact-card {
  background: var(--bg-card);
  border: 1px solid var(--border);
  border-radius: var(--radius-lg);
  padding: 40px;
  display: grid;
  grid-template-columns: 1.2fr 1fr;
  gap: 40px;
  align-items: center;
}
.contact-card h2 { font-size: 1.7rem; margin-bottom: 12px; letter-spacing: -0.5px; }
.contact-card p { color: var(--text-muted); }
.contact-list { list-style: none; margin-top: 18px; }
.contact-list li {
  display: flex;
  gap: 12px;
  align-items: baseline;
  margin-bottom: 10px;
  color: var(--text-muted);
  font-size: 0.95rem;
  flex-wrap: wrap;
}
.contact-list a { overflow-wrap: anywhere; }
.contact-card > div { min-width: 0; }
.contact-list .k { color: var(--accent); font-weight: 700; min-width: 90px; }

/* ---------- Footer ---------- */
.site-footer {
  border-top: 1px solid var(--border);
  padding: 48px 0 36px;
  background: var(--bg-soft);
}
.footer-grid {
  display: grid;
  grid-template-columns: 1.4fr 1fr 1fr;
  gap: 36px;
  margin-bottom: 34px;
}
.footer-grid h4 {
  font-size: 0.8rem;
  text-transform: uppercase;
  letter-spacing: 1.2px;
  color: var(--text-muted);
  margin-bottom: 14px;
}
.footer-grid ul { list-style: none; }
.footer-grid li { margin-bottom: 9px; }
.footer-grid a { color: var(--text); font-size: 0.92rem; }
.footer-grid a:hover { color: var(--accent); }
.footer-about p {
  color: var(--text-muted);
  font-size: 0.9rem;
  margin-top: 12px;
  max-width: 26rem;
}
.footer-legal {
  border-top: 1px solid var(--border);
  padding-top: 22px;
  color: var(--text-muted);
  font-size: 0.8rem;
}
.footer-legal p { margin-bottom: 8px; }

/* ---------- Legal pages ---------- */
.legal-page { padding: 70px 0 90px; max-width: 820px; }
.legal-page h1 { font-size: 2.1rem; letter-spacing: -0.6px; margin-bottom: 8px; }
.legal-page .updated { color: var(--text-muted); font-size: 0.9rem; margin-bottom: 36px; }
.legal-page h2 { font-size: 1.25rem; margin: 34px 0 12px; }
.legal-page h3 { font-size: 1.05rem; margin: 24px 0 10px; }
.legal-page p, .legal-page li { color: var(--text-muted); font-size: 0.97rem; margin-bottom: 12px; }
.legal-page ul, .legal-page ol { padding-left: 24px; margin-bottom: 16px; }
.legal-page li { margin-bottom: 8px; }
.legal-page strong { color: var(--text); }
.notice {
  background: var(--accent-soft);
  border: 1px solid rgba(46, 201, 214, 0.35);
  border-radius: var(--radius);
  padding: 18px 22px;
  margin: 24px 0;
}
.notice p { margin: 0; color: var(--text); font-size: 0.94rem; }

/* ---------- Responsive ---------- */
@media (max-width: 960px) {
  .hero-grid { grid-template-columns: 1fr; gap: 44px; }
  .grid { grid-template-columns: repeat(2, 1fr); }
  .steps { grid-template-columns: 1fr; }
  .trust-grid { grid-template-columns: 1fr; }
  .contact-card { grid-template-columns: 1fr; }
  .footer-grid { grid-template-columns: 1fr 1fr; }
}

@media (max-width: 720px) {
  .nav-links {
    display: none;
    position: absolute;
    top: 100%;
    left: 0;
    right: 0;
    flex-direction: column;
    background: var(--bg-soft);
    border-bottom: 1px solid var(--border);
    padding: 18px 24px;
    gap: 16px;
  }
  .nav-links.open { display: flex; }
  .nav-links.always {
    display: flex;
    position: static;
    flex-direction: row;
    flex-wrap: wrap;
    background: none;
    border: 0;
    padding: 0;
    gap: 16px;
  }
  .nav-burger { display: block; }
  .nav .btn { display: none; }
  .grid { grid-template-columns: 1fr; }
  .footer-grid { grid-template-columns: 1fr; }
  section { padding: 56px 0; }
  .hero { padding: 60px 0 50px; }
}
