/*
 * styles.css — layout + components, mobile-first.
 * Default styles target ≤480px portrait. Two opt-in breakpoints:
 *   @media (min-width: 768px)  tablet
 *   @media (min-width: 1024px) desktop
 *
 * Cosmic-redesign rebuild (2026-04-27): mirrors the iOS app's dark-by-
 * default brand voice — teal→violet brand gradients, ambient cosmic
 * glows behind the hero, illustration backdrops, brand-tinted icon tiles.
 */

/* -------------------------------------------------------------------------- */
/* Container + section rhythm                                                  */
/* -------------------------------------------------------------------------- */

.container {
  max-width: var(--container);
  margin: 0 auto;
  padding-inline: var(--gutter);
}

.section {
  padding-block: 56px;
}
@media (min-width: 768px) { .section { padding-block: 80px; } }
.section--tight { padding-block: 32px; }

/* -------------------------------------------------------------------------- */
/* Header — sticky, glass-on-scroll with @supports fallback                    */
/* -------------------------------------------------------------------------- */

.site-header {
  position: sticky;
  top: 0;
  z-index: 50;
  /* Fallbacks for browsers without color-mix (Safari < 16.4) — opaque surface */
  background: var(--surface);
  border-bottom: 1px solid var(--border);
  background: color-mix(in srgb, var(--surface) 92%, transparent);
  border-bottom: 1px solid color-mix(in srgb, var(--border) 60%, transparent);
}
@supports (backdrop-filter: blur(20px)) {
  .site-header {
    background: color-mix(in srgb, var(--surface) 75%, transparent);
    backdrop-filter: blur(20px);
    -webkit-backdrop-filter: blur(20px);
  }
}

.header-inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  height: 64px;
}

.brand {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  font-weight: 800;
  font-size: 18px;
  color: var(--text);
}
.brand:hover, .brand:focus-visible { color: var(--brand-teal-light); }
.brand .compass {
  width: 32px;
  height: 32px;
  color: var(--brand-teal-light);
  --compass-dot: var(--brand-violet);
  filter: drop-shadow(0 4px 12px rgba(20, 184, 166, 0.35));
}
/* Raster brand mark — the new cosmic identity (river B + star). Use this
 * at any size ≥ 28px; the gradient + star detail don't read below that. */
.brand .brand-icon {
  width: 36px;
  height: 36px;
  flex-shrink: 0;
  filter: drop-shadow(0 4px 14px rgba(20, 184, 166, 0.45))
          drop-shadow(0 8px 22px rgba(139, 92, 246, 0.30));
}
.brand-mark { letter-spacing: -0.01em; }

/* Nav — hidden on mobile, replaced by hamburger menu */
.site-nav {
  display: none;
}
.site-nav ul {
  list-style: none;
  margin: 0;
  padding: 0;
  display: flex;
  gap: 24px;
}
.site-nav a {
  display: inline-flex;
  align-items: center;
  height: 48px;
  padding: 0 4px;
  color: var(--text-mut);
  font-weight: 600;
  font-size: 15px;
  border-bottom: 2px solid transparent;
}
.site-nav a:hover { color: var(--brand-teal-light); }
.site-nav a[aria-current='page'] {
  color: var(--text);
  /* Brand teal→violet underline on the active link mirrors the
   * cosmic-redesign hero CTA gradient. */
  border-image: var(--gradient-brand) 1;
  border-bottom: 2px solid;
}

@media (min-width: 1024px) {
  .site-nav { display: flex; }
}

/* Hamburger toggle (mobile only) */
.nav-toggle {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: var(--tap-target);
  height: var(--tap-target);
  color: var(--text);
  border-radius: var(--radius-button);
  flex-shrink: 0;
  background: transparent;
  transition: background var(--dur-fast) var(--ease-soft),
              color var(--dur-fast) var(--ease-soft);
}
.nav-toggle:hover { color: var(--brand-teal-light); background: color-mix(in srgb, var(--brand-teal) 14%, transparent); }
.nav-toggle .icon { width: 24px; height: 24px; }
@media (min-width: 1024px) { .nav-toggle { display: none; } }

/* Mobile nav drawer (slides down from below the header). */
.mobile-nav {
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  z-index: 49;
  padding-top: 64px;
  background: var(--surface);
  border-bottom: 1px solid var(--border);
  box-shadow: var(--shadow-md);
  transform: translateY(-100%);
  transition: transform var(--dur-fast) var(--ease-soft);
  pointer-events: none;
}
.mobile-nav[data-open='true'] {
  transform: translateY(0);
  pointer-events: auto;
}
.mobile-nav ul {
  list-style: none;
  margin: 0;
  padding: 12px 20px 20px;
  display: flex;
  flex-direction: column;
}
.mobile-nav a {
  display: flex;
  align-items: center;
  min-height: var(--tap-target);
  color: var(--text);
  font-weight: 600;
  font-size: 17px;
  border-bottom: 1px solid var(--border);
}
.mobile-nav a:last-child { border-bottom: 0; }
.mobile-nav a[aria-current='page'] { color: var(--brand-teal-light); }

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

/* -------------------------------------------------------------------------- */
/* Language pill — KA | EN                                                     */
/* -------------------------------------------------------------------------- */

.lang-pill {
  display: none;
  align-items: center;
  padding: 3px;
  background: var(--surface-2);
  border: 1px solid var(--border);
  border-radius: var(--radius-pill);
  gap: 0;
  flex-shrink: 0;
}
.lang-pill button {
  min-width: 36px;
  height: 32px;
  padding: 0 10px;
  font-size: 12px;
  font-weight: 700;
  color: var(--text-mut);
  border-radius: var(--radius-pill);
  transition: background var(--dur-fast) var(--ease-soft),
              color var(--dur-fast) var(--ease-soft);
}
@media (min-width: 768px) {
  .lang-pill { padding: 4px; }
  .lang-pill button { min-width: 44px; height: 36px; padding: 0 12px; font-size: 13px; }
}
/* Active lang button — brand teal→violet gradient pill (mirrors iOS
 * GradientButton, the primary CTA shape across the app). */
.lang-pill button[aria-pressed='true'] {
  background: var(--gradient-brand);
  color: #FFFFFF;
  box-shadow: 0 4px 12px rgba(20, 184, 166, 0.35);
}
.lang-pill button:not([aria-pressed='true']):hover {
  color: var(--brand-teal-light);
}

/* -------------------------------------------------------------------------- */
/* Hero — cosmic dark gradient + radial blooms + brand-gradient headline       */
/* -------------------------------------------------------------------------- */

.hero {
  position: relative;
  overflow: hidden;
  /* Layered cosmic backdrop: a violet radial bloom anchored top-trailing,
   * a teal bloom anchored bottom-leading, both painted on top of the
   * dark-hero linear gradient. Mirrors HomeView.homeBackground +
   * AuthView.cosmicBackdrop on iOS. */
  background:
    radial-gradient(ellipse 720px 480px at 100% 0%, rgba(139, 92, 246, 0.30), transparent 70%),
    radial-gradient(ellipse 720px 480px at 0% 100%, rgba(20, 184, 166, 0.25), transparent 70%),
    var(--gradient-dark-hero);
  color: #FFFFFF;
  /* Mobile: tighter top/bottom because the brand-icon-hero already pulls
   * a lot of vertical weight on small screens. */
  padding-block: 60px 72px;
  border-bottom-left-radius: var(--radius-hero);
  border-bottom-right-radius: var(--radius-hero);
}
@media (min-width: 480px) {
  .hero { padding-block: 76px; }
}
/* Two soft ambient circles — analog of iOS AmbientCircles. The
 * compass illustration sitting behind the headline floats over them. */
.hero::before,
.hero::after {
  content: '';
  position: absolute;
  border-radius: 50%;
  pointer-events: none;
  filter: blur(40px);
}
.hero::before {
  width: 320px; height: 320px;
  top: -100px; right: -80px;
  background: radial-gradient(circle, rgba(167, 139, 250, 0.45) 0%, transparent 70%);
}
.hero::after {
  width: 260px; height: 260px;
  bottom: -90px; left: -60px;
  background: radial-gradient(circle, rgba(45, 212, 191, 0.35) 0%, transparent 70%);
}

@media (min-width: 768px) {
  .hero { padding-block: 132px; }
  .hero::before { width: 520px; height: 520px; top: -160px; right: -120px; }
  .hero::after  { width: 420px; height: 420px; bottom: -180px; left: -120px; }
}

.hero-inner {
  position: relative;
  z-index: 2;
  text-align: center;
  max-width: 760px;
  margin: 0 auto;
}

/* Optional full-bleed illustration backdrop (HeroCompassPath) — sits
 * beneath the inner content at low opacity to add cosmic depth.
 *
 * Mobile cost note: the source PNG is 1.5 MB. On phones (≤767px)
 * the hero already feels rich from the radial blooms + brand glow,
 * so the illustration is hidden below 768px to save bandwidth on
 * 3G/4G. Tablet+ pulls it in. */
.hero-illustration {
  position: absolute;
  inset: 0;
  z-index: 1;
  background-image: url('/assets/illustrations/HeroCliffJourney.jpg');
  background-size: cover;
  background-position: center;
  background-repeat: no-repeat;
  opacity: 0.28;
  mix-blend-mode: screen;
  pointer-events: none;
}
@media (min-width: 768px) {
  .hero-illustration { opacity: 0.32; }
}

.hero .compass {
  width: 96px;
  height: 96px;
  margin: 0 auto 24px;
  color: #FFFFFF;
  --compass-dot: var(--brand-teal-light);
  filter: drop-shadow(0 0 28px rgba(45, 212, 191, 0.65))
          drop-shadow(0 8px 40px rgba(139, 92, 246, 0.45));
}
/* Hero brand-icon variant — the cosmic-redesign identity (river B + star
 * inside the gradient ring). Halo glows match the iOS BrandLogoMark
 * shadow stack used on AuthView.
 *
 * Sized fluidly: 128px on the smallest phones (320–360px viewports),
 * scales up to 200px on tablet+. Drop-shadow filter is GPU-accelerated;
 * Reduced Motion leaves it intact (it's static, not animated). */
.hero .brand-icon-hero {
  width: clamp(128px, 26vw, 200px);
  height: clamp(128px, 26vw, 200px);
  margin: 0 auto 20px;
  display: block;
  filter: drop-shadow(0 0 28px rgba(45, 212, 191, 0.55))
          drop-shadow(0 8px 40px rgba(96, 165, 250, 0.45))
          drop-shadow(0 16px 56px rgba(139, 92, 246, 0.50));
}
@media (min-width: 768px) {
  .hero .brand-icon-hero { margin-bottom: 24px; }
}
.hero .hero-brand-name {
  margin: 0 0 8px;
  font-size: clamp(2.6rem, 9vw, 5rem);
  font-weight: 900;
  line-height: 1.05;
  letter-spacing: -0.01em;
  background: linear-gradient(90deg, var(--brand-teal-light) 0%, #FFFFFF 50%, var(--brand-violet-light) 100%);
  -webkit-background-clip: text;
          background-clip: text;
  color: transparent;
  -webkit-text-fill-color: transparent;
  text-shadow: 0 8px 32px rgba(0, 0, 0, 0.45);
}
.hero h1 {
  margin: 0 0 16px;
  font-size: clamp(1.4rem, 4vw, 2.2rem);
  font-weight: 600;
  letter-spacing: -0.01em;
  color: rgba(255, 255, 255, 0.95);
  text-shadow: 0 4px 18px rgba(0, 0, 0, 0.40);
}
.hero .lead {
  font-size: clamp(1.05rem, 2.2vw, 1.25rem);
  color: rgba(255, 255, 255, 0.92);
  margin: 0 auto 36px;
  max-width: 600px;
}

/* "Coming soon" callouts (no badge artwork — Apple doesn't ship one) */
.store-callouts {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 12px;
}
@media (min-width: 480px) {
  .store-callouts { flex-direction: row; justify-content: center; flex-wrap: wrap; }
}
.store-callout {
  display: inline-flex;
  align-items: center;
  gap: 12px;
  min-height: var(--tap-target);
  padding: 12px 22px;
  background: rgba(255, 255, 255, 0.10);
  border: 1px solid rgba(255, 255, 255, 0.22);
  backdrop-filter: blur(8px);
  -webkit-backdrop-filter: blur(8px);
  border-radius: var(--radius-button);
  color: #FFFFFF;
  font-weight: 700;
  font-size: 15px;
  letter-spacing: 0.01em;
  cursor: not-allowed;
  -webkit-tap-highlight-color: transparent;
  transition: background var(--dur-fast) var(--ease-soft),
              border-color var(--dur-fast) var(--ease-soft);
}
.store-callout:hover {
  background: rgba(255, 255, 255, 0.18);
  border-color: rgba(255, 255, 255, 0.40);
  color: #FFFFFF;
}
.store-callout-glyph {
  display: inline-block;
  width: 20px;
  height: 20px;
  flex-shrink: 0;
  fill: currentColor;
}
.store-callout-glyph--apple { width: 22px; height: 22px; }

/* -------------------------------------------------------------------------- */
/* Section heading (small uppercase eyebrow + h2)                              */
/* -------------------------------------------------------------------------- */

.section-eyebrow {
  display: block;
  font-size: 12px;
  font-weight: 800;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  /* Eyebrow uses the brand-violet end of the gradient so it pops on
   * dark surfaces without competing with the teal CTAs. */
  color: var(--brand-violet-light);
  margin-bottom: 12px;
}
.section h2 { margin-bottom: 16px; color: var(--text); }
.section .lead { color: var(--text-mut); margin-bottom: 32px; max-width: 640px; }

/* -------------------------------------------------------------------------- */
/* Three-feature grid                                                          */
/* -------------------------------------------------------------------------- */

.feature-grid {
  display: grid;
  grid-template-columns: 1fr;
  gap: 16px;
}
@media (min-width: 768px) { .feature-grid { grid-template-columns: repeat(3, 1fr); gap: 24px; } }

.feature-card {
  position: relative;
  background: var(--surface);
  border: 1px solid color-mix(in srgb, var(--brand-violet) 18%, var(--border));
  border-radius: var(--radius-card);
  box-shadow: var(--shadow-sm);
  transition: transform var(--dur-fast) var(--ease-spring),
              box-shadow var(--dur-fast) var(--ease-soft),
              border-color var(--dur-fast) var(--ease-soft);
  overflow: hidden;
  display: flex;
  flex-direction: column;
}
.feature-card::before {
  content: '';
  position: absolute;
  top: 0; left: 0; right: 0;
  height: 2px;
  background: var(--gradient-brand);
  opacity: 0.6;
  pointer-events: none;
  z-index: 2;
}
.feature-card:hover {
  transform: translateY(-3px);
  border-color: color-mix(in srgb, var(--brand-violet) 35%, var(--border));
  box-shadow: var(--shadow-brand-glow);
}

/* Big illustration backdrop at the top of each feature card — replaces
 * the small inline SVG icon. Image fills width, fixed aspect, gradient
 * fade into card body for cohesion with the cosmic theme. */
.feature-card__media {
  position: relative;
  width: 100%;
  aspect-ratio: 16 / 10;
  overflow: hidden;
  background: var(--gradient-dark-hero);
}
.feature-card__media img {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: center;
  display: block;
  /* Default zoom — most iOS illustrations have built-in padding around
   * the subject; scaling 1.18 crops out the implicit border so the card
   * doesn't look like it has two borders stacked. */
  transform: scale(1.18);
  transition: transform 1200ms var(--ease-out);
}
.feature-card:hover .feature-card__media img {
  transform: scale(1.24);
}
/* Soft fade at the bottom of media → into body */
.feature-card__media::after {
  content: '';
  position: absolute;
  inset: auto 0 0 0;
  height: 60%;
  background: linear-gradient(to bottom,
    transparent 0%,
    color-mix(in srgb, var(--surface) 35%, transparent) 55%,
    color-mix(in srgb, var(--surface) 92%, transparent) 100%);
  pointer-events: none;
}

.feature-card__body {
  position: relative;
  padding: 24px 24px 28px;
  display: flex;
  flex-direction: column;
  gap: 8px;
  flex: 1;
}
.feature-card__body .feature-num {
  margin-bottom: 4px;
}
.feature-card h3 { color: var(--text); margin: 0; }
.feature-card p   { margin: 0; }

/* -------------------------------------------------------------------------- */
/* Audience blocks (For young people / For parents)                            */
/* -------------------------------------------------------------------------- */

.audience-block {
  position: relative;
  padding: 32px;
  background: var(--surface);
  border: 1px solid color-mix(in srgb, var(--brand-violet) 14%, var(--border));
  border-radius: var(--radius-card);
  box-shadow: var(--shadow-sm);
  display: grid;
  gap: 16px;
  overflow: hidden;
}
.audience-block::before {
  content: '';
  position: absolute;
  inset: 0;
  background: radial-gradient(ellipse 280px 200px at 100% 0%, rgba(139, 92, 246, 0.10), transparent 70%);
  pointer-events: none;
}
@media (min-width: 768px) {
  .audience-block { grid-template-columns: 96px 1fr; align-items: start; gap: 24px; padding: 40px; }
}
.audience-block .icon {
  position: relative;
  width: 64px;
  height: 64px;
  padding: 16px;
  /* Brand-tinted icon tile — teal stroke on a violet-soft fill, the
   * inverse of the hero CTA's teal-fill. Reads as a "secondary brand
   * surface" the way iOS PinnedBlogCard does. */
  color: var(--brand-teal-light);
  background: color-mix(in srgb, var(--brand-violet) 14%, transparent);
  border: 1px solid color-mix(in srgb, var(--brand-teal) 22%, transparent);
  border-radius: var(--radius-card);
}
.audience-block > div { position: relative; }
.audience-block h3 { margin-bottom: 8px; color: var(--text); }
.audience-block p:last-child { margin-bottom: 0; }
.audience-block + .audience-block { margin-top: 16px; }

/* -------------------------------------------------------------------------- */
/* Coming-soon strip — brand teal→violet gradient banner                       */
/* -------------------------------------------------------------------------- */

.coming-soon-strip {
  position: relative;
  background: var(--gradient-brand);
  color: #FFFFFF;
  border-radius: var(--radius-hero);
  padding: 48px 24px;
  text-align: center;
  margin-top: 40px;
  /* Layered teal + violet halo glows mirror iOS CircularArrowCTA shadows. */
  box-shadow:
    0 12px 32px rgba(20, 184, 166, 0.30),
    0 24px 56px rgba(139, 92, 246, 0.25);
  overflow: hidden;
}
.coming-soon-strip::before,
.coming-soon-strip::after {
  content: '';
  position: absolute;
  border-radius: 50%;
  pointer-events: none;
  filter: blur(36px);
}
.coming-soon-strip::before {
  width: 320px; height: 320px;
  top: -120px; right: -100px;
  background: rgba(255, 255, 255, 0.18);
}
.coming-soon-strip::after {
  width: 240px; height: 240px;
  bottom: -100px; left: -60px;
  background: rgba(45, 212, 191, 0.30);
}
.coming-soon-strip > * { position: relative; z-index: 1; }
.coming-soon-strip h2 {
  color: #FFFFFF;
  margin-bottom: 12px;
}
.coming-soon-strip .lead {
  color: rgba(255, 255, 255, 0.94);
  max-width: 520px;
  margin: 0 auto 24px;
}
.coming-soon-strip .store-callouts { justify-content: center; }
.coming-soon-strip .store-callout {
  background: rgba(255, 255, 255, 0.18);
  border-color: rgba(255, 255, 255, 0.35);
}

/* -------------------------------------------------------------------------- */
/* Footer                                                                      */
/* -------------------------------------------------------------------------- */

.site-footer {
  background: var(--surface);
  border-top: 1px solid var(--border);
  padding-block: 48px 24px;
  margin-top: 64px;
}
.footer-grid {
  display: grid;
  grid-template-columns: 1fr;
  gap: 32px;
}
@media (min-width: 768px) {
  .footer-grid { grid-template-columns: 1.4fr 1fr 1fr; gap: 48px; }
}
.footer-col h3 {
  font-size: 13px;
  font-weight: 800;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: var(--brand-violet-light);
  margin-bottom: 16px;
}
.footer-col ul { list-style: none; margin: 0; padding: 0; }
.footer-col li { margin-bottom: 6px; }
/* Each link gets a tap-target floor — touch users need ≥44px to comfortably hit */
.footer-col a {
  display: inline-flex;
  align-items: center;
  min-height: 36px;
  padding-block: 4px;
  color: var(--text-mut);
  font-weight: 500;
}
.footer-col a:hover { color: var(--brand-teal-light); }
.footer-brand .brand { font-size: 18px; margin-bottom: 12px; }
.footer-brand p { color: var(--text-mut); margin-bottom: 0; max-width: 320px; }
.footer-bottom {
  margin-top: 32px;
  padding-top: 24px;
  border-top: 1px solid var(--border);
  display: flex;
  flex-direction: column;
  gap: 6px;
  /* AA contrast on dark surface — bumped from text-faint (#64748B, 3.6:1)
   * to text-mut (#94A3B8, 5.8:1) so footer attribution legibly passes */
  color: var(--text-mut);
  font-size: 13px;
}
.footer-bottom a {
  color: var(--brand-teal-light);
  font-weight: 700;
}
.footer-bottom a:hover { color: var(--brand-violet-light); }
@media (min-width: 768px) {
  .footer-bottom {
    flex-direction: row;
    justify-content: space-between;
    align-items: center;
  }
}

/* -------------------------------------------------------------------------- */
/* Legal pages (Privacy + Terms + Support + Delete-account)                    */
/* -------------------------------------------------------------------------- */

.legal-shell {
  max-width: 760px;
  margin: 0 auto;
  padding-block: 40px 80px;
}
.legal-header { margin-bottom: 32px; }
.legal-header h1 {
  font-size: clamp(1.75rem, 4.5vw, 2.6rem);
  margin-bottom: 12px;
  color: var(--text);
}
.legal-version {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 4px 12px;
  background: color-mix(in srgb, var(--brand-violet) 16%, transparent);
  color: var(--brand-violet-light);
  border: 1px solid color-mix(in srgb, var(--brand-violet) 28%, transparent);
  border-radius: var(--radius-pill);
  font-size: 12px;
  font-weight: 700;
}
.legal-shell .lead {
  color: var(--text-mut);
  font-size: 1.05rem;
  margin-bottom: 32px;
}

/* TOC */
.toc {
  background: var(--surface);
  border: 1px solid color-mix(in srgb, var(--brand-violet) 14%, var(--border));
  border-radius: var(--radius-card);
  padding: 24px;
  margin-bottom: 40px;
}
.toc h2 {
  font-size: 14px;
  font-weight: 800;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: var(--brand-violet-light);
  margin: 0 0 16px;
}
.toc ol {
  margin: 0;
  padding-left: 0;
  list-style: none;
  color: var(--text-mut);
}
.toc li { margin-bottom: 6px; }
.toc a { color: var(--text); font-weight: 500; }
.toc a:hover { color: var(--brand-teal-light); }

/* Sections */
.legal-section { margin-bottom: 40px; scroll-margin-top: 84px; }
.legal-section h2 {
  font-size: clamp(1.25rem, 3vw, 1.5rem);
  color: var(--text);
  margin-bottom: 12px;
  padding-bottom: 8px;
  /* Section heading underline picks up the brand gradient. */
  border-bottom: 2px solid;
  border-image: var(--gradient-brand) 1;
}
.legal-section h3 {
  color: var(--text);
  margin-top: 20px;
  margin-bottom: 8px;
  font-size: 1.05rem;
}
.legal-section p, .legal-section ul, .legal-section ol {
  color: var(--text);
  font-size: 1rem;
  line-height: 1.7;
}
.legal-section ul, .legal-section ol { padding-left: 22px; }
.legal-section li { margin-bottom: 6px; }
.legal-section strong { color: var(--text); font-weight: 700; }

/* Side-info card (e.g., "Data controller" block) */
.info-card {
  background: var(--surface);
  border: 1px solid color-mix(in srgb, var(--brand-teal) 18%, var(--border));
  border-radius: var(--radius-card);
  padding: 20px 24px;
  margin: 16px 0;
}
.info-card dl { margin: 0; display: grid; grid-template-columns: 1fr; gap: 8px; }
@media (min-width: 480px) {
  .info-card dl { grid-template-columns: 140px 1fr; gap: 8px 16px; }
}
.info-card dt {
  font-weight: 700;
  color: var(--text-faint);
  font-size: 13px;
  text-transform: uppercase;
  letter-spacing: 0.06em;
}
.info-card dd { margin: 0; color: var(--text); }

.archive-link {
  margin-top: 64px;
  padding-top: 24px;
  border-top: 1px solid var(--border);
  font-size: 14px;
  color: var(--text-faint);
}

/* -------------------------------------------------------------------------- */
/* Contact form                                                                */
/* -------------------------------------------------------------------------- */

.contact-form {
  display: flex;
  flex-direction: column;
  gap: 16px;
}
.contact-form label {
  font-weight: 700;
  font-size: 14px;
  color: var(--text);
}
.contact-form textarea {
  font: inherit;
  font-size: 16px;
  line-height: 1.5;
  color: var(--text);
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: var(--radius-button);
  padding: 14px 16px;
  width: 100%;
  min-height: 200px;
  resize: vertical;
  transition: border-color var(--dur-fast) var(--ease-soft),
              box-shadow var(--dur-fast) var(--ease-soft);
}
.contact-form textarea:focus {
  outline: none;
  border-color: var(--brand-teal-light);
  box-shadow: 0 0 0 4px color-mix(in srgb, var(--brand-teal) 22%, transparent);
}
.contact-form textarea[aria-invalid='true'] {
  border-color: var(--danger);
}
.char-counter {
  align-self: flex-end;
  font-size: 12px;
  color: var(--text-faint);
  font-variant-numeric: tabular-nums;
  margin-top: -8px;
}
.char-counter[data-state='warn']  { color: #F59E0B; }
.char-counter[data-state='error'] { color: var(--danger); }

/* Primary brand CTA — teal→violet gradient, white label, halo glow. */
.button {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  min-height: var(--tap-target);
  padding: 12px 24px;
  background: var(--gradient-brand);
  color: #FFFFFF;
  border-radius: var(--radius-button);
  font-weight: 700;
  font-size: 16px;
  box-shadow:
    0 6px 16px rgba(20, 184, 166, 0.35),
    0 12px 28px rgba(139, 92, 246, 0.25);
  cursor: pointer;
  transition: transform var(--dur-fast) var(--ease-spring),
              box-shadow var(--dur-fast) var(--ease-soft),
              opacity var(--dur-fast) var(--ease-soft);
}
.button:hover {
  transform: translateY(-1px);
  box-shadow:
    0 10px 24px rgba(20, 184, 166, 0.45),
    0 18px 40px rgba(139, 92, 246, 0.30);
  color: #FFFFFF;
}
.button:active { transform: translateY(0); }
.button:disabled { opacity: 0.5; cursor: not-allowed; transform: none; }
.button .icon { width: 18px; height: 18px; }
.button-secondary {
  background: var(--surface);
  color: var(--text);
  border: 1px solid var(--border);
  box-shadow: var(--shadow-sm);
}
.button-secondary:hover { color: var(--brand-teal-light); }

.send-row {
  display: flex;
  flex-direction: column;
  gap: 12px;
  margin-top: 8px;
}
@media (min-width: 480px) {
  .send-row { flex-direction: row; align-items: center; }
  .send-row .button { flex: 0 0 auto; }
}

.copy-fallback {
  margin-top: 24px;
  padding: 16px;
  background: var(--surface);
  border: 1px dashed var(--border);
  border-radius: var(--radius-button);
  font-size: 14px;
  color: var(--text-mut);
  display: flex;
  flex-direction: column;
  gap: 8px;
}
.copy-fallback .mail {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  font-weight: 700;
  color: var(--brand-teal-light);
  user-select: all;
}

.toast {
  position: fixed;
  inset: auto 50% 24px auto;
  transform: translateX(50%) translateY(20px);
  background: var(--success);
  color: #0F172A;
  padding: 12px 18px;
  border-radius: var(--radius-pill);
  font-weight: 700;
  box-shadow: var(--shadow-lg);
  opacity: 0;
  pointer-events: none;
  z-index: 100;
  transition: opacity var(--dur-fast) var(--ease-soft),
              transform var(--dur-fast) var(--ease-spring);
}
.toast[data-visible='true'] {
  opacity: 1;
  transform: translateX(50%) translateY(0);
  pointer-events: auto;
}

/* -------------------------------------------------------------------------- */
/* FAQ list (Support page)                                                     */
/* -------------------------------------------------------------------------- */

.faq-list { display: flex; flex-direction: column; gap: 12px; }
.faq-item {
  background: var(--surface);
  border: 1px solid color-mix(in srgb, var(--brand-violet) 12%, var(--border));
  border-radius: var(--radius-card);
  padding: 0;
  overflow: hidden;
}
.faq-item summary {
  list-style: none;
  cursor: pointer;
  padding: 16px 20px;
  font-weight: 700;
  color: var(--text);
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  min-height: var(--tap-target);
}
.faq-item summary::-webkit-details-marker { display: none; }
.faq-item summary::after {
  content: '+';
  font-size: 22px;
  font-weight: 400;
  color: var(--brand-teal-light);
  transition: transform var(--dur-fast) var(--ease-soft);
}
.faq-item[open] summary::after { content: '−'; color: var(--brand-violet-light); }
.faq-item .faq-body {
  padding: 0 20px 20px;
  color: var(--text-mut);
  font-size: 15px;
  line-height: 1.6;
}
.faq-item .faq-body p:last-child { margin-bottom: 0; }

/* -------------------------------------------------------------------------- */
/* 404                                                                         */
/* -------------------------------------------------------------------------- */

.not-found {
  text-align: center;
  padding-block: 80px 100px;
}
.not-found .compass {
  width: 88px;
  height: 88px;
  margin: 0 auto 24px;
  color: var(--brand-teal-light);
  --compass-dot: var(--brand-violet);
  opacity: 0.7;
  filter: drop-shadow(0 0 24px rgba(45, 212, 191, 0.45));
}
.not-found h1 { font-size: clamp(1.6rem, 4vw, 2.2rem); }
.not-found p { color: var(--text-mut); margin-bottom: 32px; }

/* -------------------------------------------------------------------------- */
/* Generic icon class                                                          */
/* -------------------------------------------------------------------------- */

.icon {
  display: inline-block;
  width: 22px;
  height: 22px;
  vertical-align: -0.18em;
  fill: none;
  stroke: currentColor;
}
