:root {
  --paper: #fffaf3;
  --paper-2: #f6efe5;
  --ink: #18211f;
  --muted: #5f6a65;
  --line: rgba(24, 33, 31, 0.14);
  --teal: #176b68;
  --teal-dark: #0e4a48;
  --coral: #e98169;
  --sun: #e6b84f;
  --soft-green: #dfeee6;
  --white: #ffffff;
  --shadow: 0 24px 70px rgba(23, 34, 31, 0.14);
  --radius: 8px;
  font-family:
    Inter, ui-sans-serif, system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
}

* {
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
}

body {
  margin: 0;
  background: var(--paper);
  color: var(--ink);
  line-height: 1.5;
}

button,
input,
textarea {
  font: inherit;
}

button {
  cursor: pointer;
}

a {
  color: inherit;
  text-decoration: none;
}

.site-header {
  position: sticky;
  top: 0;
  z-index: 20;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 24px;
  min-height: 72px;
  padding: 12px clamp(18px, 5vw, 72px);
  border-bottom: 1px solid rgba(255, 255, 255, 0.38);
  background: rgba(255, 250, 243, 0.84);
  backdrop-filter: blur(18px);
}

.brand {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  font-weight: 800;
  letter-spacing: 0;
}

.brand-mark {
  width: 32px;
  height: 32px;
  border: 8px solid var(--teal);
  border-right-color: var(--coral);
  border-bottom-color: var(--sun);
  border-radius: 50%;
}

.nav-links {
  display: flex;
  align-items: center;
  gap: 28px;
  color: var(--muted);
  font-size: 0.95rem;
}

.nav-links a:hover {
  color: var(--ink);
}

.header-cta,
.primary-btn,
.ghost-btn,
.chat-input button {
  border: 0;
  border-radius: var(--radius);
  min-height: 44px;
  padding: 0 18px;
  font-weight: 800;
}

.header-cta,
.primary-btn,
.chat-input button {
  background: var(--teal);
  color: var(--white);
  box-shadow: 0 12px 26px rgba(23, 107, 104, 0.22);
}

.header-cta:hover,
.primary-btn:hover,
.chat-input button:hover {
  background: var(--teal-dark);
}

.primary-btn.compact {
  min-height: 42px;
  padding: 0 16px;
  font-size: 0.95rem;
}

.primary-btn.full {
  width: 100%;
}

.link-btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  text-decoration: none;
}

.ghost-btn {
  border: 1px solid var(--line);
  background: transparent;
  color: var(--ink);
}

.ghost-btn:hover {
  background: rgba(24, 33, 31, 0.05);
}

.hero {
  position: relative;
  min-height: calc(100vh - 72px);
  overflow: hidden;
  display: grid;
  align-items: center;
  padding: clamp(56px, 9vw, 116px) clamp(18px, 5vw, 72px);
}

.hero-bg,
.hero-overlay {
  position: absolute;
  inset: 0;
}

.hero-bg img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.hero-overlay {
  background:
    linear-gradient(90deg, rgba(255, 250, 243, 0.96) 0%, rgba(255, 250, 243, 0.78) 42%, rgba(255, 250, 243, 0.2) 100%),
    linear-gradient(0deg, rgba(255, 250, 243, 0.95) 0%, rgba(255, 250, 243, 0) 34%);
}

.hero-content {
  position: relative;
  z-index: 1;
  width: min(700px, 100%);
}

.eyebrow {
  margin: 0 0 12px;
  color: var(--teal);
  font-size: 0.78rem;
  font-weight: 900;
  letter-spacing: 0.12em;
  text-transform: uppercase;
}

h1,
h2,
h3,
p {
  overflow-wrap: anywhere;
}

h1 {
  margin: 0;
  max-width: 760px;
  font-size: clamp(3rem, 7vw, 6.4rem);
  line-height: 0.94;
  letter-spacing: 0;
}

.hero-copy {
  max-width: 610px;
  margin: 26px 0 0;
  color: #34403c;
  font-size: clamp(1.08rem, 2vw, 1.26rem);
}

.hero-actions {
  display: flex;
  align-items: center;
  flex-wrap: wrap;
  gap: 18px;
  margin-top: 32px;
}

.hero-actions .primary-btn {
  min-height: 52px;
  padding: 0 24px;
}

.secondary-link {
  color: var(--teal-dark);
  font-weight: 800;
  border-bottom: 2px solid rgba(23, 107, 104, 0.35);
}

.mini-link {
  width: fit-content;
  color: var(--teal-dark);
  font-size: 0.94rem;
  font-weight: 850;
  border-bottom: 2px solid rgba(23, 107, 104, 0.28);
}

.trust-row {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
  margin-top: 34px;
}

.trust-row span {
  border: 1px solid rgba(23, 107, 104, 0.22);
  border-radius: 999px;
  background: rgba(255, 255, 255, 0.58);
  padding: 8px 12px;
  color: var(--teal-dark);
  font-size: 0.88rem;
  font-weight: 750;
}

.quick-start,
.test-shell,
.result-section,
.tools-section,
.ai-section,
.pricing-section,
.compliance-section {
  padding: clamp(56px, 8vw, 104px) clamp(18px, 5vw, 72px);
}

.quick-start {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 1px;
  background: var(--ink);
  color: var(--white);
  padding-top: 1px;
  padding-bottom: 1px;
}

.quick-item {
  min-height: 220px;
  background: #20302c;
  padding: clamp(24px, 4vw, 42px);
}

.quick-number {
  color: var(--coral);
  font-size: 0.88rem;
  font-weight: 900;
}

.quick-item h2 {
  margin: 38px 0 8px;
  font-size: clamp(1.35rem, 3vw, 2rem);
}

.quick-item p {
  max-width: 340px;
  margin: 0;
  color: rgba(255, 255, 255, 0.72);
}

.section-heading {
  max-width: 720px;
  margin-bottom: 34px;
}

.section-heading h2,
.result-hero h2,
.ai-copy h2,
.compliance-section h2 {
  margin: 0;
  font-size: clamp(2.05rem, 4vw, 4rem);
  line-height: 1;
  letter-spacing: 0;
}

.section-heading p:not(.eyebrow),
.ai-copy p,
.compliance-section p {
  color: var(--muted);
  font-size: 1.06rem;
}

.quiz-layout {
  display: grid;
  grid-template-columns: minmax(220px, 300px) minmax(0, 1fr);
  gap: 24px;
  align-items: start;
}

.quiz-side {
  display: grid;
  gap: 16px;
  position: sticky;
  top: 96px;
}

.progress-card,
.privacy-note,
.quiz-card,
.result-hero,
.insight-panel,
.tool-workspace,
.chat-demo,
.price-card,
.compliance-section {
  border: 1px solid var(--line);
  border-radius: var(--radius);
  background: rgba(255, 255, 255, 0.72);
  box-shadow: 0 16px 40px rgba(24, 33, 31, 0.07);
}

.progress-card,
.privacy-note {
  padding: 18px;
}

.progress-card span {
  display: block;
  margin-bottom: 12px;
  color: var(--muted);
  font-weight: 800;
}

.progress-track {
  width: 100%;
  height: 10px;
  overflow: hidden;
  border-radius: 999px;
  background: var(--paper-2);
}

.progress-bar {
  width: 8.33%;
  height: 100%;
  border-radius: inherit;
  background: var(--teal);
  transition: width 180ms ease;
}

.privacy-note {
  display: grid;
  gap: 4px;
  color: var(--muted);
  font-size: 0.95rem;
}

.privacy-note strong {
  color: var(--ink);
}

.quiz-card {
  min-height: 410px;
  padding: clamp(22px, 5vw, 44px);
}

.question-kicker {
  margin: 0 0 12px;
  color: var(--coral);
  font-weight: 900;
}

.quiz-card h3 {
  margin: 0 0 28px;
  max-width: 850px;
  font-size: clamp(1.7rem, 3vw, 3rem);
  line-height: 1.08;
}

.answers {
  display: grid;
  gap: 12px;
}

.answer-btn {
  display: flex;
  justify-content: space-between;
  gap: 16px;
  width: 100%;
  min-height: 64px;
  border: 1px solid var(--line);
  border-radius: var(--radius);
  background: #ffffff;
  padding: 16px 18px;
  color: var(--ink);
  font-weight: 800;
  text-align: left;
}

.answer-btn small {
  color: var(--muted);
  font-weight: 700;
}

.answer-btn:hover,
.answer-btn.selected {
  border-color: rgba(23, 107, 104, 0.42);
  background: var(--soft-green);
}

.quiz-controls {
  display: flex;
  justify-content: space-between;
  gap: 12px;
  margin-top: 26px;
}

.result-section[hidden] {
  display: none;
}

.result-section {
  background: #edf4ee;
}

.result-hero {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 24px;
  padding: clamp(24px, 5vw, 46px);
}

.result-hero p:not(.eyebrow) {
  max-width: 760px;
  color: var(--muted);
  font-size: 1.08rem;
}

.score-ring {
  flex: 0 0 auto;
  display: grid;
  place-items: center;
  width: 156px;
  height: 156px;
  border: 13px solid var(--teal);
  border-right-color: var(--coral);
  border-radius: 50%;
  background: var(--white);
}

.score-ring span {
  font-size: 2.4rem;
  font-weight: 900;
  line-height: 1;
}

.score-ring small {
  color: var(--muted);
  font-weight: 800;
}

.result-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 18px;
  margin-top: 18px;
}

.insight-panel {
  padding: 24px;
}

.insight-panel h3 {
  margin: 0 0 14px;
  font-size: 1.2rem;
}

.insight-panel ul {
  margin: 0;
  padding-left: 18px;
  color: var(--muted);
}

.insight-panel p {
  margin: 0 0 18px;
  color: var(--muted);
}

.insight-panel.caution {
  background: #fff3e7;
}

.tool-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 14px;
  margin-bottom: 16px;
}

.tool-card {
  display: flex;
  align-items: center;
  gap: 12px;
  min-height: 74px;
  border: 1px solid var(--line);
  border-radius: var(--radius);
  background: #ffffff;
  padding: 14px;
  color: var(--ink);
  font-weight: 850;
  text-align: left;
}

.tool-card:hover,
.tool-card.active {
  border-color: rgba(23, 107, 104, 0.4);
  background: var(--soft-green);
}

.tool-icon {
  display: grid;
  place-items: center;
  flex: 0 0 auto;
  width: 38px;
  height: 38px;
  border-radius: 50%;
  background: var(--ink);
  color: var(--white);
  font-weight: 900;
}

.tool-workspace {
  min-height: 340px;
  padding: clamp(22px, 5vw, 40px);
}

.tool-pane {
  display: none;
}

.tool-pane.active {
  display: block;
}

.breathing-tool.active {
  display: grid;
  grid-template-columns: 220px minmax(0, 1fr);
  gap: clamp(22px, 5vw, 46px);
  align-items: center;
}

.breath-orb {
  width: 190px;
  height: 190px;
  border-radius: 50%;
  background:
    radial-gradient(circle at 34% 30%, #ffffff 0 10%, transparent 11%),
    radial-gradient(circle, #85c8b8 0%, #176b68 72%);
  box-shadow: 0 18px 60px rgba(23, 107, 104, 0.28);
  transform: scale(0.82);
  transition: transform 3.7s ease, background 500ms ease;
}

.breath-orb.expand {
  transform: scale(1.08);
}

.breathing-tool h3,
.tool-pane h3 {
  margin: 0 0 8px;
  font-size: clamp(1.55rem, 3vw, 2.7rem);
}

.breathing-tool p,
.tool-pane p,
.grounding-list {
  max-width: 720px;
  color: var(--muted);
}

.grounding-list {
  display: grid;
  gap: 12px;
  margin: 0;
  padding-left: 22px;
  font-size: 1.02rem;
}

.small-note,
.demo-note {
  color: var(--muted);
  font-size: 0.92rem;
}

label {
  display: block;
  margin-bottom: 8px;
  color: var(--muted);
  font-weight: 800;
}

textarea,
input {
  width: 100%;
  border: 1px solid var(--line);
  border-radius: var(--radius);
  background: #ffffff;
  padding: 14px;
  color: var(--ink);
  resize: vertical;
}

textarea:focus,
input:focus {
  outline: 3px solid rgba(23, 107, 104, 0.17);
  border-color: var(--teal);
}

.reframe-output {
  min-height: 70px;
  margin-top: 16px;
  border-left: 4px solid var(--teal);
  background: var(--soft-green);
  padding: 14px;
  color: #24423d;
}

.sleep-steps {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 10px;
  margin-top: 18px;
}

.sleep-steps span {
  display: grid;
  place-items: center;
  min-height: 86px;
  border: 1px solid var(--line);
  border-radius: var(--radius);
  background: #ffffff;
  padding: 12px;
  text-align: center;
  font-weight: 850;
}

.ai-section {
  display: grid;
  grid-template-columns: minmax(0, 0.9fr) minmax(320px, 1.1fr);
  gap: clamp(24px, 6vw, 70px);
  align-items: center;
  background: #18211f;
  color: var(--white);
}

.ai-copy p {
  color: rgba(255, 255, 255, 0.72);
}

.chat-demo {
  display: grid;
  gap: 12px;
  background: #f9f4ec;
  padding: 18px;
  color: var(--ink);
}

.message {
  width: fit-content;
  max-width: 82%;
  border-radius: var(--radius);
  padding: 12px 14px;
  font-size: 0.96rem;
}

.message.user {
  justify-self: end;
  background: var(--teal);
  color: var(--white);
}

.message.assistant {
  background: #ffffff;
  border: 1px solid var(--line);
}

.chat-input {
  display: grid;
  grid-template-columns: minmax(0, 1fr) 92px;
  gap: 10px;
  margin-top: 8px;
}

.pricing-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 18px;
}

.price-card {
  display: grid;
  align-content: start;
  gap: 18px;
  min-height: 430px;
  padding: clamp(22px, 4vw, 34px);
}

.price-card.featured {
  border: 2px solid var(--teal);
  background: #f2fbf7;
}

.plan-kicker {
  margin: 0;
  color: var(--coral);
  font-size: 0.78rem;
  font-weight: 900;
  letter-spacing: 0.1em;
  text-transform: uppercase;
}

.price-card h3 {
  margin: 0;
  font-size: 1.55rem;
}

.price {
  margin: 0;
  font-size: 2.55rem;
  font-weight: 950;
  line-height: 1;
}

.price-card ul {
  display: grid;
  gap: 10px;
  margin: 0;
  padding-left: 18px;
  color: var(--muted);
}

.type-library {
  padding: clamp(56px, 8vw, 104px) clamp(18px, 5vw, 72px);
  background: #edf4ee;
}

.type-link-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 14px;
}

.type-link-grid a {
  display: flex;
  align-items: center;
  min-height: 86px;
  border: 1px solid rgba(23, 107, 104, 0.22);
  border-radius: var(--radius);
  background: rgba(255, 255, 255, 0.78);
  padding: 18px;
  color: var(--teal-dark);
  font-weight: 900;
  box-shadow: 0 12px 28px rgba(24, 33, 31, 0.05);
}

.type-link-grid a:hover {
  border-color: rgba(23, 107, 104, 0.48);
  background: #ffffff;
}

.compliance-section {
  margin: clamp(44px, 6vw, 72px) clamp(18px, 5vw, 72px);
  padding: clamp(24px, 5vw, 40px);
}

.content-page {
  padding-bottom: clamp(56px, 8vw, 104px);
}

.content-hero {
  padding: clamp(58px, 9vw, 112px) clamp(18px, 5vw, 72px) clamp(38px, 6vw, 76px);
  background:
    linear-gradient(90deg, rgba(223, 238, 230, 0.88), rgba(255, 250, 243, 0.95)),
    var(--paper);
}

.content-hero h1 {
  max-width: 900px;
  font-size: clamp(2.8rem, 7vw, 6rem);
}

.content-hero p {
  max-width: 760px;
  color: var(--muted);
  font-size: clamp(1.04rem, 2vw, 1.22rem);
}

.content-grid,
.timeline,
.sample-report {
  margin: 0 clamp(18px, 5vw, 72px);
}

.content-grid {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 18px;
  padding-top: clamp(34px, 6vw, 72px);
}

.content-panel,
.day-card,
.sample-report {
  border: 1px solid var(--line);
  border-radius: var(--radius);
  background: rgba(255, 255, 255, 0.76);
  box-shadow: 0 16px 40px rgba(24, 33, 31, 0.06);
}

.content-panel {
  min-height: 250px;
  padding: clamp(22px, 4vw, 34px);
}

.content-panel h2,
.day-card h2,
.sample-report h2 {
  margin: 12px 0 10px;
  font-size: clamp(1.35rem, 3vw, 2.05rem);
}

.content-panel p,
.day-card p,
.sample-report p {
  color: var(--muted);
}

.locked-panel {
  position: relative;
  overflow: hidden;
}

.locked-panel::after {
  content: "Paid section";
  position: absolute;
  top: 16px;
  right: 16px;
  border-radius: 999px;
  background: #fff3e7;
  color: #9b4e39;
  padding: 6px 10px;
  font-size: 0.78rem;
  font-weight: 900;
}

.sample-report {
  margin-top: 18px;
  padding: clamp(24px, 5vw, 40px);
}

.report-table {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 1px;
  overflow: hidden;
  border: 1px solid var(--line);
  border-radius: var(--radius);
  background: var(--line);
}

.report-table div {
  display: grid;
  gap: 8px;
  min-height: 128px;
  background: #ffffff;
  padding: 18px;
}

.report-table strong {
  color: var(--ink);
}

.report-table span {
  color: var(--muted);
}

.timeline {
  display: grid;
  grid-template-columns: repeat(7, minmax(220px, 1fr));
  gap: 14px;
  overflow-x: auto;
  padding: clamp(34px, 6vw, 72px) 0 12px;
}

.day-card {
  min-height: 260px;
  padding: 22px;
}

.day-card span {
  color: var(--coral);
  font-size: 0.82rem;
  font-weight: 950;
  letter-spacing: 0.08em;
  text-transform: uppercase;
}

.article-section,
.faq-section,
.related-section,
.type-cta {
  margin: clamp(24px, 5vw, 52px) clamp(18px, 5vw, 72px) 0;
}

.article-section {
  max-width: 980px;
}

.article-section h2,
.faq-section h2,
.related-section h2,
.type-cta h2 {
  margin: 0 0 14px;
  font-size: clamp(1.8rem, 4vw, 3rem);
  line-height: 1.04;
}

.article-section p,
.article-section li,
.faq-section p,
.related-section p,
.type-cta p {
  color: var(--muted);
  font-size: 1.04rem;
}

.article-section p {
  max-width: 820px;
}

.content-list,
.step-list,
.faq-list {
  display: grid;
  gap: 12px;
  margin: 18px 0 0;
  padding-left: 22px;
}

.split-panels,
.faq-list {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 16px;
}

.split-panels {
  margin-top: 22px;
}

.split-panel,
.faq-item,
.type-cta {
  border: 1px solid var(--line);
  border-radius: var(--radius);
  background: rgba(255, 255, 255, 0.76);
  box-shadow: 0 16px 40px rgba(24, 33, 31, 0.06);
}

.split-panel,
.faq-item {
  padding: clamp(20px, 4vw, 30px);
}

.split-panel h3,
.faq-item h3 {
  margin: 0 0 8px;
  font-size: 1.18rem;
}

.split-panel p,
.faq-item p {
  margin: 0;
}

.type-cta {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 20px;
  padding: clamp(24px, 5vw, 40px);
  background: #edf4ee;
}

.type-cta p {
  max-width: 720px;
  margin: 0;
}

.related-links {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
  margin-top: 16px;
}

.related-links a {
  border: 1px solid rgba(23, 107, 104, 0.22);
  border-radius: 999px;
  background: rgba(255, 255, 255, 0.8);
  padding: 9px 12px;
  color: var(--teal-dark);
  font-weight: 850;
}

.source-note {
  margin-top: 18px;
  color: var(--muted);
  font-size: 0.92rem;
}

.source-note a {
  color: var(--teal-dark);
  font-weight: 800;
  border-bottom: 1px solid rgba(23, 107, 104, 0.35);
}

.site-footer {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 18px;
  padding: 28px clamp(18px, 5vw, 72px);
  border-top: 1px solid var(--line);
  color: var(--muted);
  flex-wrap: wrap;
}

.site-footer span {
  color: var(--ink);
  font-weight: 850;
}

.site-footer a:hover {
  color: var(--ink);
}

.toast {
  position: fixed;
  left: 50%;
  bottom: 24px;
  z-index: 50;
  max-width: min(460px, calc(100vw - 28px));
  transform: translateX(-50%) translateY(120px);
  border-radius: var(--radius);
  background: var(--ink);
  color: var(--white);
  padding: 14px 16px;
  box-shadow: var(--shadow);
  transition: transform 180ms ease;
}

.toast.show {
  transform: translateX(-50%) translateY(0);
}

.waitlist-form {
  display: grid;
  gap: 10px;
  max-width: 680px;
  margin: 24px 0 8px;
}

.waitlist-form div {
  display: grid;
  grid-template-columns: minmax(0, 1fr) 150px;
  gap: 10px;
}

.waitlist-form span {
  color: var(--muted);
  font-size: 0.92rem;
}

@media (max-width: 980px) {
  .nav-links {
    display: none;
  }

  .hero {
    min-height: auto;
  }

  .hero-overlay {
    background: linear-gradient(90deg, rgba(255, 250, 243, 0.97), rgba(255, 250, 243, 0.7));
  }

  .quick-start,
  .quiz-layout,
  .result-grid,
  .tool-grid,
  .ai-section,
  .pricing-grid,
  .type-link-grid,
  .content-grid,
  .report-table,
  .split-panels,
  .faq-list {
    grid-template-columns: 1fr;
  }

  .type-cta {
    align-items: flex-start;
    flex-direction: column;
  }

  .quiz-side {
    position: static;
  }

  .breathing-tool.active {
    grid-template-columns: 1fr;
    justify-items: center;
    text-align: center;
  }

  .sleep-steps {
    grid-template-columns: repeat(2, 1fr);
  }
}

@media (max-width: 620px) {
  .site-header {
    min-height: 64px;
  }

  .header-cta {
    display: none;
  }

  h1 {
    font-size: clamp(2.65rem, 16vw, 4rem);
  }

  .hero {
    padding-top: 60px;
  }

  .quick-item {
    min-height: 180px;
  }

  .result-hero {
    align-items: flex-start;
    flex-direction: column;
  }

  .score-ring {
    width: 128px;
    height: 128px;
    border-width: 10px;
  }

  .answer-btn {
    align-items: flex-start;
    flex-direction: column;
    gap: 4px;
  }

  .tool-card {
    min-height: 64px;
  }

  .breath-orb {
    width: 150px;
    height: 150px;
  }

  .sleep-steps,
  .chat-input,
  .waitlist-form div {
    grid-template-columns: 1fr;
  }
}
