/* ═══════════════════════════════════════════════════════════════
   CLEVERNOTES HOME — CAPTURE TO ACTION
   Human-scale marketing type + paper/ink product proof.
   ═══════════════════════════════════════════════════════════════ */

body.home-v2 {
  --home-ink: #17212b;
  --home-muted: #526273;
  --home-blue: #254f7d;
  --home-blue-deep: #173858;
  --home-blue-dark: #0f2942;
  --home-sky: #eaf2fb;
  --home-mist: #f4f7fa;
  --home-cloud: #dce6f0;
  --home-line: #c8d3de;
  --home-trust: #2f6c59;
  --home-white: #ffffff;
  --home-action: #173858;
  --home-action-hover: #0f2942;
  --home-font: -apple-system, BlinkMacSystemFont, "Segoe UI", Helvetica, Arial, sans-serif;
  font-family: var(--home-font);
  color: var(--home-ink);
  background: var(--home-white);
}

[data-theme="dark"] body.home-v2 {
  --home-ink: #edf3f8;
  --home-muted: #b7c4cf;
  --home-blue: #90b9e3;
  --home-blue-deep: #b3d0ed;
  --home-blue-dark: #091b2c;
  --home-sky: #14283b;
  --home-mist: #101a24;
  --home-cloud: #203448;
  --home-line: #34495e;
  --home-trust: #83c1aa;
  --home-white: #0d141b;
  --home-action: #315f8d;
  --home-action-hover: #3d70a2;
}

@media (prefers-color-scheme: dark) {
  [data-theme="auto"] body.home-v2 {
    --home-ink: #edf3f8;
    --home-muted: #b7c4cf;
    --home-blue: #90b9e3;
    --home-blue-deep: #b3d0ed;
    --home-blue-dark: #091b2c;
    --home-sky: #14283b;
    --home-mist: #101a24;
    --home-cloud: #203448;
    --home-line: #34495e;
    --home-trust: #83c1aa;
    --home-white: #0d141b;
    --home-action: #315f8d;
    --home-action-hover: #3d70a2;
  }
}

.home-v2 .home-shell {
  width: min(1240px, calc(100% - 48px));
  margin-inline: auto;
}

.home-v2 .home-eyebrow {
  margin: 0 0 18px;
  font-family: var(--font-mono);
  font-size: 11px;
  font-weight: 700;
  line-height: 1.4;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: var(--home-blue);
}

.home-v2 .nav {
  background: var(--home-white);
  border-bottom-color: var(--home-line);
}

.home-v2 .nav-inner {
  max-width: 1240px;
}

.home-v2 .nav-wordmark {
  font-family: var(--font-wordmark);
  font-weight: 700;
  letter-spacing: -0.04em;
}

.home-v2 .footer-wordmark,
.home-v2 .footer-tagline {
  font-family: var(--home-font);
}

.home-v2 .nav-link,
.home-v2 .nav-cta {
  font-family: var(--home-font);
  font-size: 13px;
  font-weight: 650;
  letter-spacing: 0;
  text-transform: none;
}

.home-v2 .nav-link {
  color: var(--home-muted);
}

.home-v2 .nav-link:hover {
  color: var(--home-ink);
  border-bottom-color: var(--home-ink);
}

.home-v2 .nav-cta {
  padding: 11px 16px;
  border-radius: var(--corner-control);
  background: var(--home-action);
}

.home-v2 .nav-cta:hover {
  background: var(--home-action-hover);
}

.home-v2 .theme-toggle,
.home-v2 .nav-hamburger {
  min-width: 44px;
  min-height: 44px;
}

.home-v2 .nav-hamburger {
  align-items: center;
  justify-content: center;
}

.home-v2 .nav-mobile {
  background: var(--home-white);
  border-bottom-color: var(--home-line);
}

/* ─── Hero ─── */

.home-hero {
  position: relative;
  overflow: hidden;
  padding: clamp(64px, 8vw, 118px) 0 clamp(72px, 8vw, 112px);
  background:
    linear-gradient(90deg, transparent 0, transparent calc(50% - 1px), color-mix(in srgb, var(--home-line) 34%, transparent) 50%, transparent calc(50% + 1px)),
    var(--home-mist);
  border-bottom: 1px solid var(--home-line);
}

.home-hero::before {
  content: "";
  position: absolute;
  inset: 0;
  pointer-events: none;
  background: linear-gradient(135deg, color-mix(in srgb, var(--home-sky) 65%, transparent), transparent 44%);
}

.home-hero-grid {
  position: relative;
  display: grid;
  grid-template-columns: minmax(0, 0.9fr) minmax(540px, 1.1fr);
  gap: clamp(52px, 6vw, 92px);
  align-items: center;
}

.home-hero-copy {
  max-width: 570px;
}

.home-hero h1 {
  margin: 0;
  max-width: 720px;
  font-family: var(--home-font);
  font-size: clamp(48px, 5.3vw, 78px);
  font-weight: 760;
  letter-spacing: -0.055em;
  line-height: 0.98;
  text-wrap: balance;
  color: var(--home-ink);
}

.home-hero h1 span {
  display: block;
  color: var(--home-blue-deep);
}

.home-hero-lead {
  max-width: 610px;
  margin: 28px 0 0;
  font-size: clamp(18px, 1.55vw, 21px);
  line-height: 1.56;
  color: var(--home-muted);
}

.home-hero-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 12px;
  margin-top: 34px;
}

.home-button {
  display: inline-flex;
  min-height: 50px;
  align-items: center;
  justify-content: center;
  gap: 10px;
  padding: 13px 20px;
  border: 1px solid var(--home-blue-deep);
  border-radius: var(--corner-control);
  font-family: var(--home-font);
  font-size: 15px;
  font-weight: 700;
  line-height: 1;
  text-decoration: none;
  transition: background-color 160ms ease, color 160ms ease, transform 160ms ease;
}

.home-button:hover {
  text-decoration: none;
  transform: translateY(-1px);
}

.home-button-primary {
  color: #fff;
  background: var(--home-action);
}

.home-button-primary:hover {
  color: #fff;
  background: var(--home-action-hover);
}

.home-button-secondary {
  color: var(--home-blue-deep);
  background: transparent;
}

.home-button-secondary:hover {
  color: var(--home-blue-deep);
  background: var(--home-sky);
}

.home-proof-list {
  display: flex;
  flex-wrap: wrap;
  gap: 8px 18px;
  padding: 0;
  margin: 24px 0 0;
  list-style: none;
  color: var(--home-muted);
  font-family: var(--font-mono);
  font-size: 11px;
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 0.03em;
}

.home-hero-demo-link {
  margin: 18px 0 0;
  font-size: 13px;
}

.home-hero-demo-link a {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  font-weight: 700;
  color: var(--home-blue-deep);
}

.home-hero-demo-link a:hover {
  text-decoration-thickness: 1px;
}

.home-proof-list li {
  display: flex;
  align-items: center;
  gap: 7px;
}

.home-proof-list li::before {
  content: "";
  width: 6px;
  height: 6px;
  border-radius: 50%;
  background: var(--home-trust);
}

.home-hero-stage {
  position: relative;
  min-height: 620px;
  isolation: isolate;
}

.home-route {
  position: absolute;
  z-index: -1;
  top: 70px;
  left: 24px;
  right: 14px;
  height: 450px;
  border-top: 2px dashed var(--home-blue);
  border-right: 2px dashed var(--home-blue);
  border-bottom: 2px dashed var(--home-blue);
  opacity: 0.45;
}

.home-product-window {
  position: absolute;
  inset: 86px 20px 32px 68px;
  margin: 0;
  overflow: hidden;
  border: 2px solid var(--home-ink);
  border-radius: 10px;
  background: var(--home-white);
}

.home-window-bar {
  display: flex;
  align-items: center;
  gap: 7px;
  min-height: 38px;
  padding: 0 12px;
  border-bottom: 1px solid var(--home-line);
  background: var(--home-white);
  color: var(--home-muted);
}

.home-window-bar span {
  width: 8px;
  height: 8px;
  border-radius: 50%;
  background: var(--home-line);
}

.home-window-bar b {
  margin-left: 6px;
  font-family: var(--font-mono);
  font-size: 10px;
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 0.05em;
}

.home-product-window img {
  display: block;
  width: 100%;
  height: calc(100% - 38px);
  object-fit: cover;
  object-position: top center;
}

.home-capture-ticket,
.home-outcome-ticket,
.home-source-ticket {
  position: absolute;
  z-index: 2;
  display: flex;
  flex-direction: column;
  border: 1px solid var(--home-ink);
  background: var(--home-white);
  color: var(--home-ink);
}

.home-capture-ticket {
  top: 18px;
  left: 0;
  width: min(310px, 54%);
  padding: 14px 16px;
  border-left: 4px solid var(--home-blue);
}

.home-ticket-label,
.home-capture-ticket > span:last-child,
.home-source-ticket span {
  font-family: var(--font-mono);
  font-size: 10px;
  line-height: 1.4;
  letter-spacing: 0.04em;
  text-transform: uppercase;
  color: var(--home-muted);
}

.home-capture-ticket strong {
  margin: 5px 0 2px;
  font-size: 14px;
  line-height: 1.25;
}

.home-outcome-ticket {
  right: 0;
  bottom: 54px;
  width: min(320px, 58%);
  padding: 16px 18px 18px;
  border-left: 4px solid var(--ai-orange);
}

.home-ai-label {
  display: flex;
  align-items: center;
  gap: 7px;
  margin-bottom: 8px;
  font-family: var(--font-mono);
  font-size: 10px;
  font-weight: 700;
  letter-spacing: 0.05em;
  text-transform: uppercase;
  color: var(--ai-orange);
}

.home-outcome-ticket strong {
  font-size: 20px;
  line-height: 1.15;
}

.home-outcome-ticket > span:nth-of-type(2) {
  margin-top: 6px;
  font-size: 13px;
  line-height: 1.4;
  color: var(--home-muted);
}

.home-review-link {
  display: flex;
  justify-content: space-between;
  margin-top: 14px;
  padding-top: 10px;
  border-top: 1px solid var(--home-line);
  font-family: var(--font-mono);
  font-size: 11px;
  font-weight: 700;
  color: var(--home-blue-deep);
}

.home-source-ticket {
  left: 38px;
  bottom: 2px;
  max-width: 250px;
  padding: 10px 14px;
  border-color: var(--home-blue);
}

.home-source-ticket strong {
  margin-top: 2px;
  font-size: 12px;
}

/* ─── Input / output relay ─── */

.home-relay {
  padding: 24px 0;
  background: var(--home-blue-dark);
  color: #fff;
  border-bottom: 1px solid color-mix(in srgb, #fff 18%, transparent);
}

.home-relay-inner {
  display: grid;
  grid-template-columns: minmax(0, 1fr) 76px minmax(0, 1fr);
  gap: 22px;
  align-items: center;
}

.home-relay-group {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 8px;
}

.home-relay-group > span:not(.home-relay-title) {
  padding: 5px 8px;
  border: 1px solid color-mix(in srgb, #fff 40%, transparent);
  font-family: var(--font-mono);
  font-size: 10px;
  line-height: 1;
  letter-spacing: 0.04em;
  text-transform: uppercase;
  color: #eef6ff;
}

.home-relay-title {
  flex-basis: 100%;
  margin-bottom: 2px;
  font-size: 13px;
  font-weight: 700;
  color: #fff;
}

.home-relay-output > span:not(.home-relay-title) {
  border-color: color-mix(in srgb, var(--ai-orange) 78%, #fff);
  color: #ffd6bf;
}

.home-relay-arrow {
  display: grid;
  grid-template-columns: 1fr auto;
  gap: 8px;
  align-items: center;
  color: #fff;
}

.home-relay-arrow span {
  height: 1px;
  background: color-mix(in srgb, #fff 50%, transparent);
}

/* ─── Shared section language ─── */

.home-section {
  position: relative;
  padding: clamp(84px, 10vw, 144px) 0;
  border-bottom: 1px solid var(--home-line);
  background: var(--home-white);
}

.home-section-head {
  max-width: 900px;
  margin-bottom: clamp(64px, 8vw, 104px);
}

.home-section-head h2,
.home-private-copy h2,
.home-beta-copy h2 {
  margin: 0;
  font-family: var(--home-font);
  font-size: clamp(38px, 4.7vw, 64px);
  font-weight: 740;
  letter-spacing: -0.045em;
  line-height: 1.02;
  text-wrap: balance;
  color: var(--home-ink);
}

.home-section-head > p:last-child,
.home-private-copy > p,
.home-beta-copy > p {
  max-width: 760px;
  margin: 24px 0 0;
  font-size: 18px;
  line-height: 1.65;
  color: var(--home-muted);
}

/* ─── Three-part product story ─── */

.home-loop {
  overflow: hidden;
}

.home-story {
  display: grid;
  grid-template-columns: minmax(300px, 0.7fr) minmax(0, 1.3fr);
  gap: clamp(48px, 7vw, 96px);
  align-items: center;
  padding: clamp(60px, 7vw, 96px) 0;
  border-top: 1px solid var(--home-line);
}

.home-story:last-child {
  padding-bottom: 0;
}

.home-story-reverse {
  grid-template-columns: minmax(0, 1.3fr) minmax(300px, 0.7fr);
}

.home-story-reverse .home-story-copy {
  order: 2;
}

.home-story-copy h3 {
  margin: 18px 0 0;
  font-family: var(--home-font);
  font-size: clamp(30px, 3.1vw, 44px);
  font-weight: 730;
  letter-spacing: -0.035em;
  line-height: 1.08;
  color: var(--home-ink);
}

.home-story-copy > p:not(.home-proof-note) {
  margin: 20px 0 0;
  font-size: 17px;
  line-height: 1.7;
  color: var(--home-muted);
}

.home-step {
  display: inline-flex;
  padding: 6px 9px;
  border: 1px solid var(--home-blue);
  font-family: var(--font-mono);
  font-size: 10px;
  font-weight: 700;
  line-height: 1;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  color: var(--home-blue-deep);
}

.home-step-ai {
  border-color: var(--ai-orange);
  color: var(--ai-orange);
}

.home-proof-note {
  position: relative;
  margin: 22px 0 0;
  padding: 14px 0 0 22px;
  border-top: 1px solid var(--home-line);
  font-family: var(--font-mono);
  font-size: 12px;
  line-height: 1.55;
  color: var(--home-muted);
}

.home-proof-note::before {
  content: "";
  position: absolute;
  left: 0;
  top: 18px;
  width: 8px;
  height: 8px;
  border-radius: 50%;
  background: var(--home-trust);
}

.home-capture-visual {
  position: relative;
  min-height: 610px;
  overflow: hidden;
  border: 1px solid var(--home-blue);
  background:
    linear-gradient(color-mix(in srgb, var(--home-blue) 10%, transparent) 1px, transparent 1px),
    linear-gradient(90deg, color-mix(in srgb, var(--home-blue) 10%, transparent) 1px, transparent 1px),
    var(--home-sky);
  background-size: 32px 32px;
}

.home-phone-frame {
  position: absolute;
  z-index: 2;
  top: 42px;
  right: 44px;
  width: min(270px, 45%);
  margin: 0;
}

.home-phone-frame img {
  display: block;
  width: 100%;
  border: 2px solid var(--home-ink);
  border-radius: 30px;
  background: var(--home-white);
}

.home-capture-stack {
  position: absolute;
  z-index: 1;
  left: 38px;
  top: 94px;
  display: grid;
  width: min(390px, 64%);
}

.home-capture-stack span {
  display: block;
  padding: 17px 18px;
  margin-top: -1px;
  border: 1px solid var(--home-ink);
  background: var(--home-white);
  font-size: 13px;
  line-height: 1.4;
  color: var(--home-ink);
}

.home-capture-stack span:nth-child(2) { transform: translateX(16px); }
.home-capture-stack span:nth-child(3) { transform: translateX(32px); }
.home-capture-stack span:nth-child(4) { transform: translateX(48px); }

.home-capture-stack b {
  display: block;
  margin-bottom: 3px;
  font-family: var(--font-mono);
  font-size: 9px;
  letter-spacing: 0.05em;
  color: var(--home-blue-deep);
}

.home-screen-frame {
  margin: 0;
  overflow: hidden;
  border: 2px solid var(--home-ink);
  background: var(--home-white);
}

.home-screen-frame img {
  display: block;
  width: 100%;
  height: auto;
}

.home-screen-frame figcaption {
  padding: 11px 14px;
  border-top: 1px solid var(--home-line);
  font-family: var(--font-mono);
  font-size: 10px;
  line-height: 1.4;
  letter-spacing: 0.03em;
  text-transform: uppercase;
  color: var(--home-muted);
}

.home-screen-sparks figcaption span {
  color: var(--ai-orange);
}

/* ─── Honest comparison ─── */

.home-compare {
  color: #fff;
  background: var(--home-blue-dark);
  border-bottom-color: color-mix(in srgb, #fff 15%, transparent);
}

.home-compare .home-eyebrow {
  color: #b9d5ee;
}

.home-section-head-light h2 {
  color: #fff;
}

.home-section-head-light > p:last-child {
  color: #c8d7e4;
}

.home-compare-grid {
  border-top: 1px solid color-mix(in srgb, #fff 40%, transparent);
}

.home-compare-row {
  display: grid;
  grid-template-columns: 0.52fr 1fr 1.08fr;
  border-bottom: 1px solid color-mix(in srgb, #fff 20%, transparent);
}

.home-compare-row > div {
  padding: 23px 22px;
  border-right: 1px solid color-mix(in srgb, #fff 16%, transparent);
  font-size: 15px;
  line-height: 1.55;
  color: #cbd8e3;
}

.home-compare-row > div:last-child {
  border-right: none;
  color: #fff;
  background: color-mix(in srgb, #fff 5%, transparent);
}

.home-compare-row > div:first-child {
  font-family: var(--font-mono);
  font-size: 10px;
  font-weight: 700;
  letter-spacing: 0.05em;
  text-transform: uppercase;
  color: #9eb5c9;
}

.home-compare-header > div {
  font-family: var(--font-mono);
  font-size: 10px;
  font-weight: 700;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: #fff;
}

.home-compare-row strong {
  font-weight: 680;
}

.home-switch-note {
  display: grid;
  grid-template-columns: minmax(0, 1fr) auto;
  gap: 42px;
  align-items: end;
  margin-top: 34px;
  padding-top: 30px;
  border-top: 3px solid #fff;
}

.home-switch-note p {
  max-width: 800px;
  margin: 0;
  font-size: 18px;
  line-height: 1.62;
  color: #dce7f0;
}

.home-switch-note p strong {
  color: #fff;
}

.home-switch-note a {
  font-size: 14px;
  font-weight: 700;
  white-space: nowrap;
  color: #fff;
}

/* ─── Privacy map ─── */

.home-private {
  background: var(--home-mist);
}

.home-private-grid {
  display: grid;
  grid-template-columns: minmax(0, 0.86fr) minmax(500px, 1.14fr);
  gap: clamp(56px, 8vw, 112px);
  align-items: center;
}

.home-private-copy > p {
  max-width: 630px;
  font-size: 17px;
}

.home-inline-link {
  display: inline-flex;
  gap: 8px;
  margin-top: 24px;
  font-weight: 700;
  color: var(--home-blue-deep);
}

.home-private-map {
  padding: 28px;
  border: 2px solid var(--home-ink);
  background: var(--home-white);
}

.home-private-row {
  display: grid;
  grid-template-columns: 36px minmax(0, 1fr) auto;
  gap: 16px;
  align-items: center;
  min-height: 96px;
  padding: 16px;
  border: 1px solid var(--home-line);
}

.home-private-marker {
  display: grid;
  width: 30px;
  height: 30px;
  place-items: center;
  border: 1px solid var(--home-blue);
  font-family: var(--font-mono);
  font-size: 11px;
  font-weight: 700;
  color: var(--home-blue-deep);
}

.home-private-row div {
  display: grid;
  gap: 4px;
}

.home-private-row div strong {
  font-size: 16px;
  line-height: 1.3;
}

.home-private-row div span {
  font-size: 13px;
  line-height: 1.45;
  color: var(--home-muted);
}

.home-private-row > b {
  padding: 5px 7px;
  border: 1px solid var(--home-trust);
  font-family: var(--font-mono);
  font-size: 9px;
  font-weight: 700;
  line-height: 1;
  letter-spacing: 0.04em;
  text-transform: uppercase;
  color: var(--home-trust);
}

.home-private-ai-row > b,
.home-private-ai-row .home-private-marker {
  border-color: var(--ai-orange);
  color: var(--ai-orange);
}

.home-private-connector {
  width: 1px;
  height: 22px;
  margin-left: 31px;
  background: var(--home-line);
}

/* ─── Seven-day beta CTA ─── */

.home-beta {
  overflow: hidden;
  background: var(--home-sky);
}

.home-beta::before {
  content: "7";
  position: absolute;
  right: -0.05em;
  bottom: -0.38em;
  font-family: var(--font-mono);
  font-size: min(52vw, 680px);
  font-weight: 700;
  line-height: 1;
  color: color-mix(in srgb, var(--home-blue) 7%, transparent);
  pointer-events: none;
}

.home-anchor-alias {
  position: absolute;
  top: 0;
}

.home-beta-grid {
  position: relative;
  display: grid;
  grid-template-columns: minmax(0, 0.9fr) minmax(420px, 0.72fr);
  gap: clamp(56px, 8vw, 112px);
  align-items: start;
}

.home-beta-copy blockquote {
  max-width: 650px;
  margin: 38px 0 0;
  padding: 24px 0 0 26px;
  border-top: 1px solid var(--home-line);
  border-left: 3px solid var(--home-blue);
}

.home-beta-copy blockquote p {
  margin: 0;
  font-size: 17px;
  line-height: 1.65;
  color: var(--home-muted);
}

.home-beta-copy blockquote footer {
  margin-top: 12px;
  font-family: var(--font-mono);
  font-size: 11px;
  font-weight: 700;
  color: var(--home-ink);
}

.home-beta-card {
  padding: clamp(28px, 4vw, 44px);
  border: 2px solid var(--home-ink);
  background: var(--home-white);
}

.home-beta-card-label {
  font-family: var(--font-mono);
  font-size: 10px;
  font-weight: 700;
  line-height: 1.4;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  color: var(--home-blue-deep);
}

.home-beta-card h3 {
  margin: 14px 0 0;
  font-family: var(--home-font);
  font-size: 34px;
  line-height: 1.05;
  letter-spacing: -0.035em;
  color: var(--home-ink);
}

.home-beta-card > p:not(.beta-form-status):not(.home-beta-note) {
  margin: 14px 0 0;
  font-size: 15px;
  line-height: 1.55;
  color: var(--home-muted);
}

.home-beta-form {
  display: grid;
  grid-template-columns: 1fr;
  gap: 10px;
  margin-top: 24px;
}

.home-beta-form .beta-input,
.home-beta-form .beta-submit {
  min-height: 52px;
  width: 100%;
  border-radius: var(--corner-control);
  font-family: var(--home-font);
  font-size: 15px;
}

.home-beta-form .beta-input {
  border: 1px solid var(--home-line);
  color: var(--home-ink);
  background: var(--home-white);
}

.home-beta-form .beta-submit {
  text-transform: none;
  letter-spacing: 0;
  background: var(--home-action);
}

.home-beta-form .beta-submit:hover {
  background: var(--home-action-hover);
}

.home-beta-form .beta-turnstile {
  min-height: 0;
}

.home-beta-card .beta-form-status {
  margin: 12px 0 0;
  font-family: var(--home-font);
  font-size: 13px;
  line-height: 1.5;
}

.home-beta-note {
  margin: 14px 0 0;
  font-size: 11px;
  line-height: 1.5;
  color: var(--home-muted);
}

/* ─── Footer and utility overrides ─── */

.home-v2 .footer {
  background: var(--home-white);
  border-top-color: var(--home-line);
}

.home-v2 .mobile-beta-bar {
  border-top: 0;
  border-radius: 0;
  font-family: var(--home-font);
  font-size: 14px;
  letter-spacing: 0;
  text-transform: none;
  background: var(--home-action);
}

/* ─── Responsive ─── */

@media (max-width: 1080px) {
  .home-hero-grid {
    grid-template-columns: minmax(0, 0.86fr) minmax(480px, 1.14fr);
    gap: 46px;
  }

  .home-hero-stage {
    min-height: 560px;
  }

  .home-product-window {
    inset: 82px 10px 30px 50px;
  }

  .home-private-grid {
    grid-template-columns: minmax(0, 0.9fr) minmax(450px, 1.1fr);
    gap: 52px;
  }
}

@media (max-width: 899px) {
  .home-v2 .home-shell {
    width: min(100% - 40px, 760px);
  }

  .home-hero {
    background: var(--home-mist);
  }

  .home-hero-grid,
  .home-private-grid,
  .home-beta-grid {
    grid-template-columns: 1fr;
  }

  .home-hero-copy {
    max-width: 700px;
  }

  .home-hero h1 {
    max-width: 720px;
  }

  .home-hero-stage {
    min-height: 640px;
  }

  .home-relay-inner {
    grid-template-columns: 1fr 50px 1fr;
    gap: 16px;
  }

  .home-story,
  .home-story-reverse {
    grid-template-columns: 1fr;
    gap: 42px;
  }

  .home-story-reverse .home-story-copy {
    order: 0;
  }

  .home-capture-visual {
    min-height: 560px;
  }

  .home-private-map {
    width: 100%;
  }

  .home-beta-card {
    max-width: 620px;
  }
}

@media (max-width: 720px) {
  .home-v2 .home-shell {
    width: min(100% - 32px, 640px);
  }

  .home-hero {
    padding-top: 42px;
    padding-bottom: 52px;
  }

  .home-hero h1 {
    font-size: clamp(43px, 13vw, 62px);
  }

  .home-hero-lead {
    font-size: 18px;
    margin-top: 22px;
  }

  .home-hero-actions {
    display: grid;
    gap: 8px;
    margin-top: 26px;
  }

  .home-button {
    width: 100%;
  }

  .home-hero-stage {
    min-height: 525px;
    margin-top: 30px;
  }

  .home-route {
    top: 62px;
    height: 390px;
  }

  .home-product-window {
    inset: 74px 0 30px 24px;
  }

  .home-capture-ticket {
    width: 64%;
    padding: 11px 12px;
  }

  .home-outcome-ticket {
    right: -2px;
    bottom: 38px;
    width: 69%;
    padding: 13px 14px;
  }

  .home-outcome-ticket strong {
    font-size: 17px;
  }

  .home-source-ticket {
    left: 10px;
    bottom: -8px;
  }

  .home-relay-inner {
    grid-template-columns: 1fr;
  }

  .home-relay-arrow {
    width: 44px;
    transform: rotate(90deg);
    transform-origin: center;
  }

  .home-section-head h2,
  .home-private-copy h2,
  .home-beta-copy h2 {
    font-size: clamp(36px, 11vw, 50px);
  }

  .home-section-head > p:last-child,
  .home-private-copy > p,
  .home-beta-copy > p {
    font-size: 17px;
  }

  .home-capture-visual {
    min-height: 500px;
  }

  .home-phone-frame {
    right: 18px;
    top: 34px;
    width: 46%;
  }

  .home-capture-stack {
    left: 18px;
    top: 76px;
    width: 62%;
  }

  .home-capture-stack span {
    padding: 13px 12px;
    font-size: 11px;
  }

  .home-capture-stack span:nth-child(2) { transform: translateX(8px); }
  .home-capture-stack span:nth-child(3) { transform: translateX(16px); }
  .home-capture-stack span:nth-child(4) { transform: translateX(24px); }

  .home-compare-header {
    display: none;
  }

  .home-compare-row {
    grid-template-columns: 1fr 1fr;
    margin-top: 26px;
    border: 1px solid color-mix(in srgb, #fff 25%, transparent);
  }

  .home-compare-row > div {
    padding: 18px 16px;
    border-right: none;
  }

  .home-compare-row > div:first-child {
    grid-column: 1 / -1;
    border-bottom: 1px solid color-mix(in srgb, #fff 18%, transparent);
  }

  .home-compare-row > div:nth-child(2),
  .home-compare-row > div:nth-child(3) {
    position: relative;
    padding-top: 42px;
    border-right: 1px solid color-mix(in srgb, #fff 16%, transparent);
  }

  .home-compare-row > div:nth-child(3) {
    border-right: none;
  }

  .home-compare-row > div:nth-child(2)::before,
  .home-compare-row > div:nth-child(3)::before {
    position: absolute;
    top: 16px;
    left: 16px;
    font-family: var(--font-mono);
    font-size: 9px;
    font-weight: 700;
    letter-spacing: 0.05em;
    text-transform: uppercase;
    color: #9eb5c9;
  }

  .home-compare-row > div:nth-child(2)::before { content: "Evernote"; }
  .home-compare-row > div:nth-child(3)::before { content: "Clevernotes"; }

  .home-switch-note {
    grid-template-columns: 1fr;
    gap: 22px;
  }

  .home-switch-note a {
    white-space: normal;
  }

  .home-private-map {
    padding: 16px;
  }

  .home-private-row {
    grid-template-columns: 32px minmax(0, 1fr);
    gap: 12px;
  }

  .home-private-row > b {
    grid-column: 2;
    justify-self: start;
  }

  .home-private-connector {
    margin-left: 30px;
  }
}

@media (max-width: 460px) {
  .home-v2 .home-shell {
    width: min(100% - 24px, 420px);
  }

  .home-hero h1 {
    font-size: 43px;
  }

  .home-proof-list { gap: 7px 14px; margin-top: 18px; }

  .home-hero-stage {
    min-height: 470px;
  }

  .home-product-window {
    inset: 70px 0 48px 14px;
  }

  .home-window-bar b {
    display: none;
  }

  .home-capture-ticket {
    width: 72%;
  }

  .home-outcome-ticket {
    width: 78%;
  }

  .home-source-ticket {
    display: none;
  }

  .home-capture-visual {
    min-height: 440px;
  }

  .home-phone-frame {
    top: 30px;
    right: 12px;
  }

  .home-capture-stack {
    left: 12px;
    top: 66px;
  }

  .home-compare-row {
    grid-template-columns: 1fr;
  }

  .home-compare-row > div:nth-child(2),
  .home-compare-row > div:nth-child(3) {
    border-right: none;
    border-bottom: 1px solid color-mix(in srgb, #fff 16%, transparent);
  }

  .home-beta-card {
    padding: 24px 18px;
  }
}

@media (prefers-reduced-motion: reduce) {
  .home-button {
    transition: none;
  }

  .home-button:hover {
    transform: none;
  }
}
/* ─── Use cases: one person, two contexts ─── */

.home-use-cases {
  background: var(--paper-hover);
}

.home-use-case-ledger {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  border: var(--rule-thin) solid var(--rule-editorial);
}

.home-use-case-context + .home-use-case-context {
  border-left: var(--rule-thin) solid var(--rule-editorial);
}

.home-use-case-context header {
  padding: var(--md);
  border-bottom: var(--rule-thick) solid var(--ink-blue);
}

.home-use-case-personal header {
  border-bottom-color: var(--success);
}

.home-use-case-context header span {
  display: block;
  margin-bottom: var(--xs);
  color: var(--text-tertiary);
  font-size: 10px;
  font-weight: 700;
  text-transform: uppercase;
}

.home-use-case-context h3 {
  margin: 0;
  font-size: 26px;
  letter-spacing: -0.03em;
}

.home-use-case-context ul {
  margin: 0;
  padding: 0;
  list-style: none;
}

.home-use-case-context li {
  display: grid;
  grid-template-columns: 98px minmax(0, 1fr);
  gap: var(--sm);
  padding: var(--sm) var(--md);
  border-bottom: var(--rule-thin) solid var(--rule);
  color: var(--text-secondary);
  font-size: 13px;
  line-height: 1.55;
}

.home-use-case-context li:last-child {
  border-bottom: 0;
}

.home-use-case-context li > span {
  color: var(--ink-blue);
  font-size: 10px;
  font-weight: 700;
  text-transform: uppercase;
}

.home-use-case-personal li > span {
  color: var(--success);
}

.home-use-cases-link {
  display: flex;
  justify-content: flex-end;
  margin-top: var(--md);
}

.home-use-cases-link a {
  font-size: 13px;
  font-weight: 700;
}

@media (max-width: 720px) {
  .home-use-case-ledger {
    grid-template-columns: 1fr;
  }

  .home-use-case-context + .home-use-case-context {
    border-left: 0;
    border-top: var(--rule-medium) solid var(--rule-editorial);
  }

  .home-use-case-context li {
    grid-template-columns: 78px minmax(0, 1fr);
    padding-inline: var(--sm);
  }

  .home-use-cases-link {
    justify-content: flex-start;
  }
}

/* ─── Monday test / week strip ─── */

.home-monday {
  background: var(--paper-hover);
}

.home-week-strip {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 14px;
  margin-top: 34px;
}

.home-week-item {
  position: relative;
  min-height: 108px;
  border: 1px solid var(--home-ink);
  background: var(--home-white);
}

.home-week-capture,
.home-week-outcome {
  position: absolute;
  inset: 0;
  display: flex;
  align-items: center;
  gap: 8px;
  padding: 16px 18px;
  font-size: 13px;
  line-height: 1.35;
  transition: opacity 0.45s ease, transform 0.45s ease;
}

.home-week-capture b {
  flex-shrink: 0;
  font-family: var(--font-mono);
  font-size: 9px;
  font-weight: 700;
  letter-spacing: 0.05em;
  color: var(--home-muted);
  border: 1px solid var(--home-line);
  padding: 3px 6px;
}

.home-week-outcome {
  border-left: 4px solid var(--ai-orange);
  background: var(--home-white);
  font-weight: 600;
}

/* Static default (no JS, no IntersectionObserver, reduced motion): the
   accepted next steps are visible. Motion is opt-in — JS adds .is-live
   before animating captures into outcomes. */
.home-week-capture {
  opacity: 0;
  transform: translateY(-8px);
}

.home-week-strip.is-live .home-week-item:not(.is-done) .home-week-capture {
  opacity: 1;
  transform: none;
}

.home-week-strip.is-live .home-week-item:not(.is-done) .home-week-outcome {
  opacity: 0;
  transform: translateY(8px);
}

.home-week-outcome i {
  flex-shrink: 0;
  font-style: normal;
  color: var(--ai-orange);
}

.home-week-note {
  margin: 22px 0 0;
  text-align: center;
  font-family: var(--font-mono);
  font-size: 11px;
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 0.03em;
  color: var(--home-muted);
}

@media (max-width: 860px) {
  .home-week-strip {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }
}

@media (max-width: 540px) {
  .home-week-strip {
    grid-template-columns: minmax(0, 1fr);
  }
}

/* ─── Agents section ─── */

.home-agents {
  background: var(--home-white);
}

.home-agents-grid {
  display: grid;
  grid-template-columns: minmax(0, 5fr) minmax(0, 7fr);
  gap: 48px;
  align-items: center;
}

.home-agents-copy h2 {
  margin: 10px 0 16px;
  font-size: clamp(26px, 3.4vw, 36px);
  line-height: 1.12;
  letter-spacing: -0.02em;
}

.home-agents-points {
  margin: 18px 0 16px;
  padding: 0;
  list-style: none;
}

.home-agents-points li {
  position: relative;
  padding: 7px 0 7px 26px;
  font-size: 14.5px;
  line-height: 1.5;
}

.home-agents-points li::before {
  content: "";
  position: absolute;
  left: 2px;
  top: 14px;
  width: 10px;
  height: 10px;
  border: 2px solid var(--home-trust);
  border-radius: 50%;
}

.home-agents-frame img {
  width: 100%;
  height: auto;
}

@media (max-width: 900px) {
  .home-agents-grid {
    grid-template-columns: minmax(0, 1fr);
    gap: 28px;
  }
}

/* ─── Founding member note ─── */

.home-beta-founding {
  margin-top: 10px;
  padding: 10px 12px;
  border-left: 3px solid var(--ai-orange);
  background: color-mix(in srgb, var(--ai-orange) 7%, transparent);
  font-size: 13px;
  line-height: 1.45;
}

/* ─── Hero capture-to-action loop animation ─── */

.home-hero-stage .home-capture-ticket,
.home-hero-stage .home-outcome-ticket,
.home-hero-stage .home-source-ticket {
  opacity: 1;
}

.home-hero-stage.is-animated .home-capture-ticket {
  animation: home-ticket-in 0.5s ease-out 0.15s backwards;
}

.home-hero-stage.is-animated .home-product-window {
  animation: home-window-in 0.6s ease-out 0.5s backwards;
}

.home-hero-stage.is-animated .home-outcome-ticket {
  animation: home-ticket-pop 0.55s cubic-bezier(0.2, 0.9, 0.3, 1.2) 1.35s backwards;
}

.home-hero-stage.is-animated .home-source-ticket {
  animation: home-ticket-in 0.45s ease-out 1.8s backwards;
}

.home-hero-stage.is-animated .home-route {
  animation: home-route-in 0.9s ease-out 0.6s backwards;
}

.home-hero-stage.is-animated .home-ai-label i {
  animation: home-spark-pulse 2.6s ease-in-out 2.2s 3;
}

@keyframes home-ticket-in {
  from { opacity: 0; transform: translateY(-10px); }
  to { opacity: 1; transform: translateY(0); }
}

@keyframes home-ticket-pop {
  from { opacity: 0; transform: translateY(14px) scale(0.97); }
  to { opacity: 1; transform: translateY(0) scale(1); }
}

@keyframes home-window-in {
  from { opacity: 0; }
  to { opacity: 1; }
}

@keyframes home-route-in {
  from { opacity: 0; }
  to { opacity: 0.45; }
}

@keyframes home-spark-pulse {
  0%, 100% { transform: scale(1); }
  12% { transform: scale(1.35); }
  24% { transform: scale(1); }
}

/* ─── Privacy scramble ─── */

.home-private-map [data-scramble-target].is-cipher {
  font-family: var(--font-mono);
  font-size: 11.5px;
  letter-spacing: 0.02em;
  word-break: break-all;
  color: var(--home-muted);
}

@media (prefers-reduced-motion: reduce) {
  .home-hero-stage.is-animated .home-capture-ticket,
  .home-hero-stage.is-animated .home-product-window,
  .home-hero-stage.is-animated .home-outcome-ticket,
  .home-hero-stage.is-animated .home-source-ticket,
  .home-hero-stage.is-animated .home-route,
  .home-hero-stage.is-animated .home-ai-label i {
    animation: none;
  }

  .home-week-capture,
  .home-week-outcome {
    transition: none;
  }
}
