/* SongKeyPad Glass Studio — self-contained earthy glassmorphism system. */

@font-face {
  font-family: "Plus Jakarta Sans";
  src: url("assets/fonts/plus-jakarta-sans-latin.woff2") format("woff2");
  font-style: normal;
  font-weight: 600 700;
  font-display: swap;
}

@font-face {
  font-family: "DM Sans";
  src: url("assets/fonts/dm-sans-latin.woff2") format("woff2");
  font-style: normal;
  font-weight: 400 700;
  font-display: swap;
}

:root {
  --surface: #ffffff;
  --surface-dim: #edd5ce;
  --surface-bright: #fff8f6;
  --surface-container-lowest: #ffffff;
  --surface-container-low: #fff1ed;
  --surface-container: #ffe9e3;
  --surface-container-high: #fbe3dc;
  --surface-container-highest: #f5ddd7;
  --on-surface: #251915;
  --on-surface-variant: #53433f;
  --inverse-surface: #3b2d29;
  --inverse-on-surface: #ffede8;
  --outline: #86736e;
  --outline-variant: #d9c2bc;
  --primary: #8b4a38;
  --primary-strong: #713525;
  --primary-container: #a9624e;
  --on-primary: #ffffff;
  --secondary: #805346;
  --secondary-container: #ffc4b3;
  --tertiary: #08685b;
  --tertiary-container: #308173;
  --background: #fcf9f8;
  --text-main: #2c1f1b;
  --muted: #6f5a54;
  --glass-fill: rgba(255, 255, 255, 0.68);
  --glass-fill-strong: rgba(255, 255, 255, 0.82);
  --glass-border: rgba(255, 255, 255, 0.8);
  --glass-border-soft: rgba(255, 255, 255, 0.48);
  --shadow-soft: 0 12px 32px rgba(44, 31, 27, 0.1);
  --shadow-deep: 0 24px 70px rgba(59, 45, 41, 0.16);
  --container-max: 1200px;
  --gutter: clamp(1rem, 3vw, 2rem);
  --section-space: clamp(3rem, 7vw, 6rem);
  --radius-sm: 0.75rem;
  --radius: 1rem;
  --radius-md: 1.5rem;
  --radius-lg: 2rem;
  --radius-xl: 3rem;
  --radius-full: 999px;

  /* Compatibility aliases used by the privacy page. */
  --ink: var(--on-surface);
  --ink-muted: var(--on-surface-variant);
  --ink-faint: var(--muted);
  --accent: var(--primary);
  --accent-pale: var(--surface-container);
  --frame: var(--surface-bright);
  --control-border: var(--outline-variant);
  --key-face: var(--surface-container-lowest);
  --key-shadow: rgba(44, 31, 27, 0.16);
  --panel-glass: var(--glass-fill);
  --panel-border: var(--glass-border);
  --oled-bg: var(--inverse-surface);
  --oled-lime: #a2f1e1;

  color-scheme: light;
}

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

html {
  overflow-x: hidden;
  scroll-behavior: smooth;
  scroll-padding-top: 7rem;
}

body {
  position: relative;
  isolation: isolate;
  margin: 0;
  min-width: 320px;
  min-height: 100vh;
  overflow-x: hidden;
  color: var(--on-surface);
  background: var(--background);
  font-family: "DM Sans", "Segoe UI", system-ui, sans-serif;
  font-size: 16px;
  line-height: 1.6;
  -webkit-tap-highlight-color: rgba(139, 74, 56, 0.16);
}

body::before,
body::after {
  content: "";
  position: fixed;
  inset: -5%;
  z-index: -2;
  pointer-events: none;
}

body::before {
  background: url("assets/studio/studio-clouds.webp") center / cover no-repeat;
  transform: scale(1.1);
  animation: cloud-drift 28s ease-in-out infinite alternate;
}

body::after {
  z-index: -1;
  background:
    radial-gradient(circle at 18% 10%, rgba(255, 241, 237, 0.62), transparent 38%),
    radial-gradient(circle at 88% 24%, rgba(220, 164, 148, 0.24), transparent 32%),
    linear-gradient(180deg, rgba(252, 249, 248, 0.04), rgba(252, 249, 248, 0.36));
}

main,
.site-header,
.site-footer {
  position: relative;
  z-index: 1;
}

img {
  display: block;
  max-width: 100%;
  height: auto;
}

h1,
h2,
h3,
.brand,
.btn,
.label,
summary {
  font-family: "Plus Jakarta Sans", "Segoe UI", system-ui, sans-serif;
}

h1,
h2,
h3 {
  color: var(--text-main);
  text-wrap: balance;
}

p,
li {
  text-wrap: pretty;
}

a {
  color: var(--primary);
  text-underline-offset: 0.18em;
  touch-action: manipulation;
}

a:hover {
  color: var(--primary-strong);
}

:focus-visible {
  outline: 3px solid var(--on-surface);
  outline-offset: 3px;
  box-shadow: 0 0 0 6px var(--surface-bright);
}

section[id],
h1[id],
h2[id] {
  scroll-margin-top: 7rem;
}

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

a.sr-only:focus {
  position: fixed;
  top: max(0.75rem, env(safe-area-inset-top));
  left: max(0.75rem, env(safe-area-inset-left));
  z-index: 100;
  width: auto;
  height: auto;
  padding: 0.7rem 1rem;
  margin: 0;
  overflow: visible;
  clip: auto;
  white-space: normal;
  color: var(--on-surface);
  background: var(--surface-bright);
  border: 1px solid var(--outline-variant);
  border-radius: var(--radius-sm);
  box-shadow: var(--shadow-soft);
  font-weight: 700;
  text-decoration: none;
}

.wrap {
  width: min(var(--container-max), calc(100% - (2 * var(--gutter))));
  margin-inline: auto;
}

.label {
  display: inline-block;
  margin: 0 0 0.85rem;
  color: var(--primary-strong);
  font-size: 0.75rem;
  font-weight: 700;
  line-height: 1.2;
  letter-spacing: 0.14em;
  text-transform: uppercase;
}

.mono {
  font-family: "Cascadia Mono", "Consolas", "Segoe UI Mono", ui-monospace, monospace;
  font-variant-numeric: tabular-nums;
}

.panel,
.section {
  background: var(--glass-fill);
  border: 1px solid var(--glass-border);
  box-shadow: var(--shadow-soft), inset 0 1px rgba(255, 255, 255, 0.72);
  backdrop-filter: blur(18px) saturate(1.16);
  -webkit-backdrop-filter: blur(18px) saturate(1.16);
}

.section {
  margin-block: clamp(1rem, 2.5vw, 2rem);
  padding: var(--section-space) clamp(1.25rem, 4vw, 4rem);
  border-radius: var(--radius-lg);
}

.section-title {
  max-width: 18ch;
  margin: 0 0 0.65rem;
  font-size: clamp(2rem, 4vw, 3.25rem);
  font-weight: 700;
  line-height: 1.08;
  letter-spacing: -0.035em;
}

.section-lead {
  max-width: 44rem;
  margin: 0 0 clamp(2rem, 4vw, 3.25rem);
  color: var(--on-surface-variant);
  font-size: clamp(1rem, 1.7vw, 1.2rem);
  line-height: 1.65;
}

.video-frame {
  max-width: 64rem;
  margin-inline: auto;
  padding: clamp(0.5rem, 1.5vw, 0.85rem);
  overflow: hidden;
  border-radius: var(--radius-lg);
}

.video-frame iframe {
  display: block;
  width: 100%;
  height: auto;
  aspect-ratio: 16 / 9;
  border: 0;
  border-radius: calc(var(--radius-lg) - 0.45rem);
  background: #000;
}

/* Floating glass navigation */
.site-header {
  position: sticky;
  top: 0;
  z-index: 40;
  padding-top: max(1rem, env(safe-area-inset-top));
  pointer-events: none;
}

.header-inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1rem;
  min-height: 4.5rem;
  padding: 0.7rem 0.8rem 0.7rem 1.35rem;
  background: rgba(255, 248, 246, 0.78);
  border: 1px solid var(--glass-border);
  border-radius: var(--radius-full);
  box-shadow: 0 16px 50px rgba(59, 45, 41, 0.14), inset 0 1px rgba(255, 255, 255, 0.9);
  backdrop-filter: blur(18px) saturate(1.2);
  -webkit-backdrop-filter: blur(18px) saturate(1.2);
  pointer-events: auto;
}

.brand {
  display: inline-flex;
  align-items: center;
  flex: 0 0 auto;
  gap: 0.7rem;
  color: var(--text-main);
  font-size: 1.12rem;
  font-weight: 700;
  letter-spacing: -0.03em;
  text-decoration: none;
}

.brand:hover {
  color: var(--primary-strong);
}

.brand-logo {
  display: block;
  width: 2.25rem;
  height: 2.25rem;
  border: 1px solid rgba(255, 219, 209, 0.45);
  border-radius: 0.7rem;
  box-shadow: 0 5px 16px rgba(44, 31, 27, 0.16);
  object-fit: cover;
}

.nav {
  display: flex;
  align-items: center;
  justify-content: flex-end;
  gap: clamp(0.65rem, 2vw, 1.8rem);
  min-width: 0;
}

.nav a {
  color: var(--muted);
  font-size: 0.88rem;
  font-weight: 600;
  text-decoration: none;
  transition: color 160ms ease, transform 160ms ease, background-color 160ms ease;
}

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

.nav .nav-cta {
  min-height: 2.8rem;
  padding: 0.72rem 1.2rem;
  color: var(--on-primary);
  background: var(--primary);
  border-radius: var(--radius-full);
  box-shadow: 0 8px 20px rgba(139, 74, 56, 0.28);
}

.nav .nav-cta::after {
  content: " →";
}

.nav .nav-cta:hover {
  color: var(--on-primary);
  background: var(--primary-strong);
  transform: translateY(-2px);
}

/* Tactile actions */
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 0.55rem;
  min-height: 3.25rem;
  padding: 0.82rem 1.35rem;
  color: var(--on-surface);
  background: var(--surface-bright);
  border: 1px solid rgba(255, 255, 255, 0.78);
  border-radius: var(--radius-sm);
  box-shadow: 0 8px 22px rgba(44, 31, 27, 0.12), inset 0 1px rgba(255, 255, 255, 0.8);
  font-size: 0.96rem;
  font-weight: 700;
  letter-spacing: -0.01em;
  text-decoration: none;
  transform: translateY(0);
  transition: transform 160ms ease, box-shadow 160ms ease, background-color 160ms ease, color 160ms ease;
  user-select: none;
  touch-action: manipulation;
}

.btn:hover {
  color: var(--on-surface);
  background: var(--surface);
  box-shadow: 0 12px 28px rgba(44, 31, 27, 0.16), inset 0 1px rgba(255, 255, 255, 0.9);
  transform: translateY(-2px);
}

.btn:active,
.btn.is-pressed {
  transform: translateY(1px);
  box-shadow: 0 4px 10px rgba(44, 31, 27, 0.12), inset 0 1px rgba(255, 255, 255, 0.7);
}

.btn-primary {
  color: var(--on-primary);
  background: var(--primary);
  border-color: rgba(113, 53, 37, 0.45);
  box-shadow: 0 11px 26px rgba(139, 74, 56, 0.3), inset 0 1px rgba(255, 255, 255, 0.22);
}

.btn-primary::after {
  content: "↗";
  font-size: 1.05em;
}

.btn-primary:hover {
  color: var(--on-primary);
  background: var(--primary-strong);
  box-shadow: 0 15px 34px rgba(139, 74, 56, 0.36), inset 0 1px rgba(255, 255, 255, 0.2);
}

.btn-ghost {
  background: rgba(255, 248, 246, 0.5);
  border-color: rgba(255, 255, 255, 0.7);
}

.btn-row {
  display: flex;
  flex-wrap: wrap;
  gap: 0.85rem;
}

.product-hunt-badge {
  width: fit-content;
  max-width: 100%;
  margin-top: 1rem;
}

.product-hunt-badge a {
  display: inline-flex;
  max-width: 100%;
}

.product-hunt-badge img {
  display: block;
  max-width: 100%;
  height: auto;
}

/* Full-bleed poster hero */
.hero {
  position: relative;
  display: grid;
  align-items: center;
  min-height: min(56rem, calc(100svh - 1rem));
  margin: 0;
  padding: clamp(3rem, 7vw, 6.5rem) 0 clamp(4rem, 8vw, 7rem);
  overflow: clip;
}

.hero::before {
  content: "";
  position: absolute;
  inset: 0;
  background:
    radial-gradient(circle at 18% 48%, rgba(255, 248, 246, 0.68), transparent 42%),
    linear-gradient(90deg, rgba(255, 241, 237, 0.22), transparent 65%);
  pointer-events: none;
}

.hero-grid {
  position: relative;
  z-index: 1;
}

.hero-copy {
  display: grid;
  grid-template-columns: minmax(0, 0.92fr) minmax(0, 1.08fr);
  column-gap: clamp(2rem, 5vw, 5rem);
  align-items: center;
}

.hero-copy > :not(.hero-shot) {
  grid-column: 1;
}

.hero-copy > .hero-shot {
  grid-column: 2;
  grid-row: 1 / 7;
}

.hero h1 {
  max-width: 11ch;
  margin: 0 0 1.35rem;
  font-size: clamp(3rem, 5.5vw, 4.5rem);
  font-weight: 700;
  line-height: 1.06;
  letter-spacing: -0.055em;
}

.hero-label {
  margin-top: 0.4rem;
}

.hero .lead {
  max-width: 37rem;
  margin: 0 0 1.8rem;
  color: var(--on-surface-variant);
  font-size: clamp(1.05rem, 1.7vw, 1.25rem);
  line-height: 1.68;
}

.oled-strip {
  display: flex;
  align-items: center;
  flex-wrap: wrap;
  gap: 0.55rem 0.85rem;
  margin: 0 0 1.25rem;
  color: var(--primary-strong);
  font-size: 0.76rem;
  font-weight: 700;
  line-height: 1.3;
  letter-spacing: 0.16em;
}

.oled-strip .dot {
  width: 0.5rem;
  height: 0.5rem;
  flex: 0 0 auto;
  background: var(--tertiary);
  border-radius: 50%;
  box-shadow: 0 0 0 5px rgba(8, 104, 91, 0.12);
}

.oled-strip .sep {
  opacity: 0.35;
}

.hero-shot {
  position: relative;
  margin: 0;
  padding: clamp(0.75rem, 2vw, 1.25rem);
  overflow: hidden;
  border-radius: var(--radius-lg);
  box-shadow: var(--shadow-deep), inset 0 1px rgba(255, 255, 255, 0.86);
}

.hero-shot::after {
  content: "";
  position: absolute;
  inset: 0;
  border-radius: inherit;
  background: linear-gradient(145deg, rgba(255, 255, 255, 0.22), transparent 35%);
  pointer-events: none;
}

.hero-shot img {
  width: 100%;
  border-radius: var(--radius-md);
  box-shadow: 0 20px 42px rgba(44, 31, 27, 0.14);
  animation: studio-breathe 8s ease-in-out 1s infinite;
}

.hero-shot figcaption {
  position: relative;
  z-index: 1;
  margin: 0.8rem 0 0.1rem;
  color: var(--muted);
  font-size: 0.78rem;
  font-weight: 500;
  text-align: center;
}

.oled-strip,
.hero-label,
.hero h1,
.hero-shot,
.hero .lead,
.hero .btn-row,
.hero .product-hunt-badge {
  animation: hero-rise 720ms cubic-bezier(0.22, 1, 0.36, 1) both;
}

.hero-label { animation-delay: 80ms; }
.hero h1 { animation-delay: 150ms; }
.hero-shot { animation-delay: 210ms; }
.hero .lead { animation-delay: 280ms; }
.hero .btn-row { animation-delay: 350ms; }
.hero .product-hunt-badge { animation-delay: 420ms; }

/* Workflow — one unified studio surface rather than a card mosaic. */
.steps {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  overflow: hidden;
  background: rgba(255, 248, 246, 0.48);
  border: 1px solid var(--glass-border-soft);
  border-radius: var(--radius-md);
}

.step {
  min-width: 0;
  padding: clamp(1.4rem, 3vw, 2rem);
  background: transparent;
  border: 0;
  border-left: 1px solid rgba(134, 115, 110, 0.22);
  border-radius: 0;
  box-shadow: none;
  backdrop-filter: none;
}

.step:first-child {
  border-left: 0;
}

.step-key {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 2.45rem;
  margin-bottom: 1.15rem;
  padding: 0.55rem 0.8rem;
  color: var(--primary-strong);
  background: var(--surface-container);
  border: 1px solid rgba(217, 194, 188, 0.8);
  border-radius: var(--radius-sm);
  box-shadow: 0 5px 0 rgba(139, 74, 56, 0.12), inset 0 1px rgba(255, 255, 255, 0.8);
  font-size: 0.7rem;
  font-weight: 700;
  letter-spacing: 0.08em;
}

.step h3 {
  margin: 0 0 0.55rem;
  font-size: 1.15rem;
  line-height: 1.35;
}

.step p {
  margin: 0;
  color: var(--on-surface-variant);
  font-size: 0.95rem;
}

/* Privacy */
.privacy-block {
  display: grid;
  grid-template-columns: minmax(0, 1.2fr) minmax(15rem, 0.8fr);
  gap: clamp(1.5rem, 4vw, 4rem);
  align-items: center;
  padding: clamp(1.5rem, 4vw, 3rem);
  border-radius: var(--radius-md);
}

.privacy-claims {
  display: grid;
  gap: 0.85rem;
  margin: 0;
  padding: 0;
  list-style: none;
}

.privacy-claims li {
  display: flex;
  gap: 0.75rem;
  align-items: flex-start;
  color: var(--on-surface-variant);
}

.privacy-claims li::before {
  content: "✓";
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 1.55rem;
  height: 1.55rem;
  flex: 0 0 auto;
  margin-top: 0.05rem;
  color: var(--on-tertiary, #ffffff);
  background: var(--tertiary);
  border-radius: 50%;
  font-size: 0.78rem;
  font-weight: 700;
}

.privacy-short {
  margin: 0 0 1.2rem;
  color: var(--on-surface-variant);
  font-size: 1.12rem;
  line-height: 1.6;
}

/* Capabilities */
.feature-grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  margin: 0;
  padding: 0;
  overflow: hidden;
  background: rgba(255, 248, 246, 0.48);
  border: 1px solid var(--glass-border-soft);
  border-radius: var(--radius-md);
  list-style: none;
}

.feature {
  display: flex;
  gap: 1rem;
  align-items: flex-start;
  min-width: 0;
  padding: 1.25rem 1.35rem;
  background: transparent;
  border: 0;
  border-bottom: 1px solid rgba(134, 115, 110, 0.2);
  border-radius: 0;
  box-shadow: none;
  backdrop-filter: none;
}

.feature:nth-child(odd) {
  border-right: 1px solid rgba(134, 115, 110, 0.2);
}

.feature:nth-last-child(-n + 2) {
  border-bottom: 0;
}

.feature-num {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 2.15rem;
  height: 2.15rem;
  flex: 0 0 auto;
  color: var(--primary-strong);
  background: var(--surface-container);
  border-radius: 50%;
  font-size: 0.72rem;
  font-weight: 700;
}

.feature p {
  margin: 0;
  color: var(--text-main);
  font-weight: 600;
  line-height: 1.5;
}

/* Download conversion moment */
.download-block {
  position: relative;
  overflow: hidden;
  padding: clamp(2rem, 5vw, 4.25rem);
  color: var(--inverse-on-surface);
  background:
    radial-gradient(circle at 80% 15%, rgba(255, 181, 161, 0.18), transparent 35%),
    rgba(59, 45, 41, 0.94);
  border-color: rgba(255, 237, 232, 0.22);
  border-radius: var(--radius-lg);
  text-align: center;
}

.download-block .label {
  color: #ffb5a1;
}

.download-title {
  max-width: none;
  margin-bottom: 0.75rem;
  color: var(--inverse-on-surface);
}

.download-lead {
  margin-inline: auto;
  margin-bottom: 0;
  color: rgba(255, 237, 232, 0.82);
}

.download-block .btn-row {
  justify-content: center;
  margin: 1.6rem 0 1.1rem;
}

.download-block .btn-primary {
  color: var(--primary-strong);
  background: #ffb5a1;
  border-color: rgba(255, 219, 209, 0.42);
}

.download-block .btn-primary:hover {
  color: #390b02;
  background: #ffdbd1;
}

.download-block .btn-ghost {
  color: var(--inverse-on-surface);
  background: rgba(255, 237, 232, 0.08);
  border-color: rgba(255, 237, 232, 0.28);
}

.download-block .btn-ghost:hover {
  color: var(--inverse-surface);
  background: var(--inverse-on-surface);
}

.reqs {
  margin: 0;
  color: rgba(255, 237, 232, 0.72);
  font-size: 0.88rem;
}

.reqs strong {
  color: var(--inverse-on-surface);
}

/* FAQ */
.faq-list {
  margin: 0;
  padding: 0;
  overflow: hidden;
  background: rgba(255, 248, 246, 0.48);
  border: 1px solid var(--glass-border-soft);
  border-radius: var(--radius-md);
  list-style: none;
}

.faq-item {
  padding: 0;
  background: transparent;
  border: 0;
  border-bottom: 1px solid rgba(134, 115, 110, 0.22);
  border-radius: 0;
  box-shadow: none;
  backdrop-filter: none;
}

.faq-item:last-child {
  border-bottom: 0;
}

.faq-item details {
  transition: background-color 180ms ease;
}

.faq-item details[open] {
  background: rgba(255, 255, 255, 0.38);
}

.faq-item summary {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1rem;
  padding: 1.25rem 1.4rem;
  color: var(--text-main);
  cursor: pointer;
  font-size: 1rem;
  font-weight: 700;
  list-style: none;
  touch-action: manipulation;
}

.faq-item summary::-webkit-details-marker {
  display: none;
}

.faq-item summary::after {
  content: "+";
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 1.8rem;
  height: 1.8rem;
  flex: 0 0 auto;
  color: var(--primary-strong);
  background: var(--surface-container);
  border-radius: 50%;
  font-size: 1.1rem;
  line-height: 1;
}

.faq-item details[open] summary::after {
  content: "−";
}

.faq-item .answer {
  max-width: 54rem;
  padding: 0 1.4rem 1.4rem;
  color: var(--on-surface-variant);
}

.faq-item .answer p {
  margin: 0;
}

/* Footer */
.site-footer {
  margin-top: clamp(2rem, 5vw, 5rem);
  padding: 2.25rem 0 calc(2.25rem + env(safe-area-inset-bottom));
  background: rgba(255, 248, 246, 0.9);
  border-top: 1px solid rgba(255, 255, 255, 0.82);
  box-shadow: 0 -12px 40px rgba(59, 45, 41, 0.08);
  backdrop-filter: blur(18px) saturate(1.15);
  -webkit-backdrop-filter: blur(18px) saturate(1.15);
}

.footer-inner {
  display: grid;
  grid-template-columns: auto 1fr auto;
  gap: 1.25rem 2rem;
  align-items: center;
}

.footer-brand {
  font-size: 1rem;
}

.footer-copy {
  margin: 0;
  color: var(--muted);
  font-size: 0.86rem;
  text-align: center;
}

.footer-links {
  display: flex;
  flex-wrap: wrap;
  justify-content: flex-end;
  gap: 1rem;
}

.footer-links a {
  color: var(--muted);
  font-size: 0.86rem;
  font-weight: 600;
  text-decoration: none;
}

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

/* Privacy page */
.legal {
  padding-top: clamp(2rem, 5vw, 4rem) !important;
}

.legal-panel {
  border-radius: var(--radius-lg);
}

.legal code {
  overflow-wrap: anywhere;
}

@keyframes cloud-drift {
  0% { transform: scale(1.1) translate3d(-1%, -1%, 0); }
  100% { transform: scale(1.17) translate3d(2%, 1.5%, 0); }
}

@keyframes hero-rise {
  from {
    opacity: 0;
    transform: translate3d(0, 1.35rem, 0);
  }
  to {
    opacity: 1;
    transform: translate3d(0, 0, 0);
  }
}

@keyframes studio-breathe {
  0%, 100% { transform: scale(1); }
  50% { transform: scale(1.018); }
}

@media (max-width: 899px) {
  .hero {
    min-height: auto;
    padding-top: clamp(2.75rem, 8vw, 5rem);
  }

  .hero-copy {
    grid-template-columns: 1fr;
  }

  .hero-copy > :not(.hero-shot),
  .hero-copy > .hero-shot {
    grid-column: 1;
  }

  .hero-copy > .hero-shot {
    grid-row: auto;
    margin: 0.3rem 0 1.5rem;
  }

  .hero h1 {
    max-width: 13ch;
  }

  .privacy-block {
    grid-template-columns: 1fr;
  }

  .footer-inner {
    grid-template-columns: 1fr;
    justify-items: center;
  }

  .footer-copy {
    order: 3;
  }

  .footer-links {
    justify-content: center;
  }
}

@media (max-width: 719px) {
  html {
    scroll-padding-top: 8.5rem;
  }

  section[id],
  h1[id],
  h2[id] {
    scroll-margin-top: 8.5rem;
  }

  .site-header {
    padding-top: max(0.65rem, env(safe-area-inset-top));
  }

  .header-inner {
    flex-wrap: nowrap;
    justify-content: space-between;
    min-height: 4.15rem;
    padding: 0.6rem 0.65rem 0.6rem 1rem;
    border-radius: var(--radius-full);
  }

  .brand {
    margin: 0;
  }

  .nav {
    flex: 0 0 auto;
    gap: 0;
  }

  .nav a:not(.nav-cta) {
    display: none;
  }

  .nav .nav-cta {
    min-height: 2.75rem;
    padding: 0.65rem 0.9rem;
    font-size: 0.76rem;
    white-space: nowrap;
  }

  .hero {
    padding-bottom: 3.5rem;
  }

  .hero::before {
    background: linear-gradient(180deg, rgba(255, 248, 246, 0.5), rgba(255, 241, 237, 0.12));
  }

  .hero h1 {
    font-size: clamp(2.65rem, 13vw, 3.5rem);
  }

  .section {
    width: min(var(--container-max), calc(100% - 1rem));
    padding: 3rem 1.25rem;
    border-radius: var(--radius-md);
  }

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

  .step {
    border-top: 1px solid rgba(134, 115, 110, 0.22);
    border-left: 0;
  }

  .step:first-child {
    border-top: 0;
  }

  .feature,
  .feature:nth-child(odd),
  .feature:nth-last-child(-n + 2) {
    border-right: 0;
    border-bottom: 1px solid rgba(134, 115, 110, 0.2);
  }

  .feature:last-child {
    border-bottom: 0;
  }

  .btn-row {
    align-items: stretch;
  }

  .btn {
    flex: 1 1 12rem;
  }
}

@media (max-width: 420px) {
  .nav {
    gap: 0.45rem 0.62rem;
  }

  .nav a {
    font-size: 0.72rem;
  }

  .hero h1 {
    font-size: clamp(2.45rem, 12.5vw, 3rem);
  }

  .oled-strip {
    gap: 0.45rem 0.6rem;
    font-size: 0.68rem;
    letter-spacing: 0.11em;
  }

  .section-title {
    font-size: 2.15rem;
  }

  .privacy-block,
  .download-block {
    padding: 1.5rem;
  }
}

@media (prefers-reduced-motion: reduce) {
  html {
    scroll-behavior: auto;
  }

  body::before,
  .oled-strip,
  .hero-label,
  .hero h1,
  .hero-shot,
  .hero-shot img,
  .hero .lead,
  .hero .btn-row {
    animation: none;
  }

  .btn,
  .nav a,
  .faq-item details {
    transition: none;
  }
}
