/* Dr. Amor landing. Colors match the app (Theme.swift and GradientPalette.swift). */
:root {
  --cream: #FFF8F0;
  --cream-deep: #FBEADB;
  --ink: #1C1917;
  --ink-soft: #57534E;
  --coral: #F43F5E;
  --coral-ink: #BE123C;
  --blush: #FFE4E6;
  --amber: #FB923C;
  --white: #FFFFFF;
  --line: #EEDFD0;
  --font: "Bricolage Grotesque", ui-rounded, -apple-system, BlinkMacSystemFont, "Segoe UI", system-ui, sans-serif;
  --gutter: 16px;
  --max: 1120px;
}

* { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; scroll-behavior: smooth; }
@media (prefers-reduced-motion: reduce) { html { scroll-behavior: auto; } }
body {
  margin: 0;
  background: var(--cream);
  color: var(--ink);
  font: 400 17px/1.55 var(--font);
  font-optical-sizing: auto;
  overflow-x: hidden;
  -webkit-font-smoothing: antialiased;
}
img { display: block; max-width: 100%; height: auto; }
a { color: var(--coral-ink); text-underline-offset: 3px; }
a:focus-visible, button:focus-visible, summary:focus-visible, .stage:focus-visible {
  outline: 3px solid var(--coral); outline-offset: 3px; border-radius: 12px;
}
.wrap { width: 100%; max-width: var(--max); margin: 0 auto; padding: 0 var(--gutter); }
.skip { position: absolute; left: -999px; top: 8px; background: var(--ink); color: var(--white); padding: 8px 12px; border-radius: 8px; z-index: 50; }
.skip:focus { left: 8px; }

h1, h2, h3 { margin: 0; font-weight: 800; letter-spacing: -0.03em; line-height: 1.02; text-wrap: balance; }
h1 { font-size: clamp(40px, 9.5vw, 78px); }
h2 { font-size: clamp(32px, 6.4vw, 54px); }
h3 { font-size: 22px; letter-spacing: -0.015em; line-height: 1.15; }
p { margin: 0; }
.lede { font-size: clamp(18px, 2.2vw, 21px); color: var(--ink-soft); max-width: 34em; text-wrap: pretty; }

/* ---------- Top bar ---------- */
.top { padding: 14px 0; }
.top .wrap { display: flex; align-items: center; justify-content: space-between; gap: 12px; }
.top img { width: 132px; }
.top nav { display: flex; gap: 18px; font-weight: 600; font-size: 15px; }
.top nav a { color: var(--ink); text-decoration: none; }
.top nav a:hover { color: var(--coral-ink); }

/* ---------- App Store button ---------- */
.store {
  display: inline-flex; align-items: center; gap: 10px;
  background: var(--ink); color: var(--white); text-decoration: none;
  padding: 11px 20px 11px 16px; border-radius: 14px; line-height: 1.1;
  font-weight: 600;
}
.store svg { width: 24px; height: 24px; flex: none; }
.store small { display: block; font-size: 11.5px; font-weight: 500; opacity: 0.8; }
.store b { display: block; font-size: 19px; font-weight: 700; letter-spacing: -0.01em; }
.store[aria-disabled="true"] { cursor: default; }
.store-note { margin-top: 10px; font-size: 14px; color: var(--ink-soft); }

/* ---------- Hero ---------- */
.hero { padding: 8px 0 24px; }
.hero .wrap { display: grid; gap: 8px; align-items: center; }
.hero-copy { display: grid; gap: 18px; justify-items: start; }
.stage-box { position: relative; justify-self: center; width: min(100%, 420px); padding-top: 64px; }
.stage {
  position: relative; height: clamp(360px, 92vw, 520px); cursor: pointer; overflow: visible;
  -webkit-tap-highlight-color: transparent; touch-action: manipulation;
}
.stage::before {
  /* the consultation rug */
  content: ""; position: absolute; left: 50%; bottom: 0; width: 86%; height: 34%;
  transform: translateX(-50%); border-radius: 50%;
  background: radial-gradient(closest-side, var(--blush), rgba(255, 228, 230, 0));
}
.rig, .layer { position: absolute; left: 0; top: 0; width: 760px; height: 1220px; transform-origin: 0 0; }
.rig img, .rig svg { position: absolute; display: block; user-select: none; -webkit-user-drag: none; max-width: none; }
.layer { will-change: transform; }
.bubble {
  position: absolute; z-index: 3; top: 0; right: 4px; max-width: 70%;
  background: var(--white); border: 2px solid var(--ink); border-radius: 20px 20px 20px 6px;
  padding: 10px 14px; font-weight: 700; font-size: 16px; line-height: 1.25;
  box-shadow: 4px 4px 0 var(--ink); transform-origin: 0 100%;
}
.bubble.pop { animation: pop 0.32s cubic-bezier(.2, 1.6, .4, 1); }
@keyframes pop { from { transform: scale(0.7); opacity: 0.4; } to { transform: scale(1); opacity: 1; } }
.tap-hint { text-align: center; font-size: 14px; color: var(--ink-soft); margin-top: 6px; }

@media (min-width: 900px) {
  .hero { padding: 24px 0 96px; }
  .hero .wrap { grid-template-columns: 1.1fr 0.9fr; gap: 40px; }
  .stage-box { order: 2; }
}

/* ---------- Sections ---------- */
section { padding: 72px 0; }
.section-head { display: grid; gap: 14px; margin-bottom: 36px; max-width: 760px; }

/* Steps: a real sequence, so the numbers carry meaning */
.steps { display: grid; gap: 20px; list-style: none; margin: 0; padding: 0; counter-reset: step; }
.step {
  position: relative; background: var(--white); border-radius: 28px; padding: 22px 22px 0;
  display: flex; flex-direction: column; gap: 10px; overflow: hidden; border: 1px solid var(--line);
}
.step::before {
  counter-increment: step; content: counter(step);
  font-weight: 800; font-size: 54px; line-height: 0.9; letter-spacing: -0.04em;
  color: var(--cream); -webkit-text-stroke: 2px var(--coral);
}
.step p { color: var(--ink-soft); }
.step .art { height: 230px; margin-top: auto; padding-top: 6px; display: grid; place-items: end center; }
.step .art img { height: 230px; width: auto; max-width: 100%; object-fit: contain; }
.export-path { display: flex; flex-wrap: wrap; gap: 6px; margin-bottom: 18px; }
.export-path span {
  background: var(--cream); border: 1.5px solid var(--line); border-radius: 999px;
  padding: 6px 12px; font-weight: 600; font-size: 15px;
}
.export-path span:last-child { background: #25D366; border-color: #25D366; color: #06331C; }
.chat-mock { width: 100%; margin-top: auto; display: grid; gap: 8px; padding-bottom: 22px; }
.chat-mock div { max-width: 82%; padding: 8px 12px; border-radius: 16px; font-size: 15px; line-height: 1.3; }
.chat-mock .in { background: var(--cream); border-bottom-left-radius: 4px; }
.chat-mock .out { background: #DCF8C6; justify-self: end; border-bottom-right-radius: 4px; }
@media (min-width: 900px) { .steps { grid-template-columns: repeat(3, 1fr); } }

/* ---------- Cards showcase ---------- */
.cards-section { background: var(--ink); color: var(--cream); }
.cards-section .lede { color: #D6D3D1; }
.cards-section h2 { color: var(--white); }
.rail {
  display: flex; gap: 14px; overflow-x: auto; scroll-snap-type: x mandatory;
  padding: 6px var(--gutter) 22px; margin: 0 calc(-1 * var(--gutter));
  scrollbar-width: thin; scrollbar-color: #57534E transparent;
  overscroll-behavior-x: contain;
}
.rail:focus-visible { outline: 3px solid var(--coral); outline-offset: -3px; }
.rail-controls { display: none; gap: 10px; justify-content: flex-end; margin-top: -16px; margin-bottom: 14px; }
.rail-controls button {
  width: 46px; height: 46px; border-radius: 50%; border: 1.5px solid #57534E;
  background: transparent; color: var(--white); font: 700 20px/1 var(--font); cursor: pointer;
}
.rail-controls button:hover { background: #292524; }
@media (min-width: 900px) { .rail-controls { display: flex; } }

.card-img {
  flex: none; width: 252px; height: auto; aspect-ratio: 9 / 16; scroll-snap-align: center;
  border-radius: 26px; background: #292524;
}
@media (min-width: 900px) { .card-img { width: 272px; } }
.cards-note { margin-top: 6px; font-size: 14px; color: #A8A29E; }

/* ---------- Reaction, privacy ---------- */
.split { display: grid; gap: 28px; align-items: center; }
.split .art { justify-self: center; width: min(220px, 58vw); }
@media (min-width: 900px) { .split .art { width: 300px; } }
@media (min-width: 900px) {
  .split { grid-template-columns: 1fr 1fr; gap: 56px; }
  .split.flip .art { order: -1; }
}
.facts { list-style: none; margin: 28px 0 0; padding: 0; display: grid; gap: 14px; }
.facts li { display: grid; grid-template-columns: 34px 1fr; gap: 12px; align-items: start; }
.facts svg { width: 34px; height: 34px; color: var(--coral); }
.facts strong { display: block; font-size: 18px; }
.facts span { color: var(--ink-soft); }
.privacy { background: var(--cream-deep); }
.more { display: inline-block; margin-top: 22px; font-weight: 700; }


/* ---------- FAQ ---------- */
.faq { display: grid; gap: 10px; max-width: 820px; }
.faq details { background: var(--white); border: 1px solid var(--line); border-radius: 20px; }
.faq summary {
  list-style: none; cursor: pointer; padding: 18px 54px 18px 20px; position: relative;
  font-weight: 700; font-size: 18px; line-height: 1.3;
}
.faq summary::-webkit-details-marker { display: none; }
.faq summary::after {
  content: "+"; position: absolute; right: 20px; top: 50%; transform: translateY(-50%);
  font-size: 26px; font-weight: 600; color: var(--coral); transition: transform 0.2s;
}
.faq details[open] summary::after { transform: translateY(-50%) rotate(45deg); }
.faq details p { padding: 0 20px 20px; color: var(--ink-soft); }
@media (prefers-reduced-motion: reduce) { .faq summary::after { transition: none; } }

/* ---------- Final CTA and footer ---------- */
.final { text-align: center; padding: 88px 0 96px; }
.final .wrap { display: grid; justify-items: center; gap: 22px; }
.final img { width: 170px; }
footer { border-top: 1px solid var(--line); padding: 32px 0 44px; font-size: 15px; color: var(--ink-soft); }
footer .wrap { display: grid; gap: 14px; }
footer nav { display: flex; flex-wrap: wrap; gap: 8px 20px; font-weight: 600; }
footer nav a { color: var(--ink); }
footer small { font-size: 13px; }

/* ---------- Legal pages ---------- */
.legal { padding: 24px 0 72px; }
.legal main { max-width: 740px; }
.legal h1 { font-size: clamp(32px, 6vw, 46px); margin: 8px 0 10px; }
.legal h2 { font-size: 22px; letter-spacing: -0.015em; margin: 34px 0 8px; line-height: 1.2; }
.legal p, .legal li { color: var(--ink-soft); }
.legal strong { color: var(--ink); }
.legal ul { padding-left: 22px; }
.legal li { margin-bottom: 8px; }
.legal .date { font-size: 15px; }
.legal .top .wrap, .legal footer .wrap { max-width: 772px; }
.legal main p { margin: 0 0 12px; }
