/* ==============================================================
    GATHER — Local-First Media & Collection Catalog
    style.css — Gather-specific overrides extending Lymegrove design system
    ============================================================== */

/* ==============================================================
    § 0.5 — NAV LOGO ICON ALIGNMENT
    ============================================================== */
.nav__logo {
  display: inline-flex;
  align-items: center;
  gap: 8px;
}

.footer-bar__logo {
  display: inline-flex;
  align-items: center;
  gap: 6px;
}

/* ==============================================================
    § 0 — GATHER SPECIFIC TOKENS
    ============================================================== */
:root {
  /* Gather brand accent — warm amber/orange for physical media warmth */
  --gather:        #FF8C00;
  --gather-hi:     #FFA500;
  --gather-g:      rgba(255, 140, 0, 0.25);
  --gather-g-hi:   rgba(255, 140, 0, 0.45);
}

/* Override hero watermark for Gather */
.hero__watermark {
  -webkit-text-stroke: 1px rgba(255, 140, 0, 0.06);
}

/* Gather accent word in headline */
.hero__headline .accent {
  color: var(--gather);
  font-weight: 900;
}

/* Hero window glow uses gather accent */
.hero__window-glow {
  background: radial-gradient(ellipse at 50% 50%,
    var(--gather-g-hi) 0%,
    transparent 65%
  );
}

/* Hero screenshot hover uses gather glow */
.hero-screenshot:hover {
  box-shadow:
    0 0 0 1px rgba(255,255,255,0.09) inset,
    0 0 0 1px rgba(0,0,0,0.6),
    0 64px 140px rgba(0,0,0,0.82),
    0 0 110px var(--gather-g-hi);
}

/* macOS frame green dot uses gather accent */
.macos__dot--g {
  background: var(--gather);
  box-shadow: 0 0 5px rgba(255, 140, 0, 0.5);
}

/* AI tech card icon background uses gather for first card */
.ai-tech__card:first-child .ai-tech__icon {
  background: var(--gather-g);
  border-color: rgba(255, 140, 0, 0.2);
  color: var(--gather);
}

/* Philosophy section uses gather for quote border */
#philosophy blockquote {
  border-left-color: var(--gather);
}

/* CTA glow uses gather */
.footer-cta__glow {
  background: radial-gradient(ellipse at 50% 0%,
    var(--gather-g-hi) 0%,
    var(--gather-g) 45%,
    transparent 70%
  );
}

/* ==============================================================
    § 1.5 — HERO BRAND MARK
    ============================================================== */
.hero__brand {
  margin-bottom: 24px;
  opacity: 0.7;
}

.hero__brand img {
  display: block;
}

/* ==============================================================
    § 1.6 — FOOTER CTA BRAND MARK
    ============================================================== */
.footer-cta__brand {
  text-align: center;
  margin-bottom: 20px;
  opacity: 0.6;
}

.footer-cta__brand img {
  display: inline-block;
}

/* ==============================================================
    § 2 — AI TECH GRID: 3x2 layout
    ============================================================== */
.ai-tech__grid {
  grid-template-columns: repeat(3, 1fr);
}

@media (max-width: 1024px) {
  .ai-tech__grid {
    grid-template-columns: repeat(2, 1fr);
  }
}

@media (max-width: 640px) {
  .ai-tech__grid {
    grid-template-columns: 1fr;
  }
  .ai-tech__card {
    padding: 28px 24px;
  }
}

/* ==============================================================
    § 2 — PHILOSOPHY PRINCIPLES: wider cards
    ============================================================== */
.philosophy-principles {
  grid-template-columns: repeat(2, 1fr);
  gap: 28px;
  margin-top: 32px;
}

.principle {
  padding: 24px;
  background: var(--s1);
  border: 1px solid var(--border);
  border-radius: var(--r-md);
  transition: border-color 0.2s, transform 0.2s;
}

.principle:hover {
  border-color: var(--gather);
  transform: translateY(-2px);
}

@media (max-width: 900px) {
  .philosophy-principles {
    grid-template-columns: 1fr;
  }
}

/* ==============================================================
    § 3 — RESPONSIVE OVERRIDES
    ============================================================== */

@media (max-width: 1100px) {
  .hero__grid { grid-template-columns: 1fr 420px; }
  .hero__window-col { margin-left: -24px; }
}

@media (max-width: 900px) {
  :root { --section: 96px; --pad: 28px; }

  .hero__grid {
    grid-template-columns: 1fr;
    gap: 56px;
  }
  .hero__window-col { margin-left: 0; }

  .hero__headline { font-size: clamp(2.5rem, 10vw, 5rem); }

  .studio__inner { grid-template-columns: 1fr; gap: 0; }
  .studio__divider { display: none; }
  .studio__inner > div + div { margin-top: 48px; }
}

@media (max-width: 640px) {
  :root { --section: 72px; --pad: 20px; }

  .nav__links { display: none; }

  .hero__headline { font-size: clamp(2rem, 12vw, 4rem); }
  .hero__actions { flex-direction: column; align-items: stretch; }
  .hero__actions .btn { justify-content: center; }

  .footer-bar__inner { flex-direction: column; align-items: flex-start; gap: 16px; }
  .footer-bar__nav { gap: 20px; flex-wrap: wrap; }
  .footer-cta__actions { flex-direction: column; align-items: stretch; }
  .footer-cta__actions .btn { justify-content: center; }
}

/* ==============================================================
    § 4 — SCROLL REVEAL (from habitflo)
    ============================================================== */
[data-reveal] {
  opacity: 0;
  transform: translateY(24px);
  transition: opacity 0.55s ease, transform 0.55s ease;
}
[data-reveal].is-visible {
  opacity: 1;
  transform: translateY(0);
}
[data-reveal][data-delay="100"] { transition-delay: 0.10s; }
[data-reveal][data-delay="200"] { transition-delay: 0.20s; }
[data-reveal][data-delay="300"] { transition-delay: 0.30s; }
[data-reveal][data-delay="400"] { transition-delay: 0.40s; }
[data-reveal][data-delay="500"] { transition-delay: 0.50s; }
[data-reveal][data-delay="600"] { transition-delay: 0.60s; }
/* ==============================================================
    § 5 — SCREENS GALLERY (device tabs)
    ============================================================== */
.screens__tabs {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  margin: 40px 0 0;
}
.screens__tab {
  -webkit-appearance: none;
  appearance: none;
  border: 1px solid var(--border);
  background: var(--s1);
  color: var(--ink-2);
  font-family: var(--sans);
  font-size: 13px;
  font-weight: 500;
  letter-spacing: 0.02em;
  padding: 10px 16px;
  border-radius: var(--pill);
  cursor: pointer;
  transition: background 0.2s, border-color 0.2s, color 0.2s;
}
.screens__tab:hover { color: var(--ink); border-color: var(--border-hi); }
.screens__tab.is-active {
  background: rgba(255, 140, 0, 0.14);
  border-color: var(--gather);
  color: var(--gather);
  box-shadow: 0 0 0 1px var(--gather) inset;
}
.screens__panel { display: none; }
.screens__panel.is-active { display: grid; }

.screens__grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 24px;
  margin-top: 32px;
}
.screens__shot {
  border: 1px solid var(--border);
  border-radius: var(--r-lg);
  background: var(--s2);
  overflow: hidden;
  transition: border-color 0.2s, transform 0.2s;
}
.screens__shot:hover {
  border-color: var(--gather);
  transform: translateY(-3px);
  box-shadow:
    0 18px 44px rgba(0, 0, 0, 0.55),
    0 0 60px var(--gather-g-hi);
}
.screens__shot img {
  display: block;
  width: 100%;
  height: auto;
  background: #0e0e12;
}
.screens__shot figcaption {
  padding: 12px 14px;
  font-size: 12px;
  font-weight: 500;
  letter-spacing: 0.04em;
  color: var(--ink-2);
  border-top: 1px solid var(--border);
}
.screens__shot figcaption .dev { color: var(--gather); }

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

/* ==============================================================
    § 6 — COMPARE MATRIX
    ============================================================== */
.compare-scroll { overflow-x: auto; }

.compare-table {
  width: 100%;
  border-collapse: collapse;
  font-size: 13px;
  margin-top: 28px;
}
.compare-table thead th {
  font-family: var(--sans);
  font-size: 12px;
  font-weight: 600;
  letter-spacing: 0.02em;
  color: var(--ink-2);
  padding: 14px 14px;
  border-bottom: 1px solid var(--border);
  background: var(--s2);
  white-space: nowrap;
}
.compare-table th.feature, .compare-table td.feature {
  text-align: left;
  color: var(--ink-2);
  font-weight: 500;
  font-size: 12.5px;
}
.compare-table th:not(.feature), .compare-table td.mark { text-align: center; }
.compare-table td {
  padding: 12px 12px;
  border-bottom: 1px solid var(--border);
  text-align: center;
}
.compare-table tr:last-child td,
.compare-table tr:last-child th { border-bottom: none; }

/* Highlight the Gather column */
.compare-table th.compare-col--you,
.compare-table td.compare-col--you { background: rgba(255, 140, 0, 0.10); }
.compare-table th.compare-col--you { color: var(--gather); }
.compare-table thead .compare-col--you { box-shadow: 0 -1px 0 0 var(--gather) inset; }

.compare-yes { color: var(--lime); }
.compare-partial { color: var(--gather); }
.compare-no { color: var(--ink-3); }

.compare-table tbody tr:hover td,
.compare-table tbody tr:hover th { background: rgba(255, 255, 255, 0.035); }

.compare-legend {
  display: flex;
  flex-wrap: wrap;
  gap: 12px;
  margin-top: 18px;
  font-size: 12px;
  color: var(--ink-2);
}
.compare-legend .lg { display: inline-flex; align-items: center; gap: 6px; }
.compare-note {
  margin-top: 14px;
  font-size: 12px;
  line-height: 1.6;
  color: var(--ink-3);
  font-weight: 300;
  max-width: 820px;
}

@media (max-width: 900px) {
  .compare-table { font-size: 12px; }
  .compare-table th, .compare-table td { padding: 10px 10px; }
}

/* ==============================================================
    § 7 — ACCESSIBILITY & READABILITY OVERRIDES
    (scoped to the Gather page so the shared Lymegrove system is
     not affected)
    ============================================================== */

/* Brighter, higher-contrast text + stronger definition */
:root {
  --ink-2: rgba(255, 255, 255, 0.9);
  --ink-3: rgba(255, 255, 255, 0.68);
  --neutral: rgba(255, 255, 255, 0.7);
  --neutral-hi: rgba(255, 255, 255, 0.85);
  --border: rgba(255, 255, 255, 0.16);
  --border-hi: rgba(255, 255, 255, 0.3);
}

/* Roomier, heavier base body text */
body {
  font-size: 17px;
  line-height: 1.7;
  -webkit-font-smoothing: antialiased;
}

/* Eyebrow labels are tiny in the base system — bump them up */
.sh__label { font-size: 12px; font-weight: 600; letter-spacing: 0.12em; }

/* Skip-to-content link (only visible on keyboard focus) */
.skip-link {
  position: absolute;
  left: -9999px;
  z-index: 2000;
}
.skip-link:focus {
  position: fixed;
  top: 8px;
  left: 8px;
  padding: 12px 16px;
  background: var(--gather);
  color: #1a1406;
  font-weight: 700;
  font-size: 15px;
  border-radius: var(--r-md);
  box-shadow: 0 2px 12px rgba(0, 0, 0, 0.85);
}

/* Visible keyboard focus everywhere */
:focus-visible {
  outline: 2px solid var(--gather);
  outline-offset: 2px;
}

/* Anchored sections clear the fixed 58px nav */
[id] { scroll-margin-top: 84px; }

/* Nav legibility */
.nav__logo { font-size: 17px; }
.nav__link { font-size: 15px; font-weight: 500; }

/* Heavier, roomier body copy */
.hero__sub { font-size: 17px; font-weight: 400; line-height: 1.75; }
.sh__sub { font-size: 16px; font-weight: 400; line-height: 1.8; }
.ai-tech__body, .cs-feature-body {
  font-weight: 400;
  font-size: 15px;
  line-height: 1.75;
}

/* Philosophy principles use inline styles — force readable values */
.principle p {
  font-size: 15px !important;
  font-weight: 400 !important;
  line-height: 1.75 !important;
  color: var(--ink) !important;
}
.principle h4 {
  font-size: 19px !important;
  color: var(--ink) !important;
}

/* Compare matrix */
.compare-table { font-size: 14px; }
.compare-table .feature { font-weight: 500; }
.compare-legend { font-size: 13px; font-weight: 400; }
.compare-note { font-size: 13px; font-weight: 400; color: var(--ink-2); }

/* Respect reduced-motion preferences */
@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  html.js [data-reveal],
  html.js [data-reveal].is-visible {
    opacity: 1 !important;
    transform: none !important;
    transition: none !important;
  }
  *, *::before, *::after { transition-duration: 0.01ms !important; }
}

/* Progressive enhancement: reveal text stays readable without JS.
   Without a .js class the elements are visible by default; with JS
   present they animate in. */
[data-reveal] { opacity: 1; transform: none; }
html.js [data-reveal] {
  opacity: 0;
  transform: translateY(24px);
  transition: opacity 0.55s ease, transform 0.55s ease;
}
html.js [data-reveal].is-visible { opacity: 1; transform: translateY(0); }
html.js [data-reveal][data-delay="100"] { transition-delay: 0.10s; }
html.js [data-reveal][data-delay="200"] { transition-delay: 0.20s; }
html.js [data-reveal][data-delay="300"] { transition-delay: 0.30s; }
html.js [data-reveal][data-delay="400"] { transition-delay: 0.40s; }
html.js [data-reveal][data-delay="500"] { transition-delay: 0.50s; }
html.js [data-reveal][data-delay="600"] { transition-delay: 0.60s; }

/* ==============================================================
    § 8 — SCREENSHOT GALLERY (hidden by product decision)
    The device screenshot gallery is hidden from view. The markup
    and inline tab script remain but are inert; delete the #screens
    section in index.html to remove it entirely.
    ============================================================== */
#screens { display: none; }