/* ── Step One 2 Published — monochrome, editorial, bookish landing page ── */

:root {
  /* Primary monochrome palette */
  --paper: #f4efe4;       /* warm ivory (background) */
  --paper-deep: #e9e2d3;  /* slightly deeper ivory for section fills */
  --ink: #241f1c;         /* near-black charcoal (text) */
  --ink-soft: #5c564e;    /* secondary text, mid gray */
  --line: rgba(36, 31, 28, 0.16);   /* borders / dividers */
  --line-soft: rgba(36, 31, 28, 0.09);

  /* Accent colors — reserved ONLY for status states (success/error/warning),
     never used decoratively or as brand color. */
  --status-success: #3f7a4d;
  --status-error: #b3392b;
  --status-warning: #b98a2e;

  --serif-display: "Fraunces", "Iowan Old Style", "Palatino Linotype", Georgia, serif;
  --sans-body: "Inter", -apple-system, BlinkMacSystemFont, "Segoe UI", Helvetica, Arial, sans-serif;
}

* { box-sizing: border-box; }

html { scroll-behavior: smooth; }

body {
  margin: 0;
  background: var(--paper);
  color: var(--ink);
  font-family: var(--sans-body);
  font-size: 18px;
  line-height: 1.65;
  -webkit-font-smoothing: antialiased;
  position: relative;
  overflow-x: hidden;
}

.paper-grain {
  position: fixed;
  inset: 0;
  pointer-events: none;
  z-index: 0;
  opacity: 0.5;
  mix-blend-mode: multiply;
  background-image:
    radial-gradient(circle at 20% 30%, rgba(43,37,33,0.035) 0, transparent 40%),
    radial-gradient(circle at 80% 10%, rgba(43,37,33,0.03) 0, transparent 45%),
    radial-gradient(circle at 60% 80%, rgba(43,37,33,0.03) 0, transparent 45%);
}

a { color: inherit; }

.page { position: relative; z-index: 1; max-width: 980px; margin: 0 auto; padding: 0 24px; }

/* ── Nav ─────────────────────────────────────────────────────────────── */
.nav {
  position: relative;
  z-index: 2;
  display: flex;
  align-items: center;
  justify-content: space-between;
  max-width: 980px;
  margin: 0 auto;
  padding: 28px 24px 8px;
}
.logo {
  display: flex;
  align-items: center;
  gap: 16px;
  font-family: var(--serif-display);
  font-weight: 600;
  font-size: 19px;
  letter-spacing: 0.02em;
  text-decoration: none;
  color: var(--ink);
}
.logo-mark {
  height: 80px;
  width: 80px;
  object-fit: contain;
  display: block;
}
.logo-dot { color: var(--ink); }
.nav-cta {
  text-decoration: none;
  font-family: var(--sans-body);
  font-size: 15px;
  font-weight: 500;
  color: var(--ink);
  border: 1px solid var(--line);
  padding: 8px 18px;
  border-radius: 999px;
  transition: background 0.2s ease, border-color 0.2s ease;
}
.nav-cta:hover { background: var(--paper-deep); border-color: var(--ink-soft); }

/* The old always-visible desktop link row has been retired — every
   breakpoint now uses the single hamburger + slide-out drawer below. */
.nav-links-desktop {
  display: none !important;
}
.nav-link {
  color: var(--ink);
  text-decoration: underline;
  font-size: 0.9rem;
  white-space: nowrap;
}

/* Hamburger button — the single nav trigger at every breakpoint. */
.nav-hamburger {
  display: flex;
  flex-direction: column;
  justify-content: center;
  align-items: center;
  gap: 5px;
  width: 40px;
  height: 40px;
  padding: 0;
  border: 1px solid var(--line);
  border-radius: 10px;
  background: var(--paper);
  cursor: pointer;
  flex-shrink: 0;
}
.nav-hamburger span {
  display: block;
  width: 20px;
  height: 2px;
  background: var(--ink);
  border-radius: 1px;
  transition: transform 0.2s ease, opacity 0.2s ease;
}
.nav-hamburger.is-open span:nth-child(1) { transform: translateY(7px) rotate(45deg); }
.nav-hamburger.is-open span:nth-child(2) { opacity: 0; }
.nav-hamburger.is-open span:nth-child(3) { transform: translateY(-7px) rotate(-45deg); }

.nav-drawer-backdrop {
  position: fixed;
  inset: 0;
  background: rgba(36, 31, 28, 0.35);
  z-index: 40;
}

.nav-drawer {
  position: fixed;
  top: 0;
  right: 0;
  height: 100%;
  width: min(320px, 84vw);
  max-width: 100vw;
  background: var(--paper);
  border-left: 1px solid var(--line);
  box-shadow: -8px 0 24px rgba(36, 31, 28, 0.18);
  z-index: 50;
  overflow-y: auto;
  padding: 84px 24px 32px;
}
.nav-drawer-links {
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  gap: 18px;
}
.nav-drawer-links .nav-link {
  font-size: 1rem;
}
.nav-drawer-links .nav-cta {
  align-self: stretch;
  text-align: center;
}
.nav-drawer-links form { width: 100%; }

/* Prevent background scroll while the drawer is open. */
body.nav-drawer-open { overflow: hidden; }
body.modal-open { overflow: hidden; }

/* ── Hero ────────────────────────────────────────────────────────────── */
.hero {
  text-align: center;
  padding: 72px 0 56px;
  position: relative;
}
.hero-kicker {
  font-family: var(--sans-body);
  font-style: italic;
  color: var(--ink);
  font-size: 16px;
  letter-spacing: 0.03em;
  margin: 0 0 18px;
}
.hero-title {
  font-family: var(--serif-display);
  font-weight: 450;
  font-size: clamp(2.2rem, 5.5vw, 3.6rem);
  line-height: 1.15;
  margin: 0 0 26px;
  color: var(--ink);
}
.hero-title em {
  font-style: italic;
  font-weight: 600;
  color: var(--ink);
}
.hero-subtitle {
  max-width: 620px;
  margin: 0 auto 30px;
  font-size: 19px;
  color: var(--ink-soft);
}
.hero-reassurance {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: 10px 14px;
  max-width: 620px;
  margin: 0 auto 36px;
}
.hero-reassurance span {
  font-size: 14px;
  font-weight: 500;
  color: var(--ink-soft);
  background: var(--line-soft);
  border: 1px solid var(--line);
  border-radius: 999px;
  padding: 6px 14px;
}
.hero-note {
  margin-top: 18px;
  font-size: 14px;
  color: var(--ink-soft);
  font-style: italic;
}

/* ── Buttons ─────────────────────────────────────────────────────────── */
.btn-primary {
  display: inline-block;
  font-family: var(--sans-body);
  font-weight: 600;
  font-size: 17px;
  text-decoration: none;
  color: var(--paper);
  background: var(--ink);
  padding: 15px 34px;
  border-radius: 6px;
  box-shadow: 0 4px 0 var(--ink);
  transition: transform 0.15s ease, box-shadow 0.15s ease;
}
.btn-primary:hover {
  transform: translateY(-2px);
  box-shadow: 0 6px 0 var(--ink);
}
.btn-primary:active {
  transform: translateY(1px);
  box-shadow: 0 2px 0 var(--ink);
}
.btn-primary--large { font-size: 19px; padding: 18px 42px; }

.btn-secondary {
  display: inline-block;
  font-family: var(--sans-body);
  font-weight: 600;
  font-size: 15px;
  text-decoration: none;
  color: var(--ink);
  background: transparent;
  border: 1px solid var(--line);
  padding: 11px 24px;
  border-radius: 999px;
  transition: background 0.15s ease, border-color 0.15s ease;
}
.btn-secondary:hover {
  background: var(--line-soft);
}

.hero-cta-group {
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 8px;
}
.hero-start-cta {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 12px;
  min-height: 58px;
  padding: 16px 42px;
  font-size: 19px;
  border-radius: 8px;
}
.hero-start-context {
  margin: 0 0 8px;
  color: var(--ink-soft);
  font-size: 14px;
  line-height: 1.4;
}
.hero-secondary-choices {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: 10px 12px;
}
.hero-secondary-choices .btn-secondary {
  min-height: 44px;
}
@media (max-width: 480px) {
  .hero-start-cta {
    width: min(100%, 340px);
    min-height: 56px;
  }
  .hero-secondary-choices {
    width: min(100%, 340px);
    flex-direction: column;
    align-items: stretch;
  }
  .hero-secondary-choices .btn-secondary {
    text-align: center;
  }
}

/* ── Homepage beta notice ──────────────────────────────────────────────
   A calm status and access note below the hero, consistent with the existing palette. */
.beta-note {
  max-width: 560px;
  margin: 0 auto 48px;
  padding: 18px 20px;
  text-align: center;
  border-top: 1px solid var(--line);
  border-bottom: 1px solid var(--line);
}
.beta-note-copy {
  font-size: 15px;
  color: var(--ink-soft);
  margin: 0 0 6px;
}
.beta-note-status {
  font-size: 14px;
  font-weight: 600;
  color: var(--ink);
  margin: 0 0 8px;
}
.beta-note-footnote {
  font-size: 12px;
  color: var(--ink-soft);
  margin: 10px 0 0;
}
@media (max-width: 480px) {
  .beta-note-footnote {
    font-size: 12px;
    padding: 0 8px;
  }
}

/* ── Section titles ──────────────────────────────────────────────────── */
.section-title {
  font-family: var(--serif-display);
  font-weight: 500;
  font-size: clamp(1.7rem, 4vw, 2.3rem);
  line-height: 1.25;
  margin: 0 0 22px;
  color: var(--ink);
}
.section-title--center { text-align: center; }

/* ── Pain section ────────────────────────────────────────────────────── */
.how-to-use-band { padding: 0 24px; max-width: 900px; margin: 0 auto 8px; }
.how-to-use-card {
  display: flex;
  align-items: center;
  gap: 12px;
  padding: 18px 22px;
  border: 1px solid var(--line);
  border-radius: 14px;
  background: var(--paper, #fff);
  transition: box-shadow 0.15s ease, transform 0.15s ease;
  flex-wrap: wrap;
}
.how-to-use-card:hover { box-shadow: 0 6px 18px rgba(0,0,0,0.08); transform: translateY(-1px); }
.how-to-use-card-link {
  display: flex;
  align-items: center;
  gap: 16px;
  text-decoration: none;
  color: var(--ink);
  flex: 1;
  min-width: 0;
}
.how-to-use-icon { font-size: 28px; line-height: 1; }
.how-to-use-text { display: flex; flex-direction: column; gap: 4px; flex: 1; }
.how-to-use-text strong { font-size: 1.02rem; }
.how-to-use-text span:last-child { color: var(--ink-soft); font-size: 0.92rem; }
.how-to-use-arrow { font-size: 20px; }

.how-to-use-dismiss-row {
  display: flex;
  align-items: center;
  gap: 12px;
  flex-shrink: 0;
  margin-left: auto;
  padding-left: 8px;
}
.how-to-use-dontshow {
  display: flex;
  align-items: center;
  gap: 6px;
  font-size: 0.82rem;
  color: var(--ink-soft);
  cursor: pointer;
  user-select: none;
  white-space: nowrap;
}
.how-to-use-dontshow input[type="checkbox"] {
  width: 15px;
  height: 15px;
  cursor: pointer;
  accent-color: var(--ink, #111);
}
.how-to-use-close {
  background: none;
  border: 1px solid var(--line);
  border-radius: 50%;
  width: 26px;
  height: 26px;
  line-height: 1;
  font-size: 16px;
  color: var(--ink-soft);
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: center;
  flex-shrink: 0;
}
.how-to-use-close:hover { background: var(--paper-deep, #f4f4f4); color: var(--ink); }

@media (max-width: 560px) {
  .how-to-use-card { padding: 16px 18px; }
  .how-to-use-dismiss-row { margin-left: 0; width: 100%; justify-content: space-between; padding-left: 0; padding-top: 8px; border-top: 1px solid var(--line); }
}

.pain {
  background: var(--paper-deep);
  border-top: 1px solid var(--line);
  border-bottom: 1px solid var(--line);
  padding: 70px 0;
}
.pain-inner { max-width: 640px; margin: 0 auto; text-align: center; }
.pain-copy { color: var(--ink-soft); font-size: 18px; margin: 0 0 18px; }
.pain-copy--emphasis {
  color: var(--ink);
  font-family: var(--serif-display);
  font-style: italic;
  font-size: 21px;
  font-weight: 500;
}

/* ── Journey / steps ─────────────────────────────────────────────────── */
.journey { padding: 84px 0 70px; text-align: center; }
.journey-sub {
  color: var(--ink-soft);
  font-size: 17px;
  margin: 0 0 52px;
}

.steps {
  list-style: none;
  margin: 0 auto;
  padding: 0;
  max-width: 720px;
  text-align: left;
  position: relative;
}
.step {
  display: flex;
  align-items: flex-start;
  gap: 22px;
  padding: 26px 0;
  border-bottom: 1px dashed var(--line);
  position: relative;
}
.step:last-child { border-bottom: none; }
.step-num {
  font-family: var(--serif-display);
  font-weight: 600;
  font-size: 15px;
  color: var(--paper);
  background: var(--ink-soft);
  width: 42px;
  height: 42px;
  min-width: 42px;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  margin-top: 4px;
}
.step:nth-child(5) .step-num { background: var(--ink); }
.step-body h3 {
  font-family: var(--serif-display);
  font-weight: 550;
  font-size: 21px;
  margin: 0 0 6px;
  color: var(--ink);
}
.step-body p {
  margin: 0;
  color: var(--ink-soft);
  font-size: 16px;
}

/* ── Software support ────────────────────────────────────────────────── */
.software-support {
  background: var(--paper);
  padding: 76px 0 70px;
  border-bottom: 1px solid var(--line);
}
.software-support-inner { max-width: 760px; margin: 0 auto; text-align: center; padding: 0 24px; }
.software-support-copy {
  color: var(--ink-soft);
  font-size: 17px;
  margin: 0 0 44px;
}
.software-cards {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 10px 24px;
  list-style: none;
  margin: 0 0 60px;
  padding: 0;
  max-width: 620px;
  margin-left: auto;
  margin-right: auto;
}
.software-card {
  background: none;
  border: none;
  border-radius: 0;
  padding: 4px 0;
  font-family: var(--serif-display);
  font-weight: 500;
  font-size: 16px;
  color: var(--ink);
}
.software-card--note {
  display: block;
  font-family: var(--sans, inherit);
  font-weight: 400;
  font-size: 12.5px;
  color: var(--ink-soft);
  margin-top: 6px;
}
.software-features {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 28px;
  text-align: left;
}
.software-feature {
  background: var(--paper-deep);
  border: 1px solid var(--line);
  border-radius: 10px;
  padding: 24px 22px;
  text-decoration: none;
  display: block;
  transition: transform 0.15s ease, box-shadow 0.15s ease;
}
.software-feature:hover {
  transform: translateY(-2px);
  box-shadow: 0 6px 0 var(--line);
}
.software-feature h3 {
  font-family: var(--serif-display);
  font-weight: 550;
  font-size: 18px;
  margin: 0 0 8px;
  color: var(--ink);
}
.software-feature p {
  margin: 0;
  color: var(--ink-soft);
  font-size: 15px;
}
.software-feature-caption {
  font-size: 12.5px !important;
  font-style: italic;
  color: var(--ink-faint, var(--ink-soft));
  margin: 0 0 10px !important;
}
.software-feature-btn {
  font: inherit;
  cursor: pointer;
  width: 100%;
  text-align: left;
  appearance: none;
}

/* ── Trust ───────────────────────────────────────────────────────────── */
.trust {
  background: var(--paper-deep);
  border-top: 1px solid var(--line);
  border-bottom: 1px solid var(--line);
  padding: 76px 24px;
}
.trust-card {
  max-width: 640px;
  margin: 0 auto;
  text-align: center;
}
.trust-mark { font-size: 34px; margin-bottom: 14px; }
.trust-attribution { color: var(--ink); font-weight: 600; font-size: 15px; margin: 0 0 6px; letter-spacing: 0.01em; }
.trust-author-link {
  display: inline-block;
  margin: 0 0 20px;
  color: var(--ink-soft);
  font-weight: 500;
  font-size: 14px;
  text-decoration: underline;
  text-underline-offset: 2px;
}
.trust-author-link:hover { color: var(--ink); }
.trust-copy { color: var(--ink-soft); font-size: 17px; margin: 0 0 16px; }
.trust-link {
  display: inline-block;
  margin-top: 8px;
  color: var(--ink);
  font-weight: 600;
  font-size: 16px;
  text-decoration: underline;
  text-underline-offset: 3px;
}
.trust-link:hover { color: var(--ink-soft); }

/* ── Final CTA ───────────────────────────────────────────────────────── */
.cta {
  text-align: center;
  padding: 90px 0 70px;
}
.cta-title {
  font-family: var(--serif-display);
  font-weight: 500;
  font-size: clamp(1.8rem, 4.5vw, 2.6rem);
  margin: 0 0 16px;
}
.cta-copy {
  color: var(--ink-soft);
  font-size: 18px;
  max-width: 480px;
  margin: 0 auto 32px;
}

/* ── Footer ──────────────────────────────────────────────────────────── */
.footer {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 14px;
  text-align: center;
  padding: 36px 24px 44px;
  font-size: 13px;
  color: var(--ink-soft);
  border-top: 1px solid var(--line);
}
.footer-logo {
  display: flex;
  align-items: center;
  gap: 14px;
  font-family: var(--serif-display);
  font-weight: 600;
  font-size: 17px;
  color: var(--ink);
  text-decoration: none;
}
.footer-logo img { height: 68px; width: 68px; object-fit: contain; display: block; }
.footer a { color: var(--ink); text-decoration: none; }
.footer-credit { text-decoration: underline; }

/* ── Responsive ──────────────────────────────────────────────────────── */
/* Single hamburger + slide-out drawer nav at every breakpoint — desktop,
   laptop, tablet, and mobile all use the same trigger and drawer. */

@media (max-width: 640px) {
  body { font-size: 16.5px; }
  .nav { padding: 20px 18px 4px; }
  .hero { padding: 52px 0 40px; }
  .pain, .trust { padding: 54px 0; }
  .journey { padding: 60px 0 48px; }
  .software-support { padding: 52px 0; }
  .software-cards { grid-template-columns: repeat(2, 1fr); }
  .software-features { grid-template-columns: 1fr; }
  .cta { padding: 64px 0 50px; }
  .step { gap: 16px; padding: 20px 0; }
  .step-num { width: 36px; height: 36px; min-width: 36px; font-size: 13px; }
  .logo-mark { height: 56px; width: 56px; }
  .logo { font-size: 15px; gap: 10px; }
  .footer-logo img { height: 52px; width: 52px; }
  .footer-logo { font-size: 15px; gap: 10px; }
}

/* ── Ask Step One widget (floating, site-wide) ─────────────────────────── */
.ask-widget {
  position: fixed;
  right: 20px;
  bottom: 20px;
  z-index: 500;
  font-family: var(--sans-body);
}

.ask-widget-toggle {
  display: flex;
  align-items: center;
  gap: 8px;
  background: var(--ink);
  color: var(--paper);
  border: none;
  border-radius: 999px;
  padding: 12px 18px;
  font-size: 0.95rem;
  font-weight: 600;
  cursor: pointer;
  box-shadow: 0 6px 18px rgba(36, 31, 28, 0.28);
}
.ask-widget-toggle:hover { opacity: 0.92; }

.ask-widget-toggle-icon {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 20px;
  height: 20px;
  border-radius: 50%;
  background: var(--paper);
  color: var(--ink);
  font-weight: 700;
  font-size: 0.85rem;
}

.ask-widget-panel {
  position: absolute;
  right: 0;
  bottom: calc(100% + 12px);
  width: min(360px, 90vw);
  background: var(--paper);
  border: 1px solid var(--line);
  border-radius: 14px;
  box-shadow: 0 12px 32px rgba(36, 31, 28, 0.28);
  padding: 16px;
}

.ask-widget-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  margin-bottom: 4px;
}
.ask-widget-header strong { font-family: var(--serif-display); font-size: 1.05rem; color: var(--ink); }

.ask-widget-close {
  background: none;
  border: none;
  font-size: 1.3rem;
  line-height: 1;
  cursor: pointer;
  color: var(--ink-soft);
}

.ask-widget-sub {
  font-size: 0.85rem;
  color: var(--ink-soft);
  margin: 4px 0 10px;
}

.ask-widget-answer {
  background: var(--paper-deep);
  border: 1px solid var(--line-soft);
  border-radius: 10px;
  padding: 10px 12px;
  margin-bottom: 10px;
  font-size: 0.9rem;
  color: var(--ink);
}
.ask-widget-answer-text { margin: 0 0 8px; }
.ask-widget-answer-link {
  display: inline-block;
  font-weight: 600;
  color: var(--ink);
  text-decoration: underline;
}
.ask-widget-loading { margin: 0; color: var(--ink-soft); font-style: italic; }

.ask-widget-form { display: flex; flex-direction: column; gap: 8px; }
.ask-widget-form textarea {
  resize: none;
  border: 1px solid var(--line);
  border-radius: 10px;
  padding: 8px 10px;
  font-family: var(--sans-body);
  font-size: 0.9rem;
  background: #fff;
}
.ask-widget-submit {
  align-self: flex-end;
  background: var(--ink);
  color: var(--paper);
  border: none;
  border-radius: 999px;
  padding: 8px 18px;
  font-weight: 600;
  cursor: pointer;
}
.ask-widget-submit:disabled { opacity: 0.6; cursor: default; }

@media (max-width: 480px) {
  .ask-widget { right: 12px; bottom: 12px; }
  .ask-widget-panel { width: min(320px, 92vw); }
}
