:root {
  --ink: #182723;
  --muted: #667a73;
  --canvas: #f5faf7;
  --panel-solid: #ffffff;
  --line: rgba(19, 82, 56, 0.14);
  --acid: #25d366;
  --aqua: #128c7e;
  --danger: #d94d4d;
  --shadow: 0 20px 56px rgba(23, 77, 54, 0.11);
}

html { background: var(--canvas); }
body {
  color: var(--ink);
  background:
    radial-gradient(circle at 94% -6%, rgba(37, 211, 102, 0.18), transparent 30rem),
    radial-gradient(circle at -5% 52%, rgba(18, 140, 126, 0.1), transparent 31rem),
    var(--canvas);
}
body::before { opacity: 0.2; background-image: linear-gradient(rgba(10, 75, 48, 0.03) 1px, transparent 1px); }
.ambient-grid { opacity: 0.8; background-image: linear-gradient(rgba(18, 140, 126, 0.075) 1px, transparent 1px), linear-gradient(90deg, rgba(18, 140, 126, 0.075) 1px, transparent 1px); }
.ambient-scan { opacity: 0.09; }

.site-header { border-color: var(--line); }
.brand, .brand-name { color: var(--ink); }
.brand-name span { color: #128c7e; }
.brand-logo { overflow: visible; box-shadow: none; }
.site-nav a { color: var(--muted); }
.site-nav a:hover { color: #128c7e; }
.pill { color: #087b48; border-color: rgba(37, 211, 102, 0.3); background: rgba(37, 211, 102, 0.11); }
.pill i, .chip-online i { background: #25d366; }
.hero-copy h1, .section h2, .step h3, .feature-card h3, details summary, .target-card h2, .sync-card h2, .done-card h2, .qr-instructions h2 { color: var(--ink); }
.accent { color: #128c7e; }
.lead, .trust-row, .muted, .hint, .qr-instructions ol { color: var(--muted); }
.btn-primary { color: #fff; background: #128c7e; box-shadow: 5px 5px 0 rgba(37, 211, 102, 0.35); }
.btn-primary:hover { box-shadow: 8px 8px 0 rgba(37, 211, 102, 0.26); }
.btn-ghost { color: #128c7e; border-color: rgba(18, 140, 126, 0.35); background: rgba(255,255,255,0.68); }
.btn-ghost:hover { color: #075a50; background: rgba(37, 211, 102, 0.1); }
.dot { background: #25d366; }
.hero-assurances {
  display: flex;
  flex-wrap: wrap;
  gap: 8px 18px;
  max-width: 610px;
  margin-top: 22px;
  color: #527269;
  font: 500 0.68rem var(--mono);
  letter-spacing: 0.015em;
}
.hero-assurances span { display: inline-flex; align-items: center; gap: 7px; }
.hero-assurances span::before { content: "✓"; color: #128c7e; font-weight: 700; }

.hero-card { border-color: rgba(18, 140, 126, 0.28); background: linear-gradient(145deg, #ffffff, #eaf7f0); box-shadow: var(--shadow), inset 0 1px #fff; }
.hero-card::before { color: #128c7e; background: var(--canvas); }
.hero-card-header, .hero-card-footer { color: var(--muted); }
.chip { border-color: var(--line); background: rgba(255,255,255,0.7); color: var(--muted); }
.chip-online { color: #087b48; border-color: rgba(37, 211, 102, 0.32); background: rgba(37, 211, 102, 0.1); }
.chip-done { color: #128c7e; border-color: rgba(18, 140, 126, 0.22); background: rgba(18, 140, 126, 0.08); }
.session-preview-title {
  display: flex;
  align-items: flex-end;
  justify-content: space-between;
  gap: 12px;
  margin: 20px 0 12px;
}
.session-preview-title div { display: grid; gap: 3px; }
.session-preview-title span,
.session-preview-count {
  color: var(--muted);
  font: 500 0.62rem var(--mono);
  letter-spacing: 0.04em;
}
.session-preview-title strong { color: var(--ink); font-size: 0.92rem; }
.session-preview-count { color: #128c7e; white-space: nowrap; }
.hero-gallery { grid-template-columns: repeat(3, 1fr); }
.gallery-item {
  position: relative;
  min-height: 104px;
  overflow: hidden;
  border-color: rgba(18, 140, 126, 0.12);
  background: #edf6f1;
}
.preview-label {
  position: absolute;
  z-index: 3;
  top: 7px;
  left: 7px;
  padding: 3px 5px;
  border-radius: 3px;
  color: #fff;
  background: rgba(16, 45, 35, 0.62);
  font: 500 0.55rem var(--mono);
  letter-spacing: 0.04em;
  text-transform: uppercase;
}
.preview-photo { background: linear-gradient(145deg, #b9e8ee 0%, #d6f5e5 48%, #6ac29d 49%, #176d5d 100%); }
.preview-photo-alt { background: linear-gradient(145deg, #f8d7a8 0%, #f1b99f 42%, #a96777 43%, #4b416a 100%); }
.preview-sun { position: absolute; top: 22px; right: 17px; width: 22px; height: 22px; border-radius: 50%; background: rgba(255,255,255,.86); box-shadow: 0 0 18px rgba(255,255,255,.6); }
.preview-hill { position: absolute; display: block; bottom: -28px; border-radius: 50% 50% 0 0; transform: rotate(-8deg); }
.preview-hill-back { left: -11px; width: 118px; height: 73px; background: rgba(30,126,105,.68); }
.preview-hill-front { right: -20px; width: 130px; height: 81px; background: rgba(10,91,75,.78); transform: rotate(8deg); }
.preview-video { display: grid; place-items: center; background: linear-gradient(135deg, #1a776d, #0b3f44 56%, #183354); }
.preview-video::after { content: ""; position: absolute; inset: 0; background: linear-gradient(130deg, transparent 35%, rgba(255,255,255,.15) 36%, transparent 54%); }
.preview-play { position: relative; z-index: 2; display: grid; place-items: center; width: 38px; height: 38px; padding-left: 2px; border: 1px solid rgba(255,255,255,.72); border-radius: 50%; color: #fff; background: rgba(255,255,255,.16); font-size: 0.88rem; backdrop-filter: blur(4px); }
.preview-duration { position: absolute; right: 7px; bottom: 7px; z-index: 2; color: #fff; font: 500 .58rem var(--mono); }
.preview-audio { display: flex; flex-direction: column; justify-content: center; gap: 8px; padding: 28px 12px 13px; background: linear-gradient(135deg, #d7f8e8, #b2ede3); }
.preview-audio-icon { color: #128c7e; font-size: 1.45rem; line-height: 1; }
.preview-wave { display: flex; align-items: center; height: 22px; gap: 3px; }
.preview-wave i { width: 3px; border-radius: 4px; background: #128c7e; }
.preview-wave i:nth-child(1), .preview-wave i:nth-child(9) { height: 5px; }
.preview-wave i:nth-child(2), .preview-wave i:nth-child(8) { height: 10px; }
.preview-wave i:nth-child(3), .preview-wave i:nth-child(7) { height: 15px; }
.preview-wave i:nth-child(4), .preview-wave i:nth-child(6) { height: 8px; }
.preview-wave i:nth-child(5) { height: 22px; }
.preview-audio .preview-duration { color: #527269; }
.preview-document { display: grid; place-items: center; background: linear-gradient(145deg, #f8f9fa, #e4ebed); }
.preview-document-icon { display: grid; place-items: center; width: 42px; height: 51px; border: 1px solid #d2dfe1; border-radius: 4px; color: #d34f4f; background: #fff; box-shadow: 0 5px 12px rgba(23,77,54,.08); font: 600 .65rem var(--mono); }
.preview-more { display: grid; place-content: center; gap: 5px; color: #128c7e; background: rgba(18,140,126,.08); text-align: center; }
.preview-more span { font: 700 1.3rem var(--mono); }
.preview-more small { color: var(--muted); font-size: .6rem; }

@media (max-width: 480px) {
  .gallery-item { min-height: 88px; }
  .session-preview-title { margin-top: 16px; }
}

.section h2::before { color: #25d366; }
.step, .feature-card, details { border-color: var(--line); background: rgba(255,255,255,0.74); }
.step:hover, .feature-card:hover { border-color: rgba(18, 140, 126, 0.36); background: #fff; }
.step-num, .feature-icon { color: #087b48; background: rgba(37,211,102,0.12); }
.step p, .feature-card p, details p { color: var(--muted); }

.stepper { border-color: var(--line); background: rgba(255,255,255,0.68); }
.stepper-item { border-color: var(--line); }
.stepper-item.done { color: #128c7e; background: rgba(37,211,102,0.08); }
.stepper-item.done .stepper-num, .stepper-item.current .stepper-num { color: #fff; background: #128c7e; }
.stepper-item.current { color: #087b48; box-shadow: inset 0 -2px #25d366; }
.step-panel { border-color: rgba(18, 140, 126, 0.18); background: rgba(255,255,255,0.77); box-shadow: var(--shadow); }
.phone-input { background: #fff; border-color: var(--line); }
.phone-input:focus-within { border-color: #25d366; box-shadow: 0 0 0 3px rgba(37,211,102,0.12); }
.phone-input .prefix { color: #087b48; border-color: var(--line); background: rgba(37,211,102,0.1); }
.phone-input input { color: var(--ink); }
.flow-assurance {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 8px;
  margin-top: 22px;
  padding-top: 17px;
  border-top: 1px solid var(--line);
  color: var(--muted);
  font: 500 0.64rem var(--mono);
  letter-spacing: 0.025em;
  line-height: 1.45;
}
.qr-canvas-wrap { border-color: var(--line); box-shadow: 0 0 0 8px rgba(37,211,102,0.07); }
.qr-connection-state,
.sync-live-status {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  margin: 18px 0 0;
  color: #128c7e;
  font: 500 0.7rem var(--mono);
  letter-spacing: 0.02em;
}
.qr-connection-state span,
.sync-live-status span {
  width: 7px;
  height: 7px;
  border-radius: 50%;
  background: #25d366;
  box-shadow: 0 0 0 4px rgba(37,211,102,0.13);
  animation: status-pulse 1.8s ease-in-out infinite;
}
.sync-progress {
  width: min(390px, 100%);
  height: 5px;
  margin: 18px auto 2px;
  overflow: hidden;
  border-radius: 99px;
  background: rgba(18,140,126,0.11);
}
.sync-progress span {
  display: block;
  width: 18%;
  height: 100%;
  border-radius: inherit;
  background: linear-gradient(90deg, #25d366, #128c7e);
  box-shadow: 0 0 12px rgba(37,211,102,0.38);
  transition: width 0.65s cubic-bezier(.22,1,.36,1);
}
.counter-num { color: #128c7e; }

.gallery .media-thumb, .done-gallery .media-thumb { border-color: var(--line); background: rgba(255,255,255,0.78); }
.gallery .media-thumb:hover, .done-gallery .media-thumb:hover { border-color: rgba(18,140,126,0.4); }
.gallery .media-thumb .media-preview { background: #edf6f1; }
.gallery .media-thumb .badge, .done-gallery .media-thumb .badge { color: #fff; background: #128c7e; }
.audio-chip { color: #128c7e; }
.media-time, .media-file, .audio-chip span, .counter-label { color: var(--muted); }
.done-icon { color: #087b48; background: rgba(37,211,102,0.14); }
.gallery-toolbar {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 18px;
  margin-top: 34px;
  padding: 14px 0;
  border-top: 1px solid var(--line);
  border-bottom: 1px solid var(--line);
  text-align: left;
}
.gallery-toolbar > span {
  flex: 0 0 auto;
  color: var(--ink);
  font: 600 0.7rem var(--mono);
  letter-spacing: 0.065em;
  text-transform: uppercase;
}
.gallery-filters { display: flex; flex-wrap: wrap; justify-content: flex-end; gap: 6px; }
.filter-chip {
  min-height: 30px;
  padding: 5px 9px;
  border: 1px solid var(--line);
  border-radius: 99px;
  color: var(--muted);
  background: #fff;
  font: 500 0.66rem var(--mono);
  cursor: pointer;
  transition: color .2s, border-color .2s, background .2s, transform .2s;
}
.filter-chip:hover { border-color: rgba(18,140,126,.42); color: #128c7e; transform: translateY(-1px); }
.filter-chip.active { color: #fff; border-color: #128c7e; background: #128c7e; box-shadow: 0 3px 9px rgba(18,140,126,.17); }
.gallery-empty {
  grid-column: 1 / -1;
  margin: 0;
  padding: 36px 16px;
  border: 1px dashed rgba(18,140,126,.28);
  border-radius: 5px;
  color: var(--muted);
  font-size: .9rem;
}

.media-viewer-backdrop { background: rgba(18, 44, 35, 0.65); }
.media-viewer-dialog { border-color: rgba(18,140,126,0.25); background: #fff; }
.viewer-close { color: var(--ink); border-color: var(--line); background: #fff; }
.media-viewer-stage { background: #eff8f3; }
.media-viewer-footer { background: #fff; }
.audio-player { border-color: rgba(18,140,126,0.25); background: rgba(255,255,255,0.95); }
.audio-player-head strong { color: #128c7e; }
.site-footer { color: var(--muted); border-color: var(--line); }
.toast { color: #fff; border-color: rgba(37,211,102,0.4); background: #128c7e; }

#scroll-progress {
  position: fixed;
  top: 0;
  left: 0;
  z-index: 100;
  width: 100%;
  height: 3px;
  transform: scaleX(0);
  transform-origin: 0 50%;
  background: linear-gradient(90deg, #25d366, #128c7e);
  box-shadow: 0 1px 10px rgba(37, 211, 102, 0.55);
}

/* Scroll story */
.scroll-story {
  padding-top: 120px;
  padding-bottom: 84px;
}
.story-intro,
.safety-heading {
  max-width: 650px;
}
.story-kicker {
  display: inline-flex;
  margin-bottom: 13px;
  color: #087b48;
  font: 500 0.69rem var(--mono);
  letter-spacing: 0.1em;
  text-transform: uppercase;
}
.story-intro h2,
.safety-heading h2 {
  margin-bottom: 14px;
}
.story-intro p,
.safety-heading p {
  margin: 0;
  color: var(--muted);
  font-size: 1.05rem;
  line-height: 1.75;
}
.story-track {
  position: relative;
  display: grid;
  gap: 16px;
  margin: 44px 0 0 18%;
  padding-left: 45px;
}
.story-track::before {
  content: "";
  position: absolute;
  top: 11px;
  bottom: 11px;
  left: 12px;
  width: 1px;
  background: linear-gradient(#25d366, rgba(18, 140, 126, 0.15));
}
.story-track::after {
  content: "";
  position: absolute;
  top: 11px;
  bottom: 11px;
  left: 12px;
  width: 2px;
  transform: scaleY(var(--story-progress, 0));
  transform-origin: top;
  background: #25d366;
  box-shadow: 0 0 12px rgba(37, 211, 102, 0.55);
}
.story-step {
  position: relative;
  display: grid;
  grid-template-columns: 80px 1fr;
  gap: 18px;
  align-items: start;
  padding: 24px 26px;
  border: 1px solid var(--line);
  border-radius: 5px;
  background: rgba(255, 255, 255, 0.7);
  box-shadow: 0 12px 28px rgba(23, 77, 54, 0.045);
}
.story-step::before {
  content: "";
  position: absolute;
  top: 31px;
  left: -40px;
  width: 12px;
  height: 12px;
  border: 3px solid #f5faf7;
  border-radius: 50%;
  background: #25d366;
  box-shadow: 0 0 0 1px rgba(18, 140, 126, 0.28), 0 0 18px rgba(37, 211, 102, 0.28);
}
.story-index {
  color: #128c7e;
  font: 500 0.82rem var(--mono);
  letter-spacing: 0.08em;
}
.story-step h3 {
  margin: 0 0 8px;
  color: var(--ink);
  font-size: 1.2rem;
  letter-spacing: -0.02em;
}
.story-step p {
  max-width: 490px;
  margin: 0;
  color: var(--muted);
  line-height: 1.7;
}
.safety-section {
  position: relative;
  margin-top: 52px;
  padding: 84px 42px 55px;
  border: 1px solid rgba(18, 140, 126, 0.16);
  border-radius: 8px;
  overflow: hidden;
  background: linear-gradient(118deg, rgba(255,255,255,0.9), rgba(230,250,239,0.72));
}
.safety-section::after {
  content: "";
  position: absolute;
  top: -160px;
  right: -130px;
  width: 360px;
  height: 360px;
  border: 1px solid rgba(37, 211, 102, 0.24);
  border-radius: 50%;
  box-shadow: 0 0 0 40px rgba(37, 211, 102, 0.045), 0 0 0 80px rgba(37, 211, 102, 0.03);
  pointer-events: none;
}
.safety-section .cards {
  position: relative;
  z-index: 1;
  margin-top: 38px;
}
.safety-section .feature-card { background: rgba(255, 255, 255, 0.84); }
.faq-section { max-width: 820px; margin: 0 auto; }
.faq-section details { margin-top: 12px; }

@supports (animation-timeline: view()) {
  .scroll-reveal {
    opacity: 0;
    animation: scroll-reveal both linear;
    animation-timeline: view();
    animation-range: entry 8% cover 34%;
    animation-delay: calc(var(--story-index, 0) * 80ms);
  }
  .story-track::before {
    transform-origin: top;
    transform: scaleY(0);
    animation: draw-line both linear;
    animation-timeline: view();
    animation-range: entry 12% cover 55%;
  }
  .story-step::before {
    animation: node-arrive both linear;
    animation-timeline: view();
    animation-range: entry 15% cover 35%;
  }
}

.motion-ready .scroll-reveal {
  opacity: 0;
  transform: translateY(36px) scale(0.985);
  animation: none;
}
.motion-ready .scroll-reveal.motion-visible {
  opacity: 1;
  transform: none;
}
.motion-ready .story-track::before,
.motion-ready .story-step::before {
  animation: none;
}

@keyframes scroll-reveal {
  from { opacity: 0; transform: translateY(36px) scale(0.985); }
  to { opacity: 1; transform: translateY(0) scale(1); }
}
@keyframes draw-line { to { transform: scaleY(1); } }
@keyframes node-arrive {
  from { transform: scale(0); opacity: 0; }
  to { transform: scale(1); opacity: 1; }
}

/* Motion: deliberately calm, but visible enough to communicate a live product. */
.ambient-grid { animation: light-grid-drift 20s linear infinite; }
.ambient-scan { display: block; filter: blur(24px); animation: light-scan 12s ease-in-out infinite; }
.hero-copy { animation: rise-in 0.75s 0.05s both; }
.hero-card { animation: rise-in 0.85s 0.16s both, soft-float 6s 1.1s ease-in-out infinite; }
.hero-gallery .gallery-item { animation: tile-in 0.55s both; }
.hero-gallery .gallery-item:nth-child(1) { animation-delay: 0.28s; }
.hero-gallery .gallery-item:nth-child(2) { animation-delay: 0.36s; }
.hero-gallery .gallery-item:nth-child(3) { animation-delay: 0.44s; }
.hero-gallery .gallery-item:nth-child(4) { animation-delay: 0.52s; }
.hero-gallery .gallery-item:nth-child(5) { animation-delay: 0.60s; }
.hero-gallery .gallery-item:nth-child(6) { animation-delay: 0.68s; }
.pill i, .chip-online i { animation: status-pulse 1.8s ease-in-out infinite; }
.btn-primary { transition: transform 0.18s ease, box-shadow 0.18s ease, background 0.18s ease; }
.btn-primary:hover { animation: button-sheen 1.1s ease infinite; }
.step, .feature-card, details { animation: rise-in 0.55s both; }
.steps .step:nth-child(1), .cards .feature-card:nth-child(1) { animation-delay: 0.04s; }
.steps .step:nth-child(2), .cards .feature-card:nth-child(2) { animation-delay: 0.12s; }
.steps .step:nth-child(3), .cards .feature-card:nth-child(3) { animation-delay: 0.20s; }
.step-panel { animation: panel-in 0.42s ease both; }
.stepper-item.current .stepper-num { animation: active-step 1.5s ease-in-out infinite; }
.sync-spinner .spinner { animation: spin 0.8s linear infinite, sync-glow 1.6s ease-in-out infinite; }
.gallery .media-thumb, .done-gallery .media-thumb { animation: media-arrive 0.38s ease both; }
.audio-player:not([hidden]) { animation: player-up 0.35s ease both; }

@keyframes light-grid-drift {
  to { background-position: 64px 64px; }
}
@keyframes light-scan {
  0%, 100% { transform: translate(-5vw, 0) rotate(-25deg); opacity: 0.05; }
  50% { transform: translate(93vw, 17vh) rotate(-25deg); opacity: 0.18; }
}
@keyframes rise-in {
  from { opacity: 0; transform: translateY(20px); }
  to { opacity: 1; transform: translateY(0); }
}
@keyframes panel-in {
  from { opacity: 0; transform: translateY(10px) scale(0.985); }
  to { opacity: 1; transform: translateY(0) scale(1); }
}
@keyframes soft-float {
  0%, 100% { transform: translateY(0); }
  50% { transform: translateY(-9px); }
}
@keyframes tile-in {
  from { opacity: 0; transform: scale(0.78); }
  to { opacity: 1; transform: scale(1); }
}
@keyframes status-pulse {
  50% { box-shadow: 0 0 0 5px rgba(37, 211, 102, 0), 0 0 13px #25d366; }
}
@keyframes button-sheen {
  50% { background: #25a58d; }
}
@keyframes active-step {
  50% { transform: scale(1.12); box-shadow: 0 0 0 5px rgba(37, 211, 102, 0.16); }
}
@keyframes sync-glow {
  50% { border-top-color: #25d366; box-shadow: 0 0 18px rgba(37, 211, 102, 0.35); }
}
@keyframes media-arrive {
  from { opacity: 0; transform: translateY(8px) scale(0.98); }
  to { opacity: 1; transform: none; }
}
@keyframes player-up {
  from { opacity: 0; transform: translateY(18px); }
  to { opacity: 1; transform: translateY(0); }
}

@media (prefers-reduced-motion: reduce) {
  .scroll-reveal, .story-track::before, .story-step::before {
    opacity: 1;
    animation: none !important;
    transform: none;
  }
  .ambient-grid, .ambient-scan, .hero-copy, .hero-card, .hero-gallery .gallery-item,
  .pill i, .chip-online i, .step, .feature-card, details, .step-panel,
  .stepper-item.current .stepper-num, .sync-spinner .spinner,
  .gallery .media-thumb, .done-gallery .media-thumb, .audio-player:not([hidden]) {
    animation: none !important;
  }
}

@media (max-width: 720px) {
  .hero-assurances { display: grid; gap: 8px; }
  .flow-assurance { grid-template-columns: 1fr; gap: 5px; }
  .gallery-toolbar { align-items: flex-start; flex-direction: column; }
  .gallery-filters { justify-content: flex-start; }
  .scroll-story { padding-top: 78px; }
  .story-track { margin-left: 0; padding-left: 30px; }
  .story-track::before { left: 7px; }
  .story-step { grid-template-columns: 1fr; gap: 8px; padding: 22px; }
  .story-step::before { left: -29px; }
  .safety-section { margin-left: -4px; margin-right: -4px; padding: 56px 22px 34px; }
}