:root {
  --ink: #1D1D1F;
  --graphite: #1D2935;
  --slate: #6E6E73;
  --porcelain: #F5F5F7;
  --surface: #FFFFFF;
  --silver: #F2F2F5;
  --mist: #D2D2D7;
  --tile-start: #F8FBFF;
  --tile-end: #EAF8F1;
  --system-blue: #007AFF;
  --green: #34C759;
  --brand-600: #16423C;
  --brand-500: #1E5A52;
  --brand-100: #DDEBE8;
  --font-brand: "Manrope", -apple-system, BlinkMacSystemFont, system-ui, sans-serif;
  --font-ui: -apple-system, BlinkMacSystemFont, "Inter", system-ui, sans-serif;
  --font-mono: "JetBrains Mono", "SF Mono", ui-monospace, Menlo, monospace;
  --sh-panel: 0 1px 0 rgba(17,22,26,.04), 0 6px 24px rgba(17,22,26,.06);
  --sh-icon-lg: 0 4px 8px rgba(17,22,26,.12), 0 24px 60px rgba(17,22,26,.18);
}

* { box-sizing: border-box; }
html {
  scroll-behavior: smooth;
  overflow-x: hidden;
}
body {
  margin: 0;
  background: var(--porcelain);
  color: var(--ink);
  font-family: var(--font-ui);
  font-size: 15px;
  line-height: 1.55;
  -webkit-font-smoothing: antialiased;
  overflow-x: hidden;
}
a { color: inherit; text-decoration: none; }
:where(a, button, input, select, textarea):focus-visible {
  outline: 3px solid color-mix(in srgb, var(--system-blue) 80%, white);
  outline-offset: 3px;
}
.btn:focus-visible,
.cta:focus-visible,
.language-switch .lang:focus-visible,
.cookie-banner button:focus-visible,
.cookie-banner a:focus-visible {
  box-shadow: 0 0 0 4px rgba(0,122,255,.18);
}
.page {
  max-width: 1220px;
  margin: 0 auto;
  padding: 28px 44px 0;
}
.nav {
  display: grid;
  grid-template-columns: minmax(150px, 1fr) auto minmax(220px, 1fr);
  align-items: center;
  gap: 24px;
  padding: 18px 0 64px;
}
.brand {
  display: inline-flex;
  align-items: center;
  gap: 12px;
  font-family: var(--font-brand);
  font-weight: 600;
  font-size: 20px;
  letter-spacing: 0;
}
.brand img {
  width: 34px;
  height: 34px;
  border-radius: 8px;
  box-shadow: 0 1px 2px rgba(17,22,26,.08), 0 4px 12px rgba(17,22,26,.06);
}
.navlinks,
.nav-actions {
  display: flex;
  align-items: center;
  gap: 26px;
  color: var(--slate);
  font-size: 13px;
  font-weight: 500;
}
.navlinks { justify-content: center; }
.nav-actions { justify-content: flex-end; gap: 18px; }
.navlinks a:not(.cta):hover,
.navlinks a.active,
.nav-actions a:not(.cta):hover,
.login { color: var(--ink); }
.language-switch {
  display: inline-flex;
  align-items: center;
  gap: 2px;
  padding: 3px;
  border: 1px solid var(--mist);
  border-radius: 8px;
  background: var(--surface);
}
.language-switch .lang {
  min-width: 30px;
  min-height: 38px;
  padding: 4px 7px;
  border-radius: 6px;
  color: var(--slate);
  font-family: var(--font-mono);
  font-size: 10px;
  letter-spacing: .06em;
  text-align: center;
  display: inline-flex;
  align-items: center;
  justify-content: center;
}
.language-switch .lang.active {
  background: var(--silver);
  color: var(--ink);
}
.cta {
  background: var(--brand-500);
  color: var(--porcelain);
  padding: 9px 14px;
  border-radius: 8px;
  box-shadow: 0 1px 2px rgba(17,22,26,.08), 0 4px 12px rgba(17,22,26,.06);
  white-space: nowrap;
}
.hero {
  display: grid;
  grid-template-columns: 1.02fr .98fr;
  gap: 64px;
  align-items: center;
  padding: 26px 0 88px;
}
.hero.slim { grid-template-columns: 1fr; padding: 26px 0 52px; }
.eyebrow {
  margin: 0 0 18px;
  font-family: var(--font-mono);
  font-size: 11px;
  font-weight: 500;
  letter-spacing: .14em;
  text-transform: uppercase;
  color: var(--slate);
}
h1 {
  max-width: 760px;
  margin: 0 0 24px;
  font-family: var(--font-brand);
  font-size: clamp(48px, 6.4vw, 76px);
  font-weight: 500;
  letter-spacing: 0;
  line-height: .99;
  text-wrap: balance;
  overflow-wrap: anywhere;
  hyphens: auto;
}
.lede {
  max-width: 44ch;
  margin: 0 0 34px;
  color: var(--slate);
  font-size: 19px;
  line-height: 1.5;
}
.actions {
  display: flex;
  flex-wrap: wrap;
  gap: 12px;
  align-items: center;
}
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 44px;
  padding: 0 18px;
  border: 0;
  border-radius: 10px;
  font: inherit;
  font-size: 14px;
  font-weight: 500;
  cursor: pointer;
  text-align: center;
  max-width: 100%;
  white-space: normal;
  line-height: 1.25;
}
.btn.primary {
  background: var(--brand-500);
  color: var(--porcelain);
}
.btn.secondary {
  background: var(--porcelain);
  color: var(--ink);
  border: 1px solid var(--mist);
}
.btn.disabled {
  cursor: default;
  opacity: .62;
}
.notice {
  display: grid;
  gap: 4px;
  max-width: 520px;
  margin-top: 20px;
  padding: 14px 16px;
  border: 1px solid rgba(30,90,82,.2);
  border-radius: 12px;
  background: rgba(221,235,232,.42);
  color: var(--slate);
  font-size: 13px;
  line-height: 1.5;
}
.notice strong {
  color: var(--brand-600);
  font-size: 14px;
}
.release-status {
  width: fit-content;
  display: inline-flex;
  align-items: center;
  gap: 8px;
  margin: 0 0 16px;
  padding: 7px 11px;
  border: 1px solid rgba(30,90,82,.2);
  border-radius: 999px;
  background: rgba(221,235,232,.48);
  color: var(--brand-600);
  font-family: var(--font-mono);
  font-size: 10px;
  font-weight: 700;
  letter-spacing: .1em;
  text-transform: uppercase;
}
.release-status-dot {
  width: 7px;
  height: 7px;
  border-radius: 50%;
  background: var(--brand-500);
  box-shadow: 0 0 0 4px rgba(30,90,82,.1);
}
.access-note {
  display: grid;
  gap: 5px;
  max-width: 560px;
  margin: 20px 0 0;
  padding: 15px 16px;
  border: 1px solid rgba(30,90,82,.2);
  border-radius: 12px;
  background:
    linear-gradient(135deg, rgba(221,235,232,.52), rgba(255,255,255,.42)),
    var(--surface);
  color: var(--slate);
  font-size: 13px;
  line-height: 1.5;
}
.access-note.compact {
  margin: -12px 0 24px;
}
.access-note-title {
  color: var(--brand-600);
  font-size: 14px;
}
.access-note-text {
  display: block;
}
.hero-meta {
  display: flex;
  flex-wrap: wrap;
  gap: 30px;
  margin-top: 34px;
  font-family: var(--font-mono);
  font-size: 11px;
  letter-spacing: .1em;
  text-transform: uppercase;
  color: var(--slate);
}
.hero > *,
.section.split > *,
.feature,
.pricing-card,
.download-card,
.auth-card,
.preference-card,
.footer,
.footer-links {
  min-width: 0;
}
.hero-meta b {
  color: var(--ink);
  font-weight: 500;
}
.icon-stage {
  display: flex;
  justify-content: center;
  align-items: center;
  min-height: 440px;
  border-radius: 22px;
  background:
    radial-gradient(circle at 50% 44%, rgba(10,132,255,.16), transparent 38%),
    linear-gradient(135deg, var(--tile-start), var(--tile-end));
  border: 1px solid var(--mist);
  box-shadow: var(--sh-panel);
}
.hero-logo-shell {
  width: min(360px, 72vw);
  height: min(360px, 72vw);
  display: grid;
  place-items: center;
  border-radius: 22.37%;
  background:
    linear-gradient(180deg, rgba(255,255,255,.22), rgba(255,255,255,0)),
    var(--graphite);
  box-shadow: var(--sh-icon-lg);
  overflow: hidden;
}
.hero-logo-shell mekazu-logo {
  width: 100% !important;
  height: 100% !important;
  display: block;
  --mk-ready-green: var(--brand-500);
}
.section {
  padding: 86px 0;
  border-top: 1px solid var(--mist);
}
.section.first { border-top: 0; padding-top: 0; }
.section.split {
  display: grid;
  grid-template-columns: .9fr 1.1fr;
  gap: 56px;
  align-items: center;
}
.section-title {
  max-width: 760px;
  margin: 0 0 14px;
  font-family: var(--font-brand);
  font-size: clamp(34px, 4.4vw, 52px);
  font-weight: 500;
  letter-spacing: 0;
  line-height: 1.05;
  text-wrap: balance;
  overflow-wrap: anywhere;
  hyphens: auto;
}
.section-lede {
  max-width: 58ch;
  margin: 0 0 42px;
  color: var(--slate);
  font-size: 17px;
}
.feature-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 1px;
  border: 1px solid var(--mist);
  border-radius: 16px;
  overflow: hidden;
  background: var(--mist);
}
.feature {
  min-height: 245px;
  padding: 30px 28px;
  background: var(--surface);
}
.feature h3,
.faq-section h2,
.download-body h2,
.auth-card h2 {
  margin: 0 0 10px;
  font-family: var(--font-brand);
  font-size: 22px;
  font-weight: 600;
  letter-spacing: 0;
}
.feature p,
.faq-card p,
.download-body p,
.hint,
.auth-note p,
.auth-options p,
.plan-text,
.plan-subtitle,
.pricing-note {
  margin: 0;
  color: var(--slate);
  font-size: 14px;
  line-height: 1.55;
}
.macwin {
  border-radius: 14px;
  overflow: hidden;
  box-shadow: 0 1px 0 rgba(17,22,26,.04), 0 30px 80px rgba(17,22,26,.15);
  background: var(--surface);
  border: 1px solid var(--mist);
}
.titlebar {
  height: 38px;
  background: var(--silver);
  display: flex;
  align-items: center;
  padding: 0 14px;
  gap: 8px;
  border-bottom: 1px solid var(--mist);
}
.tl { width: 12px; height: 12px; border-radius: 50%; }
.tl.r { background: #FF5F57; }
.tl.y { background: #FEBC2E; }
.tl.g { background: #28C840; }
.titlebar .title {
  flex: 1;
  text-align: center;
  color: var(--slate);
  font-size: 12px;
  font-weight: 500;
}
.macbody {
  display: grid;
  grid-template-columns: 238px 1fr;
  min-height: 430px;
}
.sidebar {
  background: var(--silver);
  border-right: 1px solid var(--mist);
  padding: 18px 12px;
}
.sb-group {
  font-family: var(--font-mono);
  font-size: 10px;
  letter-spacing: .12em;
  text-transform: uppercase;
  color: var(--slate);
  padding: 14px 8px 6px;
  font-weight: 500;
}
.sb-item {
  display: flex;
  align-items: center;
  gap: 10px;
  padding: 7px 8px;
  border-radius: 6px;
  color: var(--ink);
  font-size: 13px;
}
.sb-item .count {
  margin-left: auto;
  font-family: var(--font-mono);
  color: var(--slate);
  font-size: 11px;
}
.sb-item.active {
  background: var(--brand-500);
  color: var(--porcelain);
}
.sb-item.active .count { color: var(--porcelain); }
.maccontent {
  padding: 32px 36px;
  background: var(--surface);
  overflow-x: auto;
}
.toolbar {
  display: flex;
  align-items: center;
  gap: 16px;
  padding-bottom: 20px;
  border-bottom: 1px solid var(--mist);
}
.toolbar h2 {
  font-family: var(--font-brand);
  font-weight: 500;
  font-size: 22px;
  margin: 0;
}
.toolbar .crumb {
  color: var(--slate);
  font-size: 13px;
}
.toolbar .spacer { flex: 1; }
.toolbar-button {
  display: inline-flex;
  align-items: center;
  min-height: 32px;
  border: 1px solid var(--mist);
  border-radius: 6px;
  padding: 6px 12px;
  font-size: 12px;
  font-weight: 500;
  background: var(--surface);
}
.toolbar-button.primary {
  background: var(--brand-500);
  color: var(--porcelain);
  border-color: var(--ink);
}
.macwin,
.macbody,
.maccontent,
.toolbar,
.stats {
  min-width: 0;
}
.stats {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 12px;
  margin: 24px 0 28px;
}
.stat {
  border: 1px solid var(--mist);
  border-radius: 10px;
  padding: 16px 18px;
  background: var(--porcelain);
}
.stat span { display: block; }
.stat .k {
  font-family: var(--font-mono);
  color: var(--slate);
  font-size: 10px;
  letter-spacing: .1em;
  text-transform: uppercase;
}
.stat .v {
  font-family: var(--font-brand);
  font-size: 22px;
  font-weight: 500;
  margin-top: 6px;
}
.stat .delta {
  font-family: var(--font-mono);
  color: var(--slate);
  font-size: 11px;
}
.tbl {
  width: 100%;
  border-collapse: collapse;
  font-size: 13px;
  min-width: 560px;
}
.tbl th {
  font-family: var(--font-mono);
  color: var(--slate);
  font-size: 10px;
  letter-spacing: .1em;
  text-transform: uppercase;
  text-align: left;
  font-weight: 500;
  padding: 10px 12px;
  border-bottom: 1px solid var(--mist);
}
.tbl td {
  padding: 12px;
  border-bottom: 1px solid var(--mist);
}
.tbl .amt {
  font-family: var(--font-mono);
  text-align: right;
}
.tbl .ref {
  font-family: var(--font-mono);
  color: var(--slate);
  font-size: 12px;
}
.pill {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  padding: 3px 9px;
  border-radius: 999px;
  font-size: 11px;
  font-weight: 500;
  border: 1px solid var(--mist);
  background: var(--silver);
  color: var(--slate);
}
.pill.review { color: var(--system-blue); border-color: rgba(0,122,255,.25); background: rgba(0,122,255,.10); }
.pill.prepared { color: var(--green); border-color: rgba(52,199,89,.25); background: rgba(52,199,89,.12); }
.pill.local { color: var(--brand-500); border-color: rgba(30,90,82,.25); background: var(--brand-100); }
.conversation {
  display: grid;
  gap: 12px;
  padding: 28px;
  border: 1px solid var(--mist);
  border-radius: 14px;
  background:
    linear-gradient(180deg, rgba(221,235,232,.28), rgba(255,255,255,0) 48%),
    var(--surface);
  box-shadow: var(--sh-panel);
}
.msg {
  max-width: 82%;
  border-radius: 13px;
  padding: 10px 12px;
  font-size: 13px;
  line-height: 1.45;
}
.msg.user {
  justify-self: end;
  background: var(--brand-500);
  color: var(--porcelain);
  border-bottom-right-radius: 4px;
}
.msg.assistant {
  justify-self: start;
  background: var(--porcelain);
  border: 1px solid var(--mist);
  border-bottom-left-radius: 4px;
}
.faq-layout {
  display: grid;
  grid-template-columns: 250px 1fr;
  gap: 54px;
  padding-top: 32px;
  border-top: 1px solid var(--mist);
}
.side {
  position: sticky;
  top: 24px;
  align-self: start;
}
.side h2 {
  margin: 0 0 14px;
  color: var(--slate);
  font-family: var(--font-mono);
  font-size: 10px;
  letter-spacing: .12em;
  text-transform: uppercase;
}
.side nav,
.facts {
  display: grid;
  gap: 1px;
  border: 1px solid var(--mist);
  border-radius: 12px;
  overflow: hidden;
  background: var(--mist);
}
.side a,
.facts div {
  display: grid;
  min-height: 44px;
  padding: 13px 14px;
  background: var(--surface);
  color: var(--slate);
  font-size: 13px;
}
.faq-content { display: grid; gap: 42px; }
.faq-section { display: grid; gap: 14px; scroll-margin-top: 28px; }
.faq-card,
.download-card,
.auth-card,
.auth-note,
.auth-options article,
.pricing-card {
  padding: 26px;
  border: 1px solid var(--mist);
  border-radius: 12px;
  background: var(--surface);
  box-shadow: 0 1px 0 rgba(17,22,26,.04);
}
.faq-card.featured {
  background: var(--brand-500);
  color: var(--porcelain);
  border-color: var(--brand-500);
}
.faq-card.featured p { color: rgba(245,245,247,.86); }
.auth-wrap {
  display: grid;
  grid-template-columns: minmax(0, 1fr) 430px;
  gap: 64px;
  align-items: start;
  padding-bottom: 86px;
}
.auth-card { box-shadow: var(--sh-panel); }
.auth-panel,
.auth-options {
  display: grid;
  gap: 14px;
}
.auth-note {
  max-width: 520px;
  margin-top: 28px;
  background:
    linear-gradient(135deg, rgba(221,235,232,.44), rgba(255,255,255,0)),
    var(--surface);
}
.auth-note h2,
.auth-options h2 {
  margin: 0 0 8px;
  font-family: var(--font-brand);
  font-size: 19px;
  font-weight: 600;
  letter-spacing: 0;
}
.auth-options {
  grid-template-columns: 1fr 1fr;
}
.auth-options article {
  min-height: 190px;
  display: flex;
  flex-direction: column;
  gap: 12px;
}
.auth-options .btn {
  width: 100%;
  margin-top: auto;
}
.auth-card label {
  display: block;
  margin: 14px 0 6px;
  color: var(--slate);
  font-family: var(--font-mono);
  font-size: 10px;
  letter-spacing: .1em;
  text-transform: uppercase;
}
.auth-card input {
  width: 100%;
  min-height: 44px;
  padding: 0 12px;
  border: 1px solid var(--mist);
  border-radius: 8px;
  background: var(--porcelain);
  color: var(--ink);
  font: inherit;
}
.auth-card input[type="checkbox"],
.newsletter-form input[type="checkbox"] {
  width: 20px;
  height: 20px;
  min-width: 20px;
  min-height: 20px;
  accent-color: var(--brand-500);
  padding: 0;
}
.auth-card button { width: 100%; margin-top: 18px; }
.buy-card .btn {
  width: 100%;
  margin-top: 14px;
}
.error {
  margin: 0 0 10px;
  color: #B42318;
  font-size: 13px;
}
.success {
  display: inline-flex;
  margin: 0;
  padding: 10px 14px;
  border: 1px solid rgba(30,90,82,.2);
  border-radius: 10px;
  background: var(--brand-100);
  color: var(--brand-600);
  font-size: 14px;
}
code {
  font-family: var(--font-mono);
  font-size: 12px;
}
.download-card {
  padding: 0;
  overflow: hidden;
}
.download-art {
  min-height: 230px;
  display: grid;
  place-items: center;
  background:
    radial-gradient(circle at 50% 45%, rgba(30,90,82,.14), transparent 38%),
    linear-gradient(135deg, var(--tile-start), var(--tile-end));
  border-bottom: 1px solid var(--mist);
}
.download-art img {
  width: 146px;
  height: 146px;
  border-radius: 32px;
  box-shadow: var(--sh-icon-lg);
}
.download-body { padding: 24px; }
.facts div {
  grid-template-columns: 120px 1fr;
  gap: 14px;
}
.facts b {
  color: var(--slate);
  font-family: var(--font-mono);
  font-size: 10px;
  letter-spacing: .1em;
  text-transform: uppercase;
}
.trust {
  display: grid;
  gap: 12px;
  margin: 0;
  padding: 0;
  list-style: none;
  color: var(--slate);
}
.trust li {
  display: grid;
  grid-template-columns: 9px 1fr;
  gap: 10px;
  font-size: 14px;
}
.trust li::before {
  content: "";
  width: 7px;
  height: 7px;
  margin-top: 7px;
  border-radius: 50%;
  background: var(--brand-500);
}
.price {
  display: flex;
  align-items: baseline;
  flex-wrap: wrap;
  gap: 8px;
  margin: 0 0 18px;
}
.price strong {
  font-family: var(--font-brand);
  font-size: 42px;
  font-weight: 600;
  letter-spacing: 0;
}
.price span {
  color: var(--slate);
  font-size: 13px;
}
.pricing-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 18px;
  align-items: stretch;
}
.pricing-card {
  position: relative;
  min-height: 430px;
  display: flex;
  flex-direction: column;
}
.pricing-card.featured {
  border-color: var(--brand-500);
  box-shadow: var(--sh-panel);
}
.badge {
  position: absolute;
  top: -13px;
  left: 50%;
  transform: translateX(-50%);
  padding: 5px 14px;
  border-radius: 999px;
  background: var(--brand-500);
  color: var(--porcelain);
  font-family: var(--font-mono);
  font-size: 10px;
  font-weight: 700;
  letter-spacing: .12em;
  text-transform: uppercase;
  white-space: nowrap;
}
.plan-name {
  margin: 0 0 18px;
  color: var(--slate);
  font-family: var(--font-mono);
  font-size: 11px;
  font-weight: 700;
  letter-spacing: .14em;
  text-transform: uppercase;
}
.plan-price {
  margin-bottom: 4px;
  color: var(--brand-600);
  font-family: var(--font-brand);
  font-size: 38px;
  font-weight: 650;
  line-height: 1;
}
.plan-subtitle {
  min-height: 22px;
  margin-bottom: 18px;
}
.plan-text {
  min-height: 68px;
  margin-bottom: 22px;
}
.pricing-card ul {
  display: grid;
  gap: 12px;
  margin: 0 0 26px;
  padding: 0;
  list-style: none;
}
.pricing-card li {
  display: grid;
  grid-template-columns: 16px 1fr;
  gap: 10px;
  color: var(--ink);
  font-size: 14px;
}
.pricing-card li::before {
  content: "";
  width: 8px;
  height: 8px;
  margin-top: 7px;
  border-radius: 50%;
  background: var(--brand-500);
}
.pricing-card .btn {
  width: 100%;
  margin-top: auto;
}
.pricing-note {
  max-width: 720px;
  margin: 22px auto 0;
  text-align: center;
}
.preferences-layout {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 22px;
  padding: 0 0 86px;
}
.preference-card {
  padding: 28px;
  border: 1px solid var(--mist);
  border-radius: 14px;
  background: var(--surface);
  box-shadow: var(--sh-panel);
}
.preference-head {
  margin-bottom: 22px;
}
.preference-head h2 {
  margin: 0 0 8px;
  font-family: var(--font-brand);
  font-size: 28px;
  font-weight: 600;
  letter-spacing: 0;
}
.preference-head p:not(.eyebrow) {
  margin: 0;
  color: var(--slate);
}
.preference-row {
  display: grid;
  grid-template-columns: 1fr auto;
  gap: 18px;
  align-items: center;
  padding: 18px 0;
  border-top: 1px solid var(--mist);
}
.preference-row h3 {
  margin: 0 0 4px;
  font-size: 17px;
}
.preference-row p {
  margin: 0;
  color: var(--slate);
  font-size: 14px;
}
.preference-row.locked > span {
  padding: 6px 10px;
  border-radius: 999px;
  background: var(--silver);
  color: var(--slate);
  font-size: 12px;
  white-space: nowrap;
}
.preference-status {
  margin-top: 10px !important;
}
.preference-status strong {
  color: var(--brand-600);
}
.preference-actions,
.form-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
  justify-content: flex-end;
}
.newsletter-form {
  display: grid;
  gap: 14px;
}
.newsletter-form label {
  color: var(--slate);
  font-family: var(--font-mono);
  font-size: 10px;
  letter-spacing: .1em;
  text-transform: uppercase;
}
.newsletter-form input[type="email"] {
  width: 100%;
  min-height: 44px;
  padding: 0 12px;
  border: 1px solid var(--mist);
  border-radius: 8px;
  background: var(--porcelain);
  color: var(--ink);
  font: inherit;
}
.checkbox-grid {
  display: grid;
  gap: 10px;
  padding: 14px;
  border: 1px solid var(--mist);
  border-radius: 10px;
  background: var(--porcelain);
}
.checkbox-grid label {
  display: flex;
  gap: 9px;
  align-items: center;
  min-height: 44px;
  padding: 6px 2px;
  color: var(--ink);
  font-family: var(--font-ui);
  font-size: 14px;
  letter-spacing: 0;
  text-transform: none;
}
.footer {
  display: grid;
  grid-template-columns: 240px minmax(0, 1fr);
  grid-template-areas:
    "brand links"
    "legal legal";
  align-items: start;
  gap: 42px 58px;
  margin-top: 48px;
  padding: 46px 0 34px;
  border-top: 1px solid var(--mist);
}
.footer-brand {
  grid-area: brand;
  max-width: 330px;
  display: grid;
  gap: 16px;
}
.footer-brand p,
.footer-legal p {
  margin: 0;
  color: var(--slate);
  font-size: 12px;
  line-height: 1.6;
}
.footer-links {
  grid-area: links;
  display: grid;
  grid-template-columns: repeat(6, minmax(104px, 1fr));
  gap: 28px;
}
.footer-links div {
  display: flex;
  flex-direction: column;
  gap: 10px;
  min-width: 0;
}
.footer h2 {
  margin: 0 0 4px;
  color: var(--slate);
  font-family: var(--font-mono);
  font-size: 10px;
  font-weight: 700;
  letter-spacing: .12em;
  text-transform: uppercase;
}
.footer a {
  color: var(--slate);
  font-size: 12px;
}
.footer a:hover { color: var(--brand-500); }
.footer-legal {
  grid-area: legal;
  display: flex;
  justify-content: flex-end;
  gap: 18px;
  padding-top: 22px;
  border-top: 1px solid rgba(210,210,215,.72);
  text-align: right;
}

.cookie-banner {
  position: fixed;
  left: 0;
  right: 0;
  bottom: 0;
  z-index: 1000;
  display: none;
  align-items: center;
  justify-content: center;
  gap: 16px;
  padding: 14px max(20px, env(safe-area-inset-right)) max(14px, env(safe-area-inset-bottom)) max(20px, env(safe-area-inset-left));
  background: #11161A;
  color: var(--porcelain);
  box-shadow: 0 -1px 0 rgba(255,255,255,.08), 0 -10px 30px rgba(17,22,26,.16);
}
.cookie-banner.is-visible { display: flex; }
.cookie-actions {
  display: flex;
  align-items: center;
  gap: 8px;
}
.cookie-banner p {
  margin: 0;
  max-width: 760px;
  color: rgba(245,245,247,.82);
  font-size: 13px;
  line-height: 1.4;
}
.cookie-banner button {
  min-height: 44px;
  padding: 0 14px;
  border: 1px solid rgba(245,245,247,.18);
  border-radius: 7px;
  background: var(--brand-500);
  color: var(--porcelain);
  font: inherit;
  font-size: 13px;
  font-weight: 600;
  cursor: pointer;
  white-space: nowrap;
}
.cookie-banner button.secondary {
  background: transparent;
  color: var(--porcelain);
}
.cookie-banner a {
  color: rgba(245,245,247,.82);
  font-size: 13px;
  text-decoration: underline;
  text-underline-offset: 3px;
  white-space: nowrap;
  min-height: 44px;
  display: inline-flex;
  align-items: center;
  padding: 0 10px;
}
.cookie-banner button:hover { background: var(--brand-600); }
.cookie-banner button.secondary:hover { background: rgba(255,255,255,.08); }

@media (max-width: 1040px) {
  .nav {
    grid-template-columns: 1fr;
    gap: 18px;
    padding-bottom: 48px;
  }
  .navlinks,
  .nav-actions {
    justify-content: flex-start;
    flex-wrap: wrap;
  }
  .hero,
  .section.split,
  .auth-wrap {
    grid-template-columns: 1fr;
  }
  .feature-grid,
  .stats,
  .pricing-grid,
  .preferences-layout {
    grid-template-columns: repeat(2, 1fr);
  }
  .footer {
    grid-template-columns: 1fr;
    grid-template-areas:
      "brand"
      "links"
      "legal";
  }
  .footer-links {
    grid-template-columns: repeat(3, minmax(150px, 1fr));
  }
  .footer-legal {
    justify-content: flex-start;
    text-align: left;
  }
  .cookie-banner {
    align-items: stretch;
    flex-direction: column;
    gap: 10px;
  }
  .cookie-actions { justify-content: stretch; }
  .cookie-actions {
    display: grid;
    grid-template-columns: repeat(3, minmax(0, 1fr));
  }
  .cookie-banner button { width: auto; }
  .cookie-banner a {
    justify-content: center;
  }
}

@media (max-width: 900px) {
  .page {
    padding: 24px 28px 0;
  }
  .nav {
    padding-bottom: 38px;
  }
  .hero {
    gap: 42px;
    padding: 12px 0 68px;
  }
  .section {
    padding: 70px 0;
  }
  .feature {
    min-height: 0;
  }
  .pricing-card {
    min-height: 0;
  }
  .icon-stage {
    min-height: 360px;
  }
  .hero-logo-shell {
    width: min(310px, 64vw);
    height: min(310px, 64vw);
  }
  .footer-links {
    grid-template-columns: repeat(3, minmax(0, 1fr));
  }
}

@media (max-width: 720px) {
  .page { padding: 18px 18px 0; }
  .nav {
    gap: 14px;
    padding: 10px 0 32px;
  }
  .brand {
    gap: 10px;
    font-size: 18px;
  }
  .brand img {
    width: 32px;
    height: 32px;
  }
  .navlinks {
    width: calc(100% + 36px);
    margin: 0 -18px;
    padding: 4px 18px 8px;
    gap: 18px;
    flex-wrap: nowrap;
    overflow-x: auto;
    scrollbar-width: none;
    -webkit-overflow-scrolling: touch;
  }
  .navlinks::-webkit-scrollbar { display: none; }
  .navlinks a {
    min-height: 36px;
    display: inline-flex;
    align-items: center;
    white-space: nowrap;
  }
  .nav-actions {
    width: 100%;
    display: grid;
    grid-template-columns: auto 1fr;
    gap: 10px;
  }
  .nav-actions .cta {
    grid-column: 1 / -1;
    width: 100%;
  }
  .navlinks a:nth-child(2),
  .navlinks a:nth-child(3),
  .navlinks a:nth-child(4) {
    display: none;
  }
  .language-switch,
  .login,
  .cta {
    min-height: 44px;
  }
  .language-switch .lang {
    min-width: 40px;
    min-height: 38px;
  }
  .login,
  .cta {
    display: inline-flex;
    align-items: center;
    justify-content: center;
  }
  .cta {
    padding: 0 12px;
  }
  .hero {
    gap: 30px;
    padding: 0 0 58px;
  }
  .hero.slim {
    padding: 0 0 42px;
  }
  h1 {
    margin-bottom: 18px;
    font-size: clamp(32px, 9.8vw, 40px);
    line-height: 1.03;
  }
  .lede {
    margin-bottom: 24px;
    font-size: 16.5px;
    line-height: 1.55;
  }
  .access-note.compact {
    margin: -4px 0 22px;
  }
  .actions {
    align-items: stretch;
  }
  .actions .btn {
    flex: 1 1 100%;
    width: 100%;
    min-height: 46px;
    overflow-wrap: anywhere;
  }
  .hero-meta {
    gap: 10px 18px;
    margin-top: 24px;
    font-size: 10px;
  }
  .icon-stage {
    min-height: 270px;
    border-radius: 18px;
  }
  .hero-logo-shell {
    width: min(245px, 70vw);
    height: min(245px, 70vw);
  }
  .section {
    padding: 58px 0;
  }
  .section-title {
    font-size: clamp(29px, 8vw, 38px);
    line-height: 1.08;
  }
  .section-lede {
    margin-bottom: 28px;
    font-size: 15.5px;
  }
  .feature {
    padding: 22px;
    min-height: 0;
  }
  .feature h3,
  .faq-section h2,
  .download-body h2,
  .auth-card h2 {
    font-size: 20px;
  }
  .macwin {
    border-radius: 12px;
  }
  .macbody,
  .faq-layout,
  .feature-grid,
  .auth-options,
  .pricing-grid,
  .preferences-layout,
  .stats {
    grid-template-columns: 1fr;
  }
  .preference-row {
    grid-template-columns: 1fr;
  }
  .preference-actions,
  .form-actions,
  .cookie-actions {
    flex-direction: column;
  }
  .cookie-actions {
    grid-template-columns: 1fr;
  }
  .sidebar,
  .side {
    display: none;
  }
  .maccontent {
    padding: 18px 16px;
  }
  .tbl {
    min-width: 500px;
  }
  .toolbar {
    flex-wrap: wrap;
    gap: 10px;
  }
  .toolbar h2 {
    width: 100%;
    font-size: 19px;
  }
  .toolbar .crumb {
    font-size: 12px;
  }
  .stats {
    gap: 10px;
    margin: 18px 0 20px;
  }
  .stat {
    padding: 13px 14px;
  }
  .conversation {
    padding: 18px;
  }
  .msg {
    max-width: 92%;
    font-size: 13px;
  }
  .auth-wrap {
    gap: 32px;
    padding-bottom: 58px;
  }
  .auth-options article,
  .faq-card,
  .download-card,
  .auth-card,
  .auth-note,
  .pricing-card {
    padding: 22px;
  }
  .download-card {
    padding: 0;
  }
  .download-art {
    min-height: 180px;
  }
  .download-art img {
    width: 118px;
    height: 118px;
    border-radius: 26px;
  }
  .download-body {
    padding: 22px;
  }
  .price strong,
  .plan-price {
    font-size: 34px;
  }
  .plan-subtitle,
  .plan-text {
    min-height: 0;
  }
  .facts div { grid-template-columns: 1fr; gap: 4px; }
  .footer-links {
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 28px 34px;
  }
  .footer-legal {
    align-items: flex-start;
    flex-direction: column;
    gap: 6px;
  }
  .cookie-banner {
    max-height: min(55vh, 360px);
    overflow-y: auto;
    padding: 14px 16px calc(14px + env(safe-area-inset-bottom));
  }
  .cookie-banner p {
    font-size: 12.5px;
  }
  .cookie-actions button,
  .cookie-actions a {
    min-height: 42px;
    width: 100%;
  }
}

@media (max-width: 520px) {
  .footer {
    gap: 32px;
    margin-top: 36px;
    padding: 38px 0 28px;
  }
  .footer-links {
    grid-template-columns: 1fr;
    gap: 24px;
  }
}

@media (max-width: 430px) {
  .page {
    padding: 16px 16px 0;
  }
  .navlinks {
    width: calc(100% + 32px);
    margin: 0 -16px;
    padding-left: 16px;
    padding-right: 16px;
  }
  h1 {
    font-size: clamp(30px, 9.5vw, 36px);
  }
  .icon-stage {
    min-height: 235px;
  }
  .hero-logo-shell {
    width: min(210px, 68vw);
    height: min(210px, 68vw);
  }
  .titlebar .title {
    font-size: 11px;
  }
  .maccontent {
    padding: 16px 14px;
  }
}

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