/* Qurza public site
   Colors follow the iOS app assets: parchment, jade, and a restrained gold.
   Dark theme follows the app’s night slate and warm gold accent. */

:root {
  color-scheme: light;
  --bg: #f6f2e9;
  --bg-wash: #e9efe8;
  --paper: #fffefa;
  --surface: #fffefa;
  --ink: #1c2922;
  --muted: #4e5851;
  --faint: #626c64;
  --line: #e4e0d6;
  --primary: #244e40;
  --primary-dark: #1a3a30;
  --on-primary: #f6f2e9;
  --link: #1a3a30;
  --link-hover: #244e40;
  --gold: #a87943;
  --gold-text: #7a5528;
  --focus: #1a3a30;
  --header: rgb(246 242 233 / 0.88);
  --shadow: 0 18px 40px rgb(28 41 34 / 0.06);
  --pattern: rgb(36 78 64 / 0.16);
  --specimen-ayah: #1a3a30;
  --danger-text: #6d3b2c;

  --font-display: "Iowan Old Style", "Palatino Linotype", Palatino, Georgia, "Times New Roman", serif;
  --font-body: -apple-system, BlinkMacSystemFont, "Segoe UI", "Helvetica Neue", sans-serif;
  --font-arabic: "Geeza Pro", "Noto Naskh Arabic", "Amiri", "Scheherazade New", "Traditional Arabic", "Times New Roman", serif;
  --font-mono: ui-monospace, "SFMono-Regular", Menlo, Consolas, monospace;

  --space-2xs: 0.25rem;
  --space-xs: 0.5rem;
  --space-sm: 0.75rem;
  --space-md: 1rem;
  --space-lg: 1.5rem;
  --space-xl: 2rem;
  --space-2xl: 3.5rem;
  --space-3xl: 6rem;

  --radius-sm: 12px;
  --radius-md: 16px;
  --radius-lg: 22px;
  --radius-pill: 999px;

  --measure: 68ch;
  --shell: 1120px;
  --header-h: 4.5rem;

  --ease: 180ms ease;
  --shadow-soft: 0 1px 0 rgb(28 41 34 / 0.04);
}

html[data-theme="dark"] {
  color-scheme: dark;
  --bg: #15232f;
  --bg-wash: #1c3040;
  --paper: #263847;
  --surface: #263847;
  --ink: #f4f0e8;
  --muted: #d5dce2;
  --faint: #b5c0c8;
  --line: #40515e;
  --primary: #e8d0a5;
  --primary-dark: #d9aa63;
  --on-primary: #1a3a30;
  --link: #e8d0a5;
  --link-hover: #f3e2c0;
  --gold: #d9aa63;
  --gold-text: #e8d0a5;
  --focus: #e8d0a5;
  --header: rgb(21 35 47 / 0.9);
  --shadow: 0 18px 40px rgb(0 0 0 / 0.28);
  --pattern: rgb(232 208 165 / 0.22);
  --specimen-ayah: #f4f0e8;
  --danger-text: #f0c7b4;
}

@media (prefers-color-scheme: dark) {
  html:not([data-theme]) {
    color-scheme: dark;
    --bg: #15232f;
    --bg-wash: #1c3040;
    --paper: #263847;
    --surface: #263847;
    --ink: #f4f0e8;
    --muted: #d5dce2;
    --faint: #b5c0c8;
    --line: #40515e;
    --primary: #e8d0a5;
    --primary-dark: #d9aa63;
    --on-primary: #1a3a30;
    --link: #e8d0a5;
    --link-hover: #f3e2c0;
    --gold: #d9aa63;
    --gold-text: #e8d0a5;
    --focus: #e8d0a5;
    --header: rgb(21 35 47 / 0.9);
    --shadow: 0 18px 40px rgb(0 0 0 / 0.28);
    --pattern: rgb(232 208 165 / 0.22);
    --specimen-ayah: #f4f0e8;
    --danger-text: #f0c7b4;
  }
}

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

html {
  scroll-behavior: smooth;
}

body {
  margin: 0;
  min-height: 100vh;
  background: var(--bg);
  color: var(--ink);
  font-family: var(--font-body);
  font-size: 1.0625rem;
  line-height: 1.65;
  text-rendering: optimizeLegibility;
}

body.nav-open {
  overflow: hidden;
}

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

a {
  color: var(--link);
  text-decoration-thickness: 1px;
  text-underline-offset: 0.18em;
}

a:hover {
  color: var(--link-hover);
}

:focus {
  outline: none;
}

:focus-visible {
  outline: 2px solid var(--focus);
  outline-offset: 3px;
  border-radius: 4px;
}

h1, h2, h3, p {
  margin: 0;
}

h1, h2, h3 {
  font-family: var(--font-display);
  font-weight: 500;
  letter-spacing: -0.02em;
  line-height: 1.12;
}

p + p {
  margin-top: 0.9em;
}

code {
  font-family: var(--font-mono);
  font-size: 0.92em;
}

.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;
}

.skip-link {
  position: absolute;
  left: 1rem;
  top: -4rem;
  z-index: 40;
  padding: 0.6rem 0.9rem;
  background: var(--primary);
  color: var(--on-primary);
  border-radius: var(--radius-pill);
  text-decoration: none;
}

.skip-link:focus {
  top: 0.75rem;
}

.shell {
  width: min(var(--shell), calc(100% - 2rem));
  margin-inline: auto;
}

.site-header {
  position: sticky;
  top: 0;
  z-index: 30;
  padding-top: max(0px, env(safe-area-inset-top));
  background: transparent;
  box-shadow: var(--shadow-soft);
}

/* Blur lives on a pseudo-element. A backdrop-filter on the header itself
   would become the containing block for the fixed mobile menu. */
.site-header::before {
  content: "";
  position: absolute;
  inset: 0;
  z-index: 0;
  background: var(--header);
  backdrop-filter: saturate(1.2) blur(16px);
  pointer-events: none;
}

.header-inner {
  position: relative;
  z-index: 2;
  display: flex;
  align-items: center;
  gap: var(--space-md);
  min-height: var(--header-h);
}

main {
  padding-top: var(--space-xl);
}

.brand {
  display: inline-flex;
  align-items: center;
  gap: 0.7rem;
  color: var(--ink);
  text-decoration: none;
  font-family: var(--font-display);
  font-size: 1.35rem;
  letter-spacing: -0.03em;
}

.brand img {
  width: 40px;
  height: 40px;
  border-radius: 10px;
}

.header-tools {
  display: flex;
  align-items: center;
  gap: 0.35rem;
  margin-left: auto;
}

.lang {
  position: relative;
}

.lang-toggle {
  height: 44px;
  display: inline-flex;
  align-items: center;
  gap: 0.3rem;
  padding: 0 0.75rem;
  border: 1px solid transparent;
  border-radius: var(--radius-pill);
  background: transparent;
  color: var(--ink);
  font: inherit;
  font-size: 0.78rem;
  font-weight: 650;
  letter-spacing: 0.08em;
  cursor: pointer;
}

.lang-toggle:hover,
.lang-toggle[aria-expanded="true"] {
  background: var(--bg-wash);
  border-color: var(--line);
}

.lang-caret {
  font-size: 0.7rem;
  letter-spacing: 0;
}

.lang-menu {
  position: absolute;
  top: calc(100% + 0.35rem);
  right: 0;
  z-index: 5;
  min-width: 13.5rem;
  margin: 0;
  padding: 0.35rem;
  list-style: none;
  background: var(--paper);
  border: 1px solid var(--line);
  border-radius: 14px;
}

.lang-menu[hidden] {
  display: none;
}

.lang-menu button {
  width: 100%;
  padding: 0.65rem 0.75rem;
  border: 0;
  border-radius: 10px;
  background: transparent;
  color: var(--ink);
  font: inherit;
  font-size: 0.95rem;
  text-align: left;
  cursor: pointer;
}

.lang-menu button:hover,
.lang-menu button:focus-visible {
  background: var(--bg-wash);
}

.lang-menu button[aria-selected="true"] {
  color: var(--primary-dark);
  font-weight: 650;
}

.icon-button {
  width: 44px;
  height: 44px;
  display: inline-grid;
  place-items: center;
  padding: 0;
  border: 1px solid transparent;
  border-radius: 50%;
  background: transparent;
  color: var(--ink);
  cursor: pointer;
}

.icon-button:hover {
  background: var(--bg-wash);
  border-color: var(--line);
}

.icon-button svg {
  width: 22px;
  height: 22px;
  fill: none;
  stroke: currentColor;
  stroke-width: 1.7;
  stroke-linecap: round;
  stroke-linejoin: round;
}

.icon-sun {
  color: #7a5528;
}

.icon-sun circle {
  fill: currentColor;
  stroke: none;
}

.icon-moon {
  display: none;
}

.icon-moon path {
  fill: currentColor;
  stroke: none;
}

html[data-theme="dark"] .icon-sun {
  display: none;
}

html[data-theme="dark"] .icon-moon {
  display: block;
  color: #e8d0a5;
}

@media (prefers-color-scheme: dark) {
  html:not([data-theme]) .icon-sun {
    display: none;
  }

  html:not([data-theme]) .icon-moon {
    display: block;
    color: #e8d0a5;
  }
}

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

.primary-nav {
  display: none;
}

.primary-nav.is-open {
  display: flex;
  position: fixed;
  inset: 0;
  z-index: 1;
  flex-direction: column;
  justify-content: flex-end;
  gap: 0.2rem;
  padding: calc(var(--header-h) + env(safe-area-inset-top) + 1.5rem) 1.5rem 2.5rem;
  background: var(--bg);
}

.primary-nav a {
  color: var(--ink);
  text-decoration: none;
  font-family: var(--font-display);
  font-size: clamp(1.8rem, 7vw, 2.6rem);
  letter-spacing: -0.03em;
  padding: 0.35rem 0;
}

.primary-nav a[aria-current="page"] {
  color: var(--primary);
}

.hero {
  position: relative;
  display: grid;
  justify-items: center;
  gap: 2.25rem;
  padding: 1.25rem 0 3.5rem;
  text-align: center;
}

.hero::before {
  content: "";
  position: absolute;
  z-index: 0;
  left: 50%;
  top: 8%;
  width: min(720px, 92%);
  height: 78%;
  transform: translateX(-50%);
  background:
    radial-gradient(ellipse at 50% 28%, rgb(36 78 64 / 0.16), transparent 58%),
    radial-gradient(ellipse at 50% 78%, rgb(168 121 67 / 0.14), transparent 62%);
  pointer-events: none;
}

html[data-theme="dark"] .hero::before {
  background:
    radial-gradient(ellipse at 50% 24%, rgb(232 208 165 / 0.14), transparent 56%),
    radial-gradient(ellipse at 50% 80%, rgb(36 78 64 / 0.45), transparent 64%);
}

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

.hero-copy {
  width: 100%;
  max-width: 36rem;
}

.kicker {
  margin-bottom: var(--space-md);
  color: var(--primary-dark);
  font-size: 0.78rem;
  font-weight: 650;
  letter-spacing: 0.16em;
  text-transform: uppercase;
}

html[data-theme="dark"] .kicker {
  color: var(--gold-text);
}

.hero h1 {
  margin-inline: auto;
  font-size: clamp(3rem, 1.4rem + 4.6vw, 5.25rem);
  font-weight: 500;
  max-width: 11ch;
  color: var(--primary-dark);
}

html[data-theme="dark"] .hero h1 {
  color: var(--ink);
}

@supports ((-webkit-background-clip: text) or (background-clip: text)) {
  .hero h1 {
    background: linear-gradient(180deg, #1a3a30 8%, #3c6a56 100%);
    -webkit-background-clip: text;
    background-clip: text;
    color: transparent;
  }

  html[data-theme="dark"] .hero h1 {
    background: linear-gradient(180deg, #f7f3ea 0%, #e8d0a5 100%);
    -webkit-background-clip: text;
    background-clip: text;
    color: transparent;
  }
}

.lede {
  margin-top: 1rem;
  max-width: 34rem;
  color: var(--muted);
  font-size: clamp(1.125rem, 1rem + 0.4vw, 1.35rem);
  line-height: 1.55;
}

.hero .lede {
  margin-inline: auto;
  max-width: 16rem;
  font-size: clamp(1.2rem, 1rem + 0.5vw, 1.45rem);
  line-height: 1.4;
}

.theme-dark {
  display: none;
}

html[data-theme="dark"] .theme-light {
  display: none;
}

html[data-theme="dark"] .theme-dark {
  display: block;
}

.store-link {
  display: inline-block;
  margin-top: 1.35rem;
  line-height: 0;
  border-radius: 8px;
}

.store-link img {
  width: 144px;
  height: auto;
}

.store-link:hover {
  opacity: 0.88;
}


.hero-stage {
  position: relative;
  margin: 0;
  display: grid;
  justify-items: center;
}

.hero-stage::before {
  content: "";
  position: absolute;
  z-index: 0;
  left: 50%;
  bottom: 4%;
  width: 78%;
  height: 22%;
  transform: translateX(-50%);
  background: radial-gradient(ellipse, rgb(26 58 48 / 0.28), transparent 70%);
  filter: blur(10px);
  pointer-events: none;
}

html[data-theme="dark"] .hero-stage::before {
  background: radial-gradient(ellipse, rgb(232 208 165 / 0.22), transparent 70%);
}

.device {
  position: relative;
  z-index: 1;
  width: min(240px, 68vw);
  padding: 0.5rem;
  border-radius: 2.35rem;
  background: linear-gradient(180deg, #2a2e2c, #121413);
  box-shadow:
    0 24px 50px rgb(26 58 48 / 0.16),
    0 2px 8px rgb(26 58 48 / 0.08),
    inset 0 0 0 1px rgb(255 255 255 / 0.16),
    inset 0 1px 0 rgb(255 255 255 / 0.28);
}

.device img {
  width: 100%;
  height: auto;
  border-radius: 2.05rem;
}

html[data-theme="dark"] .device {
  background: linear-gradient(180deg, #1c2833, #0b1218);
  box-shadow:
    0 30px 60px rgb(0 0 0 / 0.46),
    0 2px 10px rgb(0 0 0 / 0.28),
    inset 0 0 0 1px rgb(255 255 255 / 0.12),
    inset 0 1px 0 rgb(232 208 165 / 0.28);
}

.showcase {
  position: relative;
  display: grid;
  gap: 3.25rem;
  padding: 3.25rem 0 3.75rem;
}

.showcase::before {
  content: "";
  position: absolute;
  top: 0;
  left: 50%;
  width: min(240px, 46%);
  height: 1px;
  transform: translateX(-50%);
  background: linear-gradient(90deg, transparent, rgb(168 121 67 / 0.85), transparent);
}

.showcase-item {
  margin: 0;
  display: grid;
  justify-items: center;
  gap: 1.15rem;
  text-align: center;
}

.showcase-title {
  font-family: var(--font-display);
  font-size: clamp(1.85rem, 1.4rem + 1vw, 2.45rem);
  font-weight: 500;
  letter-spacing: -0.03em;
  line-height: 1.1;
  color: var(--primary-dark);
}

html[data-theme="dark"] .showcase-title {
  color: var(--ink);
}

.showcase-item figcaption p:last-child {
  margin-top: 0.4rem;
  color: var(--muted);
}

.doc h1 {
  font-size: clamp(2rem, 1.3rem + 2vw, 3.1rem);
}

.page-intro {
  max-width: var(--measure);
  padding-bottom: var(--space-xl);
}

.page-intro h1 {
  font-size: clamp(2.4rem, 1.5rem + 3vw, 4.2rem);
  color: var(--primary-dark);
  max-width: 14ch;
}

html[data-theme="dark"] .page-intro h1 {
  color: var(--ink);
}

.page-intro .lede {
  margin-top: var(--space-md);
}

.doc {
  max-width: var(--measure);
  padding-bottom: var(--space-3xl);
}

.doc h2 {
  margin-top: 2.4rem;
  margin-bottom: 0.7rem;
  font-size: 1.7rem;
  scroll-margin-top: calc(var(--header-h) + 0.75rem);
}

.doc h3 {
  margin-top: 1.4rem;
  margin-bottom: 0.4rem;
  font-size: 1.25rem;
  scroll-margin-top: calc(var(--header-h) + 0.75rem);
}

.doc p,
.doc li {
  color: var(--muted);
}

.doc li strong,
.doc p strong {
  color: var(--ink);
  font-weight: 620;
}

.doc ul,
.doc ol {
  margin: 0.7rem 0 0;
  padding-left: 1.15rem;
}

.doc li + li {
  margin-top: 0.45rem;
}

.doc a {
  font-weight: 600;
}

.doc-toc {
  margin-top: 0.25rem;
}

.doc-toc ol {
  margin-top: 0.35rem;
  padding-left: 1.25rem;
}

.doc-toc li + li {
  margin-top: 0.3rem;
}

.doc-toc a {
  font-weight: 560;
  text-decoration: none;
}

.doc-toc a:hover {
  text-decoration: underline;
}

.draft-note,
.confirm {
  border: 1px solid var(--line);
  border-left: 3px solid var(--gold);
  background: var(--surface);
  border-radius: var(--radius-md);
  padding: 1.05rem 1.15rem 1.15rem;
}

.draft-note {
  margin: 1.4rem 0 0.2rem;
}

.draft-note p,
.confirm p,
.confirm li {
  color: var(--muted);
}

.confirm {
  margin-top: 2.2rem;
}

.confirm h2 {
  margin-top: 0;
}

.meta-line {
  margin-top: 1rem;
  color: var(--faint);
  font-size: 0.95rem;
}

.fact-list {
  list-style: none;
  margin: 1.2rem 0 0;
  padding: 0;
  border-top: 1px solid var(--line);
}

.fact-list li {
  display: grid;
  gap: 0.15rem;
  padding: 0.85rem 0;
  border-bottom: 1px solid var(--line);
}

.fact-list span {
  color: var(--faint);
  font-size: 0.82rem;
  letter-spacing: 0.08em;
  text-transform: uppercase;
}

.fact-list strong {
  color: var(--ink);
  font-weight: 600;
}

.faq-list {
  display: grid;
  gap: 0.7rem;
  margin-top: 1.2rem;
}

.faq {
  background: var(--surface);
  border: 1px solid var(--line);
  border-radius: var(--radius-md);
  padding: 0.2rem 1rem 0.15rem;
}

.faq summary {
  cursor: pointer;
  list-style: none;
  min-height: 48px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1rem;
  font-weight: 620;
  color: var(--ink);
}

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

.faq summary::after {
  content: "";
  flex: 0 0 auto;
  width: 0.45rem;
  height: 0.45rem;
  border-right: 1.5px solid currentColor;
  border-bottom: 1.5px solid currentColor;
  transform: rotate(45deg) translateY(-2px);
}

.faq[open] summary::after {
  transform: rotate(225deg) translateY(-1px);
}

.faq p {
  margin: 0 0 1rem;
  color: var(--muted);
}

.help-group {
  margin-top: 3.25rem;
}

.doc .help-group h2 {
  margin: 0;
  font-size: clamp(1.75rem, 1.35rem + 1vw, 2.2rem);
  color: var(--primary-dark);
}

html[data-theme="dark"] .doc .help-group h2 {
  color: var(--ink);
}

.help .faq-list {
  gap: 0;
  margin-top: 0.35rem;
  border-top: 1px solid var(--line);
}

.help .faq {
  background: transparent;
  border: 0;
  border-radius: 0;
  border-bottom: 1px solid var(--line);
  padding: 0;
}

.help .faq summary {
  align-items: flex-start;
  padding: 1.05rem 0.15rem 1.05rem 0;
}

.help .faq summary h3 {
  margin: 0;
  font-family: var(--font-body);
  font-size: 1.05rem;
  font-weight: 620;
  letter-spacing: 0;
  line-height: 1.4;
}

.help .faq p {
  max-width: 62ch;
  margin: 0 0 1.15rem;
  line-height: 1.6;
}

.help .faq p + p {
  margin-top: -0.35rem;
}

.help-links {
  display: flex;
  flex-wrap: wrap;
  gap: 0.8rem 1.6rem;
  margin-top: 3.25rem;
}

.help-links a {
  color: var(--ink);
  font-weight: 600;
  text-decoration: none;
}

.help-links a:hover {
  text-decoration: underline;
}

.missing {
  margin-top: 1rem;
}

.site-footer {
  border-top: 1px solid var(--line);
  padding: 2.2rem 0 2.8rem;
}

.footer-grid {
  display: grid;
  gap: 1.5rem;
}

.footer-name {
  font-family: var(--font-display);
  font-size: 1.5rem;
}

.footer-grid p {
  color: var(--muted);
  max-width: 36rem;
}

.footer-nav {
  display: flex;
  flex-wrap: wrap;
  gap: 0.7rem 1.2rem;
}

.footer-nav a {
  color: var(--ink);
  text-decoration: none;
  font-weight: 600;
}

.footer-nav a:hover {
  text-decoration: underline;
}

.lost {
  min-height: 58vh;
  display: grid;
  align-content: center;
  gap: 1rem;
  padding-bottom: var(--space-3xl);
}

.lost h1 {
  font-size: clamp(2.6rem, 1.4rem + 4vw, 4.5rem);
  max-width: 10ch;
  color: var(--primary-dark);
}

html[data-theme="dark"] .lost h1 {
  color: var(--ink);
}

.lost p {
  max-width: 36rem;
  color: var(--muted);
}

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

  .device {
    width: 220px;
  }

  .hero .device {
    width: 260px;
  }

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

  .footer-nav {
    justify-content: flex-end;
  }
}

@media (min-width: 880px) {
  .nav-toggle {
    display: none;
  }

  .header-tools {
    margin-left: 0.25rem;
  }

  .primary-nav,
  .primary-nav.is-open {
    display: flex;
    position: static;
    inset: auto;
    z-index: auto;
    flex-direction: row;
    align-items: center;
    justify-content: flex-end;
    gap: 1.35rem;
    margin-left: auto;
    padding: 0;
    background: transparent;
  }

  .primary-nav a {
    font-family: var(--font-body);
    font-size: 0.98rem;
    font-weight: 560;
    letter-spacing: 0;
    padding: 0.4rem 0;
  }

  .primary-nav a[aria-current="page"] {
    box-shadow: inset 0 -1px 0 var(--primary);
  }

  .hero {
    padding-top: 1.75rem;
    padding-bottom: 4rem;
  }

  .hero .device {
    width: 280px;
  }

  .showcase {
    grid-template-columns: 1fr 1fr;
    gap: 2rem 3rem;
    max-width: 760px;
    margin-inline: auto;
    padding-top: 3.25rem;
    padding-bottom: 4.25rem;
  }

  .showcase .device {
    width: 230px;
  }
}

@media (prefers-reduced-motion: no-preference) {
  .hero .kicker,
  .hero h1,
  .hero .lede,
  .store-link,
  .hero-stage {
    animation: rise 0.9s cubic-bezier(0.22, 1, 0.36, 1) both;
  }

  .hero h1 {
    animation-delay: 0.08s;
  }

  .hero .lede {
    animation-delay: 0.16s;
  }

  .store-link {
    animation-delay: 0.24s;
  }

  .hero-stage {
    animation-delay: 0.32s;
  }

  .hero .device {
    animation: float 8s ease-in-out 1.1s infinite;
  }

  .hero::before {
    animation: glow 11s ease-in-out infinite;
  }

  .showcase-item.reveal {
    opacity: 0;
    transform: translateY(22px);
  }

  .showcase-item.reveal.is-in {
    opacity: 1;
    transform: none;
    transition: opacity 0.8s cubic-bezier(0.22, 1, 0.36, 1), transform 0.8s cubic-bezier(0.22, 1, 0.36, 1);
  }
}

@keyframes rise {
  from {
    opacity: 0;
    transform: translateY(18px);
  }

  to {
    opacity: 1;
    transform: none;
  }
}

@keyframes float {
  0%,
  100% {
    transform: translateY(0);
  }

  50% {
    transform: translateY(-10px);
  }
}

@keyframes glow {
  0%,
  100% {
    opacity: 0.65;
    transform: translateX(-50%) scale(0.96);
  }

  50% {
    opacity: 1;
    transform: translateX(-50%) scale(1.06);
  }
}

@media (hover: hover) and (prefers-reduced-motion: no-preference) {
  .showcase .device {
    transition: transform 0.45s cubic-bezier(0.22, 1, 0.36, 1), box-shadow 0.45s ease;
  }

  .showcase-item:hover .device {
    transform: translateY(-10px);
    box-shadow:
      0 32px 58px rgb(26 58 48 / 0.2),
      inset 0 0 0 1px rgb(255 255 255 / 0.18);
  }
}

@media (prefers-reduced-transparency: reduce) {
  .site-header::before {
    backdrop-filter: none;
    background: var(--bg);
  }
}

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

  *,
  *::before,
  *::after {
    animation: none !important;
    transition: none !important;
  }
}

@media print {
  .site-header,
  .site-footer,
  .skip-link,
  .nav-toggle {
    display: none !important;
  }

  body {
    background: #fff;
    color: #111;
  }

  .doc p,
  .doc li,
  a {
    color: #111;
  }
}
