/*
 * Public landing page styles.
 * Visual source: Stitch export "Nümi App Design Audit" and DESIGN.md.
 * Scoped to the home template (internal/templates/index.html). Other pages
 * keep static/css/styles.css.
 */

:root {
  --surface: #fcf8ff;
  --surface-lowest: #ffffff;
  --surface-subtle: #f8fafc;
  --surface-lavender: #f5f3ff;
  --surface-variant: #e4e1ed;
  --surface-highest: #e4e1ed;
  --primary: #4648d4;
  --primary-container: #6063ee;
  --on-primary: #ffffff;
  --primary-fixed: #e1e0ff;
  --primary-fixed-dim: #c0c1ff;
  --secondary: #712ae2;
  --secondary-container: #8a4cfc;
  --secondary-fixed: #eaddff;
  --tertiary: #904900;
  --tertiary-fixed: #ffdcc5;
  --accent-violet: #8b5cf6;
  --success: #10b981;
  --success-soft: #d1fae5;
  --warning: #f59e0b;
  --warning-soft: #fef3c7;
  --text: #0f172a;
  --text-muted: #64748b;
  --card-border: #e2e8f0;
  --shadow-card: 0 10px 30px -4px rgba(70, 72, 212, 0.18), 0 4px 12px -2px rgba(15, 23, 42, 0.04);
  --shadow-active: 0 0 0 2px #4648d4, 0 12px 28px -6px rgba(70, 72, 212, 0.25);
  --header-h: 4rem;
  --font-display: "Plus Jakarta Sans", system-ui, sans-serif;
  --font-body: "Inter", system-ui, sans-serif;
}

*,
*::before,
*::after {
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
}

body {
  margin: 0;
  background: var(--surface);
  color: var(--text);
  font-family: var(--font-body);
  font-size: 14px;
  line-height: 22px;
  -webkit-font-smoothing: antialiased;
  overflow-x: clip;
}

::selection {
  background: var(--primary);
  color: var(--on-primary);
}

a {
  color: inherit;
  text-decoration: none;
}

button {
  font-family: inherit;
  cursor: pointer;
}

img {
  max-width: 100%;
}

.material-symbols-outlined {
  font-variation-settings: "FILL" 0, "wght" 400, "GRAD" 0, "opsz" 24;
  display: inline-block;
  vertical-align: middle;
  line-height: 1;
  user-select: none;
}

.icon-fill {
  font-variation-settings: "FILL" 1, "wght" 400, "GRAD" 0, "opsz" 24;
}

.wrap {
  width: 100%;
  max-width: 56rem;
  margin: 0 auto;
  padding-left: 1rem;
  padding-right: 1rem;
}

.wrap-wide {
  max-width: 80rem;
}

/* Header */
.site-header {
  position: sticky;
  top: 0;
  z-index: 40;
  height: var(--header-h);
  background: rgba(255, 255, 255, 0.9);
  backdrop-filter: blur(12px);
  border-bottom: 1px solid var(--surface-variant);
  box-shadow: 0 1px 2px rgba(15, 23, 42, 0.04);
}

.site-header .wrap {
  height: 100%;
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding-left: 1rem;
  padding-right: 1rem;
}

@media (min-width: 768px) {
  .site-header .wrap {
    padding-left: 2rem;
    padding-right: 2rem;
  }
}

.brand-cluster {
  display: flex;
  align-items: center;
  gap: 0.625rem;
  min-width: 0;
}

.brand {
  display: flex;
  align-items: center;
  gap: 0.5rem;
}

.brand-mark {
  width: 2.25rem;
  height: 2.25rem;
  border-radius: 0.75rem;
  background: var(--primary);
  color: var(--on-primary);
  display: flex;
  align-items: center;
  justify-content: center;
  box-shadow: 0 1px 2px rgba(15, 23, 42, 0.08);
  transition: transform 0.15s ease;
}

.brand:hover .brand-mark {
  transform: scale(1.05);
}

.brand-mark .material-symbols-outlined {
  font-size: 20px;
}

.brand-name {
  font-family: var(--font-display);
  font-size: 18px;
  font-weight: 800;
  line-height: 24px;
  letter-spacing: -0.02em;
  color: var(--primary);
}

.beta-pill {
  display: inline-flex;
  align-items: center;
  padding: 0.125rem 0.5rem;
  border-radius: 999px;
  background: var(--surface-lavender);
  color: var(--primary);
  border: 1px solid rgba(199, 196, 215, 0.4);
  font-family: var(--font-display);
  font-size: 11px;
  font-weight: 700;
  letter-spacing: 0.04em;
  line-height: 16px;
}

.nav-actions {
  display: flex;
  align-items: center;
  gap: 0.5rem;
  flex-shrink: 0;
}

.nav-toggle {
  display: none;
  align-items: center;
  justify-content: center;
  width: 2.5rem;
  height: 2.5rem;
  padding: 0;
  border: 0;
  border-radius: 0.75rem;
  background: transparent;
  color: var(--text);
  cursor: pointer;
}

.nav-toggle:hover {
  background: var(--surface-lavender);
}

.nav-toggle .icon-close {
  display: none;
}

.nav-toggle.is-open .icon-menu {
  display: none;
}

.nav-toggle.is-open .icon-close {
  display: inline-block;
}

.nav-overlay {
  display: none;
}

.mobile-nav {
  display: none;
}

body.nav-open {
  overflow: hidden;
}

@media (min-width: 640px) {
  .nav-actions {
    gap: 0.75rem;
  }
}

.nav-link,
.nav-signin,
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 0.5rem;
  border: 0;
  background: transparent;
  white-space: nowrap;
  transition: background 0.15s ease, color 0.15s ease, transform 0.15s ease, opacity 0.15s ease;
}

.nav-link {
  color: var(--text-muted);
  font-size: 13px;
  line-height: 18px;
  padding: 0.25rem 0.5rem;
}

.nav-link:hover {
  color: var(--text);
}

.nav-signin {
  color: var(--primary);
  font-family: var(--font-display);
  font-size: 13px;
  font-weight: 600;
  letter-spacing: 0.01em;
  padding: 0.375rem 0.75rem;
  border-radius: 0.5rem;
}

.nav-signin:hover {
  background: var(--surface-lavender);
}

.btn-primary {
  background: var(--primary);
  color: var(--on-primary);
  font-family: var(--font-display);
  font-weight: 700;
  border-radius: 999px;
  box-shadow: 0 1px 2px rgba(15, 23, 42, 0.08);
}

.btn-primary:hover {
  opacity: 0.95;
}

.btn-primary:active,
.btn-light:active {
  transform: scale(0.97);
}

.btn-nav {
  font-size: 13px;
  letter-spacing: 0.01em;
  padding: 0.375rem 0.875rem;
}

.btn-hero {
  width: 100%;
  padding: 0.875rem 1.75rem;
  font-family: var(--font-display);
  font-size: 18px;
  font-weight: 600;
  line-height: 24px;
  border-radius: 999px;
}

.btn-hero.btn-primary {
  box-shadow: 0 4px 12px rgba(70, 72, 212, 0.25);
}

.btn-hero.btn-primary:hover {
  background: var(--primary-container);
  opacity: 1;
}

.btn-outline {
  background: var(--surface-lowest);
  color: var(--text);
  border: 1px solid var(--card-border);
  border-radius: 999px;
}

.btn-outline:hover {
  background: var(--surface-lavender);
}

.btn-block {
  width: 100%;
  padding: 0.75rem 1rem;
  font-family: var(--font-display);
  font-size: 13px;
  font-weight: 700;
  letter-spacing: 0.01em;
  border-radius: 999px;
}

.btn-light {
  background: var(--surface-lowest);
  color: var(--primary);
  font-family: var(--font-display);
  font-size: 18px;
  font-weight: 700;
  line-height: 24px;
  padding: 0.875rem 1.5rem;
  border-radius: 999px;
  box-shadow: 0 8px 20px rgba(15, 23, 42, 0.12);
}

.btn-light:hover {
  background: var(--surface-lavender);
}

.btn-ghost-light {
  color: var(--on-primary);
  border: 1px solid rgba(255, 255, 255, 0.4);
  background: transparent;
  font-family: var(--font-display);
  font-size: 18px;
  font-weight: 600;
  line-height: 24px;
  padding: 0.875rem 1.5rem;
  border-radius: 999px;
}

.btn-ghost-light:hover {
  background: rgba(255, 255, 255, 0.1);
}

.btn .material-symbols-outlined {
  font-size: 20px;
}

/* Hero */
.hero {
  position: relative;
  text-align: center;
  padding: 2.5rem 1rem 3.5rem;
}

.hero-orb {
  position: absolute;
  top: 25%;
  left: 50%;
  width: 20rem;
  height: 20rem;
  transform: translate(-50%, -50%);
  background: rgba(192, 193, 255, 0.4);
  border-radius: 999px;
  filter: blur(48px);
  pointer-events: none;
  z-index: 0;
}

.hero-inner {
  position: relative;
  z-index: 1;
  width: 100%;
  max-width: 36rem;
  margin: 0 auto;
  min-width: 0;
}

.beta-banner {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 0.5rem;
  width: fit-content;
  max-width: 100%;
  margin: 0 auto 1.5rem;
  padding: 0.375rem 0.875rem;
  border-radius: 999px;
  background: rgba(254, 243, 199, 0.8);
  border: 1px solid rgba(245, 158, 11, 0.3);
  color: var(--text);
  font-size: 13px;
  line-height: 18px;
  box-shadow: 0 1px 2px rgba(15, 23, 42, 0.04);
  white-space: normal;
}

.beta-banner span:last-child {
  min-width: 0;
}

.beta-banner .material-symbols-outlined {
  color: var(--warning);
  font-size: 18px;
}

.hero h1 {
  margin: 0 0 1rem;
  font-family: var(--font-display);
  font-size: 30px;
  font-weight: 800;
  line-height: 38px;
  letter-spacing: -0.02em;
  color: var(--text);
  white-space: normal;
  overflow-wrap: break-word;
  text-wrap: balance;
}

.hero h1 span {
  color: var(--primary);
}

.hero-lead {
  margin: 0 auto 2rem;
  max-width: 36rem;
  color: var(--text-muted);
  font-size: 14px;
  line-height: 22px;
}

.hero-actions {
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 0.875rem;
  max-width: 28rem;
  margin: 0 auto 2.5rem;
}

.stats {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 0.5rem;
  width: 100%;
  max-width: 28rem;
  margin: 0 auto;
  padding: 1rem 0.75rem;
  border-radius: 1rem;
  background: rgba(255, 255, 255, 0.8);
  border: 1px solid rgba(226, 232, 240, 0.7);
  backdrop-filter: blur(6px);
  box-shadow: 0 1px 2px rgba(15, 23, 42, 0.04);
}

.stat + .stat {
  border-left: 1px solid var(--card-border);
}

.stat-value {
  font-family: var(--font-display);
  font-size: 20px;
  font-weight: 700;
  line-height: 26px;
}

.stat-value.primary { color: var(--primary); }
.stat-value.secondary { color: var(--secondary); }
.stat-value.success { color: var(--success); }

.stat-label {
  font-family: var(--font-display);
  font-size: 11px;
  font-weight: 700;
  letter-spacing: 0.04em;
  line-height: 16px;
  color: var(--text-muted);
}

/* Shared section rhythm */
.section {
  padding: 2rem 0;
  scroll-margin-top: calc(var(--header-h) + 0.75rem);
}

.section-lg {
  padding: 3rem 0;
}

.section-title {
  margin: 0 0 0.5rem;
  font-family: var(--font-display);
  font-size: 28px;
  font-weight: 700;
  line-height: 36px;
  letter-spacing: -0.02em;
}

.section-lead {
  margin: 0 auto;
  max-width: 32rem;
  color: var(--text-muted);
  font-size: 14px;
  line-height: 22px;
}

.center {
  text-align: center;
}

/* Journey preview */
.preview-card {
  position: relative;
  overflow: hidden;
  background: var(--surface-lowest);
  border: 1px solid var(--card-border);
  border-radius: 1.5rem;
  padding: 1.5rem;
  box-shadow: var(--shadow-card);
  width: 100%;
  max-width: 28rem;
  margin: 0 auto;
}

.preview-top {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 0.5rem;
  margin-bottom: 1rem;
  flex-wrap: wrap;
}

.chip {
  display: inline-flex;
  align-items: center;
  gap: 0.375rem;
  padding: 0.25rem 0.75rem;
  border-radius: 999px;
  font-family: var(--font-display);
  font-size: 11px;
  font-weight: 700;
  letter-spacing: 0.04em;
  line-height: 16px;
}

.chip .material-symbols-outlined {
  font-size: 16px;
}

.chip-success {
  background: var(--success-soft);
  color: var(--success);
  border: 1px solid rgba(16, 185, 129, 0.2);
}

.chip-med {
  background: var(--surface-lavender);
  color: var(--primary);
  padding: 0.25rem 0.625rem;
}

.chip-med .material-symbols-outlined {
  font-size: 15px;
}

.preview-user {
  display: flex;
  align-items: center;
  gap: 0.875rem;
  margin-bottom: 1.25rem;
}

.avatar {
  display: flex;
  align-items: center;
  justify-content: center;
  font-family: var(--font-display);
  font-weight: 700;
  color: #fffbff;
  flex-shrink: 0;
}

.avatar-lg {
  width: 3rem;
  height: 3rem;
  border-radius: 1rem;
  background: var(--primary-container);
  font-size: 22px;
  line-height: 30px;
  box-shadow: 0 1px 2px rgba(15, 23, 42, 0.08);
}

.avatar-sm {
  width: 2.5rem;
  height: 2.5rem;
  border-radius: 999px;
  font-size: 13px;
}

.avatar-s { background: var(--primary-container); }
.avatar-m { background: var(--secondary-container); }
.avatar-e {
  background: var(--surface-lavender);
  color: var(--accent-violet);
  border: 1px solid rgba(139, 92, 246, 0.2);
}

.preview-user h3,
.feature-copy h3,
.author h4 {
  margin: 0;
  font-family: var(--font-display);
  font-size: 18px;
  font-weight: 600;
  line-height: 24px;
}

.muted {
  margin: 0;
  color: var(--text-muted);
  font-size: 13px;
  line-height: 18px;
}

.stepper {
  margin-bottom: 1.5rem;
  padding: 1rem;
  border-radius: 1rem;
  background: var(--surface-subtle);
  border: 1px solid rgba(226, 232, 240, 0.6);
}

.stepper-meta {
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 0.5rem;
  font-family: var(--font-display);
  font-size: 11px;
  font-weight: 700;
  letter-spacing: 0.04em;
  line-height: 16px;
  color: var(--text-muted);
}

.stepper-meta strong {
  color: var(--text);
}

.stepper-meta .now {
  color: var(--primary);
}

.stepper-track {
  position: relative;
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 0.75rem 0 0.25rem;
}

.stepper-line,
.stepper-fill {
  position: absolute;
  left: 1rem;
  top: calc(0.75rem + 1rem);
  height: 4px;
  border-radius: 999px;
  z-index: 0;
}

.stepper-line {
  right: 1rem;
  background: var(--surface-variant);
}

.stepper-fill {
  width: calc((100% - 2rem) * 0.5);
  background: var(--primary);
}

.node {
  position: relative;
  z-index: 1;
  width: 2rem;
  height: 2rem;
  border-radius: 999px;
  display: flex;
  align-items: center;
  justify-content: center;
  font-family: var(--font-display);
  font-size: 11px;
  font-weight: 700;
}

.node .material-symbols-outlined {
  font-size: 16px;
}

.node-done {
  background: var(--primary);
  color: var(--on-primary);
  box-shadow: 0 1px 2px rgba(15, 23, 42, 0.08);
}

.node-active {
  width: 2.25rem;
  height: 2.25rem;
  background: var(--surface-lowest);
  color: var(--primary);
  border: 2px solid var(--primary);
  box-shadow: 0 4px 10px rgba(70, 72, 212, 0.2);
  outline: 4px solid rgba(192, 193, 255, 0.5);
}

.node-next {
  background: var(--surface-highest);
  color: var(--text-muted);
}

.node-goal {
  background: var(--warning-soft);
  color: var(--warning);
  border: 1px solid rgba(245, 158, 11, 0.4);
}

.metrics {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 0.625rem;
  margin-bottom: 1.25rem;
}

.metric {
  text-align: center;
  padding: 0.75rem;
  border-radius: 1rem;
  background: var(--surface-lavender);
  border: 1px solid rgba(192, 193, 255, 0.3);
}

.metric strong {
  display: block;
  margin-bottom: 0.25rem;
  font-family: var(--font-display);
  font-size: 20px;
  font-weight: 700;
  line-height: 1;
  color: var(--primary);
}

.metric span {
  font-family: var(--font-display);
  font-size: 11px;
  font-weight: 700;
  letter-spacing: 0.04em;
  color: var(--text-muted);
}

.checkin {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 0.75rem;
  padding: 0.875rem;
  border-radius: 1rem;
  background: var(--surface-subtle);
  border: 1px solid var(--card-border);
}

.checkin-copy {
  display: flex;
  align-items: center;
  gap: 0.625rem;
  min-width: 0;
}

.checkin-copy > .material-symbols-outlined {
  color: var(--warning);
  flex-shrink: 0;
}

.checkin-title {
  font-family: var(--font-display);
  font-size: 13px;
  font-weight: 700;
  letter-spacing: 0.01em;
  line-height: 18px;
}

.btn-log {
  flex-shrink: 0;
  padding: 0.375rem 0.875rem;
  border: 0;
  border-radius: 999px;
  background: var(--primary);
  color: var(--on-primary);
  font-family: var(--font-display);
  font-size: 11px;
  font-weight: 700;
  letter-spacing: 0.04em;
  box-shadow: 0 1px 2px rgba(15, 23, 42, 0.08);
}

.btn-log:hover {
  opacity: 0.9;
}

.btn-log:active {
  transform: scale(0.97);
}

/* Features */
.feature-grid {
  display: grid;
  grid-template-columns: 1fr;
  gap: 1rem;
  margin-top: 2.5rem;
}

.feature-card,
.review-card,
.plan-card,
.note-card {
  background: var(--surface-lowest);
  border: 1px solid var(--card-border);
  border-radius: 1.5rem;
  box-shadow: var(--shadow-card);
}

.feature-card {
  display: flex;
  align-items: flex-start;
  gap: 1rem;
  padding: 1.25rem;
}

.feature-icon {
  width: 3rem;
  height: 3rem;
  border-radius: 1rem;
  display: flex;
  align-items: center;
  justify-content: center;
  flex-shrink: 0;
}

.feature-icon .material-symbols-outlined {
  font-size: 24px;
}

.icon-lavender { background: var(--surface-lavender); color: var(--primary); }
.icon-mint { background: var(--success-soft); color: var(--success); }
.icon-violet { background: var(--secondary-fixed); color: var(--secondary); }
.icon-indigo { background: var(--primary-fixed); color: var(--primary); }
.icon-amber-solid { background: var(--tertiary-fixed); color: var(--tertiary); }
.icon-amber { background: var(--warning-soft); color: var(--warning); }

.feature-copy h3 {
  margin-bottom: 0.375rem;
}

.feature-copy p,
.note-card p,
.review-card p {
  margin: 0;
  color: var(--text-muted);
  font-size: 14px;
  line-height: 22px;
}

.review-card p {
  color: var(--text);
  font-style: italic;
}

.note-card {
  text-align: center;
  padding: 1.5rem;
  box-shadow: 0 1px 2px rgba(15, 23, 42, 0.04);
}

.note-card .material-symbols-outlined {
  color: var(--primary);
  font-size: 36px;
  margin-bottom: 0.75rem;
}

.note-card h2 {
  margin-bottom: 0.75rem;
}

.note-card p {
  max-width: 42rem;
  margin: 0 auto;
}

/* Reviews */
.review-list {
  display: grid;
  gap: 1rem;
  margin-top: 2.5rem;
}

.review-card {
  display: flex;
  flex-direction: column;
  justify-content: space-between;
  padding: 1.25rem;
}

.stars {
  display: flex;
  color: var(--warning);
  margin-bottom: 0.75rem;
}

.stars .material-symbols-outlined {
  font-size: 18px;
}

.review-card .quote {
  margin-bottom: 1rem;
}

.author {
  display: flex;
  align-items: center;
  gap: 0.75rem;
  padding-top: 0.75rem;
  border-top: 1px solid var(--surface-variant);
}

.author h4 {
  font-size: 15px;
}

.result-mint { color: var(--success); font-weight: 600; }
.result-primary { color: var(--primary); font-weight: 600; }
.result-secondary { color: var(--secondary); font-weight: 600; }

/* Plans */
.plan-grid {
  display: grid;
  gap: 1rem;
  max-width: 42rem;
  margin: 2rem auto 0;
}

.plan-card {
  display: flex;
  flex-direction: column;
  justify-content: space-between;
  padding: 1.5rem;
  box-shadow: 0 1px 2px rgba(15, 23, 42, 0.04);
}

.plan-card-featured {
  position: relative;
  border: 2px solid var(--primary);
  box-shadow: var(--shadow-active);
}

.popular {
  position: absolute;
  top: -0.75rem;
  right: 1.5rem;
  background: var(--primary);
  color: var(--on-primary);
  font-family: var(--font-display);
  font-size: 11px;
  font-weight: 700;
  letter-spacing: 0.04em;
  line-height: 16px;
  padding: 0.125rem 0.75rem;
  border-radius: 999px;
  box-shadow: 0 1px 2px rgba(15, 23, 42, 0.08);
}

.plan-head {
  display: flex;
  justify-content: space-between;
  align-items: center;
  margin-bottom: 1rem;
}

.plan-name {
  font-family: var(--font-display);
  font-size: 18px;
  font-weight: 600;
  line-height: 24px;
}

.plan-name-featured {
  color: var(--primary);
  font-weight: 700;
}

.plan-tag {
  padding: 0.25rem 0.625rem;
  border-radius: 999px;
  background: var(--surface-subtle);
  color: var(--text-muted);
  font-family: var(--font-display);
  font-size: 11px;
  font-weight: 700;
  letter-spacing: 0.04em;
}

.plan-tag-featured {
  background: var(--surface-lavender);
  color: var(--primary);
}

.price {
  margin-bottom: 1rem;
}

.price strong {
  font-family: var(--font-display);
  font-size: 32px;
  font-weight: 800;
  line-height: 36px;
  letter-spacing: -0.02em;
}

.price span {
  color: var(--text-muted);
  font-size: 13px;
}

.plan-list {
  list-style: none;
  margin: 0 0 1.5rem;
  padding: 0;
}

.plan-list li {
  display: flex;
  align-items: center;
  gap: 0.5rem;
  margin-bottom: 0.625rem;
  font-size: 13px;
  line-height: 18px;
}

.plan-list .material-symbols-outlined {
  color: var(--success);
  font-size: 18px;
  flex-shrink: 0;
}

/* Closing banner */
.cta-banner {
  position: relative;
  overflow: hidden;
  text-align: center;
  color: var(--on-primary);
  border-radius: 1.5rem;
  padding: 2rem;
  background: linear-gradient(to bottom right, var(--primary), var(--secondary-container));
  box-shadow: 0 16px 40px rgba(70, 72, 212, 0.28);
}

.cta-glow {
  position: absolute;
  width: 12rem;
  height: 12rem;
  border-radius: 999px;
  background: rgba(255, 255, 255, 0.1);
  filter: blur(32px);
  pointer-events: none;
}

.cta-glow-a { right: -2.5rem; bottom: -2.5rem; }
.cta-glow-b { left: -2.5rem; top: -2.5rem; }

.cta-banner h2,
.cta-banner p,
.cta-actions {
  position: relative;
  z-index: 1;
}

.cta-banner h2 {
  margin: 0 0 0.75rem;
  color: var(--on-primary);
}

.cta-banner p {
  max-width: 32rem;
  margin: 0 auto 2rem;
  color: rgba(255, 255, 255, 0.9);
  font-size: 14px;
  line-height: 22px;
}

.cta-actions {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 0.875rem;
  max-width: 24rem;
  margin: 0 auto;
}

.cta-actions .btn-light,
.cta-actions .btn-ghost-light {
  width: 100%;
}

/* Footer */
.site-footer {
  background: var(--surface-lowest);
  border-top: 1px solid var(--surface-variant);
  padding: 3rem 1rem 4rem;
}

@media (min-width: 768px) {
  .site-footer {
    padding-left: 2rem;
    padding-right: 2rem;
  }
}

.footer-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 2rem;
  margin-bottom: 2.5rem;
}

.footer-brand {
  grid-column: 1 / -1;
}

.footer-logo {
  display: flex;
  align-items: center;
  gap: 0.5rem;
  margin-bottom: 0.75rem;
}

.footer-mark {
  width: 1.75rem;
  height: 1.75rem;
  border-radius: 0.5rem;
  background: var(--primary);
  color: var(--on-primary);
  display: flex;
  align-items: center;
  justify-content: center;
}

.footer-mark .material-symbols-outlined {
  font-size: 16px;
}

.footer-brand p {
  margin: 0 0 1rem;
  max-width: 18rem;
  color: var(--text-muted);
  font-size: 13px;
  line-height: 18px;
}

.footer-version {
  font-family: var(--font-display);
  font-size: 11px;
  font-weight: 700;
  letter-spacing: 0.04em;
  color: var(--text-muted);
}

.footer-service {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 0.5rem;
  color: var(--text-muted);
  font-size: 13px;
  line-height: 18px;
}

.footer-service-name {
  font-weight: 500;
  color: var(--text);
}

.footer-service-version {
  font-family: ui-monospace, SFMono-Regular, Menlo, monospace;
  font-size: 12px;
  line-height: 1.2;
  color: #767586;
  background: #efecf8;
  border-radius: 0.25rem;
  padding: 0.125rem 0.5rem;
}

.site-footer h3 {
  margin: 0 0 0.75rem;
  font-family: var(--font-display);
  font-size: 15px;
  font-weight: 600;
  line-height: 24px;
}

.site-footer ul {
  list-style: none;
  margin: 0;
  padding: 0;
}

.site-footer li + li {
  margin-top: 0.5rem;
}

.site-footer li a {
  color: var(--text-muted);
  font-size: 13px;
  line-height: 18px;
}

.site-footer li a:hover {
  color: var(--primary);
}

.disclaimer {
  border-top: 1px solid var(--surface-variant);
  padding-top: 1.5rem;
  text-align: center;
}

.disclaimer p {
  margin: 0 auto;
  max-width: 56rem;
  color: var(--text-muted);
  font-size: 12px;
  line-height: 1.6;
}

@media (min-width: 640px) {
  .hero-actions,
  .cta-actions {
    flex-direction: row;
  }

  .btn-hero,
  .cta-actions .btn-light,
  .cta-actions .btn-ghost-light {
    width: auto;
  }
}

@media (min-width: 768px) {
  .hero h1 {
    font-size: 40px;
    line-height: 48px;
    letter-spacing: -0.03em;
  }

  .hero-lead {
    font-size: 16px;
    line-height: 26px;
  }

  .feature-grid,
  .plan-grid {
    grid-template-columns: 1fr 1fr;
  }

  .review-list {
    grid-template-columns: repeat(3, 1fr);
  }

  .note-card {
    padding: 2rem;
  }

  .footer-grid {
    grid-template-columns: 1.4fr 1fr 1fr 1fr;
  }

  .footer-brand {
    grid-column: auto;
  }

  .disclaimer {
    text-align: left;
  }
}

/* Desktop: story beside the journey card, wider canvas. Phones stay stacked. */
@media (min-width: 1024px) {
  .wrap {
    max-width: 80rem;
    padding-left: 2rem;
    padding-right: 2rem;
  }

  .hero-band {
    display: grid;
    grid-template-columns: minmax(0, 1.05fr) minmax(22rem, 0.95fr);
    gap: 3rem;
    align-items: center;
    max-width: 80rem;
    margin: 0 auto;
    padding: 3.5rem 2rem 2.5rem;
  }

  .hero {
    padding: 0.5rem 0;
    text-align: left;
  }

  .hero-inner {
    margin: 0;
  }

  .beta-banner {
    margin-left: 0;
    margin-right: 0;
  }

  .hero h1 {
    font-size: 52px;
    line-height: 60px;
    letter-spacing: -0.03em;
  }

  .hero-lead {
    margin-left: 0;
    margin-right: 0;
    max-width: 36rem;
    font-size: 18px;
    line-height: 28px;
  }

  .hero-actions {
    justify-content: flex-start;
    margin-left: 0;
    margin-right: 0;
    max-width: none;
  }

  .stats {
    margin-left: 0;
    margin-right: 0;
  }

  #interactive-preview {
    padding: 0;
  }

  #interactive-preview .wrap {
    max-width: none;
    padding: 0;
  }

  .preview-card {
    max-width: none;
  }

  .section-lg {
    padding: 4.5rem 0;
  }

  .section-title {
    font-size: 36px;
    line-height: 44px;
  }

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

  .plan-grid {
    max-width: 52rem;
  }
}

@media (max-width: 767px) {
  .nav-actions {
    display: none;
  }

  .nav-toggle {
    display: inline-flex;
  }

  .nav-overlay.is-open {
    display: block;
    position: fixed;
    inset: var(--header-h) 0 0 0;
    background: rgba(15, 23, 42, 0.35);
    z-index: 30;
  }

  .mobile-nav {
    display: none;
    flex-direction: column;
    gap: 0.5rem;
    position: absolute;
    top: 100%;
    left: 0;
    right: 0;
    z-index: 31;
    padding: 0.75rem 1rem 1rem;
    background: var(--surface-lowest);
    border-bottom: 1px solid var(--surface-variant);
    box-shadow: 0 12px 32px -4px rgba(70, 72, 212, 0.14);
  }

  .mobile-nav.is-open {
    display: flex;
  }

  .mobile-nav-link {
    display: flex;
    align-items: center;
    width: 100%;
    min-height: 2.75rem;
    padding: 0.75rem 0.25rem;
    border: 0;
    background: transparent;
    color: var(--text);
    font-family: var(--font-display);
    font-size: 16px;
    font-weight: 600;
    line-height: 24px;
    text-align: left;
    cursor: pointer;
  }

  .mobile-nav-cta {
    width: 100%;
    margin-top: 0.25rem;
    padding: 0.75rem 1rem;
    font-size: 16px;
  }
}

@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  .brand-mark,
  .btn,
  .btn-log { transition: none; }
}
