/* Sадея — landing styles v3 */
:root {
  --terracotta: #C66B3D;
  --terracotta-deep: #A8552C;
  --olive: #6B7548;
  --olive-deep: #4F5836;
  --cream: #F5EFE4;
  --cream-deep: #ECE3D2;
  --milk: #FAF6EE;
  --ink: #2C2A24;
  --ink-soft: #5C5749;
  --ink-mute: #8A8473;
  --line: rgba(44, 42, 36, 0.12);
  --line-soft: rgba(44, 42, 36, 0.06);
}
* { box-sizing: border-box; }
html, body {
  margin: 0; padding: 0; background: var(--milk); color: var(--ink);
  font-family: 'Inter', system-ui, sans-serif; font-size: 17px; line-height: 1.55;
  -webkit-font-smoothing: antialiased; text-rendering: optimizeLegibility;
  overflow-x: hidden;
}
img { max-width: 100%; display: block; }
.serif { font-family: 'Fraunces', Georgia, serif; }
h1, h2, h3, h4 { font-family: 'Fraunces', Georgia, serif; font-weight: 400; letter-spacing: -0.01em; margin: 0; text-wrap: balance; }
h1 { font-size: clamp(34px, 5.2vw, 80px); line-height: 1.04; word-break: break-word; overflow-wrap: break-word; }
h2 { font-size: clamp(30px, 4vw, 52px); line-height: 1.06; }
h3 { font-size: clamp(20px, 2vw, 26px); line-height: 1.2; }
p { margin: 0; text-wrap: pretty; }
a { color: inherit; text-decoration: none; }
.eyebrow { font-family: 'Inter', sans-serif; font-size: 12px; letter-spacing: 0.18em; text-transform: uppercase; color: var(--olive); font-weight: 500; }

.container { width: 100%; max-width: 1200px; padding: 0 32px; margin: 0 auto; }
@media (max-width: 640px) { .container { padding: 0 20px; } }
section { padding: clamp(56px, 9vh, 110px) 0; }

.nav {
  position: sticky; top: 0; z-index: 50;
  background: color-mix(in oklab, var(--milk) 88%, transparent);
  backdrop-filter: blur(14px) saturate(140%);
  -webkit-backdrop-filter: blur(14px) saturate(140%);
  border-bottom: 1px solid var(--line-soft);
}
.nav-inner { display: flex; align-items: center; justify-content: space-between; padding: 16px 32px; max-width: 1200px; margin: 0 auto; }
.brand { display: flex; align-items: center; gap: 10px; font-family: 'Fraunces', serif; font-size: 22px; font-weight: 500; }
.brand-mark { width: 30px; height: 30px; border-radius: 50%; background: var(--olive); display: flex; align-items: center; justify-content: center; color: var(--cream); }
.nav-links { display: flex; gap: 28px; align-items: center; font-size: 15px; color: var(--ink-soft); }
.nav-links a:hover { color: var(--terracotta); }
@media (max-width: 760px) { .nav-links { display: none; } }

.btn {
  display: inline-flex; align-items: center; justify-content: center; gap: 8px;
  font-family: 'Inter', sans-serif; font-size: 16px; font-weight: 500;
  padding: 14px 24px; border-radius: 999px; border: 1px solid transparent; cursor: pointer;
  transition: transform 0.18s ease, background 0.18s ease, border-color 0.18s ease;
  white-space: nowrap;
}
.btn-primary { background: var(--terracotta); color: var(--milk); }
.btn-primary:hover { background: var(--terracotta-deep); }
.btn-primary:active { transform: translateY(1px); }
.btn-ghost { background: transparent; border-color: var(--line); color: var(--ink); }
.btn-ghost:hover { border-color: var(--ink); background: var(--cream); }
.btn-sm { padding: 10px 18px; font-size: 14px; }

/* hero */
.hero { position: relative; padding: clamp(16px, 2.5vh, 36px) 0 clamp(40px, 6vh, 80px); overflow: hidden; }
.hero-grid { display: grid; grid-template-columns: 1.15fr 0.85fr; gap: clamp(32px, 4vw, 64px); align-items: center; }
@media (max-width: 980px) { .hero-grid { grid-template-columns: 1fr; } }
@media (min-width: 981px) { .mob-br { display: none; } }

.hero-eyebrow {
  display: inline-flex; align-items: center; gap: 10px; padding: 8px 14px;
  background: var(--cream); border: 1px solid var(--line); border-radius: 999px;
  font-size: 13px; color: var(--ink-soft); margin-bottom: 24px;
}
.hero-eyebrow .dot { width: 8px; height: 8px; border-radius: 50%; background: var(--olive); box-shadow: 0 0 0 4px color-mix(in oklab, var(--olive) 20%, transparent); }
.hero h1 .accent { font-style: italic; color: var(--terracotta); }
.hero h1 .scribble { font-family: 'Caveat', cursive; color: var(--olive); font-weight: 500; font-style: normal; display: inline-block; transform: rotate(-2deg); }
.hero p.lede { font-size: clamp(17px, 1.4vw, 19px); color: var(--ink-soft); max-width: 520px; margin-top: 16px; }

.hero-cta { margin-top: 28px; }
.hero-meta { display: flex; gap: 24px; margin-top: 22px; font-size: 14px; color: var(--ink-mute); flex-wrap: wrap; }
.hero-meta-item { display: flex; align-items: center; gap: 8px; }

/* floating phone */
.hero-phone-col {
  display: flex; justify-content: center; align-items: flex-start;
}
.floating-phone-wrap {
  position: relative; display: flex; justify-content: center; align-items: flex-start;
  width: 100%; min-width: 0; overflow: visible;
}
.floating-phone-scale {
  /* transform-origin and marginBottom set inline from component */
  filter: drop-shadow(0 30px 60px rgba(44,42,36,0.18));
}
.floating-phone {
  animation: floatY 6s ease-in-out infinite;
  animation-delay: var(--float-delay, 0s);
}
@keyframes floatY {
  0%, 100% { transform: translateY(0); }
  50% { transform: translateY(-26px); }
}
.float-chip {
  position: absolute; z-index: 2;
  background: var(--milk); border: 1px solid var(--line);
  border-radius: 999px; padding: 8px 14px;
  font-size: 13px; font-weight: 500; color: var(--ink);
  display: inline-flex; align-items: center; gap: 8px;
  box-shadow: 0 8px 24px rgba(44,42,36,0.08);
  white-space: nowrap;
  opacity: 0; transform: translateY(8px) scale(0.9);
  animation: chipIn 0.6s cubic-bezier(.34,1.56,.64,1) forwards, chipFloat 4s ease-in-out infinite;
}
.float-chip-left { left: -8px; }
.float-chip-right { right: -8px; }
@media (max-width: 980px) {
  .float-chip-left { left: 4px; }
  .float-chip-right { right: 4px; }
}
.float-chip-dot { width: 8px; height: 8px; border-radius: 50%; }
@keyframes chipIn {
  to { opacity: 1; transform: translateY(0) scale(1); }
}
@keyframes chipFloat {
  0%, 100% { translate: 0 0; }
  50% { translate: 0 -6px; }
}

/* sections */
.sec-head { display: flex; flex-direction: column; gap: 14px; max-width: 720px; margin: 0 auto clamp(40px, 5vh, 64px); text-align: center; }
.sec-head p { font-size: clamp(15px, 1.1vw, 18px); color: var(--ink-soft); }

/* pains — confession list */
.pains { background: var(--cream); border-top: 1px solid var(--line-soft); border-bottom: 1px solid var(--line-soft); }
.pain-list { display: flex; flex-direction: column; }
.pain-row {
  display: flex; align-items: flex-start; gap: 36px;
  padding: 40px 0; border-bottom: 1px solid var(--line-soft);
}
.pain-row:first-child { border-top: 1px solid var(--line-soft); }
.pain-row-num {
  font-size: 72px; font-weight: 700; line-height: 1;
  color: var(--terracotta); opacity: 0.13;
  min-width: 80px; text-align: right; flex-shrink: 0;
  letter-spacing: -3px; font-family: Georgia, serif;
  user-select: none;
}
.pain-row-content { flex: 1; padding-top: 4px; }
.pain-row-quote {
  font-size: clamp(22px, 3.2vw, 34px); font-style: italic;
  line-height: 1.25; color: var(--ink); margin-bottom: 14px;
}
.pain-row-desc { font-size: 15px; color: var(--ink-soft); line-height: 1.65; margin-bottom: 16px; max-width: 560px; }
.pain-tag {
  display: inline-block; font-size: 10.5px; letter-spacing: 0.08em;
  text-transform: uppercase; color: var(--terracotta);
  border: 1px solid color-mix(in srgb, var(--terracotta) 45%, transparent);
  border-radius: 20px; padding: 3px 11px;
}
@media (max-width: 600px) {
  .pain-row { gap: 18px; padding: 28px 0; }
  .pain-row-num { font-size: 48px; min-width: 54px; }
  .pain-row-quote { font-size: 20px; }
}

/* ── Feature tab slider ──────────────────────────────── */
.feat-tabs {
  display: flex; gap: 8px; flex-wrap: nowrap;
  justify-content: center; margin-bottom: 40px;
  overflow-x: auto; -webkit-overflow-scrolling: touch;
  scrollbar-width: none; padding-bottom: 2px;
}
.feat-tabs::-webkit-scrollbar { display: none; }
.feat-tab {
  flex-shrink: 0;
  background: none; border: 1px solid var(--line); border-radius: 999px;
  padding: 9px 20px;
  font-family: 'Inter', sans-serif; font-size: 11.5px;
  letter-spacing: 0.13em; text-transform: uppercase;
  color: var(--ink-soft); font-weight: 500; cursor: pointer;
  transition: all 0.2s ease; white-space: nowrap;
}
.feat-tab:hover { border-color: var(--olive); color: var(--olive); }
.feat-tab.active { background: var(--ink); color: var(--milk); border-color: var(--ink); }

.feat-panel {
  display: flex; flex-direction: column; align-items: center;
  gap: 0;
  animation: featSlideIn 0.38s cubic-bezier(.25,.8,.25,1);
}
@keyframes featSlideIn {
  from { opacity: 0; transform: translateY(12px); }
  to   { opacity: 1; transform: none; }
}
/* Top: eyebrow + title */
.feat-panel-header {
  text-align: center;
  display: flex; flex-direction: column; gap: 10px;
  margin-bottom: 32px;
  max-width: 680px;
}
.feat-panel-header h3 { font-size: clamp(28px, 3.2vw, 44px); }
/* Middle: phone */
.feat-panel-phone {
  display: flex; justify-content: center; align-items: flex-start;
  margin-bottom: 40px; width: 100%; min-width: 0;
}
/* Bottom: description + bullets */
.feat-panel-body {
  display: flex; flex-direction: column; align-items: center; gap: 16px;
  max-width: 620px; text-align: center;
}
.feat-panel-body p { font-size: 17px; color: var(--ink-soft); line-height: 1.65; }
.feat-panel-body ul { list-style: none; padding: 0; margin: 0; display: flex; flex-wrap: wrap; justify-content: center; gap: 10px 28px; }
.feat-panel-body li { display: flex; gap: 8px; align-items: center; font-size: 16px; color: var(--ink); }
.feat-panel-body .bul { color: var(--terracotta); font-size: 13px; }

@media (max-width: 640px) {
  .feat-tabs { justify-content: flex-start; margin-bottom: 28px; }
  .feat-panel-header { margin-bottom: 24px; }
  .feat-panel-header h3 { font-size: clamp(22px, 7vw, 32px); }
  .feat-panel-phone { margin-bottom: 28px; }
  .feat-panel-body p { font-size: 15.5px; }
  .feat-panel-body li { font-size: 15px; }
  .feat-panel-body ul { flex-direction: column; align-items: flex-start; }
}

/* how it works */
.how-section { background: var(--cream); border-top: 1px solid var(--line-soft); border-bottom: 1px solid var(--line-soft); }
.how-steps { display: flex; align-items: flex-start; justify-content: center; gap: 12px; }
.how-step-col { display: flex; flex-direction: column; align-items: center; flex: 1; min-width: 0; max-width: 220px; }
.how-step {
  width: 100%; background: var(--milk); border: 1px solid var(--line); border-radius: 20px;
  padding: 28px 18px 24px; display: flex; flex-direction: column; align-items: center; gap: 8px;
  text-align: center; position: relative;
}
.how-step-icon { font-size: 36px; line-height: 1; }
.how-step-num { font-family: 'Fraunces', serif; font-size: 12px; color: var(--terracotta); letter-spacing: 0.1em; margin-top: 4px; }
.how-step-title { font-size: 18px; font-weight: 500; line-height: 1.25; }
.how-step-text { font-size: 13.5px; color: var(--ink-soft); line-height: 1.55; margin-top: 4px; }
.how-arrow { margin-top: 10px; opacity: 0.6; flex-shrink: 0; }
.how-loop-back { text-align: center; margin-top: 32px; }
@media (min-width: 881px) {
  .how-step-col { flex-direction: row; align-items: center; }
  .how-arrow { margin-top: 0; margin-left: 4px; transform: rotate(-90deg); }
}
@media (max-width: 880px) {
  .how-steps { flex-direction: column; align-items: center; }
  .how-step-col { max-width: 320px; width: 100%; }
}

/* faq */
#faq { padding-top: clamp(28px, 3.5vh, 48px); }
.faq { max-width: 780px; margin: 0 auto; }
.faq-item { border-bottom: 1px solid var(--line); }
.faq-item:first-child { border-top: 1px solid var(--line); }
.faq-q { width: 100%; background: none; border: none; padding: 22px 0; text-align: left; font-family: 'Fraunces', serif; font-size: 21px; font-weight: 400; color: var(--ink); cursor: pointer; display: flex; justify-content: space-between; align-items: center; gap: 20px; }
.faq-toggle { width: 28px; height: 28px; border-radius: 50%; background: var(--cream); display: flex; align-items: center; justify-content: center; flex-shrink: 0; transition: transform 0.25s ease, background 0.18s ease; }
.faq-item.open .faq-toggle { transform: rotate(45deg); background: var(--terracotta); color: var(--milk); }
.faq-a { max-height: 0; overflow: hidden; transition: max-height 0.32s ease; }
.faq-item.open .faq-a { max-height: 240px; }
.faq-a-inner { padding: 0 0 22px; color: var(--ink-soft); font-size: 16px; max-width: 640px; }

/* final cta */
.final-cta { background: var(--cream); border-top: 1px solid var(--line-soft); }
.final-cta .sec-head { margin-bottom: 24px; }
.final-cta-card {
  background: var(--milk); border: 1px solid var(--line); border-radius: 28px;
  padding: clamp(32px, 5vw, 52px); max-width: 720px; margin: 0 auto;
  position: relative; overflow: hidden;
  display: flex; align-items: center; justify-content: space-between; gap: 24px; flex-wrap: wrap;
}
.final-cta-card::before {
  content: ''; position: absolute; top: 0; right: 0; width: 220px; height: 220px;
  background: radial-gradient(circle, color-mix(in oklab, var(--terracotta) 16%, transparent), transparent 70%);
  pointer-events: none;
}
.final-cta-copy,
.final-cta-actions {
  position: relative; z-index: 1;
}
.final-cta-copy { max-width: 420px; }
.final-cta-copy h3 { font-size: clamp(28px, 3vw, 38px); margin-bottom: 10px; }
.final-cta-copy p { color: var(--ink-soft); }
@media (max-width: 640px) {
  .final-cta-card { align-items: flex-start; }
  .final-cta-actions { width: 100%; }
  .final-cta-actions .btn { width: 100%; }
}

/* footer */
.footer { padding: 32px 0; border-top: 1px solid var(--line-soft); font-size: 14px; color: var(--ink-mute); }
.footer-inner { display: flex; justify-content: space-between; align-items: center; gap: 24px; flex-wrap: wrap; }
.footer .brand { font-size: 18px; }

/* ── Hero inline phone (mobile: between lede and eyebrow) ─── */
/* Hidden on desktop — the right-column phone shows instead */
.hero-phone-inline { display: none; }
@media (max-width: 980px) {
  .hero-phone-inline {
    display: flex; justify-content: center; align-items: flex-start;
    margin: 28px 0 24px;
  }
  /* Flex ordering: h1 first, no eyebrow badge on mobile */
  /* min-width: 0 prevents flex child from stretching to phone's layout width (874px) */
  .hero-left { display: flex; flex-direction: column; min-width: 0; width: 100%; }
  .hero-left h1 { order: 1; }
  .hero-left .lede { order: 2; }
  .hero-phone-inline { order: 3; }
  .hero-left .hero-cta { order: 6; }
  .hero-left .hero-meta { order: 7; }
  /* Hide the desktop phone column when inline one is shown */
  .hero-phone-col { display: none; }
  /* Prevent lede text from overflowing the viewport */
  .hero p.lede { max-width: 100%; overflow-wrap: break-word; }
}

/* ── Responsive overrides ─────────────────────────── */
@media (max-width: 640px) {
  .hero-phone-col {
    overflow: visible;
  }
  /* On mobile, reduce hero phone scale and fix the layout height accordingly.
     margin-bottom = 874px * (scale - 1). At scale 0.54: 874 * -0.46 = -402px */
  .hero-phone-col .floating-phone-scale {
    transform: scale(0.54) !important;
    transform-origin: top center !important;
    margin-bottom: -402px !important;
  }
  /* Nav: compact on mobile */
  .nav-inner { padding: 10px 16px; }
  .brand { font-size: 17px; gap: 7px; }
  .brand-mark { width: 24px; height: 24px; }
  .nav-inner .btn { font-size: 11.5px; padding: 7px 13px; }
  /* Hero heading: slightly smaller and tighter on mobile */
  .hero h1 { font-size: clamp(24px, 7vw, 36px); line-height: 1.1; }
  .hero p.lede { font-size: 15px; }
  /* CTA button: full width for easier tap */
  .hero-cta .btn-primary { width: 100%; justify-content: center; }
  .hero-meta { flex-direction: column; gap: 12px; }
}
@media (min-width: 641px) and (max-width: 980px) {
  /* Tablet: comfortable scale, no extra constraints */
  .hero-phone-col .floating-phone-scale {
    transform: scale(0.60) !important;
    transform-origin: top center !important;
    margin-bottom: -350px !important; /* 874 * (0.60 - 1) ≈ -350 */
  }
}
