/* ==========================================================================
   GladeX — Design System
   Small studio. Serious products.
   ========================================================================== */

/* Fonts are now loaded via <link rel="preconnect"> + <link rel="stylesheet">
   in every page's <head> — faster than @import, which blocks the browser
   from discovering the font request until the whole CSS file is parsed. */

:root {
  /* Color */
  --bg: #000000;
  --bg-alt: #050505;
  --bg-alt-2: #0a0a0a;
  --text: #ffffff;
  --text-secondary: #a0a0a0;
  --text-tertiary: #787878;
  --border: rgba(255, 255, 255, 0.08);
  --border-strong: rgba(255, 255, 255, 0.16);
  --glow: rgba(255, 255, 255, 0.06);

  /* Type */
  --font-display: 'Inter', -apple-system, 'SF Pro Display', sans-serif;
  --font-body: 'Inter', -apple-system, sans-serif;
  --font-mono: 'IBM Plex Mono', ui-monospace, monospace;

  /* Layout */
  --container: 1240px;
  --gutter: clamp(24px, 5vw, 80px);
  --section-pad: clamp(96px, 14vw, 200px);
  --radius-lg: 28px;
  --radius-md: 18px;
  --radius-sm: 10px;

  /* Motion */
  --ease: cubic-bezier(0.16, 1, 0.3, 1);
  --ease-soft: cubic-bezier(0.4, 0, 0.2, 1);
  --dur: 0.8s;
}

/* ---------- Reset ---------- */
*, *::before, *::after { box-sizing: border-box; margin: 0; padding: 0; }
html { scroll-behavior: smooth; overflow-x: hidden; }
@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; scroll-behavior: auto !important; }
}

body {
  background: var(--bg);
  color: var(--text);
  font-family: var(--font-body);
  font-size: 16px;
  line-height: 1.5;
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
  overflow-x: hidden;
}

img, svg { display: block; max-width: 100%; }
a { color: inherit; text-decoration: none; }
ul { list-style: none; }
button { font: inherit; color: inherit; background: none; border: none; cursor: pointer; }
::selection { background: var(--text); color: var(--bg); }

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

/* ---------- Layout ---------- */
.container {
  width: 100%;
  max-width: var(--container);
  margin-inline: auto;
  padding-inline: var(--gutter);
}

.section { padding-block: var(--section-pad); position: relative; }
.section--tight { padding-block: clamp(64px, 8vw, 120px); }
.bg-alt { background: var(--bg-alt); }
.bg-alt-2 { background: var(--bg-alt-2); }

.grid-12 {
  display: grid;
  grid-template-columns: repeat(12, 1fr);
  gap: var(--gutter);
}

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

/* ---------- Typography ---------- */
h1, h2, h3, h4 { font-family: var(--font-display); font-weight: 600; letter-spacing: -0.02em; line-height: 1.05; }

.eyebrow {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  font-family: var(--font-mono);
  font-size: 12px;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: var(--text-tertiary);
}
.eyebrow::before {
  content: '';
  width: 14px;
  height: 1px;
  background: var(--text-tertiary);
}

.display-1 {
  font-size: clamp(44px, 7vw, 108px);
  font-weight: 600;
  letter-spacing: -0.03em;
  line-height: 1.02;
}
.display-2 {
  font-size: clamp(34px, 4.6vw, 68px);
  font-weight: 600;
  letter-spacing: -0.025em;
  line-height: 1.08;
}
.display-3 {
  font-size: clamp(26px, 3vw, 42px);
  font-weight: 600;
  letter-spacing: -0.02em;
  line-height: 1.15;
}

.lead {
  font-size: clamp(17px, 1.6vw, 21px);
  color: var(--text-secondary);
  font-weight: 400;
  line-height: 1.55;
  max-width: 42ch;
}

p { color: var(--text-secondary); }
.text-dim { color: var(--text-tertiary); }
.mono { font-family: var(--font-mono); }

/* word-by-word reveal (Intro section) */
.reveal-words span {
  opacity: 0.22;
  transition: opacity 0.6s var(--ease-soft);
}
.reveal-words span.is-lit { opacity: 1; }

/* ---------- Buttons ---------- */
.btn {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  font-family: var(--font-body);
  font-size: 14.5px;
  font-weight: 500;
  padding: 15px 26px;
  border-radius: 100px;
  transition: transform 0.45s var(--ease), background 0.3s var(--ease-soft), border-color 0.3s var(--ease-soft), color .3s var(--ease-soft);
  white-space: nowrap;
}
.btn--primary { background: var(--text); color: #000; }
.btn--primary:hover { transform: translateY(-2px); }
.btn.is-tracking { transition: transform 0.12s linear; }
.btn--ghost { border: 1px solid var(--border-strong); color: var(--text); }
.btn--ghost:hover { border-color: var(--text); transform: translateY(-2px); }
.btn--text { color: var(--text-secondary); gap: 8px; }
.btn--text:hover { color: var(--text); }
.btn--text .arrow { transition: transform 0.4s var(--ease); }
.btn--text:hover .arrow { transform: translateX(5px); }

/* ---------- Nav ---------- */
.nav {
  position: fixed;
  inset: 0 0 auto 0;
  z-index: 100;
  height: 84px;
  display: flex;
  align-items: center;
  transition: height 0.4s var(--ease-soft), background 0.4s var(--ease-soft), border-color .4s var(--ease-soft);
  border-bottom: 1px solid transparent;
}
.nav.is-scrolled {
  height: 68px;
  background: rgba(0, 0, 0, 0.66);
  backdrop-filter: blur(22px) saturate(160%);
  -webkit-backdrop-filter: blur(22px) saturate(160%);
  border-bottom-color: var(--border);
}
.nav__inner {
  width: 100%;
  max-width: var(--container);
  margin-inline: auto;
  padding-inline: var(--gutter);
  display: flex;
  align-items: center;
  justify-content: space-between;
}
.brand { display: flex; align-items: center; gap: 10px; font-family: var(--font-display); font-weight: 600; font-size: 15.5px; letter-spacing: -0.01em; }
.brand .logo-mark { width: 20px; height: 20px; color: var(--text); }
.logo-mark { display: inline-flex; }
.logo-mark img {
  width: 100%; height: 100%; object-fit: contain; display: block;
  transition: transform 0.55s var(--ease), filter 0.55s var(--ease);
}
/* Signature mark interaction — a glint, not a generic spin. The sparkle
   catches light and settles back, rather than doing a full rotation like
   every other logo hover on the internet. */
.brand:hover .logo-mark img,
.footer__brand:hover .logo-mark img {
  transform: scale(1.16) rotate(14deg);
  filter: drop-shadow(0 0 7px rgba(255,255,255,0.55));
}

.nav__links { display: flex; align-items: center; gap: 40px; }
.nav__links a {
  font-size: 14px;
  color: var(--text-secondary);
  position: relative;
  transition: color 0.3s var(--ease-soft);
}
.nav__links a:hover { color: var(--text); }
.nav__links a::after {
  content: '';
  position: absolute;
  left: 0; bottom: -6px;
  width: 100%; height: 1px;
  background: var(--text);
  transform: scaleX(0);
  transform-origin: right;
  transition: transform 0.4s var(--ease);
}
.nav__links a:hover::after { transform: scaleX(1); transform-origin: left; }
.nav__links a.is-active { color: var(--text); }

.nav__cta { display: flex; align-items: center; gap: 24px; }
.nav__cta .btn { padding: 11px 20px; font-size: 13.5px; }

.hamburger { display: none; width: 40px; height: 40px; align-items: center; justify-content: center; }
.hamburger > span:not(.hamburger-lines), .hamburger::before, .hamburger::after { display: none; }
.hamburger-lines { display: block; position: relative; width: 22px; height: 14px; }
.hamburger-lines i { display: block; }
.hamburger-lines i {
  position: absolute; left: 0; width: 100%; height: 1.5px; border-radius: 1px; background: var(--text);
  transition: transform 0.35s var(--ease), opacity 0.3s var(--ease);
}
.hamburger-lines i:nth-child(1) { top: 0; }
.hamburger-lines i:nth-child(2) { top: 6px; }
.hamburger-lines i:nth-child(3) { top: 13px; }
.nav.is-open .hamburger-lines i:nth-child(1) { transform: translateY(6px) rotate(45deg); }
.nav.is-open .hamburger-lines i:nth-child(2) { opacity: 0; }
.nav.is-open .hamburger-lines i:nth-child(3) { transform: translateY(-7px) rotate(-45deg); }

.mobile-menu {
  position: fixed; inset: 0; z-index: 90;
  background: #000;
  display: flex; flex-direction: column;
  justify-content: center;
  padding: 0 var(--gutter);
  opacity: 0; visibility: hidden;
  transition: opacity 0.5s var(--ease-soft), visibility 0.5s;
}
.mobile-menu.is-open { opacity: 1; visibility: visible; }
.mobile-menu a {
  display: block;
  font-family: var(--font-display);
  font-size: clamp(32px, 10vw, 48px);
  font-weight: 600;
  letter-spacing: -0.02em;
  color: var(--text);
  padding-block: 14px;
  border-bottom: 1px solid var(--border);
  opacity: 0;
  transform: translateY(16px);
  transition: opacity 0.5s var(--ease-soft), transform 0.5s var(--ease-soft);
}
.mobile-menu.is-open a { opacity: 1; transform: translateY(0); }
.mobile-menu a:nth-child(1) { transition-delay: 0.08s; }
.mobile-menu a:nth-child(2) { transition-delay: 0.14s; }
.mobile-menu a:nth-child(3) { transition-delay: 0.2s; }
.mobile-menu a:nth-child(4) { transition-delay: 0.26s; }
.mobile-menu__foot { margin-top: 40px; opacity: 0; transition: opacity 0.5s var(--ease-soft) 0.34s; }
.mobile-menu.is-open .mobile-menu__foot { opacity: 1; }

@media (max-width: 860px) {
  .nav__links, .nav__cta .btn--ghost { display: none; }
  .hamburger { display: inline-flex; }
}

/* ---------- Scroll reveal ---------- */
[data-reveal] {
  opacity: 0;
  transform: translateY(30px) scale(0.985);
  filter: blur(6px);
  transition: opacity 1.1s var(--ease), transform 1.1s var(--ease), filter 1.1s var(--ease);
}
[data-reveal].is-visible { opacity: 1; transform: translateY(0) scale(1); filter: blur(0); }
[data-reveal-delay="1"] { transition-delay: 0.1s; }
[data-reveal-delay="2"] { transition-delay: 0.2s; }
[data-reveal-delay="3"] { transition-delay: 0.3s; }
@media (prefers-reduced-motion: reduce) {
  [data-reveal] { filter: none; }
}

/* ---------- Hero ---------- */
.hero {
  min-height: 100vh;   /* fallback for browsers without svh support */
  min-height: 100svh;  /* stable — the height when the browser's toolbars are
                           at their largest, so it never resizes as they
                           show/hide on scroll. Deliberately NOT using dvh:
                           that unit tracks the toolbar live, which is exactly
                           the "site stretches/shrinks on scroll" effect. */
  display: flex;
  flex-direction: column;
  justify-content: center;
  padding-top: 84px;
  position: relative;
}
.hero__mark {
  width: 34px; height: 34px;
  color: var(--text-tertiary);
  margin-bottom: 40px;
  animation: spin-in 1.4s var(--ease) both;
}
.hero__mark img { width: 100%; height: 100%; object-fit: contain; display: block; }
@keyframes spin-in {
  from { opacity: 0; transform: rotate(-40deg) scale(0.7); }
  to { opacity: 1; transform: rotate(0) scale(1); }
}
.hero__title { max-width: 16ch; }
.hero__lead { margin-top: 28px; }
.hero__actions { margin-top: 48px; display: flex; align-items: center; gap: 18px; flex-wrap: wrap; }

.scroll-cue {
  position: absolute;
  left: var(--gutter); bottom: 40px;
  display: flex; align-items: center; gap: 12px;
  color: var(--text-tertiary);
  font-family: var(--font-mono);
  font-size: 11px;
  letter-spacing: 0.1em;
  text-transform: uppercase;
}
.scroll-cue__line { width: 1px; height: 34px; background: linear-gradient(var(--text-tertiary), transparent); position: relative; overflow: hidden; }
.scroll-cue__line::after {
  content: ''; position: absolute; top: -100%; left: 0; width: 100%; height: 100%;
  background: var(--text);
  animation: scroll-drip 2.2s var(--ease-soft) infinite;
}
@keyframes scroll-drip { to { top: 100%; } }

/* ---------- Studio philosophy / statement ---------- */
.statement {
  max-width: 20ch;
}

/* ---------- Product showcase ---------- */
.showcase {
  position: relative;
  border-radius: var(--radius-lg);
  border: 1px solid var(--border);
  background: radial-gradient(120% 140% at 50% 0%, var(--bg-alt-2), #000 70%);
  padding: clamp(40px, 6vw, 96px) clamp(20px, 5vw, 72px);
  overflow: hidden;
}
.showcase__head {
  display: flex;
  justify-content: space-between;
  align-items: flex-end;
  flex-wrap: wrap;
  gap: 24px;
  margin-bottom: clamp(48px, 6vw, 90px);
}
.showcase__phones {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: clamp(-40px, -2vw, 20px);
  padding-block: clamp(20px, 4vw, 50px);
}

/* ---------- Phone mockup ---------- */
.phone {
  --pw: 236px;
  width: min(var(--pw), 78vw);
  aspect-ratio: 9 / 19.4;
  border-radius: 46px;
  padding: 10px;
  background: linear-gradient(165deg, #1c1c1c, #050505 55%);
  box-shadow:
    inset 0 0 0 1px rgba(255,255,255,0.14),
    0 60px 100px -40px rgba(0,0,0,0.9);
  position: relative;
  flex-shrink: 0;
  transition: transform 0.7s var(--ease), filter 0.7s var(--ease);
}
.phone--side { --pw: 200px; transform: translateY(28px) scale(0.94); filter: brightness(0.6) blur(0.3px); }
.phone--left { margin-right: -34px; }
.phone--right { margin-left: -34px; }
.showcase__phones:hover .phone--side { transform: translateY(14px) scale(0.96); filter: brightness(0.75); }
.showcase__phones:hover .phone--main { transform: translateY(-10px); }

.phone__screen {
  width: 100%; height: 100%;
  background: #060606;
  border-radius: 36px;
  overflow: hidden;
  position: relative;
  display: flex; flex-direction: column;
}
.phone__island {
  position: absolute; top: 14px; left: 50%; transform: translateX(-50%);
  width: 78px; height: 22px; background: #000; border-radius: 20px; z-index: 5;
}
.phone__statusbar { height: 48px; }

/* device screen content variants — abstract, monochrome placeholders standing in for real product screenshots */
.screen-pad { padding: 54px 18px 18px; height: 100%; display: flex; flex-direction: column; gap: 14px; }
.screen-label { font-family: var(--font-mono); font-size: 9px; letter-spacing: 0.08em; text-transform: uppercase; color: var(--text-tertiary); }

.ring-stat {
  margin-top: auto; margin-bottom: auto;
  display: flex; flex-direction: column; align-items: center; gap: 16px;
}
.ring-stat svg { width: 128px; height: 128px; }
.ring-stat__num { font-family: var(--font-display); font-size: 30px; font-weight: 600; }
.ring-stat__label { font-family: var(--font-mono); font-size: 9px; color: var(--text-tertiary); letter-spacing: 0.08em; text-transform: uppercase; }

.bars-row { display: flex; align-items: flex-end; gap: 6px; height: 90px; margin-top: auto; }
.bars-row i { flex: 1; background: linear-gradient(180deg, #fff, #4a4a4a); border-radius: 3px; opacity: 0.85; }

.chat-stack { display: flex; flex-direction: column; gap: 8px; margin-top: auto; }
.chat-bubble { border-radius: 14px; padding: 9px 12px; font-size: 10.5px; line-height: 1.4; max-width: 84%; }
.chat-bubble--ai { background: rgba(255,255,255,0.06); border: 1px solid var(--border); color: var(--text-secondary); align-self: flex-start; border-bottom-left-radius: 4px; }
.chat-bubble--user { background: #fff; color: #000; align-self: flex-end; border-bottom-right-radius: 4px; }

.breathe-circle { margin: auto; width: 130px; height: 130px; border-radius: 50%; border: 1px solid var(--border-strong); display: flex; align-items: center; justify-content: center; position: relative; }
.breathe-circle::before { content: ''; position: absolute; inset: 14px; border-radius: 50%; border: 1px solid var(--border); animation: breathe 5s var(--ease-soft) infinite; }
@keyframes breathe { 0%, 100% { transform: scale(0.72); opacity: 0.5; } 50% { transform: scale(1); opacity: 1; } }
.breathe-circle span { font-family: var(--font-mono); font-size: 10px; color: var(--text-secondary); }

.journal-lines { display: flex; flex-direction: column; gap: 10px; margin-top: 6px; }
.journal-lines i { height: 1px; background: var(--border-strong); display: block; }
.journal-lines i:nth-child(3n) { width: 60%; }

.phone__caption { text-align: center; margin-top: 22px; font-family: var(--font-mono); font-size: 11px; color: var(--text-tertiary); letter-spacing: 0.06em; }

/* ---------- Numbered principles — big editorial layout with ghost numerals ---------- */
.principle-list { border-top: 1px solid var(--border); }
.principle {
  position: relative;
  overflow: hidden;
  padding-block: 56px;
  border-bottom: 1px solid var(--border);
}
.principle__ghost {
  position: absolute;
  right: -0.03em; top: 50%;
  transform: translateY(calc(-50% + var(--parallax-y, 0px)));
  font-family: var(--font-mono);
  font-weight: 700;
  font-size: clamp(110px, 13vw, 210px);
  line-height: 1;
  color: transparent;
  -webkit-text-stroke: 1px rgba(255,255,255,0.06);
  pointer-events: none;
  user-select: none;
  z-index: 0;
  will-change: transform;
  transition: transform 0.9s var(--ease), -webkit-text-stroke-color 0.6s var(--ease-soft);
}
.principle:hover .principle__ghost {
  transform: translateY(calc(-50% + var(--parallax-y, 0px))) translateX(-10px) scale(1.03);
  -webkit-text-stroke-color: rgba(255,255,255,0.15);
}
.principle__row { position: relative; z-index: 1; display: flex; align-items: baseline; gap: 18px; }
.principle__num { font-family: var(--font-mono); font-size: 13px; color: var(--text-tertiary); transition: color 0.5s var(--ease-soft); }
.principle:hover .principle__num { color: var(--text); }
.principle__title {
  position: relative; z-index: 1;
  display: inline-block;
  font-family: var(--font-display);
  font-size: clamp(30px, 4.4vw, 48px);
  font-weight: 600;
  letter-spacing: -0.02em;
  transition: transform 0.6s var(--ease);
}
.principle:hover .principle__title { transform: translateX(10px); }
.principle__text {
  position: relative; z-index: 1;
  color: var(--text-secondary);
  max-width: 50ch;
  font-size: 16px;
  margin-top: 14px;
}

@media (max-width: 700px) {
  .principle { padding-block: 40px; }
  .principle__ghost { font-size: clamp(64px, 26vw, 120px); opacity: 0.6; }
  .principle__title { font-size: clamp(26px, 8vw, 32px); }
}

/* ---------- List rows (Quit positioning / features) ---------- */
.row-list { border-top: 1px solid var(--border); }
.row-list__item {
  display: flex; align-items: baseline; justify-content: space-between; gap: 24px;
  padding-block: 26px;
  border-bottom: 1px solid var(--border);
  position: relative;
}
.row-list__item::before {
  content: '';
  position: absolute; left: -20px; top: 0; bottom: 0; width: 1px;
  background: var(--text);
  transform: scaleY(0);
  transform-origin: top;
  transition: transform 0.5s var(--ease);
}
.row-list__item:hover::before { transform: scaleY(1); }
.row-list__item:hover span:first-child { transform: translateX(4px); }
.row-list__item span:first-child { font-family: var(--font-display); font-size: clamp(17px, 1.6vw, 21px); font-weight: 500; color: var(--text); display: inline-block; transition: transform 0.5s var(--ease); }
.row-list__item span:last-child { color: var(--text-tertiary); font-size: 14px; text-align: right; max-width: 40ch; transition: color 0.5s var(--ease-soft); }
.row-list__item:hover span:last-child { color: var(--text-secondary); }
@media (max-width: 700px) { .row-list__item { flex-direction: column; gap: 6px; } .row-list__item span:last-child { text-align: left; } }

/* ---------- Feature groups ---------- */
.feature-group { border-top: 1px solid var(--border); padding-block: 40px; }
.feature-group__label { font-family: var(--font-mono); font-size: 12px; letter-spacing: 0.1em; text-transform: uppercase; color: var(--text-tertiary); margin-bottom: 20px; }
.feature-group__items { display: flex; flex-wrap: wrap; gap: 12px 32px; }
.feature-group__items span { font-family: var(--font-display); font-size: 17px; color: var(--text); }

/* Same ghost-numeral language as "Built with intention" on the homepage,
   scaled down to fit a compact row — reinforces that this is one system,
   not a page built in a separate pass. */
.feature-group--numbered { position: relative; overflow: hidden; transition: background 0.6s var(--ease-soft); }
.feature-group__ghost {
  position: absolute;
  right: 0; top: 50%;
  transform: translateY(calc(-50% + var(--parallax-y, 0px)));
  font-family: var(--font-mono);
  font-weight: 700;
  font-size: clamp(50px, 7vw, 92px);
  line-height: 1;
  color: transparent;
  -webkit-text-stroke: 1px rgba(255,255,255,0.07);
  pointer-events: none;
  user-select: none;
  z-index: 0;
  will-change: transform;
  transition: transform 0.9s var(--ease), -webkit-text-stroke-color 0.6s var(--ease-soft);
}
.feature-group--numbered:hover .feature-group__ghost {
  transform: translateY(calc(-50% + var(--parallax-y, 0px))) translateX(-8px) scale(1.04);
  -webkit-text-stroke-color: rgba(255,255,255,0.16);
}
.feature-group--numbered .feature-group__label,
.feature-group--numbered .feature-group__items { position: relative; z-index: 1; }
/* Reserve room for the numeral so wrapped tags never run into it */
.feature-group--numbered .feature-group__items { padding-right: clamp(90px, 15vw, 190px); }

/* ---------- Pricing ---------- */
.pricing-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 1px; background: var(--border); border: 1px solid var(--border); border-radius: var(--radius-md); overflow: hidden; }
.price-card { background: #000; padding: clamp(28px, 4vw, 48px); }
.price-card--highlight { background: var(--bg-alt); }
.price-card__tag { font-family: var(--font-mono); font-size: 11px; color: var(--text-tertiary); text-transform: uppercase; letter-spacing: 0.1em; }
.price-card__amount { font-family: var(--font-display); font-size: clamp(34px, 4vw, 46px); font-weight: 600; margin-block: 14px 4px; }
.price-card__unit { color: var(--text-tertiary); font-size: 13px; }
@media (max-width: 700px) { .pricing-grid { grid-template-columns: 1fr; } }

/* ---------- Final CTA ---------- */
.final-cta { text-align: center; position: relative; overflow: hidden; }
.final-cta::before {
  content: '';
  position: absolute;
  left: 50%; top: 50%;
  width: min(700px, 120vw); height: min(700px, 120vw);
  transform: translate(-50%, -50%);
  background: radial-gradient(circle, rgba(255,255,255,0.05), transparent 65%);
  pointer-events: none;
  z-index: -1;
}
.final-cta__title { max-width: 18ch; margin-inline: auto; }
.final-cta .lead { margin-inline: auto; text-align: center; }
.final-cta__actions { justify-content: center; }

/* ---------- Footer ---------- */
.footer { position: relative; padding-block: 64px 40px; border-top: 1px solid var(--border); overflow: hidden; }
.footer::before {
  content: '';
  position: absolute;
  top: -1px; left: 50%;
  width: min(900px, 140vw); height: 240px;
  transform: translate(-50%, -70%);
  background: radial-gradient(ellipse at center, rgba(255,255,255,0.06), transparent 70%);
  pointer-events: none;
}
.footer__top { display: flex; justify-content: space-between; flex-wrap: wrap; gap: 40px; padding-bottom: 56px; }
.footer__cols { display: flex; gap: clamp(40px, 6vw, 96px); flex-wrap: wrap; }
.footer__col-title { font-family: var(--font-mono); font-size: 11px; color: var(--text-tertiary); text-transform: uppercase; letter-spacing: 0.1em; margin-bottom: 16px; }
.footer__col a { display: block; color: var(--text-secondary); font-size: 14.5px; padding-block: 6px; transition: color .3s var(--ease-soft); }
.footer__col a:hover { color: var(--text); }
.footer__bottom { display: flex; justify-content: space-between; align-items: center; flex-wrap: wrap; gap: 12px; padding-top: 28px; border-top: 1px solid var(--border); }
.footer__bottom p { font-size: 13px; color: var(--text-tertiary); }
.footer__brand { display: flex; align-items: center; gap: 12px; }
.footer__brand .logo-mark { width: 30px; height: 30px; color: var(--text-secondary); }
.footer__brand .mono { font-size: 16px; }

/* ---------- Utility ---------- */
.flex-between { display: flex; align-items: center; justify-content: space-between; }
.center { text-align: center; }
.mt-xs { margin-top: 8px; } .mt-sm { margin-top: 16px; } .mt-md { margin-top: 32px; } .mt-lg { margin-top: 64px; }
.max-w-hero { max-width: 720px; }

/* ---------- Footer tagline ---------- */
.footer__brand-block { display: flex; flex-direction: column; gap: 14px; }
.footer__tagline { font-family: var(--font-mono); font-size: 12.5px; color: var(--text-tertiary); line-height: 1.6; }

@media (max-width: 700px) {
  :root { --section-pad: 88px; }
}

@media (max-width: 640px) {
  .showcase__phones { gap: 0; }
  .phone--side { display: none; }
  .phone--main { margin-inline: auto; }
}

/* Homepage grid sections use inline grid-column spans for desktop layout;
   stack them full-width on mobile instead of compressing side-by-side. */
@media (max-width: 760px) {
  .grid-12 > [style*="grid-column"] { grid-column: 1 / -1 !important; }
  .grid-12 { row-gap: 40px; }
  .footer__top { flex-direction: column; align-items: flex-start; }
}

/* ==========================================================================
   Legal pages (Privacy / Terms) — shared across GladeX and product sub-sites
   ========================================================================== */
.legal { max-width: 760px; }
.legal h2 { display: flex; align-items: baseline; gap: 16px; font-family: var(--font-display); font-size: clamp(20px,2.4vw,26px); font-weight: 600; letter-spacing: -0.01em; margin-top: 56px; margin-bottom: 16px; }
.legal-num {
  font-family: var(--font-mono);
  font-weight: 700;
  font-size: 0.62em;
  color: transparent;
  -webkit-text-stroke: 1px rgba(255,255,255,0.32);
  flex-shrink: 0;
}
.legal h3 { font-family: var(--font-display); font-size: 17px; font-weight: 600; margin-top: 28px; margin-bottom: 10px; color: var(--text); }
.legal p { margin-bottom: 14px; }
.legal ul { margin: 0 0 14px 0; padding-left: 20px; }
.legal li { color: var(--text-secondary); margin-bottom: 8px; list-style: disc; }
.legal li strong { color: var(--text); }
.legal a.inline { color: var(--text); text-decoration: underline; text-underline-offset: 3px; }
.legal .updated { font-family: var(--font-mono); font-size: 12px; color: var(--text-tertiary); margin-top: 10px; }
.legal .toc { border: 1px solid var(--border); border-radius: var(--radius-sm); padding: 20px 24px; margin-top: 40px; }
.legal .toc p { font-family: var(--font-mono); font-size: 11px; text-transform: uppercase; letter-spacing: .08em; color: var(--text-tertiary); margin-bottom: 12px; }
.legal .toc ol { padding-left: 18px; margin: 0; }
.legal .toc li { list-style: decimal; color: var(--text-secondary); font-size: 14px; margin-bottom: 6px; }
.legal .toc a { color: var(--text-secondary); }
.legal .toc a:hover { color: var(--text); }
.legal .note {
  border: 1px solid var(--border-strong);
  border-radius: var(--radius-sm);
  padding: 18px 22px;
  font-size: 13.5px;
  color: var(--text-tertiary);
  margin-top: 64px;
}
.legal-placeholder {
  border: 1px dashed var(--border-strong);
  border-radius: var(--radius-md);
  padding: clamp(28px, 5vw, 48px);
  margin-top: 40px;
  text-align: center;
}
.legal-placeholder p { color: var(--text-secondary); max-width: 46ch; margin-inline: auto; }

/* ---------- Inline legal links on a product page ---------- */
.legal-links { display: flex; gap: 28px; flex-wrap: wrap; }
.legal-links a { font-family: var(--font-mono); font-size: 12.5px; letter-spacing: 0.04em; color: var(--text-tertiary); border-bottom: 1px solid var(--border-strong); padding-bottom: 2px; transition: color .3s var(--ease-soft), border-color .3s var(--ease-soft); }
.legal-links a:hover { color: var(--text); border-color: var(--text); }

/* ---------- Simple redirect page ---------- */
.redirect-note { color: var(--text-tertiary); font-family: var(--font-mono); font-size: 13px; margin-top: 20px; }

/* ==========================================================================
   Weighly theme — scoped accent color for the Weighly mini-site.
   Applied only within pages carrying class="theme-weighly" on <body>.
   Used sparingly: primary buttons, chart lines, range markers. Never as a
   page background — the shell stays the same monochrome GladeX dark.
   ========================================================================== */
.theme-weighly { --accent: #8b7bff; --accent-dim: rgba(139, 123, 255, 0.14); }

.btn--accent { background: var(--accent); color: #fff; }
.btn--accent:hover { transform: translateY(-2px); filter: brightness(1.08); }

/* Trend chart (weight history) */
.trend-chart { width: 100%; height: 96px; margin-top: auto; }
.trend-chart path.line { fill: none; stroke: var(--accent); stroke-width: 2.2; stroke-linecap: round; stroke-linejoin: round; }
.trend-chart path.area { fill: var(--accent); opacity: 0.12; stroke: none; }
.trend-chart circle { fill: var(--accent); }

/* Goal / BMI range bar */
.range-bar { margin-top: auto; }
.range-bar__track { height: 6px; border-radius: 4px; background: rgba(255,255,255,0.08); position: relative; overflow: visible; }
.range-bar__zone { position: absolute; top: 0; bottom: 0; background: var(--accent-dim); border-radius: 4px; }
.range-bar__marker { position: absolute; top: 50%; width: 10px; height: 10px; border-radius: 50%; background: var(--accent); transform: translate(-50%, -50%); box-shadow: 0 0 0 4px rgba(139,123,255,0.18); }
.range-bar__labels { display: flex; justify-content: space-between; margin-top: 8px; font-family: var(--font-mono); font-size: 9px; color: var(--text-tertiary); }

/* Streak strip */
.streak-strip { display: flex; gap: 6px; margin-top: auto; }
.streak-strip i { flex: 1; aspect-ratio: 1; border-radius: 5px; background: rgba(255,255,255,0.07); }
.streak-strip i.is-done { background: var(--accent); }

/* Insight card */
.insight-card { border-left: 2px solid var(--accent); padding: 4px 0 4px 20px; margin-bottom: 18px; }
.insight-card p { color: var(--text-secondary); font-size: 15px; }
.insight-card p:first-child { color: var(--text); font-weight: 500; margin-bottom: 4px; }

/* Photo compare */
.photo-compare { display: flex; align-items: center; justify-content: center; gap: 20px; }
.photo-compare .phone { --pw: 176px; }
.photo-compare__vs { font-family: var(--font-mono); font-size: 11px; color: var(--text-tertiary); }
.photo-frame { width: 100%; flex: 1; border-radius: 14px; background: linear-gradient(160deg, #171717, #060606); border: 1px solid var(--border); display: flex; align-items: center; justify-content: center; }

/* BMI gauge */
.bmi-gauge__value { font-family: var(--font-display); font-size: 26px; font-weight: 600; }

@media (max-width: 640px) {
  .photo-compare { flex-direction: column; }
  .photo-compare .phone { --pw: min(60vw, 220px); }
}

/* ==========================================================================
   Weighly — additional components (achievements, widgets, BMI zones)
   ========================================================================== */
.badge-grid { display: grid; grid-template-columns: repeat(8, 1fr); gap: 10px; }
.badge-grid i {
  aspect-ratio: 1; border-radius: 12px;
  background: rgba(255,255,255,0.04);
  border: 1px solid var(--border);
  display: block;
}
.badge-grid i.is-unlocked {
  background: linear-gradient(155deg, var(--accent, #8b7bff), #5b4fd6);
  border-color: transparent;
}
@media (max-width: 480px) { .badge-grid { grid-template-columns: repeat(6, 1fr); } }

.widget-row { display: flex; align-items: flex-end; justify-content: center; gap: 18px; flex-wrap: wrap; }
.widget-box {
  background: linear-gradient(160deg, #1c1c1c, #050505 65%);
  border: 1px solid var(--border-strong);
  border-radius: 22px;
  display: flex; align-items: center; justify-content: center;
  flex-direction: column; gap: 6px;
  padding: 12px;
}
.widget-box--sm { width: 100px; height: 100px; }
.widget-box--md { width: 216px; height: 100px; flex-direction: row; }
.widget-box--lg { width: 216px; height: 216px; }
.widget-box svg { width: 44px; height: 44px; }
.widget-box__label { font-family: var(--font-mono); font-size: 9px; color: var(--text-tertiary); letter-spacing: .06em; text-transform: uppercase; }

.bmi-track-4 { height: 8px; border-radius: 5px; display: flex; overflow: hidden; position: relative; margin-top: 6px; }
.bmi-track-4 span { flex: 1; }
.bmi-track-4 .z-under { background: #5b8def; }
.bmi-track-4 .z-normal { background: #4caf6d; }
.bmi-track-4 .z-over { background: #e0a83e; }
.bmi-track-4 .z-obese { background: #c1673d; }
.bmi-track-4__wrap { position: relative; }
.bmi-track-4__marker {
  position: absolute; top: 50%; width: 10px; height: 10px; border-radius: 50%;
  background: #fff; border: 2px solid #000; transform: translate(-50%, -50%);
}
.bmi-track-4__labels { display: flex; justify-content: space-between; margin-top: 8px; font-family: var(--font-mono); font-size: 8.5px; color: var(--text-tertiary); }

.stat-strip { display: flex; gap: 18px; margin-top: auto; }
.stat-strip__item { flex: 1; }
.stat-strip__num { font-family: var(--font-display); font-size: 18px; font-weight: 600; }
.stat-strip__label { font-family: var(--font-mono); font-size: 8px; color: var(--text-tertiary); text-transform: uppercase; letter-spacing: .05em; }

.two-up { display: flex; gap: 24px; justify-content: center; }
.two-up .phone { --pw: 210px; }
@media (max-width: 560px) { .two-up { flex-direction: column; align-items: center; } }

/* ==========================================================================
   Premium polish pass — grain, custom scrollbar, cursor glow, shine, depth
   ========================================================================== */

/* ---------- Custom scrollbar ---------- */
html { scrollbar-color: rgba(255,255,255,0.16) #000; scrollbar-width: thin; }
::-webkit-scrollbar { width: 10px; height: 10px; }
::-webkit-scrollbar-track { background: #000; }
::-webkit-scrollbar-thumb { background: rgba(255,255,255,0.14); border-radius: 10px; border: 2px solid #000; }
::-webkit-scrollbar-thumb:hover { background: rgba(255,255,255,0.26); }

/* ---------- Film grain — subtle, always-on texture so black never looks flat ---------- */
body::before {
  content: '';
  position: fixed;
  inset: 0;
  z-index: 1;
  pointer-events: none;
  opacity: 0.035;
  mix-blend-mode: overlay;
  background-repeat: repeat;
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='140' height='140'%3E%3Cfilter id='n'%3E%3CfeTurbulence type='fractalNoise' baseFrequency='0.9' numOctaves='2' stitchTiles='stitch'/%3E%3C/filter%3E%3Crect width='100%25' height='100%25' filter='url(%23n)'/%3E%3C/svg%3E");
}

/* ---------- Cursor glow — created by JS, extremely subtle stage light ---------- */
.cursor-glow {
  position: fixed;
  top: 0; left: 0;
  width: 640px; height: 640px;
  margin-left: -320px; margin-top: -320px;
  border-radius: 50%;
  background: radial-gradient(circle, rgba(255,255,255,0.05) 0%, rgba(255,255,255,0) 68%);
  pointer-events: none;
  z-index: 2;
  transform: translate(-9999px, -9999px);
  opacity: 0;
  transition: opacity 0.5s var(--ease-soft);
  will-change: transform;
}
.cursor-glow.is-active { opacity: 1; }

/* ---------- Button shine sweep ---------- */
.btn--primary, .btn--accent { position: relative; overflow: hidden; }
.btn--primary::before, .btn--accent::before {
  content: '';
  position: absolute;
  top: 0; left: -60%;
  width: 35%; height: 100%;
  transform: skewX(-20deg);
  transition: left 0.75s var(--ease);
  pointer-events: none;
}
.btn--primary::before { background: linear-gradient(120deg, transparent, rgba(0,0,0,0.09), transparent); }
.btn--accent::before { background: linear-gradient(120deg, transparent, rgba(255,255,255,0.35), transparent); }
.btn--primary:hover::before, .btn--accent:hover::before { left: 130%; }

/* ---------- Phone bezel — extra metallic rim ---------- */
.phone {
  box-shadow:
    inset 0 0 0 1px rgba(255,255,255,0.14),
    inset 0 1px 1px rgba(255,255,255,0.16),
    0 60px 100px -40px rgba(0,0,0,0.9),
    0 2px 0 rgba(255,255,255,0.04);
}

/* ---------- Product stage light behind phone showcases ---------- */
.showcase__phones { position: relative; }
.showcase__phones::before {
  content: '';
  position: absolute;
  top: -12%; bottom: -12%;
  left: -12%; right: -12%;
  background: radial-gradient(ellipse at center, rgba(255,255,255,0.06), transparent 70%);
  z-index: -1;
  pointer-events: none;
}

/* ---------- Panels get a touch more presence ---------- */
.showcase { box-shadow: inset 0 1px 0 rgba(255,255,255,0.05); }

/* ---------- Pricing highlight badge ---------- */
.price-card--highlight { position: relative; }
.price-card__badge {
  position: absolute; top: 20px; right: 20px;
  font-family: var(--font-mono); font-size: 10px; letter-spacing: 0.06em; text-transform: uppercase;
  color: var(--text); border: 1px solid var(--border-strong); border-radius: 100px; padding: 4px 10px;
}

/* ---------- Hero load-in stagger (page-load entrance, not scroll-triggered) ---------- */
[data-intro] { opacity: 0; animation: intro-up 1s var(--ease) both; }
[data-intro="1"] { animation-delay: 0.05s; }
[data-intro="2"] { animation-delay: 0.16s; }
[data-intro="3"] { animation-delay: 0.28s; }
[data-intro="4"] { animation-delay: 0.42s; }
[data-intro="5"] { animation-delay: 0.56s; }
@keyframes intro-up {
  from { opacity: 0; transform: translateY(22px); }
  to { opacity: 1; transform: translateY(0); }
}
@media (prefers-reduced-motion: reduce) {
  [data-intro] { animation: none; opacity: 1; }
}

/* ==========================================================================
   Premium product cards — replaces the plain list. All hover motion runs on
   transform/opacity/filter only (never padding/margin) so it stays perfectly
   smooth at 60fps with no layout jank.
   ========================================================================== */
.product-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(min(300px, 100%), 1fr));
  gap: 20px;
}
.product-card {
  position: relative;
  display: flex;
  flex-direction: column;
  gap: 24px;
  padding: 32px;
  border-radius: var(--radius-lg);
  border: 1px solid var(--border);
  background: linear-gradient(165deg, var(--bg-alt-2), #000 75%);
  overflow: hidden;
  isolation: isolate;
  transform: translateY(0) scale(1);
  transition: transform 0.6s var(--ease), border-color 0.6s var(--ease-soft), box-shadow 0.6s var(--ease);
  will-change: transform;
}
.product-card::before {
  /* mouse-tracked spotlight — set via --mx/--my in JS */
  content: '';
  position: absolute;
  inset: 0;
  z-index: -1;
  background: radial-gradient(480px circle at var(--mx, 50%) var(--my, 20%), rgba(255,255,255,0.07), transparent 55%);
  opacity: 0;
  transition: opacity 0.6s var(--ease-soft);
  pointer-events: none;
}
.product-card::after {
  /* hairline top sheen */
  content: '';
  position: absolute;
  inset: 0;
  border-radius: inherit;
  box-shadow: inset 0 1px 0 rgba(255,255,255,0.06);
  pointer-events: none;
}
.product-card:hover {
  transform: translateY(-6px) scale(1.008);
  border-color: var(--border-strong);
  box-shadow: 0 50px 90px -36px rgba(0,0,0,0.75);
}
.product-card.is-tilting { transition: transform 0.1s linear; }
.product-card:hover::before { opacity: 1; }

.product-card__top { display: flex; align-items: flex-start; justify-content: space-between; gap: 16px; }
.product-card__icon {
  width: 56px; height: 56px;
  border-radius: 16px;
  background: linear-gradient(160deg, #232323, #050505 70%);
  border: 1px solid var(--border-strong);
  display: flex; align-items: center; justify-content: center;
  font-family: var(--font-display); font-weight: 600; font-size: 19px;
  overflow: hidden;
  transition: transform 0.6s var(--ease);
}
.product-card__icon img { width: 100%; height: 100%; object-fit: cover; }
.product-card:hover .product-card__icon { transform: scale(1.06); }

.product-card__status {
  font-family: var(--font-mono); font-size: 10px; letter-spacing: 0.08em; text-transform: uppercase;
  color: var(--text-tertiary); border: 1px solid var(--border-strong); border-radius: 100px; padding: 5px 11px;
  flex-shrink: 0;
}

.product-card__body { flex: 1; }
.product-card__name { font-family: var(--font-display); font-size: clamp(20px, 2.2vw, 24px); font-weight: 600; letter-spacing: -0.02em; }
.product-card__desc { color: var(--text-secondary); font-size: 14.5px; margin-top: 8px; line-height: 1.55; }

.product-card__cta {
  display: flex; align-items: center; gap: 8px;
  font-family: var(--font-mono); font-size: 12.5px; letter-spacing: 0.03em;
  color: var(--text-tertiary);
  transition: color 0.5s var(--ease-soft), transform 0.5s var(--ease);
  transform: translateX(0);
}
.product-card:hover .product-card__cta { color: var(--text); transform: translateX(3px); }
.product-card__cta .arrow { display: inline-block; transition: transform 0.5s var(--ease); }
.product-card:hover .product-card__cta .arrow { transform: translateX(5px); }

/* ---------- "Coming soon" ghost card — hints at growth without revealing anything ---------- */
.product-card--soon {
  cursor: default;
  background: transparent;
  border-style: dashed;
  border-color: var(--border-strong);
  animation: soon-breathe 5s var(--ease-soft) infinite;
}
@keyframes soon-breathe {
  0%, 100% { border-color: var(--border-strong); }
  50% { border-color: rgba(255,255,255,0.22); }
}
.product-card--soon:hover { border-color: rgba(255,255,255,0.3); }
.product-card--soon::before {
  display: block;
  background: linear-gradient(115deg, transparent 35%, rgba(255,255,255,0.05) 50%, transparent 65%);
  background-size: 260% 260%;
  animation: soon-sheen 7s linear infinite;
  opacity: 1;
}
@keyframes soon-sheen {
  0% { background-position: 220% 220%; }
  100% { background-position: -40% -40%; }
}
.product-card--soon .product-card__status {
  color: var(--text-tertiary);
  border-color: var(--border);
}
.product-card__icon--ghost {
  background: transparent;
  border-style: dashed;
  border-color: var(--border-strong);
  transition: none;
}
.ghost-pulse {
  width: 9px; height: 9px;
  border-radius: 50%;
  background: var(--text-secondary);
  animation: ghost-pulse-breathe 2.6s var(--ease-soft) infinite;
}
@keyframes ghost-pulse-breathe {
  0%, 100% { transform: scale(0.65); opacity: 0.3; }
  50% { transform: scale(1.2); opacity: 0.95; }
}
.product-card__name--ghost { color: var(--text-tertiary); }

/* ---------- Hero ghost watermark — huge, near-invisible outlined wordmark ---------- */
.hero { position: relative; }
.hero__ghost {
  position: absolute;
  top: 52%; left: 50%;
  transform: translate(-50%, calc(-50% + var(--parallax-y, 0px)));
  font-family: var(--font-display);
  font-weight: 700;
  font-size: clamp(160px, 26vw, 440px);
  letter-spacing: -0.04em;
  color: transparent;
  -webkit-text-stroke: 1px rgba(255,255,255,0.045);
  white-space: nowrap;
  z-index: -1;
  pointer-events: none;
  user-select: none;
  will-change: transform;
}
@media (max-width: 700px) {
  .hero__ghost { display: none; }
  /* Scroll cue is a desktop affordance (hints there's more below when it's
     not obvious). On mobile it's redundant — touch scrolling is universal —
     and its absolute bottom-pinned position can collide with wrapped hero
     content on shorter screens. Simplest, safest fix: don't show it. */
  .scroll-cue { display: none; }
}

/* ==========================================================================
   Official Apple App Store badge — real artwork from Apple's Marketing
   Guidelines page, referenced as-is (not resized disproportionately or
   recolored, per Apple's usage rules).
   ========================================================================== */
.appstore-badge-link {
  display: inline-flex;
  transition: transform 0.45s var(--ease);
}
.appstore-badge-link:hover { transform: translateY(-2px); }
.appstore-badge-img { height: 48px; width: auto; display: block; }

/* Pre-release stand-in for the App Store badge. Not a link and no Apple logo:
   Apple's badge artwork can't be modified, and there is no "coming soon" version. */
.soon-badge {
  display: inline-flex; align-items: center; gap: 12px;
  height: 48px; padding: 0 18px 0 16px;
  border: 1px solid var(--border-strong); border-radius: 10px;
  background: #000; color: var(--text); cursor: default; user-select: none;
  animation: soon-breathe 5s var(--ease-soft) infinite;
}
.soon-badge__dot {
  width: 7px; height: 7px; border-radius: 50%; background: var(--text); flex: none;
  animation: breathe 2.6s var(--ease-soft) infinite;
}
.soon-badge__text { display: flex; flex-direction: column; line-height: 1.05; text-align: left; }
.soon-badge__text small { font-family: var(--font-mono); font-size: 9.5px; letter-spacing: 0.14em; text-transform: uppercase; color: var(--text-tertiary); }
.soon-badge__text b { font-size: 18px; font-weight: 600; letter-spacing: -0.01em; margin-top: 3px; }
@media (prefers-reduced-motion: reduce) { .soon-badge, .soon-badge__dot { animation: none; } }

/* ==========================================================================
   View Transitions — REMOVED. Caused a broken/blank-white navigation on at
   least one real device when leaving the Quit page (the heaviest page on
   the site — 9 images + animations — likely too much for the browser to
   capture into a transition snapshot reliably). Not worth the risk for a
   cosmetic crossfade; reverted to plain, always-reliable navigation.
   ========================================================================== */

/* ==========================================================================
   Real screenshot slot — drop files into /assets/products/Quit Screens/
   with the matching name and they replace the illustrative mockup
   automatically. Until a file exists, onerror hides it and the existing
   CSS/SVG placeholder underneath shows through — no other markup changes
   needed later.
   ========================================================================== */
.phone__real-shot {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
  z-index: 4;
  border-radius: inherit;
}

/* ==========================================================================
   Print styles — mainly for legal pages (Privacy/Terms), but scoped
   generically so nothing dark-and-decorative ever prints as a black page.
   ========================================================================== */
@media print {
  body::before { display: none !important; } /* grain overlay */
  .cursor-glow, .nav, .mobile-menu, .hamburger, .hero__ghost, .scroll-cue,
  .principle__ghost, .btn, .appstore-badge-link, .soon-badge { display: none !important; }

  html, body { background: #fff !important; color: #000 !important; }
  * { box-shadow: none !important; text-shadow: none !important; filter: none !important; }

  main { padding-top: 20px !important; }
  .legal { max-width: 100% !important; color: #000 !important; }
  .legal h1, .legal h2, .legal h3, .legal p, .legal li { color: #000 !important; }
  .legal .eyebrow, .legal .updated, .legal .text-dim { color: #444 !important; }
  .legal .eyebrow::before { background: #444 !important; }
  .legal a { color: #000 !important; text-decoration: underline; }
  .legal a.inline { text-decoration: underline; }
  .legal .toc, .legal .note, .legal-placeholder {
    background: #fff !important;
    border: 1px solid #999 !important;
    color: #000 !important;
  }
  .legal .toc a, .legal .toc p { color: #000 !important; }
  .legal li { list-style: disc; }

  .footer { display: none !important; }

  a[href^="http"]:not(.logo-mark)::after,
  a[href^="mailto:"]::after {
    content: " (" attr(href) ")";
    font-size: 0.75em;
    color: #555;
  }
}

/* ==========================================================================
   App screenshots (Quit) — the user's own screenshots already include a
   phone frame baked into the image (975×1988), so this is deliberately NOT
   another drawn bezel — just the image itself, sized, given a soft floor
   shadow for depth, and (on standalone shots) the same gentle 3D tilt as
   everything else on the site.
   ========================================================================== */
.app-shot {
  --pw: 260px;
  width: min(var(--pw), 78vw);
  aspect-ratio: 975 / 1988;
  display: block;
  flex-shrink: 0;
  filter: drop-shadow(0 46px 70px rgba(0,0,0,0.55));
  transition: transform 0.7s var(--ease), filter 0.7s var(--ease);
}
.app-shot { position: relative; }
.app-shot img { width: 100%; height: 100%; object-fit: contain; display: block; }

/* Stage light behind standalone screenshots (AI Coach, Savings, Analytics,
   SOS, Journal) — the hero triptych already gets this via .showcase__phones;
   single shots elsewhere on the page were sitting on flat black without it. */
.app-shot:not(.app-shot--side):not(.app-shot--main)::before {
  content: '';
  position: absolute;
  top: -20%; bottom: -20%;
  left: -15%; right: -15%;
  background: radial-gradient(ellipse at center, rgba(255,255,255,0.06), transparent 70%);
  z-index: -1;
  pointer-events: none;
}

.app-shot--side { --pw: 220px; position: relative; z-index: 1; transform: translateY(28px) scale(0.94); filter: drop-shadow(0 30px 46px rgba(0,0,0,0.4)) brightness(0.65); }
.app-shot--main { position: relative; z-index: 2; }
.app-shot--left { margin-right: -34px; }
.app-shot--right { margin-left: -34px; }
.showcase__phones:hover .app-shot--side { transform: translateY(14px) scale(0.96); filter: drop-shadow(0 30px 46px rgba(0,0,0,0.4)) brightness(0.85); }
.showcase__phones:hover .app-shot--main { transform: translateY(-10px); }

@media (max-width: 640px) {
  .app-shot--side { display: none; }
  .app-shot--main { margin-inline: auto; }
}

 

/* ==========================================================================
   Growth divider — a real comparison chart, not decoration. Illustrates the
   hero claim ("products people choose to keep") conceptually: most apps
   fade fast, ours don't. No invented statistics — purely illustrative, and
   labeled as such visually via plain qualitative labels, not numbers.

   Technical notes fixing the previous attempt's bugs:
   - pathLength="1" on each <path> makes stroke-dasharray/dashoffset math
     exact regardless of curve complexity — no more guessed numbers.
   - The chart's aspect-ratio is fixed and preserveAspectRatio stays at its
     default (uniform scaling), so the dot never distorts into an oval.
   - Animation only starts once scrolled into view (.is-drawing, added by
     JS via IntersectionObserver), not on page load.
   ========================================================================== */
.growth-divider__head { max-width: 640px; margin-bottom: 44px; }
.growth-divider__caption { color: var(--text-secondary); font-size: 15px; line-height: 1.6; margin-top: 10px; max-width: 54ch; }

.growth-chart { position: relative; width: 100%; aspect-ratio: 1000 / 300; margin-top: 12px; }
.growth-chart svg { width: 100%; height: 100%; display: block; overflow: visible; }

.growth-chart .chart-line { fill: none; stroke-linecap: round; stroke-dasharray: 1; stroke-dashoffset: 1; }
.growth-chart .chart-line--muted { stroke: rgba(255,255,255,0.2); stroke-width: 2; }
.growth-chart .chart-line--solid {
  stroke: #fff;
  stroke-width: 2;
}
.growth-chart .chart-dot { fill: #fff; opacity: 0; transform-box: fill-box; transform-origin: center; }

.growth-chart.is-drawing .chart-line--muted { animation: growth-chart-draw 1.6s var(--ease) forwards; }
.growth-chart.is-drawing .chart-line--solid { animation: growth-chart-draw 1.7s var(--ease) 0.35s forwards; }
.growth-chart.is-drawing .chart-dot {
  animation: growth-chart-dot-in 0.4s var(--ease) 2s forwards,
             growth-chart-dot-pulse 3s var(--ease-soft) 2.4s infinite;
}
@keyframes growth-chart-draw { to { stroke-dashoffset: 0; } }
@keyframes growth-chart-dot-in { to { opacity: 1; } }
@keyframes growth-chart-dot-pulse {
  0%, 100% { transform: scale(1); opacity: 1; }
  50% { transform: scale(1.4); opacity: 0.5; }
}

/* Logo mark, floating just above the peak of the "GladeX" line */
.growth-chart__mark {
  position: absolute;
  right: -2px; top: -34px;
  width: 24px; height: 24px;
  object-fit: contain;
  opacity: 0;
  transform: translateY(6px) scale(0.8);
  transition: opacity 0.6s var(--ease) 2.1s, transform 0.6s var(--ease) 2.1s;
}
.growth-chart.is-drawing .growth-chart__mark { opacity: 1; transform: translateY(0) scale(1); }

.growth-chart__label {
  position: absolute; right: 0;
  display: flex; align-items: center;
  font-family: var(--font-mono); font-size: 11px; letter-spacing: 0.04em; text-transform: uppercase;
  opacity: 0; transition: opacity 0.6s var(--ease-soft) 1.7s;
}
.growth-chart__label i { display: inline-block; width: 6px; height: 6px; border-radius: 50%; margin-right: 7px; }
.growth-chart.is-drawing .growth-chart__label { opacity: 1; }
.growth-chart__label--top { top: 2%; color: var(--text); }
.growth-chart__label--top i { background: #fff; }
.growth-chart__label--bottom { bottom: 4%; color: var(--text-tertiary); }
.growth-chart__label--bottom i { background: var(--text-tertiary); }

@media (prefers-reduced-motion: reduce) {
  .growth-chart .chart-line { stroke-dashoffset: 0; animation: none !important; }
  .growth-chart .chart-dot { opacity: 1; animation: none !important; }
  .growth-chart__label { opacity: 1; transition: none; }
  .growth-chart__mark { opacity: 1; transform: none; }
}
@media (max-width: 700px) {
  .growth-chart__label { font-size: 10px; }
}

/* ==========================================================================
   Blur-up image loading — real screenshots fade in from a soft blur instead
   of popping in the instant the file finishes downloading. Scoped to real
   app screenshots only (.app-shot img), not logos/icons elsewhere.
   ========================================================================== */
.app-shot img {
  filter: blur(18px);
  opacity: 0;
  transform: scale(1.04);
  transition: filter 0.9s var(--ease-soft), opacity 0.7s var(--ease-soft), transform 0.9s var(--ease-soft);
}
.app-shot img.is-loaded {
  filter: blur(0);
  opacity: 1;
  transform: scale(1);
}
@media (prefers-reduced-motion: reduce) {
  .app-shot img { transition: opacity 0.3s linear; transform: none; filter: none; }
}

/* ==========================================================================
   Scroll progress indicator — thin, fixed line at the very top, for long
   pages (currently just Quit). A faint always-visible track plus a bright
   fill that grows with scroll position. transform-based, no layout cost.
   ========================================================================== */
.scroll-progress {
  position: fixed;
  top: 0; left: 0;
  width: 100%; height: 2px;
  background: var(--border);
  z-index: 101;
  pointer-events: none;
}
.scroll-progress__fill {
  height: 100%;
  width: 100%;
  background: #fff;
  transform: scaleX(0);
  transform-origin: left;
  will-change: transform;
}

/* ==========================================================================
   Footer social icons — grayscale at rest (site stays strictly monochrome),
   real brand color only reveals on hover as a small, restrained reward.
   ========================================================================== */
.footer__social { display: flex; gap: 10px; margin-top: 18px; }
.footer__social-link {
  display: inline-flex; align-items: center; justify-content: center;
  width: 32px; height: 32px;
  border-radius: 8px;
  transition: transform 0.4s var(--ease), background 0.3s var(--ease-soft);
}
.footer__social-link:hover { transform: translateY(-2px); background: rgba(255,255,255,0.06); }
.footer__social-link img {
  width: 17px; height: 17px; object-fit: contain;
  filter: grayscale(1);
  opacity: 0.62;
  transition: filter 0.4s var(--ease-soft), opacity 0.4s var(--ease-soft);
}
.footer__social-link:hover img { filter: grayscale(0); opacity: 1; }

/* ==========================================================================
   Weighly product page — its framed screenshots are a touch taller than
   Quit's, and the widgets / watch art sits free on the page (no phone).
   ========================================================================== */
.app-shot--weighly { aspect-ratio: 975 / 2118; }
.weighly-devices__img {
  display: block;
  height: auto;
  filter: drop-shadow(0 40px 60px rgba(0,0,0,0.5));
}

/* Weighly film: a framed 4:5 player (9:16 on phones), muted autoplay, sound pill. */
.film {
  position: relative;
  max-width: 540px;
  margin-inline: auto;
  aspect-ratio: 4 / 5;
  border-radius: var(--radius-lg);
  overflow: hidden;
  background: #000;
  border: 1px solid var(--border-strong);
  box-shadow: 0 40px 120px rgba(0, 0, 0, 0.6);
}
.film--tall { aspect-ratio: 9 / 16; max-width: 420px; }
.film__video { display: block; width: 100%; height: 100%; object-fit: cover; cursor: pointer; }
.film__play {
  position: absolute; inset: 50% auto auto 50%;
  width: 84px; height: 84px; margin: -42px 0 0 -42px;
  display: grid; place-items: center;
  border-radius: 50%;
  border: 1px solid var(--border-strong);
  background: rgba(0, 0, 0, 0.5);
  -webkit-backdrop-filter: blur(14px); backdrop-filter: blur(14px);
  color: var(--text);
  cursor: pointer;
  transition: opacity 0.5s var(--ease), transform 0.5s var(--ease);
}
.film__play svg { width: 30px; height: 30px; margin-left: 4px; }
.film__play:hover { transform: scale(1.06); }
.film.is-playing .film__play { opacity: 0; pointer-events: none; transform: scale(0.9); }
.film__sound {
  position: absolute; right: 16px; bottom: 16px;
  display: inline-flex; align-items: center; gap: 8px;
  padding: 10px 16px 10px 12px;
  border-radius: 999px;
  border: 1px solid var(--border-strong);
  background: rgba(0, 0, 0, 0.55);
  -webkit-backdrop-filter: blur(14px); backdrop-filter: blur(14px);
  color: var(--text);
  font: 500 13px/1 var(--font-body);
  cursor: pointer;
  transition: background 0.4s var(--ease-soft), transform 0.4s var(--ease);
}
.film__sound:hover { background: rgba(255, 255, 255, 0.12); transform: translateY(-1px); }
.film__icon { width: 18px; height: 18px; }
.film__icon--on { display: none; }
.film.has-sound .film__icon--on { display: block; }
.film.has-sound .film__icon--off { display: none; }
@media (prefers-reduced-motion: reduce) {
  .film__play, .film__sound { transition: none; }
}

/* ==========================================================================
   Weighly press kit (products/weighly/press/)
   ========================================================================== */
.press-hero { padding-bottom: clamp(48px, 7vw, 96px); }
.press-hero__grid { display: grid; grid-template-columns: 1fr auto; gap: clamp(32px, 6vw, 96px); align-items: center; }
.press-hero__icon img { width: clamp(140px, 18vw, 220px); height: auto; border-radius: 22.5%; filter: drop-shadow(0 40px 60px rgba(0,0,0,0.6)); }
.press-size { font-size: 11px; opacity: 0.55; letter-spacing: 0.04em; }
@media (max-width: 760px) { .press-hero__grid { grid-template-columns: 1fr; } .press-hero__icon { order: -1; } }

.press-facts { display: grid; grid-template-columns: repeat(2, 1fr); border-top: 1px solid var(--border); }
.press-facts > div { display: grid; grid-template-columns: 130px 1fr; gap: 20px; padding: 22px 0; border-bottom: 1px solid var(--border); }
.press-facts > div:nth-child(odd) { padding-right: clamp(16px, 3vw, 48px); }
.press-facts dt { font-family: var(--font-mono); font-size: 11.5px; letter-spacing: 0.1em; text-transform: uppercase; color: var(--text-tertiary); padding-top: 3px; }
.press-facts dd { color: var(--text); font-size: 15.5px; line-height: 1.55; }
.press-facts a { border-bottom: 1px solid var(--border-strong); transition: border-color .3s var(--ease-soft); }
.press-facts a:hover { border-color: var(--text); }
@media (max-width: 860px) { .press-facts { grid-template-columns: 1fr; } .press-facts > div:nth-child(odd) { padding-right: 0; } }
@media (max-width: 480px) { .press-facts > div { grid-template-columns: 1fr; gap: 6px; } }

.press-copy { display: grid; gap: 16px; }
.press-copy__item { border: 1px solid var(--border); border-radius: var(--radius-md); padding: clamp(20px, 3vw, 32px); background: rgba(255,255,255,0.015); }
.press-copy__item header { display: flex; justify-content: space-between; align-items: center; margin-bottom: 14px; }
.press-copy__text p { color: var(--text); font-size: 16px; line-height: 1.7; max-width: 78ch; }
.press-copy__text p + p { margin-top: 14px; }
.press-copy__btn { font-size: 11.5px; letter-spacing: 0.08em; text-transform: uppercase; color: var(--text-secondary); border: 1px solid var(--border-strong); border-radius: 100px; padding: 8px 16px; background: none; cursor: pointer; transition: color .3s var(--ease-soft), border-color .3s var(--ease-soft); }
.press-copy__btn:hover, .press-copy__btn.is-done { color: var(--text); border-color: var(--text); }

.press-block { margin-top: clamp(56px, 7vw, 96px); }
.press-block__head { display: flex; justify-content: space-between; align-items: baseline; gap: 16px; flex-wrap: wrap; padding-bottom: 20px; margin-bottom: 24px; border-bottom: 1px solid var(--border); }

.press-icon-row { display: flex; gap: 20px; flex-wrap: wrap; }
.press-icon { width: 220px; aspect-ratio: 1; border-radius: var(--radius-md); display: grid; place-items: center; border: 1px solid var(--border); }
.press-icon img { width: 128px; height: 128px; border-radius: 22.5%; }
.press-icon--light { background: #F4F3EF; }
.press-icon--dark { background: #0a0a0a; }

.press-grid { display: grid; gap: 20px; }
.press-grid--phone { grid-template-columns: repeat(auto-fill, minmax(150px, 1fr)); }
.press-grid--ipad { grid-template-columns: repeat(auto-fill, minmax(240px, 1fr)); }
.press-grid--watch { grid-template-columns: repeat(auto-fill, minmax(140px, 180px)); }
.press-grid--wide { grid-template-columns: repeat(auto-fill, minmax(280px, 1fr)); }
.press-grid--film { grid-template-columns: repeat(auto-fill, minmax(220px, 300px)); align-items: start; }
.press-grid--mascot { grid-template-columns: repeat(auto-fill, minmax(150px, 1fr)); }

.press-tile { display: flex; flex-direction: column; gap: 10px; }
.press-tile__img { display: block; overflow: hidden; border-radius: var(--radius-sm); border: 1px solid var(--border); background: var(--bg-alt-2); transition: transform .6s var(--ease), border-color .3s var(--ease-soft); }
.press-tile__img img { display: block; width: 100%; height: auto; }
.press-tile--phone .press-tile__img { border-radius: 18px; }
.press-tile--watch .press-tile__img { border-radius: 28px; }
.press-tile--mascot .press-tile__img { background: #F4F3EF; padding: 14%; }
.press-tile:hover .press-tile__img { transform: translateY(-4px); border-color: var(--border-strong); }
.press-tile__meta { display: flex; justify-content: space-between; gap: 10px; font-size: 13px; color: var(--text-secondary); }
.press-tile__meta .mono { font-size: 10.5px; letter-spacing: 0.06em; color: var(--text-tertiary); padding-top: 2px; white-space: nowrap; }

.press-brand { display: grid; grid-template-columns: 1fr 1fr; gap: clamp(32px, 5vw, 80px); align-items: start; }
.press-brand__rules { border-top: 1px solid var(--border); }
.press-swatches { display: grid; grid-template-columns: repeat(3, 1fr); gap: 16px; }
.press-swatch { display: flex; flex-direction: column; gap: 6px; font-size: 14px; color: var(--text); }
.press-swatch .mono { font-size: 11.5px; color: var(--text-tertiary); }
.press-swatch__chip { display: block; aspect-ratio: 1; border-radius: var(--radius-md); border: 1px solid var(--border-strong); margin-bottom: 6px; }
@media (max-width: 760px) { .press-brand { grid-template-columns: 1fr; } }
.press-icon-row .press-tile { width: 220px; }
.press-icon-row .press-icon { width: 100%; }
.press-icon img.press-icon__square { border-radius: 0; }
@media (max-width: 520px) { .press-icon-row .press-tile { width: calc(50% - 10px); } }
