/* The homepage and /download (web revamp, phase 1). Needs tokens.css and
   components.css first.

   Every section reads top to bottom with no script. The scroll story (the
   phone that stays while the steps go by, the money diagram that draws
   itself, the stacked crew cards) only switches on with html.tz-motion,
   which site.js sets unless the visitor prefers reduced motion or has
   Save-Data on. Only transform and opacity animate. */

/* ---------- hero ---------- */
.tz-hero {
  position: relative; overflow: hidden;
  background: linear-gradient(180deg, var(--tz-f-top) 0%, var(--tz-f-bg) 62%);
  padding-top: clamp(28px, 5vw, 72px);
}
.tz-hero-grid { display: grid; gap: 40px; align-items: end; }
.tz-hero-copy { display: grid; gap: 18px; align-content: start; padding-bottom: clamp(8px, 3vw, 64px); }
.tz-hero h1 { font-size: clamp(40px, 5.3vw, 70px); line-height: 1.02; letter-spacing: -.03em; font-weight: 800; color: var(--tz-f-ink); }
.tz-hero h1 em { font-style: normal; color: var(--tz-f-accent); display: block; }
.tz-hero .tz-lede { font-size: clamp(18px, 1.6vw, 21px); }
.tz-hero-cta { display: flex; flex-wrap: wrap; align-items: center; gap: 20px 28px; margin-top: 10px; }
.tz-reassure {
  display: flex; gap: 10px; align-items: flex-start; max-width: 54ch;
  font-size: 14.5px; line-height: 1.5; color: var(--tz-f-ink-2);
}
.tz-reassure svg { flex: none; margin-top: 1px; color: var(--tz-f-accent); }

.tz-hero-art { position: relative; height: clamp(400px, 104vw, 560px); margin-inline: -4px; }
.tz-hero-video {
  position: absolute; top: 0; right: 0; width: 88%; aspect-ratio: 5 / 4;
  border-radius: var(--tz-r-xl); overflow: hidden; background: var(--tz-f-surface);
  box-shadow: 0 24px 60px rgba(0, 0, 0, .35);
}
.tz-hero-video video, .tz-hero-video img { width: 100%; height: 100%; object-fit: cover; object-position: 40% 50%; display: block; }
.tz-hero-video::after { /* keeps the chips and caption readable on any frame */
  content: ""; position: absolute; inset: 0; pointer-events: none;
  background: linear-gradient(180deg, rgba(10, 42, 30, 0) 55%, rgba(10, 42, 30, .55));
}
.tz-video-toggle {
  position: absolute; right: 14px; top: 14px; z-index: 2;
  width: 40px; height: 40px; border-radius: 50%; border: 1px solid rgba(246, 241, 228, .35);
  background: rgba(10, 42, 30, .7); color: var(--tz-f-ink); cursor: pointer; display: grid; place-items: center;
}
.tz-video-toggle span { width: 12px; height: 14px; border-left: 4px solid currentColor; border-right: 4px solid currentColor; }
.tz-video-toggle.is-paused span { width: 0; height: 0; border: solid transparent; border-width: 8px 0 8px 13px; border-left-color: currentColor; margin-left: 4px; }
.tz-video-toggle:focus-visible { outline: 3px solid var(--tz-f-focus); outline-offset: 2px; }
.tz-hero-tile {
  position: absolute; left: 0; bottom: 18%; width: 34%; margin: 0; z-index: 2;
  border-radius: var(--tz-r-lg); overflow: hidden; border: 4px solid var(--tz-f-bg);
  box-shadow: 0 18px 40px rgba(0, 0, 0, .35); aspect-ratio: 4 / 5;
}
.tz-hero-tile img { width: 100%; height: 100%; object-fit: cover; }
.tz-hero-phone {
  position: absolute; z-index: 3; left: 31%; bottom: -24%;
  width: 46%; max-width: 290px;
}
.tz-hero-phone .tz-phone { border-radius: 40px 40px 34px 34px; }
.tz-chip { position: absolute; z-index: 4; }
.tz-chip-a { left: -14%; top: 22%; }
.tz-chip-b { right: -30%; top: 50%; }
.tz-hero-caption {
  position: absolute; left: 0; bottom: 14px; z-index: 4; margin: 0; max-width: 29%;
  font-size: 12.5px; line-height: 1.4; color: var(--tz-f-ink-2);
}
@media (max-width: 479.98px) {
  .tz-chip { font-size: 12px; padding: 8px 10px 8px 8px; }
  .tz-chip .tz-chip-dot { width: 26px; height: 26px; font-size: 11px; }
  .tz-chip-a { left: -30%; top: 14%; }
  .tz-chip-b { right: -44%; top: 46%; }
  .tz-hero-caption { display: none; }
}
@media (min-width: 600px) and (max-width: 1023.98px) {
  .tz-hero-art, .tz-dl-art { width: 100%; max-width: 560px; margin-inline: auto; height: 520px; }
}
@media (min-width: 1024px) {
  .tz-hero-grid { grid-template-columns: 1.12fr .88fr; gap: clamp(32px, 4vw, 56px); }
  .tz-hero-art { height: clamp(520px, 42vw, 600px); }
  .tz-hero-copy { padding-bottom: clamp(48px, 5vw, 80px); }
  .tz-hero .tz-qr { max-width: 250px; }
  .tz-hero .tz-qr .tz-qr-code { width: 76px; height: 76px; }
}

/* ---------- proof strip ---------- */
.tz-proof { background: var(--tz-bg); border-bottom: 1px solid var(--tz-line); }
.tz-proof-list {
  list-style: none; display: flex; flex-wrap: wrap; justify-content: center; gap: 12px 36px;
  padding-block: 20px; margin: 0 auto;
}
.tz-proof-list li { display: inline-flex; align-items: center; gap: 9px; font: 600 15px/1.3 var(--tz-font-text); color: var(--tz-ink-2); }
.tz-proof-list b { color: var(--tz-ink); font-weight: 700; }
.tz-proof-list svg { color: var(--tz-g-brand-text); flex: none; }
@media (max-width: 767.98px) {
  .tz-proof-list { justify-content: flex-start; display: grid; grid-template-columns: 1fr 1fr; gap: 14px 16px; }
  .tz-proof-list { padding-block: 18px; }
  .tz-proof-list li { font-size: 13.5px; align-items: flex-start; }
}

/* ---------- 4. how it works ---------- */
.tz-steps-stage { display: none; }
.tz-steps-list { list-style: none; display: grid; gap: 20px; }
.tz-step {
  position: relative; display: grid; gap: 10px; align-content: start;
  background: var(--tz-surface); border: 1px solid var(--tz-line); border-radius: var(--tz-r-lg);
  padding: 24px; box-shadow: var(--tz-shadow);
}
.tz-step-n {
  width: 36px; height: 36px; border-radius: 50%; display: grid; place-items: center;
  background: var(--tz-gold-500); color: var(--tz-on-gold); font: 800 16px/1 var(--tz-font-display);
}
.tz-step p { color: var(--tz-ink-2); }
.tz-step-shot { margin: 10px 0 0; width: min(230px, 70%); justify-self: center; }
.tz-step-shot .tz-phone { border-width: 7px; border-radius: 30px; }
.tz-steps-more { margin-top: 24px; }
@media (min-width: 768px) and (max-width: 1023.98px) {
  .tz-steps-list { grid-template-columns: repeat(3, 1fr); }
}
@media (min-width: 1024px) {
  .tz-steps-list { grid-template-columns: repeat(3, 1fr); gap: 24px; }
  .tz-step-shot { width: min(240px, 80%); }
}
/* the scroll story, on wide screens with motion: the phone stays, the steps scroll past
   (640px tall and up; shorter windows get the cards) */
@media (min-width: 1024px) and (min-height: 640px) {
  .tz-motion .tz-steps-grid { display: grid; grid-template-columns: 1fr 1fr; gap: clamp(32px, 5vw, 80px); }
  .tz-motion .tz-steps-stage { display: block; position: relative; }
  .tz-motion .tz-steps-pin {
    position: sticky; top: calc(64px + 24px);
    height: calc(100vh - 64px - 48px); max-height: 760px;
    display: grid; place-items: center;
  }
  .tz-motion .tz-steps-photo {
    position: absolute; left: 0; top: 14%; width: 70%; margin: 0;
    aspect-ratio: 4 / 3; border-radius: var(--tz-r-xl); overflow: hidden; box-shadow: var(--tz-shadow-lg);
  }
  .tz-motion .tz-steps-photo img { width: 100%; height: 100%; object-fit: cover; }
  .tz-motion .tz-steps-phone {
    position: relative; z-index: 2; margin-left: 30%;
    width: min(290px, calc((100vh - 200px) * .46));
  }
  .tz-motion .tz-steps-phone img { opacity: 0; transform: scale(1.04); transition: opacity .5s var(--tz-ease), transform .7s var(--tz-ease); }
  .tz-motion .tz-steps-phone img.is-on { opacity: 1; transform: none; }
  .tz-motion .tz-steps-dots { position: absolute; bottom: 0; left: 30%; width: min(290px, calc((100vh - 200px) * .46)); display: flex; justify-content: center; gap: 16px; list-style: none; z-index: 2; }
  .tz-motion .tz-steps-dots li { width: 8px; height: 8px; border-radius: 99px; background: var(--tz-line-strong); transition: transform .3s var(--tz-ease), background-color .3s; }
  .tz-motion .tz-steps-dots li.is-on { background: var(--tz-g-brand-text); transform: scaleX(2.6); }
  .tz-motion .tz-steps-list { grid-template-columns: 1fr; gap: 0; }
  .tz-motion .tz-step {
    min-height: 72vh; align-content: center; background: none; border: 0; box-shadow: none; padding: 0 0 0 4px;
    opacity: .35; transition: opacity .4s var(--tz-ease);
  }
  .tz-motion .tz-step:last-child { min-height: 62vh; }
  .tz-motion .tz-step.is-on { opacity: 1; }
  .tz-motion .tz-step h3 { font-size: clamp(26px, 2.6vw, 34px); letter-spacing: -.02em; line-height: 1.15; max-width: 18ch; }
  .tz-motion .tz-step p { font-size: 18px; max-width: 42ch; }
  .tz-motion .tz-step-shot { /* read by screen readers in step order; the stage shows it */
    position: absolute; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); margin: 0;
  }
}

/* ---------- 6. daily, weekly, monthly ---------- */
.tz-stack { display: grid; gap: 24px; }
.tz-stack-card {
  display: grid; background: var(--tz-surface); border: 1px solid var(--tz-line);
  border-radius: 28px; overflow: hidden; box-shadow: var(--tz-shadow);
}
.tz-stack-body { padding: clamp(24px, 4vw, 44px); display: grid; gap: 14px; align-content: center; }
.tz-stack-body h3 { font-size: clamp(22px, 2.4vw, 30px); letter-spacing: -.02em; line-height: 1.15; }
.tz-stack-photo { margin: 0; min-height: 220px; position: relative; order: -1; }
.tz-stack-photo img { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; }
@media (min-width: 768px) {
  .tz-stack-card { grid-template-columns: 1.25fr 1fr; min-height: 380px; }
  .tz-stack-photo { order: 0; min-height: 0; }
}
@media (min-width: 768px) and (min-height: 640px) {
  .tz-motion .tz-stack { gap: 14vh; padding-bottom: 4vh; }
  .tz-motion .tz-stack-card {
    position: sticky; top: calc(var(--tz-stick) + 28px + var(--i) * 22px);
    box-shadow: 0 -2px 6px rgba(20, 32, 26, .04), 0 24px 56px rgba(20, 32, 26, .14);
    transform-origin: 50% 0;
  }
}

/* ---------- 7. who saves with a crew ---------- */
.tz-who-grid { display: grid; gap: 16px; }
.tz-who-tile {
  position: relative; margin: 0; border-radius: 24px; overflow: hidden; aspect-ratio: 3 / 2;
  background: var(--tz-surface-2); isolation: isolate;
}
.tz-who-img { position: absolute; inset: -14px 0; }
.tz-who-img img { width: 100%; height: 100%; object-fit: cover; }
.tz-who-tile figcaption {
  position: absolute; left: 0; right: 0; bottom: 0; z-index: 1;
  padding: 48px 20px 18px; display: grid; gap: 2px;
  background: linear-gradient(180deg, rgba(10, 42, 30, 0), rgba(10, 42, 30, .88));
  color: #fff;
}
.tz-who-tile figcaption b { font: 800 19px/1.2 var(--tz-font-display); letter-spacing: -.01em; }
.tz-who-tile figcaption span { font-size: 15px; color: #E9EFE9; }
@media (min-width: 600px) {
  .tz-who-grid { grid-template-columns: 1fr 1fr; }
  .tz-who-tile:first-child { grid-row: span 2; aspect-ratio: auto; }
}
@media (min-width: 1024px) {
  .tz-who-grid { grid-template-columns: 1.05fr 1fr 1fr; grid-auto-rows: 260px; }
  .tz-who-tile { aspect-ratio: auto; }
  .tz-who-tile:last-child { grid-column: span 2; }
}

/* ---------- 8. rules first, a record you control ---------- */
.tz-feature-grid { display: grid; gap: 20px; }
.tz-feature {
  display: grid; grid-template-columns: 1fr; overflow: hidden;
  background: var(--tz-surface); border: 1px solid var(--tz-line); border-radius: 28px; box-shadow: var(--tz-shadow);
}
.tz-feature-body { padding: clamp(24px, 3.4vw, 36px); display: grid; gap: 12px; align-content: start; }
.tz-feature-body p { color: var(--tz-ink-2); }
.tz-feature-shot {
  background: var(--tz-g-900); display: flex; justify-content: center; align-items: flex-start;
  padding-top: 28px; height: 300px; overflow: hidden;
}
.tz-feature-shot .tz-phone { width: 210px; flex: none; border-width: 7px; border-radius: 30px; }
@media (min-width: 600px) {
  .tz-feature { grid-template-columns: 1.3fr 1fr; }
  .tz-feature-shot { height: auto; min-height: 340px; position: relative; }
  .tz-feature-shot .tz-phone { position: absolute; top: 28px; width: 76%; max-width: 220px; }
}
@media (min-width: 1024px) { .tz-feature-grid { grid-template-columns: 1fr 1fr; } }

/* ---------- 9. groups ---------- */
.tz-groups-panel {
  display: grid; border-radius: var(--tz-r-xl); overflow: hidden;
  background: linear-gradient(135deg, var(--tz-f-top), var(--tz-f-bg));
}
.tz-groups-body { padding: clamp(28px, 5vw, 56px); display: grid; gap: 16px; justify-items: start; align-content: center; }
.tz-groups-body h2 { color: var(--tz-f-ink); }
.tz-groups-photo { margin: 0; position: relative; min-height: 240px; overflow: hidden; }
.tz-groups-photo img { position: absolute; inset: -12px 0; width: 100%; height: calc(100% + 24px); object-fit: cover; }
@media (min-width: 1024px) { .tz-groups-panel { grid-template-columns: 1.2fr 1fr; } }

/* ---------- 10. fees in one line ---------- */
.tz-fees { border-top: 1px solid var(--tz-line); border-bottom: 1px solid var(--tz-line); background: var(--tz-surface); }
.tz-fees-inner { padding-block: clamp(48px, 7vw, 88px); text-align: center; display: grid; gap: 16px; justify-items: center; }
.tz-fees-line {
  font: 800 clamp(26px, 4.2vw, 50px)/1.15 var(--tz-font-display); letter-spacing: -.025em; color: var(--tz-ink);
  max-width: 26ch;
}
.tz-fees-line span { white-space: nowrap; }
.tz-fees-line b { color: var(--tz-g-brand-text); font-family: var(--tz-font-display); font-weight: 800; }
.tz-fees .tz-note { max-width: 62ch; font-size: 15px; }

/* ---------- 11. questions ---------- */
@media (min-width: 1024px) {
  .tz-faq-wrap { display: grid; grid-template-columns: .8fr 1.2fr; gap: 64px; align-items: start; }
  .tz-faq-wrap .tz-sec-head { position: sticky; top: 104px; }
}

/* ---------- /download ---------- */
.tz-dl-hero { padding-block: clamp(40px, 6vw, 88px) 0; overflow: hidden; background: linear-gradient(180deg, var(--tz-f-top), var(--tz-f-bg)); }
.tz-dl-grid { display: grid; gap: 40px; align-items: end; }
.tz-dl-copy { display: grid; gap: 18px; justify-items: start; padding-bottom: clamp(24px, 5vw, 96px); }
.tz-dl-copy h1 { color: var(--tz-f-ink); }
.tz-dl-art { position: relative; height: clamp(340px, 90vw, 520px); }
.tz-need { display: grid; gap: 16px; }
.tz-need-list { list-style: none; display: grid; gap: 14px; }
.tz-need-list li { display: grid; grid-template-columns: 44px 1fr; gap: 14px; align-items: start; }
.tz-need-list .tz-need-icon {
  width: 44px; height: 44px; border-radius: 12px; display: grid; place-items: center;
  background: var(--tz-g-50); color: var(--tz-g-brand-text);
}
.tz-need-list b { display: block; font: 700 18px/1.3 var(--tz-font-display); color: var(--tz-ink); }
.tz-need-list span { color: var(--tz-ink-2); }
.tz-dl-cols { display: grid; gap: 24px; }
.tz .tz-dl-web-h { font-size: 24px; }
@media (min-width: 1024px) {
  .tz-dl-grid { grid-template-columns: 1.05fr .95fr; gap: 64px; }
  .tz-dl-art { height: 560px; }
  .tz-dl-cols { grid-template-columns: 1.2fr 1fr; gap: 32px; align-items: start; }
}
