/* DeskWell — calm editorial landing page
   Design language adapted from the DeskUnlock design system:
   warm paper, forest green, soft beige, Newsreader + DM Sans. */

:root {
  /* Color tokens */
  --forest: #1B5E45;
  --forest-deep: #164a37;
  --paper: #F4F1EA;
  --sand: #F7F0E8;
  --stone: #D9D4CA;
  --ink: #23302a;      /* soft near-black green for long-form text */
  --muted: #5f6b63;
  --input-surface: #3D403D;
  --input-border: #2A3330;
  --white: #ffffff;

  /* Type */
  --serif: "Newsreader", Georgia, "Times New Roman", serif;
  --sans: "DM Sans", -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;

  /* Radius & shadow */
  --pill: 999px;
  --radius: 18px;
  --radius-lg: 24px;
  --shadow-cta: rgba(255, 255, 255, 0.12) 0 1px 0 0 inset, rgba(27, 94, 69, 0.28) 0 8px 20px 0;
  --shadow-soft: 0 1px 2px rgba(27, 42, 34, 0.04), 0 12px 30px rgba(27, 42, 34, 0.06);

  /* Layout */
  --maxw: 1080px;
  --gutter: clamp(20px, 5vw, 48px);
}

/* Reset-ish */
*, *::before, *::after { box-sizing: border-box; }
html { scroll-behavior: smooth; }
body {
  margin: 0;
  font-family: var(--sans);
  font-size: 18px;
  line-height: 1.65;
  color: var(--ink);
  background: var(--paper);
  -webkit-font-smoothing: antialiased;
  text-rendering: optimizeLegibility;
}
h1, h2, h3 { font-family: var(--serif); font-weight: 500; line-height: 1.12; color: var(--forest); margin: 0; letter-spacing: -0.01em; }
p { margin: 0 0 1em; }
a { color: var(--forest); }
em { font-style: italic; }
strong { font-weight: 600; color: var(--forest-deep); }

.wrap { width: 100%; max-width: var(--maxw); margin-inline: auto; padding-inline: var(--gutter); }

.visually-hidden, .skip-link {
  position: absolute; width: 1px; height: 1px; padding: 0; margin: -1px;
  overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; border: 0;
}
.skip-link:focus {
  position: fixed; top: 12px; left: 12px; width: auto; height: auto;
  clip: auto; padding: 10px 16px; background: var(--forest); color: #fff;
  border-radius: var(--pill); z-index: 100;
}

/* ---------- Buttons ---------- */
.btn {
  display: inline-flex; align-items: center; justify-content: center;
  gap: 8px; font-family: var(--sans); font-weight: 600; font-size: 16px;
  text-decoration: none; cursor: pointer; border: 0;
  padding: 14px 26px; border-radius: var(--pill);
  transition: transform .15s ease, box-shadow .15s ease, background-color .15s ease;
}
.btn:active { transform: translateY(1px); }
.btn-primary {
  background: var(--forest); color: #fff; box-shadow: var(--shadow-cta);
}
.btn-primary:hover { background: var(--forest-deep); }
.btn-secondary {
  background: var(--sand); color: var(--forest);
  border: 1px solid var(--stone);
}
.btn-secondary:hover { background: #efe6da; }
.btn-sm { padding: 11px 20px; font-size: 15px; }
.btn-block { width: 100%; }

/* ---------- Header ---------- */
.site-header {
  position: sticky; top: 0; z-index: 40;
  background: rgba(244, 241, 234, 0.85);
  backdrop-filter: saturate(140%) blur(8px);
  border-bottom: 1px solid rgba(217, 212, 202, 0.7);
}
.header-inner { display: flex; align-items: center; justify-content: space-between; height: 66px; }
.brand { display: inline-flex; align-items: center; gap: 9px; color: var(--forest); text-decoration: none; }
.brand-mark { color: var(--forest); }
.brand-name { font-family: var(--serif); font-size: 22px; font-weight: 600; letter-spacing: -0.01em; }
.header-nav { display: flex; align-items: center; gap: 28px; }
.header-nav a { font-size: 15px; font-weight: 500; color: var(--muted); text-decoration: none; }
.header-nav a:hover { color: var(--forest); }
.header-nav .nav-cta {
  color: var(--forest); background: var(--sand); border: 1px solid var(--stone);
  padding: 8px 16px; border-radius: var(--pill); font-weight: 600;
}
.header-nav .nav-cta:hover { background: #efe6da; }

/* ---------- Hero ---------- */
.hero { padding: clamp(48px, 8vw, 96px) 0 clamp(28px, 4vw, 40px); }
.eyebrow {
  font-size: 13px; font-weight: 600; letter-spacing: 0.14em; text-transform: uppercase;
  color: var(--forest); margin: 0 0 18px;
}
.eyebrow-light { color: rgba(255,255,255,0.75); }
.hero-title {
  font-size: clamp(38px, 6.2vw, 60px); font-weight: 500; max-width: 16ch;
  margin: 0 0 22px;
}
.hero-lede { font-size: clamp(18px, 2.2vw, 21px); color: var(--muted); max-width: 60ch; margin: 0 0 30px; }
.hero-actions { display: flex; flex-wrap: wrap; gap: 14px; margin-bottom: 18px; }
.hero-note { font-size: 14px; color: var(--muted); margin: 0; }
.hero-figure { margin-top: clamp(32px, 5vw, 52px); }
.hero-illustration { width: 100%; height: auto; display: block; border-radius: var(--radius-lg); }

/* ---------- Reassurance strip ---------- */
.strip { padding: 8px 0 clamp(28px, 5vw, 48px); }
.strip-inner {
  display: grid; grid-template-columns: repeat(3, 1fr); gap: 14px;
  background: var(--sand); border: 1px solid var(--stone);
  border-radius: var(--radius-lg); padding: clamp(20px, 3vw, 30px);
}
.strip-item { display: flex; flex-direction: column; align-items: center; text-align: center; gap: 4px; }
.strip-num { font-family: var(--serif); font-size: clamp(32px, 5vw, 44px); font-weight: 600; color: var(--forest); line-height: 1; }
.strip-label { font-size: 14px; color: var(--muted); }

/* ---------- Sections ---------- */
.section { padding: clamp(48px, 7vw, 88px) 0; }
.section-tint { background: var(--sand); border-block: 1px solid var(--stone); }
.section-grid {
  display: grid; grid-template-columns: 300px 1fr; gap: clamp(28px, 5vw, 64px);
  align-items: start;
}
.section-head-center { max-width: 62ch; margin: 0 auto clamp(36px, 5vw, 56px); text-align: center; }
.section-num {
  display: inline-block; font-family: var(--serif); font-size: 15px; font-weight: 600;
  color: var(--forest); border: 1px solid var(--stone); background: var(--paper);
  border-radius: var(--pill); padding: 3px 14px; margin-bottom: 16px;
}
.section-title { font-size: clamp(28px, 4vw, 38px); }
.section-kicker { font-size: 17px; color: var(--muted); margin-top: 14px; }
.section-body { font-size: 18px; color: var(--ink); max-width: 62ch; }
.section-body p { margin-bottom: 1.1em; }

/* Self-check */
.check-list { list-style: none; margin: 0; padding: 0; display: grid; gap: 12px; }
.check-item label {
  display: flex; align-items: flex-start; gap: 13px; cursor: pointer;
  background: var(--paper); border: 1px solid var(--stone); border-radius: 14px;
  padding: 15px 18px; font-size: 17px; transition: border-color .15s ease, background-color .15s ease;
}
.check-item label:hover { border-color: var(--forest); }
.check-item input {
  appearance: none; -webkit-appearance: none; flex: 0 0 auto;
  width: 22px; height: 22px; margin-top: 1px; border: 2px solid var(--stone);
  border-radius: 7px; background: #fff; cursor: pointer; position: relative;
  transition: background-color .15s ease, border-color .15s ease;
}
.check-item input:checked { background: var(--forest); border-color: var(--forest); }
.check-item input:checked::after {
  content: ""; position: absolute; left: 6px; top: 2px; width: 6px; height: 11px;
  border: solid #fff; border-width: 0 2.5px 2.5px 0; transform: rotate(43deg);
}
.check-item input:focus-visible { outline: 3px solid rgba(27,94,69,0.35); outline-offset: 2px; }
.check-result {
  margin: 22px 0 0; font-size: 16px; color: var(--muted);
  background: var(--paper); border: 1px dashed var(--stone); border-radius: 14px; padding: 16px 18px;
}

/* Breath steps */
.breath-steps { list-style: none; margin: 0 0 22px; padding: 0; display: grid; gap: 16px; }
.breath-steps li {
  display: flex; gap: 18px; align-items: flex-start;
  background: var(--paper); border: 1px solid var(--stone); border-radius: var(--radius); padding: 20px 22px;
}
.section-tint .breath-steps li { background: var(--paper); }
.breath-badge {
  flex: 0 0 auto; display: inline-flex; align-items: center; justify-content: center;
  min-width: 64px; padding: 8px 12px; border-radius: var(--pill);
  background: var(--forest); color: #fff; font-weight: 600; font-size: 14px; letter-spacing: 0.02em;
}
.breath-steps h3 { font-family: var(--sans); font-size: 18px; font-weight: 600; color: var(--forest-deep); margin: 0 0 4px; line-height: 1.35; }
.breath-steps p { margin: 0; color: var(--muted); font-size: 16px; }
.breath-foot { font-size: 18px; color: var(--ink); }

/* ---------- Steps (routine) ---------- */
.steps { list-style: none; margin: 0; padding: 0; display: grid; gap: 20px; max-width: 860px; margin-inline: auto; }
.step {
  display: grid; grid-template-columns: 132px 1fr; gap: clamp(18px, 3vw, 30px);
  align-items: center; background: var(--paper); border: 1px solid var(--stone);
  border-radius: var(--radius-lg); padding: clamp(20px, 3vw, 28px); box-shadow: var(--shadow-soft);
}
.step-figure svg { width: 100%; height: auto; display: block; }
.step-num {
  display: inline-block; font-size: 13px; font-weight: 600; letter-spacing: 0.1em;
  text-transform: uppercase; color: var(--forest); margin-bottom: 6px;
}
.step-title { font-size: clamp(21px, 3vw, 26px); margin-bottom: 10px; }
.step-body p { color: var(--ink); font-size: 17px; margin-bottom: 8px; }
.step-cue { color: var(--muted); font-size: 15px; font-style: italic; margin: 0; }

.step-locked {
  grid-template-columns: 1fr; text-align: center; justify-items: center;
  background: var(--forest); border-color: var(--forest); color: #fff;
}
.step-locked-inner { display: grid; justify-items: center; gap: 14px; max-width: 52ch; padding: 8px 0; }
.step-locked .step-title { color: #fff; }
.step-locked p { color: rgba(255,255,255,0.82); font-size: 16px; margin: 0; }
.lock-mark {
  width: 48px; height: 48px; border-radius: var(--pill);
  display: inline-flex; align-items: center; justify-content: center;
  background: rgba(255,255,255,0.12); color: #fff;
}
.step-locked .btn-primary {
  background: var(--white); color: var(--forest);
  box-shadow: rgba(0,0,0,0.12) 0 6px 16px 0;
}
.step-locked .btn-primary:hover { background: #f0ece3; }

/* ---------- Free download ---------- */
.unlock { background: var(--forest); color: #fff; padding: clamp(56px, 9vw, 104px) 0; }
.download-inner { max-width: 64ch; margin-inline: auto; text-align: center; }
.unlock-title { color: #fff; }
.download-title { font-size: clamp(28px, 4.4vw, 42px); margin: 0 auto 16px; max-width: 20ch; }
.download-lede { color: rgba(255,255,255,0.85); font-size: 18px; margin: 0 auto 26px; max-width: 54ch; }
.download-list {
  list-style: none; margin: 0 auto 30px; padding: 0;
  display: inline-flex; flex-wrap: wrap; justify-content: center; gap: 10px 12px;
}
.download-list li {
  position: relative; padding: 8px 16px 8px 34px; font-size: 15px;
  color: #fff; background: rgba(255,255,255,0.08);
  border: 1px solid rgba(255,255,255,0.18); border-radius: var(--pill);
}
.download-list li::before {
  content: ""; position: absolute; left: 15px; top: 13px; width: 12px; height: 7px;
  border: solid rgba(255,255,255,0.92); border-width: 0 0 2.2px 2.2px; transform: rotate(-45deg);
}
.download-actions { display: flex; flex-wrap: wrap; justify-content: center; gap: 14px; margin-bottom: 16px; }
.btn-lg { padding: 17px 32px; font-size: 17px; }
.unlock .btn-primary {
  background: var(--white); color: var(--forest);
  box-shadow: rgba(0,0,0,0.14) 0 8px 22px 0;
}
.unlock .btn-primary:hover { background: #f0ece3; }
.btn-ghost {
  background: transparent; color: #fff; border: 1px solid rgba(255,255,255,0.4);
}
.btn-ghost:hover { background: rgba(255,255,255,0.1); }
.download-meta { font-size: 14px; color: rgba(255,255,255,0.7); margin: 0; }

/* ---------- Disclaimer ---------- */
.disclaimer { padding: clamp(40px, 6vw, 72px) 0; }
.disclaimer-inner {
  display: grid; grid-template-columns: auto 1fr; gap: 22px; align-items: start;
  background: var(--sand); border: 1px solid var(--stone); border-radius: var(--radius-lg);
  padding: clamp(24px, 4vw, 40px);
}
.disclaimer-mark {
  width: 52px; height: 52px; border-radius: var(--pill); flex: 0 0 auto;
  display: inline-flex; align-items: center; justify-content: center;
  background: var(--paper); color: var(--forest); border: 1px solid var(--stone);
}
.disclaimer-title { font-size: clamp(22px, 3vw, 28px); margin-bottom: 12px; }
.disclaimer p { color: var(--ink); font-size: 16px; margin-bottom: 0.9em; max-width: 68ch; }
.disclaimer p:last-child { margin-bottom: 0; }

/* ---------- Footer ---------- */
.site-footer { background: var(--paper); border-top: 1px solid var(--stone); padding: clamp(36px, 5vw, 56px) 0; }
.footer-inner { display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between; gap: 20px; }
.footer-brand .brand-name { font-size: 20px; color: var(--forest); }
.footer-tag { font-size: 14px; color: var(--muted); margin: 4px 0 0; }
.footer-contact { font-size: 14px; color: var(--muted); margin: 6px 0 0; }
.footer-contact a { color: var(--forest); text-decoration: none; font-weight: 500; }
.footer-contact a:hover { text-decoration: underline; }
.footer-nav { display: flex; flex-wrap: wrap; gap: 22px; }
.footer-nav a { font-size: 15px; color: var(--muted); text-decoration: none; }
.footer-nav a:hover { color: var(--forest); }
.footer-legal { width: 100%; font-size: 13px; color: var(--muted); margin: 0; padding-top: 14px; border-top: 1px solid var(--stone); }

/* ---------- Focus visibility ---------- */
a:focus-visible, .btn:focus-visible {
  outline: 3px solid rgba(27,94,69,0.45); outline-offset: 3px; border-radius: var(--pill);
}

/* ---------- Responsive ---------- */
@media (max-width: 860px) {
  .section-grid { grid-template-columns: 1fr; }
  .unlock-inner { grid-template-columns: 1fr; }
  .strip-inner { grid-template-columns: 1fr; gap: 22px; }
  .strip-item { flex-direction: row; justify-content: center; gap: 12px; }
}
@media (max-width: 620px) {
  body { font-size: 17px; }
  .header-nav a:not(.nav-cta) { display: none; }
  .step { grid-template-columns: 1fr; text-align: left; }
  .step-figure { width: 96px; }
  .breath-steps li { flex-direction: column; gap: 12px; }
  .disclaimer-inner { grid-template-columns: 1fr; }
}

@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  * { transition: none !important; }
}
