/* =====================================================================
   Resyn Clinic — landing styles
   Brand: Vescent Blue #002F5C · Navy #1A3A5C · Oxford Gray #393D42
          Sage Mist #7D9B8C · Pearl White #F5F6F4 · Bronze Gold #B48E55
   ===================================================================== */

:root {
  --vescent: #002f5c;
  --navy: #1a3a5c;
  --oxford: #393d42;
  --sage: #7d9b8c;
  --pearl: #f5f6f4;
  --bronze: #b48e55;
  --white: #ffffff;
  --sage-soft: #e6ede9;
  --bronze-soft: #f3e9dc;
  --radius: 14px;
  --shadow: 0 10px 30px rgba(0, 47, 92, 0.10);
  --font-display: "Space Grotesk", Arial, sans-serif;
  --font-body: -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, Helvetica, Arial, sans-serif;
}

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

html { scroll-behavior: smooth; }

body {
  font-family: var(--font-body);
  color: var(--oxford);
  background: var(--pearl);
  line-height: 1.6;
  -webkit-font-smoothing: antialiased;
}

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

.container { width: min(1120px, 92%); margin-inline: auto; }

h1, h2, h3 { font-family: var(--font-display); color: var(--vescent); line-height: 1.15; }

h1 { font-size: clamp(2rem, 5.5vw, 3.4rem); font-weight: 700; }
h2 { font-size: clamp(1.6rem, 4vw, 2.4rem); font-weight: 700; margin-bottom: 1.2em; text-align: center; }
h3 { font-size: 1.15rem; font-weight: 600; }

.accent { color: var(--bronze); }
.accent-gold { color: var(--bronze); }

.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;
}

/* ------------------------------ buttons ------------------------------ */
.btn {
  display: inline-block;
  font-family: var(--font-display);
  font-weight: 600;
  text-decoration: none;
  border-radius: 999px;
  padding: 0.7rem 1.4rem;
  transition: transform 0.15s ease, box-shadow 0.15s ease, background 0.15s ease;
  text-align: center;
}
.btn:hover { transform: translateY(-2px); }
.btn:focus-visible { outline: 3px solid var(--bronze); outline-offset: 2px; }

.btn-primary { background: var(--vescent); color: var(--white); box-shadow: var(--shadow); }
.btn-primary:hover { background: var(--navy); }

.btn-ghost { color: var(--vescent); border: 2px solid var(--sage); background: transparent; }
.btn-ghost:hover { background: var(--sage-soft); }

.btn-gold { background: var(--bronze); color: var(--white); }
.btn-gold:hover { background: #a37e46; }

.btn-lg { padding: 0.95rem 1.9rem; font-size: 1.05rem; }
.btn-nav { padding: 0.55rem 1.1rem; font-size: 0.95rem; }

/* -------------------------------- nav -------------------------------- */
.nav {
  position: sticky; top: 0; z-index: 50;
  background: rgba(245, 246, 244, 0.92);
  backdrop-filter: blur(10px);
  border-bottom: 1px solid var(--sage-soft);
}
.nav-inner { display: flex; align-items: center; gap: 1.5rem; padding: 0.7rem 0; }
.nav-logo {
  display: flex; align-items: center; gap: 0.55rem;
  font-family: var(--font-display); font-weight: 700; font-size: 1.15rem;
  color: var(--vescent); text-decoration: none; letter-spacing: 0.04em;
}
.nav-logo em { font-style: normal; color: var(--bronze); font-weight: 500; }
.nav-links { display: flex; gap: 1.4rem; margin-left: auto; }
.nav-links a {
  color: var(--oxford); text-decoration: none; font-size: 0.95rem; font-weight: 500;
}
.nav-links a:hover { color: var(--vescent); }

/* -------------------------------- hero -------------------------------- */
.hero {
  background:
    radial-gradient(1200px 500px at 85% -10%, rgba(125, 155, 140, 0.18), transparent 60%),
    radial-gradient(900px 420px at -10% 110%, rgba(180, 142, 85, 0.14), transparent 55%),
    var(--pearl);
  padding: clamp(3rem, 8vw, 6rem) 0 clamp(3rem, 7vw, 5rem);
  overflow: hidden;
}
.hero-grid {
  display: grid; grid-template-columns: 1.15fr 0.85fr;
  gap: clamp(2rem, 5vw, 4rem); align-items: center;
}
.eyebrow {
  font-family: var(--font-display); font-weight: 600; font-size: 0.85rem;
  letter-spacing: 0.14em; text-transform: uppercase; color: var(--sage);
  margin-bottom: 1rem;
}
.hero-sub { font-size: 1.15rem; margin: 1.3rem 0 1.8rem; max-width: 34rem; }
.hero-ctas { display: flex; flex-wrap: wrap; gap: 0.9rem; }
.hero-note { margin-top: 1.1rem; font-size: 0.9rem; color: var(--sage); }
.hero-note strong { color: var(--oxford); }

/* phone mockup */
.hero-phone { position: relative; justify-self: center; }
.phone {
  position: relative; z-index: 1;
  width: min(340px, 88vw);
  background: var(--white);
  border-radius: 26px;
  border: 1px solid var(--sage-soft);
  box-shadow: 0 24px 60px rgba(0, 47, 92, 0.18);
  overflow: hidden;
}
.phone-top {
  display: flex; align-items: center; gap: 0.6rem;
  background: var(--vescent); color: var(--white);
  padding: 0.75rem 1rem;
}
.phone-top div { display: flex; flex-direction: column; line-height: 1.2; }
.phone-top strong { font-family: var(--font-display); font-size: 0.95rem; }
.phone-top span { font-size: 0.72rem; opacity: 0.75; }
.phone-glow {
  position: absolute; inset: 12% -6% -8% -6%; z-index: 0;
  background: linear-gradient(135deg, rgba(125,155,140,0.35), rgba(180,142,85,0.28));
  border-radius: 40px; filter: blur(30px);
}

.chat {
  display: flex; flex-direction: column; gap: 0.55rem;
  padding: 1rem; min-height: 320px;
  background: #ece9e2;
}
.bubble {
  max-width: 82%;
  padding: 0.55rem 0.8rem;
  border-radius: 12px;
  font-size: 0.88rem;
  box-shadow: 0 1px 1px rgba(0,0,0,0.08);
  opacity: 0; transform: translateY(10px);
  transition: opacity 0.45s ease, transform 0.45s ease;
}
.bubble.is-in { opacity: 1; transform: none; }
.bubble.in  { align-self: flex-start; background: var(--white); border-top-left-radius: 4px; }
.bubble.out { align-self: flex-end; background: #dcebdf; border-top-right-radius: 4px; }
.bubble.voice { font-variant-numeric: tabular-nums; letter-spacing: 0.05em; }
.bubble .link { color: var(--navy); text-decoration: underline; word-break: break-all; }

/* ------------------------------ sections ------------------------------ */
.section { padding: clamp(3rem, 8vw, 5.5rem) 0; }
.section-pearl { background: var(--white); }
.section-sage { background: var(--sage-soft); }
.section-dark {
  background: linear-gradient(160deg, var(--vescent), var(--navy));
  color: var(--pearl);
}
.section-dark h2 { color: var(--white); text-align: left; }
.section-dark p { color: rgba(245, 246, 244, 0.88); }

/* steps */
.steps { display: grid; grid-template-columns: repeat(3, 1fr); gap: 1.4rem; }
.step {
  background: var(--white); border-radius: var(--radius);
  border-top: 4px solid var(--sage);
  padding: 1.6rem; box-shadow: var(--shadow);
}
.step-num {
  font-family: var(--font-display); font-weight: 700; font-size: 1.1rem;
  width: 2.2rem; height: 2.2rem; border-radius: 50%;
  display: grid; place-items: center;
  background: var(--vescent); color: var(--white); margin-bottom: 0.9rem;
}
.step h3 { margin-bottom: 0.4rem; }

/* demo */
.demo-grid {
  display: grid; grid-template-columns: 1fr auto;
  gap: clamp(2rem, 5vw, 4rem); align-items: center;
}
.demo-copy p { margin: 1rem 0 1.4rem; max-width: 32rem; }
.phone-demo { justify-self: center; }
.phone-demo .chat { min-height: 230px; }

.checks { list-style: none; }
.checks li {
  padding-left: 1.7rem; position: relative; margin-bottom: 0.5rem;
}
.checks li::before {
  content: "✓"; position: absolute; left: 0;
  color: var(--bronze); font-weight: 700; font-family: var(--font-display);
}
.section-dark .checks li::before { color: var(--bronze); }

/* features */
.features { display: grid; grid-template-columns: repeat(3, 1fr); gap: 1.4rem; }
.card {
  background: var(--white); border-radius: var(--radius);
  padding: 1.6rem; box-shadow: var(--shadow);
  border: 1px solid var(--sage-soft);
  transition: transform 0.18s ease;
}
.card:hover { transform: translateY(-4px); }
.card-icon {
  font-size: 1.6rem; width: 3rem; height: 3rem; border-radius: 12px;
  display: grid; place-items: center; margin-bottom: 0.9rem;
  background: var(--bronze-soft);
}
.card h3 { margin-bottom: 0.4rem; }
.card p { font-size: 0.95rem; }

/* trust */
.trust-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 1.4rem; margin-bottom: 2.6rem; }
.trust-item {
  background: var(--white); border-radius: var(--radius); padding: 1.5rem;
  border-left: 4px solid var(--bronze);
}
.trust-item h3 { margin-bottom: 0.4rem; }
.trust-item p { font-size: 0.95rem; }

/* comparison table */
.compare { overflow-x: auto; }
.compare table {
  width: 100%; border-collapse: collapse; background: var(--white);
  border-radius: var(--radius); overflow: hidden; box-shadow: var(--shadow);
  min-width: 560px;
}
.compare th, .compare td { padding: 0.85rem 1.1rem; text-align: left; font-size: 0.95rem; }
.compare thead th {
  font-family: var(--font-display); background: var(--vescent); color: var(--white);
}
.compare tbody tr:nth-child(even) { background: var(--pearl); }
.compare tbody th { font-weight: 600; color: var(--navy); }
.compare .col-resyn { font-weight: 600; color: var(--vescent); background: rgba(125,155,140,0.12); }
.compare thead .col-resyn { background: var(--bronze); color: var(--white); }

/* pricing */
.pricing-wrap { display: flex; flex-direction: column; align-items: center; }
.toggle {
  display: inline-flex; background: var(--white); border-radius: 999px;
  border: 1px solid var(--sage-soft); padding: 0.3rem; margin-bottom: 1.8rem;
}
.toggle-btn {
  font-family: var(--font-display); font-weight: 600; font-size: 0.95rem;
  border: 0; background: transparent; color: var(--oxford);
  padding: 0.55rem 1.2rem; border-radius: 999px; cursor: pointer;
}
.toggle-btn.is-active { background: var(--vescent); color: var(--white); }
.badge {
  background: var(--bronze); color: var(--white);
  font-size: 0.7rem; border-radius: 999px; padding: 0.1rem 0.5rem; margin-left: 0.3rem;
}
.price-card {
  background: var(--white); border-radius: 20px; box-shadow: var(--shadow);
  border-top: 6px solid var(--bronze);
  padding: 2.2rem; width: min(430px, 100%);
  display: flex; flex-direction: column; align-items: center; text-align: center;
}
.price-card img { margin-bottom: 0.6rem; }
.price { font-family: var(--font-display); color: var(--vescent); margin: 0.5rem 0 0.2rem; }
.price .js-price { font-size: 3rem; font-weight: 700; }
.price .per { font-size: 1rem; color: var(--oxford); }
.price-note { font-size: 0.85rem; color: var(--sage); margin-bottom: 1.2rem; }
.price-card .checks { text-align: left; margin-bottom: 1.6rem; }
.price-foot { font-size: 0.8rem; color: var(--sage); margin-top: 0.9rem; }

/* faq */
.faq-wrap { max-width: 760px; }
#faq details {
  background: var(--pearl); border-radius: var(--radius);
  border: 1px solid var(--sage-soft); margin-bottom: 0.8rem;
  padding: 1rem 1.3rem;
}
#faq summary {
  font-family: var(--font-display); font-weight: 600; color: var(--vescent);
  cursor: pointer; list-style: none; position: relative; padding-right: 2rem;
}
#faq summary::-webkit-details-marker { display: none; }
#faq summary::after {
  content: "+"; position: absolute; right: 0.2rem; top: 50%;
  transform: translateY(-50%);
  color: var(--bronze); font-size: 1.4rem; font-weight: 700;
  transition: transform 0.2s ease;
}
#faq details[open] summary::after { transform: translateY(-50%) rotate(45deg); }
#faq details p { margin-top: 0.7rem; font-size: 0.97rem; }

/* cta final */
.cta-final {
  background: linear-gradient(160deg, var(--vescent), var(--navy));
  text-align: center; padding: clamp(3.5rem, 9vw, 6rem) 0;
}
.cta-final h2 { color: var(--white); margin-bottom: 1.6rem; }
.cta-logo { margin: 0 auto 0.6rem; width: 200px; }

/* footer */
.footer { background: var(--oxford); color: var(--pearl); padding: 2.2rem 0; }
.footer-inner { display: grid; grid-template-columns: auto 1fr; gap: 1rem 2rem; align-items: center; }
.footer-brand { display: flex; align-items: center; gap: 0.8rem; }
.footer-brand strong { font-family: var(--font-display); letter-spacing: 0.05em; }
.footer-brand p { font-size: 0.8rem; opacity: 0.7; }
.footer-links { display: flex; gap: 1.4rem; justify-content: flex-end; flex-wrap: wrap; }
.footer-links a { color: var(--pearl); text-decoration: none; font-size: 0.9rem; opacity: 0.9; }
.footer-links a:hover { color: var(--bronze); }
.footer-copy { grid-column: 1 / -1; font-size: 0.8rem; opacity: 0.55; margin-top: 0.6rem; }

/* --------------------------- responsive --------------------------- */
@media (max-width: 900px) {
  .steps, .features, .trust-grid { grid-template-columns: 1fr 1fr; }
  .hero-grid, .demo-grid { grid-template-columns: 1fr; }
  .hero-phone { order: 2; }
  .section-dark h2 { text-align: center; }
  .demo-copy { text-align: center; }
  .demo-copy .checks { text-align: left; display: inline-block; }
}

@media (max-width: 620px) {
  .steps, .features, .trust-grid { grid-template-columns: 1fr; }
  .nav-links { display: none; }
  .hero-ctas .btn { width: 100%; }
  .footer-inner { grid-template-columns: 1fr; }
  .footer-links { justify-content: flex-start; }
}

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