/* ============================================================
   Sunspeak — main stylesheet
   Warm, minimalist, adult-friendly. Brand orange + neutrals.

   Sections:
     1. Base / Typography
     2. Layout helpers
     3. Navbar + dropdowns + theme toggle
     4. Buttons
     5. Hero
     6. Features grid
     7. Showcase (screenshot + video)
     8. "Who it's for" + values
     9. CTA / store buttons
    10. About page
    11. Footer
    12. Legal pages
    13. Reduced motion
   ============================================================ */

/* ===== 1. Base / Typography ===== */

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

html {
  scroll-behavior: smooth;
  scroll-padding-top: 5rem;
}

body {
  margin: 0;
  background: var(--background);
  color: var(--text);
  font-family:
    'Inter',
    -apple-system,
    BlinkMacSystemFont,
    'Segoe UI',
    Roboto,
    Helvetica,
    Arial,
    sans-serif;
  line-height: 1.65;
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
  transition:
    background 0.3s ease,
    color 0.3s ease;
}

body.nav-open {
  overflow: hidden;
}

p {
  margin: 0 0 1rem;
}

a {
  color: var(--link);
  text-decoration: none;
  transition:
    color 0.2s ease,
    opacity 0.2s ease;
}

a:hover {
  opacity: 0.85;
}

h1,
h2,
h3,
h4,
h5 {
  font-family: 'Comfortaa', 'Inter', sans-serif;
  font-weight: 600;
  letter-spacing: -0.01em;
  line-height: 1.15;
  margin: 0;
}

h1 {
  font-size: clamp(2.25rem, 5vw, 3.5rem);
}

h2 {
  font-size: clamp(1.75rem, 3vw, 2.5rem);
}

h3 {
  font-size: 1.35rem;
  letter-spacing: 0.01em;
}

h4 {
  font-size: 1.1rem;
}

::selection {
  background: color-mix(in srgb, var(--primary) 35%, transparent);
  color: var(--text);
}

/* ===== 2. Layout helpers ===== */

.container {
  width: 100%;
  max-width: 1180px;
  margin: 0 auto;
  padding: 0 1.5rem;
}

.container-narrow {
  max-width: 880px;
}

.section {
  padding: 5rem 0 4rem;
}

@media (min-width: 768px) {
  .section {
    padding: 6.5rem 0 5rem;
  }
}

.section-head {
  text-align: center;
  margin-bottom: 3rem;
}

.section-head--left {
  text-align: left;
  margin-bottom: 2.5rem;
}

.section-eyebrow {
  display: inline-block;
  font-size: 0.75rem;
  letter-spacing: 0.22em;
  text-transform: uppercase;
  color: var(--primary-strong);
  margin-bottom: 0.75rem;
  font-weight: 600;
}

.dark .section-eyebrow {
  color: var(--accent);
}

.lead {
  font-size: clamp(1.05rem, 1.4vw, 1.2rem);
  color: var(--text-soft);
  max-width: 56ch;
  margin: 1rem auto 0;
}

.section-head--left .lead {
  margin: 1rem 0 0;
}

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

/* ===== 3. Navbar + dropdowns + theme toggle ===== */

.navbar {
  position: sticky;
  top: 0;
  z-index: 100;
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 0.75rem 1.5rem;
  background: color-mix(in srgb, var(--background) 80%, transparent);
  backdrop-filter: saturate(160%) blur(14px);
  -webkit-backdrop-filter: saturate(160%) blur(14px);
  border-bottom: 1px solid var(--border);
  transition:
    background 0.3s ease,
    border-color 0.3s ease;
}

.navbar-brand {
  display: inline-flex;
  align-items: center;
  gap: 0.7rem;
  font-family: 'Comfortaa', sans-serif;
  font-size: 1.2rem;
  font-weight: 600;
  letter-spacing: -0.01em;
  color: var(--text);
}

.navbar-brand:hover {
  opacity: 1;
}

.brand-mark {
  width: 2rem;
  height: 2rem;
  color: var(--logo-color);
  flex-shrink: 0;
  display: inline-block;
}

.brand-mark svg {
  width: 100%;
  height: 100%;
  display: block;
}

.navbar-links {
  display: none;
  gap: 0.5rem;
  align-items: center;
}

.navbar-links a {
  color: var(--text-soft);
  font-size: 0.95rem;
  font-weight: 500;
  padding: 0.5rem 0.85rem;
  border-radius: 0.6rem;
  transition:
    background 0.2s ease,
    color 0.2s ease;
}

.navbar-links a:hover,
.navbar-links a.is-active {
  background: var(--nav-item-hover);
  color: var(--text);
  opacity: 1;
}

.navbar-actions {
  display: flex;
  align-items: center;
  gap: 0.5rem;
}

@media (min-width: 880px) {
  .navbar-links {
    display: flex;
  }
}

/* Mobile drawer */
.nav-toggle {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 2.4rem;
  height: 2.4rem;
  border-radius: 0.6rem;
  border: 1px solid var(--border);
  background: var(--surface);
  color: var(--text);
  cursor: pointer;
  padding: 0;
}

.nav-toggle svg {
  width: 1.2rem;
  height: 1.2rem;
}

.nav-toggle .icon-close {
  display: none;
}
.nav-toggle[aria-expanded='true'] .icon-open {
  display: none;
}
.nav-toggle[aria-expanded='true'] .icon-close {
  display: inline-block;
}

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

.nav-drawer {
  position: fixed;
  top: 4rem;
  left: 0;
  right: 0;
  bottom: 0;
  background: var(--background);
  padding: 1.5rem;
  display: flex;
  flex-direction: column;
  gap: 0.5rem;
  transform: translateY(-100%);
  opacity: 0;
  pointer-events: none;
  transition:
    transform 0.25s ease,
    opacity 0.25s ease;
  z-index: 99;
}

.nav-drawer.is-open {
  transform: translateY(0);
  opacity: 1;
  pointer-events: auto;
}

.nav-drawer a {
  padding: 0.85rem 0.75rem;
  border-radius: 0.6rem;
  color: var(--text);
  font-size: 1.05rem;
  font-weight: 500;
}

.nav-drawer a:hover,
.nav-drawer a.is-active {
  background: var(--nav-item-hover);
}

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

/* Language dropdown */
.lang {
  position: relative;
}

.lang-trigger {
  display: inline-flex;
  align-items: center;
  gap: 0.35rem;
  height: 2.4rem;
  padding: 0 0.75rem;
  border-radius: 0.6rem;
  border: 1px solid var(--border);
  background: var(--surface);
  color: var(--text);
  font-family: inherit;
  font-size: 0.85rem;
  font-weight: 600;
  letter-spacing: 0.04em;
  cursor: pointer;
  transition:
    background 0.2s ease,
    border-color 0.2s ease;
}

.lang-trigger:hover {
  border-color: var(--border-strong);
}

.lang-trigger svg {
  width: 0.9rem;
  height: 0.9rem;
  opacity: 0.65;
}

.lang-menu {
  position: absolute;
  top: calc(100% + 0.4rem);
  right: 0;
  min-width: 9rem;
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: 0.75rem;
  box-shadow: var(--shadow-md);
  padding: 0.4rem;
  display: none;
  z-index: 200;
}

.lang-menu.is-open {
  display: block;
}

.lang-menu button {
  display: flex;
  width: 100%;
  align-items: center;
  justify-content: space-between;
  padding: 0.55rem 0.75rem;
  border-radius: 0.5rem;
  border: 0;
  background: transparent;
  color: var(--text);
  font-family: inherit;
  font-size: 0.92rem;
  text-align: left;
  cursor: pointer;
  transition: background 0.15s ease;
}

.lang-menu button:hover {
  background: var(--surface-2);
}

.lang-menu button.is-active {
  background: color-mix(in srgb, var(--primary) 12%, transparent);
  color: var(--primary-strong);
  font-weight: 600;
}

.dark .lang-menu button.is-active {
  color: var(--accent);
}

.lang-menu button .check {
  width: 0.85rem;
  height: 0.85rem;
  opacity: 0;
}

.lang-menu button.is-active .check {
  opacity: 1;
}

/* Theme toggle (sun/moon) */
.theme-toggle {
  width: 2.4rem;
  height: 2.4rem;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  border-radius: 0.6rem;
  border: 1px solid var(--border);
  background: var(--surface);
  color: var(--text);
  cursor: pointer;
  transition:
    background 0.2s ease,
    border-color 0.2s ease;
}

.theme-toggle:hover {
  border-color: var(--border-strong);
}

.theme-toggle svg {
  width: 1.05rem;
  height: 1.05rem;
}

.theme-toggle .icon-moon {
  display: none;
}
:root:not(.dark) .theme-toggle .icon-sun {
  display: inline-block;
}
.dark .theme-toggle .icon-sun {
  display: none;
}
.dark .theme-toggle .icon-moon {
  display: inline-block;
}

/* ===== 4. Buttons ===== */

.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 0.5rem;
  padding: 0.85rem 1.4rem;
  border-radius: 0.85rem;
  font-family: inherit;
  font-size: 0.95rem;
  font-weight: 600;
  border: 1px solid transparent;
  cursor: pointer;
  text-decoration: none;
  transition:
    transform 0.15s ease,
    box-shadow 0.2s ease,
    background 0.2s ease,
    border-color 0.2s ease,
    opacity 0.2s ease;
  white-space: nowrap;
}

.btn:hover {
  opacity: 1;
  transform: translateY(-1px);
}

.btn-primary {
  background: var(--primary);
  color: #fff;
  box-shadow: 0 6px 20px color-mix(in srgb, var(--primary) 30%, transparent);
}

.dark .btn-primary {
  color: #142428;
}

.btn-primary:hover {
  box-shadow: 0 10px 28px color-mix(in srgb, var(--primary) 40%, transparent);
}

.hero .btn-primary {
  background: var(--brand);
  color: #fff;
  box-shadow: 0 6px 20px color-mix(in srgb, var(--brand) 32%, transparent);
}

.dark .hero .btn-primary {
  color: #1a1410;
}

.hero .btn-primary:hover {
  box-shadow: 0 10px 28px color-mix(in srgb, var(--brand) 42%, transparent);
}

.btn-ghost {
  background: var(--surface);
  color: var(--text);
  border-color: var(--border-strong);
}

.btn-ghost:hover {
  background: var(--surface-2);
}

.btn svg {
  width: 1rem;
  height: 1rem;
}

/* App-store badges keep their classic dark look in both themes */
.store-buttons {
  display: flex;
  flex-wrap: wrap;
  gap: 0.75rem;
}

.store-btn {
  display: inline-flex;
  align-items: center;
  gap: 0.6rem;
  padding: 0.6rem 1rem;
  border-radius: 0.85rem;
  background: #18130f;
  color: #faf4ea;
  font-size: 0.78rem;
  font-weight: 500;
  text-decoration: none;
  border: 1px solid #2a2218;
  transition:
    transform 0.15s ease,
    box-shadow 0.2s ease,
    background 0.2s ease;
  position: relative;
}

.store-btn:hover {
  opacity: 1;
  transform: translateY(-1px);
  background: #221b15;
  box-shadow: 0 10px 24px rgba(0, 0, 0, 0.25);
}

.store-btn svg {
  width: 1.5rem;
  height: 1.5rem;
  flex-shrink: 0;
  fill: currentColor;
}

.store-btn-text {
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  text-align: left;
  line-height: 1.1;
}

.store-btn-text small {
  font-size: 0.62rem;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  opacity: 0.75;
}

.store-btn-text strong {
  font-size: 0.92rem;
  font-weight: 600;
}

.store-btn[aria-disabled='true'] {
  opacity: 0.65;
  pointer-events: none;
}

.store-btn[aria-disabled='true']::after {
  content: attr(data-pill);
  position: absolute;
  top: -0.5rem;
  right: -0.4rem;
  font-size: 0.55rem;
  letter-spacing: 0.18em;
  text-transform: uppercase;
  padding: 0.15rem 0.45rem;
  border-radius: 999px;
  background: var(--primary);
  color: #fff;
  font-weight: 700;
}

.dark .store-btn[aria-disabled='true']::after {
  color: #1a1410;
}

/* ===== 5. Hero ===== */

.hero {
  position: relative;
  overflow: hidden;
  padding: 5rem 0 4rem;
  isolation: isolate;
}

@media (min-width: 768px) {
  .hero {
    padding: 7rem 0 6rem;
  }
}

.hero::before {
  content: '';
  position: absolute;
  inset: 0;
  background: var(--gradient-hero);
  opacity: 0.45;
  z-index: -1;
}

.dark .hero::before {
  opacity: 0.4;
}

.hero-grid {
  display: grid;
  grid-template-columns: 1fr;
  align-items: center;
  gap: 3rem;
}

@media (min-width: 960px) {
  .hero-grid {
    grid-template-columns: 1.05fr 0.95fr;
    gap: 4rem;
  }
}

.hero-content {
  display: flex;
  flex-direction: column;
  gap: 1.5rem;
  animation: rise 0.7s ease-out both;
}

.hero h1 {
  font-size: clamp(2.5rem, 6vw, 4.25rem);
  letter-spacing: -0.02em;
}

.hero h1 .accent {
  background: linear-gradient(
    135deg,
    var(--primary) 0%,
    var(--accent) 45%,
    var(--surface) 100%
  );
  -webkit-background-clip: text;
  background-clip: text;
  -webkit-text-fill-color: transparent;
}

.hero-subtitle {
  font-size: clamp(1.05rem, 1.4vw, 1.2rem);
  color: var(--text-soft);
  max-width: 50ch;
}

.hero-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 0.75rem;
  margin-top: 0.5rem;
}

.hero-visual {
  position: relative;
  display: flex;
  align-items: center;
  justify-content: center;
  animation: rise 0.7s 0.15s ease-out both;
}

.hero-visual .logo-disc {
  width: min(80vw, 320px);
  aspect-ratio: 1;
  border-radius: 28%;
  background: var(--surface);
  box-shadow: var(--shadow-lg);
  border: 1px solid var(--border);
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 1.5rem;
  position: relative;
  overflow: hidden;
}

.hero-visual .logo-disc::after {
  content: '';
  position: absolute;
  inset: 0;
  background: radial-gradient(
    ellipse at 30% 20%,
    color-mix(in srgb, var(--logo-color) 14%, transparent),
    transparent 70%
  );
  pointer-events: none;
}

.hero-visual .logo-disc svg {
  width: 100%;
  height: 100%;
  color: var(--logo-color);
  position: relative;
  z-index: 1;
}

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

/* ===== 6. Features grid ===== */

.features-grid {
  display: grid;
  grid-template-columns: 1fr;
  gap: 1rem;
}

@media (min-width: 640px) {
  .features-grid {
    grid-template-columns: repeat(2, 1fr);
  }
}

@media (min-width: 992px) {
  .features-grid {
    grid-template-columns: repeat(4, 1fr);
  }
}

.feature {
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: 1.1rem;
  padding: 1.5rem;
  display: flex;
  flex-direction: column;
  gap: 0.75rem;
  transition:
    transform 0.2s ease,
    border-color 0.2s ease,
    box-shadow 0.2s ease;
}

.feature:hover {
  transform: translateY(-3px);
  border-color: color-mix(in srgb, var(--primary) 35%, transparent);
  box-shadow: var(--shadow-md);
}

.feature-icon {
  width: 2.6rem;
  height: 2.6rem;
  border-radius: 0.85rem;
  background: color-mix(in srgb, var(--primary) 14%, transparent);
  color: var(--primary-strong);
  display: inline-flex;
  align-items: center;
  justify-content: center;
}

.feature:nth-child(even) .feature-icon {
  background: color-mix(in srgb, var(--brand) 16%, transparent);
  color: var(--brand-strong);
}

.dark .feature-icon {
  color: var(--accent);
  background: color-mix(in srgb, var(--accent) 14%, transparent);
}

.dark .feature:nth-child(even) .feature-icon {
  color: var(--brand);
  background: color-mix(in srgb, var(--brand) 18%, transparent);
}

.feature-icon svg {
  width: 1.35rem;
  height: 1.35rem;
}

.feature h3 {
  font-size: 1.05rem;
  font-weight: 600;
}

.feature p {
  margin: 0;
  color: var(--text-soft);
  font-size: 0.95rem;
}

/* ===== 7. Showcase (screenshot + video) ===== */

.section-alt {
  background: var(--surface);
  border-top: 1px solid var(--border);
  border-bottom: 1px solid var(--border);
}

.showcase {
  display: grid;
  grid-template-columns: 1fr;
  gap: 2.5rem;
  align-items: center;
}

@media (min-width: 880px) {
  .showcase {
    grid-template-columns: 1fr 1fr;
    gap: 4rem;
  }

  .showcase--reverse > :first-child {
    order: 2;
  }
}

.showcase-text h2 {
  margin-bottom: 1rem;
}

.showcase-text p {
  color: var(--text-soft);
  font-size: 1.05rem;
}

.media-frame {
  position: relative;
  border-radius: 1.5rem;
  overflow: hidden;
  background: var(--background);
  border: 1px solid var(--border);
  box-shadow: var(--shadow-lg);
  aspect-ratio: 4 / 3;
  max-width: 100%;
  margin: 0 auto;
}

.media-frame img,
.media-frame video {
  width: 100%;
  height: 100%;
  object-fit: contain;
  display: block;
  background: var(--background);
}

.media-frame--phone {
  aspect-ratio: 9 / 16;
  max-width: 360px;
}

.media-frame--phone img,
.media-frame--phone video {
  object-fit: cover;
}

/* ===== People photo band ===== */

.photo-band {
  display: grid;
  grid-template-columns: 1fr;
  gap: 1rem;
}

@media (min-width: 640px) {
  .photo-band {
    grid-template-columns: repeat(2, 1fr);
  }
}

@media (min-width: 960px) {
  .photo-band {
    grid-template-columns: 1fr 1.05fr 1fr;
    gap: 1.25rem;
    align-items: stretch;
  }
}

.photo-tile {
  position: relative;
  margin: 0;
  border-radius: 1.25rem;
  overflow: hidden;
  background: var(--surface-2);
  border: 1px solid var(--border);
  box-shadow: var(--shadow-md);
  aspect-ratio: 4 / 5;
}

.photo-tile img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
  transition: transform 0.6s ease;
}

.photo-tile:hover img {
  transform: scale(1.03);
}

@media (min-width: 960px) {
  .photo-tile--tall {
    aspect-ratio: 4 / 5.4;
    transform: translateY(-1.25rem);
  }
}

.media-placeholder {
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  padding: 2rem;
  text-align: center;
  color: var(--text-muted);
  font-size: 0.9rem;
  letter-spacing: 0.08em;
  text-transform: uppercase;
}

.media-placeholder svg {
  width: 2.5rem;
  height: 2.5rem;
  margin-bottom: 0.75rem;
  opacity: 0.5;
}

/* ===== 8. Who it's for + values ===== */

.checklist {
  display: grid;
  grid-template-columns: 1fr;
  gap: 0.75rem;
  margin: 1.5rem 0 0;
  padding: 0;
  list-style: none;
}

@media (min-width: 640px) {
  .checklist {
    grid-template-columns: repeat(2, 1fr);
  }
}

.checklist li {
  display: flex;
  align-items: flex-start;
  gap: 0.75rem;
  padding: 1rem 1.1rem;
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: 0.85rem;
  color: var(--text-soft);
  font-size: 0.95rem;
}

.checklist li::before {
  content: '';
  flex-shrink: 0;
  width: 1.25rem;
  height: 1.25rem;
  border-radius: 999px;
  background: var(--brand);
  display: inline-flex;
  margin-top: 0.18rem;
  background-image: url("data:image/svg+xml;utf8,<svg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='white' stroke-width='3' stroke-linecap='round' stroke-linejoin='round'><polyline points='20 6 9 17 4 12'/></svg>");
  background-position: center;
  background-repeat: no-repeat;
  background-size: 65%;
}

.who-footer {
  margin-top: 2rem;
  color: var(--text);
  font-weight: 500;
}

/* values grid (about page) */
.values-grid {
  display: grid;
  grid-template-columns: 1fr;
  gap: 1rem;
  margin-top: 2.5rem;
}

@media (min-width: 640px) {
  .values-grid {
    grid-template-columns: repeat(2, 1fr);
  }
}

.value-card {
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: 1.1rem;
  padding: 1.5rem;
}

.value-card h3 {
  color: var(--brand-strong);
  margin-bottom: 0.5rem;
}

.dark .value-card h3 {
  color: var(--brand);
}

.value-card p {
  margin: 0;
  color: var(--text-soft);
}

/* ===== 9. CTA / store buttons ===== */

.cta {
  position: relative;
  overflow: hidden;
  isolation: isolate;
  padding: 5rem 0;
  text-align: center;
}

.cta::before {
  content: '';
  position: absolute;
  inset: 0;
  background: var(--gradient-warm);
  opacity: 0.45;
  z-index: -1;
}

.dark .cta::before {
  opacity: 0.4;
}

.cta h2 {
  margin-bottom: 0.5rem;
}

.cta-body {
  color: var(--text-soft);
  max-width: 36ch;
  margin: 0 auto 1.75rem;
}

.cta .store-buttons {
  justify-content: center;
}

/* ===== 10. About page ===== */

.about-content {
  display: grid;
  grid-template-columns: 1fr;
  gap: 2rem;
}

.about-section + .about-section {
  margin-top: 3.5rem;
  padding-top: 3.5rem;
  border-top: 1px solid var(--border);
}

.about-section h2 {
  margin-bottom: 1.25rem;
}

.about-section p {
  color: var(--text-soft);
  font-size: 1.05rem;
  max-width: 70ch;
}

.about-link {
  display: inline-flex;
  align-items: center;
  gap: 0.35rem;
  color: var(--link);
  font-weight: 600;
  margin-top: 0.5rem;
}

/* ===== 11. Footer ===== */

.footer {
  background: var(--surface);
  border-top: 1px solid var(--border);
  padding: 4rem 0 2rem;
}

.footer-grid {
  display: grid;
  grid-template-columns: 1fr;
  gap: 2.5rem;
}

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

@media (min-width: 1024px) {
  .footer-grid {
    grid-template-columns: 1.4fr 1fr 1fr 1.2fr;
  }
}

.footer-col {
  min-width: 0;
}

.footer-col h4 {
  font-size: 0.75rem;
  letter-spacing: 0.22em;
  text-transform: uppercase;
  color: var(--text-muted);
  font-weight: 600;
  margin-bottom: 1rem;
  font-family: 'Inter', sans-serif;
}

.footer-col ul {
  list-style: none;
  padding: 0;
  margin: 0;
  display: flex;
  flex-direction: column;
  gap: 0.5rem;
}

.footer-col a {
  color: var(--text-soft);
  font-size: 0.95rem;
}

.footer-col a:hover {
  color: var(--text);
  opacity: 1;
}

.footer-col p {
  color: var(--text-soft);
  font-size: 0.95rem;
}

.footer-brand {
  display: inline-flex;
  align-items: center;
  gap: 0.7rem;
  margin-bottom: 1rem;
  font-family: 'Comfortaa', sans-serif;
  font-size: 1.15rem;
  font-weight: 600;
  color: var(--text);
}

.footer-brand .brand-mark {
  width: 1.85rem;
  height: 1.85rem;
}

/* Email row */
.email-row {
  display: flex;
  align-items: center;
  gap: 0.4rem;
  padding: 0.4rem 0.4rem 0.4rem 0.95rem;
  background: var(--background);
  border: 1px solid var(--border);
  border-radius: 999px;
  margin: 0.75rem 0 0.5rem;
  max-width: 100%;
  width: fit-content;
}

.email-row a {
  color: var(--text);
  font-weight: 500;
  font-size: 0.88rem;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
  min-width: 0;
}

.copy-btn {
  flex-shrink: 0;
  width: 2rem;
  height: 2rem;
  border-radius: 999px;
  background: var(--text);
  color: var(--background);
  border: 0;
  cursor: pointer;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  transition: transform 0.15s ease;
}

.copy-btn:hover {
  transform: scale(1.05);
}

.copy-btn svg {
  width: 0.9rem;
  height: 0.9rem;
  fill: currentColor;
}

.copy-message {
  display: block;
  font-size: 0.78rem;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: var(--primary-strong);
  margin-top: 0.4rem;
  opacity: 0;
  transition: opacity 0.3s ease;
}

.dark .copy-message {
  color: var(--accent);
}

.copy-message.is-visible {
  opacity: 1;
}

.footer-bottom {
  display: flex;
  flex-direction: column;
  gap: 1rem;
  margin-top: 3rem;
  padding-top: 2rem;
  border-top: 1px solid var(--border);
  align-items: center;
  text-align: center;
}

@media (min-width: 640px) {
  .footer-bottom {
    flex-direction: row;
    justify-content: space-between;
    text-align: left;
  }
}

.footer-credit {
  font-size: 0.85rem;
  color: var(--text-muted);
  letter-spacing: 0.05em;
}

.footer-built {
  font-size: 0.85rem;
  color: var(--text-muted);
}

.footer-built a {
  color: var(--text-soft);
  font-weight: 500;
}

/* ===== 12. Legal pages ===== */

.legal-shell {
  padding: 3rem 0 5rem;
}

.legal-paper {
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: 1.5rem;
  padding: 2.5rem;
  max-width: 880px;
  margin: 0 auto;
  box-shadow: var(--shadow-sm);
}

@media (max-width: 640px) {
  .legal-paper {
    padding: 1.75rem 1.25rem;
    border-radius: 1.1rem;
  }
}

.legal-paper h1 {
  font-size: clamp(1.85rem, 4vw, 2.5rem);
  margin-bottom: 1rem;
}

.legal-paper h2 {
  font-size: 1.3rem;
  margin: 2.25rem 0 0.75rem;
}

.legal-paper h3 {
  font-size: 1.05rem;
  margin: 1.25rem 0 0.5rem;
}

.legal-paper p,
.legal-paper li {
  color: var(--text-soft);
  font-size: 0.98rem;
}

.legal-paper hr {
  border: 0;
  border-top: 1px solid var(--border);
  margin: 2rem 0;
}

.legal-paper ul {
  padding-left: 1.25rem;
}

.legal-meta {
  color: var(--text-muted);
  font-size: 0.9rem;
  margin-bottom: 2rem;
}

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

/* ===== 13. Reduced motion ===== */

@media (prefers-reduced-motion: reduce) {
  *,
  *::before,
  *::after {
    animation-duration: 0.001s !important;
    transition-duration: 0.001s !important;
  }
  html {
    scroll-behavior: auto;
  }
}
