/* ===== Reset & Base ===== */
*, *::before, *::after { box-sizing: border-box; margin: 0; padding: 0; }

:root {
  --bg:        #FAF8F5;
  --surface:   #FFFFFF;
  --primary:   #1C2B3A;
  --gold:      #B8975A;
  --text:      #1A1714;
  --text-2:    #5b5b62;
  --border:    #e7e3dc;
  --radius:    16px;
  --radius-sm: 10px;
}

html { font-size: 18px; scroll-behavior: smooth; }

body {
  font-family: -apple-system, "Inter", system-ui, sans-serif;
  background: var(--bg);
  color: var(--text);
  line-height: 1.65;
  -webkit-font-smoothing: antialiased;
}

/* ===== Layout ===== */
.container {
  max-width: 1080px;
  margin: 0 auto;
  padding: 0 24px;
}

/* ===== Header ===== */
header {
  background: var(--surface);
  border-bottom: 1px solid var(--border);
  position: sticky;
  top: 0;
  z-index: 100;
}

.header-inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 14px 24px;
  max-width: 1080px;
  margin: 0 auto;
}

.logo {
  display: flex;
  align-items: center;
  gap: 10px;
  text-decoration: none;
  color: var(--primary);
}

.logo img {
  width: 36px;
  height: 36px;
  border-radius: 9px;
}

.logo-name {
  font-size: 1rem;
  font-weight: 700;
  letter-spacing: -0.02em;
  color: var(--primary);
}

nav { display: flex; gap: 28px; align-items: center; }

nav a {
  text-decoration: none;
  color: var(--text-2);
  font-size: 0.85rem;
  font-weight: 500;
  transition: color 0.2s;
}

nav a:hover { color: var(--primary); }

/* Mobile nav toggle */
.nav-toggle {
  display: none;
  background: none;
  border: none;
  cursor: pointer;
  padding: 4px;
  color: var(--primary);
}

.mobile-nav {
  display: none;
  flex-direction: column;
  background: var(--surface);
  border-top: 1px solid var(--border);
  padding: 12px 24px 20px;
}

.mobile-nav a {
  text-decoration: none;
  color: var(--text);
  font-size: 1rem;
  font-weight: 500;
  padding: 10px 0;
  border-bottom: 1px solid var(--border);
}

.mobile-nav a:last-child { border-bottom: none; }

.mobile-nav.open { display: flex; }

/* ===== Hero ===== */
.hero {
  text-align: center;
  padding: 80px 24px 64px;
  max-width: 760px;
  margin: 0 auto;
}

.hero-icon {
  width: 100px;
  height: 100px;
  border-radius: 24px;
  margin: 0 auto 28px;
  display: block;
  box-shadow: 0 12px 40px rgba(28,43,58,0.18);
}

.hero h1 {
  font-size: clamp(2rem, 5vw, 3.2rem);
  font-weight: 800;
  line-height: 1.12;
  letter-spacing: -0.03em;
  color: var(--primary);
  margin-bottom: 20px;
}

.hero h1 span {
  color: var(--gold);
}

.hero p {
  font-size: clamp(1rem, 2.5vw, 1.15rem);
  color: var(--text-2);
  max-width: 540px;
  margin: 0 auto 40px;
  line-height: 1.7;
}

.app-store-badge {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  background: var(--primary);
  color: #fff;
  padding: 13px 28px;
  border-radius: 14px;
  font-size: 0.85rem;
  font-weight: 600;
  text-decoration: none;
  transition: opacity 0.2s;
  letter-spacing: 0.01em;
}

.app-store-badge:hover { opacity: 0.85; }

.app-store-badge.coming-soon {
  cursor: default;
  opacity: 0.72;
  background: var(--primary);
}

.app-store-badge.coming-soon:hover { opacity: 0.72; }

.app-store-badge svg { width: 22px; height: 22px; flex-shrink: 0; }

.app-store-badge .badge-lines { text-align: left; }
.app-store-badge .badge-sub { font-size: 0.65rem; opacity: 0.75; font-weight: 400; display: block; }
.app-store-badge .badge-main { font-size: 0.95rem; font-weight: 700; display: block; }

/* ===== Trust Strip ===== */
.trust-strip {
  background: var(--primary);
  color: #fff;
  padding: 22px 24px;
}

.trust-items {
  display: flex;
  justify-content: center;
  gap: 48px;
  flex-wrap: wrap;
  max-width: 1080px;
  margin: 0 auto;
}

.trust-item {
  display: flex;
  align-items: center;
  gap: 10px;
  font-size: 0.82rem;
  font-weight: 600;
  letter-spacing: 0.03em;
  text-transform: uppercase;
}

.trust-dot {
  width: 7px;
  height: 7px;
  border-radius: 50%;
  background: var(--gold);
  flex-shrink: 0;
}

/* ===== Section Labels ===== */
.pill-label {
  display: inline-block;
  background: var(--gold);
  color: #fff;
  font-size: 0.68rem;
  font-weight: 700;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  padding: 5px 14px;
  border-radius: 100px;
  margin-bottom: 14px;
}

/* ===== Feature Sections ===== */
.features-wrap {
  padding: 80px 24px 40px;
  max-width: 1080px;
  margin: 0 auto;
}

.features-header {
  text-align: center;
  margin-bottom: 64px;
}

.features-header h2 {
  font-size: clamp(1.7rem, 4vw, 2.4rem);
  font-weight: 800;
  color: var(--primary);
  letter-spacing: -0.03em;
  line-height: 1.15;
  margin-bottom: 12px;
}

.features-header p {
  color: var(--text-2);
  max-width: 500px;
  margin: 0 auto;
  font-size: 0.95rem;
}

.feature {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 64px;
  align-items: center;
  margin-bottom: 88px;
}

.feature:last-child { margin-bottom: 0; }

.feature.reverse .feature-visual { order: -1; }

.feature-text .pill-label { margin-bottom: 14px; }

.feature-text h3 {
  font-size: clamp(1.3rem, 3vw, 1.8rem);
  font-weight: 700;
  color: var(--primary);
  letter-spacing: -0.02em;
  line-height: 1.2;
  margin-bottom: 14px;
}

.feature-text p {
  color: var(--text-2);
  font-size: 0.93rem;
  line-height: 1.75;
}

.feature-visual {
  display: flex;
  justify-content: center;
  align-items: center;
}

/* Phone frame */
.phone-frame {
  width: 248px;
  border-radius: 44px;
  overflow: hidden;
  box-shadow:
    0 28px 72px rgba(28,43,58,0.16),
    0 0 0 1px rgba(28,43,58,0.07);
  background: #000;
  position: relative;
}

.phone-frame img {
  width: 100%;
  display: block;
}

/* Cropped phone frame — hides keyboard on Messages screenshot */
.phone-frame.crop {
  height: 420px;
  overflow: hidden;
}

.phone-frame.crop img {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
}

/* Document frame — for Clinical Report */
.doc-frame {
  background: var(--surface);
  border-radius: var(--radius);
  overflow: hidden;
  box-shadow:
    0 20px 60px rgba(28,43,58,0.12),
    0 0 0 1px var(--border);
  max-width: 420px;
  width: 100%;
}

.doc-frame img {
  width: 100%;
  display: block;
}

/* ===== Divider ===== */
.divider {
  height: 1px;
  background: var(--border);
  max-width: 1080px;
  margin: 0 auto 80px;
}

/* ===== CTA Banner ===== */
.cta-section {
  background: var(--primary);
  text-align: center;
  padding: 88px 24px;
  color: #fff;
  margin-top: 80px;
}

.cta-section h2 {
  font-size: clamp(1.7rem, 4vw, 2.4rem);
  font-weight: 800;
  letter-spacing: -0.03em;
  line-height: 1.15;
  margin-bottom: 14px;
}

.cta-section p {
  opacity: 0.7;
  margin-bottom: 40px;
  font-size: 1rem;
  max-width: 440px;
  margin-left: auto;
  margin-right: auto;
}

.btn-gold {
  display: inline-block;
  background: var(--gold);
  color: #fff;
  padding: 14px 36px;
  border-radius: 14px;
  font-weight: 700;
  font-size: 0.95rem;
  text-decoration: none;
  transition: opacity 0.2s;
  letter-spacing: 0.01em;
}

.btn-gold:hover { opacity: 0.85; }

/* ===== Footer ===== */
footer {
  background: var(--surface);
  border-top: 1px solid var(--border);
  padding: 48px 24px 32px;
}

.footer-inner {
  max-width: 1080px;
  margin: 0 auto;
  display: flex;
  flex-wrap: wrap;
  gap: 40px;
  justify-content: space-between;
  align-items: flex-start;
}

.footer-brand { max-width: 240px; }

.footer-brand .logo { margin-bottom: 10px; }

.footer-brand p {
  font-size: 0.8rem;
  color: var(--text-2);
  line-height: 1.6;
}

.footer-col h4 {
  font-size: 0.75rem;
  font-weight: 700;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: var(--text-2);
  margin-bottom: 14px;
}

.footer-col a {
  display: block;
  color: var(--text-2);
  text-decoration: none;
  font-size: 0.85rem;
  margin-bottom: 8px;
  transition: color 0.2s;
}

.footer-col a:hover { color: var(--primary); }

.footer-copy {
  max-width: 1080px;
  margin: 32px auto 0;
  padding-top: 24px;
  border-top: 1px solid var(--border);
  font-size: 0.78rem;
  color: var(--text-2);
  text-align: center;
}

/* ===== Legal Pages ===== */
.page-hero {
  background: var(--primary);
  color: #fff;
  padding: 64px 24px;
  text-align: center;
}

.page-hero h1 {
  font-size: clamp(1.8rem, 4vw, 2.8rem);
  font-weight: 800;
  letter-spacing: -0.03em;
  line-height: 1.1;
  margin-bottom: 10px;
}

.page-hero .sub {
  opacity: 0.6;
  font-size: 0.9rem;
}

.legal-body {
  max-width: 720px;
  margin: 0 auto;
  padding: 60px 24px 100px;
}

.legal-body h2 {
  font-size: 1.2rem;
  font-weight: 700;
  color: var(--primary);
  margin: 44px 0 12px;
  letter-spacing: -0.01em;
  padding-bottom: 8px;
  border-bottom: 2px solid var(--gold);
  display: inline-block;
}

.legal-body h3 {
  font-size: 0.95rem;
  font-weight: 700;
  color: var(--primary);
  margin: 24px 0 8px;
}

.legal-body p {
  color: var(--text);
  font-size: 0.88rem;
  line-height: 1.8;
  margin-bottom: 14px;
}

.legal-body ul, .legal-body ol {
  padding-left: 22px;
  margin-bottom: 14px;
}

.legal-body li {
  color: var(--text);
  font-size: 0.88rem;
  line-height: 1.8;
  margin-bottom: 4px;
}

.legal-body a { color: var(--gold); text-decoration: none; }
.legal-body a:hover { text-decoration: underline; }

.legal-notice {
  background: #FFFBF0;
  border: 1px solid #dfc47c;
  border-radius: var(--radius-sm);
  padding: 18px 22px;
  margin: 32px 0;
  font-size: 0.84rem;
  color: #6b4c00;
  line-height: 1.65;
}

.legal-notice strong { color: #5a3d00; }

/* ===== Support Page ===== */
.support-body {
  max-width: 720px;
  margin: 0 auto;
  padding: 60px 24px 100px;
}

.contact-card {
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  padding: 36px 28px;
  text-align: center;
  margin-bottom: 56px;
  box-shadow: 0 4px 24px rgba(28,43,58,0.05);
}

.contact-card h2 {
  font-size: 1.3rem;
  font-weight: 700;
  color: var(--primary);
  margin-bottom: 10px;
}

.contact-card p {
  color: var(--text-2);
  font-size: 0.9rem;
  margin-bottom: 24px;
  max-width: 380px;
  margin-left: auto;
  margin-right: auto;
}

.btn-primary {
  display: inline-block;
  background: var(--primary);
  color: #fff;
  padding: 13px 32px;
  border-radius: var(--radius-sm);
  font-weight: 600;
  font-size: 0.9rem;
  text-decoration: none;
  transition: opacity 0.2s;
}

.btn-primary:hover { opacity: 0.85; }

.faq-header {
  font-size: 1.3rem;
  font-weight: 700;
  color: var(--primary);
  margin-bottom: 28px;
}

.faq-item {
  border-top: 1px solid var(--border);
  padding: 22px 0;
}

.faq-item:last-child { border-bottom: 1px solid var(--border); }

.faq-item h3 {
  font-size: 0.95rem;
  font-weight: 700;
  color: var(--primary);
  margin-bottom: 8px;
  line-height: 1.4;
}

.faq-item p {
  font-size: 0.88rem;
  color: var(--text-2);
  line-height: 1.7;
}

/* ===== Responsive ===== */
@media (max-width: 800px) {
  nav { display: none; }
  .nav-toggle { display: block; }

  .feature {
    grid-template-columns: 1fr;
    gap: 36px;
    margin-bottom: 64px;
  }

  .feature.reverse .feature-visual { order: 0; }

  .phone-frame { width: 220px; }
  .phone-frame.crop { height: 370px; }

  .trust-items { gap: 24px; }

  .footer-inner { gap: 28px; }

  .cta-section { padding: 64px 24px; }
}

@media (max-width: 480px) {
  html { font-size: 16px; }
  .hero { padding: 56px 20px 48px; }
  .features-wrap { padding: 56px 20px 32px; }
  .phone-frame { width: 190px; }
  .phone-frame.crop { height: 320px; }
}
