:root {
  --page: #f3f1ee;
  --stone-surface: #faf8f5;
  --stone-panel: #f0ebe3;
  --stone-border: #e0ddd8;
  --stone-muted: #78716c;
  --stone-ink: #292524;
  --rose-brand: #c48b90;
  --rose-soft: #d4a0a4;
  --rose-blush: #e8b4b8;
  --rose-deep: #8b5a5f;
  --blush-50: #fff5f7;
  --blush-100: #fdeef2;
  --blush-200: #f8e8ec;
  --header-bg: rgba(243, 241, 238, 0.82);
  --shadow-soft: 0 10px 30px rgba(80, 40, 50, 0.08);
  --shadow-card: 0 1px 2px rgba(41, 37, 36, 0.04), 0 8px 24px rgba(41, 37, 36, 0.06);
  --font-display: "Fraunces", Georgia, serif;
  --font-body: "Source Sans 3", "Segoe UI", sans-serif;
  color-scheme: light;
}
html.dark {
  --page: #1c1917;
  --stone-surface: #292522;
  --stone-panel: #37302c;
  --stone-border: #574e48;
  --stone-muted: #a8a29e;
  --stone-ink: #f5f0eb;
  --rose-brand: #a85c64;
  --rose-soft: #c47880;
  --rose-blush: #c47880;
  --rose-deep: #e8c4c7;
  --blush-50: #302628;
  --blush-100: #3a2d30;
  --blush-200: #48363a;
  --header-bg: rgba(28, 25, 23, 0.82);
  --shadow-soft: 0 10px 30px rgba(0, 0, 0, 0.35);
  --shadow-card: 0 1px 2px rgba(0, 0, 0, 0.2), 0 8px 24px rgba(0, 0, 0, 0.28);
  color-scheme: dark;
}
* { box-sizing: border-box; }
html { scroll-behavior: smooth; scroll-padding-top: 5.5rem; }
body {
  margin: 0;
  font-family: var(--font-body);
  color: var(--stone-ink);
  background: var(--page);
  line-height: 1.55;
}
a { color: var(--rose-deep); text-decoration: none; }
a:hover { text-decoration: underline; }
:focus-visible { outline: 2px solid var(--rose-brand); outline-offset: 3px; }
.wrap { width: min(1100px, calc(100% - 2rem)); margin: 0 auto; }

/* Header */
.site-header {
  position: sticky;
  top: 0;
  z-index: 40;
  border-bottom: 1px solid var(--stone-border);
  background: var(--header-bg);
  -webkit-backdrop-filter: blur(12px);
  backdrop-filter: blur(12px);
}
.site-header-inner {
  display: flex; align-items: center; justify-content: space-between;
  flex-wrap: wrap;
  padding: 0.8rem 0; gap: 0.75rem 1.25rem;
}
.brand-mark {
  display: inline-flex; align-items: center; text-decoration: none;
}
.brand-mark:hover { text-decoration: none; opacity: 0.92; }
.brand-mark img {
  display: block;
  height: 2.35rem;
  width: auto;
  max-width: min(200px, 52vw);
}
html:not(.dark) .logo-dark,
html.dark .logo-light { display: none; }
.nav {
  display: flex; align-items: center; gap: 0.35rem 1.15rem; flex-wrap: wrap;
  font-size: 0.95rem; font-weight: 500;
}
.nav a { color: var(--stone-muted); }
.nav a:hover, .nav a[aria-current="page"] { color: var(--stone-ink); text-decoration: none; }
.nav a[aria-current="page"] { font-weight: 600; }
.nav .nav-demo {
  appearance: none;
  margin: 0;
  padding: 0;
  border: none;
  background: none;
  font: inherit;
  font-weight: 500;
  color: var(--stone-muted);
  cursor: pointer;
}
.nav .nav-demo:hover { color: var(--stone-ink); }
.nav .nav-demo:focus-visible { border-radius: 4px; }
.theme-toggle {
  appearance: none;
  display: inline-grid;
  place-items: center;
  width: 2.25rem;
  height: 2.25rem;
  margin: 0;
  padding: 0;
  border: 1px solid var(--stone-border);
  border-radius: 0.75rem;
  background: var(--stone-surface);
  color: var(--stone-ink);
  cursor: pointer;
  transition: border-color 0.15s ease;
}
.theme-toggle:hover { border-color: var(--rose-brand); }
.theme-toggle svg { width: 1.05rem; height: 1.05rem; }
.theme-toggle [data-theme-icon] { display: none; }
.theme-toggle[data-theme-mode="system"] [data-theme-icon="system"],
.theme-toggle[data-theme-mode="light"] [data-theme-icon="light"],
.theme-toggle[data-theme-mode="dark"] [data-theme-icon="dark"] { display: block; }

/* Demo chooser */
.demo-modal[hidden] { display: none; }
.demo-modal {
  position: fixed;
  inset: 0;
  z-index: 80;
  display: grid;
  place-items: center;
  padding: 1.25rem;
}
.demo-modal-backdrop {
  position: absolute;
  inset: 0;
  background: rgba(28, 25, 23, 0.5);
}
.demo-modal-dialog {
  position: relative;
  z-index: 1;
  width: min(32rem, 100%);
  padding: 1.5rem 1.4rem 1.25rem;
  border-radius: 1.25rem;
  border: 1px solid var(--stone-border);
  background: var(--stone-surface);
  box-shadow: var(--shadow-soft);
}
.demo-modal-dialog h2 {
  font-family: var(--font-display);
  font-size: 1.45rem;
  margin: 0 0 0.4rem;
  color: var(--stone-ink);
}
.demo-modal-dialog > p {
  margin: 0 0 1.15rem;
  color: var(--stone-muted);
  font-size: 0.98rem;
}
.demo-modal-choices {
  display: grid;
  gap: 0.75rem;
}
.demo-modal-choice {
  display: block;
  padding: 0.95rem 1rem;
  border-radius: 0.9rem;
  border: 1px solid var(--stone-border);
  background: var(--page);
  color: var(--stone-ink);
  text-decoration: none;
  transition: border-color 0.15s ease, background 0.15s ease;
}
.demo-modal-choice:hover {
  text-decoration: none;
  border-color: var(--rose-brand);
  background: var(--blush-50);
}
.demo-modal-choice strong {
  display: block;
  font-size: 1.02rem;
  color: var(--stone-ink);
}
.demo-modal-choice span {
  display: block;
  margin-top: 0.2rem;
  font-size: 0.9rem;
  color: var(--stone-muted);
}
.demo-modal-close {
  display: block;
  width: 100%;
  margin-top: 0.9rem;
  padding: 0.55rem;
  border: none;
  background: none;
  font: inherit;
  font-weight: 600;
  color: var(--rose-deep);
  cursor: pointer;
}
.demo-modal-close:hover { text-decoration: underline; }

/* Shared type */
.eyebrow {
  display: flex; align-items: center; gap: 0.6rem;
  text-transform: uppercase; letter-spacing: 0.18em; font-size: 0.72rem;
  font-weight: 700; color: var(--rose-deep); margin: 0 0 0.85rem;
}
.eyebrow::before {
  content: "";
  width: 1.5rem;
  height: 1px;
  background: currentColor;
  opacity: 0.7;
}
.card .eyebrow::before, .pricing-card .eyebrow::before { display: none; }
.lede {
  font-size: 1.15rem; color: var(--stone-muted); max-width: 38rem; margin: 0;
}
.section-title {
  font-family: var(--font-display);
  font-size: clamp(1.6rem, 3vw, 2.1rem);
  line-height: 1.15;
  letter-spacing: -0.02em;
  margin: 0 0 0.6rem;
  color: var(--stone-ink);
}

/* Buttons */
.btn {
  display: inline-flex; align-items: center; justify-content: center; gap: 0.4rem;
  padding: 0.72rem 1.2rem; border-radius: 0.8rem; font-weight: 600;
  background: var(--stone-ink); color: var(--page); text-decoration: none;
  border: 1px solid var(--stone-ink); box-shadow: var(--shadow-soft);
  transition: transform 0.15s ease, opacity 0.15s ease;
}
.btn:hover { text-decoration: none; color: var(--page); opacity: 0.9; transform: translateY(-1px); }
.btn-secondary {
  background: var(--stone-surface); color: var(--stone-ink);
  border: 1px solid var(--stone-border);
  box-shadow: none;
}
.btn-secondary:hover { color: var(--stone-ink); border-color: var(--rose-brand); opacity: 1; }
.btn-group { display: flex; flex-wrap: wrap; gap: 0.65rem; }

/* Home */
.hero { padding: 4.5rem 0 3rem; }
.hero h1 {
  font-family: var(--font-display);
  font-size: clamp(2.3rem, 5.2vw, 3.6rem);
  line-height: 1.08; margin: 0 0 1.1rem; letter-spacing: -0.03em;
  max-width: 48rem;
  text-wrap: balance;
  color: var(--stone-ink);
}
.hero h1 em {
  font-style: normal;
  color: var(--rose-deep);
}
.hero .lede { margin-bottom: 1.75rem; }
.products {
  display: grid; grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
  gap: 1.25rem; padding: 0 0 4rem;
}
.card {
  background: var(--stone-surface);
  border: 1px solid var(--stone-border);
  border-radius: 1.25rem;
  padding: 1.6rem 1.6rem 1.45rem;
  box-shadow: var(--shadow-card);
  transition: border-color 0.2s ease;
}
.card:hover { border-color: color-mix(in srgb, var(--rose-brand) 55%, var(--stone-border)); }
.card h2 {
  font-family: var(--font-display); font-size: 1.5rem; line-height: 1.2; margin: 0 0 0.5rem;
  color: var(--stone-ink);
}
.card p { color: var(--stone-muted); margin: 0 0 1rem; }
.card ul { margin: 0 0 1.4rem; padding: 0; list-style: none; color: var(--stone-ink); }
.card li { position: relative; margin: 0.45rem 0; padding-left: 1.45rem; }
.card li::before {
  content: "✓";
  position: absolute;
  left: 0;
  font-weight: 700;
  color: var(--rose-brand);
}
.product-card { display: flex; flex-direction: column; }
.product-card .btn-group { margin-top: auto; }
.product-tag {
  display: inline-flex;
  align-items: center;
  gap: 0.5rem;
  margin: 0 0 1rem;
  font-size: 0.8rem;
  font-weight: 700;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: var(--rose-deep);
}
.product-tag-dot {
  width: 0.55rem;
  height: 0.55rem;
  border-radius: 999px;
  background: var(--rose-brand);
}
.bridge {
  display: grid;
  grid-template-columns: minmax(0, 1fr) minmax(0, 1.2fr);
  gap: 1.5rem 3rem;
  align-items: start;
  border-top: 1px solid var(--stone-border);
  padding: 3.5rem 0;
}
.bridge p { color: var(--stone-muted); margin: 0; font-size: 1.05rem; }
.pricing-signal {
  display: grid;
  grid-template-columns: minmax(0, 1fr) minmax(0, 1.2fr);
  gap: 1.5rem 3rem;
  align-items: start;
  border-top: 1px solid var(--stone-border);
  padding: 3.5rem 0;
}
.pricing-signal-list {
  margin: 0 0 1.25rem; padding: 0; list-style: none;
  border: 1px solid var(--stone-border);
  border-radius: 1.1rem;
  background: var(--stone-surface);
  overflow: hidden;
}
.pricing-signal-list li {
  display: flex; flex-wrap: wrap; justify-content: space-between; gap: 0.25rem 1rem;
  padding: 0.95rem 1.15rem;
  color: var(--stone-muted);
}
.pricing-signal-list li + li { border-top: 1px dashed var(--stone-border); }
.pricing-signal-list strong { color: var(--stone-ink); }

/* Contact */
.landing-contact {
  display: grid;
  grid-template-columns: minmax(0, 1.3fr) minmax(0, 1fr);
  gap: 1.5rem 2.5rem;
  align-items: center;
  margin: 0 0 4rem;
  padding: 2rem;
  border: 1px solid var(--stone-border);
  border-radius: 1.5rem;
  background: var(--stone-surface);
  box-shadow: var(--shadow-card);
}
.landing-contact p { margin: 0; color: var(--stone-muted); }
.landing-contact .contact-note { margin-top: 0.75rem; font-size: 0.95rem; }
.landing-contact-links {
  display: flex;
  flex-wrap: wrap;
  gap: 0.65rem;
  margin-top: 1.4rem;
}
.bailey {
  display: flex;
  align-items: center;
  justify-content: flex-end;
  gap: 0.9rem;
  min-width: 0;
}
.bailey-quip {
  appearance: none;
  max-width: 14rem;
  margin: 0;
  padding: 0.65rem 0.85rem;
  border: 1px solid var(--stone-border);
  border-radius: 1rem 1rem 0.25rem 1rem;
  background: var(--stone-panel);
  color: var(--stone-ink);
  font: inherit;
  font-size: 0.85rem;
  font-style: italic;
  line-height: 1.4;
  text-align: left;
  cursor: pointer;
}
.bailey figure { margin: 0; text-align: center; }
.bailey img {
  width: 6rem;
  height: 6rem;
  border-radius: 50%;
  object-fit: cover;
  box-shadow: var(--shadow-card);
  outline: 4px solid color-mix(in srgb, var(--rose-brand) 30%, transparent);
  outline-offset: 2px;
}
.bailey figcaption { margin-top: 0.45rem; line-height: 1.2; }
.bailey-name { display: block; font-size: 0.8rem; font-weight: 700; color: var(--stone-ink); }
.bailey-role {
  display: block;
  font-size: 0.62rem;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: var(--rose-deep);
}

/* Footer */
.site-footer {
  border-top: 1px solid var(--stone-border);
  background: var(--stone-surface);
  color: var(--stone-muted);
  font-size: 0.95rem;
}
.site-footer-inner {
  display: grid;
  grid-template-columns: minmax(0, 1.4fr) repeat(2, minmax(0, 1fr));
  gap: 2rem;
  padding: 2.75rem 0 2rem;
}
.site-footer-brand img { height: 2.1rem; width: auto; }
.site-footer-brand p { margin: 0.85rem 0 0; max-width: 22rem; }
.site-footer h2 {
  margin: 0 0 0.75rem;
  font-size: 0.72rem;
  font-weight: 700;
  letter-spacing: 0.16em;
  text-transform: uppercase;
  color: var(--stone-ink);
}
.site-footer ul { margin: 0; padding: 0; list-style: none; display: grid; gap: 0.45rem; }
.site-footer a { color: var(--stone-muted); }
.site-footer a:hover { color: var(--rose-deep); }
.site-footer-bottom {
  display: flex; flex-wrap: wrap; justify-content: space-between; gap: 0.5rem 1.5rem;
  border-top: 1px solid var(--stone-border);
  padding: 1.1rem 0 1.6rem;
  font-size: 0.85rem;
}

/* Legal */
.page-hero {
  border-bottom: 1px solid var(--stone-border);
  padding: 3.5rem 0 2.25rem;
}
.page-hero h1 {
  font-family: var(--font-display);
  font-size: clamp(2.2rem, 5vw, 3.2rem);
  line-height: 1.1;
  letter-spacing: -0.03em;
  margin: 0 0 1rem;
}
.updated-pill {
  display: inline-flex;
  gap: 0.4rem;
  margin: 0;
  padding: 0.3rem 0.8rem;
  border: 1px solid var(--stone-border);
  border-radius: 999px;
  background: var(--stone-surface);
  font-size: 0.9rem;
  color: var(--stone-muted);
}
.updated-pill strong { color: var(--stone-ink); }
.legal-prose {
  max-width: 46rem;
  margin: 2.5rem 0 4rem;
  padding: 2rem 2.25rem;
  border: 1px solid var(--stone-border);
  border-radius: 1.5rem;
  background: var(--stone-surface);
  box-shadow: var(--shadow-card);
}
.legal-prose h2 {
  font-family: var(--font-display);
  font-size: 1.35rem;
  margin: 2rem 0 0.6rem;
  padding-top: 1.6rem;
  border-top: 1px dashed var(--stone-border);
  color: var(--stone-ink);
}
.legal-prose h2:first-child { margin-top: 0; padding-top: 0; border-top: 0; }
.legal-prose p, .legal-prose li { color: var(--stone-ink); line-height: 1.75; }
.legal-prose strong { color: var(--stone-ink); }

/* Product pages */
.product-hero { padding: 2.5rem 0 1.5rem; }
.feature-grid {
  display: grid; grid-template-columns: repeat(auto-fit, minmax(220px, 1fr));
  gap: 0.85rem; padding: 0 0 3rem;
}
.feature {
  border: 1px solid var(--stone-border); border-radius: 1rem; padding: 1rem 1.1rem;
  background: var(--stone-surface);
}
.feature strong { display: block; margin-bottom: 0.25rem; color: var(--stone-ink); }
.feature span { color: var(--stone-muted); font-size: 0.95rem; }

/* Pricing */
.pricing-main { padding: 3.5rem 0 3rem; }
.pricing-title {
  font-family: var(--font-display);
  font-size: clamp(2.2rem, 5vw, 3.2rem);
  line-height: 1.1;
  margin: 0 0 0.75rem; letter-spacing: -0.03em;
}
.pricing-grid {
  display: grid; grid-template-columns: repeat(auto-fit, minmax(260px, 1fr));
  gap: 1.15rem; padding: 2rem 0 1.5rem;
}
.pricing-amount {
  font-family: var(--font-display); font-size: 1.85rem; font-weight: 700;
  color: var(--stone-ink); margin: 0 0 0.35rem !important;
}
.pricing-badge {
  display: inline-block; font-size: 0.75rem; font-weight: 700;
  text-transform: uppercase; letter-spacing: 0.06em;
  color: var(--rose-deep); margin: 0 0 0.5rem !important;
}
.pricing-annual {
  display: flex;
  flex-wrap: wrap;
  align-items: baseline;
  gap: 0.25rem 0.5rem;
  margin: 0 0 0.85rem;
  font-size: 0.92rem;
  color: var(--stone-muted);
  line-height: 1.4;
}
.pricing-annual-price {
  color: var(--stone-ink);
  font-weight: 600;
}
.pricing-annual-save {
  display: inline-flex;
  padding: 0.1rem 0.55rem;
  border-radius: 999px;
  background: #d1fae5;
  color: #065f46;
  font-size: 0.8rem;
  font-weight: 700;
}
html.dark .pricing-annual-save { background: rgba(6, 78, 59, 0.55); color: #a7f3d0; }
.pricing-annual-note {
  color: var(--stone-muted);
}
.pricing-cta-group {
  display: grid;
  grid-template-rows: auto auto auto;
  gap: 0.65rem;
  margin: auto 0 0;
  padding-top: 1rem;
  min-height: 7.75rem;
}
.pricing-cta-primary,
.pricing-cta-secondary,
.pricing-cta-tertiary {
  display: flex;
  flex-direction: column;
  justify-content: center;
  min-height: 2.65rem;
}
.pricing-cta-group .btn {
  width: 100%;
}
.pricing-cta-link {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 100%;
  padding: 0.35rem 0.5rem;
  font-size: 0.95rem;
  font-weight: 600;
  color: var(--rose-deep);
  text-decoration: none;
}
.pricing-cta-link:hover {
  text-decoration: underline;
  color: var(--rose-deep);
}
.pricing-grid > .pricing-card,
.pricing-grid > .card {
  display: flex;
  flex-direction: column;
}
.pricing-card .card-list-reset { list-style: none; }
.pricing-card--featured {
  border-color: color-mix(in srgb, var(--rose-brand) 60%, var(--stone-border));
  box-shadow: 0 0 0 1px color-mix(in srgb, var(--rose-brand) 35%, transparent), var(--shadow-card);
}
.pricing-note {
  border-top: 1px solid var(--stone-border); padding: 1.75rem 0 2.5rem;
  max-width: 40rem;
}
.pricing-note h2 {
  font-family: var(--font-display); font-size: 1.25rem; margin: 0 0 0.5rem;
}
.pricing-note p { color: var(--stone-muted); margin: 0 0 0.75rem; }
.pricing-source { font-size: 0.85rem; opacity: 0.85; }

.pricing-features {
  margin-top: 0.85rem;
  border-top: 1px dashed var(--stone-border);
  padding-top: 0.65rem;
}
.pricing-features summary {
  cursor: pointer;
  list-style: none;
  font-size: 0.95rem;
  font-weight: 600;
  color: var(--rose-deep);
}
.pricing-features summary::-webkit-details-marker { display: none; }
.pricing-features summary::after {
  content: " ▾";
  font-weight: 400;
  opacity: 0.75;
}
.pricing-features[open] summary::after { content: " ▴"; }
.card .pricing-features-list {
  list-style: none;
  margin: 0.75rem 0 0;
  padding: 0;
  display: grid;
  gap: 0.4rem;
}
.card .pricing-features-list li {
  display: flex;
  gap: 0.5rem;
  align-items: flex-start;
  margin: 0;
  padding-left: 0;
  font-size: 0.92rem;
  color: var(--stone-muted);
}
.card .pricing-features-list li::before { content: none; }
.card .pricing-features-list li.is-included { color: var(--stone-ink); }
.card .pricing-features-list li.is-missing { opacity: 0.55; }
.pricing-feature-mark {
  flex: 0 0 1rem;
  font-weight: 700;
  color: var(--rose-brand);
}
.pricing-features-empty {
  margin: 0.65rem 0 0;
  font-size: 0.9rem;
  color: var(--stone-muted);
}

.visually-hidden {
  position: absolute;
  width: 1px;
  height: 1px;
  padding: 0;
  margin: -1px;
  overflow: hidden;
  clip: rect(0, 0, 0, 0);
  white-space: nowrap;
  border: 0;
}

.pricing-compare {
  margin: 2.5rem 0 1rem;
  padding: 2rem 0 0;
  border-top: 1px solid var(--stone-border);
}
.pricing-compare-title {
  font-family: var(--font-display);
  font-size: clamp(1.45rem, 3vw, 1.9rem);
  margin: 0 0 1rem;
  color: var(--stone-ink);
  letter-spacing: -0.02em;
}
.pricing-compare-lede {
  margin: 0 0 1.25rem;
  color: var(--stone-muted);
  max-width: 40rem;
  font-size: 1.05rem;
}
.pricing-compare-scroll {
  overflow-x: auto;
  -webkit-overflow-scrolling: touch;
  border: 1px solid var(--stone-border);
  border-radius: 1.1rem;
  background: var(--stone-surface);
  box-shadow: var(--shadow-card);
}
.pricing-compare-table {
  width: 100%;
  min-width: 36rem;
  border-collapse: collapse;
  font-size: 0.95rem;
}
.pricing-compare-table th,
.pricing-compare-table td {
  padding: 0.85rem 1rem;
  text-align: center;
  border-bottom: 1px solid var(--stone-border);
  vertical-align: middle;
}
.pricing-compare-table thead th {
  font-weight: 700;
  color: var(--stone-ink);
  background: var(--stone-panel);
}
.pricing-compare-table tbody th[scope="row"] {
  text-align: left;
  font-weight: 600;
  color: var(--stone-ink);
  white-space: normal;
  max-width: 16rem;
  vertical-align: top;
}
.pricing-compare-note {
  display: block;
  margin-top: 0.2rem;
  font-size: 0.75rem;
  font-weight: 400;
  color: var(--stone-muted);
  line-height: 1.35;
  white-space: normal;
}
.pricing-compare-table tbody tr:last-child th,
.pricing-compare-table tbody tr:last-child td {
  border-bottom: none;
}
.pricing-compare-yes {
  font-weight: 700;
  color: var(--rose-brand);
}
.pricing-compare-no {
  color: var(--stone-muted);
  opacity: 0.7;
}
.pricing-compare-save {
  font-size: 0.82rem;
  font-weight: 700;
  color: #047857;
}
html.dark .pricing-compare-save { color: #6ee7b7; }
.pricing-compare-caption {
  margin: 1rem 0 0;
  font-size: 0.9rem;
  color: var(--stone-muted);
  max-width: 42rem;
}

@media (max-width: 760px) {
  .site-header { position: static; }
  html { scroll-padding-top: 1rem; }
  .hero { padding: 3rem 0 2.25rem; }
  .bridge, .pricing-signal, .landing-contact, .site-footer-inner { grid-template-columns: minmax(0, 1fr); }
  .landing-contact { padding: 1.5rem; }
  .bailey { justify-content: flex-start; }
  .legal-prose { padding: 1.4rem 1.25rem; }
}
@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  .btn, .btn:hover { transition: none; transform: none; }
}
