/* GrowBit — by HephaTech
   Pure monochromatic — supports both dark (default, app theme) and light modes */

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

.skip-link {
  position: absolute; left: -9999px; top: 0;
  background: var(--ink, #F5F5F5); color: var(--bg, #0A0A0A);
  padding: 10px 14px; border-radius: 8px; font-size: 13px; font-weight: 600; z-index: 100;
  text-decoration: none;
}
.skip-link:focus { left: 16px; top: 16px; }
:focus-visible { outline: 2px solid var(--ink, #F5F5F5); outline-offset: 3px; border-radius: 4px; }

:root {
  /* Default = DARK (the app's primary theme) */
  --bg: #0A0A0A;
  --bg-elev: #121212;
  --bg-card: #161616;
  --bg-soft: #1C1C1C;
  --line: rgba(255, 255, 255, 0.07);
  --line-strong: rgba(255, 255, 255, 0.14);
  --text: #F5F5F5;
  --text-soft: #E8E8E8;
  --muted: #888888;
  --muted-soft: #555555;
  --accent: #F5F5F5;
  --success: #22C55E;
}

[data-theme="light"] {
  --bg: #FAFAFA;
  --bg-elev: #FFFFFF;
  --bg-card: #FFFFFF;
  --bg-soft: #F2F2F2;
  --line: rgba(0, 0, 0, 0.08);
  --line-strong: rgba(0, 0, 0, 0.16);
  --text: #1A1A1A;
  --text-soft: #2a2a2a;
  --muted: #666666;
  --muted-soft: #aaaaaa;
  --accent: #0A0A0A;
  --success: #16a34a;
}

html { scroll-behavior: smooth; scroll-padding-top: 80px; }

body {
  background: var(--bg);
  color: var(--text);
  font-family: 'Inter', -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, sans-serif;
  line-height: 1.6;
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
  overflow-x: hidden;
  transition: background 0.3s ease, color 0.3s ease;
}

/* Scroll progress */
.scroll-progress {
  position: fixed;
  top: 0; left: 0;
  height: 3px;
  width: 0;
  background: linear-gradient(90deg, var(--text) 0%, #ffffff 100%);
  z-index: 1000;
  pointer-events: none;
  transition: width 0.05s linear;
  box-shadow: 0 0 10px rgba(245, 245, 245, 0.5);
}

/* Custom scrollbar — matches top progress bar */
* { scrollbar-width: thin; scrollbar-color: var(--text) var(--bg); }
::-webkit-scrollbar { width: 10px; height: 10px; }
::-webkit-scrollbar-track { background: var(--bg); }
::-webkit-scrollbar-thumb {
  background: var(--text);
  border-radius: 100px;
  border: 2px solid var(--bg);
  background-clip: padding-box;
}
::-webkit-scrollbar-thumb:hover { background: #ffffff; background-clip: padding-box; }
::-webkit-scrollbar-corner { background: var(--bg); }

/* Reveal animations */
[data-reveal] {
  opacity: 0;
  transform: translateY(24px);
  transition:
    opacity 0.9s cubic-bezier(0.22, 1, 0.36, 1),
    transform 0.9s cubic-bezier(0.22, 1, 0.36, 1);
  will-change: opacity, transform;
}
[data-reveal].is-visible { opacity: 1; transform: translateY(0); }
[data-reveal-stagger] > * {
  opacity: 0;
  transform: translateY(18px);
  transition:
    opacity 0.8s cubic-bezier(0.22, 1, 0.36, 1),
    transform 0.8s cubic-bezier(0.22, 1, 0.36, 1);
  transition-delay: var(--stagger, 0ms);
}
[data-reveal-stagger].is-visible > * { opacity: 1; transform: translateY(0); }

@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  [data-reveal], [data-reveal].is-visible,
  [data-reveal-stagger] > *, [data-reveal-stagger].is-visible > * {
    opacity: 1; transform: none; transition: none;
  }
  .phone-screenshot, .scroll-progress, .status-pill::before { animation: none !important; }
}

/* Image fade-in */
img { opacity: 0; transition: opacity 0.5s ease; }
img.is-loaded, img[src*=".svg"] { opacity: 1; }

a { color: var(--text); text-decoration: none; transition: opacity 0.2s ease, color 0.2s ease; }
a:hover { opacity: 0.7; }

/* Background grain (subtle) */
.grain {
  position: fixed;
  inset: 0;
  pointer-events: none;
  z-index: 0;
  opacity: 0.04;
  background-image: url("data:image/svg+xml,%3Csvg viewBox='0 0 200 200' xmlns='http://www.w3.org/2000/svg'%3E%3Cfilter id='n'%3E%3CfeTurbulence type='fractalNoise' baseFrequency='0.85' numOctaves='3' stitchTiles='stitch'/%3E%3C/filter%3E%3Crect width='100%25' height='100%25' filter='url(%23n)'/%3E%3C/svg%3E");
}

/* Layout */
.page { min-height: 100vh; display: flex; flex-direction: column; position: relative; z-index: 1; }
.container { width: 100%; max-width: 1140px; margin: 0 auto; padding: 0 32px; }

/* Header */
.site-header {
  padding: 22px 0;
  border-bottom: 1px solid var(--line);
  position: sticky;
  top: 0;
  background: color-mix(in srgb, var(--bg) 85%, transparent);
  backdrop-filter: blur(16px);
  -webkit-backdrop-filter: blur(16px);
  z-index: 50;
  transition: background 0.3s ease, border-color 0.3s ease;
}
.site-header .container {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 24px;
}
.brand-mark {
  display: flex;
  align-items: center;
  gap: 12px;
  font-size: 14px;
  font-weight: 600;
  letter-spacing: -0.01em;
}
.brand-icon {
  width: 32px; height: 32px;
  display: block;
}
.brand-text {
  display: flex;
  align-items: center;
  font-size: 14px;
  color: var(--muted);
}
.brand-text a { color: var(--muted); }
.brand-text a:hover { color: var(--text); opacity: 1; }
.brand-text .slash { color: var(--muted-soft); margin: 0 10px; }
.brand-text .parent { color: var(--muted); }
.brand-text .product { color: var(--text); font-weight: 700; font-size: 16px; letter-spacing: -0.01em; }
.nav-links {
  display: flex;
  gap: 28px;
  list-style: none;
  align-items: center;
}
.nav-links a {
  color: var(--muted);
  font-size: 14px;
  font-weight: 500;
}
.nav-links a:hover { color: var(--text); opacity: 1; }
.nav-cta {
  background: var(--text);
  color: var(--bg) !important;
  padding: 8px 18px;
  border-radius: 100px;
  font-weight: 600 !important;
  font-size: 13px !important;
}
.nav-cta:hover { opacity: 0.9; }

/* Theme toggle */
.theme-toggle {
  width: 38px; height: 38px;
  background: transparent;
  border: 1px solid var(--line-strong);
  border-radius: 100px;
  cursor: pointer;
  display: grid;
  place-items: center;
  color: var(--text);
  transition: border-color 0.2s, background 0.2s;
  font-family: inherit;
}
.theme-toggle:hover { border-color: var(--text); background: var(--bg-soft); }
.theme-toggle svg { width: 16px; height: 16px; }
.theme-toggle .icon-sun { display: none; }
.theme-toggle .icon-moon { display: block; }
[data-theme="light"] .theme-toggle .icon-sun { display: block; }
[data-theme="light"] .theme-toggle .icon-moon { display: none; }

/* Mobile hamburger */
.nav-toggle {
  display: none;
  width: 40px; height: 40px;
  background: var(--bg-card);
  border: 1px solid var(--line-strong);
  border-radius: 100px;
  padding: 0;
  cursor: pointer;
  align-items: center;
  justify-content: center;
  flex-direction: column;
  gap: 4px;
}
.nav-toggle-bar {
  display: block;
  width: 18px;
  height: 2px;
  background: var(--text);
  border-radius: 2px;
  transition: transform 0.35s cubic-bezier(0.22, 1, 0.36, 1), opacity 0.2s ease;
}
.nav-toggle[aria-expanded="true"] .nav-toggle-bar:nth-child(1) { transform: translateY(6px) rotate(45deg); }
.nav-toggle[aria-expanded="true"] .nav-toggle-bar:nth-child(2) { opacity: 0; }
.nav-toggle[aria-expanded="true"] .nav-toggle-bar:nth-child(3) { transform: translateY(-6px) rotate(-45deg); }
.back-link {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  color: var(--muted);
  font-size: 14px;
  font-weight: 500;
}
.back-link:hover { color: var(--text); opacity: 1; }
.back-link svg { width: 16px; height: 16px; }

/* Hero */
.hero {
  padding: 100px 0 80px;
  position: relative;
}
.hero-grid {
  display: grid;
  grid-template-columns: 1.05fr 0.95fr;
  gap: 60px;
  align-items: center;
}
.hero-content { max-width: 560px; }
.status-pill {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 6px 14px;
  border: 1px solid var(--line-strong);
  background: var(--bg-card);
  border-radius: 100px;
  font-size: 12px;
  font-weight: 600;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  color: var(--text);
  margin-bottom: 28px;
}
.status-pill::before {
  content: '';
  width: 7px; height: 7px;
  border-radius: 50%;
  background: var(--success);
  box-shadow: 0 0 0 0 var(--success);
  animation: pulse 2.4s ease-out infinite;
}
@keyframes pulse {
  0% { box-shadow: 0 0 0 0 rgba(34, 197, 94, 0.6); }
  100% { box-shadow: 0 0 0 12px rgba(34, 197, 94, 0); }
}

.hero-title {
  font-size: clamp(48px, 7.5vw, 96px);
  font-weight: 800;
  letter-spacing: -0.04em;
  line-height: 0.98;
  margin-bottom: 24px;
}
.hero-title .accent {
  color: var(--muted);
  font-style: italic;
  font-weight: 300;
}

.hero-subtitle {
  font-size: 19px;
  color: var(--muted);
  font-weight: 400;
  margin-bottom: 36px;
  line-height: 1.55;
  max-width: 520px;
}
.hero-subtitle strong { color: var(--text); font-weight: 500; }

.hero-buttons {
  display: flex;
  gap: 14px;
  margin-bottom: 32px;
  flex-wrap: wrap;
}
.btn {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  padding: 14px 26px;
  border-radius: 14px;
  font-size: 15px;
  font-weight: 600;
  text-decoration: none;
  transition: transform 0.15s ease, opacity 0.2s ease, background 0.2s ease, border-color 0.2s ease;
  border: 1px solid transparent;
  cursor: pointer;
  font-family: inherit;
}
.btn:hover { transform: translateY(-2px); }
.btn-primary {
  background: var(--text);
  color: var(--bg);
}
.btn-primary:hover { opacity: 1; background: #fff; }
.btn-secondary {
  background: var(--bg-card);
  color: var(--text);
  border-color: var(--line-strong);
}
.btn-secondary:hover { opacity: 1; background: var(--bg-soft); border-color: rgba(255, 255, 255, 0.22); }
.btn.is-soon { cursor: not-allowed; opacity: 0.7; }
.btn.is-soon:hover { transform: none; opacity: 0.7; }
.soon-tag {
  display: inline-block;
  font-size: 10px;
  font-weight: 600;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  background: rgba(245, 245, 245, 0.1);
  color: var(--muted);
  padding: 2px 8px;
  border-radius: 100px;
  margin-left: 4px;
  border: 1px solid var(--line);
}
.btn svg { width: 20px; height: 20px; }

.hero-meta {
  display: flex;
  gap: 28px;
  font-size: 13px;
  color: var(--muted);
}
.hero-meta strong { color: var(--text); font-weight: 600; }

/* Hero phone */
.phone-stage {
  position: relative;
  display: flex;
  align-items: center;
  justify-content: center;
  min-height: 600px;
}
.phone-screenshot {
  width: 320px;
  max-width: 100%;
  height: auto;
  border-radius: 36px;
  filter: drop-shadow(0 30px 60px rgba(0, 0, 0, 0.6));
  transform: rotate(-3deg);
  animation: float 7s ease-in-out infinite;
  background: #000;
}
@keyframes float {
  0%, 100% { transform: rotate(-3deg) translateY(0); }
  50% { transform: rotate(-3deg) translateY(-12px); }
}

/* Stats band */
.stats {
  padding: 56px 0;
  border-top: 1px solid var(--line);
  border-bottom: 1px solid var(--line);
  background: var(--bg-elev);
}
.stats-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 24px;
  text-align: center;
}
.stat-num {
  font-size: 40px;
  font-weight: 800;
  letter-spacing: -0.03em;
  line-height: 1;
  margin-bottom: 8px;
  color: var(--text);
}
.stat-label {
  font-size: 13px;
  color: var(--muted);
  font-weight: 500;
}

/* Section shell */
section.block { padding: 110px 0; }
.section-eyebrow {
  display: inline-block;
  color: var(--muted);
  font-size: 13px;
  font-weight: 600;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  margin-bottom: 20px;
  position: relative;
  padding-left: 24px;
}
.section-eyebrow::before {
  content: '';
  position: absolute;
  left: 0;
  top: 50%;
  transform: translateY(-50%);
  width: 14px;
  height: 1px;
  background: var(--muted);
}
.section-title {
  font-size: clamp(34px, 5vw, 56px);
  font-weight: 800;
  letter-spacing: -0.03em;
  line-height: 1.05;
  margin-bottom: 22px;
  max-width: 780px;
}
.section-title em {
  color: var(--muted);
  font-style: italic;
  font-weight: 400;
}
.section-lede {
  font-size: 18px;
  color: var(--muted);
  max-width: 640px;
  margin-bottom: 56px;
  line-height: 1.55;
}

/* Feature grid */
.feature-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 1px;
  background: var(--line);
  border: 1px solid var(--line);
  border-radius: 24px;
  overflow: hidden;
}
.feature {
  background: var(--bg);
  padding: 36px 32px;
  transition: background 0.3s ease;
}
.feature:hover { background: var(--bg-card); }
.feature-icon {
  width: 44px;
  height: 44px;
  border-radius: 12px;
  background: var(--bg-card);
  border: 1px solid var(--line);
  display: grid;
  place-items: center;
  margin-bottom: 20px;
  font-size: 20px;
}
.feature h3 {
  font-size: 19px;
  font-weight: 700;
  letter-spacing: -0.01em;
  margin-bottom: 10px;
}
.feature p {
  font-size: 14px;
  color: var(--muted);
  line-height: 1.65;
}

/* Showcase rows (alternating image/text) */
.showcase {
  padding: 110px 0;
  border-top: 1px solid var(--line);
}
.showcase-row {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 80px;
  align-items: center;
  margin-bottom: 120px;
}
.showcase-row:last-child { margin-bottom: 0; }
.showcase-row.reverse { direction: rtl; }
.showcase-row.reverse > * { direction: ltr; }
.showcase-text { max-width: 480px; }
.showcase-text h2 {
  font-size: clamp(30px, 4vw, 42px);
  font-weight: 800;
  letter-spacing: -0.02em;
  line-height: 1.1;
  margin-bottom: 16px;
}
.showcase-text h2 em { color: var(--muted); font-style: italic; font-weight: 400; }
.showcase-text > p {
  font-size: 16px;
  color: var(--muted);
  line-height: 1.65;
  margin-bottom: 24px;
}
.showcase-text ul {
  list-style: none;
  display: flex;
  flex-direction: column;
  gap: 10px;
}
.showcase-text li {
  display: flex;
  align-items: flex-start;
  gap: 12px;
  color: var(--text-soft);
  font-size: 15px;
}
.showcase-text li::before {
  content: '';
  width: 18px;
  height: 18px;
  border-radius: 50%;
  background: var(--bg-card);
  border: 1px solid var(--line-strong);
  flex-shrink: 0;
  margin-top: 2px;
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='%2322C55E' stroke-width='3' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpolyline points='20 6 9 17 4 12'/%3E%3C/svg%3E");
  background-repeat: no-repeat;
  background-position: center;
  background-size: 12px;
}
.showcase-image {
  display: flex;
  justify-content: center;
}
.showcase-image img {
  width: 100%;
  max-width: 360px;
  height: auto;
  border-radius: 28px;
  border: 1px solid var(--line);
  box-shadow: 0 20px 50px rgba(0, 0, 0, 0.5);
}

/* FAQ */
.faq-grid {
  display: flex;
  flex-direction: column;
  border-top: 1px solid var(--line);
}
.faq-item {
  border-bottom: 1px solid var(--line);
  padding: 24px 0;
}
.faq-item summary {
  cursor: pointer;
  list-style: none;
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 24px;
  font-size: 19px;
  font-weight: 600;
  letter-spacing: -0.01em;
  transition: color 0.2s ease;
}
.faq-item summary::-webkit-details-marker { display: none; }
.faq-item summary::after {
  content: '+';
  color: var(--muted);
  font-size: 26px;
  font-weight: 300;
  line-height: 1;
  transition: transform 0.25s ease, color 0.2s ease;
  flex-shrink: 0;
}
.faq-item[open] summary::after { transform: rotate(45deg); color: var(--text); }
.faq-item summary:hover { color: var(--text); }
.faq-item summary:hover::after { color: var(--text); }
.faq-item p {
  color: var(--muted);
  font-size: 15px;
  line-height: 1.7;
  margin-top: 14px;
  max-width: 760px;
}
.faq-item p a { color: var(--text); text-decoration: underline; text-decoration-color: rgba(245, 245, 245, 0.3); text-underline-offset: 2px; }
.faq-item p a:hover { text-decoration-color: var(--text); }

/* Pricing */
.pricing {
  padding: 110px 0;
  border-top: 1px solid var(--line);
  text-align: center;
}
.pricing .section-title { margin-left: auto; margin-right: auto; }
.pricing .section-lede { margin-left: auto; margin-right: auto; }
.tier-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 20px;
  max-width: 760px;
  margin: 0 auto;
  text-align: left;
}
.tier {
  background: var(--bg-card);
  border: 1px solid var(--line);
  border-radius: 20px;
  padding: 36px 32px;
  position: relative;
}
.tier.featured {
  border-color: var(--text);
  background: var(--bg-soft);
}
.tier-name {
  font-size: 14px;
  text-transform: uppercase;
  letter-spacing: 0.12em;
  color: var(--muted);
  font-weight: 600;
  margin-bottom: 12px;
}
.tier-price {
  font-size: 44px;
  font-weight: 800;
  letter-spacing: -0.03em;
  line-height: 1;
  margin-bottom: 4px;
}
.tier-price span {
  font-size: 16px;
  color: var(--muted);
  font-weight: 500;
  letter-spacing: 0;
}
.tier-tagline {
  font-size: 14px;
  color: var(--muted);
  margin-bottom: 24px;
}
.tier-features {
  list-style: none;
  display: flex;
  flex-direction: column;
  gap: 10px;
  margin-bottom: 0;
}
.tier-features li {
  display: flex;
  align-items: flex-start;
  gap: 10px;
  font-size: 14px;
  color: var(--text-soft);
}
.tier-features li::before {
  content: '✓';
  color: var(--success);
  font-weight: 700;
  flex-shrink: 0;
}
.tier-features li.muted { color: var(--muted-soft); }
.tier-features li.muted::before { color: var(--muted-soft); content: '–'; }
.tier-badge {
  position: absolute;
  top: 24px;
  right: 24px;
  background: var(--text);
  color: var(--bg);
  font-size: 11px;
  font-weight: 700;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  padding: 4px 10px;
  border-radius: 100px;
}

/* Also from HephaTech */
.also { padding: 100px 0; border-top: 1px solid var(--line); }
.also-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 16px;
  margin-top: 48px;
}
.also-card {
  display: flex;
  gap: 20px;
  background: var(--bg-card);
  border: 1px solid var(--line);
  border-radius: 18px;
  padding: 28px;
  text-decoration: none;
  color: var(--text);
  transition: transform 0.2s ease, border-color 0.2s ease;
}
.also-card:hover { transform: translateY(-3px); border-color: var(--line-strong); opacity: 1; }
.also-mark {
  width: 56px; height: 56px;
  border-radius: 14px;
  flex-shrink: 0;
  display: grid;
  place-items: center;
  overflow: hidden;
  background: var(--bg-soft);
  border: 1px solid var(--line);
}
.also-mark img {
  width: 100%;
  height: 100%;
  object-fit: contain;
  display: block;
}
.also-card h3 {
  font-size: 17px;
  font-weight: 700;
  margin-bottom: 6px;
  letter-spacing: -0.01em;
}
.also-card p {
  font-size: 13px;
  color: var(--muted);
  margin-bottom: 10px;
  line-height: 1.55;
}
.also-link {
  font-size: 12px;
  font-weight: 600;
  color: var(--text);
}

/* Big CTA */
.cta-section {
  padding: 120px 0;
  text-align: center;
  border-top: 1px solid var(--line);
}
.cta-card {
  background: var(--bg-card);
  border: 1px solid var(--line);
  border-radius: 32px;
  padding: 80px 40px;
  max-width: 880px;
  margin: 0 auto;
  position: relative;
  overflow: hidden;
}
.cta-card::before {
  content: '';
  position: absolute;
  top: -50%;
  left: 50%;
  transform: translateX(-50%);
  width: 800px;
  height: 800px;
  background: radial-gradient(circle, rgba(245, 245, 245, 0.04) 0%, transparent 60%);
  pointer-events: none;
}
.cta-card .brand-icon { width: 64px; height: 64px; margin: 0 auto 24px; position: relative; }
.cta-card h2 {
  font-size: clamp(36px, 5vw, 56px);
  font-weight: 800;
  letter-spacing: -0.03em;
  line-height: 1.05;
  margin-bottom: 16px;
  position: relative;
}
.cta-card p {
  font-size: 18px;
  color: var(--muted);
  margin-bottom: 36px;
  max-width: 560px;
  margin-left: auto;
  margin-right: auto;
  position: relative;
}
.cta-card .hero-buttons { justify-content: center; margin-bottom: 0; position: relative; }

/* Footer */
.site-footer {
  padding: 60px 0 32px;
  border-top: 1px solid var(--line);
  background: var(--bg-elev);
}
.footer-grid {
  display: grid;
  grid-template-columns: 1.5fr 1fr 1fr 1fr;
  gap: 40px;
  margin-bottom: 48px;
}
.footer-col { display: flex; flex-direction: column; gap: 10px; }
.footer-col h4 {
  font-size: 11px;
  text-transform: uppercase;
  letter-spacing: 0.12em;
  color: var(--muted);
  font-weight: 600;
  margin-bottom: 6px;
}
.footer-col a {
  color: var(--text-soft);
  font-size: 14px;
  font-weight: 500;
}
.footer-col a:hover { color: var(--muted); }
.footer-brand {
  display: flex;
  align-items: center;
  gap: 12px;
  margin-bottom: 4px;
}
.footer-brand img { width: 32px; height: 32px; }
.footer-brand span { font-size: 18px; font-weight: 700; letter-spacing: -0.01em; }
.footer-line {
  font-size: 13px;
  color: var(--muted);
  max-width: 280px;
  line-height: 1.55;
}
.footer-bottom {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding-top: 24px;
  border-top: 1px solid var(--line);
  font-size: 12px;
  color: var(--muted);
}

/* Back to top */
.to-top {
  position: fixed;
  bottom: 24px;
  right: 24px;
  width: 48px;
  height: 48px;
  background: var(--text);
  color: var(--bg);
  border: none;
  border-radius: 50%;
  display: grid;
  place-items: center;
  cursor: pointer;
  opacity: 0;
  transform: translateY(8px);
  transition: opacity 0.2s ease, transform 0.2s ease;
  pointer-events: none;
  z-index: 60;
  box-shadow: 0 10px 28px rgba(0, 0, 0, 0.5);
  text-decoration: none;
}
.to-top.is-visible {
  opacity: 1;
  transform: translateY(0);
  pointer-events: auto;
}
.to-top:hover { transform: translateY(-2px); opacity: 1; }
.to-top svg { width: 20px; height: 20px; }

/* Legal pages */
.legal-content {
  flex: 1;
  padding: 56px 0 96px;
}
.legal-content .container { max-width: 760px; }
.legal-content h1 {
  font-size: clamp(36px, 5vw, 56px);
  font-weight: 800;
  letter-spacing: -0.03em;
  margin-bottom: 8px;
}
.legal-meta {
  color: var(--muted);
  font-size: 14px;
  font-weight: 500;
  margin-bottom: 40px;
  padding-bottom: 24px;
  border-bottom: 1px solid var(--line);
}
.legal-content h2 {
  font-size: 22px;
  font-weight: 700;
  letter-spacing: -0.02em;
  margin-top: 48px;
  margin-bottom: 16px;
}
.legal-content h3 {
  font-size: 17px;
  font-weight: 600;
  margin-top: 32px;
  margin-bottom: 12px;
}
.legal-content p {
  color: var(--muted);
  font-size: 15px;
  line-height: 1.75;
  margin-bottom: 16px;
}
.legal-content ul, .legal-content ol {
  color: var(--muted);
  font-size: 15px;
  line-height: 1.75;
  margin-bottom: 16px;
  padding-left: 24px;
}
.legal-content li { margin-bottom: 8px; }
.legal-content li strong { color: var(--text); font-weight: 600; }
.legal-content strong { color: var(--text); font-weight: 700; }
.legal-content em { font-style: italic; color: var(--text-soft); }
.legal-content hr { border: none; height: 1px; background: var(--line); margin: 40px 0; }
.legal-content a {
  color: var(--text);
  text-decoration: underline;
  text-decoration-color: rgba(245, 245, 245, 0.3);
  text-underline-offset: 2px;
}
.legal-content a:hover { text-decoration-color: var(--text); }

/* Responsive */
@media (max-width: 960px) {
  .also-grid { grid-template-columns: 1fr; }
  .hero-grid { grid-template-columns: 1fr; gap: 40px; }
  .phone-stage { min-height: 480px; }
  .feature-grid { grid-template-columns: repeat(2, 1fr); }
  .stats-grid { grid-template-columns: repeat(2, 1fr); gap: 32px; }
  .footer-grid { grid-template-columns: 1fr 1fr; gap: 32px; }
  .showcase-row { grid-template-columns: 1fr; gap: 40px; margin-bottom: 80px; }
  .showcase-row.reverse { direction: ltr; }
  .tier-grid { grid-template-columns: 1fr; }
}

@media (max-width: 640px) {
  .container { padding: 0 22px; }
  .hero { padding: 56px 0 64px; }
  section.block, .showcase, .pricing { padding: 64px 0; }
  .stats { padding: 40px 0; }
  .stats-grid { grid-template-columns: repeat(2, 1fr); gap: 24px; }
  .stat-num { font-size: 32px; }
  .feature-grid { grid-template-columns: 1fr; }
  .nav-links { gap: 14px; }
  .nav-links a:not(.nav-cta) { display: none; }
  .nav-cta { display: inline-flex; }
  .cta-card { padding: 56px 24px; }
  .footer-grid { grid-template-columns: 1fr; gap: 32px; }
  .footer-bottom { flex-direction: column; gap: 12px; align-items: flex-start; }
  .hero-buttons .btn { width: 100%; justify-content: center; }
  .hero-meta { flex-direction: column; gap: 8px; }
}

/* ─── Modern micro-interactions ────────────────────────────────────── */

/* Animated underlines on text links */
.nav-links a:not(.nav-cta), .footer-col a {
  position: relative; display: inline-block;
}
.nav-links a:not(.nav-cta)::after, .footer-col a::after {
  content: ''; position: absolute; left: 0; bottom: -2px;
  width: 100%; height: 1px;
  background: currentColor;
  transform: scaleX(0); transform-origin: right;
  transition: transform 0.4s cubic-bezier(0.22, 1, 0.36, 1);
}
.nav-links a:not(.nav-cta):hover::after, .footer-col a:hover::after {
  transform: scaleX(1); transform-origin: left;
}

.btn { transition: transform 0.2s cubic-bezier(0.22, 1, 0.36, 1), background 0.25s ease, opacity 0.25s ease; }
.btn:active:not(:disabled) { transform: translateY(0) scale(0.97); }

.feature {
  transition:
    background 0.4s cubic-bezier(0.22, 1, 0.36, 1),
    transform 0.4s cubic-bezier(0.22, 1, 0.36, 1);
}
.feature:hover { transform: translateY(-3px); }

.showcase-image img { transition: transform 0.6s cubic-bezier(0.22, 1, 0.36, 1), opacity 0.5s ease; }
.showcase-row:hover .showcase-image img { transform: translateY(-4px) rotate(-1deg); }

.tier {
  transition:
    transform 0.4s cubic-bezier(0.22, 1, 0.36, 1),
    border-color 0.3s ease;
}
.tier:hover { transform: translateY(-3px); border-color: var(--line-strong); }
.tier.featured:hover { border-color: var(--text); }

/* ─── Comprehensive responsive ─────────────────────────────────────── */

@media (max-width: 1024px) {
  .container { padding: 0 28px; }
  .feature-grid { grid-template-columns: repeat(2, 1fr); }
}

@media (max-width: 880px) {
  .also-grid { grid-template-columns: 1fr; }
}

@media (max-width: 720px) {
  .nav-toggle { display: flex; }
  .site-header .container { position: relative; }
  #primary-nav {
    position: absolute;
    top: 100%;
    left: 0;
    right: 0;
    margin-top: 8px;
    padding: 8px;
    background: color-mix(in srgb, var(--bg) 96%, transparent);
    backdrop-filter: blur(20px);
    border: 1px solid var(--line);
    border-radius: 14px;
    box-shadow: 0 16px 40px rgba(0, 0, 0, 0.6);
    opacity: 0;
    transform: translateY(-12px) scale(0.98);
    pointer-events: none;
    transition: opacity 0.3s cubic-bezier(0.22, 1, 0.36, 1), transform 0.3s cubic-bezier(0.22, 1, 0.36, 1);
    z-index: 60;
  }
  #primary-nav.is-open { opacity: 1; transform: translateY(0) scale(1); pointer-events: auto; }
  #primary-nav .nav-links { flex-direction: column; align-items: stretch; gap: 0; }
  #primary-nav .nav-links li { width: 100%; }
  #primary-nav .nav-links a {
    display: block;
    padding: 12px 16px;
    border-radius: 10px;
    font-size: 14px;
  }
  #primary-nav .nav-links a:hover { background: var(--bg-card); color: var(--text); opacity: 1; }
  #primary-nav .nav-links .nav-cta { text-align: center; margin-top: 4px; padding: 12px 16px; }
  #primary-nav .nav-links a::after { display: none !important; }

  .hero-grid { grid-template-columns: 1fr; gap: 32px; }
  .hero { padding: 56px 0 64px; }
  .phone-stage { min-height: 460px; }
  .phone-screenshot { width: 240px; }
  .hero-title { font-size: clamp(40px, 12vw, 76px); }
  .stats-grid { grid-template-columns: repeat(2, 1fr); gap: 28px; }
  section.block, .showcase, .pricing { padding: 64px 0; }
  .section-title { font-size: clamp(28px, 6vw, 40px); }
  .section-lede { font-size: 16px; margin-bottom: 36px; }
  .feature { padding: 28px 24px; }
  .showcase-row { grid-template-columns: 1fr; gap: 32px; margin-bottom: 64px; }
  .footer-grid { grid-template-columns: 1fr 1fr; }
  .cta-card { padding: 56px 24px; }
  .cta-card h2 { font-size: clamp(30px, 7vw, 44px); }
  .tier-grid { grid-template-columns: 1fr; }
}

@media (max-width: 560px) {
  .container { padding: 0 18px; }
  .site-header { padding: 16px 0; }
  .nav-links { gap: 14px; }
  .hero { padding: 32px 0 56px; }
  .hero-title { font-size: clamp(40px, 14vw, 60px); }
  .hero-subtitle { font-size: 16px; margin-bottom: 28px; }
  .hero-buttons { flex-direction: column; align-items: stretch; }
  .hero-buttons .btn { width: 100%; justify-content: center; padding: 14px 22px; }
  .phone-screenshot { width: 220px; }
  .stat-num { font-size: 30px; }
  .feature-grid { grid-template-columns: 1fr; }
  .feature h3 { font-size: 17px; }
  .showcase-image img { max-width: 240px; }
  .footer-grid { grid-template-columns: 1fr; gap: 28px; }
  .footer-bottom { flex-direction: column; gap: 12px; align-items: flex-start; }
  .faq-item summary { font-size: 17px; gap: 16px; }
  .faq-item p { font-size: 14px; }
  .also-card { padding: 22px 20px; gap: 14px; }
  .also-mark { width: 48px; height: 48px; }
  .tier { padding: 28px 24px; }
  .tier-price { font-size: 36px; }
  .to-top { width: 42px; height: 42px; bottom: 16px; right: 16px; }
  .scroll-progress { height: 2px; }
}

@media (max-width: 380px) {
  .container { padding: 0 14px; }
  .hero-title { font-size: 42px; }
  .stat-num { font-size: 26px; }
  .stat-label { font-size: 11px; }
  .section-title { font-size: 24px; }
  .cta-card { padding: 48px 18px; }
  .cta-card h2 { font-size: 30px; }
  .brand-text { font-size: 12px; }
  .brand-text .product { font-size: 14px; }
  .tier-price { font-size: 32px; }
}

/* Print */
@media print {
  .grain, .to-top, .site-header, .site-footer { display: none !important; }
  body { background: #fff; color: #000; }
  .legal-content { padding: 0; }
  .legal-content .container { max-width: 100%; }
  .legal-content h1, .legal-content h2, .legal-content h3 { color: #000; page-break-after: avoid; }
  .legal-content p, .legal-content li { color: #222; }
  .legal-content a { color: #000; text-decoration: underline; }
}

/* ===================================================================
   GrowBit · phone mockups · real component renders
   Uses --bg, --bg-elev, --bg-card, --ink, --gray, --line tokens
   so they auto-flip on theme toggle.
   =================================================================== */
.gb-phone {
  --gb-cat: var(--ink);
  --gb-accent: #22C55E;
  --gb-warn: #FFB74D;
  position: relative;
  width: 100%;
  max-width: 320px;
  aspect-ratio: 9 / 19.5;
  border-radius: 36px;
  border: 1px solid var(--line);
  background: var(--bg);
  box-shadow: 0 20px 50px rgba(0, 0, 0, 0.5);
  overflow: hidden;
  font-family: 'Inter', sans-serif;
  margin: 0 auto;
}
.gb-phone--hero {
  width: 320px;
  transform: rotate(-3deg);
  animation: gb-float 7s ease-in-out infinite;
  filter: drop-shadow(0 30px 60px rgba(0, 0, 0, 0.5));
  border-radius: 36px;
}
@keyframes gb-float {
  0%, 100% { transform: rotate(-3deg) translateY(0); }
  50% { transform: rotate(-3deg) translateY(-12px); }
}
@media (prefers-reduced-motion: reduce) {
  .gb-phone--hero { animation: none; }
}
.gbp-screen {
  position: absolute; inset: 0;
  background: var(--bg);
  color: var(--ink);
  display: flex; flex-direction: column;
  font-size: 11px;
  line-height: 1.35;
}
.gbp-statusbar {
  display: flex; justify-content: space-between; align-items: center;
  padding: 8px 16px 4px; font-size: 10px; font-weight: 600;
  flex-shrink: 0;
}
.gbp-icons { display: inline-flex; gap: 3px; }
.gbp-icons i { width: 6px; height: 6px; background: currentColor; border-radius: 1px; opacity: 0.85; }
.gbp-icons i:nth-child(2) { width: 8px; }
.gbp-icons i:nth-child(3) { width: 12px; opacity: 1; }
.gbp-pad { padding: 4px 14px 14px; flex: 1; overflow: hidden; }

.gbp-header { display: flex; flex-direction: column; gap: 1px; margin-bottom: 8px; }
.gbp-header h4 { font-size: 18px; font-weight: 800; letter-spacing: -0.02em; line-height: 1; }
.gbp-header p { font-size: 9px; color: var(--gray); }
.gbp-header--with-pill { flex-direction: row; align-items: center; justify-content: space-between; }
.gbp-pro { background: var(--ink); color: var(--bg); font-size: 7px; font-weight: 800; letter-spacing: 0.1em; padding: 2px 7px; border-radius: 999px; }
.gbp-section-label { display: block; font-size: 7.5px; font-weight: 800; letter-spacing: 0.12em; color: var(--gray); margin: 8px 0 4px; }
.gbp-mute { color: var(--gray); font-size: 8.5px; }

/* Today */
.gbp-xp { display: flex; align-items: center; gap: 8px; background: var(--bg-elev); border: 1px solid var(--line); border-radius: 10px; padding: 7px 9px; margin-bottom: 6px; }
.gbp-xp-circle { width: 28px; height: 28px; border-radius: 50%; background: var(--ink); color: var(--bg); display: grid; place-items: center; font-size: 11px; font-weight: 800; flex-shrink: 0; }
.gbp-xp-info { flex: 1; min-width: 0; }
.gbp-xp-level { display: block; font-size: 9.5px; font-weight: 600; }
.gbp-xp-num { display: block; font-size: 7.5px; color: var(--gray); margin-top: 1px; }
.gbp-xp-bar { height: 3px; background: var(--bg-card); border-radius: 2px; margin-top: 3px; overflow: hidden; }
.gbp-xp-bar i { display: block; width: 61%; height: 100%; background: var(--ink); }
.gbp-streak { font-size: 13px; font-weight: 800; color: var(--gb-accent); flex-shrink: 0; }
.gbp-mood { background: var(--bg-elev); border: 1px solid var(--line); border-radius: 10px; padding: 6px 9px; margin-bottom: 8px; }
.gbp-mood-row { display: flex; justify-content: space-between; padding: 4px 2px 2px; font-size: 16px; }
.gbp-mood-row .is-sel { font-size: 18px; outline: 1.5px solid var(--ink); outline-offset: 2px; border-radius: 50%; }
.gbp-mood-row--lg span { display: flex; flex-direction: column; align-items: center; gap: 2px; font-size: 18px; }
.gbp-mood-row--lg span small { font-size: 7px; font-weight: 600; color: var(--gray); }
.gbp-mood-row--lg .is-sel small { color: var(--ink); }
.gbp-today-list { display: flex; flex-direction: column; gap: 4px; }
.gbp-today-row { position: relative; display: flex; align-items: center; gap: 6px; background: var(--bg-elev); border: 1px solid var(--line); border-radius: 9px; padding: 7px 9px 7px 12px; font-size: 10px; }
.gbp-h-side { position: absolute; left: 0; top: 6px; bottom: 6px; width: 3px; border-radius: 2px; background: var(--cat); }
.gbp-h-check { width: 16px; height: 16px; border-radius: 5px; border: 1.5px solid var(--gray); display: grid; place-items: center; flex-shrink: 0; font-size: 9px; }
.gbp-h-check.is-done { background: var(--gb-accent); border-color: var(--gb-accent); color: #fff; }
.gbp-h-check i { font-style: normal; font-weight: 800; }
.gbp-clock { width: 8px; height: 8px; border: 1.2px solid var(--gray); border-radius: 50%; }
.gbp-h-name { flex: 1; min-width: 0; display: flex; flex-direction: column; gap: 1px; line-height: 1.2; }
.gbp-h-name em { font-style: normal; font-size: 7.5px; color: var(--gray); }
.gbp-h-streak { font-size: 9px; color: var(--gray); }
.gbp-h-action { font-size: 9px; font-weight: 700; color: var(--gb-accent); }

/* Stats */
.gbp-tabs { display: flex; background: var(--bg-elev); border: 1px solid var(--line); border-radius: 9px; padding: 2px; margin-bottom: 8px; gap: 2px; }
.gbp-tabs span { flex: 1; text-align: center; font-size: 9px; font-weight: 600; color: var(--gray); padding: 4px; border-radius: 7px; }
.gbp-tabs .is-active { background: var(--bg); color: var(--ink); box-shadow: 0 1px 3px rgba(0,0,0,0.1); }
.gbp-tabs--3 span { font-size: 9.5px; }
.gbp-stats-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 5px; margin-bottom: 8px; }
.gbp-stats-cell { background: var(--bg-elev); border: 1px solid var(--line); border-radius: 9px; padding: 6px 8px; }
.gbp-stats-cell span { display: block; font-size: 7px; font-weight: 800; letter-spacing: 0.1em; color: var(--gray); }
.gbp-stats-cell strong { display: block; font-size: 22px; font-weight: 800; line-height: 1; margin-top: 4px; }
.gbp-stats-cell strong em { font-size: 11px; font-style: normal; color: var(--gray); }
.gbp-stats-cell i { display: block; font-size: 7px; font-style: normal; color: var(--gray); margin-top: 2px; }
.gbp-stats-cell i.up { color: var(--gb-accent); }
.gbp-weekly { background: var(--bg-elev); border: 1px solid var(--line); border-radius: 10px; padding: 7px 9px; margin-bottom: 6px; }
.gbp-weekly-bars { display: grid; grid-template-columns: repeat(7, 1fr); gap: 4px; height: 50px; align-items: end; padding: 4px 0; }
.gbp-weekly-bars span { background: var(--ink); border-radius: 2px; height: var(--h, 50%); opacity: 0.7; }
.gbp-weekly-bars .best { background: var(--gb-accent); opacity: 1; }
.gbp-weekly-x { display: grid; grid-template-columns: repeat(7, 1fr); font-size: 7px; color: var(--gray); text-align: center; padding-top: 2px; }
.gbp-insight { background: var(--bg-elev); border: 1px solid var(--line); border-radius: 9px; padding: 6px 9px; }
.gbp-insight strong { display: block; font-size: 10px; font-weight: 700; margin-top: 2px; }
.gbp-insight em { display: block; font-style: normal; font-size: 8px; color: var(--gray); }

/* AI Coach */
.gbp-coach { background: var(--bg-elev); border: 1px solid var(--line); border-radius: 11px; padding: 8px 10px; margin-bottom: 8px; }
.gbp-coach-row { display: flex; align-items: center; gap: 8px; margin-bottom: 4px; }
.gbp-coach-avatar { width: 22px; height: 22px; border-radius: 50%; background: var(--ink); color: var(--bg); display: grid; place-items: center; font-size: 12px; font-weight: 800; flex-shrink: 0; }
.gbp-coach-row em { font-style: normal; font-size: 7.5px; color: var(--gray); display: block; }
.gbp-coach p { font-size: 10px; line-height: 1.4; }
.gbp-focus, .gbp-challenge { background: var(--bg-elev); border: 1px solid var(--line); border-radius: 10px; padding: 7px 9px; margin-bottom: 6px; }
.gbp-focus-tag { font-size: 7.5px; font-weight: 800; letter-spacing: 0.1em; color: var(--gb-accent); }
.gbp-focus strong, .gbp-challenge strong { display: block; font-size: 13px; font-weight: 700; margin: 3px 0; }
.gbp-focus em, .gbp-challenge em { font-style: normal; font-size: 8px; color: var(--gray); display: block; line-height: 1.4; }
.gbp-challenge-tag { font-size: 7.5px; font-weight: 800; letter-spacing: 0.1em; color: var(--gb-warn); }
.gbp-burnout { background: var(--bg-elev); border: 1px solid var(--line); border-radius: 9px; padding: 6px 9px; }
.gbp-burnout-bar { height: 3px; background: var(--line); border-radius: 2px; margin-top: 4px; overflow: hidden; }
.gbp-burnout-bar i { display: block; width: 30%; height: 100%; background: var(--gb-accent); }

/* Achievements */
.gbp-boss { background: var(--bg-elev); border: 1px solid var(--gb-warn); border-radius: 11px; padding: 7px 9px; margin-bottom: 8px; }
.gbp-boss-tag { font-size: 7.5px; font-weight: 800; letter-spacing: 0.1em; color: var(--gb-warn); }
.gbp-boss strong { display: block; font-size: 12px; font-weight: 700; margin: 3px 0; }
.gbp-boss em { font-style: normal; font-size: 8px; color: var(--gray); display: block; }
.gbp-boss-bar { height: 3px; background: var(--line); border-radius: 2px; margin-top: 4px; overflow: hidden; }
.gbp-boss-bar i { display: block; height: 100%; background: var(--gb-warn); }
.gbp-badges { display: grid; grid-template-columns: repeat(3, 1fr); gap: 5px; }
.gbp-badge { background: var(--bg-elev); border: 1px solid var(--line); border-radius: 9px; padding: 8px 4px; text-align: center; display: flex; flex-direction: column; align-items: center; gap: 3px; }
.gbp-badge span { font-size: 18px; }
.gbp-badge b { font-size: 7.5px; font-weight: 700; line-height: 1.1; }
.gbp-badge.is-locked { opacity: 0.4; border-style: dashed; }

/* Identity */
.gbp-archetype { background: var(--bg-elev); border: 1px solid var(--line); border-radius: 11px; padding: 9px 11px; margin-bottom: 6px; }
.gbp-archetype-row { display: flex; align-items: center; gap: 10px; margin-top: 4px; }
.gbp-archetype-icon { width: 36px; height: 36px; border-radius: 9px; background: var(--bg); border: 1px solid var(--line); display: grid; place-items: center; flex-shrink: 0; position: relative; }
.gbp-archetype-icon::before { content: ''; position: absolute; left: 8px; top: 13px; width: 12px; height: 5px; background: var(--ink); border-radius: 1px; }
.gbp-archetype-icon::after { content: ''; position: absolute; left: 16px; top: 18px; width: 12px; height: 6px; background: var(--ink); border-radius: 1px; transform: skewX(-25deg); }
.gbp-archetype-row strong { display: block; font-size: 18px; font-weight: 800; letter-spacing: -0.02em; line-height: 1; }
.gbp-archetype-row em { font-style: normal; font-size: 8px; color: var(--gray); }
.gbp-archetype-tiers { display: flex; align-items: center; gap: 6px; margin-top: 8px; }
.gbp-archetype-tiers i { width: 6px; height: 6px; border-radius: 50%; background: transparent; border: 1px solid var(--line-strong, var(--line)); }
.gbp-archetype-tiers i.on { background: var(--ink); border-color: var(--ink); }
.gbp-archetype-tiers i.big { width: 8px; height: 8px; }
.gbp-stats-bars { display: flex; flex-direction: column; gap: 5px; }
.gbp-stats-bars > div { display: grid; grid-template-columns: 1fr auto; align-items: center; column-gap: 6px; row-gap: 2px; }
.gbp-stats-bars span { font-size: 9px; font-weight: 500; }
.gbp-stats-bars span em { font-style: normal; font-size: 7px; color: var(--gb-accent); margin-left: 4px; }
.gbp-stats-bars b { font-size: 9px; font-weight: 700; color: var(--gray); }
.gbp-stats-bars > div.primary b { color: var(--ink); }
.gbp-stats-bars > div > div { grid-column: 1 / -1; height: 3px; background: var(--bg-elev); border-radius: 2px; overflow: hidden; }
.gbp-stats-bars > div > div i { display: block; height: 100%; background: var(--ink); }
.gbp-stats-bars > div > div i.ok { background: var(--gb-accent); }

/* Mood card variants */
.gbp-mood-card { background: var(--bg-elev); border: 1px solid var(--line); border-radius: 11px; padding: 8px 10px; margin-bottom: 8px; }
.gbp-trend { background: var(--bg-elev); border: 1px solid var(--line); border-radius: 10px; padding: 7px 9px; margin-bottom: 6px; color: var(--ink); }
.gbp-trend-head { display: flex; justify-content: space-between; align-items: baseline; margin-bottom: 4px; }
.gbp-trend-svg { width: 100%; height: 50px; display: block; }

/* Social leaderboard */
.gbp-board { display: flex; flex-direction: column; gap: 4px; margin-bottom: 8px; }
.gbp-board-row { display: flex; align-items: center; gap: 6px; background: var(--bg-elev); border: 1px solid var(--line); border-radius: 9px; padding: 5px 8px; font-size: 9px; }
.gbp-board-row > span:first-child { width: 14px; font-size: 11px; font-weight: 800; text-align: center; }
.gbp-board-row > span.gold { color: #FFD700; }
.gbp-board-row > span.silver { color: #C0C0C0; }
.gbp-board-row > span.bronze { color: #CD7F32; }
.gbp-board-row .av { width: 18px; height: 18px; border-radius: 50%; background: var(--bg-card); display: grid; place-items: center; font-size: 8px; font-weight: 700; flex-shrink: 0; }
.gbp-board-row .av-you { background: var(--ink); color: var(--bg); }
.gbp-board-name { flex: 1; min-width: 0; line-height: 1.15; display: flex; flex-direction: column; }
.gbp-board-name em { font-style: normal; font-size: 7.5px; color: var(--gray); }
.gbp-board-name em.up { color: var(--gb-accent); }
.gbp-board-row strong { font-size: 10px; font-weight: 700; }
.gbp-board-row.is-you { border-color: var(--ink); border-width: 1.5px; }
.gbp-circle { background: var(--bg-elev); border: 1px solid var(--line); border-radius: 11px; padding: 8px 10px; position: relative; }
.gbp-circle strong { font-size: 11px; font-weight: 700; }
.gbp-circle em { display: block; font-style: normal; font-size: 8px; color: var(--gray); margin: 2px 0 5px; }
.gbp-circle-avs { display: flex; }
.gbp-circle-avs b { display: block; width: 14px; height: 14px; border-radius: 50%; background: var(--gray); border: 2px solid var(--bg-elev); margin-left: -4px; }
.gbp-circle-avs b:first-child { margin-left: 0; }
.gbp-circle-avs b:nth-child(1) { background: #aaa; }
.gbp-circle-avs b:nth-child(2) { background: #888; }
.gbp-circle-avs b:nth-child(3) { background: #666; }
.gbp-circle-avs b:nth-child(4) { background: #444; }
.gbp-circle-avs b:nth-child(5) { background: var(--ink); }
.gbp-circle-done { position: absolute; right: 10px; bottom: 8px; font-size: 8px; font-weight: 700; color: var(--gb-accent); }

/* Create habit */
.gbp-create-head { display: grid; grid-template-columns: 24px 1fr 32px; align-items: center; padding: 4px 0 8px; border-bottom: 1px solid var(--line); margin-bottom: 8px; }
.gbp-create-head strong { text-align: center; font-size: 12px; font-weight: 700; }
.gbp-create-head em { font-style: normal; font-size: 9px; color: var(--gray); text-align: right; }
.gbp-back-x { width: 22px; height: 22px; border-radius: 50%; background: var(--bg-elev); border: 1px solid var(--line); display: grid; place-items: center; font-size: 12px; color: var(--gray); }
.gbp-input { display: flex; align-items: center; background: var(--bg-elev); border: 1px solid var(--line); border-radius: 9px; padding: 7px 10px; font-size: 11px; font-weight: 500; min-height: 30px; margin-bottom: 4px; }
.gbp-input.is-active { border-color: var(--ink); border-width: 1.5px; }
.gbp-input .caret { display: inline-block; width: 1px; height: 12px; background: var(--ink); margin-left: 3px; animation: gb-blink 1s steps(1) infinite; }
@keyframes gb-blink { 50% { opacity: 0; } }
@media (prefers-reduced-motion: reduce) { .gbp-input .caret { animation: none; } }
.gbp-caret-d { margin-left: auto; color: var(--gray); }
.gbp-types { display: grid; grid-template-columns: 1fr 1fr 1fr; gap: 5px; margin-bottom: 4px; }
.gbp-type { background: var(--bg-elev); border: 1px solid var(--line); border-radius: 9px; padding: 7px 4px; text-align: center; display: flex; flex-direction: column; align-items: center; gap: 2px; }
.gbp-type b { font-size: 8.5px; font-weight: 700; }
.gbp-type em { font-style: normal; font-size: 7px; color: var(--gray); }
.gbp-type.is-active { background: var(--bg); border: 1.5px solid var(--ink); }
.gbp-type i { display: inline-block; width: 14px; height: 14px; }
.gbp-type .t-check { border: 1.5px solid var(--gray); border-radius: 3px; position: relative; }
.gbp-type .t-check::after { content: ''; position: absolute; left: 2px; top: 4px; width: 4px; height: 7px; border: solid var(--gray); border-width: 0 1.5px 1.5px 0; transform: rotate(45deg); }
.gbp-type.is-active .t-check { border-color: var(--ink); }
.gbp-type.is-active .t-check::after { border-color: var(--ink); }
.gbp-type .t-bars { background: linear-gradient(to top, var(--ink) 30%, transparent 30%, transparent 50%, var(--ink) 50%, var(--ink) 70%, transparent 70%, transparent 90%, var(--ink) 90%); width: 12px; }
.gbp-type .t-clock { border: 1.5px solid var(--gray); border-radius: 50%; position: relative; }
.gbp-type .t-clock::after { content: ''; position: absolute; left: 5px; top: 2px; width: 1.5px; height: 5px; background: var(--gray); }
.gbp-type.is-active .t-clock { border-color: var(--ink); }
.gbp-type.is-active .t-clock::after { background: var(--ink); }
.gbp-goal { display: grid; grid-template-columns: 2fr 1fr; gap: 5px; margin-bottom: 4px; }
.gbp-chips { display: flex; gap: 5px; margin-bottom: 8px; }
.gbp-chips span { background: var(--bg-elev); border: 1px solid var(--line); border-radius: 999px; padding: 5px 11px; font-size: 9px; font-weight: 600; color: var(--gray); }
.gbp-chips .is-active { background: var(--ink); color: var(--bg); border-color: var(--ink); }
.gbp-cta { width: 100%; background: var(--ink); color: var(--bg); border: none; font-family: inherit; padding: 9px; border-radius: 999px; font-size: 11px; font-weight: 700; cursor: pointer; }

/* Replace old showcase-image img sizing — now wraps .gb-phone */
.showcase-image .gb-phone { max-width: 320px; }
.showcase-image > .gb-phone { transition: transform 0.6s cubic-bezier(0.22, 1, 0.36, 1); }
.showcase-row:hover .showcase-image > .gb-phone { transform: translateY(-4px) rotate(-1deg); }
@media (prefers-reduced-motion: reduce) {
  .showcase-image > .gb-phone, .showcase-row:hover .showcase-image > .gb-phone { transition: none; transform: none; }
}

/* ─── Legal pages (privacy + terms) ─────────────────────────────── */
.legal-content { padding: 56px 0 96px; }
.legal-content .legal-container { max-width: 780px; margin: 0 auto; }
.legal-content h1 {
  font-family: 'Inter', sans-serif;
  font-weight: 800;
  font-size: clamp(36px, 5.5vw, 56px);
  letter-spacing: -0.02em;
  line-height: 1.1;
  margin-bottom: 12px;
  color: var(--ink);
}
.legal-content h1 em { font-style: italic; color: var(--muted); font-weight: 400; }
.legal-meta {
  font-family: monospace;
  color: var(--muted);
  font-size: 14px;
  margin-bottom: 40px;
  padding-bottom: 24px;
  border-bottom: 1px solid var(--line);
}
.legal-content h2 {
  font-family: 'Inter', sans-serif;
  font-weight: 700;
  font-size: 24px;
  letter-spacing: -0.01em;
  margin-top: 48px;
  margin-bottom: 16px;
  color: var(--ink);
}
.legal-content h3 { font-size: 17px; font-weight: 600; margin-top: 28px; margin-bottom: 12px; color: var(--ink); }
.legal-content p { color: var(--muted); font-size: 15px; line-height: 1.75; margin-bottom: 16px; }
.legal-content ul, .legal-content ol {
  color: var(--muted); font-size: 15px; line-height: 1.75;
  margin-bottom: 16px; padding-left: 22px;
}
.legal-content li { margin-bottom: 6px; }
.legal-content li strong, .legal-content strong { color: var(--ink); font-weight: 600; }
.legal-content em { font-style: italic; color: var(--ink); }
.legal-content a { color: var(--ink); text-decoration: underline; text-decoration-color: rgba(245,245,245,0.4); text-underline-offset: 2px; }
[data-theme="light"] .legal-content a { text-decoration-color: rgba(10,10,10,0.4); }
.legal-content a:hover { text-decoration-color: var(--ink); }
.legal-content hr { border: none; height: 1px; background: var(--line); margin: 36px 0; }
.legal-content .placeholder {
  display: inline-block;
  background: var(--bg-elev);
  border: 1px dashed var(--ink);
  padding: 1px 6px;
  border-radius: 4px;
  font-family: monospace;
  font-size: 13px;
  color: var(--ink);
  font-weight: 500;
}
.legal-content table { width: 100%; border-collapse: collapse; font-size: 14px; margin: 16px 0; }
.legal-content th, .legal-content td { text-align: left; padding: 10px 14px; border-bottom: 1px solid var(--line); }
.legal-content th { color: var(--ink); font-weight: 600; background: var(--bg-elev); }
.legal-content td { color: var(--muted); }

.legal-layout { display: grid; grid-template-columns: 220px minmax(0, 1fr); gap: 64px; align-items: start; margin-top: 16px; }
.legal-sidebar { position: sticky; top: 96px; align-self: start; max-height: calc(100vh - 120px); overflow-y: auto; scrollbar-width: thin; padding-right: 8px; }
.legal-toc-side h4 { font-family: monospace; font-size: 11px; text-transform: uppercase; letter-spacing: 0.14em; color: var(--muted); font-weight: 600; margin-bottom: 14px; }
.legal-toc-side ol { list-style: none; padding: 0; margin: 0; display: flex; flex-direction: column; border-left: 1px solid var(--line); }
.legal-toc-side ol li { margin: 0; }
.legal-toc-side ol a {
  display: block; padding: 7px 0 7px 16px; margin-left: -1px;
  border-left: 1px solid transparent;
  font-size: 13px; color: var(--muted);
  text-decoration: none; line-height: 1.4;
  transition: color 0.2s, border-color 0.2s, padding-left 0.2s;
}
.legal-toc-side ol a:hover { color: var(--ink); padding-left: 20px; }
.legal-toc-side ol a.is-active { color: var(--ink); border-left-color: var(--ink); font-weight: 600; }
.legal-body { min-width: 0; }
.legal-body h2 { scroll-margin-top: 100px; }

@media (max-width: 880px) {
  .legal-layout { grid-template-columns: 1fr; gap: 0; }
  .legal-sidebar {
    position: static; max-height: none; overflow: visible;
    margin-bottom: 32px; padding: 22px 26px;
    background: var(--bg-elev); border: 1px solid var(--line); border-radius: 14px;
  }
  .legal-toc-side ol { border-left: none; columns: 2; column-gap: 20px; }
  .legal-toc-side ol a { padding: 4px 0; border-left: none; }
  .legal-toc-side ol a:hover { padding-left: 0; }
  .legal-toc-side ol a.is-active { border-left: none; padding-left: 0; }
}
