:root {
  color-scheme: dark;
  --bg: #080d16;
  --bg-deep: #0d1320;
  --page-start: #0b111d;
  --page-end: #080d16;
  --header-bg: rgba(8, 13, 22, 0.78);
  --header-border: rgba(255, 255, 255, 0.08);
  --surface: rgba(16, 24, 38, 0.76);
  --surface-strong: rgba(21, 31, 48, 0.9);
  --surface-deep: rgba(9, 15, 29, 0.74);
  --text: #f4f7fb;
  --muted: #a7b2c5;
  --muted-strong: #d4dbea;
  --line: rgba(255, 255, 255, 0.1);
  --line-strong: rgba(255, 255, 255, 0.16);
  --accent: #5da2ff;
  --accent-soft: rgba(93, 162, 255, 0.16);
  --accent-2: #34d0c8;
  --white: #ffffff;
  --shadow-lg: 0 30px 90px rgba(0, 0, 0, 0.28);
  --shadow-md: 0 22px 50px rgba(0, 0, 0, 0.18);
  --radius-xl: 28px;
  --radius-lg: 20px;
  --radius-md: 14px;
  --shell: 1180px;
}

[data-theme="light"] {
  color-scheme: light;
  --bg: #f2f4f8;
  --page-start: #f9fbfd;
  --page-end: #f2f4f8;
  --header-bg: rgba(249, 251, 253, 0.7);
  --header-border: rgba(255, 255, 255, 0.55);
  --surface: rgba(255, 255, 255, 0.74);
  --surface-strong: rgba(255, 255, 255, 0.9);
  --text: #0f1727;
  --muted: #526079;
  --muted-strong: #314057;
  --line: rgba(15, 23, 39, 0.1);
  --line-strong: rgba(15, 23, 39, 0.16);
  --accent: #1273ea;
  --accent-soft: rgba(18, 115, 234, 0.12);
  --accent-2: #19a3a3;
  --shadow-lg: 0 30px 90px rgba(17, 24, 39, 0.12);
  --shadow-md: 0 22px 50px rgba(17, 24, 39, 0.08);
}

[data-theme="dark"] {
  color-scheme: dark;
}

* {
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
}

body {
  margin: 0;
  min-height: 100vh;
  color: var(--text);
  font-family: "SF Pro Text", "SF Pro Display", "Helvetica Neue", Arial, sans-serif;
  background:
    linear-gradient(180deg, var(--page-start) 0%, var(--page-end) 100%);
}

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

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

button,
input,
textarea,
select {
  font: inherit;
}

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

.site-header {
  position: sticky;
  top: 0;
  z-index: 50;
  backdrop-filter: blur(24px);
  -webkit-backdrop-filter: blur(24px);
  background: var(--header-bg);
  border-bottom: 1px solid var(--header-border);
}

.nav-shell {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 24px;
  padding: 16px 0;
}

.brand {
  display: inline-flex;
  align-items: center;
  gap: 12px;
}

.brand-mark {
  width: 36px;
  height: 36px;
  border-radius: 12px;
  background:
    radial-gradient(circle at 28% 26%, rgba(255, 255, 255, 0.75), transparent 28%),
    linear-gradient(135deg, #09111f 0%, #15409c 54%, #1aa0a2 100%);
  box-shadow: 0 14px 28px rgba(18, 115, 234, 0.24);
  position: relative;
}

.brand-mark::after {
  content: "";
  position: absolute;
  inset: 8px 9px 9px 8px;
  border: 2px solid rgba(255, 255, 255, 0.88);
  border-top-color: transparent;
  border-radius: 999px;
}

.brand-word {
  font-size: 1.35rem;
  font-weight: 760;
  letter-spacing: 0;
}

.site-nav {
  display: flex;
  align-items: center;
  gap: 14px;
  flex-wrap: wrap;
}

.site-nav a {
  color: var(--muted);
  font-size: 0.95rem;
  font-weight: 600;
}

.site-nav a:hover,
.site-nav a:focus-visible,
.site-nav a[aria-current="page"] {
  color: var(--text);
}

.site-nav .button-primary,
.site-nav .button-primary:hover,
.site-nav .button-primary:focus-visible {
  color: var(--white);
}

.button {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 48px;
  padding: 0 22px;
  border-radius: 999px;
  border: 1px solid transparent;
  transition: transform 180ms ease, background-color 180ms ease, border-color 180ms ease, color 180ms ease;
  font-weight: 680;
}

.button:hover,
.button:focus-visible {
  transform: translateY(-1px);
}

.button-primary {
  color: var(--white);
  background: linear-gradient(135deg, #1273ea 0%, #1155d8 100%);
  box-shadow: 0 16px 34px rgba(18, 115, 234, 0.24);
}

.button-secondary {
  color: var(--text);
  background: var(--surface-strong);
  border-color: var(--line);
}

.button-light {
  color: var(--bg-deep);
  background: rgba(255, 255, 255, 0.92);
}

.button-ghost {
  color: var(--white);
  background: transparent;
  border-color: rgba(255, 255, 255, 0.28);
}

.button-small {
  min-height: 42px;
  padding: 0 18px;
}

.hero {
  display: grid;
  grid-template-columns: minmax(0, 0.78fr) minmax(0, 1.22fr);
  gap: clamp(32px, 3vw, 48px);
  padding-top: 64px;
  padding-bottom: 48px;
  align-items: center;
}

.hero-visual {
  width: 100%;
  justify-self: stretch;
  transform: none;
}

.eyebrow,
.kicker {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 8px 12px;
  border-radius: 999px;
  border: 1px solid var(--line);
  background: var(--surface);
  color: var(--muted-strong);
  font-size: 0.82rem;
  font-weight: 700;
  letter-spacing: 0.02em;
  text-transform: uppercase;
}

.kicker-light {
  color: rgba(255, 255, 255, 0.88);
  background: rgba(255, 255, 255, 0.1);
  border-color: rgba(255, 255, 255, 0.14);
}

h1,
h2,
h3 {
  margin: 0;
  letter-spacing: 0;
}

h1 {
  margin-top: 20px;
  font-size: clamp(3.4rem, 6.7vw, 5.5rem);
  line-height: 0.94;
  max-width: 9ch;
}

h2 {
  font-size: clamp(2.3rem, 4vw, 4rem);
  line-height: 0.98;
}

h3 {
  font-size: 1.45rem;
  line-height: 1.06;
}

p {
  margin: 0;
}

.hero-text,
.section-heading p,
.story-copy p,
.faq-list p,
.legal-hero p,
.legal-panel p,
.contact-card p {
  color: var(--muted);
  line-height: 1.65;
  font-size: 1.05rem;
}

.hero-text {
  max-width: 31rem;
  margin-top: 22px;
  font-size: clamp(1.05rem, 1.6vw, 1.25rem);
  letter-spacing: 0;
}

.hero-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 12px;
  margin-top: 30px;
}

.trust-strip {
  list-style: none;
  padding: 0;
  margin: 24px 0 0;
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
}

.trust-strip li {
  padding: 10px 14px;
  border-radius: 999px;
  background: var(--surface);
  border: 1px solid var(--line);
  color: var(--muted-strong);
  font-size: 0.92rem;
}

.product-frame {
  margin: 0;
  overflow: hidden;
  border-radius: var(--radius-lg);
  background: transparent;
  border: 0;
  box-shadow: none;
}

.product-frame img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.product-frame-hero {
  aspect-ratio: 3600 / 2338;
  border-radius: 34px;
  transform: rotate(1.2deg);
}

.product-frame-hero img {
  object-position: top center;
}

.product-frame-wide {
  aspect-ratio: 16 / 10;
}

.product-frame-wide img {
  object-position: top center;
}

.product-frame-notes img {
  object-fit: contain;
  object-position: center;
}

.product-frame-tall {
  aspect-ratio: 0.9 / 1;
}

.product-frame-tall img {
  object-fit: contain;
  background: transparent;
}

.product-frame-stats-detail {
  width: min(100%, 620px);
  aspect-ratio: 0.92 / 1;
  max-height: 640px;
  justify-self: center;
  overflow: hidden;
  border-radius: 28px;
  box-shadow: none;
  clip-path: inset(2px 10px 2px 2px round 28px);
}

.product-frame-stats-detail img {
  object-fit: contain;
  background: transparent;
  border-radius: inherit;
  transform: none;
}

.product-frame-card {
  position: relative;
  width: 100%;
  height: 230px;
  margin: 0 auto 18px;
  box-shadow: none;
  border-radius: 0;
  display: flex;
  align-items: flex-start;
  justify-content: center;
  overflow: visible;
}

.product-frame-card img {
  width: 100%;
  height: 100%;
  max-width: none;
  object-fit: contain;
  border-radius: 0;
  object-position: top center;
}

.product-frame-contain img {
  object-fit: contain;
  padding: 0;
  background: transparent;
}

.product-frame-menu {
  margin-inline: auto;
}

.product-frame-menu img {
  object-fit: contain;
  width: auto;
  height: 100%;
  max-width: 100%;
  padding: 0;
  background: transparent;
  filter: none;
}

.feature-card-music .product-frame-card img {
  width: 94%;
  height: auto;
  max-width: none;
  max-height: 100%;
  object-fit: contain;
  transform: none;
}

.feature-card-menu-controls .product-frame-card img {
  object-fit: contain;
  width: auto;
  height: 100%;
  transform: none;
}

.product-frame-settings {
  aspect-ratio: 16 / 9;
  margin-bottom: 20px;
  box-shadow: none;
}

.product-frame-settings img {
  object-position: top center;
}

.product-frame-story {
  width: 100%;
  aspect-ratio: 16 / 10;
}

.product-frame-story img {
  object-position: top center;
}

.product-frame-mockup {
  position: relative;
  overflow: visible;
  border: 0;
  background: transparent;
  box-shadow: none;
}

.product-frame-mockup::before {
  content: none;
}

.product-frame-mockup img {
  position: relative;
  z-index: 1;
  object-fit: contain;
}

.product-frame-hero.product-frame-mockup {
  aspect-ratio: 1.34 / 1;
  padding: 0;
}

.product-frame-hero.product-frame-mockup img {
  transform: translateX(-1%);
}

.product-frame-mockup-close {
  background: transparent;
  overflow: hidden;
  border-radius: 18px;
}

.product-frame-mockup-close img {
  object-fit: cover;
  transform: none;
}

.product-frame-mockup-card {
  overflow: visible;
  background: transparent;
}

.product-frame-mockup-card img {
  transform: scale(1.34);
}

.product-frame-story.product-frame-mockup img {
  transform: scale(1.18);
}

.product-frame-window-mockup {
  overflow: visible;
}

.product-frame-window-mockup img {
  transform: scale(1.03);
  filter: none;
}

.hero-frame {
  position: relative;
  padding: 18px;
  border-radius: 38px;
  background: linear-gradient(180deg, rgba(255, 255, 255, 0.85), rgba(255, 255, 255, 0.42));
  border: 1px solid rgba(255, 255, 255, 0.84);
  box-shadow: var(--shadow-lg);
}

.hero-toolbar {
  display: flex;
  gap: 8px;
  padding-bottom: 16px;
}

.hero-toolbar span {
  width: 11px;
  height: 11px;
  border-radius: 50%;
  background: #ff5f57;
}

.hero-toolbar span:nth-child(2) {
  background: #ffbd2e;
}

.hero-toolbar span:nth-child(3) {
  background: #28c840;
}

.notch-preview {
  min-height: 590px;
  border-radius: 28px;
  background:
    linear-gradient(180deg, rgba(244, 247, 251, 0.92), rgba(232, 237, 244, 0.82)),
    linear-gradient(135deg, rgba(17, 24, 39, 0.04), rgba(18, 115, 234, 0.06));
  border: 1px solid rgba(15, 23, 39, 0.08);
  padding: 24px;
  overflow: hidden;
}

.notch-shell {
  position: relative;
  min-height: 100%;
  padding-top: 32px;
}

.notch-tab {
  position: absolute;
  top: 0;
  left: 50%;
  transform: translateX(-50%);
  width: 190px;
  height: 36px;
  border-radius: 0 0 20px 20px;
  background: #050609;
  box-shadow: 0 16px 32px rgba(0, 0, 0, 0.2);
}

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

.preview-card,
.feature-card,
.story-card,
.permission-grid article,
.gallery-card,
.contact-card,
.pricing-card,
.pricing-note {
  border-radius: var(--radius-lg);
  background: var(--surface);
  border: 1px solid var(--line);
  box-shadow: var(--shadow-md);
  backdrop-filter: blur(18px);
  -webkit-backdrop-filter: blur(18px);
}

.preview-card {
  padding: 20px;
}

.preview-wide {
  grid-column: span 2;
}

.preview-label {
  font-size: 0.8rem;
  letter-spacing: 0.04em;
  text-transform: uppercase;
  color: var(--muted-strong);
  font-weight: 700;
}

.preview-card h2 {
  margin-top: 10px;
  font-size: 1.55rem;
}

.preview-chip-row,
.ghost-tabs,
.ghost-blocks {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  margin-top: 14px;
}

.preview-chip-row span,
.ghost-tabs span,
.ghost-blocks span {
  padding: 9px 12px;
  border-radius: 999px;
  background: rgba(18, 115, 234, 0.08);
  color: var(--muted-strong);
  font-size: 0.88rem;
}

.music-preview {
  display: flex;
  align-items: center;
  gap: 14px;
  margin-top: 14px;
}

.album-art {
  width: 54px;
  height: 54px;
  border-radius: 16px;
  background: linear-gradient(135deg, #0f1727 0%, #1273ea 62%, #19a3a3 100%);
}

.track-copy {
  display: grid;
  gap: 4px;
}

.track-copy span,
.ghost-title,
.gallery-card span,
.contact-card a {
  color: var(--muted-strong);
}

.timeline {
  margin-top: 16px;
  height: 8px;
  border-radius: 999px;
  background: rgba(15, 23, 39, 0.08);
  overflow: hidden;
}

.timeline span {
  display: block;
  width: 58%;
  height: 100%;
  border-radius: inherit;
  background: linear-gradient(90deg, #1273ea 0%, #19a3a3 100%);
}

.stat-list {
  display: grid;
  gap: 10px;
  margin-top: 16px;
}

.stat-list div,
.utility-list div {
  display: flex;
  justify-content: space-between;
  gap: 16px;
  padding: 12px 14px;
  border-radius: 16px;
  background: var(--surface-strong);
}

.mini-timer {
  display: grid;
  gap: 4px;
  margin-top: 16px;
}

.mini-timer strong {
  font-size: 2.25rem;
  line-height: 1;
}

.mini-timer span {
  color: var(--muted);
}

.window-grid,
.layout-preview {
  display: grid;
  grid-template-columns: 1.3fr 0.8fr;
  gap: 10px;
  margin-top: 16px;
}

.window-grid span,
.layout-preview span {
  min-height: 80px;
  border-radius: 18px;
  background: linear-gradient(180deg, rgba(18, 115, 234, 0.16), rgba(25, 163, 163, 0.12));
}

.window-grid .window-c,
.layout-preview span:last-child {
  grid-column: span 2;
  min-height: 56px;
}

.faq-section,
.gallery-section,
.pricing-section,
.legal-main,
.contact-main {
  padding-top: 46px;
  padding-bottom: 46px;
}

.section-heading {
  max-width: 760px;
}

#features {
  padding-top: 0;
}

.section-heading h2,
.legal-hero h1 {
  margin-top: 16px;
}

.section-heading p,
.legal-hero p {
  margin-top: 16px;
}

.feature-grid {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 18px;
  margin-top: 32px;
}

.feature-showcase {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 22px;
  margin-top: 0;
}

.feature-spotlight {
  display: grid;
  grid-template-columns: minmax(0, 0.82fr) minmax(280px, 1fr);
  gap: 24px;
  align-items: center;
  padding: 28px;
  border-radius: var(--radius-xl);
  background: var(--surface);
  border: 1px solid var(--line);
  box-shadow: var(--shadow-md);
  backdrop-filter: blur(18px);
  -webkit-backdrop-filter: blur(18px);
}

.feature-spotlight-large {
  grid-column: 1 / -1;
  grid-template-columns: minmax(0, 0.78fr) minmax(0, 1.22fr);
  align-items: start;
  padding-block: 28px;
  min-height: 0;
}

.feature-spotlight-large .product-frame-wide {
  align-self: start;
  aspect-ratio: 16 / 7.7;
}

.feature-spotlight:has(.product-frame-stats-detail) {
  grid-template-columns: minmax(0, 0.58fr) minmax(0, 1.12fr);
  align-items: start;
}

.feature-spotlight:has(.product-frame-stats-detail) .product-frame-stats-detail {
  margin-top: 4px;
}

.feature-spotlight-notes {
  grid-template-columns: 1fr;
  grid-template-areas:
    "heading"
    "media";
  align-items: stretch;
  gap: 22px;
}

.feature-notes-heading {
  grid-area: heading;
}

.feature-notes-heading h3 {
  margin-top: 0;
  font-size: clamp(1.75rem, 2vw, 2.35rem);
  line-height: 1.04;
}

.feature-notes-heading p {
  margin-top: 12px;
  color: var(--muted);
  line-height: 1.55;
  font-size: 1.03rem;
}

.feature-spotlight-notes .product-frame {
  grid-area: media;
  width: 100%;
  aspect-ratio: 1572 / 498;
}

.feature-copy h3 {
  margin-top: 0;
  font-size: clamp(1.75rem, 2vw, 2.35rem);
  line-height: 1.04;
}

.feature-spotlight-large .feature-copy h3 {
  font-size: clamp(1.75rem, 2vw, 2.35rem);
}

.feature-copy p:last-child {
  margin-top: 16px;
  color: var(--muted);
  line-height: 1.65;
  font-size: 1.03rem;
}

.feature-card {
  padding: 24px;
}

.product-feature-grid {
  grid-template-columns: repeat(6, minmax(0, 1fr));
  grid-template-areas:
    "menu menu focus focus focus focus"
    "menu menu clipboard clipboard music music"
    "windows windows windows remap remap remap";
  align-items: stretch;
}

.feature-card-media {
  padding: 18px;
  display: flex;
  flex-direction: column;
}

.feature-card-clipboard {
  grid-area: clipboard;
}

.feature-card-music {
  grid-area: music;
}

.feature-card-focus {
  grid-area: focus;
}

.feature-card-menu-controls {
  grid-area: menu;
}

.feature-card-windows {
  grid-area: windows;
}

.feature-card-remap {
  grid-area: remap;
}

.feature-card-media h3 {
  margin-top: 0;
  font-size: clamp(1.75rem, 2vw, 2.35rem);
  line-height: 1.04;
}

.feature-card-menu-controls .product-frame-card {
  height: 450px;
  margin-bottom: 20px;
}

.feature-card-menu-controls .product-frame-card img {
  height: 100%;
}

.feature-card-focus .product-frame-card {
  width: calc(100% - 18px);
  height: 230px;
  margin-bottom: 18px;
}

.feature-card-focus .product-frame-card img {
  width: 100%;
  height: 100%;
}

.feature-card-clipboard .product-frame-card,
.feature-card-music .product-frame-card {
  height: 205px;
  margin-bottom: 18px;
}

.feature-card-music .product-frame-card {
  height: 185px;
}

.feature-card-wide {
  min-width: 0;
}

.feature-icon {
  display: grid;
  place-items: center;
  width: 54px;
  height: 54px;
  border-radius: 16px;
  margin-bottom: 18px;
  background: linear-gradient(135deg, rgba(18, 115, 234, 0.14), rgba(25, 163, 163, 0.14));
  color: var(--accent);
  font-size: 1.45rem;
  font-weight: 700;
}

.feature-card p,
.permission-grid p,
.gallery-card strong,
.contact-card a {
  margin-top: 12px;
  line-height: 1.6;
}

.story-stack {
  display: grid;
  gap: 72px;
  padding-top: 72px;
  padding-bottom: 72px;
}

.story-card {
  display: grid;
  grid-template-columns: 1fr 0.9fr;
  gap: 56px;
  padding: 0;
  border: 0;
  border-radius: 0;
  background: transparent;
  box-shadow: none;
  backdrop-filter: none;
  -webkit-backdrop-filter: none;
}

.story-reverse {
  grid-template-columns: 0.9fr 1fr;
}

.story-reverse .story-copy {
  order: 2;
}

.story-reverse .story-visual {
  order: 1;
}

.story-copy h2 {
  margin-top: 16px;
}

.story-copy p:last-child {
  margin-top: 16px;
}

.story-visual {
  display: flex;
  align-items: center;
  justify-content: center;
}

.ghost-panel,
.player-showcase,
.utility-list {
  width: 100%;
}

.ghost-panel,
.player-showcase,
.utility-list,
.layout-preview {
  padding: 22px;
  border-radius: 26px;
  background: var(--surface);
  border: 1px solid var(--line);
}

.ghost-title {
  display: block;
  font-size: 1rem;
  font-weight: 700;
}

.player-showcase {
  display: grid;
  gap: 12px;
}

.player-tile {
  padding: 18px;
  border-radius: 18px;
  background: var(--surface-strong);
}

.player-tile small {
  display: block;
  color: var(--muted);
  margin-bottom: 8px;
}

.permissions-section,
.gallery-section {
  padding-top: 54px;
  padding-bottom: 54px;
}

.permission-grid,
.gallery-grid,
.contact-grid,
.pricing-grid {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 18px;
  margin-top: 28px;
}

.pricing-grid {
  grid-template-columns: minmax(0, 1.15fr) minmax(300px, 0.85fr);
  align-items: stretch;
}

.pricing-card,
.pricing-note {
  padding: 30px;
}

.pricing-card-primary {
  background: var(--surface-strong);
}

.pricing-badge {
  display: inline-flex;
  width: fit-content;
  padding: 8px 12px;
  border-radius: 999px;
  background: var(--accent-soft);
  color: var(--accent);
  font-weight: 750;
  font-size: 0.85rem;
}

.price-line {
  display: flex;
  align-items: flex-start;
  gap: 6px;
  margin-top: 18px;
}

.price-line span {
  margin-top: 12px;
  color: var(--muted);
  font-weight: 700;
}

.price-line strong {
  font-size: 4.6rem;
  line-height: 0.95;
}

.pricing-card p:not(.pricing-badge),
.pricing-note p {
  margin-top: 12px;
  color: var(--muted);
  line-height: 1.65;
}

.pricing-card ul {
  display: grid;
  gap: 10px;
  margin: 22px 0 0;
  padding: 0;
  list-style: none;
}

.pricing-card li {
  position: relative;
  padding-left: 26px;
  color: var(--muted-strong);
  line-height: 1.45;
}

.pricing-card li::before {
  content: "";
  position: absolute;
  left: 0;
  top: 0.55em;
  width: 10px;
  height: 10px;
  border-radius: 50%;
  background: var(--accent);
}

.pricing-legal-note {
  display: flex;
  flex-wrap: wrap;
  gap: 8px 12px;
  align-items: baseline;
  margin-top: 18px;
  font-size: 0.86rem;
  line-height: 1.55;
}

.pricing-legal-note span {
  flex-basis: 100%;
  color: var(--muted);
}

.pricing-legal-note a {
  color: var(--accent);
  font-weight: 700;
}

.pricing-note {
  background:
    linear-gradient(180deg, var(--surface), var(--surface)),
    linear-gradient(135deg, rgba(18, 115, 234, 0.12), rgba(25, 163, 163, 0.1));
}

.permission-grid article,
.gallery-card,
.contact-card {
  padding: 24px;
}

.permission-grid h3,
.gallery-card strong,
.contact-card h2 {
  margin-top: 10px;
}

.gallery-card {
  min-height: 220px;
  display: flex;
  flex-direction: column;
  justify-content: flex-end;
  background:
    linear-gradient(180deg, rgba(255, 255, 255, 0.16), rgba(255, 255, 255, 0.8)),
    radial-gradient(circle at top right, rgba(18, 115, 234, 0.15), transparent 36%);
}

.footer-panel {
  border-radius: var(--radius-xl);
  padding: 40px;
  background:
    radial-gradient(circle at top right, rgba(93, 162, 255, 0.1), transparent 32%),
    var(--surface-deep);
  border: 1px solid var(--line);
  box-shadow: var(--shadow-md);
}

.footer-top {
  display: grid;
  grid-template-columns: minmax(0, 1fr) auto;
  align-items: end;
  gap: 40px;
  padding-bottom: 36px;
  border-bottom: 1px solid var(--line);
}

.footer-actions {
  display: flex;
  align-items: center;
  gap: 12px;
  flex-wrap: wrap;
  justify-content: flex-end;
}

.footer-cta h2 {
  margin-top: 14px;
  max-width: 720px;
}

.footer-cta p:last-of-type {
  margin-top: 16px;
  max-width: 620px;
  color: var(--muted);
  line-height: 1.65;
}

.faq-list {
  display: grid;
  gap: 14px;
  margin-top: 28px;
}

.faq-list details {
  border-radius: 22px;
  background: var(--surface);
  border: 1px solid var(--line);
  padding: 18px 20px;
}

.faq-list summary {
  cursor: pointer;
  font-weight: 700;
  letter-spacing: 0;
}

.faq-list p {
  margin-top: 12px;
}

.site-footer {
  padding: 72px 0 32px;
}

.footer-panel {
  display: block;
}

.footer-directory {
  display: grid;
  grid-template-columns: minmax(220px, 1fr) minmax(320px, 0.8fr);
  gap: 40px;
  padding: 32px 0;
}

.footer-brand {
  align-self: start;
}

.footer-links {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 18px;
}

.footer-links strong {
  display: block;
  margin-bottom: 12px;
}

.footer-links a {
  display: block;
  margin-bottom: 10px;
  color: var(--muted);
}

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

.footer-meta {
  display: flex;
  flex-wrap: wrap;
  gap: 8px 16px;
  padding-top: 20px;
  border-top: 1px solid var(--line);
  color: var(--muted);
  font-size: 0.92rem;
}

.legal-main {
  padding-top: 72px;
}

.legal-hero {
  max-width: 760px;
}

.language-switcher {
  display: inline-flex;
  padding: 6px;
  border-radius: 999px;
  background: var(--surface);
  border: 1px solid var(--line);
}

.language-switcher-nav {
  padding: 3px;
}

.language-switcher-nav .language-button {
  padding: 7px 10px;
  font-size: 0.82rem;
}

.language-button {
  border: 0;
  background: transparent;
  color: var(--muted);
  padding: 10px 16px;
  border-radius: 999px;
  cursor: pointer;
  font-weight: 650;
}

.language-button.is-active {
  color: var(--text);
  background: var(--accent-soft);
}

.theme-toggle {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  min-height: 34px;
  padding: 5px 10px 5px 6px;
  border-radius: 999px;
  border: 1px solid var(--line);
  background: var(--surface);
  color: var(--muted-strong);
  cursor: pointer;
  font-weight: 700;
  font-size: 0.84rem;
}

.theme-toggle-icon {
  display: grid;
  place-items: center;
  width: 24px;
  height: 24px;
  border-radius: 50%;
  background: var(--accent-soft);
  color: var(--accent);
}

.theme-toggle-icon::before {
  content: "";
  width: 12px;
  height: 12px;
  border-radius: 50%;
  background: currentColor;
}

[data-theme="light"] .theme-toggle-icon::before {
  background: transparent;
  border: 2px solid currentColor;
  box-shadow: inset -3px -3px 0 currentColor;
}

.theme-toggle:hover,
.theme-toggle:focus-visible {
  color: var(--text);
  border-color: var(--line-strong);
}

.legal-content {
  margin-top: 22px;
}

.legal-toc {
  display: grid;
  gap: 8px;
  margin-bottom: 24px;
  padding: 18px 20px;
  border-radius: 20px;
  background: var(--surface);
  border: 1px solid var(--line);
}

.legal-toc strong {
  color: var(--text);
}

.legal-toc a {
  color: var(--muted-strong);
  font-size: 0.96rem;
}

.legal-list {
  margin: 14px 0 0 18px;
  padding: 0;
  color: var(--muted);
}

.legal-list li {
  margin-top: 10px;
  line-height: 1.65;
}

.legal-panel {
  display: none;
  padding: 28px;
  border-radius: 28px;
  background: var(--surface);
  border: 1px solid var(--line);
  box-shadow: var(--shadow-md);
}

.legal-panel.is-active {
  display: block;
}

.legal-panel h2 {
  margin-top: 26px;
  font-size: 1.6rem;
}

.legal-panel p {
  margin-top: 12px;
}

.legal-panel a {
  color: var(--accent);
  font-weight: 650;
}

.license-text {
  overflow-x: auto;
  margin: 18px 0 0;
  padding: 18px;
  border: 1px solid var(--line);
  border-radius: 8px;
  background: var(--surface-strong);
  color: var(--muted-strong);
  font: 0.82rem/1.55 ui-monospace, SFMono-Regular, Menlo, Monaco, Consolas, monospace;
  white-space: pre-wrap;
}

.contact-grid {
  margin-top: 30px;
  align-items: stretch;
}

.contact-card {
  display: flex;
  min-height: 270px;
  flex-direction: column;
  padding: 28px;
}

.contact-card h2 {
  margin-top: 0;
  font-size: clamp(1.75rem, 2.4vw, 2.35rem);
  line-height: 1.02;
}

.contact-card p,
.contact-address {
  margin-top: 16px;
  color: var(--muted);
  line-height: 1.65;
}

.contact-address {
  font-style: normal;
}

.contact-action {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  margin-top: auto;
  padding-top: 22px;
  border-top: 1px solid var(--line);
  color: var(--text);
  font-weight: 700;
  overflow-wrap: anywhere;
}

.contact-action::after {
  content: "↗";
  color: var(--accent);
  font-size: 1.1rem;
}

body[data-page="contact"] .legal-hero {
  max-width: none;
}

body[data-page="contact"] .legal-hero h1 {
  max-width: none;
  white-space: nowrap;
  font-size: clamp(3rem, 6vw, 5.4rem);
}

body[data-page="contact"] .legal-hero > p:last-child {
  max-width: 720px;
}

@media (max-width: 1100px) {
  .feature-grid {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }

  .product-feature-grid {
    grid-template-areas:
      "menu focus"
      "clipboard music"
      "windows remap";
  }

  .feature-card-menu-controls .product-frame-card {
    height: 420px;
  }

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

  .feature-spotlight-large,
  .feature-spotlight:has(.product-frame-stats-detail) {
    grid-template-columns: 1fr;
  }

  .feature-spotlight-notes {
    grid-template-areas:
      "heading"
      "media";
  }

  .feature-spotlight-large {
    grid-column: auto;
  }

  .permission-grid,
  .gallery-grid,
  .contact-grid,
  .pricing-grid,
  .footer-panel {
    grid-template-columns: 1fr;
  }

  .footer-top,
  .footer-directory {
    grid-template-columns: 1fr;
  }

  .footer-actions {
    justify-content: flex-start;
  }
}

@media (max-width: 900px) {
  .hero,
  .story-card,
  .story-reverse {
    grid-template-columns: 1fr;
  }

  .hero-visual {
    width: 100%;
    justify-self: stretch;
    transform: none;
  }

  .story-reverse .story-copy,
  .story-reverse .story-visual {
    order: initial;
  }

  .product-frame-hero {
    transform: none;
  }

  .product-frame-hero.product-frame-mockup img {
    transform: scale(1.18);
  }

  .notch-preview {
    min-height: 520px;
  }

  body[data-page="contact"] .legal-hero h1 {
    white-space: normal;
  }

}

@media (max-width: 720px) {
  .shell,
  .section-shell {
    width: min(var(--shell), calc(100% - 28px));
  }

  .nav-shell {
    align-items: flex-start;
    flex-direction: column;
  }

  .site-nav {
    gap: 12px;
  }

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

  .product-feature-grid {
    grid-template-areas:
      "menu"
      "focus"
      "clipboard"
      "music"
      "windows"
      "remap";
  }

  .feature-spotlight,
  .feature-card-media {
    padding: 16px;
  }

  .feature-card-wide {
    grid-column: auto;
  }

  .product-frame-wide,
  .product-frame-card,
  .product-frame-stats-detail,
  .product-frame-settings,
  .product-frame-story {
    aspect-ratio: 4 / 3;
  }

  .feature-card-menu-controls .product-frame-card,
  .feature-card-focus .product-frame-card,
  .feature-card-clipboard .product-frame-card,
  .feature-card-music .product-frame-card {
    height: auto;
  }

  .feature-spotlight-notes .product-frame-notes {
    aspect-ratio: 1572 / 498;
  }

  .product-frame-menu {
    aspect-ratio: 1 / 1;
  }

  .product-frame-tall {
    aspect-ratio: 1 / 1.12;
  }

  .product-frame-hero.product-frame-mockup img,
  .product-frame-mockup-card img,
  .product-frame-story.product-frame-mockup img,
  .product-frame-window-mockup img {
    transform: none;
  }

  .product-frame-mockup-close {
    border-radius: 16px;
  }

  .product-frame-mockup-close img {
    transform: scale(0.96);
  }

  .preview-wide {
    grid-column: auto;
  }

  .story-card,
  .footer-panel {
    padding: 24px;
  }

  .site-footer {
    padding-top: 48px;
  }

  .footer-top {
    gap: 24px;
    padding-bottom: 28px;
  }

  .footer-actions .button {
    width: 100%;
  }

  .footer-directory {
    gap: 28px;
    padding: 28px 0;
  }

  .story-card {
    padding: 0;
  }

  .story-stack {
    gap: 56px;
    padding-top: 48px;
    padding-bottom: 48px;
  }

  .notch-preview {
    min-height: auto;
  }

  h1 {
    font-size: clamp(2.8rem, 14vw, 4.2rem);
  }

  h2 {
    font-size: clamp(2rem, 9vw, 3rem);
  }
}

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

  .button {
    transition: none;
  }

  .button:hover,
  .button:focus-visible {
    transform: none;
  }
}
