/* Thompson Automation — calm light-green + white, matching the demo video */
:root {
  --bg: #f8fcf9;
  --white: #ffffff;
  --ink: #1c2b24;
  --muted: #6f8077;
  --soft: #97a49d;
  --accent: #16a34a;
  --accent-bright: #22c55e;
  --accent-soft: #dcf3e4;
  --mint: #ecf5ef;
  --line: #e2ece6;
  --shadow: 0 18px 50px -24px rgba(28, 43, 36, 0.28);
  --serif: Georgia, "Times New Roman", serif;
  --sans: "Segoe UI", -apple-system, BlinkMacSystemFont, "Helvetica Neue", Inter, Roboto, Arial, sans-serif;
  --radius: 18px;
}

* { box-sizing: border-box; margin: 0; padding: 0; }
html { scroll-behavior: smooth; }
body {
  background: var(--bg);
  color: var(--ink);
  font-family: var(--sans);
  font-size: 17px;
  line-height: 1.6;
  overflow-x: hidden;
  -webkit-font-smoothing: antialiased;
}
body::before {               /* soft mint glow, like the video background */
  content: "";
  position: fixed;
  inset: -30vh -10vw auto auto;
  width: 70vw; height: 80vh;
  background: radial-gradient(closest-side, rgba(204, 240, 216, 0.75), rgba(204, 240, 216, 0));
  z-index: -2;
  pointer-events: none;
  animation: drift 18s ease-in-out infinite alternate;
}
@keyframes drift { to { transform: translate(-6vw, 6vh) scale(1.08); } }
#envelopes { position: fixed; inset: 0; width: 100%; height: 100%; z-index: -1; pointer-events: none; }

a { color: inherit; }
em { font-style: italic; }
.wrap { width: min(1180px, calc(100% - 48px)); margin-inline: auto; }
.ico { width: 1em; height: 1em; fill: currentColor; vertical-align: -0.12em; }
.ico-check { fill: none; stroke: var(--accent); stroke-width: 2.6; stroke-linecap: round; stroke-linejoin: round; }
.arrow { display: inline-block; transition: transform .25s ease; }
a:hover .arrow, button:hover .arrow { transform: translateX(4px); }

/* ---------------------------------------------------------------- nav */
.nav {
  position: sticky; top: 0; z-index: 50;
  background: rgba(248, 252, 249, 0.82);
  backdrop-filter: blur(14px);
  -webkit-backdrop-filter: blur(14px);
  border-bottom: 1px solid transparent;
  transition: border-color .3s ease;
}
.nav.scrolled { border-bottom-color: var(--line); }
.nav-inner { display: flex; align-items: center; gap: 32px; height: 72px; }
.brand { display: inline-flex; align-items: center; gap: 11px; text-decoration: none; }
.brand-mark {
  width: 32px; height: 32px; border-radius: 9px; background: var(--accent); color: #fff;
  display: grid; place-items: center; font-weight: 700; font-size: 18px;
}
.brand-name { font-weight: 600; font-size: 18px; letter-spacing: -0.01em; }
.nav-links { display: flex; gap: 28px; margin-left: auto; }
.nav-links a { text-decoration: none; color: var(--muted); font-size: 15.5px; transition: color .2s; }
.nav-links a:hover { color: var(--ink); }
.link-cta {
  color: var(--accent); font-weight: 600; text-decoration: none; position: relative; padding-bottom: 2px;
}
.link-cta::after {
  content: ""; position: absolute; left: 0; right: 0; bottom: -2px; height: 2px; background: var(--accent);
  transform: scaleX(0); transform-origin: left; transition: transform .3s ease;
}
.link-cta:hover::after { transform: scaleX(1); }
.nav-toggle { display: none; margin-left: auto; background: none; border: 0; width: 40px; height: 40px; cursor: pointer; }
.nav-toggle span { display: block; width: 22px; height: 2px; background: var(--ink); margin: 5px auto; transition: transform .25s; }
.mobile-menu { display: flex; flex-direction: column; padding: 8px 24px 18px; gap: 4px; border-bottom: 1px solid var(--line); }
.mobile-menu a { padding: 10px 0; text-decoration: none; color: var(--ink); }
.mobile-menu[hidden] { display: none; }

/* ---------------------------------------------------------------- buttons */
.btn {
  display: inline-flex; align-items: center; justify-content: center; gap: 10px;
  padding: 15px 24px; border-radius: 999px; font: 600 16px/1 var(--sans);
  text-decoration: none; cursor: pointer; border: 1px solid transparent;
  transition: transform .2s ease, box-shadow .2s ease, background .2s ease;
}
.btn-ink { background: var(--ink); color: #fff; box-shadow: 0 10px 24px -14px rgba(28, 43, 36, 0.8); }
.btn-ink:hover { transform: translateY(-2px); background: #22352c; }
.btn-ghost { background: var(--white); color: var(--ink); border-color: var(--line); }
.btn-ghost:hover { border-color: #c9ddd0; transform: translateY(-2px); }
.btn-ghost .ico { color: var(--accent); }
.btn-block { width: 100%; }

/* ---------------------------------------------------------------- hero */
.hero {
  display: grid; grid-template-columns: 1.05fr 1fr; gap: 56px; align-items: center;
  padding: 72px 0 64px;
}
.eyebrow { display: inline-flex; align-items: center; gap: 10px; color: var(--accent); font-weight: 600; font-size: 15px; margin-bottom: 22px; }
.pulse { width: 9px; height: 9px; border-radius: 50%; background: var(--accent-bright); position: relative; }
.pulse::after {
  content: ""; position: absolute; inset: -6px; border-radius: 50%; border: 2px solid var(--accent-bright);
  animation: ping 2s ease-out infinite;
}
@keyframes ping { from { transform: scale(.5); opacity: .9; } to { transform: scale(1.6); opacity: 0; } }
h1 { font-family: var(--serif); font-weight: 400; font-size: clamp(42px, 5.4vw, 72px); line-height: 1.06; letter-spacing: -0.02em; }
h1 .line { display: block; }
h1 .line:first-child { font-weight: 700; }
.accent-line { color: var(--accent); }
.lede { color: var(--muted); font-size: 19px; max-width: 34em; margin: 26px 0 32px; }
.hero-actions { display: flex; flex-wrap: wrap; gap: 14px; }
.proof { margin-top: 26px; color: var(--muted); font-size: 15.5px; }
.proof .ico { margin-right: 6px; }
.proof strong { color: var(--ink); }

/* hero scene: animated after-hours inbox */
.hero-scene { position: relative; }
.scene-card {
  background: var(--white); border: 1px solid var(--line); border-radius: 22px;
  box-shadow: var(--shadow); overflow: hidden;
}
.scene-head { display: flex; justify-content: space-between; align-items: center; padding: 16px 20px; border-bottom: 1px solid var(--line); }
.scene-title { display: inline-flex; align-items: center; gap: 9px; font-weight: 600; font-size: 15px; }
.live-dot { width: 8px; height: 8px; border-radius: 50%; background: var(--accent-bright); box-shadow: 0 0 0 4px rgba(34, 197, 94, .18); animation: blink 1.6s ease-in-out infinite; }
@keyframes blink { 50% { opacity: .35; } }
.scene-clock { font-variant-numeric: tabular-nums; color: var(--muted); font-size: 14.5px; }
.scene-list {
  list-style: none; height: 186px; overflow: hidden; border-bottom: 1px solid var(--line);
  -webkit-mask-image: linear-gradient(to bottom, #000 72%, transparent);
  mask-image: linear-gradient(to bottom, #000 72%, transparent);
}
.scene-list li {
  display: grid; grid-template-columns: 34px 1fr auto; gap: 12px; align-items: center;
  padding: 12px 20px; border-bottom: 1px solid var(--line); font-size: 14.5px;
  animation: rowIn .55s cubic-bezier(.2, .9, .3, 1.2) both;
}
.scene-list li.fresh { background: linear-gradient(90deg, rgba(220, 243, 228, .9), rgba(220, 243, 228, 0)); }
@keyframes rowIn { from { opacity: 0; transform: translateY(-14px); } }
.av { width: 30px; height: 30px; border-radius: 50%; display: inline-grid; place-items: center; color: #fff; font-weight: 700; font-size: 13px; background: #b2d0c0; }
.row-main { min-width: 0; }
.row-from { font-weight: 600; }
.row-snip { color: var(--muted); white-space: nowrap; overflow: hidden; text-overflow: ellipsis; display: block; }
.row-tag { font-size: 12.5px; color: var(--soft); white-space: nowrap; }
.row-tag.replied { color: var(--accent); font-weight: 600; }
.row-tag.booked { color: #fff; background: var(--accent); padding: 3px 9px; border-radius: 999px; }
.scene-thread { padding: 18px 20px 6px; min-height: 196px; display: flex; flex-direction: column; gap: 12px; }
.t-lead {
  align-self: flex-end; max-width: 80%; background: var(--mint); border-radius: 16px 16px 4px 16px;
  padding: 10px 14px; font-size: 14.5px; animation: pop .45s ease both;
}
.t-owen { font-family: var(--serif); font-size: 15.5px; line-height: 1.55; animation: pop .45s ease both; }
.t-owen .who { font-family: var(--sans); font-size: 12.5px; font-weight: 600; display: flex; align-items: center; gap: 7px; margin-bottom: 4px; }
.t-owen .who em { font-style: normal; font-weight: 400; color: var(--accent); }
.t-owen .who .av { width: 20px; height: 20px; font-size: 10px; background: var(--accent); }
.t-typing { display: inline-flex; gap: 5px; align-items: center; color: var(--muted); font-size: 13.5px; animation: pop .3s ease both; }
.t-typing i, .dots span, .step-icon.typing span {
  width: 7px; height: 7px; border-radius: 50%; background: var(--accent-bright); display: inline-block;
  animation: bounce 1.1s ease-in-out infinite;
}
.t-typing i:nth-child(2), .dots span:nth-child(2), .step-icon.typing span:nth-child(2) { animation-delay: .15s; }
.t-typing i:nth-child(3), .dots span:nth-child(3), .step-icon.typing span:nth-child(3) { animation-delay: .3s; }
@keyframes bounce { 0%, 80%, 100% { transform: translateY(0); opacity: .45; } 40% { transform: translateY(-5px); opacity: 1; } }
@keyframes pop { from { opacity: 0; transform: translateY(8px); } }
.scene-cal { padding: 10px 20px 18px; }
.cal-days, .cal-grid { display: grid; grid-template-columns: repeat(5, 1fr); gap: 8px; }
.cal-days span { text-align: center; font-size: 12px; color: var(--soft); }
.cal-grid i { height: 34px; border-radius: 9px; border: 1px dashed var(--line); position: relative; display: block; }
.cal-grid i b {
  position: absolute; inset: 3px; border-radius: 7px; background: var(--accent-soft); border-left: 4px solid var(--accent);
  font: 600 11.5px/26px var(--sans); color: var(--ink); padding-left: 6px; white-space: nowrap; overflow: hidden;
  animation: drop .7s cubic-bezier(.2, 1.4, .4, 1) both;
}
@keyframes drop { from { transform: translateY(-40px) scale(.9); opacity: 0; } }
.fly-layer { position: absolute; inset: 0; pointer-events: none; overflow: visible; }
.fly-env {
  position: absolute; width: 46px; height: 32px; border-radius: 7px; background: #fff; border: 2px solid var(--accent);
  box-shadow: 0 10px 24px -10px rgba(22, 163, 74, .6);
}
.fly-env::before {
  content: ""; position: absolute; left: 3px; right: 3px; top: 2px; height: 16px;
  border-left: 2px solid var(--accent); border-bottom: 2px solid var(--accent);
  transform: skewY(0) rotate(-45deg) scale(.65); transform-origin: left top;
  width: 18px; left: 10px; top: 6px; border-radius: 2px;
}
.fly-in { animation: flyIn 1.1s cubic-bezier(.3, .7, .3, 1) forwards; }
.fly-out { animation: flyOut 1.1s cubic-bezier(.5, 0, .7, .4) forwards; }
@keyframes flyIn {
  0% { transform: translate(-160px, -120px) rotate(-18deg) scale(.7); opacity: 0; }
  30% { opacity: 1; }
  100% { transform: translate(0, 0) rotate(0) scale(.85); opacity: 0; }
}
@keyframes flyOut {
  0% { transform: translate(0, 0) rotate(0) scale(.85); opacity: 0; }
  20% { opacity: 1; }
  100% { transform: translate(220px, -160px) rotate(16deg) scale(.6); opacity: 0; }
}

/* ---------------------------------------------------------------- marquee */
.marquee { border-block: 1px solid var(--line); background: rgba(255, 255, 255, .6); overflow: hidden; padding: 16px 0; }
.marquee-track { display: flex; gap: 14px; width: max-content; animation: scroll 46s linear infinite; }
.marquee:hover .marquee-track { animation-play-state: paused; }
@keyframes scroll { to { transform: translateX(-50%); } }
.chip { white-space: nowrap; background: var(--white); border: 1px solid var(--line); border-radius: 999px; padding: 9px 18px; color: var(--muted); font-size: 15px; }
.chip b { color: var(--ink); font-weight: 600; }

/* ---------------------------------------------------------------- sections */
.section { padding: 110px 0 0; }
.section-head { max-width: 760px; margin-bottom: 44px; }
.kicker { color: var(--accent); font-weight: 600; font-size: 14.5px; letter-spacing: .02em; margin-bottom: 12px; }
h2 { font-family: var(--serif); font-weight: 400; font-size: clamp(32px, 3.8vw, 50px); line-height: 1.12; letter-spacing: -0.015em; }
h2 em { color: var(--accent); }
.sub { color: var(--muted); font-size: 18px; margin-top: 16px; max-width: 40em; }

/* video */
.video-frame {
  position: relative; border-radius: 22px; overflow: hidden; background: var(--white);
  border: 1px solid var(--line); box-shadow: var(--shadow); aspect-ratio: 16 / 9;
}
.video-frame video { width: 100%; height: 100%; display: block; object-fit: cover; }
.video-play {
  position: absolute; inset: 0; border: 0; cursor: pointer; display: flex; flex-direction: column;
  align-items: center; justify-content: center; gap: 16px; background: rgba(248, 252, 249, .25);
  transition: opacity .35s ease, visibility .35s;
}
.video-frame.playing .video-play { opacity: 0; visibility: hidden; }
.play-ring {
  width: 92px; height: 92px; border-radius: 50%; background: var(--white); display: grid; place-items: center;
  box-shadow: 0 16px 40px -14px rgba(28, 43, 36, .5); position: relative; transition: transform .25s ease;
}
.play-ring::after { content: ""; position: absolute; inset: -10px; border-radius: 50%; border: 2px solid rgba(34, 197, 94, .5); animation: ping 2.2s ease-out infinite; }
.play-ring svg { width: 34px; height: 34px; fill: var(--accent); margin-left: 4px; }
.video-play:hover .play-ring { transform: scale(1.06); }
.play-label { background: var(--white); color: var(--ink); font: 600 15px var(--sans); padding: 8px 16px; border-radius: 999px; border: 1px solid var(--line); }

/* steps */
.steps { position: relative; display: grid; grid-template-columns: repeat(3, 1fr); gap: 28px; }
.steps-path { position: absolute; left: 0; right: 0; top: -6px; width: 100%; height: 120px; overflow: visible; z-index: 0; }
.steps-path path#stepPath { fill: none; stroke: var(--line); stroke-width: 2.5; stroke-dasharray: 8 9; animation: dash 1.6s linear infinite; }
@keyframes dash { to { stroke-dashoffset: -34; } }
.traveler rect { fill: #fff; stroke: var(--accent); stroke-width: 2.4; }
.traveler path { fill: none; stroke: var(--accent); stroke-width: 2.2; stroke-linejoin: round; }
.step { position: relative; z-index: 1; background: var(--white); border: 1px solid var(--line); border-radius: var(--radius); padding: 30px 28px; margin-top: 70px; transition: transform .3s ease, box-shadow .3s ease; }
.step:hover { transform: translateY(-4px); box-shadow: var(--shadow); }
.step-icon { width: 64px; height: 64px; border-radius: 16px; background: var(--accent-soft); display: grid; place-items: center; position: relative; margin-bottom: 22px; }
.step-icon svg { width: 36px; height: 36px; fill: none; stroke: var(--accent); stroke-width: 2.6; stroke-linecap: round; stroke-linejoin: round; }
.step-icon.typing { display: flex; justify-content: center; align-items: center; gap: 6px; }
.badge-new { position: absolute; top: -8px; right: -12px; background: var(--accent); color: #fff; font-size: 11px; font-weight: 700; padding: 2px 8px; border-radius: 999px; animation: wiggle 2.6s ease-in-out infinite; }
@keyframes wiggle { 0%, 70%, 100% { transform: rotate(0); } 75% { transform: rotate(-8deg); } 85% { transform: rotate(8deg); } }
.step-icon .draw { stroke-dasharray: 30; stroke-dashoffset: 30; animation: drawCheck 2.8s ease-in-out infinite; }
@keyframes drawCheck { 0%, 15% { stroke-dashoffset: 30; } 45%, 85% { stroke-dashoffset: 0; } 100% { stroke-dashoffset: 30; } }
.step-num { font-family: var(--serif); color: var(--soft); font-size: 15px; }
.step h3 { font-family: var(--serif); font-weight: 400; font-size: 25px; margin: 4px 0 10px; }
.step p:last-child { color: var(--muted); font-size: 16px; }

/* stats */
.stats { display: grid; grid-template-columns: repeat(4, 1fr); gap: 20px; margin-bottom: 56px; }
.stat { background: var(--white); border: 1px solid var(--line); border-radius: var(--radius); padding: 26px 24px; }
.stat-num { font-family: var(--serif); font-size: 52px; line-height: 1; font-variant-numeric: tabular-nums; margin-bottom: 12px; }
.stat p { color: var(--muted); font-size: 15px; }
.stat-hero { background: var(--ink); border-color: var(--ink); }
.stat-hero .stat-num { color: #86efac; }
.stat-hero p { color: #c6d6cd; }

/* timeline transcript */
.timeline { background: var(--white); border: 1px solid var(--line); border-radius: 22px; padding: 34px 36px; display: flex; flex-direction: column; gap: 20px; box-shadow: var(--shadow); }
.tl-row { display: grid; grid-template-columns: 110px 1fr; gap: 20px; align-items: start; opacity: 0; transform: translateY(14px); transition: opacity .6s ease, transform .6s ease; }
.tl-row.show { opacity: 1; transform: none; }
.tl-time { color: var(--soft); font-size: 14px; padding-top: 10px; font-variant-numeric: tabular-nums; }
.tl-row.owen .tl-time, .tl-row.booked .tl-time { color: var(--accent); font-weight: 600; }
.tl-box { justify-self: end; background: var(--mint); border-radius: 18px 18px 4px 18px; padding: 12px 18px; max-width: 560px; }
.tl-text { font-family: var(--serif); font-size: 18px; line-height: 1.6; max-width: 720px; }
.tl-text .who { font-family: var(--sans); font-size: 14px; font-weight: 600; display: flex; align-items: center; gap: 8px; margin-bottom: 4px; }
.tl-text .who em { font-style: normal; font-weight: 400; color: var(--accent); }
.tl-text .who .av { width: 22px; height: 22px; font-size: 11px; background: var(--accent); }
.redact { display: inline-block; width: 230px; height: 14px; border-radius: 7px; background: var(--line); vertical-align: middle; }
.tl-booked { display: inline-flex; gap: 10px; align-items: center; background: var(--accent-soft); color: var(--ink); border-radius: 14px; padding: 12px 18px; font-weight: 600; }

/* message-type cards */
.cards { display: grid; grid-template-columns: repeat(3, 1fr); gap: 20px; }
.msg-card { background: var(--white); border: 1px solid var(--line); border-radius: var(--radius); padding: 24px; display: flex; flex-direction: column; gap: 14px; min-height: 210px; }
.msg-card .in { align-self: flex-end; background: var(--mint); border-radius: 16px 16px 4px 16px; padding: 10px 15px; font-size: 15.5px; opacity: 0; transform: translateX(20px); transition: all .5s ease; }
.msg-card .in.muted-in { color: var(--muted); font-style: italic; }
.msg-card .dots { display: flex; gap: 5px; opacity: 0; transition: opacity .3s; }
.msg-card .out { font-family: var(--serif); font-size: 17px; line-height: 1.55; opacity: 0; transform: translateY(10px); transition: all .5s ease; }
.msg-card .out.quiet { color: var(--muted); }
.msg-card .out.booked-out { font-family: var(--sans); font-weight: 600; font-size: 15.5px; background: var(--accent-soft); border-radius: 12px; padding: 10px 14px; }
.msg-card.play .in { opacity: 1; transform: none; }
.msg-card.play .dots { animation: dotsShow 1.4s ease forwards .5s; }
.msg-card.play .out { opacity: 1; transform: none; transition-delay: 1.7s; }
@keyframes dotsShow { 0% { opacity: 0; } 20%, 80% { opacity: 1; } 100% { opacity: 0; height: 0; } }

/* who */
.who-chips { display: flex; flex-wrap: wrap; gap: 12px; }
.who-chips span { background: var(--white); border: 1px solid var(--line); border-radius: 999px; padding: 11px 20px; font-size: 16px; transition: all .25s ease; }
.who-chips span:hover { border-color: var(--accent); color: var(--accent); transform: translateY(-2px); }
.who-chips.in span { animation: pop .5s ease both; }
.who-note { font-family: var(--serif); font-size: 22px; line-height: 1.5; color: var(--muted); max-width: 32em; margin-top: 36px; }

/* faq */
.faq { display: grid; gap: 12px; max-width: 860px; }
.faq details { background: var(--white); border: 1px solid var(--line); border-radius: 16px; padding: 0 24px; transition: box-shadow .25s; }
.faq details[open] { box-shadow: var(--shadow); }
.faq summary { list-style: none; cursor: pointer; padding: 20px 0; font-weight: 600; font-size: 17.5px; display: flex; justify-content: space-between; gap: 16px; }
.faq summary::-webkit-details-marker { display: none; }
.faq summary::after { content: "+"; color: var(--accent); font-size: 24px; line-height: 1; transition: transform .25s; }
.faq details[open] summary::after { transform: rotate(45deg); }
.faq details p { color: var(--muted); padding: 0 0 22px; animation: pop .35s ease; }

/* contact */
.contact { padding-bottom: 120px; }
.contact-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 56px; align-items: start; }
.contact-copy .sub a { color: var(--accent); font-weight: 600; text-decoration: none; }
.contact-points { list-style: none; margin-top: 28px; display: grid; gap: 12px; }
.contact-points li { display: flex; align-items: center; gap: 10px; }
.contact-form { position: relative; background: var(--white); border: 1px solid var(--line); border-radius: 22px; padding: 30px; box-shadow: var(--shadow); display: grid; gap: 18px; }
.form-row { display: grid; grid-template-columns: 1fr 1fr; gap: 16px; }
.contact-form label { display: grid; gap: 7px; font-size: 14px; font-weight: 600; color: var(--muted); }
.contact-form input, .contact-form textarea {
  font: 16px var(--sans); color: var(--ink); background: var(--bg); border: 1px solid var(--line);
  border-radius: 12px; padding: 13px 14px; outline: none; transition: border-color .2s, box-shadow .2s; resize: vertical;
}
.contact-form input:focus, .contact-form textarea:focus { border-color: var(--accent); box-shadow: 0 0 0 4px rgba(34, 197, 94, .12); }
.contact-form .invalid { border-color: #e26b6b; }
.form-note { color: var(--soft); font-size: 13.5px; text-align: center; }
.form-alt { display: flex; justify-content: center; gap: 18px; flex-wrap: wrap; font-size: 14px; }
.form-alt a, .form-alt button { color: var(--accent); background: none; border: 0; font: 600 14px var(--sans); cursor: pointer; text-decoration: none; }
.form-alt a:hover, .form-alt button:hover { text-decoration: underline; }
.send-anim { position: absolute; left: 50%; top: 50%; pointer-events: none; opacity: 0; }
.contact-form.sending .send-anim { animation: sendFly 1.6s ease forwards; }
.env { width: 74px; height: 52px; background: #fff; border: 2.5px solid var(--accent); border-radius: 9px; position: relative; transform: translate(-50%, -50%); }
.env-flap { position: absolute; left: 6px; right: 6px; top: 4px; height: 26px; border-left: 2.5px solid var(--accent); border-bottom: 2.5px solid var(--accent); transform: rotate(-45deg) scale(.66); transform-origin: 28% 30%; }
.env-letter { position: absolute; left: 12px; right: 12px; bottom: 32px; height: 34px; background: var(--accent-soft); border-radius: 4px; animation: none; }
.contact-form.sending .env-letter { animation: tuck .5s ease forwards; }
@keyframes tuck { to { bottom: 6px; height: 0; } }
@keyframes sendFly {
  0% { opacity: 0; transform: scale(.6); }
  20% { opacity: 1; transform: scale(1); }
  45% { transform: scale(1) translate(0, 0); }
  100% { opacity: 0; transform: translate(260px, -260px) rotate(18deg) scale(.5); }
}
.contact-form.sending > *:not(.send-anim) { transition: opacity .3s; opacity: .25; }

/* footer */
.footer { border-top: 1px solid var(--line); background: rgba(255, 255, 255, .65); padding: 44px 0 30px; }
.footer-inner { display: flex; justify-content: space-between; gap: 30px; flex-wrap: wrap; }
.footer-tag { color: var(--muted); margin-top: 10px; font-family: var(--serif); font-style: italic; }
.footer-links { display: flex; gap: 24px; flex-wrap: wrap; align-items: center; }
.footer-links a { color: var(--muted); text-decoration: none; font-size: 15px; }
.footer-links a:hover { color: var(--accent); }
.footer-copy { color: var(--soft); font-size: 13.5px; margin-top: 30px; }

/* toast */
.toast {
  position: fixed; left: 50%; bottom: 28px; transform: translate(-50%, 30px); opacity: 0;
  background: var(--ink); color: #fff; padding: 12px 20px; border-radius: 999px; font-size: 15px;
  transition: all .35s ease; z-index: 100; pointer-events: none;
}
.toast.show { opacity: 1; transform: translate(-50%, 0); }

/* reveal on scroll */
.reveal { opacity: 0; transform: translateY(22px); transition: opacity .8s ease, transform .8s cubic-bezier(.2, .8, .2, 1); }
.reveal.in { opacity: 1; transform: none; }
h1.reveal .line { opacity: 0; transform: translateY(18px); transition: opacity .7s ease, transform .7s ease; }
h1.reveal.in .line { opacity: 1; transform: none; }
h1.reveal.in .line:nth-child(2) { transition-delay: .35s; }
h1.reveal.in .line:nth-child(3) { transition-delay: .7s; }

/* ---------------------------------------------------------------- multi-page additions */
.nav-links a.active { color: var(--ink); font-weight: 600; }
.nav-login {
  margin-left: 6px; text-decoration: none; font-weight: 600; font-size: 15px; color: var(--ink);
  border: 1px solid var(--line); background: var(--white); border-radius: 999px; padding: 8px 16px;
  display: inline-flex; align-items: center; gap: 8px; transition: border-color .2s, transform .2s;
}
.nav-login:hover { border-color: var(--accent); transform: translateY(-1px); }
.nav-login .live-dot { width: 7px; height: 7px; }

.page-hero { padding: 84px 0 10px; max-width: 900px; }
.page-title { font-family: var(--serif); font-weight: 400; font-size: clamp(38px, 4.8vw, 62px); line-height: 1.08; letter-spacing: -0.02em; }
.page-title em { color: var(--accent); }
.page-hero .lede { margin-bottom: 0; }

/* flow diagram (how it works) */
.flow { margin-top: 56px; background: var(--white); border: 1px solid var(--line); border-radius: 26px; padding: 28px; box-shadow: var(--shadow); }
.flow-svg { width: 100%; height: auto; display: block; overflow: visible; }
.flow-svg .lane { fill: none; stroke: var(--line); stroke-width: 2.5; stroke-dasharray: 7 9; animation: dash 1.6s linear infinite; }
.flow-svg .pill rect { fill: var(--bg); stroke: var(--line); stroke-width: 2; }
.flow-svg .pill.out rect { fill: var(--accent-soft); stroke: #bfe6cc; }
.flow-svg text { font-family: var(--sans); font-size: 19px; fill: var(--ink); dominant-baseline: middle; }
.flow-svg .hub-label { font-family: var(--serif); font-size: 24px; }
.flow-svg .hub-sub { font-size: 15px; fill: var(--muted); }
.flow-svg .hub { fill: var(--accent); }
.flow-svg .hub-ring { fill: none; stroke: var(--accent-bright); stroke-width: 3; }
.flow-svg .env rect { fill: #fff; stroke: var(--accent); stroke-width: 2.2; }
.flow-svg .env path { fill: none; stroke: var(--accent); stroke-width: 2; stroke-linejoin: round; }
.flow-svg .spark { fill: var(--accent-bright); }
.flow-mobile { display: none; list-style: none; }
.flow-mobile li { display: flex; gap: 12px; align-items: center; padding: 14px 0; border-bottom: 1px solid var(--line); }
.flow-mobile li:last-child { border-bottom: 0; }
.flow-mobile .n { width: 30px; height: 30px; border-radius: 50%; background: var(--accent-soft); color: var(--accent); display: grid; place-items: center; font-weight: 700; flex: none; }

/* rules checklist */
.rules { list-style: none; display: grid; grid-template-columns: repeat(2, 1fr); gap: 14px 28px; }
.rules li { display: flex; gap: 14px; align-items: flex-start; background: var(--white); border: 1px solid var(--line); border-radius: 16px; padding: 18px 20px; opacity: 0; transform: translateY(14px); transition: opacity .6s ease, transform .6s ease; }
.rules.in li { opacity: 1; transform: none; }
.rules li .ico-check { font-size: 22px; flex: none; margin-top: 2px; }
.rules li strong { display: block; font-weight: 600; }
.rules li span { color: var(--muted); font-size: 15.5px; }

/* setup timeline */
.setup { list-style: none; position: relative; padding-left: 46px; display: grid; gap: 30px; max-width: 760px; }
.setup::before { content: ""; position: absolute; left: 15px; top: 8px; bottom: 8px; width: 2px; background: var(--line); }
.setup::after { content: ""; position: absolute; left: 15px; top: 8px; bottom: 8px; width: 2px; background: var(--accent); transform: scaleY(0); transform-origin: top; transition: transform 2s ease; }
.setup.go::after { transform: scaleY(1); }
.setup li { position: relative; opacity: .35; transition: opacity .5s ease; }
.setup li.on { opacity: 1; }
.setup li::before { content: attr(data-n); position: absolute; left: -46px; top: 0; width: 32px; height: 32px; border-radius: 50%; background: var(--white); border: 2px solid var(--line); display: grid; place-items: center; font-weight: 700; font-size: 14px; color: var(--muted); z-index: 1; transition: all .4s ease; }
.setup li.on::before { background: var(--accent); border-color: var(--accent); color: #fff; }
.setup h3 { font-family: var(--serif); font-weight: 400; font-size: 24px; }
.setup p { color: var(--muted); }

/* call-to-action band */
.cta-band { margin-top: 110px; background: var(--ink); color: #fff; border-radius: 28px; padding: 56px 48px; display: flex; justify-content: space-between; align-items: center; gap: 30px; flex-wrap: wrap; position: relative; overflow: hidden; }
.cta-band::after { content: ""; position: absolute; right: -120px; top: -160px; width: 420px; height: 420px; border-radius: 50%; background: radial-gradient(closest-side, rgba(34, 197, 94, .35), transparent); animation: drift 10s ease-in-out infinite alternate; }
.cta-band h2 { color: #fff; max-width: 15em; position: relative; z-index: 1; }
.cta-band h2 em { color: #86efac; }
.cta-band .cta-actions { display: flex; gap: 12px; flex-wrap: wrap; position: relative; z-index: 1; }
.cta-band .btn-light { background: #fff; color: var(--ink); }
.cta-band .btn-light:hover { transform: translateY(-2px); }
.cta-band .btn-outline { border-color: rgba(255, 255, 255, .3); color: #fff; background: transparent; }
.cta-band .btn-outline:hover { border-color: #fff; transform: translateY(-2px); }

/* demo chapters */
.chapters { display: grid; grid-template-columns: repeat(4, 1fr); gap: 12px; margin-top: 22px; }
.chapters button { text-align: left; background: var(--white); border: 1px solid var(--line); border-radius: 14px; padding: 14px 16px; cursor: pointer; font: inherit; color: var(--ink); transition: all .25s ease; }
.chapters button:hover { border-color: #c9ddd0; transform: translateY(-2px); }
.chapters button.active { border-color: var(--accent); background: var(--accent-soft); }
.chapters .t { display: block; font-variant-numeric: tabular-nums; color: var(--accent); font-weight: 600; font-size: 14px; }
.chapters .d { display: block; font-size: 15px; margin-top: 2px; }

/* "try the console" link under the demo video */
.demo-try { text-align: center; margin-top: 24px; font-size: 16.5px; color: var(--muted); }
.demo-try .link-cta { margin-left: 4px; }

/* faq groups */
.faq-group { margin-bottom: 46px; }
.faq-group h3 { font-family: var(--serif); font-weight: 400; font-size: 26px; margin-bottom: 16px; }

/* about */
.principles { display: grid; grid-template-columns: repeat(2, 1fr); gap: 20px; }
.principle { background: var(--white); border: 1px solid var(--line); border-radius: var(--radius); padding: 30px; transition: transform .3s ease, box-shadow .3s ease; }
.principle:hover { transform: translateY(-4px); box-shadow: var(--shadow); }
.principle h3 { font-family: var(--serif); font-weight: 400; font-size: 25px; margin: 14px 0 8px; }
.principle p { color: var(--muted); }
.principle .step-icon { margin-bottom: 0; }
.story { font-family: var(--serif); font-size: 23px; line-height: 1.6; max-width: 34em; }
.story p + p { margin-top: 18px; }
.story .sig { font-family: var(--sans); font-size: 16px; color: var(--muted); margin-top: 26px; }

/* contact page */
.next-steps { list-style: none; display: grid; gap: 16px; margin-top: 30px; counter-reset: n; }
.next-steps li { display: flex; gap: 14px; align-items: flex-start; }
.next-steps li::before { counter-increment: n; content: counter(n); width: 30px; height: 30px; flex: none; border-radius: 50%; background: var(--accent-soft); color: var(--accent); font-weight: 700; display: grid; place-items: center; font-size: 14px; }
.footer-col h4 { font-size: 13.5px; text-transform: uppercase; letter-spacing: .06em; color: var(--soft); margin-bottom: 12px; }
.footer-col { display: grid; gap: 8px; align-content: start; }
.footer-col a { color: var(--muted); text-decoration: none; font-size: 15px; }
.footer-col a:hover { color: var(--accent); }

/* ---------------------------------------------------------------- responsive */
@media (max-width: 980px) {
  .hero { grid-template-columns: 1fr; padding-top: 44px; gap: 44px; }
  .steps, .cards { grid-template-columns: 1fr 1fr; }
  .steps-path { display: none; }
  .step { margin-top: 0; }
  .stats { grid-template-columns: 1fr 1fr; }
  .contact-grid { grid-template-columns: 1fr; }
}
@media (max-width: 980px) {
  .chapters { grid-template-columns: 1fr 1fr; }
  .principles, .rules { grid-template-columns: 1fr; }
}
@media (max-width: 720px) {
  .flow-svg { display: none; }
  .flow-mobile { display: block; }
  .cta-band { padding: 40px 26px; }
  .page-hero { padding-top: 56px; }
  .nav-login { display: none; }
  body { font-size: 16px; }
  .wrap { width: calc(100% - 32px); }
  .nav-links, .nav-cta { display: none; }
  .nav-toggle { display: block; }
  .steps, .cards, .stats { grid-template-columns: 1fr; }
  .section { padding-top: 80px; }
  .timeline { padding: 22px 18px; }
  .tl-row { grid-template-columns: 1fr; gap: 6px; }
  .tl-time { padding-top: 0; }
  .tl-text { font-size: 16.5px; }
  .redact { width: 140px; }
  .form-row { grid-template-columns: 1fr; }
  .stat-num { font-size: 44px; }
  .hero-actions .btn { width: 100%; }
  .scene-list li { padding: 10px 14px; grid-template-columns: 30px 1fr auto; }
  .scene-thread, .scene-cal, .scene-head { padding-left: 14px; padding-right: 14px; }
}

@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after { animation-duration: .01ms !important; animation-iteration-count: 1 !important; transition-duration: .01ms !important; }
  .marquee-track { animation: none; }
  #envelopes { display: none; }
}

/* secure home server badge */
.ico-lock { fill: none; stroke: var(--accent); stroke-width: 2.2; stroke-linecap: round; stroke-linejoin: round; }
.footer-secure, .c-secure { display: inline-flex; align-items: center; gap: 8px; color: var(--muted); font-size: 14.5px; margin-top: 10px; }
.c-secure { display: flex; justify-content: center; margin-top: 18px; font-size: 13.5px; }

/* privacy page */
.legal > * { max-width: 46em; }
.legal h2 { font-family: var(--serif); font-weight: 400; font-size: 27px; line-height: 1.25; margin: 40px 0 10px; }
.legal h2:first-child { margin-top: 0; }
.legal p { color: var(--muted); font-size: 17px; line-height: 1.7; }
.legal p + p { margin-top: 12px; }
.legal a { color: var(--accent); font-weight: 600; text-decoration: none; overflow-wrap: anywhere; }
.legal .legal-note { margin-top: 44px; font-size: 14.5px; color: var(--soft); }
