:root {
  --bg: #f4eee5;
  --surface: rgba(255, 252, 247, 0.92);
  --surface-solid: #fffdf9;
  --surface-soft: #f7f1e8;
  --border: #d7ccba;
  --border-strong: #c8b99d;
  --text: #18252b;
  --muted: #667176;
  --primary: #1d5654;
  --primary-h: #143f3d;
  --accent-line: linear-gradient(90deg, #c07a37 0%, #d49b62 24%, #6aa78e 54%, #7d99cb 82%, rgba(255, 255, 255, 0) 100%);
  --discover: #b86624;
  --discover-bg: #f9eadb;
  --engage: #2c755b;
  --engage-bg: #e5f2eb;
  --grow: #6f7f3a;
  --grow-bg: #eef2df;
  --shadow-lg: 0 28px 80px rgba(24, 37, 43, 0.10);
  --shadow-md: 0 18px 44px rgba(24, 37, 43, 0.08);
  --shadow-sm: 0 10px 24px rgba(24, 37, 43, 0.06);
  --shell: 1200px;
}

* {
  box-sizing: border-box;
}

html {
  overflow-x: hidden;
  scroll-behavior: smooth;
}

body {
  margin: 0;
  min-height: 100vh;
  overflow-x: hidden;
  color: var(--text);
  background:
    radial-gradient(circle at top left, rgba(191, 106, 30, 0.12), transparent 32%),
    radial-gradient(circle at right center, rgba(53, 93, 156, 0.08), transparent 28%),
    linear-gradient(180deg, #f8f3eb 0%, var(--bg) 100%);
  font-family: "Avenir Next", "Segoe UI Variable", "Segoe UI", sans-serif;
  font-size: 17px;
  line-height: 1.5;
  font-weight: 400;
  letter-spacing: -0.01em;
}

a {
  color: inherit;
}

p,
h1,
h2,
h3 {
  margin: 0;
}

.shell {
  width: min(var(--shell), calc(100% - 44px));
  margin: 0 auto;
}

.js [data-reveal] {
  opacity: 0;
  transform: translateY(34px);
  transition:
    opacity 0.9s cubic-bezier(0.22, 1, 0.36, 1),
    transform 0.9s cubic-bezier(0.22, 1, 0.36, 1);
}

.js [data-reveal].is-visible {
  opacity: 1;
  transform: translateY(0);
}

.topbar {
  position: sticky;
  top: 0;
  z-index: 50;
  border-bottom: 1px solid rgba(24, 37, 43, 0.06);
  background: rgba(255, 253, 249, 0.78);
  backdrop-filter: blur(18px) saturate(1.08);
}

.topbar::before {
  content: "";
  position: absolute;
  inset: 0 0 auto;
  height: 4px;
  background: var(--accent-line);
  opacity: 1;
}

.topbar-inner {
  min-height: 72px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 20px;
  padding-top: 4px;
}

.brand {
  display: inline-flex;
  align-items: center;
  gap: 11px;
  color: var(--text);
  text-decoration: none;
  font-weight: 700;
  white-space: nowrap;
  letter-spacing: -0.02em;
}

.brand-logo {
  width: 34px;
  height: 34px;
  display: block;
}

.nav {
  display: flex;
  align-items: center;
  justify-content: flex-end;
  gap: 8px;
  flex-wrap: wrap;
}

.nav a,
.footer-links a {
  color: var(--muted);
  text-decoration: none;
  font-size: 0.82rem;
  font-weight: 600;
  letter-spacing: -0.01em;
}

.nav a {
  min-height: 38px;
  display: inline-flex;
  align-items: center;
  padding: 7px 14px;
  border: 1px solid var(--border);
  border-radius: 999px;
  background: transparent;
}

.nav a:hover,
.footer-links a:hover {
  color: var(--text);
}

body[data-page="home"] .nav a[data-nav="home"],
body[data-page="workflow"] .nav a[data-nav="workflow"],
body[data-page="pricing"] .nav a[data-nav="pricing"],
body[data-page="setup"] .nav a[data-nav="setup"],
body[data-page="support"] .nav a[data-nav="support"],
body[data-page="billing"] .nav a[data-nav="billing"],
body[data-page="account"] .nav a[data-nav="account"],
body[data-page="account-support"] .nav a[data-nav="support"] {
  color: #fff;
  background: var(--text);
  border-color: var(--text);
}

.nav .cta-link,
.button-primary {
  color: #fff;
  border-color: transparent;
  background: var(--discover);
  box-shadow: 0 6px 14px rgba(184, 102, 36, 0.18);
}

.hero,
.page-hero,
.section {
  padding: 94px 0;
}

.hero {
  min-height: calc(100svh - 76px);
  display: grid;
  align-items: center;
}

.hero-layout,
.split-layout,
.page-layout {
  display: grid;
  grid-template-columns: minmax(0, 0.9fr) minmax(460px, 0.9fr);
  gap: 72px;
  align-items: center;
}

.split-layout {
  grid-template-columns: minmax(420px, 0.88fr) minmax(0, 1fr);
}

.page-layout {
  grid-template-columns: minmax(0, 1fr) 390px;
}

.eyebrow,
.kicker {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  color: var(--primary);
  font-size: 0.72rem;
  font-weight: 700;
  letter-spacing: 0.12em;
  text-transform: uppercase;
}

.eyebrow::before,
.kicker::before {
  content: "";
  width: 34px;
  height: 3px;
  border-radius: 999px;
  background: var(--accent-line);
}

h1,
h2,
h3 {
  color: var(--text);
  font-family: "Iowan Old Style", "Palatino Linotype", Georgia, serif;
  font-weight: 700;
  letter-spacing: -0.04em;
  line-height: 1.06;
  text-wrap: balance;
}

h1 {
  max-width: 820px;
  margin-top: 18px;
  font-size: clamp(3rem, 5vw, 5rem);
}

h2 {
  font-size: clamp(2.2rem, 3.4vw, 3.6rem);
}

h3 {
  font-size: 1.28rem;
  letter-spacing: -0.025em;
}

.lede,
.page-intro,
.section-intro {
  max-width: 680px;
  margin-top: 22px;
  color: #33434a;
  font-size: clamp(1.15rem, 1.6vw, 1.42rem);
  line-height: 1.42;
  letter-spacing: -0.015em;
}

.muted {
  color: var(--muted);
}

.cta-row {
  display: flex;
  flex-wrap: wrap;
  gap: 14px;
  margin-top: 34px;
}

.button {
  min-height: 50px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  padding: 0 22px;
  border: 1px solid var(--border);
  border-radius: 999px;
  background: rgba(255, 255, 255, 0.78);
  color: var(--text);
  text-decoration: none;
  font-size: 0.98rem;
  font-weight: 600;
  letter-spacing: -0.015em;
  box-shadow: var(--shadow-sm);
  transition: transform 0.16s ease, box-shadow 0.16s ease, border-color 0.16s ease;
}

.button.button-primary {
  color: #fff;
  border-color: transparent;
  background: var(--discover);
  box-shadow: 0 6px 14px rgba(184, 102, 36, 0.18);
}

.button:hover {
  transform: translateY(-1px);
  border-color: rgba(22, 63, 70, 0.12);
  box-shadow: 0 12px 30px rgba(23, 36, 45, 0.08);
}

.button:active {
  transform: translateY(0);
}

.app-frame {
  position: relative;
  min-height: 610px;
  padding: 18px;
  overflow: hidden;
  border: 1px solid var(--border);
  border-radius: 26px;
  background:
    linear-gradient(180deg, rgba(255, 255, 255, 0.9), rgba(250, 246, 239, 0.76)),
    radial-gradient(circle at 88% 12%, rgba(111, 127, 58, 0.08), transparent 26%);
  box-shadow: var(--shadow-lg);
  backdrop-filter: blur(20px);
  transition: box-shadow 0.4s ease;
}

.app-frame::before {
  content: "";
  position: absolute;
  inset: 0 0 auto 0;
  height: 4px;
  background: var(--accent-line);
  opacity: 1;
}

.app-frame::after {
  content: "";
  position: absolute;
  right: -72px;
  bottom: -72px;
  width: 260px;
  height: 260px;
  border-radius: 999px;
  background: radial-gradient(circle, rgba(111, 127, 58, 0.14), rgba(111, 127, 58, 0));
  filter: blur(10px);
  opacity: 1;
  animation: hero-breathe 11s ease-in-out infinite;
}

.preview-shell,
.vision-stat,
.vision-quote {
  position: relative;
  z-index: 1;
  border: 1px solid var(--border);
  background: rgba(255, 253, 249, 0.88);
  box-shadow: var(--shadow-md);
}

.preview-shell {
  display: grid;
  min-height: 100%;
  grid-template-rows: auto 1fr;
  border-radius: 24px;
  overflow: hidden;
}

.preview-topbar {
  display: flex;
  align-items: center;
  gap: 8px;
  padding: 12px 14px;
  background: var(--surface-solid);
  border-bottom: 1px solid var(--border);
}

.preview-label {
  font-size: 11px;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: var(--muted);
  font-weight: 700;
}

.preview-pill,
.preview-tab {
  display: inline-flex;
  align-items: center;
  min-height: 30px;
  padding: 0 12px;
  border: 1px solid var(--border);
  border-radius: 999px;
  color: var(--text);
  background: transparent;
  font-size: 0.78rem;
  font-weight: 600;
}

.preview-tab.is-active {
  color: #fff;
  background: var(--text);
  border-color: var(--text);
}

.preview-toolbar-spacer {
  flex: 1;
}

.preview-pill {
  color: var(--muted);
  background: var(--surface-solid);
}

.preview-main {
  padding: 22px 22px 20px;
}

.preview-header {
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  gap: 18px;
  margin-bottom: 16px;
}

.preview-header h3 {
  font-size: 1.65rem;
  letter-spacing: -0.03em;
}

.preview-header p {
  max-width: 360px;
  margin-top: 4px;
  color: var(--muted);
  font-size: 0.9rem;
  line-height: 1.45;
}

.preview-summary {
  display: flex;
  align-items: center;
  gap: 16px;
  flex-wrap: wrap;
  margin-bottom: 18px;
  padding: 14px 16px;
  border: 1px solid var(--border);
  border-radius: 16px;
  background: var(--surface-solid);
}

.preview-stat {
  display: flex;
  align-items: baseline;
  gap: 6px;
}

.preview-stat strong {
  font-family: "Iowan Old Style", "Palatino Linotype", Georgia, serif;
  font-size: 1.3rem;
  letter-spacing: -0.03em;
}

.preview-stat span {
  color: var(--muted);
  font-size: 0.8rem;
  font-weight: 600;
  letter-spacing: -0.01em;
}

.preview-stat[data-tone="discover"] strong { color: var(--discover); }
.preview-stat[data-tone="engage"] strong { color: var(--engage); }
.preview-stat[data-tone="grow"] strong { color: var(--grow); }

.preview-focus {
  margin-left: auto;
  color: var(--muted);
  font-size: 0.78rem;
  font-weight: 600;
}

.preview-focus strong {
  color: var(--engage);
}

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

.preview-stage {
  display: grid;
  gap: 12px;
  padding: 16px;
  border: 1px solid var(--border);
  border-radius: 18px;
  background: rgba(255, 255, 255, 0.84);
  box-shadow: var(--shadow-sm);
  transition:
    transform 0.32s cubic-bezier(0.22, 1, 0.36, 1),
    box-shadow 0.32s ease,
    border-color 0.32s ease;
  position: relative;
  overflow: hidden;
}

.preview-stage::before {
  content: "";
  position: absolute;
  inset: 0 0 auto;
  height: 3px;
  background: var(--accent);
}

.preview-stage:hover,
.flow-card:hover,
.value-card:hover,
.price-card:hover,
.rule-card:hover,
.memory-card:hover,
.future-point:hover,
.vision-stat:hover,
.vision-quote:hover {
  transform: translateY(-4px);
  box-shadow: 0 22px 42px rgba(23, 36, 45, 0.09);
}

.preview-stage[data-stage="discover"] { --accent: var(--discover); }
.preview-stage[data-stage="engage"] { --accent: var(--engage); }
.preview-stage[data-stage="grow"] { --accent: var(--grow); }

.preview-stage-head {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 10px;
}

.preview-stage-head strong {
  font-size: 1rem;
  font-weight: 700;
  letter-spacing: -0.02em;
}

.preview-stage-head span {
  padding: 4px 8px;
  border-radius: 999px;
  color: var(--accent);
  background: color-mix(in srgb, var(--accent) 12%, white);
  font-size: 0.72rem;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.04em;
}

.preview-stage p {
  color: var(--muted);
  font-size: 0.86rem;
  line-height: 1.45;
}

.preview-card {
  display: grid;
  gap: 8px;
  padding: 13px 14px;
  border: 1px solid color-mix(in srgb, var(--accent) 20%, var(--border));
  border-radius: 14px;
  background: color-mix(in srgb, var(--accent) 6%, white);
}

.preview-card strong {
  display: block;
  font-size: 0.9rem;
  font-weight: 700;
  letter-spacing: -0.015em;
}

.preview-card p {
  color: var(--muted);
  font-size: 0.8rem;
  line-height: 1.42;
}

.workflow-story {
  display: grid;
  gap: 22px;
}

.workflow-step {
  display: grid;
  grid-template-columns: minmax(0, 1fr) minmax(380px, 0.92fr);
  gap: 28px;
  align-items: center;
  padding: 28px;
  border: 1px solid rgba(215, 204, 186, 0.84);
  border-radius: 30px;
  background: rgba(255, 255, 255, 0.82);
  box-shadow: var(--shadow-md);
}

.workflow-step:nth-child(even) {
  grid-template-columns: minmax(380px, 0.92fr) minmax(0, 1fr);
}

.workflow-step:nth-child(even) .workflow-copy {
  order: 2;
}

.workflow-step:nth-child(even) .workflow-shot {
  order: 1;
}

.workflow-step[data-tone="discover"] { --step-accent: var(--discover); --step-accent-bg: var(--discover-bg); }
.workflow-step[data-tone="engage"] { --step-accent: var(--engage); --step-accent-bg: var(--engage-bg); }
.workflow-step[data-tone="grow"] { --step-accent: var(--grow); --step-accent-bg: var(--grow-bg); }
.workflow-step[data-tone="setup"] { --step-accent: var(--primary); --step-accent-bg: rgba(29, 86, 84, 0.10); }

.workflow-copy {
  display: grid;
  gap: 14px;
}

.workflow-kicker {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  width: fit-content;
  padding: 7px 12px;
  border-radius: 999px;
  color: var(--step-accent);
  background: var(--step-accent-bg);
  font-size: 0.76rem;
  font-weight: 700;
  letter-spacing: 0.08em;
  text-transform: uppercase;
}

.workflow-copy h2 {
  font-size: clamp(1.9rem, 2.8vw, 2.8rem);
}

.workflow-copy p {
  color: var(--muted);
  font-size: 1rem;
  line-height: 1.55;
}

.workflow-points {
  display: grid;
  gap: 10px;
  margin: 4px 0 0;
  padding: 0;
  list-style: none;
}

.workflow-points li {
  position: relative;
  padding-left: 22px;
  color: var(--text);
  font-size: 0.96rem;
  line-height: 1.5;
}

.workflow-points li::before {
  content: "";
  position: absolute;
  top: 0.62em;
  left: 0;
  width: 9px;
  height: 9px;
  border-radius: 999px;
  background: var(--step-accent);
  box-shadow: 0 0 0 4px color-mix(in srgb, var(--step-accent) 14%, white);
}

.workflow-shot {
  position: relative;
}

.workflow-browser {
  position: relative;
  overflow: hidden;
  border: 1px solid var(--border);
  border-radius: 24px;
  background: rgba(255, 253, 249, 0.92);
  box-shadow: var(--shadow-lg);
}

.workflow-browser::before {
  content: "";
  position: absolute;
  inset: 0 0 auto 0;
  height: 4px;
  background: var(--accent-line);
}

.workflow-browser-bar {
  display: flex;
  align-items: center;
  gap: 10px;
  padding: 14px 16px 12px;
  border-bottom: 1px solid var(--border);
  background: var(--surface-solid);
}

.workflow-browser-dots {
  display: flex;
  gap: 6px;
}

.workflow-browser-dots span {
  width: 9px;
  height: 9px;
  border-radius: 999px;
  background: rgba(24, 37, 43, 0.16);
}

.workflow-browser-pill {
  min-height: 28px;
  display: inline-flex;
  align-items: center;
  padding: 0 12px;
  border: 1px solid var(--border);
  border-radius: 999px;
  color: var(--muted);
  font-size: 0.76rem;
  font-weight: 600;
}

.workflow-screen {
  display: grid;
  gap: 14px;
  padding: 18px;
}

.workflow-screen-head {
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  gap: 14px;
}

.workflow-screen-head strong {
  display: block;
  font-family: "Iowan Old Style", "Palatino Linotype", Georgia, serif;
  font-size: 1.35rem;
  letter-spacing: -0.03em;
}

.workflow-screen-head span {
  display: block;
  margin-top: 4px;
  color: var(--muted);
  font-size: 0.82rem;
  line-height: 1.45;
}

.workflow-chip {
  display: inline-flex;
  align-items: center;
  padding: 6px 10px;
  border-radius: 999px;
  color: var(--step-accent);
  background: var(--step-accent-bg);
  font-size: 0.74rem;
  font-weight: 700;
  letter-spacing: 0.04em;
  text-transform: uppercase;
}

.workflow-board {
  display: grid;
  gap: 10px;
}

.workflow-row {
  display: grid;
  gap: 8px;
  padding: 14px;
  border: 1px solid color-mix(in srgb, var(--step-accent) 18%, var(--border));
  border-radius: 16px;
  background: color-mix(in srgb, var(--step-accent) 6%, white);
}

.workflow-row strong {
  font-size: 0.93rem;
  letter-spacing: -0.015em;
}

.workflow-row p,
.workflow-row span {
  color: var(--muted);
  font-size: 0.8rem;
  line-height: 1.45;
}

.workflow-mini-stats {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 10px;
}

.workflow-mini-stat {
  padding: 12px;
  border: 1px solid var(--border);
  border-radius: 14px;
  background: rgba(255, 255, 255, 0.86);
}

.workflow-mini-stat strong {
  display: block;
  font-family: "Iowan Old Style", "Palatino Linotype", Georgia, serif;
  font-size: 1.2rem;
  letter-spacing: -0.03em;
}

.workflow-mini-stat span {
  color: var(--muted);
  font-size: 0.75rem;
  font-weight: 600;
}

.card-meta {
  display: flex;
  flex-wrap: wrap;
  gap: 7px;
}

.card-meta span {
  padding: 5px 8px;
  border-radius: 999px;
  color: var(--accent);
  background: rgba(255, 252, 247, 0.8);
  border: 1px solid color-mix(in srgb, var(--accent) 24%, transparent);
  font-size: 0.78rem;
  font-weight: 600;
  letter-spacing: -0.01em;
}

.story-band {
  color: #f8f3eb;
  background:
    radial-gradient(circle at 18% 18%, rgba(255, 255, 255, 0.12), transparent 26%),
    radial-gradient(circle at 82% 18%, rgba(111, 127, 58, 0.18), transparent 30%),
    linear-gradient(135deg, #18252b, #193b3b 48%, #40542b);
}

.story-band h2 {
  color: #fffaf2;
}

.story-band .section-intro,
.story-band .muted {
  color: rgba(248, 243, 235, 0.76);
}

.center-story {
  max-width: 980px;
  margin: 0 auto;
  text-align: center;
}

.center-story h2 {
  margin-top: 14px;
}

.section-header {
  max-width: 860px;
  margin-bottom: 30px;
}

.section-header h2 {
  margin-top: 12px;
}

.section-header p {
  margin-top: 16px;
  color: var(--muted);
  font-size: 1.08rem;
}

.flow-grid,
.value-grid {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 16px;
}

.future-section {
  padding-top: 30px;
}

.future-points {
  display: grid;
  gap: 14px;
  margin-top: 28px;
}

.future-point {
  display: grid;
  gap: 5px;
  padding: 18px 18px 18px 22px;
  border: 1px solid rgba(221, 212, 199, 0.82);
  border-left: 4px solid var(--accent);
  border-radius: 22px;
  background: rgba(255, 255, 255, 0.78);
  box-shadow: var(--shadow-sm);
  transition:
    transform 0.3s cubic-bezier(0.22, 1, 0.36, 1),
    box-shadow 0.3s ease;
}

.future-point:nth-child(1) {
  --accent: var(--discover);
}

.future-point:nth-child(2) {
  --accent: var(--engage);
}

.future-point:nth-child(3) {
  --accent: var(--grow);
}

.future-point strong {
  font-size: 1.02rem;
  font-weight: 600;
  letter-spacing: -0.02em;
}

.future-point span {
  color: var(--muted);
  line-height: 1.42;
  letter-spacing: -0.012em;
}

.vision-panel {
  position: relative;
  min-height: 470px;
  overflow: hidden;
  border: 1px solid rgba(221, 212, 199, 0.85);
  border-radius: 36px;
  background:
    radial-gradient(circle at 24% 20%, rgba(181, 109, 47, 0.1), transparent 26%),
    radial-gradient(circle at 82% 28%, rgba(111, 127, 58, 0.12), transparent 28%),
    linear-gradient(160deg, rgba(255, 255, 255, 0.95), rgba(245, 241, 234, 0.84));
  box-shadow: var(--shadow-lg);
}

.vision-orbit {
  position: absolute;
  border: 1px solid rgba(29, 86, 84, 0.12);
  border-radius: 999px;
}

.orbit-one {
  inset: 58px 72px auto 54px;
  height: 250px;
}

.orbit-two {
  inset: auto 42px 48px 90px;
  height: 182px;
}

.vision-board {
  position: absolute;
  inset: 34px;
  display: grid;
  align-content: center;
  gap: 16px;
}

.vision-stat,
.vision-quote {
  max-width: 320px;
  padding: 20px;
  border: 1px solid rgba(221, 212, 199, 0.88);
  border-radius: 24px;
  background: rgba(255, 255, 255, 0.86);
  box-shadow: var(--shadow-md);
  backdrop-filter: blur(10px);
  transition:
    transform 0.3s cubic-bezier(0.22, 1, 0.36, 1),
    box-shadow 0.3s ease;
}

.vision-stat:nth-child(2) {
  margin-left: auto;
}

.vision-stat span,
.vision-quote span {
  display: block;
  color: var(--muted);
  font-size: 0.8rem;
  font-weight: 600;
  letter-spacing: 0.04em;
  text-transform: uppercase;
}

.vision-stat strong {
  display: block;
  margin-top: 8px;
  font-size: 1.34rem;
  font-weight: 600;
  letter-spacing: -0.03em;
  line-height: 1.15;
}

.vision-quote {
  max-width: 360px;
}

.vision-quote p {
  font-size: 1.18rem;
  font-weight: 500;
  line-height: 1.38;
  letter-spacing: -0.018em;
}

.vision-quote span {
  margin-top: 10px;
}

.flow-grid {
  grid-template-columns: repeat(4, minmax(0, 1fr));
}

.flow-card,
.value-card,
.price-card {
  position: relative;
  min-height: 230px;
  overflow: hidden;
  padding: 28px;
  border: 1px solid rgba(215, 204, 186, 0.84);
  border-radius: 30px;
  background: rgba(255, 255, 255, 0.82);
  box-shadow: var(--shadow-md);
  transition:
    transform 0.3s cubic-bezier(0.22, 1, 0.36, 1),
    box-shadow 0.3s ease,
    border-color 0.3s ease;
}

.flow-card::before,
.value-card::before {
  content: "";
  position: absolute;
  inset: 0 0 auto;
  height: 3px;
  background: var(--accent);
}

.flow-card:nth-child(1),
.value-card:nth-child(1) {
  --accent: var(--discover);
}

.flow-card:nth-child(2),
.value-card:nth-child(2) {
  --accent: var(--engage);
}

.flow-card:nth-child(3),
.value-card:nth-child(3) {
  --accent: var(--grow);
}

.flow-card:nth-child(4),
.value-card:nth-child(4) {
  --accent: var(--primary);
}

.flow-number {
  width: 42px;
  height: 42px;
  display: grid;
  place-items: center;
  margin-bottom: 24px;
  border-radius: 15px;
  color: #fff;
  background: var(--accent);
  font-weight: 600;
}

.flow-card p,
.value-card p,
.price-card p {
  margin-top: 12px;
  color: var(--muted);
  font-size: 1rem;
  line-height: 1.45;
  letter-spacing: -0.012em;
}

.flow-card strong,
.value-card strong {
  display: block;
  font-size: 1.12rem;
  font-weight: 600;
  letter-spacing: -0.02em;
}

.settings-visual,
.memory-visual {
  position: relative;
  min-height: 450px;
  overflow: hidden;
  border: 1px solid rgba(221, 212, 199, 0.84);
  border-radius: 36px;
  background: rgba(255, 255, 255, 0.78);
  box-shadow: var(--shadow-lg);
}

.settings-board,
.memory-board {
  position: absolute;
  inset: 28px;
  display: grid;
  align-content: center;
  gap: 13px;
}

.rule-card,
.memory-card {
  padding: 18px;
  border: 1px solid rgba(221, 212, 199, 0.85);
  border-radius: 22px;
  background: rgba(255, 255, 255, 0.9);
  box-shadow: var(--shadow-md);
  transition:
    transform 0.3s cubic-bezier(0.22, 1, 0.36, 1),
    box-shadow 0.3s ease;
}

.rule-card strong,
.memory-card strong {
  display: block;
  font-weight: 600;
  letter-spacing: -0.02em;
}

.rule-card span,
.memory-card span {
  display: block;
  margin-top: 4px;
  color: var(--muted);
  font-size: 0.95rem;
  font-weight: 400;
  line-height: 1.42;
  letter-spacing: -0.012em;
}

.rule-card:nth-child(1),
.memory-card:nth-child(1) {
  border-left: 4px solid var(--discover);
}

.rule-card:nth-child(2),
.memory-card:nth-child(2) {
  border-left: 4px solid var(--engage);
}

.rule-card:nth-child(3),
.memory-card:nth-child(3) {
  border-left: 4px solid var(--grow);
}

.rule-line,
.memory-line {
  height: 6px;
  border-radius: 999px;
  background: var(--accent-line);
}

.price-card {
  min-height: auto;
  background: rgba(255, 252, 247, 0.9);
}

.pricing-hero {
  max-width: 1040px;
}

.pricing-hero-layout {
  display: grid;
  grid-template-columns: minmax(0, 1.05fr) minmax(420px, 0.95fr);
  gap: 36px;
  align-items: start;
}

.pricing-intro {
  max-width: 620px;
}

.pricing-bands {
  padding-top: 8px;
}

.pricing-stack {
  display: grid;
  grid-template-columns: minmax(0, 1fr);
  gap: 18px;
  align-self: stretch;
}

.price-band {
  display: grid;
  grid-template-columns: 1fr;
  gap: 20px;
  align-items: start;
  padding: 34px;
  height: 100%;
}

.price-band-copy {
  max-width: none;
  min-height: 108px;
}

.price-band-copy p {
  min-height: 40px;
}

.price-band-summary {
  display: grid;
  justify-items: start;
  align-content: start;
}

.price-band-workspaces {
  margin-top: 0;
  color: var(--primary);
  font-size: 1rem;
  font-weight: 700;
  letter-spacing: -0.015em;
}

.pricing-stack .price-card-featured {
  min-height: 100%;
}

.pricing-section-header {
  margin-bottom: 24px;
}

.compare-table-wrap {
  border: 1px solid rgba(221, 212, 199, 0.84);
  border-radius: 28px;
  overflow-x: auto;
  overflow-y: hidden;
  background: rgba(255, 255, 255, 0.88);
  box-shadow: var(--shadow-md);
}

.compare-table {
  width: 100%;
  min-width: 760px;
  border-collapse: collapse;
}

.compare-table th,
.compare-table td {
  padding: 18px 20px;
  border-bottom: 1px solid rgba(221, 212, 199, 0.84);
  color: var(--muted);
  font-size: 0.98rem;
  line-height: 1.4;
  text-align: left;
  vertical-align: middle;
}

.compare-table thead th {
  background: rgba(248, 245, 239, 0.95);
  color: var(--text);
  font-weight: 700;
  white-space: nowrap;
}

.compare-table tbody th {
  color: var(--text);
  font-weight: 700;
}

.compare-table tbody tr:last-child th,
.compare-table tbody tr:last-child td {
  border-bottom: 0;
}

.compare-number {
  color: var(--text);
  font-weight: 700;
  text-align: center;
}

.compare-badge {
  display: inline-flex;
  align-items: center;
  padding: 6px 10px;
  border-radius: 999px;
  background: rgba(228, 240, 235, 0.95);
  color: var(--primary);
  font-size: 0.8rem;
  font-weight: 700;
  letter-spacing: 0.02em;
  white-space: nowrap;
}

.compare-badge-muted {
  background: rgba(240, 233, 223, 0.95);
  color: #7a5c43;
}

.price-card-featured {
  position: relative;
  border-color: rgba(22, 63, 70, 0.16);
  box-shadow: 0 24px 60px rgba(22, 63, 70, 0.14);
}

.price-badge {
  position: absolute;
  top: 34px;
  right: 34px;
  display: inline-flex;
  align-items: center;
  width: fit-content;
  padding: 7px 11px;
  border-radius: 999px;
  background: rgba(228, 240, 235, 0.95);
  color: var(--primary);
  font-size: 0.76rem;
  font-weight: 700;
  letter-spacing: 0.05em;
  text-transform: uppercase;
}

.price-card h2 {
  font-size: 1.75rem;
  letter-spacing: -0.035em;
  line-height: 1.08;
}

.price {
  display: flex;
  align-items: baseline;
  gap: 10px;
  margin: 18px 0;
}

.price strong {
  font-size: 3.7rem;
  font-weight: 600;
  line-height: 1;
  letter-spacing: -0.06em;
}

.price-features {
  display: grid;
  gap: 0;
  margin: 20px 0 0;
  padding: 0;
  list-style: none;
}

.price-features li {
  position: relative;
  padding: 11px 0 11px 28px;
  border-top: 1px solid var(--border);
  color: var(--muted);
  font-size: 1rem;
  font-weight: 500;
  line-height: 1.4;
  letter-spacing: -0.012em;
}

.price-features li::before {
  content: "";
  position: absolute;
  top: 18px;
  left: 0;
  width: 13px;
  height: 13px;
  border-radius: 999px;
  background: var(--accent-line);
  box-shadow: 0 0 0 4px rgba(255, 252, 247, 0.9);
}

.proof-pills {
  display: flex;
  flex-wrap: wrap;
  gap: 9px;
  margin-top: 26px;
}

.proof-pill {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 8px 12px;
  border: 1px solid var(--border);
  border-radius: 999px;
  background: rgba(255, 252, 247, 0.8);
  color: #33434a;
  font-size: 0.88rem;
  font-weight: 500;
  letter-spacing: -0.01em;
}

.proof-pill::before {
  content: "";
  width: 7px;
  height: 7px;
  border-radius: 999px;
  background: var(--accent, var(--primary));
}

.proof-pill:nth-child(1) {
  --accent: var(--discover);
}

.proof-pill:nth-child(2) {
  --accent: var(--engage);
}

.proof-pill:nth-child(3) {
  --accent: var(--grow);
}

.footer {
  padding: 56px 0 64px;
}

.footer-shell {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 18px;
  flex-wrap: wrap;
  padding-top: 28px;
  border-top: 1px solid rgba(221, 212, 199, 0.8);
}

.footer-shell-legal {
  flex-direction: column;
  align-items: center;
  text-align: center;
  gap: 12px;
}

.footer-trust {
  max-width: 760px;
  margin: 0;
  color: var(--muted);
  font-size: 0.92rem;
  line-height: 1.5;
  letter-spacing: -0.012em;
}

.footer-links {
  display: flex;
  flex-wrap: wrap;
  gap: 22px;
  margin: 0;
  padding: 0;
  list-style: none;
}

.legal-links a {
  font-size: 0.9rem;
}

.legal-layout {
  grid-template-columns: minmax(0, 1fr);
}

.legal-stack {
  max-width: 860px;
  display: grid;
  gap: 18px;
}

.legal-card {
  padding: 28px;
  border: 1px solid rgba(221, 212, 199, 0.84);
  border-radius: 30px;
  background: rgba(255, 255, 255, 0.82);
  box-shadow: var(--shadow-md);
}

.legal-card h2 {
  font-size: clamp(1.35rem, 2.2vw, 1.7rem);
}

.legal-card p {
  margin-top: 12px;
  color: var(--muted);
  font-size: 1rem;
  line-height: 1.55;
  letter-spacing: -0.012em;
}

.support-layout {
  align-items: start;
}

.support-form-panel,
.support-context-panel {
  display: grid;
  gap: 18px;
}

.support-auth-panel,
.support-session-summary {
  display: grid;
  gap: 12px;
}

.support-form-panel {
  padding: 30px;
  border: 1px solid rgba(221, 212, 199, 0.84);
  border-radius: 34px;
  background: rgba(255, 255, 255, 0.84);
  box-shadow: var(--shadow-lg);
}

.support-form {
  display: grid;
  gap: 16px;
}

.support-form-grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 16px;
}

.support-form label {
  display: grid;
  gap: 8px;
  color: var(--text);
  font-size: 0.95rem;
  font-weight: 600;
  letter-spacing: -0.012em;
}

.support-form input,
.support-form select,
.support-form textarea {
  width: 100%;
  border: 1px solid rgba(221, 212, 199, 0.95);
  border-radius: 18px;
  background: rgba(255, 255, 255, 0.92);
  color: var(--text);
  font: inherit;
  padding: 14px 16px;
  box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.75);
}

.support-form textarea {
  resize: vertical;
  min-height: 120px;
}

.support-form textarea[readonly] {
  background: var(--surface-soft);
  color: var(--muted);
}

.support-session-summary {
  padding: 16px 18px;
  border-radius: 20px;
  border: 1px solid rgba(22, 63, 70, 0.12);
  background: rgba(248, 245, 239, 0.92);
  color: var(--text);
  font-weight: 600;
  letter-spacing: -0.012em;
}

.support-notice {
  padding: 16px 18px;
  border-radius: 20px;
  border: 1px solid rgba(29, 86, 84, 0.16);
  background: rgba(228, 240, 235, 0.78);
  color: var(--primary);
  font-weight: 600;
  letter-spacing: -0.012em;
}

.support-notice[data-tone="error"] {
  border-color: rgba(181, 109, 47, 0.22);
  background: rgba(246, 234, 220, 0.9);
  color: #8b4f1f;
}

.support-context-panel {
  align-content: start;
}

.support-context-card {
  min-height: auto;
}

@keyframes hero-breathe {
  0%, 100% {
    transform: translate3d(0, 0, 0) scale(1);
    opacity: 0.9;
  }
  50% {
    transform: translate3d(-12px, -10px, 0) scale(1.06);
    opacity: 1;
  }
}

@media (prefers-reduced-motion: reduce) {
  *,
  *::before,
  *::after {
    animation-duration: 1ms !important;
    animation-iteration-count: 1 !important;
    scroll-behavior: auto !important;
    transition-duration: 1ms !important;
  }

  .js [data-reveal] {
    opacity: 1 !important;
    transform: none !important;
  }
}

@media (max-width: 1040px) {
  .pricing-hero-layout,
  .hero-layout,
  .split-layout,
  .page-layout,
  .workflow-step,
  .workflow-step:nth-child(even),
  .support-form-grid,
  .flow-grid,
  .value-grid {
    grid-template-columns: 1fr;
  }

  .price-band {
    grid-template-columns: 1fr;
  }

  .workflow-step:nth-child(even) .workflow-copy,
  .workflow-step:nth-child(even) .workflow-shot {
    order: initial;
  }

  .pricing-stack {
    grid-template-columns: 1fr;
  }

  .price-badge {
    top: 22px;
    right: 22px;
  }

  .price-band-copy,
  .price-band-copy p {
    min-height: 0;
  }

  .compare-table-wrap {
    border-radius: 22px;
  }

  .compare-table {
    min-width: 680px;
  }

  .compare-table th,
  .compare-table td {
    padding: 16px 16px;
  }
}

@media (max-width: 720px) {
  .shell {
    width: min(320px, calc(100% - 70px));
    margin-left: 35px;
    margin-right: auto;
  }

  .topbar .shell,
  .footer .shell {
    width: min(320px, calc(100% - 40px));
    margin-right: auto;
    margin-left: auto;
  }

  .topbar-inner {
    min-height: 0;
    align-items: center;
    flex-direction: column;
    gap: 10px;
    padding: 14px 0;
  }

  .nav {
    display: grid;
    grid-template-columns: repeat(3, max-content);
    justify-content: center;
    gap: 3px;
  }

  .nav a {
    padding: 6px 8px;
    font-size: 0.79rem;
  }

  .eyebrow,
  .kicker {
    max-width: 100%;
    flex-wrap: wrap;
    font-size: 0.66rem;
    letter-spacing: 0.08em;
    line-height: 1.35;
  }

  .nav .cta-link {
    grid-column: 1 / -1;
    width: 100%;
    justify-content: center;
    margin-top: 4px;
  }

  .hero,
  .page-hero,
  .section {
    min-height: 0;
    padding: 54px 0;
  }

  .hero-layout,
  .split-layout,
  .page-layout {
    gap: 36px;
  }

  h1 {
    font-size: 2.45rem;
  }

  h2 {
    font-size: 2rem;
  }

  .lede,
  .page-intro,
  .section-intro {
    font-size: 1.08rem;
    line-height: 1.45;
  }

  .cta-row {
    flex-direction: column;
  }

  .button {
    width: 100%;
  }

  .app-frame {
    min-height: 520px;
    padding: 16px;
  }

  .preview-main {
    padding: 16px;
  }

  .preview-header {
    display: grid;
    gap: 10px;
  }

  .preview-header h3 {
    font-size: 1.42rem;
  }

  .preview-summary {
    gap: 12px;
    padding: 12px 14px;
  }

  .preview-focus {
    margin-left: 0;
  }

  .preview-grid {
    grid-template-columns: 1fr;
  }

  .workflow-step {
    padding: 22px;
  }

  .workflow-mini-stats {
    grid-template-columns: 1fr;
  }

  .preview-stage {
    padding: 14px;
  }

  .flow-card,
  .value-card,
  .price-card {
    min-height: 170px;
    padding: 22px;
  }

  .settings-visual,
  .memory-visual,
  .vision-panel {
    min-height: 360px;
  }

  .settings-board,
  .memory-board {
    inset: 22px;
  }
}
