/* =========================================================
   Omica Poker Club — Design System
   Adapted from DESIGN.md (Apple reference) to a LIGHT theme.
   Tokens, typography scale, radii and color rationing preserved.
   ========================================================= */

:root {
  /* ---- Base palette (from DESIGN.md) ---- */
  --color-true-black: #000000;
  --color-charcoal: #1d1d1f;
  --color-smoke: #333336;
  --color-graphite: #424245;
  --color-ash-gray: #86868b;
  --color-platinum: #cccccc;
  --color-silk: #f5f5f7;
  --color-pure-white: #ffffff;
  --color-apple-blue: #0071e3;
  --color-link-blue: #2997ff;
  --color-deep-link: #0066cc;
  --color-ember: #b64400;

  /* ---- Light surfaces (inverted elevation model) ---- */
  --surface-canvas: #ffffff;
  --surface-muted: #f5f5f7;
  --surface-sunken: #ededf0;
  --surface-card: #ffffff;
  --surface-glass: rgba(255, 255, 255, 0.72);

  --text-primary: #1d1d1f;
  --text-secondary: #424245;
  --text-muted: #6e6e73;
  --hairline: rgba(134, 134, 139, 0.28);
  --hairline-strong: rgba(134, 134, 139, 0.45);

  --accent: #0071e3;
  --accent-hover: #0077ed;
  --link: #0066cc;
  --badge-accent: #b64400;

  /* ---- Typography ---- */
  --font-display: 'SF Pro Display', ui-sans-serif, system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, Inter, sans-serif;
  --font-text: 'SF Pro Text', ui-sans-serif, system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, Inter, sans-serif;

  --font-weight-regular: 400;
  --font-weight-semibold: 600;

  --text-caption: 12px;
  --text-small: 14px;
  --text-body-sm: 17px;
  --text-body: 21px;
  --text-subheading: clamp(22px, 3vw, 28px);
  --text-heading-sm: clamp(28px, 4.4vw, 40px);
  --text-heading: clamp(32px, 6vw, 56px);
  --text-heading-lg: clamp(36px, 7vw, 64px);
  --text-display: clamp(38px, 8vw, 80px);

  /* ---- Spacing ---- */
  --spacing-4: 4px;
  --spacing-8: 8px;
  --spacing-12: 12px;
  --spacing-16: 16px;
  --spacing-20: 20px;
  --spacing-24: 24px;
  --spacing-28: 28px;
  --spacing-32: 32px;
  --spacing-40: 40px;
  --spacing-44: 44px;
  --spacing-48: 48px;
  --spacing-60: 60px;
  --spacing-80: 80px;
  --spacing-104: 104px;
  --spacing-144: 144px;

  /* ---- Layout ---- */
  --page-max-width: 1440px;
  --content-width: 1120px;
  --section-gap: clamp(56px, 8vw, 104px);
  --card-padding: 28px;

  /* ---- Radii ---- */
  --radius-links: 10px;
  --radius-cards: 28px;
  --radius-inputs: 210px;
  --radius-buttons: 9999px;
  --radius-nav: 980px;

  --header-height: 60px;
}

/* =========================================================
   Reset / base
   ========================================================= */

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

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

body {
  margin: 0;
  background: var(--surface-canvas);
  color: var(--text-primary);
  font-family: var(--font-text);
  font-size: var(--text-body-sm);
  line-height: 1.47;
  letter-spacing: -0.022em;
  font-weight: var(--font-weight-regular);
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
  overflow-x: hidden;
}

body.is-locked { overflow: hidden; }

p, li, h1, h2, h3, h4, a, td, th { overflow-wrap: break-word; }

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

h1, h2, h3, h4 {
  font-family: var(--font-display);
  font-weight: var(--font-weight-semibold);
  margin: 0;
  color: var(--text-primary);
}

h1 { font-size: var(--text-display); line-height: 1.05; letter-spacing: -0.015em; }
h2 { font-size: var(--text-heading-sm); line-height: 1.1; letter-spacing: -0.005em; }
h3 { font-size: var(--text-subheading); line-height: 1.14; letter-spacing: 0.007em; }
h4 { font-size: 19px; line-height: 1.21; letter-spacing: 0.012em; }

p { margin: 0; }

a {
  color: var(--link);
  text-decoration: none;
  border-radius: var(--radius-links);
}

a:hover { text-decoration: underline; }

ul, ol { margin: 0; padding: 0; }

button { font-family: inherit; }

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

.skip-link {
  position: absolute;
  left: -9999px;
  top: 0;
  background: var(--accent);
  color: #fff;
  padding: 10px 20px;
  border-radius: var(--radius-buttons);
  z-index: 200;
}

.skip-link:focus {
  left: 16px;
  top: 12px;
}

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

/* =========================================================
   Layout helpers
   ========================================================= */

.container {
  width: 100%;
  max-width: var(--content-width);
  margin-inline: auto;
  padding-inline: clamp(20px, 5vw, 40px);
}

.section {
  padding-block: var(--section-gap);
}

.section--muted { background: var(--surface-muted); }

.section-head {
  max-width: 720px;
  margin-bottom: clamp(32px, 5vw, 60px);
}

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

.eyebrow {
  display: inline-block;
  font-size: var(--text-caption);
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: var(--text-muted);
  margin-bottom: var(--spacing-16);
}

.lead {
  font-size: var(--text-body-sm);
  color: var(--text-muted);
  margin-top: var(--spacing-20);
}

.grid { display: grid; gap: var(--spacing-24); }

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

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

/* =========================================================
   Buttons
   ========================================================= */

.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: var(--spacing-8);
  border: 0;
  cursor: pointer;
  font-size: var(--text-body-sm);
  letter-spacing: -0.022em;
  line-height: 1.2;
  padding: 13px 24px;
  border-radius: var(--radius-buttons);
  transition: background-color .2s ease, color .2s ease, opacity .2s ease, transform .2s ease;
  text-align: center;
}

.btn:hover { text-decoration: none; }

.btn--primary {
  background: var(--accent);
  color: #ffffff;
}

.btn--primary:hover { background: var(--accent-hover); }

.btn--ghost {
  background: transparent;
  color: var(--text-primary);
  box-shadow: inset 0 0 0 1px var(--hairline-strong);
}

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

.btn--block { width: 100%; }

.link-arrow {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  color: var(--link);
  font-size: var(--text-body-sm);
}

.link-arrow::after { content: "→"; }
.link-arrow:hover { text-decoration: underline; }

/* =========================================================
   Header
   ========================================================= */

.header {
  position: sticky;
  top: 0;
  z-index: 100;
  background: rgba(255, 255, 255, 0.82);
  backdrop-filter: saturate(1.6) blur(20px);
  -webkit-backdrop-filter: saturate(1.6) blur(20px);
  border-bottom: 1px solid transparent;
  transition: border-color .3s ease, background-color .3s ease;
}

.header.is-scrolled { border-bottom-color: var(--hairline); }

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

.logo {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  color: var(--text-primary);
  font-family: var(--font-display);
  font-weight: var(--font-weight-semibold);
  font-size: 19px;
  letter-spacing: -0.01em;
  line-height: 1;
}

.logo:hover { text-decoration: none; }

.logo__mark { width: 32px; height: 32px; flex: none; }

.logo__text small {
  display: block;
  font-family: var(--font-text);
  font-weight: 400;
  font-size: 11px;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: var(--text-muted);
  margin-top: 3px;
}

.nav { display: flex; align-items: center; gap: var(--spacing-8); }

.nav__list {
  display: flex;
  align-items: center;
  gap: var(--spacing-4);
  list-style: none;
}

.nav__link {
  display: inline-block;
  padding: 8px 14px;
  font-size: var(--text-small);
  color: var(--text-secondary);
  border-radius: var(--radius-buttons);
  transition: color .2s ease, background-color .2s ease;
}

.nav__link:hover,
.nav__link.is-active {
  color: var(--text-primary);
  background: var(--surface-muted);
  text-decoration: none;
}

.nav__cta { margin-left: var(--spacing-12); padding: 9px 20px; }

.burger {
  display: none;
  width: 42px;
  height: 42px;
  border: 0;
  background: transparent;
  border-radius: var(--radius-buttons);
  cursor: pointer;
  padding: 0;
  position: relative;
}

.burger span {
  position: absolute;
  left: 11px;
  width: 20px;
  height: 1.5px;
  background: var(--text-primary);
  border-radius: 2px;
  transition: transform .3s ease, opacity .2s ease;
}

.burger span:nth-child(1) { top: 16px; }
.burger span:nth-child(2) { top: 25px; }

.burger[aria-expanded="true"] span:nth-child(1) { transform: translateY(4.5px) rotate(45deg); }
.burger[aria-expanded="true"] span:nth-child(2) { transform: translateY(-4.5px) rotate(-45deg); }

@media (max-width: 860px) {
  .burger { display: block; }

  .nav {
    position: fixed;
    inset: var(--header-height) 0 auto 0;
    display: block;
    background: var(--surface-canvas);
    border-bottom: 1px solid var(--hairline);
    padding: var(--spacing-16) clamp(20px, 5vw, 40px) var(--spacing-32);
    transform: translateY(-12px);
    opacity: 0;
    visibility: hidden;
    transition: opacity .25s ease, transform .25s ease, visibility .25s;
    max-height: calc(100dvh - var(--header-height));
    overflow-y: auto;
  }

  .nav.is-open { opacity: 1; visibility: visible; transform: translateY(0); }

  .nav__list { flex-direction: column; align-items: stretch; gap: 0; }

  .nav__link {
    padding: 14px 4px;
    font-size: var(--text-body-sm);
    border-radius: 0;
    border-bottom: 1px solid var(--hairline);
  }

  .nav__link:hover, .nav__link.is-active { background: transparent; }

  .nav__cta { margin: var(--spacing-20) 0 0; width: 100%; }
}

/* =========================================================
   Hero
   ========================================================= */

.hero {
  position: relative;
  padding-block: clamp(48px, 8vw, 96px) clamp(56px, 9vw, 104px);
  background:
    radial-gradient(120% 90% at 80% 0%, #f7f4ef 0%, rgba(247, 244, 239, 0) 60%),
    linear-gradient(180deg, #ffffff 0%, var(--surface-muted) 100%);
  overflow: hidden;
}

.hero__grid {
  display: grid;
  gap: clamp(40px, 6vw, 64px);
  align-items: center;
}

@media (min-width: 980px) {
  .hero__grid { grid-template-columns: minmax(0, 1.05fr) minmax(420px, 0.95fr); }
}

.hero h1 {
  margin-bottom: var(--spacing-24);
  font-size: clamp(38px, 6.4vw, 68px);
  letter-spacing: -0.013em;
}

.hero__text p {
  font-size: var(--text-body-sm);
  color: var(--text-secondary);
  max-width: 56ch;
}

.hero__actions {
  display: flex;
  flex-wrap: wrap;
  gap: var(--spacing-12);
  margin-top: var(--spacing-32);
}

.hero__facts {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(138px, 1fr));
  gap: clamp(20px, 3vw, 32px);
  margin-top: clamp(32px, 5vw, 48px);
  padding-top: var(--spacing-28);
  border-top: 1px solid var(--hairline);
  list-style: none;
}

.hero__facts strong {
  display: block;
  font-family: var(--font-display);
  font-weight: var(--font-weight-semibold);
  font-size: 28px;
  letter-spacing: 0.004em;
  line-height: 1.14;
}

.hero__facts span {
  font-size: var(--text-small);
  color: var(--text-muted);
}

/* Hero visual */
.hero__visual {
  position: relative;
  border-radius: var(--radius-cards);
  overflow: hidden;
  background: #efe9e0;
  aspect-ratio: 4 / 3;
}

.hero__visual svg { width: 100%; height: 100%; }

/* =========================================================
   Forms
   ========================================================= */

.form-card {
  background: var(--surface-card);
  border: 1px solid var(--hairline);
  border-radius: var(--radius-cards);
  padding: clamp(24px, 4vw, 36px);
}

.form-card h2,
.form-card h3 { margin-bottom: var(--spacing-8); }

.form-card__note {
  font-size: var(--text-small);
  color: var(--text-muted);
  margin-bottom: var(--spacing-24);
}

.form { display: grid; gap: var(--spacing-16); }

.field { display: grid; gap: 7px; }

.field label {
  font-size: var(--text-small);
  color: var(--text-secondary);
}

.field input,
.field select,
.field textarea {
  width: 100%;
  font-family: var(--font-text);
  font-size: var(--text-body-sm);
  letter-spacing: -0.022em;
  color: var(--text-primary);
  background: var(--surface-muted);
  border: 1px solid transparent;
  padding: 13px 20px;
  border-radius: var(--radius-inputs);
  transition: border-color .2s ease, background-color .2s ease;
  appearance: none;
}

.field select {
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='12' height='8' viewBox='0 0 12 8'%3E%3Cpath d='M1 1.5 6 6.5l5-5' fill='none' stroke='%236e6e73' stroke-width='1.5' stroke-linecap='round'/%3E%3C/svg%3E");
  background-repeat: no-repeat;
  background-position: right 20px center;
  padding-right: 46px;
}

.field textarea {
  border-radius: 22px;
  min-height: 120px;
  resize: vertical;
  line-height: 1.47;
}

.field input::placeholder,
.field textarea::placeholder { color: var(--color-ash-gray); }

.field input:focus,
.field select:focus,
.field textarea:focus {
  outline: none;
  background: var(--surface-canvas);
  border-color: var(--accent);
}

.field.has-error input,
.field.has-error select,
.field.has-error textarea { border-color: var(--badge-accent); }

.field__error {
  font-size: var(--text-caption);
  color: var(--badge-accent);
  min-height: 14px;
}

.form__consent {
  display: flex;
  align-items: flex-start;
  gap: 10px;
  font-size: var(--text-caption);
  color: var(--text-muted);
  line-height: 1.5;
}

.form__consent input {
  width: 16px;
  height: 16px;
  margin-top: 2px;
  flex: none;
  accent-color: var(--accent);
}

.form__status {
  font-size: var(--text-small);
  border-radius: var(--radius-links);
  line-height: 1.45;
}

.form__status:empty { display: none; }

.form__status.is-success {
  color: #1d1d1f;
  background: var(--surface-muted);
  padding: 14px 18px;
  border-left: 3px solid var(--accent);
}

.form__status.is-error {
  color: var(--badge-accent);
  padding: 4px 0;
}

/* =========================================================
   Cards
   ========================================================= */

.card {
  background: var(--surface-card);
  border: 1px solid var(--hairline);
  border-radius: var(--radius-cards);
  padding: var(--card-padding);
  display: flex;
  flex-direction: column;
  gap: var(--spacing-12);
  height: 100%;
}

.section--muted .card { border-color: transparent; }

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

.card__icon {
  width: 44px;
  height: 44px;
  border-radius: var(--radius-buttons);
  background: var(--surface-muted);
  display: grid;
  place-items: center;
  margin-bottom: var(--spacing-4);
}

.section--muted .card__icon { background: #ffffff; }

.card__icon svg { width: 22px; height: 22px; }

.card__index {
  font-family: var(--font-display);
  font-size: var(--text-small);
  color: var(--accent);
  letter-spacing: 0.08em;
}

/* Split feature block */
.split {
  display: grid;
  gap: clamp(32px, 5vw, 64px);
  align-items: center;
}

@media (min-width: 980px) {
  .split { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .split--reverse .split__visual { order: -1; }
}

.split__visual {
  border-radius: var(--radius-cards);
  overflow: hidden;
  background: var(--surface-muted);
  aspect-ratio: 5 / 4;
}

.split__visual svg { width: 100%; height: 100%; }

.checklist {
  list-style: none;
  display: grid;
  gap: var(--spacing-16);
  margin-top: var(--spacing-28);
}

.checklist li {
  display: grid;
  grid-template-columns: 22px 1fr;
  gap: var(--spacing-12);
  align-items: start;
  font-size: var(--text-body-sm);
  color: var(--text-muted);
}

.checklist strong {
  display: block;
  color: var(--text-primary);
  font-weight: 600;
  margin-bottom: 2px;
}

.checklist svg { width: 22px; height: 22px; margin-top: 2px; }

/* =========================================================
   Materials / wood swatches
   ========================================================= */

.wood-grid {
  display: grid;
  gap: var(--spacing-20);
  grid-template-columns: repeat(auto-fit, minmax(210px, 1fr));
}

.wood {
  background: var(--surface-card);
  border-radius: var(--radius-cards);
  border: 1px solid var(--hairline);
  overflow: hidden;
  display: flex;
  flex-direction: column;
}

.section--muted .wood { border-color: transparent; }

.wood__swatch { height: 132px; }

.wood__body { padding: 22px var(--card-padding) var(--card-padding); }

.wood__body h3 { font-size: 19px; letter-spacing: 0.012em; margin-bottom: 6px; }

.wood__body p { font-size: var(--text-small); color: var(--text-muted); }

.wood__tag {
  display: inline-block;
  margin-top: var(--spacing-16);
  font-size: var(--text-caption);
  letter-spacing: 0.1em;
  text-transform: uppercase;
  color: var(--text-muted);
}

/* =========================================================
   Process steps
   ========================================================= */

.steps {
  list-style: none;
  display: grid;
  gap: var(--spacing-24);
  counter-reset: step;
}

@media (min-width: 760px) { .steps { grid-template-columns: repeat(2, 1fr); } }
@media (min-width: 1060px) { .steps { grid-template-columns: repeat(4, 1fr); } }

.steps li {
  counter-increment: step;
  padding-top: var(--spacing-24);
  border-top: 1px solid var(--hairline-strong);
}

.steps li::before {
  content: "0" counter(step);
  display: block;
  font-family: var(--font-display);
  font-size: var(--text-small);
  color: var(--accent);
  letter-spacing: 0.08em;
  margin-bottom: var(--spacing-12);
}

.steps h3 { font-size: 19px; letter-spacing: 0.012em; margin-bottom: 8px; }

.steps p { font-size: var(--text-small); color: var(--text-muted); }

/* =========================================================
   Gallery
   ========================================================= */

.gallery {
  display: grid;
  gap: var(--spacing-20);
  grid-template-columns: 1fr;
}

@media (min-width: 760px) {
  .gallery { grid-template-columns: repeat(2, minmax(0, 1fr)); }
}

.gallery__item {
  border-radius: var(--radius-cards);
  overflow: hidden;
  background: var(--surface-card);
  position: relative;
  display: flex;
  flex-direction: column;
  margin: 0;
}

.gallery__item svg {
  width: 100%;
  height: auto;
  aspect-ratio: 16 / 10;
  display: block;
  background: #eae6e0;
}

.gallery__caption {
  padding: 20px var(--card-padding) var(--card-padding);
  background: var(--surface-card);
  flex: 1;
}

.gallery__caption h3 { font-size: 19px; letter-spacing: 0.012em; margin-bottom: 4px; }
.gallery__caption p { font-size: var(--text-small); color: var(--text-muted); }

.gallery__item--wide { grid-column: span 1; }

@media (min-width: 900px) { .gallery__item--wide { grid-column: span 2; } }

/* =========================================================
   Testimonials
   ========================================================= */

.quote {
  margin: 0;
  background: var(--surface-card);
  border: 1px solid var(--hairline);
  border-radius: var(--radius-cards);
  padding: var(--card-padding);
  display: flex;
  flex-direction: column;
  gap: var(--spacing-20);
  height: 100%;
}

.section--muted .quote { border-color: transparent; }

.quote blockquote {
  margin: 0;
  font-size: var(--text-body-sm);
  color: var(--text-secondary);
  line-height: 1.5;
}

.quote figcaption {
  display: flex;
  align-items: center;
  gap: 12px;
  margin-top: auto;
}

.quote__avatar {
  width: 40px;
  height: 40px;
  border-radius: 999px;
  background: var(--surface-sunken);
  display: grid;
  place-items: center;
  font-family: var(--font-display);
  font-weight: 600;
  font-size: 15px;
  color: var(--text-secondary);
  flex: none;
}

.quote__name { font-size: var(--text-small); color: var(--text-primary); }
.quote__role { font-size: var(--text-caption); color: var(--text-muted); }

/* =========================================================
   FAQ
   ========================================================= */

.faq { max-width: 820px; margin-inline: auto; }

.faq__item { border-bottom: 1px solid var(--hairline); }

.faq__q {
  width: 100%;
  background: none;
  border: 0;
  padding: 24px 44px 24px 0;
  text-align: left;
  cursor: pointer;
  position: relative;
  font-family: var(--font-display);
  font-weight: var(--font-weight-semibold);
  font-size: 19px;
  letter-spacing: 0.012em;
  color: var(--text-primary);
  line-height: 1.3;
}

.faq__q::after {
  content: "";
  position: absolute;
  right: 8px;
  top: 50%;
  width: 12px;
  height: 12px;
  margin-top: -6px;
  border-right: 1.5px solid var(--text-muted);
  border-bottom: 1.5px solid var(--text-muted);
  transform: rotate(45deg);
  transition: transform .3s ease;
}

.faq__q[aria-expanded="true"]::after { transform: rotate(-135deg); }

.faq__a {
  display: grid;
  grid-template-rows: 0fr;
  transition: grid-template-rows .3s ease;
}

.faq__a > div { overflow: hidden; }

.faq__item.is-open .faq__a { grid-template-rows: 1fr; }

.faq__a p {
  font-size: var(--text-body-sm);
  color: var(--text-muted);
  padding-bottom: 24px;
  max-width: 68ch;
}

/* =========================================================
   Contact
   ========================================================= */

.contact__grid {
  display: grid;
  gap: clamp(32px, 5vw, 60px);
  align-items: start;
}

@media (min-width: 980px) {
  .contact__grid { grid-template-columns: minmax(0, 0.9fr) minmax(420px, 1fr); }
}

.contact-list { list-style: none; display: grid; gap: var(--spacing-28); margin-top: var(--spacing-32); }

.contact-list dt,
.contact-list h3 {
  font-size: var(--text-caption);
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: var(--text-muted);
  font-family: var(--font-text);
  font-weight: 400;
  margin-bottom: 6px;
}

.contact-list dd { margin: 0; }

.contact-list p, .contact-list a { font-size: var(--text-body-sm); color: var(--text-primary); line-height: 1.5; }
.contact-list a { color: var(--link); }

/* =========================================================
   CTA band
   ========================================================= */

.cta-band {
  background: var(--color-charcoal);
  color: var(--color-silk);
  border-radius: var(--radius-cards);
  padding: clamp(36px, 6vw, 64px);
  text-align: center;
}

.cta-band h2 { color: var(--color-silk); }
.cta-band p { color: var(--color-platinum); margin: var(--spacing-16) auto 0; max-width: 56ch; }
.cta-band .btn { margin-top: var(--spacing-32); }

/* =========================================================
   Footer
   ========================================================= */

.footer {
  background: var(--surface-muted);
  border-top: 1px solid var(--hairline);
  padding-block: clamp(48px, 7vw, 80px) var(--spacing-32);
  font-size: var(--text-small);
  color: var(--text-muted);
}

.footer__grid {
  display: grid;
  gap: clamp(32px, 5vw, 48px);
}

@media (min-width: 760px) { .footer__grid { grid-template-columns: 1.5fr 1fr 1fr; } }

.footer p { line-height: 1.55; }

.footer h3 {
  font-family: var(--font-text);
  font-weight: 400;
  font-size: var(--text-caption);
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: var(--text-primary);
  margin-bottom: var(--spacing-16);
}

.footer__list { list-style: none; display: grid; gap: 10px; }

.footer__list a { color: var(--text-muted); }
.footer__list a:hover { color: var(--text-primary); }

.footer__brand .logo { margin-bottom: var(--spacing-20); }

.footer__legal {
  margin-top: clamp(36px, 5vw, 56px);
  padding-top: var(--spacing-24);
  border-top: 1px solid var(--hairline);
  display: flex;
  flex-wrap: wrap;
  gap: var(--spacing-12) var(--spacing-24);
  justify-content: space-between;
  font-size: var(--text-caption);
}

.footer__owner {
  margin-top: var(--spacing-20);
  padding: var(--spacing-20);
  background: #ffffff;
  border-radius: 18px;
  line-height: 1.55;
}

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

/* =========================================================
   Legal pages
   ========================================================= */

.legal-hero {
  padding-block: clamp(48px, 7vw, 88px) clamp(28px, 4vw, 44px);
  background: var(--surface-muted);
}

.legal-hero .container { max-width: 820px; }

.legal-hero h1 { font-size: var(--text-heading-sm); }

.legal-hero p { color: var(--text-muted); margin-top: var(--spacing-16); }

.legal {
  padding-block: clamp(40px, 6vw, 72px);
  max-width: 820px;
}

.legal h2 {
  font-size: var(--text-subheading);
  margin-top: clamp(36px, 5vw, 52px);
  margin-bottom: var(--spacing-16);
}

.legal h3 {
  font-size: 19px;
  letter-spacing: 0.012em;
  margin-top: var(--spacing-32);
  margin-bottom: var(--spacing-12);
}

.legal p, .legal li {
  font-size: var(--text-body-sm);
  color: var(--text-secondary);
  line-height: 1.55;
}

.legal p + p { margin-top: var(--spacing-16); }

.legal ul, .legal ol {
  margin: var(--spacing-16) 0 0;
  padding-left: 22px;
  display: grid;
  gap: 10px;
}

.legal ul li { list-style: disc; }
.legal ol li { list-style: decimal; }

.legal table {
  width: 100%;
  border-collapse: collapse;
  margin-top: var(--spacing-20);
  font-size: var(--text-small);
}

.legal th, .legal td {
  text-align: left;
  padding: 14px 16px;
  border-bottom: 1px solid var(--hairline);
  vertical-align: top;
}

.legal th { color: var(--text-primary); font-weight: 600; }
.legal td { color: var(--text-muted); }

.legal__box {
  margin-top: var(--spacing-24);
  padding: var(--card-padding);
  background: var(--surface-muted);
  border-radius: var(--radius-cards);
}

.legal__box p { color: var(--text-primary); }

.table-scroll { overflow-x: auto; }

/* =========================================================
   Reveal animation
   ========================================================= */

.reveal {
  opacity: 0;
  transform: translateY(18px);
  transition: opacity .7s ease, transform .7s ease;
}

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

@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  .reveal { opacity: 1; transform: none; transition: none; }
  * { animation-duration: .001ms !important; transition-duration: .001ms !important; }
}
