/* ==========================================================================
   Frog Labs LLC — style.css
   Dark, minimal, premium. No frameworks, no build step.
   ========================================================================== */

/* --------------------------------------------------------------------------
   1. Design tokens
   -------------------------------------------------------------------------- */
:root {
  /* Color */
  --bg: #070b09;
  --bg-elevated: #0c120f;
  --surface: rgba(255, 255, 255, 0.04);
  --surface-strong: rgba(255, 255, 255, 0.07);
  --border: rgba(255, 255, 255, 0.09);
  --border-strong: rgba(255, 255, 255, 0.16);
  --text: #e8ede9;
  --text-muted: #a3b0a7;
  --text-faint: #6d7a71;
  --accent: #4ade80;
  --accent-strong: #22c55e;
  --accent-deep: #16a34a;
  --accent-soft: rgba(74, 222, 128, 0.12);
  --accent-glow: rgba(74, 222, 128, 0.28);
  --danger: #f87171;
  --on-accent: #04150b;

  /* Type */
  --font-body: "Inter", -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
  --font-display: "Sora", var(--font-body);

  /* Shape */
  --radius-sm: 10px;
  --radius-md: 16px;
  --radius-lg: 22px;
  --radius-xl: 30px;
  --radius-pill: 999px;

  /* Motion */
  --ease: cubic-bezier(0.22, 1, 0.36, 1);
  --speed: 0.25s;

  /* Layout */
  --container: 1120px;
  --header-h: 72px;

  color-scheme: dark;
}

/* --------------------------------------------------------------------------
   2. Reset & base
   -------------------------------------------------------------------------- */
*,
*::before,
*::after {
  box-sizing: border-box;
  margin: 0;
  padding: 0;
}

html {
  scroll-behavior: smooth;
  scroll-padding-top: calc(var(--header-h) + 16px);
  -webkit-text-size-adjust: 100%;
}

body {
  font-family: var(--font-body);
  font-size: 1rem;
  line-height: 1.65;
  color: var(--text);
  background-color: var(--bg);
  min-height: 100vh;
  overflow-x: hidden;
  -webkit-font-smoothing: antialiased;
  animation: page-in 0.5s var(--ease) both;
}

/* Fade the page out briefly when navigating between internal pages (JS) */
body.page-leaving {
  opacity: 0;
  transition: opacity 0.18s ease;
}

@keyframes page-in {
  from { opacity: 0; }
  to   { opacity: 1; }
}

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

a {
  color: var(--accent);
  text-decoration: none;
  transition: color var(--speed) ease;
}

a:hover {
  color: #86efac;
}

ul[role="list"],
ol[role="list"] {
  list-style: none;
}

::selection {
  background: var(--accent-strong);
  color: var(--on-accent);
}

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

/* --------------------------------------------------------------------------
   3. Typography
   -------------------------------------------------------------------------- */
h1, h2, h3, h4 {
  font-family: var(--font-display);
  font-weight: 700;
  line-height: 1.15;
  letter-spacing: -0.02em;
  color: var(--text);
  text-wrap: balance;
}

h1 { font-size: clamp(2.4rem, 6vw, 4rem); }
h2 { font-size: clamp(1.7rem, 3.6vw, 2.5rem); }
h3 { font-size: clamp(1.15rem, 2vw, 1.35rem); }

p {
  max-width: 65ch;
}

.text-gradient {
  background: linear-gradient(100deg, #6ee7a0 10%, #34d399 45%, #a7f3d0 90%);
  -webkit-background-clip: text;
  background-clip: text;
  -webkit-text-fill-color: transparent;
  color: transparent;
}

.lead {
  font-size: clamp(1.05rem, 1.6vw, 1.2rem);
  color: var(--text-muted);
}

.eyebrow {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  font-size: 0.8rem;
  font-weight: 600;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: var(--accent);
  margin-bottom: 14px;
}

.eyebrow::before {
  content: "";
  width: 22px;
  height: 1px;
  background: var(--accent);
  opacity: 0.6;
}

/* --------------------------------------------------------------------------
   4. Layout utilities
   -------------------------------------------------------------------------- */
.container {
  width: 100%;
  max-width: var(--container);
  margin-inline: auto;
  padding-inline: clamp(20px, 4vw, 32px);
}

.section {
  padding-block: clamp(64px, 9vw, 116px);
  position: relative;
}

.section-tight {
  padding-block: clamp(44px, 6vw, 72px);
}

.section-header {
  max-width: 640px;
  margin-bottom: clamp(36px, 5vw, 56px);
}

.section-header.centered {
  margin-inline: auto;
  text-align: center;
}

.section-header.centered .eyebrow::before {
  display: none;
}

.section-header p {
  margin-top: 14px;
  color: var(--text-muted);
}

.grid-2 {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: clamp(20px, 3vw, 32px);
  align-items: center;
}

.grid-3 {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: clamp(16px, 2.5vw, 24px);
}

.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;
  top: -48px;
  left: 16px;
  z-index: 200;
  padding: 10px 18px;
  background: var(--accent);
  color: var(--on-accent);
  font-weight: 600;
  border-radius: 0 0 var(--radius-sm) var(--radius-sm);
  transition: top var(--speed) ease;
}

.skip-link:focus {
  top: 0;
  color: var(--on-accent);
}

/* --------------------------------------------------------------------------
   5. Buttons
   -------------------------------------------------------------------------- */
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 10px;
  padding: 14px 26px;
  font-family: var(--font-body);
  font-size: 0.95rem;
  font-weight: 600;
  line-height: 1;
  border-radius: var(--radius-pill);
  border: 1px solid transparent;
  cursor: pointer;
  white-space: nowrap;
  transition: transform var(--speed) var(--ease),
              box-shadow var(--speed) ease,
              background-color var(--speed) ease,
              border-color var(--speed) ease;
}

.btn:active {
  transform: scale(0.98);
}

.btn-primary {
  background: linear-gradient(135deg, #4ade80, #22c55e);
  color: var(--on-accent);
  box-shadow: 0 8px 24px -10px var(--accent-glow);
}

.btn-primary:hover {
  color: var(--on-accent);
  transform: translateY(-2px);
  box-shadow: 0 14px 32px -10px var(--accent-glow);
}

.btn-ghost {
  background: var(--surface);
  border-color: var(--border);
  color: var(--text);
  backdrop-filter: blur(8px);
  -webkit-backdrop-filter: blur(8px);
}

.btn-ghost:hover {
  color: var(--text);
  border-color: var(--border-strong);
  background: var(--surface-strong);
  transform: translateY(-2px);
}

.btn-sm {
  padding: 10px 20px;
  font-size: 0.88rem;
}

/* Custom "Download on the App Store" badge (placeholder link) */
.appstore-badge {
  display: inline-flex;
  align-items: center;
  gap: 12px;
  padding: 12px 22px 12px 18px;
  background: #000;
  border: 1px solid var(--border-strong);
  border-radius: 14px;
  color: #fff;
  line-height: 1.15;
  transition: transform var(--speed) var(--ease),
              border-color var(--speed) ease,
              box-shadow var(--speed) ease;
}

.appstore-badge:hover {
  color: #fff;
  transform: translateY(-2px);
  border-color: rgba(255, 255, 255, 0.35);
  box-shadow: 0 12px 30px -12px rgba(0, 0, 0, 0.8);
}

.appstore-badge svg {
  width: 26px;
  height: 26px;
  flex-shrink: 0;
}

.appstore-badge .badge-text {
  display: flex;
  flex-direction: column;
  text-align: left;
}

.appstore-badge .badge-small {
  font-size: 0.66rem;
  letter-spacing: 0.02em;
  opacity: 0.85;
}

.appstore-badge .badge-large {
  font-size: 1.05rem;
  font-weight: 600;
  letter-spacing: -0.01em;
}

.btn-row {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 16px;
}

/* --------------------------------------------------------------------------
   6. Header & navigation
   -------------------------------------------------------------------------- */
.site-header {
  position: sticky;
  top: 0;
  z-index: 100;
  height: var(--header-h);
  display: flex;
  align-items: center;
  border-bottom: 1px solid transparent;
  transition: background-color var(--speed) ease, border-color var(--speed) ease;
}

/* Glass state once the page is scrolled (JS toggles .is-scrolled) */
.site-header.is-scrolled,
.site-header.nav-open {
  background: rgba(7, 11, 9, 0.72);
  backdrop-filter: blur(16px) saturate(140%);
  -webkit-backdrop-filter: blur(16px) saturate(140%);
  border-bottom-color: var(--border);
}

.nav {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 24px;
  width: 100%;
}

.brand {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  font-family: var(--font-display);
  font-size: 1.15rem;
  font-weight: 700;
  letter-spacing: -0.02em;
  color: var(--text);
}

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

.brand-mark {
  width: 32px;
  height: 32px;
}

.nav-menu {
  display: flex;
  align-items: center;
  gap: 28px;
}

.nav-links {
  display: flex;
  align-items: center;
  gap: 4px;
  list-style: none;
}

.nav-links a {
  display: inline-block;
  padding: 8px 14px;
  font-size: 0.92rem;
  font-weight: 500;
  color: var(--text-muted);
  border-radius: var(--radius-pill);
  transition: color var(--speed) ease, background-color var(--speed) ease;
}

.nav-links a:hover {
  color: var(--text);
  background: var(--surface);
}

.nav-links a[aria-current="page"] {
  color: var(--text);
  background: var(--surface-strong);
}

/* Hamburger */
.nav-toggle {
  display: none;
  flex-direction: column;
  justify-content: center;
  gap: 5px;
  width: 44px;
  height: 44px;
  padding: 10px;
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: var(--radius-sm);
  cursor: pointer;
}

.nav-toggle-bar {
  display: block;
  width: 100%;
  height: 2px;
  border-radius: 2px;
  background: var(--text);
  transition: transform var(--speed) var(--ease), opacity var(--speed) ease;
}

.nav-toggle[aria-expanded="true"] .nav-toggle-bar:nth-child(2) {
  transform: translateY(7px) rotate(45deg);
}

.nav-toggle[aria-expanded="true"] .nav-toggle-bar:nth-child(3) {
  opacity: 0;
}

.nav-toggle[aria-expanded="true"] .nav-toggle-bar:nth-child(4) {
  transform: translateY(-7px) rotate(-45deg);
}

/* --------------------------------------------------------------------------
   7. Hero
   -------------------------------------------------------------------------- */
.hero {
  position: relative;
  padding-block: clamp(84px, 12vw, 160px) clamp(64px, 9vw, 120px);
  overflow: hidden;
}

.hero-inner {
  position: relative;
  z-index: 1;
  max-width: 760px;
}

.hero-inner.centered {
  margin-inline: auto;
  text-align: center;
}

.hero-inner.centered .btn-row {
  justify-content: center;
}

.hero-badge {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 8px 16px;
  font-size: 0.82rem;
  font-weight: 500;
  color: var(--text-muted);
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: var(--radius-pill);
  backdrop-filter: blur(8px);
  -webkit-backdrop-filter: blur(8px);
  margin-bottom: 26px;
}

.hero-badge .dot {
  width: 7px;
  height: 7px;
  border-radius: 50%;
  background: var(--accent);
  box-shadow: 0 0 10px var(--accent-glow);
}

.hero p.lead {
  margin-top: 22px;
}

.hero .btn-row {
  margin-top: 36px;
}

/* Ambient glow orbs */
.orb {
  position: absolute;
  border-radius: 50%;
  filter: blur(90px);
  pointer-events: none;
  z-index: 0;
}

.orb-1 {
  width: 480px;
  height: 480px;
  top: -180px;
  right: -120px;
  background: radial-gradient(circle, rgba(34, 197, 94, 0.16), transparent 65%);
  animation: orb-drift 14s ease-in-out infinite alternate;
}

.orb-2 {
  width: 380px;
  height: 380px;
  bottom: -160px;
  left: -140px;
  background: radial-gradient(circle, rgba(52, 211, 153, 0.10), transparent 65%);
  animation: orb-drift 18s ease-in-out infinite alternate-reverse;
}

@keyframes orb-drift {
  from { transform: translate(0, 0) scale(1); }
  to   { transform: translate(-40px, 30px) scale(1.08); }
}

/* --------------------------------------------------------------------------
   8. Cards & feature grids
   -------------------------------------------------------------------------- */
.card {
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: var(--radius-lg);
  padding: clamp(24px, 3vw, 32px);
  backdrop-filter: blur(12px);
  -webkit-backdrop-filter: blur(12px);
  transition: transform var(--speed) var(--ease),
              border-color var(--speed) ease,
              background-color var(--speed) ease;
}

.card:hover {
  transform: translateY(-4px);
  border-color: var(--border-strong);
  background: var(--surface-strong);
}

.card h3 {
  margin-bottom: 10px;
}

.card p {
  color: var(--text-muted);
  font-size: 0.95rem;
}

.card-icon {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 46px;
  height: 46px;
  margin-bottom: 18px;
  border-radius: var(--radius-md);
  background: var(--accent-soft);
  color: var(--accent);
  font-size: 1.25rem;
}

.card-icon svg {
  width: 22px;
  height: 22px;
}

/* Highlight band (call-to-action strip) */
.cta-band {
  position: relative;
  overflow: hidden;
  text-align: center;
  padding: clamp(44px, 6vw, 72px) clamp(24px, 5vw, 64px);
  background: linear-gradient(160deg, rgba(34, 197, 94, 0.10), rgba(255, 255, 255, 0.03));
  border: 1px solid var(--border);
  border-radius: var(--radius-xl);
}

.cta-band h2 {
  margin-bottom: 14px;
}

.cta-band p {
  margin-inline: auto;
  color: var(--text-muted);
}

.cta-band .btn-row {
  justify-content: center;
  margin-top: 30px;
}

/* --------------------------------------------------------------------------
   9. Product / featured app
   -------------------------------------------------------------------------- */
.app-icon {
  width: clamp(96px, 14vw, 148px);
  height: auto;
  border-radius: 24%;
  box-shadow: 0 24px 60px -24px rgba(0, 0, 0, 0.9),
              0 0 0 1px var(--border);
  transition: transform var(--speed) var(--ease);
}

.app-icon:hover {
  transform: translateY(-4px) scale(1.02);
}

.feature-list {
  list-style: none;
  display: grid;
  gap: 12px;
  margin-top: 24px;
}

.feature-list li {
  display: flex;
  align-items: flex-start;
  gap: 12px;
  color: var(--text-muted);
}

.feature-list li::before {
  content: "";
  flex-shrink: 0;
  width: 20px;
  height: 20px;
  margin-top: 3px;
  border-radius: 50%;
  background: var(--accent-soft) url('data:image/svg+xml;utf8,<svg xmlns="http://www.w3.org/2000/svg" viewBox="0 0 20 20"><path d="M5 10.5l3.2 3.2L15 7" fill="none" stroke="%234ade80" stroke-width="2.2" stroke-linecap="round" stroke-linejoin="round"/></svg>') center / 14px no-repeat;
}

/* Blackjack hero layout */
.product-hero {
  display: grid;
  grid-template-columns: auto 1fr;
  gap: clamp(24px, 4vw, 44px);
  align-items: center;
}

/* --------------------------------------------------------------------------
   10. iPhone screenshot placeholders
   -------------------------------------------------------------------------- */
.phones {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: clamp(24px, 4vw, 48px);
}

.phone {
  width: min(250px, 78vw);
  text-align: center;
}

.phone-frame {
  aspect-ratio: 9 / 19;
  padding: 9px;
  background: linear-gradient(180deg, #171c19, #0a0e0c);
  border: 1px solid var(--border-strong);
  border-radius: 40px;
  box-shadow: 0 30px 70px -30px rgba(0, 0, 0, 0.9);
  transition: transform var(--speed) var(--ease);
}

.phone:hover .phone-frame {
  transform: translateY(-6px);
}

.phone-screen {
  position: relative;
  height: 100%;
  display: flex;
  flex-direction: column;
  gap: 12px;
  padding: 44px 16px 20px;
  background: linear-gradient(175deg, #0d1a12, #070b09 70%);
  border-radius: 32px;
  overflow: hidden;
  text-align: left;
}

/* Notch / Dynamic Island */
.phone-screen::before {
  content: "";
  position: absolute;
  top: 12px;
  left: 50%;
  transform: translateX(-50%);
  width: 74px;
  height: 20px;
  border-radius: var(--radius-pill);
  background: #000;
  border: 1px solid rgba(255, 255, 255, 0.06);
}

.phone-caption {
  margin-top: 16px;
  font-size: 0.88rem;
  color: var(--text-muted);
}

/* --- Mock UI atoms (decorative only, aria-hidden) --- */
.mock-status {
  display: flex;
  justify-content: space-between;
  gap: 8px;
}

.mock-pill {
  padding: 4px 10px;
  font-size: 0.66rem;
  font-weight: 600;
  color: var(--text-muted);
  background: var(--surface-strong);
  border: 1px solid var(--border);
  border-radius: var(--radius-pill);
}

.mock-label {
  font-size: 0.68rem;
  font-weight: 500;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  color: var(--text-faint);
}

.mock-hand {
  display: flex;
  gap: 8px;
}

.mock-card {
  display: grid;
  place-items: center;
  width: 40px;
  height: 56px;
  font-size: 0.78rem;
  font-weight: 700;
  color: #10241a;
  background: linear-gradient(170deg, #ffffff, #dfe9e2);
  border-radius: 7px;
  box-shadow: 0 6px 14px -6px rgba(0, 0, 0, 0.7);
}

.mock-card.red {
  color: #c0392b;
}

.mock-card.down {
  background: repeating-linear-gradient(45deg, #14532d, #14532d 5px, #166534 5px, #166534 10px);
  border: 1px solid rgba(255, 255, 255, 0.12);
}

.mock-actions {
  display: flex;
  gap: 8px;
  margin-top: auto;
}

.mock-btn {
  flex: 1;
  padding: 10px 0;
  text-align: center;
  font-size: 0.74rem;
  font-weight: 600;
  color: var(--text-muted);
  background: var(--surface-strong);
  border: 1px solid var(--border);
  border-radius: var(--radius-pill);
}

.mock-btn.primary {
  color: var(--on-accent);
  background: linear-gradient(135deg, #4ade80, #22c55e);
  border-color: transparent;
}

.mock-title {
  font-family: var(--font-display);
  font-size: 0.95rem;
  font-weight: 700;
}

.mock-big {
  font-family: var(--font-display);
  font-size: 2rem;
  font-weight: 700;
  color: var(--accent);
  line-height: 1.1;
}

.mock-big span {
  display: block;
  font-family: var(--font-body);
  font-size: 0.7rem;
  font-weight: 500;
  color: var(--text-faint);
  letter-spacing: 0.05em;
  text-transform: uppercase;
  margin-top: 4px;
}

.mock-stat {
  display: grid;
  gap: 6px;
}

.mock-stat-row {
  display: flex;
  justify-content: space-between;
  font-size: 0.7rem;
  color: var(--text-muted);
}

.mock-bar {
  height: 6px;
  border-radius: var(--radius-pill);
  background: var(--surface-strong);
  overflow: hidden;
}

.mock-bar span {
  display: block;
  height: 100%;
  border-radius: inherit;
  background: linear-gradient(90deg, #22c55e, #4ade80);
}

.mock-question {
  padding: 14px;
  font-size: 0.8rem;
  font-weight: 600;
  text-align: center;
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: var(--radius-md);
}

.mock-choices {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 8px;
}

.mock-toast {
  margin-top: auto;
  padding: 10px 12px;
  font-size: 0.68rem;
  font-weight: 600;
  color: var(--accent);
  background: var(--accent-soft);
  border: 1px solid rgba(74, 222, 128, 0.3);
  border-radius: var(--radius-md);
}

/* --------------------------------------------------------------------------
   11. FAQ (native <details>)
   -------------------------------------------------------------------------- */
.faq {
  display: grid;
  gap: 12px;
  max-width: 760px;
  margin-inline: auto;
}

.faq-item {
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: var(--radius-md);
  backdrop-filter: blur(10px);
  -webkit-backdrop-filter: blur(10px);
  transition: border-color var(--speed) ease;
}

.faq-item[open] {
  border-color: var(--border-strong);
}

.faq-item summary {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
  padding: 18px 22px;
  font-weight: 600;
  cursor: pointer;
  list-style: none;
}

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

.faq-item summary:hover {
  color: var(--accent);
}

.faq-icon {
  position: relative;
  flex-shrink: 0;
  width: 18px;
  height: 18px;
}

.faq-icon::before,
.faq-icon::after {
  content: "";
  position: absolute;
  inset: 0;
  margin: auto;
  background: var(--accent);
  border-radius: 2px;
  transition: transform var(--speed) var(--ease);
}

.faq-icon::before { width: 14px; height: 2px; }
.faq-icon::after  { width: 2px;  height: 14px; }

.faq-item[open] .faq-icon::after {
  transform: rotate(90deg);
}

.faq-body {
  padding: 0 22px 20px;
  color: var(--text-muted);
  font-size: 0.95rem;
}

.faq-body a {
  font-weight: 500;
}

/* --------------------------------------------------------------------------
   12. Forms
   -------------------------------------------------------------------------- */
.form-card {
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: var(--radius-lg);
  padding: clamp(24px, 4vw, 40px);
  backdrop-filter: blur(12px);
  -webkit-backdrop-filter: blur(12px);
}

.form-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 20px;
}

.form-field {
  display: grid;
  gap: 8px;
}

.form-field.full {
  grid-column: 1 / -1;
}

.form-field label {
  font-size: 0.88rem;
  font-weight: 600;
}

.form-field input,
.form-field select,
.form-field textarea {
  width: 100%;
  padding: 13px 16px;
  font: inherit;
  font-size: 0.95rem;
  color: var(--text);
  background: rgba(0, 0, 0, 0.28);
  border: 1px solid var(--border);
  border-radius: var(--radius-sm);
  transition: border-color var(--speed) ease, box-shadow var(--speed) ease;
}

.form-field textarea {
  resize: vertical;
  min-height: 140px;
}

.form-field input:focus,
.form-field select:focus,
.form-field textarea:focus {
  outline: none;
  border-color: var(--accent);
  box-shadow: 0 0 0 3px var(--accent-soft);
}

.form-field input[aria-invalid="true"],
.form-field textarea[aria-invalid="true"] {
  border-color: var(--danger);
}

.form-error {
  font-size: 0.82rem;
  color: var(--danger);
  min-height: 1.1em;
}

.form-note {
  margin-top: 16px;
  font-size: 0.84rem;
  color: var(--text-faint);
}

.form-success {
  display: none;
  margin-top: 20px;
  padding: 16px 20px;
  color: var(--accent);
  background: var(--accent-soft);
  border: 1px solid rgba(74, 222, 128, 0.3);
  border-radius: var(--radius-md);
  font-weight: 500;
}

.form-success.visible {
  display: block;
}

/* --------------------------------------------------------------------------
   13. Long-form prose (privacy policy, legal)
   -------------------------------------------------------------------------- */
.prose {
  max-width: 760px;
}

.prose h2 {
  font-size: 1.45rem;
  margin: 44px 0 14px;
}

.prose h2:first-of-type {
  margin-top: 0;
}

.prose p,
.prose li {
  color: var(--text-muted);
  margin-bottom: 14px;
}

.prose ul {
  padding-left: 22px;
  margin-bottom: 14px;
}

.prose li {
  margin-bottom: 8px;
}

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

.updated-date {
  font-size: 0.9rem;
  color: var(--text-faint);
}

/* --------------------------------------------------------------------------
   14. Info / contact blocks
   -------------------------------------------------------------------------- */
.info-cards {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: clamp(16px, 2.5vw, 24px);
}

.info-card h3 {
  font-size: 1.05rem;
}

.info-card .info-value {
  display: inline-block;
  margin-top: 6px;
  font-weight: 500;
  word-break: break-word;
}

.social-row {
  display: flex;
  gap: 12px;
  margin-top: 18px;
}

.social-link {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 44px;
  height: 44px;
  color: var(--text-muted);
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: var(--radius-md);
  transition: color var(--speed) ease,
              border-color var(--speed) ease,
              transform var(--speed) var(--ease);
}

.social-link:hover {
  color: var(--accent);
  border-color: var(--border-strong);
  transform: translateY(-3px);
}

.social-link svg {
  width: 19px;
  height: 19px;
  fill: currentColor;
}

/* --------------------------------------------------------------------------
   15. Footer
   -------------------------------------------------------------------------- */
.site-footer {
  border-top: 1px solid var(--border);
  background: var(--bg-elevated);
  padding: clamp(48px, 6vw, 72px) 0 32px;
  margin-top: clamp(48px, 7vw, 96px);
}

.footer-grid {
  display: grid;
  grid-template-columns: 2fr 1fr 1fr 1fr;
  gap: clamp(28px, 4vw, 48px);
  padding-bottom: 40px;
  border-bottom: 1px solid var(--border);
}

.footer-brand p {
  margin: 14px 0 10px;
  font-size: 0.92rem;
  color: var(--text-muted);
  max-width: 34ch;
}

.footer-email {
  font-size: 0.92rem;
  font-weight: 500;
}

.footer-col h3 {
  font-size: 0.8rem;
  font-weight: 600;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  color: var(--text-faint);
  margin-bottom: 16px;
}

.footer-col ul {
  list-style: none;
  display: grid;
  gap: 10px;
}

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

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

.footer-bottom {
  display: flex;
  flex-wrap: wrap;
  justify-content: space-between;
  gap: 12px;
  padding-top: 28px;
  font-size: 0.85rem;
  color: var(--text-faint);
}

/* --------------------------------------------------------------------------
   16. Scroll-reveal animation (progressively enhanced — JS adds html.js)
   -------------------------------------------------------------------------- */
html.js .reveal {
  opacity: 0;
  transform: translateY(26px);
  transition: opacity 0.7s var(--ease), transform 0.7s var(--ease);
  transition-delay: var(--reveal-delay, 0s);
}

html.js .reveal.is-visible {
  opacity: 1;
  transform: none;
}

/* --------------------------------------------------------------------------
   17. Responsive
   -------------------------------------------------------------------------- */
@media (max-width: 900px) {
  .grid-3,
  .info-cards {
    grid-template-columns: 1fr 1fr;
  }

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

@media (max-width: 820px) {
  .nav-toggle {
    display: flex;
  }

  .nav-menu {
    position: absolute;
    top: var(--header-h);
    left: 0;
    right: 0;
    flex-direction: column;
    align-items: stretch;
    gap: 8px;
    padding: 16px clamp(20px, 4vw, 32px) 24px;
    background: rgba(7, 11, 9, 0.94);
    backdrop-filter: blur(20px);
    -webkit-backdrop-filter: blur(20px);
    border-bottom: 1px solid var(--border);
    display: none;
  }

  .nav-menu.open {
    display: flex;
  }

  .nav-links {
    flex-direction: column;
    align-items: stretch;
    gap: 2px;
  }

  .nav-links a {
    display: block;
    padding: 13px 16px;
    font-size: 1rem;
  }

  .nav-cta {
    margin-top: 8px;
  }
}

@media (max-width: 680px) {
  .grid-2,
  .grid-3,
  .info-cards,
  .form-grid {
    grid-template-columns: 1fr;
  }

  .product-hero {
    grid-template-columns: 1fr;
    text-align: center;
    justify-items: center;
  }

  .product-hero .btn-row {
    justify-content: center;
  }

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

  .footer-bottom {
    flex-direction: column;
  }
}

/* --------------------------------------------------------------------------
   18. Reduced motion
   -------------------------------------------------------------------------- */
@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;
  }

  html.js .reveal {
    opacity: 1;
    transform: none;
  }
}
