/* RoamXP — shared site styles (system fonts only, no external assets) */

:root {
  --bg-deep: #07060f;
  --bg: #0c0a16;
  --bg-elevated: #141225;
  --bg-soft: #1a1730;
  --border: rgba(255, 255, 255, 0.08);
  --border-strong: rgba(255, 255, 255, 0.14);
  --text: #f3eef8;
  --text-muted: #b7adc4;
  --text-subtle: #7d738f;
  --accent: #e0b35a;
  --accent-soft: rgba(224, 179, 90, 0.14);
  --neon-pink: #ff4d9a;
  --neon-cyan: #3de0ff;
  --neon-violet: #9b6bff;
  --glow-pink: rgba(255, 77, 154, 0.28);
  --glow-cyan: rgba(61, 224, 255, 0.22);
  --glow-gold: rgba(224, 179, 90, 0.28);
  --glow-violet: rgba(155, 107, 255, 0.22);
  --focus: #f0c97a;
  --radius: 16px;
  --radius-sm: 10px;
  --space-xs: 0.5rem;
  --space-sm: 0.75rem;
  --space-md: 1.25rem;
  --space-lg: 2rem;
  --space-xl: 3rem;
  --space-2xl: 4.5rem;
  --max: 42rem;
  --max-wide: 68rem;
  --header-h: 3.85rem;
  --font: -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, "Helvetica Neue",
    Arial, "Noto Sans", sans-serif, "Apple Color Emoji", "Segoe UI Emoji";
  --font-display: Georgia, "Times New Roman", Times, serif;
  --shadow: 0 1px 0 rgba(255, 255, 255, 0.05) inset,
    0 24px 60px rgba(0, 0, 0, 0.45);
  --ease: 0.22s ease;
}

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

html {
  color-scheme: dark;
  scroll-behavior: smooth;
}

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

  *,
  *::before,
  *::after {
    animation-duration: 0.01ms !important;
    animation-iteration-count: 1 !important;
    transition-duration: 0.01ms !important;
  }
}

body {
  margin: 0;
  min-height: 100vh;
  display: flex;
  flex-direction: column;
  font-family: var(--font);
  font-size: 1rem;
  line-height: 1.6;
  color: var(--text);
  background-color: var(--bg-deep);
  /* Calm default for legal/support pages */
  background-image:
    radial-gradient(ellipse 80% 50% at 50% -25%, rgba(155, 107, 255, 0.06), transparent 55%),
    linear-gradient(180deg, #0d0b14 0%, var(--bg-deep) 100%);
  background-attachment: fixed;
}

/* Home: Miami dusk / tropical noir atmosphere */
body.home {
  background-image:
    radial-gradient(ellipse 120% 75% at 50% -18%, rgba(255, 132, 72, 0.22), transparent 50%),
    radial-gradient(ellipse 75% 55% at 8% 18%, rgba(255, 70, 140, 0.14), transparent 52%),
    radial-gradient(ellipse 60% 45% at 92% 28%, rgba(61, 224, 255, 0.07), transparent 50%),
    radial-gradient(ellipse 90% 50% at 50% 100%, rgba(120, 70, 200, 0.14), transparent 55%),
    linear-gradient(180deg, #160b1f 0%, #0a0814 38%, #05040c 100%);
}

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

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

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

a:focus-visible,
button:focus-visible {
  outline: 2px solid var(--focus);
  outline-offset: 3px;
}

.skip-link {
  position: absolute;
  left: var(--space-md);
  top: -100%;
  z-index: 100;
  padding: var(--space-sm) var(--space-md);
  background: var(--bg-elevated);
  color: var(--text);
  border: 1px solid var(--border-strong);
  border-radius: var(--radius-sm);
  text-decoration: none;
}

.skip-link:focus {
  top: var(--space-md);
}

.site-header {
  position: sticky;
  top: 0;
  z-index: 50;
  border-bottom: 1px solid rgba(255, 255, 255, 0.07);
  background: rgba(7, 6, 15, 0.72);
  backdrop-filter: blur(16px) saturate(1.2);
  -webkit-backdrop-filter: blur(16px) saturate(1.2);
}

body.home .site-header {
  border-bottom-color: rgba(255, 77, 154, 0.12);
  box-shadow: 0 1px 0 rgba(61, 224, 255, 0.05);
}

.site-header__inner,
.site-footer__inner,
.section__inner,
.notice-page__inner {
  width: min(100% - 2rem, var(--max-wide));
  margin-inline: auto;
}

.site-header__inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: var(--space-md);
  min-height: var(--header-h);
}

.brand {
  display: inline-flex;
  align-items: baseline;
  gap: 0.12em;
  font-family: var(--font);
  font-size: 1.2rem;
  font-weight: 700;
  letter-spacing: 0.01em;
  color: var(--text);
  text-decoration: none;
  line-height: 1;
}

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

.brand__mark {
  color: var(--accent);
}

body.home .brand__mark {
  text-shadow: 0 0 20px rgba(224, 179, 90, 0.45);
}

.nav {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: flex-end;
  gap: 0.35rem 1.15rem;
}

.nav a {
  color: var(--text-muted);
  text-decoration: none;
  font-size: 0.9375rem;
  transition: color var(--ease);
}

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

.nav a[aria-current="page"] {
  text-decoration: underline;
  text-underline-offset: 0.22em;
  text-decoration-color: rgba(224, 179, 90, 0.55);
}

main {
  display: block;
  flex: 1;
}

/* —— Hero (home) —— */
.hero {
  position: relative;
  isolation: isolate;
  overflow: hidden;
  padding: clamp(1rem, 2.8vw, 1.75rem) 0 0;
  min-height: auto;
  display: flex;
  align-items: flex-start;
}


.hero__sky,
.hero__glow,
.hero__horizon,
.hero__grain {
  position: absolute;
  inset: 0;
  pointer-events: none;
  z-index: -1;
}

.hero__sky {
  background:
    linear-gradient(
      185deg,
      #1a0e28 0%,
      #2a1235 28%,
      #4a1d3a 48%,
      #7a3a2e 62%,
      #c46a3a 74%,
      #e89a5a 82%,
      transparent 92%
    );
  opacity: 0.34;
  mask-image: linear-gradient(180deg, #000 0%, #000 55%, transparent 92%);
}

.hero__glow {
  background:
    radial-gradient(ellipse 70% 50% at 50% 78%, rgba(255, 120, 70, 0.16), transparent 62%),
    radial-gradient(ellipse 48% 42% at 12% 62%, rgba(255, 70, 140, 0.14), transparent 68%),
    radial-gradient(ellipse 42% 38% at 88% 48%, rgba(61, 224, 255, 0.08), transparent 65%),
    radial-gradient(ellipse 55% 40% at 60% 20%, rgba(140, 80, 220, 0.12), transparent 70%);
  animation: ambience 16s ease-in-out infinite alternate;
}

.hero__horizon {
  background:
    linear-gradient(
      180deg,
      transparent 0%,
      transparent 52%,
      rgba(255, 140, 80, 0.08) 64%,
      rgba(255, 80, 140, 0.08) 72%,
      rgba(18, 10, 32, 0.55) 84%,
      rgba(5, 4, 12, 0.95) 100%
    );
}

.hero__grain {
  opacity: 0.05;
  mix-blend-mode: soft-light;
  background-image: url("data:image/svg+xml,%3Csvg viewBox='0 0 200 200' xmlns='http://www.w3.org/2000/svg'%3E%3Cfilter id='n'%3E%3CfeTurbulence type='fractalNoise' baseFrequency='0.85' numOctaves='4' stitchTiles='stitch'/%3E%3C/filter%3E%3Crect width='100%25' height='100%25' filter='url(%23n)' opacity='0.55'/%3E%3C/svg%3E");
  background-size: 180px 180px;
}

@keyframes ambience {
  from {
    transform: scale(1) translate3d(0, 0, 0);
    opacity: 0.88;
  }
  to {
    transform: scale(1.04) translate3d(0, -1%, 0);
    opacity: 1;
  }
}

.hero__stage {
  position: relative;
  z-index: 1;
  width: min(100% - 2rem, var(--max-wide));
  margin-inline: auto;
  display: grid;
  gap: clamp(1.25rem, 3vw, 2.25rem);
  align-items: start;
  padding-bottom: clamp(1.5rem, 4vw, 2.5rem);
}

.hero__visuals {
  order: 2;
  position: relative;
  min-width: 0;
  display: flex;
  justify-content: center;
}

.hero__visuals::after {
  content: "";
  position: absolute;
  left: -8%;
  right: -8%;
  bottom: 0;
  height: 38%;
  z-index: 5;
  pointer-events: none;
  background: linear-gradient(
    180deg,
    transparent 0%,
    rgba(7, 6, 15, 0.45) 40%,
    var(--bg-deep) 100%
  );
}

.hero__stack {
  position: relative;
  width: min(100%, 20.5rem);
  height: 28rem;
  overflow: hidden;
  -webkit-mask-image: linear-gradient(
    180deg,
    #000 0%,
    #000 58%,
    rgba(0, 0, 0, 0.55) 78%,
    transparent 100%
  );
  mask-image: linear-gradient(
    180deg,
    #000 0%,
    #000 58%,
    rgba(0, 0, 0, 0.55) 78%,
    transparent 100%
  );
  -webkit-mask-size: 100% 100%;
  mask-size: 100% 100%;
  -webkit-mask-repeat: no-repeat;
  mask-repeat: no-repeat;
}

/* —— Reusable smartphone mockup —— */
.phone {
  position: absolute;
  aspect-ratio: 470 / 1024;
  max-width: none;
}

.phone__chrome {
  position: relative;
  width: 100%;
  height: 100%;
  border-radius: 1.85rem;
  background:
    linear-gradient(
      145deg,
      #c4c4cc 0%,
      #6e6e78 10%,
      #2a2a30 32%,
      #0e0e12 62%,
      #1c1c22 88%,
      #5a5a64 100%
    );
  box-shadow:
    0 24px 48px rgba(0, 0, 0, 0.55),
    0 0 0 1px rgba(255, 255, 255, 0.22),
    0 0 40px rgba(224, 179, 90, 0.07),
    inset 0 1px 0 rgba(255, 255, 255, 0.38),
    inset 0 -1px 0 rgba(0, 0, 0, 0.65);
}

.phone__chrome::before {
  content: "";
  position: absolute;
  inset: 0.22rem;
  z-index: 1;
  border-radius: 1.65rem;
  background: #050508;
  pointer-events: none;
}

.phone__viewport {
  position: absolute;
  inset: 0.38rem;
  z-index: 2;
  overflow: hidden;
  border-radius: 1.5rem;
  background: #050508;
}

.phone__img {
  display: block;
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: top center;
  border: 0;
}

.phone__island {
  position: absolute;
  top: 0.62rem;
  left: 50%;
  z-index: 4;
  width: 32%;
  max-width: 3.6rem;
  height: 0.78rem;
  border-radius: 999px;
  transform: translateX(-50%);
  background: #000;
  box-shadow:
    0 0 0 1px rgba(255, 255, 255, 0.12),
    0 2px 4px rgba(0, 0, 0, 0.5);
  pointer-events: none;
}

.phone--back {
  top: 0.15rem;
  left: 0;
  width: 10rem;
  z-index: 1;
  transform: rotate(-6.5deg);
  opacity: 0.92;
  filter: brightness(0.92) saturate(0.97);
}

.phone--front {
  top: 0.85rem;
  right: 0;
  left: auto;
  width: 12.15rem;
  z-index: 2;
  transform: rotate(3deg);
}

.hero__inner {
  order: 1;
  position: relative;
  width: 100%;
  max-width: 34rem;
  margin-inline: auto;
  padding-top: 0.15rem;
  padding-bottom: 0;
  animation: rise-in 0.95s cubic-bezier(0.22, 1, 0.36, 1) both;
}

@keyframes rise-in {
  from {
    opacity: 0;
    transform: translateY(1.5rem);
  }
  to {
    opacity: 1;
    transform: translateY(0);
  }
}

.hero__brand {
  margin: 0 0 1.1rem;
  font-size: clamp(2.35rem, 7vw, 3.5rem);
  font-weight: 760;
  letter-spacing: -0.035em;
  line-height: 0.98;
  color: #fff8f0;
  text-shadow:
    0 2px 24px rgba(0, 0, 0, 0.45),
    0 0 48px rgba(224, 179, 90, 0.18);
}

.hero__brand .brand__mark {
  position: relative;
  font-weight: 760;
  color: #f0c97a;
  background: none;
  -webkit-background-clip: unset;
  background-clip: unset;
  filter: none;
  text-shadow:
    0 0 12px rgba(224, 179, 90, 0.55),
    0 0 28px rgba(224, 179, 90, 0.28);
}

.hero h1 {
  margin: 0 0 1rem;
  font-family: var(--font-display);
  font-size: clamp(2rem, 5.8vw, 3.2rem);
  font-weight: 500;
  letter-spacing: -0.028em;
  line-height: 1.1;
  color: #faf6ff;
  max-width: 13ch;
  text-wrap: balance;
  text-shadow: 0 2px 28px rgba(0, 0, 0, 0.35);
}

.hero__lead {
  margin: 0 0 1.6rem;
  max-width: 32rem;
  font-size: clamp(1.05rem, 2.1vw, 1.18rem);
  line-height: 1.65;
  color: rgba(232, 220, 240, 0.82);
}

.hero__actions {
  display: flex;
  flex-wrap: wrap;
  gap: 0.8rem 1rem;
}

@media (min-width: 900px) {
  .hero {
    min-height: 0;
  }

  .hero__stage {
    grid-template-columns: minmax(17rem, 0.9fr) minmax(22rem, 1.1fr);
    gap: clamp(1.5rem, 3vw, 2.5rem);
    align-items: start;
    padding-bottom: 0.5rem;
  }

  .hero__visuals {
    order: 0;
    justify-content: flex-start;
    margin-top: 0;
  }

  .hero__inner {
    order: 0;
    margin-inline: 0;
    max-width: 34rem;
    padding-top: 0.35rem;
  }

  .hero__stack {
    width: 24rem;
    height: 32.5rem;
  }

  .phone--back {
    width: 11.6rem;
    top: 0.1rem;
    left: 0;
  }

  .phone--front {
    width: 13.9rem;
    top: 0.75rem;
    right: 0;
  }

  .phone__chrome {
    border-radius: 2.05rem;
  }

  .phone__chrome::before {
    inset: 0.26rem;
    border-radius: 1.82rem;
  }

  .phone__viewport {
    inset: 0.42rem;
    border-radius: 1.68rem;
  }

  .phone__island {
    top: 0.7rem;
    height: 0.86rem;
    max-width: 3.9rem;
  }
}

@media (min-width: 1100px) {
  .hero__stack {
    width: 26rem;
    height: 35rem;
  }

  .phone--back {
    width: 12.6rem;
  }

  .phone--front {
    width: 15.1rem;
  }
}

/* —— Buttons —— */
.button {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  padding: 0.8rem 1.35rem;
  border-radius: var(--radius-sm);
  border: 1px solid var(--border-strong);
  background: var(--bg-soft);
  color: var(--text);
  font: inherit;
  font-size: 0.975rem;
  font-weight: 600;
  letter-spacing: 0.01em;
  text-decoration: none;
  transition:
    background var(--ease),
    border-color var(--ease),
    box-shadow var(--ease),
    transform var(--ease),
    color var(--ease);
}

.button:hover {
  color: var(--text);
  transform: translateY(-1px);
}

.button--primary {
  border-color: rgba(240, 201, 122, 0.5);
  background: linear-gradient(
    135deg,
    #f0c97a 0%,
    #e8a05c 55%,
    #e07a88 100%
  );
  color: #1a1020;
  box-shadow:
    0 0 0 1px rgba(255, 255, 255, 0.1) inset,
    0 12px 32px rgba(224, 140, 70, 0.32),
    0 0 36px rgba(255, 100, 120, 0.14);
}

.button--primary:hover {
  color: #120a18;
  border-color: rgba(255, 230, 180, 0.7);
  box-shadow:
    0 0 0 1px rgba(255, 255, 255, 0.14) inset,
    0 16px 40px rgba(224, 140, 70, 0.4),
    0 0 44px rgba(255, 100, 120, 0.2);
}

.button--ghost {
  background: rgba(12, 10, 22, 0.45);
  border-color: rgba(255, 255, 255, 0.16);
  color: var(--text);
  box-shadow: 0 0 20px rgba(61, 224, 255, 0.05);
  backdrop-filter: blur(10px);
  -webkit-backdrop-filter: blur(10px);
}

.button--ghost:hover {
  border-color: rgba(61, 224, 255, 0.4);
  background: rgba(61, 224, 255, 0.07);
  box-shadow: 0 0 28px rgba(61, 224, 255, 0.12);
}

/* —— Features —— */
.section {
  padding: var(--space-xl) 0;
}

.section--features {
  position: relative;
  padding-top: clamp(1.75rem, 4.5vw, 3rem);
  padding-bottom: var(--space-2xl);
}

body.home .section--features::before {
  content: "";
  position: absolute;
  inset: 0 0 auto 0;
  height: 1px;
  background: linear-gradient(
    90deg,
    transparent,
    rgba(255, 120, 80, 0.25),
    rgba(224, 179, 90, 0.4),
    rgba(155, 107, 255, 0.22),
    transparent
  );
  opacity: 0.75;
}

.section__inner {
  width: min(100% - 2rem, var(--max-wide));
}

.section__header {
  width: min(100%, 42rem);
  margin-bottom: clamp(2rem, 4.5vw, 3rem);
}

.section__eyebrow {
  margin: 0 0 0.65rem;
  font-size: 0.8125rem;
  font-weight: 650;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: var(--accent);
}

body.home .section__eyebrow {
  color: #f0c97a;
  text-shadow: 0 0 18px rgba(224, 179, 90, 0.35);
}

.section h2 {
  margin: 0 0 0.85rem;
  font-family: var(--font-display);
  font-size: clamp(1.75rem, 4vw, 2.35rem);
  font-weight: 500;
  letter-spacing: -0.02em;
  line-height: 1.2;
  text-wrap: balance;
}

.section__intro {
  margin: 0;
  color: var(--text-muted);
  max-width: 36rem;
  font-size: 1.05rem;
}

.feature-list {
  list-style: none;
  margin: 0;
  padding: 0;
  display: grid;
  gap: 1rem;
}

@media (min-width: 640px) {
  .feature-list {
    grid-template-columns: repeat(2, 1fr);
    gap: 1.15rem;
  }
}

@media (min-width: 960px) {
  .feature-list {
    grid-template-columns: repeat(6, 1fr);
    gap: 1.25rem;
  }

  .feature-list .feature:nth-child(-n + 3) {
    grid-column: span 2;
  }

  .feature-list .feature:nth-child(n + 4) {
    grid-column: span 3;
  }
}

.feature {
  --feature-glow: var(--glow-gold);
  --feature-line: rgba(224, 179, 90, 0.55);
  position: relative;
  height: 100%;
  padding: 1.55rem 1.5rem 1.7rem;
  border-radius: var(--radius);
  border: 1px solid rgba(255, 255, 255, 0.11);
  background:
    linear-gradient(
      160deg,
      rgba(255, 255, 255, 0.08) 0%,
      rgba(255, 255, 255, 0.025) 38%,
      rgba(8, 6, 18, 0.62) 100%
    );
  box-shadow:
    0 1px 0 rgba(255, 255, 255, 0.06) inset,
    0 20px 50px rgba(0, 0, 0, 0.4);
  backdrop-filter: blur(16px) saturate(1.2);
  -webkit-backdrop-filter: blur(16px) saturate(1.2);
  overflow: hidden;
  transition:
    transform var(--ease),
    border-color var(--ease),
    box-shadow var(--ease);
}

.feature::before {
  content: "";
  position: absolute;
  inset: 0 auto 0 0;
  width: 2px;
  background: linear-gradient(
    180deg,
    transparent,
    var(--feature-line),
    transparent
  );
  opacity: 0.95;
}

.feature::after {
  content: "";
  position: absolute;
  top: -42%;
  right: -28%;
  width: 58%;
  height: 85%;
  background: radial-gradient(circle, var(--feature-glow), transparent 70%);
  opacity: 0.28;
  pointer-events: none;
  transition: opacity var(--ease);
}

.feature:hover {
  transform: translateY(-5px);
  border-color: rgba(255, 255, 255, 0.2);
  box-shadow:
    0 1px 0 rgba(255, 255, 255, 0.08) inset,
    0 24px 56px rgba(0, 0, 0, 0.48),
    0 0 36px var(--feature-glow);
}

.feature:hover::after {
  opacity: 0.48;
}

.feature--gold {
  --feature-glow: var(--glow-gold);
  --feature-line: rgba(224, 179, 90, 0.65);
}

.feature--pink {
  --feature-glow: var(--glow-pink);
  --feature-line: rgba(255, 77, 154, 0.7);
}

.feature--cyan {
  --feature-glow: var(--glow-cyan);
  --feature-line: rgba(61, 224, 255, 0.7);
}

.feature--violet {
  --feature-glow: var(--glow-violet);
  --feature-line: rgba(155, 107, 255, 0.7);
}

.feature__label {
  display: block;
  margin-bottom: 0.85rem;
  font-size: 0.75rem;
  font-weight: 650;
  letter-spacing: 0.14em;
  color: var(--text-subtle);
}

.feature h3 {
  position: relative;
  margin: 0 0 0.7rem;
  font-size: 1.22rem;
  font-weight: 720;
  letter-spacing: -0.02em;
  color: #fff8f2;
}

.feature p {
  position: relative;
  margin: 0;
  color: rgba(210, 198, 224, 0.88);
  font-size: 0.98rem;
  line-height: 1.62;
}

/* —— Footer —— */
.site-footer {
  margin-top: auto;
  padding: var(--space-xl) 0 var(--space-lg);
  border-top: 1px solid var(--border);
  background: rgba(0, 0, 0, 0.28);
}

body.home .site-footer {
  border-top-color: rgba(155, 107, 255, 0.14);
  background: linear-gradient(
    180deg,
    rgba(20, 10, 35, 0.2) 0%,
    rgba(0, 0, 0, 0.45) 100%
  );
}

.site-footer__inner {
  display: flex;
  flex-direction: column;
  gap: var(--space-md);
}

.footer-nav {
  display: flex;
  flex-wrap: wrap;
  gap: 0.5rem 1.25rem;
}

.footer-nav a {
  color: var(--text-muted);
  text-decoration: none;
  font-size: 0.9375rem;
  transition: color var(--ease);
}

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

.site-footer__meta {
  margin: 0;
  font-size: 0.875rem;
  color: var(--text-subtle);
}

/* Inner / legal pages — calm, readable */
.page {
  padding: clamp(2.5rem, 7vw, 4rem) 0 var(--space-2xl);
}

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

.page h1 {
  margin: 0 0 var(--space-md);
  font-family: var(--font-display);
  font-size: clamp(1.75rem, 4.5vw, 2.25rem);
  font-weight: 500;
  letter-spacing: -0.02em;
  line-height: 1.2;
}

.page__lead {
  margin: 0 0 var(--space-lg);
  color: var(--text-muted);
  font-size: 1.0625rem;
}

.placeholder-notice {
  margin: 0;
  padding: var(--space-md);
  border: 1px solid var(--border-strong);
  border-left: 3px solid var(--accent);
  border-radius: var(--radius-sm);
  background: var(--accent-soft);
  color: var(--text);
  font-size: 1rem;
  font-weight: 550;
}

/* Long-form policy / legal prose */
.policy-meta {
  margin: 0 0 var(--space-lg);
  font-size: 0.9375rem;
  color: var(--text-muted);
}

.policy-meta p {
  margin: 0 0 0.35rem;
}

.policy-meta p:last-child {
  margin-bottom: 0;
}

.policy {
  color: var(--text-muted);
}

.policy > * + * {
  margin-top: var(--space-md);
}

.policy h2 {
  margin: var(--space-xl) 0 var(--space-sm);
  font-family: var(--font);
  font-size: 1.125rem;
  font-weight: 650;
  letter-spacing: -0.01em;
  line-height: 1.35;
  color: var(--text);
}

.policy h2:first-child {
  margin-top: var(--space-lg);
}

.policy p,
.policy li {
  font-size: 1rem;
  line-height: 1.65;
}

.policy p {
  margin: 0;
}

.policy ul {
  margin: 0;
  padding-left: 1.25rem;
}

.policy li + li {
  margin-top: 0.4rem;
}

.policy strong {
  color: var(--text);
  font-weight: 600;
}

.policy a {
  color: #f0c97a;
}

.policy code {
  font-family: ui-monospace, SFMono-Regular, Menlo, Consolas, monospace;
  font-size: 0.9em;
  color: #e8dff5;
  background: rgba(255, 255, 255, 0.05);
  padding: 0.1em 0.35em;
  border-radius: 4px;
}

/* 404 */
.error-page {
  padding: clamp(3rem, 10vw, 5rem) 0 var(--space-2xl);
  text-align: left;
}

.error-page__code {
  margin: 0 0 var(--space-sm);
  font-size: 0.875rem;
  font-weight: 650;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: var(--accent);
}

.error-page h1 {
  margin: 0 0 var(--space-md);
  font-family: var(--font-display);
  font-size: clamp(1.75rem, 5vw, 2.5rem);
  font-weight: 500;
}

.error-page p {
  margin: 0 0 var(--space-lg);
  color: var(--text-muted);
  max-width: 28rem;
}

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

@media (max-width: 639px) {
  .hero {
    min-height: auto;
    align-items: flex-start;
    padding-top: clamp(1.25rem, 5vw, 2rem);
    padding-bottom: 0;
  }

  .hero__stage {
    padding-bottom: 0;
    gap: clamp(1rem, 4vw, 1.5rem);
  }

  .hero h1 {
    max-width: none;
  }

  .hero__stack {
    width: min(100%, 13.5rem);
    height: auto;
    aspect-ratio: 470 / 1024;
  }

  .phone--back {
    display: none;
  }

  .phone--front {
    inset: 0;
    width: 100%;
    height: 100%;
    transform: none;
  }

  .phone__chrome {
    border-radius: 1.65rem;
  }

  .phone__chrome::before {
    inset: 0.2rem;
    border-radius: 1.48rem;
  }

  .phone__viewport {
    inset: 0.34rem;
    border-radius: 1.36rem;
  }

  .phone__island {
    top: 0.55rem;
    height: 0.7rem;
    max-width: 3.1rem;
  }
}
