/* ==========================================================================
   FitForza — landing page
   Palette: nature & green (cream canvas, forest ink, leaf accents)
   ========================================================================== */

:root {
  /* Creamy Phone — linen + forest (not generic AI cream/terracotta) */
  --cream:        #F7F5EC;
  --cream-deep:   #EFEBDD;
  --ink:          #17301F;
  --ink-soft:     #45604F;
  --forest:       #1F5B3C;
  --forest-deep:  #123422;
  --leaf:         #4E9B63;
  --leaf-light:   #9BD48F;
  --mint:         #E2F0DC;
  --white:        #FFFFFF;

  --amber:        #C4923A;
  --amber-soft:   #F0E4CC;
  --coral:        #C46B52;
  --coral-soft:   #F5E4DE;
  --sky:          #4A8BB5;
  --sky-soft:     #DCEAF4;
  --moss:         #5A7A4E;
  --moss-soft:    #E4EBD8;

  --surface-1:    #FFFdf8;
  --surface-2:    #ECE8DC;
  --surface-dark: #0E1A14;
  --gradient-hero: linear-gradient(160deg, #E8F0E2 0%, #F3F0E6 42%, #EDE6D4 100%);
  --gradient-cta:  linear-gradient(135deg, var(--forest) 0%, #2d7a52 100%);
  --glass:        rgba(255, 255, 255, 0.72);

  --font-body:    "Barlow", system-ui, -apple-system, "Segoe UI", sans-serif;
  --font-display: "Barlow Condensed", "Barlow", system-ui, sans-serif;

  --ease-out:     cubic-bezier(0.22, 1, 0.36, 1);
  --ease-spring:  cubic-bezier(0.22, 1, 0.36, 1);

  --radius:       20px;
  --radius-lg:    28px;
  --nav-h:        72px;
}

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

html { scroll-behavior: smooth; }

body {
  font-family: var(--font-body);
  color: var(--ink);
  background: var(--cream);
  line-height: 1.6;
  -webkit-font-smoothing: antialiased;
  overflow-x: hidden;
}

img { max-width: 100%; display: block; }
a { color: inherit; text-decoration: none; }
ul { list-style: none; }

h1, h2, h3, h4 {
  font-family: var(--font-display);
  font-weight: 700;
  line-height: 1.12;
  letter-spacing: 0;
}

h2 { font-size: clamp(1.9rem, 3.6vw, 2.9rem); }
h3 { font-size: 1.22rem; }

.hero__brand {
  font-family: var(--font-display);
  font-weight: 800;
  font-size: 1.05rem;
  letter-spacing: 0;
  color: var(--forest);
  margin-bottom: 14px;
}

/* Contact — clean strip (no emoji cards) */
.contact-strip {
  display: grid;
  grid-template-columns: 1.2fr 1fr;
  gap: 2.5rem;
  align-items: end;
  padding: 2.5rem 0 0.5rem;
}
@media (max-width: 720px) {
  .contact-strip { grid-template-columns: 1fr; gap: 1.5rem; }
}
.contact-strip__actions {
  display: flex;
  flex-wrap: wrap;
  gap: 0.75rem;
  justify-content: flex-end;
}
@media (max-width: 720px) {
  .contact-strip__actions { justify-content: flex-start; }
}

/* Download page — editorial rows */
.dl-page {
  padding: calc(var(--nav-h) + 56px) 0 80px;
  min-height: 80vh;
  background:
    radial-gradient(ellipse 70% 50% at 10% 0%, rgba(63, 143, 87, 0.14), transparent 55%),
    var(--cream);
}
.dl-page__head { margin-bottom: 2.5rem; max-width: 36rem; }
.dl-page__brand {
  font-family: var(--font-display);
  font-weight: 900;
  font-size: 1.125rem;
  color: var(--forest);
  letter-spacing: 0;
  margin-bottom: 0.75rem;
}
.dl-page__head h1 {
  font-size: clamp(2.4rem, 5vw, 3.5rem);
  margin-bottom: 0.75rem;
}
.dl-page__head p { color: var(--ink-soft); font-size: 1.05rem; }
.dl-list { list-style: none; border-top: 1px solid rgba(26, 77, 52, 0.14); }
.dl-row {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1.5rem;
  padding: 1.5rem 0;
  border-bottom: 1px solid rgba(26, 77, 52, 0.14);
  overflow: visible;
}
@media (max-width: 560px) {
  .dl-row { flex-direction: column; align-items: stretch; }
}
.dl-row__meta { min-width: 0; flex: 1; }
.dl-row__meta h2 { font-size: 1.35rem; margin-bottom: 0.25rem; }
.dl-row__meta p { color: var(--ink-soft); font-size: 0.95rem; }
.dl-btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  flex: 0 0 auto;
  padding: 12px 22px;
  border-radius: 999px;
  background: #1F5B3C;
  color: #fff !important;
  font-weight: 600;
  font-size: 0.95rem;
  text-decoration: none;
  border: 0;
  box-shadow: none;
  white-space: nowrap;
}
.dl-btn:hover { background: #123422; filter: none; transform: none; }
.dl-steps {
  margin-top: 2.5rem;
  padding-top: 1.5rem;
  border-top: 1px solid rgba(26, 77, 52, 0.1);
}
.dl-steps h3 { font-size: 1.05rem; margin-bottom: 0.75rem; }
.dl-steps ol { padding-left: 1.2rem; color: var(--ink-soft); line-height: 1.7; margin-bottom: 1rem; }
.dl-steps code {
  font-family: ui-monospace, monospace;
  font-size: 0.9em;
  background: var(--mint);
  padding: 0.1em 0.35em;
  border-radius: 4px;
}

.container { width: min(1160px, 92%); margin-inline: auto; }
.container--narrow { width: min(820px, 92%); }

::selection { background: var(--leaf-light); color: var(--forest-deep); }

@view-transition { navigation: auto; }

::view-transition-old(root) {
  animation: page-out 140ms ease both;
}
::view-transition-new(root) {
  animation: page-in 320ms var(--ease-out) both;
}
@keyframes page-out {
  to { opacity: 0; transform: translateY(-3px); }
}
@keyframes page-in {
  from { opacity: 0; transform: translateY(7px); }
}

/* ---------- Reveal-on-scroll ---------- */
[data-reveal] {
  opacity: 0;
  transform: translateY(26px);
  transition:
    opacity 0.8s var(--ease-out),
    transform 0.8s var(--ease-out);
  transition-delay: var(--reveal-delay, 0ms);
  will-change: opacity, transform;
}
[data-reveal].is-visible { opacity: 1; transform: none; }

@media (prefers-reduced-motion: reduce) {
  [data-reveal] { opacity: 1; transform: none; transition: none; }
  html { scroll-behavior: auto; }
  .marquee__track { animation: none !important; }
  ::view-transition-old(root),
  ::view-transition-new(root) { animation: none !important; }
}

/* ---------- Buttons ---------- */
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  font-weight: 600;
  font-family: var(--font-body);
  border: 1.5px solid transparent;
  border-radius: 999px;
  cursor: pointer;
  white-space: nowrap;
  flex-shrink: 0;
  transition:
    transform 0.35s var(--ease-spring),
    box-shadow 0.35s var(--ease-out),
    background-color 0.25s ease,
    color 0.25s ease,
    border-color 0.25s ease;
}
.btn:active { transform: scale(0.97); }
.btn:focus-visible { outline: 2px solid var(--leaf); outline-offset: 3px; }

.btn--sm    { padding: 9px 20px;  font-size: 0.9rem; }
.btn--lg    { padding: 15px 30px; font-size: 1rem; }
.btn--block { width: 100%; padding: 13px 24px; }

.btn--primary {
  background: var(--gradient-cta);
  color: var(--white);
  border: none;
  box-shadow: 0 8px 24px -8px rgba(31, 91, 60, 0.55), inset 0 1px 0 rgba(255,255,255,0.15);
}
.btn--primary:hover {
  filter: brightness(1.06);
  transform: translateY(-2px);
  box-shadow: 0 14px 30px -8px rgba(31, 91, 60, 0.6);
}
.plan--featured .btn--primary {
  background: var(--gradient-cta);
  color: var(--white);
  border: none;
  box-shadow: 0 8px 24px -8px rgba(31, 91, 60, 0.55), inset 0 1px 0 rgba(255,255,255,0.15);
}

.btn--ghost {
  background: transparent;
  color: var(--forest);
  border-color: rgba(31, 91, 60, 0.35);
}
.btn--ghost:hover {
  background: rgba(31, 91, 60, 0.07);
  border-color: var(--forest);
  transform: translateY(-2px);
}

.btn--light {
  background: var(--white);
  color: var(--forest-deep);
  box-shadow: 0 8px 24px -10px rgba(0, 0, 0, 0.4);
}
.btn--light:hover { transform: translateY(-2px); background: var(--mint); }

.btn--outline-light {
  background: transparent;
  color: var(--white);
  border-color: rgba(255, 255, 255, 0.45);
}
.btn--outline-light:hover { border-color: var(--white); background: rgba(255,255,255,0.08); transform: translateY(-2px); }

/* ---------- Eyebrow labels ---------- */
.eyebrow {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  font-size: 0.82rem;
  font-weight: 600;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  color: var(--forest);
  background: var(--mint);
  border: 1px solid rgba(31, 91, 60, 0.18);
  padding: 6px 14px;
  border-radius: 999px;
  margin-bottom: 18px;
}
.eyebrow__dot {
  width: 7px; height: 7px;
  border-radius: 50%;
  background: var(--leaf);
  animation: pulse-dot 2.2s ease-in-out infinite;
}
.eyebrow--light { background: rgba(155, 212, 143, 0.14); color: var(--leaf-light); border-color: rgba(155, 212, 143, 0.3); }

@keyframes pulse-dot {
  0%, 100% { box-shadow: 0 0 0 0 rgba(78, 155, 99, 0.45); }
  50%      { box-shadow: 0 0 0 6px rgba(78, 155, 99, 0); }
}

/* ==========================================================================
   NAV
   ========================================================================== */
.nav {
  position: fixed;
  inset: 0 0 auto 0;
  z-index: 100;
  padding: 14px 0;
  transform: translate3d(0, 0, 0);
  transition:
    transform 420ms var(--ease-out),
    padding 320ms var(--ease-out),
    background-color 250ms ease;
}
.nav.is-hidden { transform: translate3d(0, calc(-100% - 12px), 0); }
.nav.is-scrolled {
  padding: 8px 0;
}
.nav.is-scrolled .nav__shell {
  background: rgba(255, 255, 255, 0.88);
  backdrop-filter: blur(22px) saturate(1.5);
  -webkit-backdrop-filter: blur(22px) saturate(1.5);
  box-shadow: 0 1px 0 rgba(23, 48, 31, 0.06), 0 20px 50px -20px rgba(23, 48, 31, 0.2);
  border: 1px solid rgba(31, 91, 60, 0.1);
}
.nav__shell {
  width: min(1120px, calc(100% - 32px));
  margin-inline: auto;
  padding: 10px 20px;
  border-radius: 16px;
  border: 1px solid rgba(26, 77, 52, 0.1);
  background: var(--glass);
  backdrop-filter: blur(18px) saturate(1.2);
  -webkit-backdrop-filter: blur(18px) saturate(1.2);
  transition: background 0.35s ease, box-shadow 0.35s ease, border-color 0.35s ease;
}
.nav__inner {
  height: auto;
  min-height: 48px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 24px;
}
.nav__brand {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  font-family: var(--font-display);
  font-weight: 800;
  font-size: 1.18rem;
  letter-spacing: 0;
}
.nav__logo { width: 34px; height: 34px; border-radius: 10px; }

.nav__links { display: flex; gap: 30px; }
.nav__mobile-auth { display: none; }
.nav__links a {
  position: relative;
  font-size: 0.94rem;
  font-weight: 500;
  color: var(--ink-soft);
  transition: color 0.25s ease;
  padding: 6px 0;
}
.nav__links a::after {
  content: "";
  position: absolute;
  left: 0; bottom: 0;
  width: 100%; height: 2px;
  border-radius: 2px;
  background: var(--leaf);
  transform: scaleX(0);
  transform-origin: right;
  transition: transform 0.35s var(--ease-out);
}
.nav__links a:hover { color: var(--ink); }
.nav__links a:hover::after { transform: scaleX(1); transform-origin: left; }

.nav__actions { display: flex; align-items: center; gap: 12px; }

.nav__burger {
  display: none;
  flex-direction: column;
  gap: 5px;
  background: none;
  border: 0;
  padding: 8px;
  cursor: pointer;
}
.nav__burger span {
  width: 22px; height: 2px;
  background: var(--ink);
  border-radius: 2px;
  transition: transform 0.3s var(--ease-out), opacity 0.3s ease;
}
.nav__burger[aria-expanded="true"] span:nth-child(1) { transform: translateY(7px) rotate(45deg); }
.nav__burger[aria-expanded="true"] span:nth-child(2) { opacity: 0; }
.nav__burger[aria-expanded="true"] span:nth-child(3) { transform: translateY(-7px) rotate(-45deg); }

/* ==========================================================================
   HERO
   ========================================================================== */
.hero {
  position: relative;
  padding: calc(var(--nav-h) + 72px) 0 100px;
  min-height: 92vh;
  display: flex;
  align-items: center;
  overflow: hidden;
  background:
    radial-gradient(ellipse 80% 60% at 20% 0%, rgba(155, 212, 143, 0.22), transparent 55%),
    radial-gradient(ellipse 60% 50% at 90% 10%, rgba(31, 91, 60, 0.08), transparent 50%),
    var(--cream);
}

.hero__bg { position: absolute; inset: 0; pointer-events: none; }
.blob {
  position: absolute;
  border-radius: 50%;
  filter: blur(70px);
  opacity: 0.55;
  will-change: transform;
}
.blob--a { width: 480px; height: 480px; background: var(--mint);       top: -120px; left: -140px; }
.blob--b { width: 420px; height: 420px; background: #D9EAD0;           bottom: -160px; right: -100px; }
.blob--c { width: 260px; height: 260px; background: rgba(155,212,143,.5); top: 30%; right: 22%; }

.leaf {
  position: absolute;
  width: 40px; height: 40px;
  background: radial-gradient(circle at 30% 30%, var(--leaf-light), var(--leaf));
  border-radius: 0 50% 50% 50%;
  opacity: 0.35;
  animation: sway 7s ease-in-out infinite;
  will-change: transform;
}
.leaf--1 { top: 22%; left: 6%; transform: rotate(-20deg); }
.leaf--2 { bottom: 18%; right: 8%; width: 28px; height: 28px; animation-delay: -3s; }

@keyframes sway {
  0%, 100% { rotate: -14deg; translate: 0 0; }
  50%      { rotate: 14deg;  translate: 6px -14px; }
}

.hero__grid {
  position: relative;
  display: grid;
  grid-template-columns: 1.08fr 0.92fr;
  align-items: center;
  gap: 48px;
}

.hero__title {
  font-size: 5.8rem;
  font-weight: 900;
  line-height: 0.92;
  margin-bottom: 22px;
  color: var(--forest-deep);
}
.hero__statement {
  margin: 0 0 24px;
  font-size: 3.55rem;
  font-weight: 800;
  line-height: 1.08;
  color: var(--ink);
}
.hero__statement em {
  font-style: normal;
  color: var(--forest);
  position: relative;
  display: inline-block;
}
.hero__statement em::after {
  content: "";
  position: absolute;
  left: 0; right: 0; bottom: 0.08em;
  height: 0.28em;
  background: var(--leaf-light);
  border-radius: 4px;
  z-index: -1;
  transform: scaleX(0);
  transform-origin: left;
  animation: underline-grow 0.9s var(--ease-out) 0.9s forwards;
}
@keyframes underline-grow { to { transform: scaleX(1); } }

.hero__sub {
  font-size: 1.12rem;
  color: var(--ink-soft);
  max-width: 34rem;
  margin-bottom: 32px;
}

.hero__cta { display: flex; flex-wrap: wrap; gap: 14px; margin-bottom: 36px; }

.hero__proof {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 10px;
  font-size: 0.88rem;
  color: var(--ink-soft);
}
.hero__proof span {
  min-height: 32px;
  display: inline-flex;
  align-items: center;
  border-radius: 999px;
  border: 1px solid rgba(31, 91, 60, 0.16);
  background: rgba(255, 253, 248, 0.68);
  padding: 6px 12px;
}
.hero__proof strong { color: var(--ink); }
.stars { color: #DBA95B; letter-spacing: 2px; }

.avatars { display: flex; }
.avatars span {
  width: 38px; height: 38px;
  display: grid; place-items: center;
  border-radius: 50%;
  background: var(--forest);
  color: var(--white);
  font-size: 0.8rem;
  font-weight: 600;
  border: 2.5px solid var(--cream);
  margin-left: -10px;
}
.avatars span:first-child { margin-left: 0; }
.avatars span:nth-child(2) { background: var(--leaf); }
.avatars span:nth-child(3) { background: #7FB069; }
.avatars span:nth-child(4) { background: var(--forest-deep); }

.hero__scroll {
  position: absolute;
  left: 50%; bottom: 26px;
  translate: -50% 0;
  width: 26px; height: 42px;
  border: 2px solid rgba(23, 48, 31, 0.3);
  border-radius: 14px;
  display: grid;
  justify-content: center;
  padding-top: 7px;
}
.hero__scroll span {
  width: 4px; height: 8px;
  border-radius: 3px;
  background: var(--forest);
  animation: scroll-hint 1.8s ease-in-out infinite;
}
@keyframes scroll-hint {
  0%   { transform: translateY(0);    opacity: 1; }
  70%  { transform: translateY(14px); opacity: 0; }
  100% { transform: translateY(0);    opacity: 0; }
}

/* ---------- Phone mockup ---------- */
.hero__device { position: relative; display: grid; justify-items: center; perspective: 1200px; min-height: 620px; }

.phone {
  position: relative;
  z-index: 2;
  width: min(310px, 78vw);
  aspect-ratio: 9 / 18.6;
  background: #0E1B13;
  border-radius: 44px;
  padding: 12px;
  box-shadow:
    0 40px 80px -30px rgba(18, 52, 34, 0.5),
    inset 0 0 0 2px rgba(255, 255, 255, 0.06);
  transform-style: preserve-3d;
  transition: transform 0.25s ease-out;
  animation: phone-float 6s ease-in-out infinite;
  will-change: transform;
}
@keyframes phone-float {
  0%, 100% { translate: 0 0; }
  50%      { translate: 0 -12px; }
}

.phone__notch {
  position: absolute;
  top: 12px; left: 50%;
  translate: -50% 0;
  width: 34%; height: 22px;
  background: #0E1B13;
  border-radius: 0 0 14px 14px;
  z-index: 3;
}
.phone__screen {
  height: 100%;
  border-radius: 34px;
  background: linear-gradient(170deg, #F9F7EF 0%, #EDF3E4 100%);
  overflow: hidden;
  padding: 36px 14px 10px;
  display: flex;
  flex-direction: column;
  gap: 8px;
}
.phone__screen--app { font-size: 0.72rem; color: var(--ink); }

.app-topbar { display: flex; align-items: center; justify-content: space-between; gap: 8px; }
.app-profile-pill {
  display: inline-flex; align-items: center; gap: 6px;
  padding: 5px 10px 5px 5px; border-radius: 999px;
  background: rgba(255,255,255,.72); border: 1px solid rgba(31,91,60,.12);
  font-weight: 600; font-size: 0.68rem; color: var(--ink);
}
.app-profile-pill__avatar {
  width: 22px; height: 22px; border-radius: 50%;
  background: var(--forest); color: #fff;
  display: grid; place-items: center; font-size: 0.62rem;
}
.app-topbar__date { font-size: 0.62rem; color: var(--ink-soft); font-weight: 500; }
.app-greeting {
  margin: 0; font-family: var(--font-display); font-weight: 700;
  font-size: 1.05rem; line-height: 1.15; color: var(--ink);
}
.app-tagline { margin: 0; font-size: 0.64rem; color: var(--ink-soft); line-height: 1.4; }
.app-section-label {
  margin: 0; font-size: 0.58rem; font-weight: 700; letter-spacing: .06em;
  color: var(--ink-soft); text-transform: uppercase;
}
.app-quick-row { display: grid; grid-template-columns: repeat(4, 1fr); gap: 5px; }
.app-quick {
  text-align: center; padding: 8px 2px; border-radius: 14px;
  background: rgba(255,255,255,.62); font-size: 0.58rem; font-weight: 600; color: var(--ink);
}
.app-glass {
  background: rgba(255,255,255,.82); border: 1px solid rgba(31,91,60,.12);
  border-radius: 16px; padding: 10px 12px;
  box-shadow: 0 8px 20px -14px rgba(23,48,31,.35);
}
.app-glass--coach { margin-top: auto; }
.app-today-stats {
  display: grid; grid-template-columns: repeat(4, 1fr); gap: 4px; margin-top: 6px;
}
.app-today-stats div { text-align: center; }
.app-today-stats strong { display: block; font-size: 0.72rem; color: var(--ink); }
.app-today-stats span { font-size: 0.54rem; color: var(--ink-soft); }
.app-coach-head {
  display: flex; align-items: center; gap: 5px;
  color: var(--forest); font-weight: 700; font-size: 0.62rem; margin-bottom: 4px;
}
.app-glass--coach p { margin: 0; font-size: 0.62rem; line-height: 1.45; color: var(--ink); }
.app-hotbar {
  display: flex; justify-content: space-between; gap: 2px;
  margin-top: 6px; padding: 5px 4px;
  background: rgba(255,255,255,.9); border: 1px solid rgba(31,91,60,.1);
  border-radius: 999px;
}
.app-hotbar__item {
  flex: 1; display: flex; flex-direction: column; align-items: center; gap: 2px;
  padding: 5px 2px; border-radius: 999px; color: var(--ink-soft); font-size: 0.5rem;
}
.app-hotbar__item svg { opacity: .55; }
.app-hotbar__item.is-active {
  background: rgba(78,155,99,.16); color: var(--forest);
}
.app-hotbar__item.is-active svg { opacity: 1; color: var(--forest); }

/* Legacy phone widgets (kept for previews) */
.app-head { display: flex; justify-content: space-between; align-items: center; }
.app-hello { font-weight: 700; font-size: 0.95rem; font-family: var(--font-display); }
.app-date  { font-size: 0.72rem; color: var(--ink-soft); }
.app-avatar {
  width: 34px; height: 34px;
  border-radius: 50%;
  display: grid; place-items: center;
  background: var(--forest);
  color: var(--white);
  font-size: 0.8rem;
  font-weight: 600;
}

.app-ring { position: relative; display: grid; place-items: center; margin-block: 2px; }
.app-ring svg { width: 128px; height: 128px; transform: rotate(-90deg); }
.ring-track { fill: none; stroke: rgba(31, 91, 60, 0.12); stroke-width: 10; }
.ring-fill {
  fill: none;
  stroke: var(--leaf);
  stroke-width: 10;
  stroke-linecap: round;
  stroke-dasharray: 314;
  stroke-dashoffset: 314;
  transition: stroke-dashoffset 1.6s var(--ease-out) 0.4s;
}
.app-ring__label { position: absolute; text-align: center; line-height: 1.15; }
.app-ring__label strong { font-size: 1.3rem; font-family: var(--font-display); }
.app-ring__label span { display: block; font-size: 0.66rem; color: var(--ink-soft); }

.app-cards { display: grid; grid-template-columns: repeat(3, 1fr); gap: 8px; }
.app-card {
  background: var(--white);
  border: 1px solid rgba(31, 91, 60, 0.1);
  border-radius: 14px;
  padding: 9px 6px;
  text-align: center;
  display: grid;
  gap: 1px;
  box-shadow: 0 6px 16px -10px rgba(23, 48, 31, 0.2);
}
.app-card__icon { font-size: 0.95rem; }
.app-card strong { font-size: 0.86rem; font-family: var(--font-display); }
.app-card span:last-child { font-size: 0.62rem; color: var(--ink-soft); }

.app-chat {
  background: var(--mint);
  border: 1px solid rgba(31, 91, 60, 0.14);
  border-radius: 14px;
  padding: 10px 12px;
  font-size: 0.7rem;
  line-height: 1.45;
  color: var(--ink);
}

.app-dock {
  margin-top: auto;
  display: flex;
  justify-content: space-around;
  background: var(--white);
  border: 1px solid rgba(31, 91, 60, 0.1);
  border-radius: 999px;
  padding: 8px 6px;
  font-size: 0.85rem;
  box-shadow: 0 8px 20px -12px rgba(23, 48, 31, 0.3);
}
.app-dock span { opacity: 0.45; transition: opacity 0.2s; }
.app-dock span.active {
  opacity: 1;
  background: var(--mint);
  border-radius: 999px;
  padding: 0 10px;
}

/* ==========================================================================
   MARQUEE
   ========================================================================== */
/* Trust bar (Framer-style social proof strip) */
.trust-bar {
  padding: 28px 0;
  border-bottom: 1px solid rgba(31, 91, 60, 0.08);
  background: rgba(255, 255, 255, 0.55);
}
.trust-bar__inner {
  display: flex; flex-wrap: wrap; align-items: center; justify-content: center; gap: 20px 36px;
}
.trust-bar__label {
  font-size: 0.82rem; font-weight: 600; letter-spacing: 0.06em; text-transform: uppercase;
  color: var(--ink-soft);
}
.trust-bar__logos {
  display: flex; flex-wrap: wrap; align-items: center; justify-content: center; gap: 28px;
}
.trust-bar__logos span {
  font-family: var(--font-display); font-weight: 700; font-size: 1.05rem;
  color: rgba(23, 48, 31, 0.35); letter-spacing: 0;
  transition: color 0.25s ease;
}
.trust-bar__logos span:hover { color: var(--forest); }

.marquee {
  background: var(--forest-deep);
  color: var(--cream);
  padding: 18px 0;
  overflow: hidden;
  -webkit-mask-image: linear-gradient(90deg, transparent, #000 8%, #000 92%, transparent);
  mask-image: linear-gradient(90deg, transparent, #000 8%, #000 92%, transparent);
}
.marquee__track { display: flex; width: max-content; animation: marquee 26s linear infinite; }
.marquee:hover .marquee__track { animation-play-state: paused; }
.marquee__group { display: flex; align-items: center; gap: 34px; padding-right: 34px; }
.marquee__group span {
  font-family: var(--font-display);
  font-weight: 600;
  font-size: 1.05rem;
  letter-spacing: 0.04em;
  text-transform: uppercase;
}
.marquee__group i { color: var(--leaf-light); font-style: normal; }

@keyframes marquee { to { transform: translateX(-50%); } }

/* ==========================================================================
   SECTIONS (shared)
   ========================================================================== */
.section { padding: 104px 0; position: relative; }
.section--tint {
  background: linear-gradient(180deg, var(--cream) 0%, var(--mint) 50%, var(--cream) 100%);
}
.section__head h2 {
  color: var(--forest-deep);
}
.section--dark {
  background:
    radial-gradient(ellipse 70% 80% at 10% 20%, rgba(79, 91, 213, 0.18), transparent 55%),
    radial-gradient(ellipse 60% 60% at 90% 80%, rgba(224, 122, 95, 0.12), transparent 50%),
    var(--forest-deep);
  color: var(--cream);
}
.section--tint {
  background: linear-gradient(180deg, var(--cream) 0%, var(--sky-soft) 50%, var(--amber-soft) 100%);
}

/* ---------- Bento feature grid ---------- */
.bento-grid {
  display: grid;
  grid-template-columns: repeat(12, 1fr);
  gap: 18px;
}
.bento-grid .card {
  grid-column: span 4;
  position: relative;
  overflow: hidden;
}
.bento-grid .card--wide { grid-column: span 8; }
.bento-grid .card--tall { grid-column: span 4; grid-row: span 1; }
.bento-grid .card::before {
  content: "";
  position: absolute;
  inset: 0;
  opacity: 0;
  transition: opacity 0.4s ease;
  pointer-events: none;
}
.bento-grid .card:hover::before { opacity: 1; }
.bento-grid .card--green::before { background: linear-gradient(135deg, rgba(155,212,143,0.15), transparent 60%); }
.bento-grid .card--amber::before { background: linear-gradient(135deg, rgba(219,169,91,0.18), transparent 60%); }
.bento-grid .card--moss::before { background: linear-gradient(135deg, rgba(90,122,78,0.14), transparent 60%); }
.bento-grid .card--indigo::before { background: linear-gradient(135deg, rgba(63,143,87,0.12), transparent 60%); }
.bento-grid .card--coral::before { background: linear-gradient(135deg, rgba(224,122,95,0.14), transparent 60%); }
.bento-grid .card--sky::before { background: linear-gradient(135deg, rgba(91,155,213,0.14), transparent 60%); }
.bento-grid .card--plum::before { background: linear-gradient(135deg, rgba(107,78,113,0.12), transparent 60%); }
.card__icon--green { background: var(--mint); }
.card__icon--amber { background: var(--amber-soft); }
.card__icon--indigo { background: var(--indigo-soft); }
.card__icon--coral { background: var(--coral-soft); }
.card__icon--sky { background: var(--sky-soft); }
.card__icon--plum { background: var(--plum-soft); }

/* ---------- Feature cards (legacy grid) ---------- */
.cards-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 22px;
}
.card {
  background: var(--white);
  border: 1px solid rgba(31, 91, 60, 0.1);
  border-radius: var(--radius);
  padding: 30px 26px;
  transition:
    transform 0.45s var(--ease-spring),
    box-shadow 0.45s var(--ease-out),
    border-color 0.3s ease;
}
.card:hover {
  transform: translateY(-6px);
  border-color: rgba(31, 91, 60, 0.3);
  box-shadow: 0 24px 44px -22px rgba(23, 48, 31, 0.35);
}
.card__icon {
  width: 52px; height: 52px;
  display: grid; place-items: center;
  font-size: 0.82rem;
  font-weight: 700;
  font-family: var(--font-display, "Barlow Condensed", sans-serif);
  letter-spacing: 0;
  color: var(--forest);
  background: var(--mint);
  border-radius: 16px;
  margin-bottom: 18px;
  transition: transform 0.45s var(--ease-spring), background-color 0.3s ease;
}
.bento-grid .card { transform: translateY(28px); opacity: 0; transition: opacity 0.7s var(--ease-out), transform 0.7s var(--ease-out), box-shadow 0.3s; }
.bento-grid.is-built .card { transform: none; opacity: 1; }
.bento-grid.is-built .card:nth-child(1) { transition-delay: 0ms; }
.bento-grid.is-built .card:nth-child(2) { transition-delay: 70ms; }
.bento-grid.is-built .card:nth-child(3) { transition-delay: 140ms; }
.bento-grid.is-built .card:nth-child(4) { transition-delay: 210ms; }
.bento-grid.is-built .card:nth-child(5) { transition-delay: 280ms; }
.bento-grid.is-built .card:nth-child(6) { transition-delay: 350ms; }
.card:hover .card__icon { transform: scale(1.1) rotate(-6deg); background: var(--leaf-light); }
.card h3 { margin-bottom: 8px; }
.card p { color: var(--ink-soft); font-size: 0.96rem; }

/* ---------- Steps ---------- */
.steps {
  display: grid;
  grid-template-columns: 1fr auto 1fr auto 1fr;
  align-items: stretch;
  gap: 20px;
}
.step {
  background: var(--white);
  border: 1px solid rgba(31, 91, 60, 0.1);
  border-radius: var(--radius);
  padding: 30px 26px;
  transition: transform 0.45s var(--ease-spring), box-shadow 0.45s var(--ease-out);
}
.step:hover { transform: translateY(-6px); box-shadow: 0 24px 44px -22px rgba(23, 48, 31, 0.35); }
.step__num {
  display: inline-block;
  font-family: var(--font-display);
  font-weight: 800;
  font-size: 0.85rem;
  color: var(--forest);
  background: var(--mint);
  border-radius: 999px;
  padding: 5px 14px;
  margin-bottom: 16px;
}
.step h3 { margin-bottom: 8px; }
.step p { color: var(--ink-soft); font-size: 0.96rem; }
.step__line {
  align-self: center;
  width: 34px; height: 2px;
  background:
    repeating-linear-gradient(90deg, var(--leaf) 0 6px, transparent 6px 12px);
}

/* ---------- AI coach ---------- */
.coach__grid {
  display: grid;
  grid-template-columns: 1.05fr 0.95fr;
  gap: 64px;
  align-items: center;
}
.coach__list { display: grid; gap: 14px; margin: 28px 0 34px; }
.coach__list li {
  display: flex;
  gap: 12px;
  align-items: baseline;
  color: rgba(247, 245, 236, 0.85);
}
.coach__list li span {
  width: 8px;
  height: 8px;
  border-radius: 999px;
  background: var(--leaf-light);
  box-shadow: 0 0 0 4px rgba(155, 212, 143, 0.16);
  flex: 0 0 auto;
  margin-top: 0.6em;
}

.phone__shadow {
  width: 62%; height: 22px;
  margin-top: 26px;
  border-radius: 50%;
  background: radial-gradient(ellipse, rgba(18, 52, 34, 0.28), transparent 70%);
  animation: shadow-breathe 6s ease-in-out infinite;
}
@keyframes shadow-breathe {
  0%, 100% { transform: scale(1);   opacity: 1; }
  50%      { transform: scale(0.9); opacity: 0.7; }
}

/* Coach preview inside phone mockup */
.phone--static { animation: none; }
.phone__screen--coach-chat {
  gap: 10px; padding-bottom: 12px;
}
.app-coach-head--page {
  display: flex; align-items: center; gap: 8px;
  font-family: var(--font-display); font-weight: 700;
  font-size: 0.82rem; color: var(--forest);
  padding-bottom: 8px; margin: 0;
  border-bottom: 1px solid rgba(31,91,60,.1);
}
.app-coach-head--page svg { color: var(--leaf); }
.coach-phone__chips--app { display: flex; flex-wrap: wrap; gap: 5px; margin: 0; }
.coach-phone__chips--app .coach-phone__chip {
  padding: 5px 9px; border-radius: 999px; font-size: 0.58rem; font-weight: 600;
  background: rgba(255,255,255,.72); color: var(--ink);
}
.coach-phone__thread--app { display: grid; gap: 8px; flex: 1; overflow: auto; margin: 0; }
.coach-phone__thread--app .coach-bubble {
  max-width: 92%; padding: 8px 10px; border-radius: 14px;
  font-size: 0.62rem; line-height: 1.45;
}
.coach-phone__thread--app .coach-bubble--bot {
  justify-self: start;
  background: rgba(255,255,255,.88); border: 1px solid rgba(31,91,60,.1);
  color: var(--ink); border-bottom-left-radius: 5px;
}
.coach-phone__thread--app .coach-bubble--user {
  justify-self: end;
  background: var(--leaf-light); color: var(--forest-deep);
  border-bottom-right-radius: 5px;
}
.coach-phone__input--app {
  display: flex; align-items: center; gap: 6px; margin-top: auto;
}
.coach-phone__input--app input {
  flex: 1; padding: 8px 10px; border-radius: 12px;
  border: 1px solid rgba(31,91,60,.14); background: rgba(255,255,255,.85);
  color: var(--ink); font-size: 0.62rem;
}
.app-coach-send {
  width: 30px; height: 30px; border: 0; border-radius: 50%;
  background: var(--forest); color: #fff; font-size: 14px; font-weight: 700;
  cursor: pointer; flex-shrink: 0;
}
.app-assist-empty { text-align: center; padding: 8px 10px 4px; }
.app-assist-empty__icon {
  width: 40px; height: 40px; margin: 0 auto 6px; border-radius: 50%;
  display: grid; place-items: center; font-size: 1rem;
  background: rgba(31,91,60,.12); border: 1px solid rgba(31,91,60,.2); color: var(--forest);
}
.app-assist-empty__title { margin: 0; font-size: 0.72rem; font-weight: 700; color: var(--ink); }
.app-assist-empty__sub { margin: 4px 0 0; font-size: 0.58rem; color: var(--ink-soft); line-height: 1.4; }
.app-hotbar--mini {
  margin-top: auto; display: grid; grid-template-columns: repeat(4, 1fr); gap: 2px;
  padding: 6px 4px 2px; border-top: 1px solid rgba(31,91,60,.08);
}
.app-hotbar--mini .app-hotbar__item { font-size: 0.52rem; padding: 4px 2px; border-radius: 12px; text-align: center; color: var(--ink-soft); }
.app-hotbar--mini .app-hotbar__item.is-active { background: rgba(31,91,60,.14); color: var(--forest); font-weight: 700; }
.app-hotbar--mini .app-hotbar__item svg { display: none; }
.app-topbar--coach { margin-bottom: 2px; }
.chat-window__head {
  display: flex;
  align-items: center;
  gap: 10px;
  font-family: var(--font-display);
  font-weight: 600;
  font-size: 0.92rem;
  color: var(--leaf-light);
  padding-bottom: 6px;
  border-bottom: 1px solid rgba(155, 212, 143, 0.15);
}
.chat-dot {
  width: 9px; height: 9px;
  border-radius: 50%;
  background: var(--leaf-light);
  animation: pulse-dot 2.2s ease-in-out infinite;
}
.chat-msg {
  max-width: 86%;
  padding: 12px 16px;
  border-radius: 18px;
  font-size: 0.92rem;
  line-height: 1.5;
}
.chat-msg--bot {
  background: rgba(155, 212, 143, 0.14);
  border: 1px solid rgba(155, 212, 143, 0.2);
  border-bottom-left-radius: 6px;
  justify-self: start;
}
.chat-msg--user {
  background: var(--leaf-light);
  color: var(--forest-deep);
  border-bottom-right-radius: 6px;
  justify-self: end;
}
.chat-typing { display: flex; gap: 5px; padding: 4px 6px; }
.chat-typing span {
  width: 7px; height: 7px;
  border-radius: 50%;
  background: rgba(155, 212, 143, 0.6);
  animation: typing 1.3s ease-in-out infinite;
}
.chat-typing span:nth-child(2) { animation-delay: 0.18s; }
.chat-typing span:nth-child(3) { animation-delay: 0.36s; }
@keyframes typing {
  0%, 60%, 100% { transform: translateY(0);    opacity: 0.5; }
  30%           { transform: translateY(-5px); opacity: 1; }
}

/* ---------- Stats ---------- */
.stats {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 22px;
  text-align: center;
}
.stat {
  background: var(--white);
  border: 1px solid rgba(31, 91, 60, 0.1);
  border-radius: var(--radius);
  padding: 34px 18px;
  transition: transform 0.45s var(--ease-spring), box-shadow 0.45s var(--ease-out);
}
.stat:hover { transform: translateY(-5px); box-shadow: 0 22px 40px -22px rgba(23, 48, 31, 0.3); }
.stat strong {
  display: block;
  font-family: var(--font-display);
  font-weight: 800;
  font-size: clamp(2rem, 3.4vw, 2.7rem);
  color: var(--forest);
  line-height: 1.1;
  margin-bottom: 6px;
}
.stat > span { color: var(--ink-soft); font-size: 0.94rem; }

/* ---------- Testimonials ---------- */
.quotes { display: grid; grid-template-columns: repeat(3, 1fr); gap: 22px; }
.quote {
  background: var(--white);
  border: 1px solid rgba(31, 91, 60, 0.1);
  border-radius: var(--radius);
  padding: 30px 26px;
  display: flex;
  flex-direction: column;
  gap: 22px;
  transition: transform 0.45s var(--ease-spring), box-shadow 0.45s var(--ease-out);
}
.quote:hover { transform: translateY(-6px); box-shadow: 0 24px 44px -22px rgba(23, 48, 31, 0.35); }
.quote p { color: var(--ink); font-size: 0.98rem; }
.quote figcaption {
  margin-top: auto;
  display: flex;
  align-items: center;
  gap: 12px;
  font-size: 0.88rem;
  color: var(--ink-soft);
}
.quote figcaption strong { color: var(--ink); }
.quote__avatar {
  width: 42px; height: 42px;
  flex: 0 0 42px;
  display: grid; place-items: center;
  border-radius: 50%;
  background: var(--forest);
  color: var(--white);
  font-weight: 600;
}
.quote:nth-child(2) .quote__avatar { background: var(--leaf); }
.quote:nth-child(3) .quote__avatar { background: #7FB069; }

/* ---------- Pricing ---------- */
.plans {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 22px;
  align-items: stretch;
}
.plan {
  position: relative;
  background: var(--white);
  border: 1px solid rgba(31, 91, 60, 0.12);
  border-radius: var(--radius-lg);
  padding: 34px 28px;
  display: flex;
  flex-direction: column;
  transition: transform 0.45s var(--ease-spring), box-shadow 0.45s var(--ease-out), border-color 0.3s ease;
}
.plan:hover { transform: translateY(-6px); box-shadow: 0 26px 50px -24px rgba(23, 48, 31, 0.35); }

.plan--featured {
  background: var(--forest-deep);
  color: var(--cream);
  border-color: var(--forest-deep);
  box-shadow: 0 30px 60px -26px rgba(18, 52, 34, 0.65);
  transform: scale(1.03);
}
.plan--featured:hover { transform: scale(1.03) translateY(-6px); }
.plan__badge {
  position: absolute;
  top: -13px; left: 50%;
  translate: -50% 0;
  background: var(--leaf-light);
  color: var(--forest-deep);
  font-size: 0.75rem;
  font-weight: 700;
  letter-spacing: 0.04em;
  text-transform: uppercase;
  border-radius: 999px;
  padding: 5px 16px;
  white-space: nowrap;
}
.plan h3 { margin-bottom: 10px; }
.plan__price { display: flex; align-items: baseline; gap: 5px; margin-bottom: 8px; }
.plan__price strong { font-family: var(--font-display); font-weight: 800; font-size: 2.6rem; letter-spacing: 0; }
.plan__price span { color: var(--ink-soft); font-size: 0.95rem; }
.plan--featured .plan__price span { color: rgba(247, 245, 236, 0.6); }
.plan__desc { color: var(--ink-soft); font-size: 0.94rem; margin-bottom: 22px; }
.plan--featured .plan__desc { color: rgba(247, 245, 236, 0.72); }

.plan ul { display: grid; gap: 11px; margin-bottom: 30px; }
.plan ul li {
  position: relative;
  padding-left: 26px;
  font-size: 0.94rem;
  color: var(--ink-soft);
}
.plan--featured ul li { color: rgba(247, 245, 236, 0.85); }
.plan ul li::before {
  content: "✓";
  position: absolute;
  left: 0;
  color: var(--leaf);
  font-weight: 700;
}
.plan--featured ul li::before { color: var(--leaf-light); }
.plan .btn { margin-top: auto; }

/* ---------- FAQ ---------- */
.faq { display: grid; gap: 14px; }
.faq__item {
  background: var(--white);
  border: 1px solid rgba(31, 91, 60, 0.12);
  border-radius: var(--radius);
  overflow: hidden;
  transition: border-color 0.3s ease, box-shadow 0.3s ease;
}
.faq__item[open] {
  border-color: rgba(31, 91, 60, 0.3);
  box-shadow: 0 18px 36px -22px rgba(23, 48, 31, 0.3);
}
.faq__item summary {
  list-style: none;
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 18px;
  padding: 20px 24px;
  font-weight: 600;
  font-family: var(--font-display);
  font-size: 1.02rem;
  user-select: none;
}
.faq__item summary::-webkit-details-marker { display: none; }
.faq__chev {
  flex: 0 0 auto;
  width: 12px; height: 12px;
  border-right: 2px solid var(--forest);
  border-bottom: 2px solid var(--forest);
  transform: rotate(45deg);
  transition: transform 0.35s var(--ease-out);
  margin-top: -4px;
}
.faq__item[open] .faq__chev { transform: rotate(225deg); margin-top: 4px; }
.faq__body { padding: 0 24px; overflow: hidden; }
.faq__body p { color: var(--ink-soft); padding-bottom: 22px; font-size: 0.97rem; }

/* ---------- CTA band ---------- */
.cta-band { padding-bottom: 120px; }
.cta-card {
  position: relative;
  background:
    radial-gradient(120% 160% at 85% -20%, rgba(155, 212, 143, 0.28), transparent 55%),
    var(--forest-deep);
  color: var(--cream);
  border-radius: var(--radius-lg);
  padding: clamp(48px, 7vw, 84px) clamp(28px, 6vw, 80px);
  text-align: center;
  overflow: hidden;
}
.cta-card h2 { margin-bottom: 14px; }
.cta-card > p { color: rgba(247, 245, 236, 0.75); max-width: 34rem; margin: 0 auto 34px; }
.cta-card__actions { display: flex; justify-content: center; flex-wrap: wrap; gap: 14px; }
.cta-card__leaf {
  position: absolute;
  font-size: 7rem;
  opacity: 0.1;
  right: -12px; bottom: -26px;
  rotate: -18deg;
  pointer-events: none;
}

/* ---------- Footer ---------- */
.footer {
  background: var(--cream-deep);
  border-top: 1px solid rgba(31, 91, 60, 0.12);
  padding: 64px 0 28px;
}
.footer__grid {
  display: grid;
  grid-template-columns: 1.4fr 1fr 1fr 1fr;
  gap: 36px;
  margin-bottom: 48px;
}
.footer__brand p { color: var(--ink-soft); margin-top: 14px; font-size: 0.95rem; }
.footer__col { display: grid; gap: 10px; align-content: start; }
.footer__col h4 { font-size: 0.95rem; margin-bottom: 6px; }
.footer__col a {
  color: var(--ink-soft);
  font-size: 0.92rem;
  width: fit-content;
  transition: color 0.2s ease, translate 0.25s var(--ease-out);
}
.footer__col a:hover { color: var(--forest); translate: 3px 0; }
.footer__base {
  display: flex;
  justify-content: space-between;
  flex-wrap: wrap;
  gap: 10px;
  padding-top: 24px;
  border-top: 1px solid rgba(31, 91, 60, 0.1);
  color: var(--ink-soft);
  font-size: 0.85rem;
}

/* ==========================================================================
   RESPONSIVE
   ========================================================================== */
@media (max-width: 1020px) {
  .hero__title { font-size: 4.8rem; }
  .hero__statement { font-size: 3rem; }
  .hero__grid { grid-template-columns: 1fr; text-align: center; }
  .hero__copy { display: grid; justify-items: center; }
  .hero__sub { margin-inline: auto; }
  .hero__proof { justify-content: center; }
  .hero__device { margin-top: 20px; min-height: 600px; }
  .coach__grid { grid-template-columns: 1fr; gap: 44px; }
}

@media (max-width: 960px) {
  .bento-grid .card, .bento-grid .card--wide { grid-column: span 12; }
  .cards-grid, .quotes { grid-template-columns: repeat(2, 1fr); }
  .stats { grid-template-columns: repeat(2, 1fr); }
  .steps { grid-template-columns: 1fr; }
  .step__line { display: none; }
  .plans { grid-template-columns: 1fr; max-width: 460px; margin-inline: auto; }
  .plan--featured { transform: none; }
  .plan--featured:hover { transform: translateY(-6px); }
  .footer__grid { grid-template-columns: 1fr 1fr; }
}

@media (max-width: 720px) {
  .hero__title { font-size: 3.4rem; }
  .hero__statement { font-size: 2.15rem; }
  .section { padding: 72px 0; }
  .cards-grid, .quotes { grid-template-columns: 1fr; }
  .hero {
    min-height: 0;
    padding: calc(var(--nav-h) + 28px) 0 18px;
    overflow: hidden;
  }
  .hero__device {
    height: 156px;
    min-height: 156px;
    margin-top: 10px;
    overflow: hidden;
  }

  .nav__links {
    position: fixed;
    top: var(--nav-h);
    left: 0; right: 0;
    flex-direction: column;
    gap: 4px;
    background: rgba(247, 245, 236, 0.97);
    backdrop-filter: blur(16px);
    padding: 18px 6vw 26px;
    box-shadow: 0 24px 40px -24px rgba(23, 48, 31, 0.4);
    transform: translateY(-12px);
    opacity: 0;
    pointer-events: none;
    transition: transform 0.35s var(--ease-out), opacity 0.3s ease;
  }
  .nav__links.is-open { transform: none; opacity: 1; pointer-events: auto; }
  .nav__links a { padding: 12px 0; font-size: 1.05rem; }
  .nav__links .nav__mobile-auth { display: block; }
  .nav__burger { display: flex; }

  .hero__scroll { display: none; }
  .stats { grid-template-columns: 1fr 1fr; gap: 14px; }
  .footer__grid { grid-template-columns: 1fr; }
  .footer__base { justify-content: center; text-align: center; }
}

@media (max-width: 420px) {
  :root { --nav-h: 64px; }
  .container, .container--narrow { width: min(100% - 32px, 1160px); }
  .nav__inner { padding-inline: 0; }
  .nav__brand img { width: 32px; height: 32px; }
  .nav__brand span { font-size: 1rem; }
  .nav__desktop-signin { display: none; }
  .nav__actions .btn { min-height: 44px; padding-inline: 14px; }
  .hero { padding-top: calc(var(--nav-h) + 22px); }
  .hero__title { font-size: 3rem; margin-bottom: 14px; }
  .hero__statement { font-size: 1.9rem; margin-bottom: 16px; }
  .hero__sub { font-size: 1rem; line-height: 1.55; margin-bottom: 22px; }
  .hero__cta { width: 100%; gap: 10px; margin-bottom: 20px; }
  .hero__cta .btn { flex: 1 1 0; min-width: 0; min-height: 48px; padding-inline: 12px; }
  .hero__proof { justify-content: center; gap: 6px; }
  .hero__proof span { min-height: 30px; padding-inline: 9px; font-size: 0.78rem; }
  .hero__device { height: 132px; min-height: 132px; }
  .phone { width: 252px; border-radius: 38px; }
  .section { padding: 58px 0; }
  .section-head { margin-bottom: 32px; }
  .card, .plan, .quote { padding: 20px; }
  .stats { grid-template-columns: 1fr; }
  .contact-strip__actions .btn { width: 100%; min-height: 48px; }
  .auth-split__brand { padding: 28px 20px; min-height: 180px; }
  .auth-split__form { padding: 28px 20px; }
  .auth-card { width: 100%; }
  .field input, .field select, .field textarea { min-height: 48px; font-size: 16px; }
  .dl-page { padding-top: calc(var(--nav-h) + 32px); }
  .dl-page__head h1 { font-size: 2.35rem; }
}

/* Framer-inspired card hover lift */
.card {
  transition: transform 0.45s var(--ease-out), box-shadow 0.45s var(--ease-out);
}
.card:hover {
  transform: translateY(-6px);
  box-shadow: 0 20px 50px rgba(31, 91, 60, 0.12);
}

.stats .stat {
  transition: transform 0.5s var(--ease-spring);
}
.stats .stat:hover { transform: scale(1.03); }

.hero__device .phone {
  animation: phoneFloat 6s ease-in-out infinite;
}
@keyframes phoneFloat {
  0%, 100% { transform: translateY(0); }
  50% { transform: translateY(-10px); }
}

/* hCaptcha — bare widget, no wrapper box */
.hcaptcha-mount {
  margin: 8px 0 0; display: flex; flex-direction: column; align-items: flex-start;
  overflow: visible;
}
.hcaptcha-widget { min-height: 74px; transform-origin: left center; }
.hcaptcha-widget iframe { max-width: 100%; border: 0 !important; }
.hcaptcha-err { color: #c44; font-size: 12px; margin: 4px 0 0; }
#captchaMount { min-height: 0; overflow: visible; margin: 6px 0 0; }
#captchaMount[data-required="1"] { min-height: 74px; display: block !important; }
.auth-split__form #captchaMount + .err { margin-top: 8px !important; min-height: 18px; }
.auth-split__form button[type="submit"] { margin-top: 10px !important; }
.auth-split__form label[for="pass"] { margin-bottom: 6px; }

.admin-preview-bar {
  position: sticky; top: 0; z-index: 100;
  display: flex; align-items: center; justify-content: space-between; gap: 12px;
  padding: 12px 24px; background: linear-gradient(90deg, #1F5B3C, #2d7a52);
  color: #fff; font-size: 14px; font-weight: 500;
  box-shadow: 0 4px 20px rgba(31,91,60,.25);
}
.admin-preview-bar .btn { white-space: nowrap; }

/* Timed popup — Framer-style limited offer */
.ff-popup {
  position: fixed; inset: 0; z-index: 200;
  display: grid; place-items: center;
  background: rgba(15, 23, 18, 0.62);
  opacity: 0; pointer-events: none;
  transition: opacity 0.35s ease;
  padding: 24px;
}
.ff-popup.is-visible { opacity: 1; pointer-events: auto; }
.ff-popup__card {
  width: min(400px, 100%);
  background: #fff;
  border-radius: 28px;
  position: relative;
  box-shadow: 0 32px 90px rgba(0,0,0,.28);
  transform: translateY(16px) scale(0.98);
  transition: transform 0.45s var(--ease-out);
  overflow: hidden;
}
.ff-popup.is-visible .ff-popup__card { transform: none; }
.ff-popup__close {
  position: absolute; top: 12px; right: 14px; z-index: 2;
  border: 0; background: rgba(255,255,255,.85); font-size: 22px; line-height: 1;
  color: #666; cursor: pointer; width: 32px; height: 32px; border-radius: 50%;
}
.ff-popup__hero {
  height: 120px;
  background: linear-gradient(145deg, #1F5B3C 0%, #3d8f5a 55%, #7bc47a 100%);
  display: grid; place-items: center;
}
.ff-popup__hero-icon { font-size: 2.4rem; filter: drop-shadow(0 4px 12px rgba(0,0,0,.2)); }
.ff-popup__body { padding: 22px 26px 24px; }
.ff-popup__badge {
  display: inline-flex; align-items: center; gap: 7px;
  padding: 5px 12px 5px 8px; border-radius: 999px;
  background: rgba(31,91,60,.08); border: 1px solid rgba(31,91,60,.14);
  font-size: 11px; font-weight: 700; letter-spacing: 0.06em;
  text-transform: uppercase; color: var(--forest); margin-bottom: 12px;
}
.ff-popup__dot {
  width: 7px; height: 7px; border-radius: 50%;
  background: var(--leaf); box-shadow: 0 0 0 4px rgba(123,196,122,.25);
}
.ff-popup__card h2 {
  font-family: var(--font-display);
  color: var(--forest);
  font-size: 1.75rem;
  margin-bottom: 8px; line-height: 1.15;
}
.ff-popup__sub { color: var(--ink-soft); margin-bottom: 16px; line-height: 1.55; font-size: 0.95rem; }
.ff-popup__checks { list-style: none; margin: 0 0 20px; padding: 0; display: grid; gap: 8px; }
.ff-popup__checks li {
  display: flex; align-items: center; gap: 10px;
  color: var(--ink); font-size: 0.92rem; font-weight: 500;
}
.ff-popup__checks li span {
  width: 20px; height: 20px; border-radius: 50%;
  background: rgba(31,91,60,.1); color: var(--forest);
  display: grid; place-items: center; font-size: 11px; font-weight: 700; flex-shrink: 0;
}
.ff-popup__actions { display: grid; gap: 10px; }

/* Admin + member dashboards */
.dash-shell { min-height: 100vh; background: #0f1117; color: #f5f5f7; }
.dash-topbar {
  display: flex; align-items: center; justify-content: space-between; gap: 16px;
  padding: 18px 24px; border-bottom: 1px solid #2e2e36;
  background: rgba(22, 22, 27, 0.95);
  position: sticky; top: 0; z-index: 10;
}
.dash-topbar h1 { font-size: 1.1rem; margin: 0; color: #fff; }
.dash-topbar__actions { display: flex; gap: 10px; flex-wrap: wrap; }
.dash-layout { display: grid; grid-template-columns: 220px 1fr; min-height: calc(100vh - 65px); }
.dash-nav { border-right: 1px solid #2e2e36; padding: 20px 12px; background: #16161b; }
.dash-nav a {
  display: block; padding: 10px 14px; border-radius: 10px;
  color: #9a9aa2; font-size: 14px; margin-bottom: 4px;
}
.dash-nav a.is-active, .dash-nav a:hover { background: #1f1f26; color: #fff; }
.dash-main { padding: 24px; }
.kpi-grid { display: grid; grid-template-columns: repeat(4, 1fr); gap: 14px; margin-bottom: 18px; }
.kpi-grid--8 { grid-template-columns: repeat(4, 1fr); }
.kpi-grid--11 { grid-template-columns: repeat(4, 1fr); }
@media (max-width: 1100px) {
  .kpi-grid--8, .kpi-grid--11 { grid-template-columns: repeat(2, 1fr); }
}
@media (max-width: 560px) {
  .kpi-grid--11 { grid-template-columns: 1fr; }
}
.kpi-card {
  background: #1f1f26; border: 1px solid #2e2e36; border-radius: 14px; padding: 16px;
  min-height: 88px; display: flex; flex-direction: column; justify-content: center;
}
.kpi-card--sales { border-color: rgba(34, 197, 94, 0.25); background: linear-gradient(145deg, #1a1a22, #152318); }
.kpi-card--sales strong { color: #86efac; }
.kpi-card span { display: block; font-size: 12px; color: #9a9aa2; margin-bottom: 8px; }
.kpi-card strong { font-size: 1.6rem; color: #fff; }
.kpi-delta { display: block; font-size: 11px; font-style: normal; margin-top: 6px; font-weight: 600; }
.kpi-delta--up { color: #86efac; }
.kpi-delta--down { color: #fca5a5; }

/* Sellauth-style live dashboard box (dash look ref) */
.dash-live {
  background: #16161b; border: 1px solid #2e2e36; border-radius: 16px;
  box-shadow: 0 24px 48px rgba(0,0,0,.35); overflow: hidden; margin-bottom: 18px;
}
.dash-live__chrome {
  display: flex; align-items: center; gap: 8px; padding: 10px 14px;
  border-bottom: 1px solid #2e2e36; background: #16161b;
}
.dash-live__chrome span { width: 10px; height: 10px; border-radius: 50%; background: #ef4444; }
.dash-live__chrome span:nth-child(2) { background: #f59e0b; }
.dash-live__chrome span:nth-child(3) { background: #22c55e; }
.dash-live__url {
  flex: 1; margin-left: 8px; padding: 4px 12px; border-radius: 6px;
  background: #1f1f26; color: #9a9aa2; font-size: 11px; text-align: center;
}
.dash-live__body { padding: 18px; }
.dash-live__kpis {
  display: grid; grid-template-columns: repeat(4, 1fr); gap: 14px; margin-bottom: 14px;
}
.dash-live__kpis div {
  background: #1f1f26; border: 1px solid #2e2e36; border-radius: 12px; padding: 14px 16px;
}
.dash-live__kpis small { display: block; font-size: 11px; color: #9a9aa2; margin-bottom: 6px; }
.dash-live__kpis strong { font-size: 1.35rem; color: #f5f5f7; }
.dash-live__tag {
  display: inline-flex; align-items: center; gap: 3px; font-size: 11px; font-weight: 700;
  margin-top: 6px; color: #9a9aa2;
}
.dash-live__tag--up { color: #86efac; }
.dash-live__tag--up::before { content: '▲'; font-size: 9px; }
.dash-live__row {
  display: grid; grid-template-columns: 2fr 1fr; gap: 14px; margin-bottom: 14px;
}
@media (max-width: 900px) { .dash-live__row { grid-template-columns: 1fr; } }
.dash-live__chart {
  background: #1f1f26; border: 1px solid #2e2e36; border-radius: 12px; padding: 14px;
}
.dash-live__chart svg { width: 100%; height: 120px; display: block; }
.dash-live__chart-labels {
  display: flex; justify-content: space-between; margin-top: 8px;
  font-size: 11px; color: #9a9aa2;
}
.dash-live__rings {
  background: #1f1f26; border: 1px solid #2e2e36; border-radius: 12px;
  display: flex; justify-content: space-around; align-items: center; padding: 14px; flex-wrap: wrap; gap: 10px;
}
.dash-ring { text-align: center; }
.dash-ring svg { width: 74px; height: 74px; transform: rotate(-90deg); }
.dash-ring small { display: block; font-size: 11px; color: #9a9aa2; margin-top: 4px; }
.dash-live__feed { background: #1f1f26; border: 1px solid #2e2e36; border-radius: 12px; overflow: hidden; }
.dash-live__feed-row {
  display: grid; grid-template-columns: 1fr auto auto; gap: 12px; align-items: center;
  padding: 10px 16px; font-size: 13px; border-bottom: 1px solid #26262e;
}
.dash-live__feed-row:nth-child(even) { background: #26262e; }
.dash-live__feed-row span { color: #9a9aa2; }
.dash-live__feed-row strong { color: #f5f5f7; font-weight: 600; }
.dash-live__feed-row em { color: #9a9aa2; font-size: 11px; font-style: normal; }

/* Auth split layout (loginsignupp ref) */
.auth-split {
  min-height: 100vh; display: grid; grid-template-columns: 1fr 1fr;
}
@media (max-width: 900px) { .auth-split { grid-template-columns: 1fr; } }
.auth-split__brand {
  display: flex; flex-direction: column; justify-content: center;
  padding: 48px 56px;
  background: linear-gradient(145deg, var(--forest-deep) 0%, var(--forest) 45%, #2d7a52 100%);
  color: #fff; position: relative; overflow: hidden;
}
.auth-split__logo {
  position: relative;
  display: inline-flex;
  align-items: center;
  gap: 10px;
  width: max-content;
  margin-bottom: 28px;
  color: #fff;
  font-family: var(--font-display);
  font-size: 1.2rem;
  font-weight: 800;
}
.auth-split__logo img {
  width: 38px;
  height: 38px;
  border-radius: 10px;
  box-shadow: 0 12px 24px -16px rgba(0,0,0,.75);
}
@media (max-width: 900px) { .auth-split__brand { padding: 36px 28px; min-height: 220px; } }
.auth-split__logo {
  display: inline-block;
  font-family: var(--font-display);
  font-weight: 900;
  font-size: 2rem;
  letter-spacing: 0;
  color: #fff;
  margin-bottom: 1.25rem;
  position: relative;
}
.auth-split__brand .auth-split__logo {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  width: max-content;
  margin-bottom: 28px;
  font-size: 1.25rem;
}
.auth-split__brand .auth-split__logo img {
  width: 38px;
  height: 38px;
  flex: 0 0 38px;
  border-radius: 10px;
  object-fit: cover;
}
.auth-split__brand h1 {
  font-family: var(--font-display); font-size: clamp(1.8rem, 3vw, 2.4rem);
  margin-bottom: 14px; position: relative;
}
.auth-split__brand p { opacity: .88; line-height: 1.7; max-width: 380px; position: relative; }
.auth-split__brand ul { margin: 20px 0 0; padding: 0; list-style: none; position: relative; }
.auth-split__brand li {
  padding: 8px 0 8px 28px; position: relative; opacity: .92; font-size: 15px;
}
.auth-split__brand li::before {
  content: '✓'; position: absolute; left: 0; color: var(--leaf-light); font-weight: 700;
}
.auth-split__form {
  display: grid; place-items: center; padding: 40px 32px;
  background: var(--cream);
}
.auth-split__card {
  width: 100%; max-width: 420px;
  animation: auth-card-in 620ms var(--ease-out) 80ms both;
}
@keyframes auth-card-in {
  from { opacity: 0; transform: translateY(14px) scale(.985); }
}
.auth-split__brand > * {
  animation: auth-brand-in 680ms var(--ease-out) both;
}
.auth-split__brand > :nth-child(2) { animation-delay: 60ms; }
.auth-split__brand > :nth-child(3) { animation-delay: 110ms; }
.auth-split__brand > :nth-child(4) { animation-delay: 160ms; }
@keyframes auth-brand-in {
  from { opacity: 0; transform: translateX(-14px); }
}
@media (prefers-reduced-motion: reduce) {
  .auth-split__card,
  .auth-split__brand > * { animation: none; }
}
.auth-split__card h2 {
  font-family: var(--font-display); color: var(--forest);
  font-size: 1.75rem; margin: 0 0 8px;
}
.auth-split__card .sub { color: #5a6058; margin-bottom: 24px; line-height: 1.6; }
.auth-split__card label {
  display: block; font-size: 14px; color: #5a6058; margin: 14px 0 6px; font-weight: 500;
}
.auth-split__card input {
  width: 100%; padding: 14px 16px; border: 1px solid #e3e3e3; border-radius: 14px;
  font-size: 16px; box-sizing: border-box; background: #fff;
  transition: border-color .2s, box-shadow .2s;
}
.auth-split__card input:focus {
  outline: none; border-color: var(--forest); box-shadow: 0 0 0 3px rgba(31,91,60,.12);
}
.auth-split__links { margin-top: 22px; text-align: center; font-size: 14px; color: #5a6058; }
.auth-split__links a { color: var(--forest); font-weight: 600; }
.auth-provider-divider {
  display: flex;
  align-items: center;
  gap: 12px;
  margin: 20px 0 14px;
  color: #747a72;
  font-size: 12px;
  text-transform: uppercase;
}
.auth-provider-divider::before,
.auth-provider-divider::after { content: ''; height: 1px; flex: 1; background: #d9ddd5; }
.auth-provider-grid { display: grid; gap: 10px; }
.auth-provider-btn {
  width: 100%;
  min-height: 48px;
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 10px;
  border: 1px solid #cbd2c8;
  border-radius: 8px;
  background: rgba(255,255,255,.72);
  color: #20372a;
  font: 600 15px var(--font-body);
  cursor: pointer;
  transition: transform .18s ease, border-color .18s ease, background .18s ease, box-shadow .18s ease;
}
.auth-provider-btn span {
  display: grid;
  place-items: center;
  width: 24px;
  height: 24px;
  border-radius: 50%;
  background: #fff;
  border: 1px solid #dce1da;
  font-weight: 700;
}
.auth-provider-btn:hover { transform: translateY(-1px); border-color: #8ca594; background: #fff; box-shadow: 0 8px 20px rgba(31,91,60,.08); }
.auth-provider-btn:active { transform: translateY(0) scale(.99); }
.auth-provider-btn:focus-visible { outline: 3px solid rgba(31,91,60,.2); outline-offset: 2px; }
.auth-provider-btn:disabled { opacity: .55; cursor: wait; transform: none; }
.verify-page {
  min-height: 100vh;
  display: grid;
  place-items: center;
  padding: 24px;
  background: var(--cream);
}
.verify-card {
  width: min(100%, 440px);
  padding: 34px;
  border: 1px solid rgba(31,91,60,.14);
  border-radius: 8px;
  background: rgba(255,255,255,.76);
  box-shadow: 0 24px 60px rgba(31,91,60,.1);
}
.verify-card__brand { display: inline-block; margin-bottom: 24px; color: var(--forest); font: 900 1.2rem var(--font-display); }
.verify-card h1 { color: var(--forest-deep); font: 900 2rem var(--font-display); }
.verify-card__message { min-height: 48px; margin: 10px 0 18px; color: #6b473d; line-height: 1.55; }
.verify-card__message.is-success { color: var(--forest); }
.verify-form { display: grid; gap: 8px; }
.verify-form label { margin-top: 8px; color: #525d55; font-size: 14px; font-weight: 600; }
.verify-form input { min-height: 48px; padding: 12px 14px; border: 1px solid #cfd6cd; border-radius: 8px; background: #fff; font: inherit; }
.verify-form input:focus { outline: 3px solid rgba(31,91,60,.16); border-color: var(--forest); }
.verify-form .btn { margin-top: 12px; width: 100%; }
.verify-card__link { display: block; width: 100%; margin-top: 14px; padding: 6px; border: 0; background: none; color: var(--forest); text-align: center; font: 600 14px var(--font-body); cursor: pointer; }
.verify-card__link:disabled { opacity: .55; cursor: wait; }
@media (max-width: 480px) { .verify-card { padding: 26px 20px; } }
.auth-vpn-note {
  font-size: 12px; color: #888; margin-top: 10px; line-height: 1.5;
}

.dash-mockup { overflow: hidden; margin-bottom: 18px; }
.dash-mockup__chrome {
  display: flex; align-items: center; gap: 8px; padding: 10px 14px;
  border-bottom: 1px solid #2e2e36; background: #16161b;
}
.dash-mockup__chrome span {
  width: 10px; height: 10px; border-radius: 50%;
  background: #ef4444;
}
.dash-mockup__chrome span:nth-child(2) { background: #f59e0b; }
.dash-mockup__chrome span:nth-child(3) { background: #22c55e; }
.dash-mockup__url {
  flex: 1; margin-left: 8px; padding: 4px 12px; border-radius: 6px;
  background: #1f1f26; color: #9a9aa2; font-size: 11px; text-align: center;
}
.dash-mockup__body { padding: 18px; }
.dash-mockup__kpis {
  display: grid; grid-template-columns: repeat(4, 1fr); gap: 10px; margin-bottom: 14px;
}
.dash-mockup__kpis div {
  background: #1f1f26; border: 1px solid #2e2e36; border-radius: 12px; padding: 12px;
}
.dash-mockup__kpis small { display: block; font-size: 11px; color: #9a9aa2; margin-bottom: 4px; }
.dash-mockup__kpis strong { font-size: 1.2rem; color: #fff; }
.dash-mockup__chart {
  height: 80px; border-radius: 12px; border: 1px solid #2e2e36;
  background: linear-gradient(180deg, rgba(99,102,241,.25), transparent 70%),
              linear-gradient(90deg, #1f1f26, #1f1f26);
}
.dash-panel {
  background: #16161b; border: 1px solid #2e2e36; border-radius: 16px;
  overflow: hidden; margin-bottom: 18px;
}
.dash-panel__head {
  display: flex; align-items: center; justify-content: space-between;
  padding: 14px 18px; border-bottom: 1px solid #2e2e36;
}
.dash-panel__head h2 { margin: 0; font-size: 14px; color: #fff; }
.dash-table { width: 100%; border-collapse: collapse; font-size: 13px; }
.dash-table th, .dash-table td { padding: 12px 16px; text-align: left; border-bottom: 1px solid #26262e; }
.dash-table th { color: #9a9aa2; font-weight: 600; }
.dash-table tr:hover td { background: #1f1f26; }
.badge { display: inline-block; padding: 3px 8px; border-radius: 999px; font-size: 11px; font-weight: 600; }
.badge--admin { background: rgba(99,102,241,.15); color: #a5b4fc; }
.badge--user { background: rgba(34,197,94,.12); color: #86efac; }
.badge--locked { background: rgba(239,68,68,.12); color: #fca5a5; }
.btn--danger { background: #ef4444; color: #fff; border: 0; }
.btn--danger:hover { filter: brightness(1.05); }
.member-dash { max-width: 960px; margin: 0 auto; padding: 32px 24px 80px; }
.member-grid { display: grid; grid-template-columns: 1.2fr 1fr; gap: 18px; }
.member-card {
  background: #fff; border-radius: 20px; padding: 22px;
  box-shadow: 0 8px 32px rgba(31,91,60,.07);
}
.member-card h2 { margin: 0 0 12px; font-size: 1rem; color: var(--forest); }
.quick-actions { display: grid; grid-template-columns: repeat(2, 1fr); gap: 10px; }
.quick-actions a {
  padding: 14px; border-radius: 14px; background: var(--mint);
  font-size: 14px; font-weight: 600; color: var(--forest-deep);
}
@media (max-width: 900px) {
  .dash-layout { grid-template-columns: 1fr; }
  .dash-nav { display: flex; overflow-x: auto; border-right: 0; border-bottom: 1px solid #2e2e36; }
  .dash-nav a { white-space: nowrap; }
  .kpi-grid { grid-template-columns: repeat(2, 1fr); }
  .member-grid { grid-template-columns: 1fr; }
}


/* ==========================================================================
   2026-08 additions — contact, downloads, error page, support widget
   ========================================================================== */

/* ---------- Contact section ---------- */
.contact-grid {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 18px;
  margin-top: 34px;
}
.contact-card {
  display: block;
  text-align: left;
  background: var(--surface-1);
  border: 1px solid rgba(23, 48, 31, 0.10);
  border-radius: var(--radius);
  padding: 26px 22px;
  cursor: pointer;
  font: inherit;
  color: inherit;
  transition: transform 0.35s var(--ease-spring), box-shadow 0.35s var(--ease-out), border-color 0.2s;
  box-shadow: 0 1px 2px rgba(18, 52, 34, 0.05);
}
.contact-card:hover {
  transform: translateY(-4px);
  border-color: rgba(31, 91, 60, 0.35);
  box-shadow: 0 16px 34px rgba(18, 52, 34, 0.12);
}
.contact-card__icon { font-size: 1.7rem; display: inline-block; margin-bottom: 12px; }
.contact-card h3 { margin-bottom: 6px; }
.contact-card p { color: var(--ink-soft); font-size: 0.95rem; }
@media (max-width: 800px) { .contact-grid { grid-template-columns: 1fr; } }

/* ---------- Download page ---------- */
.dl-grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 20px;
  margin-top: 34px;
}
.dl-card {
  background: var(--surface-1);
  border: 1px solid rgba(23, 48, 31, 0.10);
  border-radius: var(--radius-lg);
  padding: 30px 26px;
  box-shadow: 0 1px 2px rgba(18, 52, 34, 0.05);
  transition: transform 0.35s var(--ease-spring), box-shadow 0.35s var(--ease-out);
}
.dl-card:hover { transform: translateY(-4px); box-shadow: 0 18px 40px rgba(18, 52, 34, 0.12); }
.dl-card__icon { font-size: 2.1rem; display: inline-block; margin-bottom: 10px; }
.dl-card__meta {
  font-size: 0.8rem; font-weight: 600; letter-spacing: 0.04em;
  color: var(--forest); text-transform: uppercase; margin: 2px 0 10px;
}
.dl-card p { color: var(--ink-soft); margin-bottom: 16px; }
.dl-card .btn { margin-top: 4px; }
.dl-card__hint { font-size: 0.83rem; margin-top: 12px !important; }
.dl-card__hint code { background: var(--mint); padding: 1px 7px; border-radius: 7px; }
.dl-note {
  margin-top: 30px;
  background: var(--mint);
  border: 1px solid rgba(31, 91, 60, 0.18);
  border-radius: var(--radius);
  padding: 24px 26px;
}
.dl-note h3 { margin-bottom: 10px; }
.dl-note ol { padding-left: 20px; color: var(--ink-soft); line-height: 1.9; }
.dl-note p { margin-top: 12px; color: var(--ink-soft); }
.dl-note a { color: var(--forest); font-weight: 600; text-decoration: underline; }
@media (max-width: 760px) { .dl-grid { grid-template-columns: 1fr; } }

/* ---------- Error page (404) ---------- */
.error-page {
  min-height: 100vh;
  display: grid;
  place-items: center;
  padding: 32px;
  background: var(--gradient-hero);
}
.error-page__card {
  text-align: center;
  background: rgba(255, 255, 255, 0.75);
  backdrop-filter: blur(18px);
  -webkit-backdrop-filter: blur(18px);
  border: 1px solid rgba(255, 255, 255, 0.8);
  border-radius: var(--radius-lg);
  box-shadow: 0 24px 60px rgba(18, 52, 34, 0.14);
  padding: 56px 44px;
  max-width: 560px;
}
.error-page__code {
  font-family: var(--font-display);
  font-size: 4.6rem;
  font-weight: 800;
  line-height: 1;
  color: var(--forest);
}
.error-page__card h1 { font-size: 1.7rem; margin: 10px 0 8px; }
.error-page__sub { color: var(--ink-soft); margin-bottom: 24px; }
.error-page__actions { display: flex; gap: 12px; justify-content: center; flex-wrap: wrap; }
.error-page__hint { margin-top: 20px; font-size: 0.9rem; color: var(--ink-soft); }
.error-page__hint a { color: var(--forest); font-weight: 600; text-decoration: underline; }

/* ---------- Support widget ---------- */
.sw-root { position: fixed; left: 22px; bottom: 22px; z-index: 999; font-family: var(--font-body); }
.sw-fab {
  width: 52px; height: 52px; border-radius: 14px;
  border: 1px solid rgba(255,253,248,0.14);
  cursor: pointer;
  background: var(--forest-deep);
  color: #fff;
  display: grid; place-items: center;
  box-shadow: 0 8px 22px rgba(14, 42, 28, 0.35);
  transition: transform 0.25s var(--ease-out), background 0.2s ease, box-shadow 0.25s ease;
}
.sw-fab:hover { background: var(--forest); transform: translateY(-2px); box-shadow: 0 10px 24px rgba(14, 42, 28, 0.4); }
.sw-fab.is-open { transform: scale(0.94); }
.sw-panel {
  position: absolute; left: 0; bottom: 72px;
  width: min(332px, calc(100vw - 32px));
  background: #fffdf8;
  border: 1px solid rgba(23, 48, 31, 0.12);
  border-radius: 16px;
  box-shadow: 0 24px 58px rgba(18, 52, 34, 0.22);
  overflow: hidden;
  animation: swPop 0.24s var(--ease-out);
}
@keyframes swPop { from { opacity: 0; transform: translateY(14px) scale(0.97); } to { opacity: 1; transform: none; } }
.sw-head {
  display: flex; align-items: center; gap: 12px;
  padding: 14px 15px;
  background: var(--forest);
  color: #fff;
}
.sw-head__face {
  width: 40px; height: 40px; border-radius: 50%;
  background: rgba(255, 255, 255, 0.2);
  display: grid; place-items: center; font-size: 1.25rem;
}
.sw-head strong { display: block; font-size: 0.98rem; }
.sw-head span { display: block; margin-top: 1px; font-size: 0.72rem; opacity: 0.8; }
.sw-close {
  margin-left: auto; border: none; background: rgba(255, 255, 255, 0.18);
  color: #fff; width: 30px; height: 30px; border-radius: 50%; cursor: pointer;
}
.sw-body { padding: 14px 15px 15px; max-height: min(68vh, 510px); overflow-y: auto; }
.sw-intro { font-weight: 600; margin-bottom: 12px; }
.sw-topic {
  display: block; width: 100%; text-align: left;
  background: var(--surface-2);
  border: 1px solid rgba(23, 48, 31, 0.10);
  border-radius: 14px;
  padding: 12px 14px;
  margin-bottom: 8px;
  cursor: pointer;
  font: inherit;
  transition: border-color 0.15s, transform 0.25s var(--ease-spring), background 0.15s;
}
.sw-topic:hover { border-color: var(--forest); background: var(--mint); transform: translateX(3px); }
.sw-topic strong { display: block; font-size: 0.93rem; color: var(--ink); }
.sw-topic span { font-size: 0.8rem; color: var(--ink-soft); }
.sw-back {
  border: none; background: none; color: var(--forest);
  font-weight: 600; cursor: pointer; margin-bottom: 12px; padding: 0; font-size: 0.9rem;
}
.sw-form__row { display: grid; grid-template-columns: minmax(0, .7fr) minmax(0, 1.3fr); gap: 8px; }
.sw-form__row > label:only-child { grid-column: 1 / -1; }
.sw-form label { display: block; min-width: 0; font-size: 0.79rem; font-weight: 600; color: var(--ink); margin-bottom: 10px; }
.sw-form input, .sw-form select, .sw-form textarea {
  display: block; width: 100%; margin-top: 5px;
  border: 1px solid rgba(23, 48, 31, 0.16);
  border-radius: 9px;
  background: #fff;
  padding: 9px 10px;
  font: inherit; font-size: 0.88rem;
  resize: vertical;
}
.sw-form input:focus, .sw-form select:focus, .sw-form textarea:focus { outline: 2px solid var(--leaf); border-color: transparent; }
.sw-form input[readonly] { background: var(--surface-2); color: var(--ink-soft); }
.sw-btn {
  display: inline-block; width: 100%;
  min-height: 44px; border: none; border-radius: 10px; cursor: pointer;
  padding: 10px 16px; font: inherit; font-weight: 600;
}
.sw-btn--primary { background: var(--forest); color: #fff; transition: background 0.15s, transform 0.25s var(--ease-spring); }
.sw-btn--primary:hover { background: var(--forest-deep); transform: translateY(-1px); }
.sw-btn--primary:disabled { opacity: 0.6; cursor: default; }
.sw-error { color: #b3402a; font-size: 0.85rem; margin-bottom: 10px; }
.sw-note { font-size: 0.78rem; color: var(--ink-soft); margin-top: 10px; }
.sw-done { text-align: center; padding: 12px 4px; }
.sw-done > svg { color: var(--forest); }
.sw-done h3 { margin: 8px 0 6px; }
.sw-done p { color: var(--ink-soft); font-size: 0.92rem; margin-bottom: 16px; }
@media (max-width: 560px) { .sw-root { left: 14px; bottom: 14px; } }
