/* To.Go — scroll-driven landing */

:root {
  --togo-cyan: #2dd4ee;
  --togo-cyan-soft: rgba(45, 212, 238, 0.14);
  --togo-bg: var(--bg-page);
  --togo-fg: var(--text);
  --togo-fg-muted: var(--text-muted);
  --togo-line: var(--border);
}

body.page-togo {
  display: flex;
  flex-direction: column;
  min-height: 100vh;
  min-height: 100svh;
  padding-top: 0;
  font-family: "Poppins", system-ui, -apple-system, "Segoe UI", Roboto, sans-serif;
  background: var(--togo-bg);
  color: var(--togo-fg);
  overflow-x: clip;
}

body.page-togo::before {
  display: none;
}

.skip-link {
  position: absolute;
  left: -9999px;
  top: auto;
  width: 1px;
  height: 1px;
  overflow: hidden;
  z-index: 100;
}

.skip-link:focus {
  left: 16px;
  top: 16px;
  width: auto;
  height: auto;
  padding: 10px 16px;
  background: var(--bg-surface);
  color: var(--text);
  border-radius: 8px;
  text-decoration: none;
  font-size: 0.875rem;
}

/* ===== Header ===== */
.togo-header {
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  z-index: 20;
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 16px clamp(20px, 5vw, 48px);
  background: linear-gradient(180deg, color-mix(in srgb, var(--togo-bg) 92%, transparent) 0%, transparent 100%);
  pointer-events: none;
}

.togo-header a {
  pointer-events: auto;
}

.togo-header__brand {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  color: var(--togo-fg);
  text-decoration: none;
  font-size: 0.95rem;
  font-weight: 600;
  letter-spacing: -0.02em;
}

.togo-header__brand img {
  width: 32px;
  height: 32px;
  border-radius: 8px;
}

.togo-header__cta {
  padding: 8px 18px;
  font-size: 0.72rem;
  font-weight: 600;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  color: #062c33;
  text-decoration: none;
  background: var(--togo-cyan);
  border-radius: 999px;
  transition: transform 0.15s ease, opacity 0.15s ease;
}

.togo-header__cta:hover {
  transform: translateY(-1px);
  opacity: 0.92;
}

.togo-header__legal {
  display: none;
  align-items: center;
  gap: 20px;
  margin-left: auto;
  margin-right: 16px;
  font-size: 0.8125rem;
  font-weight: 500;
}

.togo-header__legal a {
  color: var(--togo-fg-muted);
  text-decoration: none;
  pointer-events: auto;
}

.togo-header__legal a:hover {
  color: var(--togo-fg);
}

@media (min-width: 761px) {
  .togo-header__legal {
    display: flex;
  }
}

/* ===== HERO (sticky, scroll-driven) ===== */
.togo-hero {
  --p: 0;
  position: relative;
  height: 260vh;
}

.togo-hero__stage {
  position: sticky;
  top: 0;
  height: 100vh;
  height: 100svh;
  overflow: hidden;
  display: grid;
  place-items: center;
}

/* Giant wordmark rising behind the deck */
.togo-hero__mark {
  position: absolute;
  left: 50%;
  bottom: 4%;
  transform: translate(-50%, calc(40% - var(--p) * 36%));
  font-size: clamp(5rem, 30vw, 26rem);
  font-weight: 700;
  letter-spacing: -0.04em;
  line-height: 0.8;
  color: var(--togo-fg);
  opacity: calc(0.04 + var(--p) * 0.05);
  white-space: nowrap;
  pointer-events: none;
  user-select: none;
  z-index: 1;
}

/* Left copy column */
.togo-hero__copy {
  position: absolute;
  left: clamp(24px, 6vw, 88px);
  top: 50%;
  transform: translateY(-50%);
  max-width: 340px;
  z-index: 4;
  opacity: calc(1 - var(--p) * 1.1);
}

.togo-eyebrow {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  margin-bottom: 20px;
  font-size: 0.7rem;
  font-weight: 600;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: var(--togo-fg-muted);
}

.togo-eyebrow::before {
  content: "";
  width: 7px;
  height: 7px;
  border-radius: 50%;
  background: var(--togo-cyan);
}

.togo-hero__title {
  margin: 0 0 22px;
  font-size: clamp(1.8rem, 3vw, 2.6rem);
  font-weight: 400;
  line-height: 1.15;
  letter-spacing: -0.02em;
  color: var(--togo-fg);
}

.togo-hero__title strong {
  font-weight: 700;
}

.togo-hero__lede {
  margin: 0 0 24px;
  font-size: 0.95rem;
  line-height: 1.6;
  color: rgba(255, 255, 255, 0.62);
}

.togo-stores {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
}

.togo-stores--center {
  justify-content: center;
}

.togo-store {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  min-height: 44px;
  padding: 0 20px;
  font-size: 0.78rem;
  font-weight: 600;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: var(--togo-fg);
  text-decoration: none;
  border: 1px solid rgba(255, 255, 255, 0.22);
  border-radius: 999px;
  background: rgba(255, 255, 255, 0.04);
  transition: background 0.15s ease, border-color 0.15s ease, transform 0.15s ease;
}

.togo-store:hover {
  background: rgba(255, 255, 255, 0.1);
  border-color: rgba(255, 255, 255, 0.35);
  transform: translateY(-1px);
}

.togo-store--large {
  min-height: 52px;
  padding: 0 28px;
  font-size: 0.82rem;
  background: var(--togo-cyan);
  border-color: var(--togo-cyan);
  color: #062c33;
}

.togo-store--large:hover {
  background: #5ee0f4;
  border-color: #5ee0f4;
}

.togo-cta {
  display: inline-flex;
  align-items: center;
  gap: 14px;
  padding: 12px 14px 12px 22px;
  font-size: 0.72rem;
  font-weight: 600;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: var(--togo-fg);
  background: transparent;
  border: 1px solid rgba(255, 255, 255, 0.2);
  border-radius: 999px;
  cursor: default;
}

.togo-cta span {
  display: grid;
  place-items: center;
  width: 26px;
  height: 26px;
  border-radius: 50%;
  background: var(--togo-cyan);
  color: #062c33;
  font-size: 0.85rem;
}

/* Card deck */
.togo-deck {
  position: relative;
  width: min(46vw, 420px);
  aspect-ratio: 3 / 4;
  z-index: 3;
  transform: translateY(calc(var(--p) * -4%));
}

.togo-card {
  position: absolute;
  inset: 0;
  border-radius: 22px;
  overflow: hidden;
  box-shadow: 0 30px 70px rgba(0, 0, 0, 0.6), 0 0 0 0.5px rgba(255, 255, 255, 0.08);
  transform:
    translate(calc(var(--tx) * var(--p)), calc(var(--ty) * var(--p)))
    rotate(calc(var(--rot) * var(--p)))
    scale(calc(1 + var(--ds) * var(--p)));
  transition: box-shadow 0.3s ease;
}

.togo-card img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
}

.togo-card::after {
  content: "";
  position: absolute;
  inset: 0;
  background: linear-gradient(180deg, transparent 55%, rgba(0, 0, 0, 0.35));
}

/* Behind cards sit lower + darker; front card on top */
.togo-card--1 { --tx: -64%; --ty: -10%; --rot: -11deg; --ds: -0.05; z-index: 1; }
.togo-card--2 { --tx: 64%;  --ty: -8%;  --rot: 11deg;  --ds: -0.05; z-index: 1; }
.togo-card--3 { --tx: -34%; --ty: -16%; --rot: -6deg;  --ds: -0.02; z-index: 2; }
.togo-card--4 { --tx: 0%;   --ty: 6%;   --rot: 0deg;   --ds: 0;     z-index: 3; }

.togo-card--1::before,
.togo-card--2::before,
.togo-card--3::before {
  content: "";
  position: absolute;
  inset: 0;
  z-index: 1;
  background: rgba(0, 0, 0, 0.45);
  opacity: calc(1 - var(--p));
}

/* Floating info card (fades in on scroll) */
.togo-info {
  position: absolute;
  right: clamp(24px, 5vw, 72px);
  bottom: clamp(28px, 8vh, 80px);
  width: min(78vw, 280px);
  padding: 20px 22px;
  border-radius: 16px;
  background: rgba(20, 20, 20, 0.55);
  border: 1px solid rgba(255, 255, 255, 0.08);
  backdrop-filter: blur(14px);
  z-index: 5;
  opacity: calc((var(--p) - 0.35) * 3);
  transform: translateY(calc((1 - var(--p)) * 20px));
}

.togo-info__star {
  color: var(--togo-cyan);
  font-size: 0.9rem;
}

.togo-info p {
  margin: 10px 0 16px;
  font-size: 0.92rem;
  line-height: 1.5;
  color: rgba(255, 255, 255, 0.78);
}

/* ===== Features ===== */
.togo-features {
  position: relative;
  z-index: 2;
  padding: clamp(48px, 8vh, 96px) clamp(24px, 6vw, 88px);
  background: var(--togo-bg);
  border-top: 1px solid var(--togo-line);
}

.togo-features__head {
  max-width: 20ch;
  margin-bottom: clamp(36px, 6vh, 72px);
}

.togo-features__title {
  margin: 0;
  font-size: clamp(1.75rem, 4vw, 2.75rem);
  font-weight: 400;
  line-height: 1.1;
  letter-spacing: -0.03em;
  color: var(--togo-fg);
}

.togo-features__title strong {
  font-weight: 700;
  color: var(--togo-cyan);
}

.togo-features__grid {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: clamp(16px, 2.5vw, 28px);
  margin: 0;
  padding: 0;
  list-style: none;
}

.togo-feature h3 {
  margin: 18px 0 8px;
  font-size: 1rem;
  font-weight: 600;
  color: var(--togo-fg);
}

.togo-feature p {
  margin: 0;
  font-size: 0.88rem;
  line-height: 1.55;
  color: var(--togo-fg-muted);
}

.togo-feature__shot {
  margin: 0;
}

.togo-feature__shot img {
  display: block;
  width: 100%;
  height: auto;
}

/* ===== CTA band ===== */
.togo-cta-band {
  position: relative;
  z-index: 2;
  padding: clamp(56px, 10vh, 120px) clamp(24px, 6vw, 88px);
  text-align: center;
  background:
    radial-gradient(ellipse 60% 80% at 50% 100%, var(--togo-cyan-soft), transparent 70%),
    var(--togo-bg);
  border-top: 1px solid var(--togo-line);
}

.togo-cta-band__title {
  margin: 0 0 12px;
  font-size: clamp(1.75rem, 4vw, 2.5rem);
  font-weight: 400;
  letter-spacing: -0.03em;
  color: var(--togo-fg);
}

.togo-cta-band__title strong {
  font-weight: 700;
}

.togo-cta-band__text {
  margin: 0 0 28px;
  font-size: 1rem;
  color: var(--togo-fg-muted);
}

/* ===== METHOD / reveal words ===== */
.togo-method {
  position: relative;
  z-index: 2;
  background: var(--togo-bg);
  padding: clamp(32px, 6vh, 72px) clamp(24px, 6vw, 88px) clamp(60px, 10vh, 140px);
}

.togo-method__lead {
  max-width: 38ch;
  margin: 0 0 clamp(40px, 8vh, 96px);
  font-size: clamp(1rem, 1.6vw, 1.25rem);
  line-height: 1.6;
  color: rgba(255, 255, 255, 0.6);
}

.togo-method__lead .togo-eyebrow {
  display: flex;
  margin-bottom: 18px;
}

.togo-words {
  display: flex;
  flex-direction: column;
  gap: clamp(8px, 2vh, 24px);
}

.togo-word {
  font-size: clamp(3rem, 13vw, 11rem);
  font-weight: 700;
  letter-spacing: -0.04em;
  line-height: 0.95;
  color: rgba(255, 255, 255, 0.08);
  transition: color 0.7s ease, transform 0.7s ease, opacity 0.7s ease;
  transform: translateY(40px);
  opacity: 0;
}

.togo-word.is-in {
  transform: translateY(0);
  opacity: 1;
}

.togo-word.is-in:nth-child(1) { color: var(--togo-fg); }
.togo-word.is-in:nth-child(2) { color: color-mix(in srgb, var(--togo-fg) 85%, transparent); }
.togo-word.is-in:nth-child(3) { color: var(--togo-cyan); }

/* ===== Footer ===== */
.togo-footer {
  position: relative;
  z-index: 2;
  padding: 28px 24px;
  text-align: center;
  font-size: 0.8rem;
  color: var(--text-subtle);
  border-top: 1px solid var(--togo-line);
  background: var(--togo-bg);
}

.togo-footer a {
  color: var(--togo-fg-muted);
  text-decoration: none;
}

.togo-footer a:hover {
  color: var(--togo-cyan);
}

/* Legal subpages */
.page-togo--legal {
  min-height: 100vh;
}

.togo-header--legal {
  position: static;
  background: var(--togo-bg);
  pointer-events: auto;
  border-bottom: 1px solid var(--togo-line);
}

.page-togo--legal .legal h1,
.page-togo--legal .legal h2 {
  color: var(--togo-fg);
}

.page-togo--legal .legal a {
  color: var(--togo-cyan);
}

.page-togo--legal .legal .back-link a {
  color: var(--togo-fg-muted);
}

.page-togo--legal .legal .back-link a:hover {
  color: var(--togo-fg);
}

.togo-footer--legal {
  margin-top: auto;
}

/* ===== Mobile / tablet ===== */
@media (max-width: 1024px) {
  .togo-features {
    text-align: center;
  }

  .togo-features__head {
    max-width: none;
    margin-inline: auto;
    text-align: center;
  }

  .togo-features__head .togo-eyebrow {
    justify-content: center;
  }

  .togo-features__grid {
    grid-template-columns: repeat(2, minmax(0, 1fr));
    max-width: min(760px, 100%);
    margin-inline: auto;
  }

  .togo-feature {
    text-align: center;
  }

  .togo-feature__shot {
    margin-inline: auto;
    max-width: min(374px, 100%);
  }

  .togo-hero__copy {
    left: 50%;
    right: auto;
    transform: translate(-50%, -50%);
    text-align: center;
    max-width: min(480px, 90vw);
  }

  .togo-eyebrow {
    justify-content: center;
  }

  .togo-stores {
    justify-content: center;
  }

  .togo-method {
    text-align: center;
  }

  .togo-method__lead {
    max-width: min(38ch, 90%);
    margin-inline: auto;
    text-align: center;
  }

  .togo-method__lead .togo-eyebrow {
    justify-content: center;
  }

  .togo-words {
    align-items: center;
  }

  .togo-info {
    display: none;
  }
}

/* Tablet: deck overlaps left copy — hide it, let text breathe */
@media (min-width: 761px) and (max-width: 1024px) {
  .togo-deck {
    display: none;
  }
}

@media (max-width: 760px) {
  .togo-hero__copy {
    top: auto;
    bottom: 10%;
    left: clamp(24px, 6vw, 88px);
    right: clamp(24px, 6vw, 88px);
    transform: none;
    max-width: none;
  }

  .togo-deck {
    width: min(72vw, 320px);
    margin-top: -12vh;
  }

  .togo-features__grid {
    grid-template-columns: 1fr;
    max-width: 320px;
  }
}

/* ===== Reduced motion: static fanned layout, no scroll drive ===== */
@media (prefers-reduced-motion: reduce) {
  .togo-hero {
    height: auto;
    --p: 1;
  }

  .togo-hero__stage {
    position: relative;
    height: auto;
    min-height: 100svh;
    padding: 120px 0 60px;
  }

  .togo-word {
    transition: none;
    transform: none;
    opacity: 1;
    color: var(--togo-fg);
  }
}
