/* Coach While You Sleep — landing page. Design C "Soft Power", light + dark. */

:root {
  color-scheme: light;
  --bg: #ffffff;
  --text: #17171c;
  --text-2: #3e3e48;
  --muted: #5c5c66;
  --soft: #f4f4f6;
  --card: #ffffff;
  --line: #17171c;
  --blush: #fff0f5;
  --blush-text: #a3083f;
  --accent: #e0115f;
  --on-accent: #ffffff;
  --on-accent-2: #ffe3ee;
  --accent-text: #e0115f;
  --ink: #17171c;
  --on-ink: #ffffff;
  --on-ink-2: #d4d4dc;
  --pink-on-ink: #ff7aa8;
  --btn-dark: #17171c;
  --btn-dark-text: #ffffff;
  --shadow: 0 12px 30px rgba(23, 23, 28, 0.15);
  --display: "Bricolage Grotesque", "Inter", system-ui, sans-serif;
}

[data-theme="dark"] {
  color-scheme: dark;
  --bg: #0f0e12;
  --text: #f4f2f5;
  --text-2: #cfcbd4;
  --muted: #a9a6b2;
  --soft: #1b1a21;
  --card: #1b1a21;
  --line: #3a3842;
  --blush: #24121c;
  --blush-text: #ff8db5;
  --accent: #e0115f;
  --on-accent: #ffffff;
  --on-accent-2: #ffe3ee;
  --accent-text: #ff6f9f;
  --ink: #1b1a21;
  --on-ink: #f4f2f5;
  --on-ink-2: #cfcbd4;
  --pink-on-ink: #ff7aa8;
  --btn-dark: #f4f2f5;
  --btn-dark-text: #0f0e12;
  --shadow: 0 12px 30px rgba(0, 0, 0, 0.45);
}

* { box-sizing: border-box; }
html { scroll-behavior: smooth; }
@media (prefers-reduced-motion: reduce) { html { scroll-behavior: auto; } }
body {
  margin: 0;
  background: var(--bg);
  color: var(--text);
  font: 17px/1.6 Inter, system-ui, -apple-system, sans-serif;
  -webkit-font-smoothing: antialiased;
}
img { max-width: 100%; }
a { color: inherit; }
h1, h2, h3, p { margin: 0; }
input, select, textarea, button { font: inherit; color: inherit; }

.sr-only { position: absolute; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; }
.skip { position: absolute; left: -999px; top: 8px; background: var(--btn-dark); color: var(--btn-dark-text); padding: 10px 16px; border-radius: 10px; z-index: 10; }
.skip:focus { left: 8px; }
:focus-visible { outline: 3px solid var(--accent); outline-offset: 3px; }

.wrap { max-width: 1280px; margin: 0 auto; padding-left: 32px; padding-right: 32px; }
.section { padding-top: 110px; padding-bottom: 110px; }
@media (max-width: 640px) {
  .wrap { padding-left: 20px; padding-right: 20px; }
  .section { padding-top: 72px; padding-bottom: 72px; }
}

/* Type */
.display, .h2, .wordmark, h3, .num, .price, .closer, .math, .quote, .step-num {
  font-family: var(--display);
}
.display { font-weight: 800; font-size: clamp(46px, 6.6vw, 100px); line-height: 1.04; letter-spacing: -0.035em; text-wrap: balance; }
.h2 { font-weight: 800; font-size: clamp(38px, 5.4vw, 80px); line-height: 0.98; letter-spacing: -0.03em; text-wrap: balance; }
.h2.narrow, .lead.narrow { max-width: 900px; }
.center { text-align: center; }
.lead { margin-top: 24px; font-size: 20px; color: var(--text-2); max-width: 620px; }
.fine { margin-top: 24px; font-size: 14px; color: var(--muted); }
.fine.center { margin-left: auto; margin-right: auto; max-width: 760px; }
.label { margin: 36px 0 12px; font-size: 14px; font-weight: 600; color: var(--muted); }
.accent-text { color: var(--accent-text); }
.highlight {
  background: var(--accent); color: var(--on-accent);
  padding: 0 0.12em; border-radius: 0.12em;
  -webkit-box-decoration-break: clone; box-decoration-break: clone;
}

/* Buttons */
.btn { display: inline-block; text-decoration: none; font-weight: 600; padding: 18px 30px; border-radius: 16px; border: 0; cursor: pointer; text-align: center; }
.btn-sm { padding: 12px 20px; border-radius: 14px; }
.btn-accent { background: var(--accent); color: var(--on-accent); }
.btn-soft { background: var(--soft); color: var(--text); }
.btn-dark { background: var(--btn-dark); color: var(--btn-dark-text); }
.btn:hover { filter: brightness(1.08); }

/* Header */
.site-header { display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between; gap: 12px; padding-top: 22px; padding-bottom: 22px; }
.wordmark { font-weight: 800; font-size: 24px; letter-spacing: -0.02em; text-decoration: none; }
.wordmark span { color: var(--accent-text); }
.nav { display: flex; flex-wrap: wrap; align-items: center; gap: 4px; font-size: 15px; font-weight: 500; }
.nav > a:not(.btn) { text-decoration: none; padding: 10px 14px; border-radius: 10px; }
.nav > a:not(.btn):hover { background: var(--soft); }
.theme-toggle { width: 44px; height: 44px; display: grid; place-items: center; border-radius: 12px; border: 0; background: var(--soft); cursor: pointer; margin: 0 6px; }
.theme-toggle .icon-sun { display: none; }
[data-theme="dark"] .theme-toggle .icon-sun { display: block; }
[data-theme="dark"] .theme-toggle .icon-moon { display: none; }
@media (max-width: 720px) { .nav > a:not(.btn) { display: none; } .btn-sm { padding: 10px 14px; font-size: 14px; } .theme-toggle { margin: 0 2px; } }

/* Hero */
.hero { display: flex; flex-wrap: wrap; align-items: center; gap: 56px; padding-top: 40px; padding-bottom: 100px; }
.hero-text { flex: 1.25 1 520px; min-width: 0; }
.eyebrow { display: inline-flex; align-items: center; gap: 8px; margin-bottom: 28px; background: var(--blush); color: var(--blush-text); padding: 8px 14px; border-radius: 10px; font-size: 14px; font-weight: 600; }
.dot { width: 8px; height: 8px; border-radius: 50%; background: var(--accent); flex: none; }
.actions { display: flex; flex-wrap: wrap; gap: 12px; margin-top: 36px; }
.hero-photo { flex: 1 1 360px; min-width: 0; position: relative; padding: 24px 0; }
.photo-tilt { position: absolute; inset: 0 24px 0 48px; background: var(--blush); border-radius: 40px; transform: rotate(4deg); }
.hero-photo img { position: relative; display: block; width: 100%; height: 600px; object-fit: cover; object-position: 50% 28%; border-radius: 36px; }
.sticker { position: absolute; margin: 0; padding: 12px 18px; border-radius: 14px; font-weight: 600; font-size: 15px; }
.sticker-1 { top: 56px; left: -14px; background: var(--btn-dark); color: var(--btn-dark-text); transform: rotate(-4deg); }
.sticker-2 { top: 46%; right: -10px; background: var(--card); color: var(--text); box-shadow: var(--shadow); transform: rotate(3deg); }
.sticker-3 { bottom: 60px; left: 10px; background: var(--accent); color: var(--on-accent); transform: rotate(-2deg); }
@media (max-width: 640px) {
  .display { line-height: 1.1; }
  .hero { padding-bottom: 64px; gap: 40px; }
  .hero-photo img { height: 460px; }
  .sticker-1 { left: 0; } .sticker-2 { right: 0; }
}

/* Bands */
.band-accent { background: var(--accent); color: var(--on-accent); }
.lead.on-accent { color: var(--on-accent-2); }
.band-blush { background: var(--blush); }
.band-soft { background: var(--soft); }
.band-ink { background: var(--ink); color: var(--on-ink); }
.lead.on-ink { color: var(--on-ink-2); }

/* Problem cards */
.grid-4 { display: grid; grid-template-columns: repeat(auto-fit, minmax(min(100%, 250px), 1fr)); gap: 16px; margin-top: 56px; }
.card { background: #ffffff; color: #17171c; border-radius: 24px; padding: 30px; }
[data-theme="dark"] .card { background: #0f0e12; color: #f4f2f5; }
.card .num { font-weight: 800; font-size: 20px; color: #e0115f; }
[data-theme="dark"] .card .num { color: #ff6f9f; }
.card h3 { margin: 14px 0 8px; font-size: 24px; line-height: 1.1; font-weight: 700; }
.card p:last-child { color: #4a4a55; font-size: 16px; }
[data-theme="dark"] .card p:last-child { color: #cfcbd4; }
.closer { margin-top: 80px; font-weight: 700; font-size: clamp(28px, 3.4vw, 48px); line-height: 1.08; letter-spacing: -0.02em; max-width: 960px; }

/* Offer */
.split { display: flex; flex-wrap: wrap; gap: 56px; }
.split-side { flex: 1 1 360px; min-width: 0; }
.split-main { flex: 1.3 1 480px; min-width: 0; }
.pills { list-style: none; margin: 0; padding: 0; display: flex; flex-wrap: wrap; gap: 8px; }
.pills li { background: var(--blush); color: var(--blush-text); border-radius: 10px; padding: 8px 14px; font-size: 15px; font-weight: 500; }
.feature-grid { display: grid; grid-template-columns: repeat(auto-fit, minmax(230px, 1fr)); gap: 14px; align-content: start; }
.feature { background: var(--soft); border-radius: 22px; padding: 26px; }
.feature h3 { margin-bottom: 6px; font-size: 22px; font-weight: 700; }
.feature p { color: var(--text-2); font-size: 16px; }
.feature-ink { background: var(--btn-dark); color: var(--btn-dark-text); }
.feature-ink p { color: inherit; opacity: 0.85; }

/* Demo */
.demo { display: flex; flex-wrap: wrap; align-items: center; gap: 64px; }
.demo-text { flex: 1 1 400px; min-width: 0; }
.tag { display: inline-block; margin-bottom: 18px; background: var(--btn-dark); color: var(--btn-dark-text); padding: 6px 12px; border-radius: 8px; font-size: 13px; font-weight: 700; letter-spacing: 0.06em; text-transform: uppercase; }
.tag-pink { background: var(--accent); color: var(--on-accent); }
.demo-rules { list-style: none; margin: 28px 0 0; padding: 0; display: flex; flex-direction: column; gap: 10px; color: var(--text-2); font-size: 16px; }
.demo-rules li, .checks li { display: flex; gap: 12px; }
.demo-rules svg { color: var(--accent-text); flex: none; margin-top: 2px; }

.phone { flex: 0 1 410px; min-width: 0; margin: 0 auto; background: #17171c; border-radius: 48px; padding: 14px; box-shadow: 0 40px 80px rgba(160, 8, 63, 0.25); }
[data-theme="dark"] .phone { background: #2a2830; box-shadow: 0 40px 80px rgba(0, 0, 0, 0.6); }
.screen {
  --c-bg: #faf4ee; --c-surface: #fffdfb; --c-accent: #7a1f3d; --c-accent-text: #ffffff; --c-text: #2b1d22; --c-muted: #6e5a60; --c-user: #f3dde0;
  color-scheme: light; background: var(--c-bg); color: var(--c-text); border-radius: 36px; overflow: hidden; display: flex; flex-direction: column; height: 600px;
}
.phone .screen { background: var(--c-bg); }
.chat-head { display: flex; align-items: center; gap: 12px; padding: 22px 20px 14px; background: var(--c-surface); border-bottom: 1px solid rgba(0, 0, 0, 0.08); }
.chat-head img { width: 40px; height: 40px; border-radius: 50%; object-fit: cover; object-position: 50% 25%; }
.chat-name { font-family: Georgia, serif; font-weight: 600; }
.chat-title { font-size: 12px; color: var(--c-muted); }
.chat-log { flex: 1; overflow-y: auto; padding: 16px; display: flex; flex-direction: column; gap: 10px; font-size: 15px; line-height: 1.5; }
.msg { padding: 10px 14px; border-radius: 16px; max-width: 88%; overflow-wrap: anywhere; }
.msg p { margin: 0 0 8px; } .msg p:last-child { margin: 0; }
.msg ul { margin: 4px 0 8px; padding-left: 20px; }
.msg.assistant { background: var(--c-surface); border-top-left-radius: 4px; font-family: Georgia, "Times New Roman", serif; }
.msg.user { background: var(--c-user); margin-left: auto; border-top-right-radius: 4px; }
.typing { color: var(--c-muted); font-style: italic; }
.starters { display: flex; flex-wrap: wrap; gap: 6px; }
.starters button { background: #ffffff; border: 1px solid var(--c-accent); color: var(--c-accent); border-radius: 999px; padding: 7px 12px; font-size: 13px; cursor: pointer; text-align: left; }
.cap { background: #17171c; color: #ffffff; border-radius: 18px; padding: 16px; font-size: 14px; line-height: 1.5; }
.cap strong { display: block; font-size: 15px; margin-bottom: 4px; }
.cap a { display: inline-block; margin-top: 12px; background: #e0115f; color: #ffffff; text-decoration: none; font-weight: 600; padding: 10px 16px; border-radius: 12px; }
.chat-input { display: flex; gap: 8px; align-items: flex-end; padding: 12px 14px 6px; background: var(--c-surface); }
.chat-input textarea { flex: 1; min-width: 0; resize: none; border: 1px solid #d8cbc0; border-radius: 20px; padding: 10px 14px; font-size: 15px; background: #ffffff; color: var(--c-text); max-height: 110px; }
.chat-input button { background: var(--c-accent); color: var(--c-accent-text); border: 0; border-radius: 999px; padding: 10px 16px; font-size: 14px; cursor: pointer; }
.chat-input button:disabled, .chat-input textarea:disabled { opacity: 0.5; cursor: not-allowed; }
.chat-meta { display: flex; justify-content: space-between; gap: 12px; padding: 4px 22px 18px; background: var(--c-surface); font-size: 12px; color: var(--c-muted); }
@media (max-width: 640px) { .screen { height: 540px; } .phone { border-radius: 40px; } .screen { border-radius: 30px; } }

/* Steps */
.steps { list-style: none; margin: 56px 0 0; padding: 0; display: grid; grid-template-columns: repeat(auto-fit, minmax(270px, 1fr)); gap: 16px; }
.step { border: 2px solid var(--line); border-radius: 26px; padding: 32px; }
.step-num { width: 52px; height: 52px; border-radius: 50%; background: var(--accent); color: var(--on-accent); display: grid; place-items: center; font-weight: 800; font-size: 22px; }
.step h3 { margin: 24px 0 8px; font-size: 26px; font-weight: 700; }
.step p { color: var(--text-2); }
.note { margin-top: 28px; background: var(--soft); border-radius: 20px; padding: 24px 28px; font-size: 18px; }

/* About */
.about { display: flex; flex-wrap: wrap; align-items: flex-start; gap: 64px; }
.about > img { flex: 1 1 340px; min-width: 0; width: 100%; height: 600px; object-fit: cover; object-position: 50% 28%; border-radius: 36px; }
.about > div { flex: 1.2 1 460px; min-width: 0; }
.tag-pink { margin-bottom: 18px; }
.quote { margin: 32px 0; padding: 22px 26px; background: var(--accent); color: var(--on-accent); border-radius: 20px; font-weight: 700; font-size: 28px; line-height: 1.15; }
.checks { list-style: none; margin: 0; padding: 0; display: flex; flex-direction: column; gap: 12px; color: var(--on-ink-2); }
.checks svg { color: var(--pink-on-ink); flex: none; margin-top: 3px; }
.checks strong { color: var(--on-ink); font-weight: 600; }
@media (max-width: 640px) { .about > img { height: 440px; } }

/* Pricing */
.pricing { margin-top: 56px; border: 2px solid var(--line); border-radius: 32px; overflow: hidden; }
.pricing-banner { background: var(--accent); color: var(--on-accent); padding: 18px 32px; display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between; gap: 12px; }
.pricing-banner a { color: var(--on-accent); font-weight: 700; }
.plans { display: flex; flex-wrap: wrap; }
.plan { flex: 1 1 380px; min-width: 0; padding: 44px; }
.plan-soft { background: var(--soft); }
.plan-name { font-weight: 600; color: var(--muted); }
.price { margin-top: 8px; font-weight: 800; font-size: 64px; line-height: 1; letter-spacing: -0.03em; }
.price s { font-size: 28px; font-weight: 700; color: var(--muted); letter-spacing: 0; margin-right: 6px; text-decoration-thickness: 2px; }
.price .per { font-size: 24px; }
.save { display: inline-block; margin-top: 14px; background: var(--blush); color: var(--blush-text); padding: 5px 12px; border-radius: 8px; font-size: 14px; font-weight: 700; }
.plan ul { margin: 24px 0 0; padding-left: 20px; display: flex; flex-direction: column; gap: 8px; color: var(--text-2); }
.math { margin-top: 32px; text-align: center; font-weight: 700; font-size: 26px; letter-spacing: -0.01em; line-height: 1.25; }
@media (max-width: 640px) { .plan { padding: 30px; } .price { font-size: 52px; } .pricing-banner { padding: 18px 24px; } }

/* FAQ */
.faq { margin-top: 48px; display: grid; grid-template-columns: repeat(auto-fit, minmax(min(100%, 440px), 1fr)); gap: 14px; }
.faq-item { background: var(--card); border-radius: 22px; padding: 28px; }
[data-theme="dark"] .faq-item { background: var(--bg); }
.faq-item h3 { margin-bottom: 8px; font-size: 21px; font-weight: 700; }
.faq-item p { color: var(--text-2); font-size: 16px; }

/* Call + form */
.call { display: flex; flex-wrap: wrap; gap: 56px; }
.call > div { flex: 1 1 380px; min-width: 0; }
.lead-form { flex: 1 1 460px; min-width: 0; background: var(--card); color: var(--text); border-radius: 32px; padding: 40px; display: flex; flex-direction: column; gap: 16px; font-size: 15px; }
.lead-form .row { display: flex; flex-wrap: wrap; gap: 16px; }
.lead-form .row .field { flex: 1 1 200px; }
.field { flex: none; display: flex; flex-direction: column; gap: 6px; border: 0; margin: 0; padding: 0; min-width: 0; }
.field label, .field legend { font-weight: 600; padding: 0; }
.field legend { margin-bottom: 8px; }
.field input, .field select, .field textarea { background: var(--soft); border: 2px solid transparent; border-radius: 14px; padding: 13px 14px; width: 100%; }
.field textarea { resize: vertical; }
.field input:focus, .field select:focus, .field textarea:focus { border-color: var(--accent); outline: none; }
.checkboxes { display: flex; flex-wrap: wrap; gap: 8px; }
.checkboxes label { white-space: nowrap; display: flex; gap: 8px; align-items: center; background: var(--soft); border-radius: 10px; padding: 8px 12px; font-weight: 500; cursor: pointer; }
.hp { position: absolute; left: -9999px; width: 1px; height: 1px; overflow: hidden; }
.form-error { color: #b00840; font-weight: 600; min-height: 0; }
[data-theme="dark"] .form-error { color: #ff8db5; }
.form-error:empty { display: none; }
.lead-form button[disabled] { opacity: 0.6; cursor: wait; }
.thanks { display: flex; flex-direction: column; justify-content: center; gap: 10px; text-align: center; }
.thanks h3 { font-family: var(--display); font-size: 34px; font-weight: 800; letter-spacing: -0.02em; }
.thanks p { color: var(--text-2); font-size: 18px; }
@media (max-width: 640px) { .lead-form { padding: 26px; border-radius: 26px; } }

/* Footer */
.site-footer { display: flex; flex-wrap: wrap; justify-content: space-between; align-items: center; gap: 12px; padding-top: 36px; padding-bottom: 36px; font-size: 14px; color: var(--muted); }
.site-footer .wordmark { font-size: 20px; color: var(--text); }
