/* Home page. Calm and roomy: big real screens, soft color washes, few boxes. */
body { font-family: "Figtree", "Inter", system-ui, -apple-system, "Segoe UI", Roboto, sans-serif; }
h1, h2, h3 { letter-spacing: -0.025em; }
section[id] { scroll-margin-top: 76px; }
.btn-lg { padding: 15px 26px; font-size: 16.5px; }
.x-h2 { text-align: center; font-size: clamp(30px, 4vw, 46px); font-weight: 800; color: var(--navy); margin-bottom: 40px; }

/* Hero */
.x-hero {
  padding: 72px 0 0; overflow: hidden;
  background: #f7f8fa;
}
.x-hero .wrap { display: grid; grid-template-columns: 1.05fr 0.95fr; gap: 40px; align-items: center; }
.x-hero-copy { padding-bottom: 72px; }
.x-hero h1 { font-size: clamp(38px, 4.8vw, 60px); font-weight: 800; color: var(--navy); line-height: 1.06; }
.x-hero h1 .x-lead-in { display: block; font-size: clamp(20px, 2vw, 26px); font-weight: 600; color: var(--ink-2); letter-spacing: 0; line-height: 1.3; margin-bottom: 8px; }
.x-hero h1 .x-accent { display: block; font-size: clamp(22px, 2.4vw, 30px); font-weight: 700; color: var(--accent); line-height: 1.25; margin-top: 18px; }
.x-lede { font-size: clamp(18px, 1.8vw, 20px); color: var(--ink-2); max-width: 30em; margin-top: 22px; }
.x-actions { display: flex; flex-wrap: wrap; gap: 12px; margin-top: 30px; }
.x-fine { margin-top: 14px; font-size: 14.5px; color: var(--ink-3); }
.x-stage { position: relative; height: 560px; align-self: end; }
.x-stage img { width: 290px; height: auto; margin: 0 auto; filter: drop-shadow(0 24px 40px rgba(19, 41, 75, 0.2)); }
.x-note {
  position: absolute; background: #fff; border: 1px solid var(--line); border-radius: 14px; padding: 12px 14px;
  font-size: 14px; line-height: 1.35; max-width: 270px; box-shadow: 0 16px 30px -18px rgba(19, 41, 75, 0.4);
}
.x-note b { display: block; color: var(--navy); font-size: 14.5px; }
.x-note small { color: var(--ink-3); font-size: 13px; }
.x-note.n1 { top: 70px; left: 0; }
.x-note.n2 { top: 250px; right: 0; }
.x-note.n3 { top: 420px; left: 16px; }
.x-dot { display: inline-block; width: 8px; height: 8px; border-radius: 50%; background: var(--accent); margin-right: 6px; vertical-align: 1px; }
@media (max-width: 900px) {
  .x-hero .wrap { grid-template-columns: 1fr; gap: 8px; }
  .x-hero-copy { padding-bottom: 24px; }
}

/* Three promises */
.x-promises { padding: 96px 0 24px; }
.x-promises .wrap { display: flex; justify-content: center; flex-wrap: nowrap; gap: 14px 0; }
.x-promises .wrap > div { display: flex; align-items: center; gap: 12px; font-weight: 600; font-size: 17px; color: var(--navy); padding: 0 26px; white-space: nowrap; }
.x-promises .wrap > div + div { border-left: 1px solid var(--line); }
.x-ico { width: 40px; height: 40px; border-radius: 10px; background: var(--navy); display: grid; place-items: center; flex: none; }
.x-ico svg { width: 21px; height: 21px; fill: none; stroke: #fff; stroke-width: 1.8; stroke-linecap: round; stroke-linejoin: round; }
@media (max-width: 760px) {
  .x-promises { padding-top: 64px; }
  .x-promises .wrap { flex-direction: column; align-items: flex-start; max-width: 360px; }
  .x-promises .wrap > div { padding: 0; }
  .x-promises .wrap > div + div { border-left: 0; }
}

/* Problem */
.x-problem { padding: 72px 0; }
.x-problem .wrap { max-width: 860px; text-align: center; }
.x-problem h2 { font-size: clamp(30px, 4vw, 46px); font-weight: 800; color: var(--navy); }
.x-problem p { margin-top: 22px; font-size: clamp(19px, 2.2vw, 23px); line-height: 1.55; color: var(--ink-2); }
.x-problem b { color: var(--navy); }

/* Feature tabs */
.x-features { padding-top: 48px; }
.x-tabs {
  display: flex; flex-wrap: wrap; justify-content: center; gap: 4px; margin: 0 auto 44px;
  padding: 6px; background: var(--bg-soft); border-radius: 12px; width: fit-content; max-width: 100%;
}
.x-tabs button {
  font: inherit; font-weight: 600; font-size: 15px; color: var(--ink-2); background: none; border: 0;
  padding: 10px 16px; border-radius: 8px; cursor: pointer;
}
.x-tabs button:hover { color: var(--navy); }
.x-tabs button[aria-selected="true"] { background: var(--navy); color: #fff; }
.x-panel {
  display: grid; grid-template-columns: 1fr 340px; gap: 64px; align-items: center;
  max-width: 940px; margin: 0 auto; padding: 48px 56px 0; border-radius: 24px; overflow: hidden;
  background: #f7f8fa;
}
.x-panel[hidden] { display: none; }
.x-copy { padding-bottom: 48px; }
.x-copy h3 { font-size: clamp(26px, 3vw, 34px); font-weight: 800; color: var(--navy); }
.x-copy p { margin-top: 14px; font-size: 18px; color: var(--ink-2); }
.x-copy ul, .x-checks { list-style: none; padding: 0; margin: 22px 0 0; display: grid; gap: 10px; }
.x-copy li, .x-checks li { position: relative; padding-left: 30px; font-size: 16.5px; }
.x-copy li::before, .x-checks li::before {
  content: ""; position: absolute; left: 0; top: 3px; width: 20px; height: 20px; border-radius: 50%;
  background: var(--teal) url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='white' stroke-width='3' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpath d='M5 12l5 5L20 7'/%3E%3C/svg%3E") center / 12px no-repeat;
}
.x-panel img { width: 100%; height: auto; margin-bottom: -150px; align-self: start; filter: drop-shadow(0 20px 36px rgba(19, 41, 75, 0.16)); }
@media (max-width: 860px) {
  .x-tabs { justify-content: flex-start; flex-wrap: nowrap; overflow-x: auto; width: 100%; }
  .x-tabs button { white-space: nowrap; }
  .x-panel { grid-template-columns: 1fr; gap: 0; padding: 32px 24px 0; }
  .x-copy { padding-bottom: 28px; }
  .x-panel img { width: 72%; max-width: 300px; margin: 0 auto -110px; }
}

/* Care */
.x-care-wrap { padding-top: 120px; }
.x-care {
  display: grid; grid-template-columns: 1fr 320px; gap: 64px; align-items: center;
  padding: 64px; border-radius: 28px;
  background: #f7f8fa;
}
.x-care h2 { font-size: clamp(30px, 4vw, 44px); font-weight: 800; color: var(--navy); }
.x-care-lede { margin-top: 16px; font-size: 18.5px; color: var(--ink-2); }
.x-acc { margin-top: 28px; border-top: 1px solid rgba(19, 41, 75, 0.12); }
.x-acc details { border-bottom: 1px solid rgba(19, 41, 75, 0.12); padding: 16px 0; }
.x-acc summary { cursor: pointer; list-style: none; display: flex; justify-content: space-between; font-weight: 700; font-size: 18px; color: var(--navy); }
.x-acc summary::-webkit-details-marker { display: none; }
.x-acc summary::after { content: "+"; font-weight: 500; font-size: 22px; line-height: 1; color: var(--teal); }
.x-acc details[open] summary::after { content: "–"; }
.x-acc details p { margin-top: 8px; color: var(--ink-2); font-size: 16px; }
/* Its own name: .x-note is the hero's floating bubbles (position: absolute). */
.x-care-note { margin-top: 20px; font-size: 15px; color: var(--ink-3); }
.x-care img { width: 100%; height: auto; filter: drop-shadow(0 20px 36px rgba(19, 41, 75, 0.16)); }
@media (max-width: 860px) {
  .x-care-wrap { padding-top: 96px; }
  .x-care { grid-template-columns: 1fr; padding: 36px 22px; gap: 36px; }
  .x-care img { width: 72%; max-width: 300px; margin: 0 auto; }
}

/* How it works */
.x-steps { display: grid; grid-template-columns: repeat(3, 1fr); gap: 40px; max-width: 1000px; margin: 0 auto; }
.x-steps > div { border-top: 3px solid var(--accent); padding-top: 20px; }
.x-steps h3 { font-size: 21px; font-weight: 700; color: var(--navy); }
.x-steps p { margin-top: 8px; color: var(--ink-2); font-size: 16.5px; }
@media (max-width: 760px) { .x-steps { grid-template-columns: 1fr; gap: 28px; } }
.x-demo { max-width: 1000px; margin: 56px auto 0; }
.x-demo video { display: block; width: 100%; height: auto; aspect-ratio: 16 / 9; border-radius: var(--radius); border: 1px solid var(--line); box-shadow: var(--shadow); background: #fbfaf8; }
.x-demo figcaption { margin-top: 14px; text-align: center; color: var(--ink-3); font-size: 15px; }
@media (max-width: 760px) { .x-demo { margin-top: 36px; } .x-demo video { border-radius: 12px; } }

/* Offer */
.x-offer-wrap { padding-top: 0; }
.x-offer { display: grid; grid-template-columns: 1.2fr 1fr; gap: 48px; align-items: center; padding: 56px; border-radius: 28px; background: var(--navy); color: #fff; }
.x-offer h2 { font-size: clamp(28px, 3.4vw, 38px); font-weight: 800; }
.x-offer .x-checks li { color: #e6ecf5; }
.x-trial { background: #fff; color: var(--ink); border-radius: 18px; padding: 32px; }
.x-trial h3 { font-size: 24px; font-weight: 800; color: var(--navy); }
.x-trial p { margin: 10px 0 22px; color: var(--ink-2); }
.x-trial .btn { width: 100%; }
.x-link { display: block; text-align: center; margin-top: 14px; font-weight: 600; color: var(--navy); }
@media (max-width: 860px) { .x-offer { grid-template-columns: 1fr; padding: 32px 22px; gap: 28px; } }

/* FAQ */
.x-faq { padding-top: 24px; }

/* Final */
.x-final-wrap { padding-top: 0; }
.x-final {
  text-align: center; padding: 72px 40px; border-radius: 28px;
  background: #f7f8fa;
}
.x-final h2 { font-size: clamp(32px, 4.6vw, 52px); font-weight: 800; color: var(--navy); line-height: 1.1; }
.x-twoway { display: grid; grid-template-columns: 1fr 1fr; gap: 40px; max-width: 820px; margin: 36px auto; text-align: left; }
.x-twoway b { display: block; font-size: 17px; color: var(--navy); margin-bottom: 6px; }
.x-twoway > div { color: var(--ink-2); font-size: 16.5px; }
@media (max-width: 700px) { .x-twoway { grid-template-columns: 1fr; gap: 20px; } .x-final { padding: 48px 22px; } }

/* ---------------------------------------------------------------- phones */
@media (max-width: 600px) {
  section { padding: 52px 0; }
  .x-h2 { font-size: 28px; margin-bottom: 24px; }

  /* Hero: smaller headline, one big readable screen instead of three tiny ones. */
  .x-hero { padding-top: 40px; }
  .x-hero h1 { font-size: 34px; line-height: 1.1; }
  .x-hero h1 .x-lead-in { font-size: 18px; margin-bottom: 6px; }
  .x-hero h1 .x-accent { font-size: 21px; margin-top: 14px; }
  .x-lede { font-size: 17px; margin-top: 16px; }
  .x-actions { margin-top: 24px; gap: 10px; }
  .x-actions .btn { flex: 1 1 100%; }
  .x-stage { height: 400px; }
  .x-stage img { width: 62%; max-width: 240px; }
  .x-note { max-width: 235px; padding: 9px 11px; }
  .x-note b { font-size: 12.5px; }
  .x-note small { font-size: 11.5px; }
  .x-note.n1 { top: 30px; left: 0; }
  .x-note.n2 { top: 170px; right: 0; }
  .x-note.n3 { top: 300px; left: 0; }

  .x-promises { padding: 40px 0 8px; }
  .x-promises .wrap > div { font-size: 16px; white-space: normal; }

  /* Problem reads better left-aligned on a narrow screen. */
  .x-problem { padding: 40px 0; }
  .x-problem .wrap { text-align: left; }
  .x-problem h2 { font-size: 28px; }
  .x-problem p { font-size: 18px; margin-top: 14px; }

  /* Feature tabs: all visible, wrapping, no hidden sideways scroll. */
  .x-features { padding-top: 24px; }
  .x-tabs { flex-wrap: wrap; justify-content: center; overflow: visible; width: auto; margin-bottom: 24px; }
  .x-tabs button { padding: 9px 12px; font-size: 14.5px; }
  .x-panel { padding: 26px 20px 0; border-radius: 20px; }
  .x-copy h3 { font-size: 24px; }
  .x-copy p { font-size: 16.5px; }
  .x-copy li, .x-checks li { font-size: 15.5px; }
  .x-panel img { width: 64%; margin-bottom: -170px; }

  /* Care: tighter, and a shorter crop of the screen. */
  .x-care-wrap { padding-top: 12px; }
  .x-care { padding: 28px 20px 0; gap: 24px; border-radius: 20px; overflow: hidden; }
  .x-care h2 { font-size: 28px; }
  .x-care-lede { font-size: 16.5px; }
  .x-acc summary { font-size: 17px; }
  .x-acc details { padding: 13px 0; }
  .x-care img { width: 64%; margin-bottom: -170px; }

  .x-steps { gap: 22px; }
  .x-steps h3 { font-size: 19px; }

  .x-offer-wrap, .x-final-wrap { padding-top: 0; }
  .x-offer { border-radius: 20px; }
  .x-offer h2 { font-size: 26px; }
  .x-trial { padding: 24px 20px; }

  .x-faq { padding-top: 8px; }
  .faq summary { font-size: 16px; }

  .x-final { padding: 40px 20px; border-radius: 20px; }
  .x-final h2 { font-size: 30px; }
  .x-twoway { margin: 24px 0; }
  .x-final .btn { width: 100%; }
}
