/* Kwiet Closer — marketing visuals: device mockups, glows, motion.
   Devices are drawn in CSS (no images) so they stay sharp and match the brand. */

/* ───────── Phone frame ───────── */
.device {
  --w: 300px;
  position: relative;
  width: var(--w);
  aspect-ratio: 9 / 19.3;
  border-radius: calc(var(--w) * .17);
  padding: calc(var(--w) * .036);
  background: linear-gradient(150deg, #3A4148 0%, #1B1F23 38%, #0B0D0F 100%);
  box-shadow:
    inset 0 0 0 1.5px rgba(255, 255, 255, .14),
    inset 0 0 0 5px #08090A,
    0 2px 1px rgba(255, 255, 255, .04),
    0 60px 120px -30px rgba(0, 0, 0, .55),
    0 30px 60px -30px rgba(0, 0, 0, .65);
  flex: none;
}
/* side buttons */
.device::before, .device::after { content: ''; position: absolute; background: linear-gradient(90deg, #15181B, #3A4148); border-radius: 3px; }
.device::before { left: -3px; top: 21%; width: 4px; height: 13%; box-shadow: 0 -52px 0 0 #2A2F35; }
.device::after { right: -3px; top: 27%; width: 4px; height: 17%; background: linear-gradient(270deg, #15181B, #3A4148); }
.screen {
  position: relative; height: 100%; border-radius: calc(var(--w) * .135); overflow: hidden;
  background: #fff; display: flex; flex-direction: column; isolation: isolate;
  font-family: -apple-system, BlinkMacSystemFont, 'SF Pro Text', 'Helvetica Neue', Inter, system-ui, sans-serif;
  color: #0B0B0C; -webkit-font-smoothing: antialiased;
}
/* glass reflection */
.screen::after {
  content: ''; position: absolute; inset: 0; pointer-events: none; z-index: 20;
  background: linear-gradient(115deg, rgba(255, 255, 255, .16) 0%, rgba(255, 255, 255, .03) 32%, transparent 33%, transparent 100%);
}
.island { position: absolute; top: 11px; left: 50%; transform: translateX(-50%); width: 31%; height: 27px; background: #000; border-radius: 20px; z-index: 10; }
.island::after { content: ''; position: absolute; right: 12px; top: 50%; width: 9px; height: 9px; margin-top: -4.5px; border-radius: 50%; background: radial-gradient(circle at 35% 35%, #2D3A56, #0A0D14 70%); }
.statusbar { position: relative; z-index: 9; height: 50px; flex: none; display: flex; align-items: center; justify-content: space-between; padding: 6px 26px 0 30px; font-weight: 600; font-size: 14.5px; letter-spacing: -.01em; }
.statusbar .icons { display: flex; gap: 5px; align-items: center; }
.statusbar svg { display: block; }
.home-ind { position: absolute; bottom: 7px; left: 50%; transform: translateX(-50%); width: 36%; height: 5px; border-radius: 3px; background: #0B0B0C; z-index: 10; }
.screen.dark .home-ind { background: rgba(255, 255, 255, .85); }
.screen.dark { color: #fff; }

/* ───────── Messages app ───────── */
.msgs-head { flex: none; text-align: center; padding: 2px 14px 10px; border-bottom: .5px solid rgba(0, 0, 0, .12); background: rgba(249, 249, 249, .94); position: relative; }
.msgs-head .back { position: absolute; left: 12px; top: 14px; display: flex; align-items: center; gap: 2px; color: #2F7A3A; font-size: 15px; }
.msgs-head .back b { background: #2F7A3A; color: #fff; font-size: 11px; font-weight: 600; border-radius: 10px; padding: 1px 6px; }
.msgs-head .av { width: 46px; height: 46px; margin: 0 auto 3px; border-radius: 50%; display: grid; place-items: center; overflow: hidden; }
.msgs-head .av.kwiet { background: #171B1F; }
.msgs-head .av.kwiet img { width: 32px; }
.msgs-head .av.person { background: linear-gradient(180deg, #A5ABB3, #858C95); color: #fff; font-weight: 600; font-size: 18px; }
.msgs-head .name { font-size: 11.5px; color: #0B0B0C; display: inline-flex; align-items: center; gap: 2px; }
.msgs-head .name::after { content: '›'; color: #A0A4AA; font-size: 13px; margin-left: 2px; }
.thread-m { flex: 1; overflow: hidden; padding: 10px 12px 8px; display: flex; flex-direction: column; gap: 3px; justify-content: flex-end; }
.stamp { text-align: center; font-size: 10.5px; color: #8A8E94; margin: 4px 0 6px; }
.stamp b { font-weight: 600; }
.bub { max-width: 84%; padding: 7px 12px 8px; font-size: calc(var(--w) * .042); line-height: 1.32; border-radius: 18px; position: relative; white-space: pre-line; word-wrap: break-word; letter-spacing: -.005em; }
.bub.in { background: #E9E9EB; color: #0B0B0C; align-self: flex-start; }
.bub.out { background: linear-gradient(180deg, #45C95E, #2FB34B); color: #fff; align-self: flex-end; }
.bub.tail.in { border-bottom-left-radius: 5px; }
.bub.tail.out { border-bottom-right-radius: 5px; }
.bub.gap { margin-top: 7px; }
.bub .tag { font-weight: 700; }
.bub a { color: inherit; text-decoration: underline; text-underline-offset: 2px; }
.bub.in a { color: #1F5FBF; }
.delivered { align-self: flex-end; font-size: 10px; color: #8A8E94; margin: 1px 4px 0 0; }
.typing { align-self: flex-start; background: #E9E9EB; border-radius: 18px; border-bottom-left-radius: 5px; padding: 10px 13px; display: flex; gap: 4px; }
.typing i { width: 7px; height: 7px; border-radius: 50%; background: #9A9DA3; animation: dot 1.1s infinite ease-in-out; }
.typing i:nth-child(2) { animation-delay: .15s; }
.typing i:nth-child(3) { animation-delay: .3s; }
@keyframes dot { 0%, 60%, 100% { transform: translateY(0); opacity: .45; } 30% { transform: translateY(-3px); opacity: 1; } }
.compose { flex: none; display: flex; align-items: center; gap: 8px; padding: 6px 12px 26px; }
.compose .plus { width: 30px; height: 30px; border-radius: 50%; background: #E9E9EB; display: grid; place-items: center; color: #6A6E74; font-size: 20px; line-height: 1; }
.compose .field-m { flex: 1; border: 1px solid #D5D6D9; border-radius: 18px; padding: 6px 12px; font-size: 13.5px; color: #A3A6AB; display: flex; justify-content: space-between; align-items: center; }

/* Sequenced conversation: elements with .seq appear in order once the phone scrolls into view. */
.device .seq { opacity: 0; transform: translateY(8px) scale(.98); }
.device .seq.typing { display: none; }
.device.play .seq { animation: bubIn .42s cubic-bezier(.2, .8, .2, 1) forwards; animation-delay: calc(var(--t, 0) * 1s); }
.device.play .seq.typing { display: flex; animation: typingLife var(--dur, 1.1s) ease forwards; animation-delay: calc(var(--t, 0) * 1s); }
@keyframes bubIn { to { opacity: 1; transform: none; } }
@keyframes typingLife { 0% { opacity: 0; max-height: 0; padding-top: 0; padding-bottom: 0; } 12% { opacity: 1; max-height: 40px; padding-top: 10px; padding-bottom: 10px; } 88% { opacity: 1; max-height: 40px; padding-top: 10px; padding-bottom: 10px; } 100% { opacity: 0; max-height: 0; padding-top: 0; padding-bottom: 0; margin: -3px 0; } }

/* ───────── In-app screen (Review & approve) ───────── */
.app-m { flex: 1; display: flex; flex-direction: column; background: #F6F5F0; font-family: var(--sans); }
.app-m .bar { display: flex; align-items: center; justify-content: space-between; padding: 4px 16px 10px; }
.app-m .bar img { height: 22px; }
.app-m .bar .pill { font-size: 10px; padding: .15rem .5rem; }
.app-m .body { flex: 1; padding: 4px 14px; display: flex; flex-direction: column; gap: 9px; }
.app-m .crd { background: #fff; border: 1px solid #E3E2DA; border-radius: 14px; padding: 11px 12px; font-size: 12.5px; line-height: 1.4; }
.app-m .crd h4 { font: 800 13.5px var(--sans); margin: 0 0 4px; }
.app-m .need { background: var(--warn-bg); border: 1.5px solid var(--warn-line); color: var(--warn-ink); border-radius: 12px; padding: 8px 11px; font-size: 12px; }
.app-m .li { display: flex; justify-content: space-between; align-items: center; padding: 5px 0; border-bottom: 1px solid #EEEDE7; font-size: 12px; }
.app-m .li:last-of-type { border-bottom: 0; }
.app-m .li small { display: block; color: #8A9097; font-size: 10px; }
.app-m .qty { border: 1.5px solid #D5D4CB; border-radius: 7px; padding: 1px 7px; font-size: 11px; min-width: 34px; text-align: center; background: #fff; }
.app-m .qty.need-q { border-color: var(--warn-line); background: #FFFBF5; color: var(--warn-ink); }
.app-m .tot { display: flex; justify-content: space-between; align-items: baseline; padding-top: 6px; font-weight: 800; font-size: 12px; }
.app-m .tot span { font: 650 21px var(--serif); color: var(--green); }
.app-m .go { margin: auto 14px 30px; background: var(--green); color: #fff; text-align: center; font-weight: 800; font-size: 14px; border-radius: 14px; padding: 12px; box-shadow: 0 8px 18px -8px rgba(47, 122, 58, .7); }

/* ───────── Lock screen ───────── */
.lock { flex: 1; position: relative; margin-top: -50px; padding-top: 50px; color: #fff;
  background:
    radial-gradient(120% 70% at 85% 10%, rgba(75, 177, 52, .55), transparent 60%),
    radial-gradient(90% 60% at 0% 75%, rgba(2, 113, 67, .75), transparent 65%),
    linear-gradient(180deg, #14301F 0%, #0F1C16 55%, #0B0F0E 100%); }
.lock .date { text-align: center; font-size: 15px; font-weight: 600; opacity: .9; margin-top: 6px; }
.lock .clock { text-align: center; font-size: 74px; font-weight: 700; letter-spacing: -.02em; line-height: 1; margin-top: 2px; font-family: -apple-system, 'SF Pro Display', 'Helvetica Neue', system-ui, sans-serif; background: linear-gradient(180deg, #fff, rgba(255, 255, 255, .78)); -webkit-background-clip: text; background-clip: text; color: transparent; }
.notifs { position: absolute; left: 10px; right: 10px; bottom: 74px; display: flex; flex-direction: column; gap: 7px; }
.notif { background: rgba(245, 245, 245, .72); backdrop-filter: blur(18px) saturate(1.4); -webkit-backdrop-filter: blur(18px) saturate(1.4); color: #0B0B0C; border-radius: 18px; padding: 10px 12px; display: flex; gap: 9px; align-items: flex-start; box-shadow: 0 6px 20px rgba(0, 0, 0, .18); }
.notif .ico { width: 34px; height: 34px; border-radius: 8px; background: #171B1F; display: grid; place-items: center; flex: none; }
.notif .ico img { width: 25px; }
.notif .ico.sms { background: linear-gradient(180deg, #5BE06F, #2DBE48); color: #fff; }
.notif .t { flex: 1; min-width: 0; }
.notif .top { display: flex; justify-content: space-between; font-size: 12px; font-weight: 600; }
.notif .top span { color: rgba(0, 0, 0, .45); font-weight: 400; font-size: 11px; }
.notif p { margin: 1px 0 0; font-size: 12.3px; line-height: 1.33; }
.notif.stacked { transform: scale(.94); opacity: .75; margin-top: -40px; z-index: -1; }
.lock .flash { position: absolute; bottom: 26px; left: 30px; width: 40px; height: 40px; border-radius: 50%; background: rgba(0, 0, 0, .28); backdrop-filter: blur(8px); }
.lock .cam { left: auto; right: 30px; }

/* ───────── Browser window ───────── */
.browser { background: #fff; border-radius: 14px; overflow: hidden; box-shadow: 0 1px 0 rgba(255, 255, 255, .5) inset, 0 50px 100px -30px rgba(23, 27, 31, .35), 0 20px 50px -25px rgba(23, 27, 31, .3); border: 1px solid rgba(23, 27, 31, .08); }
.browser-bar { display: flex; align-items: center; gap: 12px; padding: 10px 14px; background: linear-gradient(180deg, #F4F4F2, #ECECE9); border-bottom: 1px solid #E0DFD8; }
.browser-bar .dots { display: flex; gap: 7px; }
.browser-bar .dots i { width: 11px; height: 11px; border-radius: 50%; background: #FF5F57; }
.browser-bar .dots i:nth-child(2) { background: #FEBC2E; }
.browser-bar .dots i:nth-child(3) { background: #28C840; }
.browser-bar .url { flex: 1; max-width: 380px; margin: 0 auto; background: #fff; border-radius: 7px; font-size: 11.5px; color: #5B636B; padding: 4px 10px; text-align: center; border: 1px solid #E3E2DA; }
.browser-bar .url::before { content: '🔒 '; font-size: 9px; }
.dash-m { display: grid; grid-template-columns: 132px 1fr; min-height: 360px; font-size: 11.5px; }
.dash-m .side { background: var(--ink); padding: 14px 10px; display: flex; flex-direction: column; gap: 3px; }
.dash-m .side img { width: 84px; margin: 0 4px 14px; }
.dash-m .side span { color: rgba(255, 255, 255, .62); font-weight: 700; padding: 5px 8px; border-radius: 6px; font-size: 10.5px; display: flex; justify-content: space-between; }
.dash-m .side span.on { background: rgba(125, 200, 85, .14); color: #fff; }
.dash-m .side span b { background: var(--warn-line); color: var(--ink); border-radius: 9px; padding: 0 5px; font-size: 9px; }
.dash-m .main { padding: 14px 16px; background: var(--cream); display: flex; flex-direction: column; gap: 10px; }
.dash-m h5 { font: 650 17px var(--serif); margin: 0; }
.dash-m .att { background: var(--warn-bg); border: 1.5px solid var(--warn-line); border-radius: 10px; padding: 8px 10px; }
.dash-m .att b { color: var(--warn-ink); font-size: 11.5px; }
.dash-m .att div { display: flex; justify-content: space-between; align-items: center; margin-top: 5px; font-size: 10.8px; }
.dash-m .att em { font-style: normal; background: var(--ink); color: #fff; border-radius: 5px; padding: 1px 7px; font-size: 9.5px; font-weight: 800; }
.dash-m .att em.g { background: var(--green); }
.dash-m .tl { display: grid; grid-template-columns: repeat(3, 1fr); gap: 8px; }
.dash-m .tl div { background: #fff; border: 1px solid var(--line); border-radius: 9px; padding: 8px 10px; }
.dash-m .tl strong { display: block; font: 650 19px var(--serif); }
.dash-m .tl strong.g { color: var(--green); }
.dash-m .tl small { color: var(--muted); font-size: 9.8px; }
.dash-m .chart-m { background: #fff; border: 1px solid var(--line); border-radius: 9px; padding: 9px 12px 6px; }
.dash-m .chart-m b { font-size: 10.5px; }
.dash-m .bars { display: flex; align-items: flex-end; gap: 12px; height: 82px; padding-top: 6px; }
.dash-m .bars div { flex: 1; display: flex; flex-direction: column; justify-content: flex-end; height: 100%; gap: 2px; }
.dash-m .bars i { display: block; background: #2F7A3A; border-radius: 3px 3px 0 0; transform-origin: bottom; }
.dash-m .bars i.a { background: #D9A441; border-radius: 3px; }
.dash-m .bars span { font-size: 9px; color: var(--muted); text-align: center; }
.reveal.in .dash-m .bars i { animation: grow 1s cubic-bezier(.2, .8, .2, 1) both; }
@keyframes grow { from { transform: scaleY(0); } }

/* ───────── Hero ───────── */
.hero.fx { position: relative; overflow: hidden; padding: 72px 0 110px; }
.hero.fx::before {
  content: ''; position: absolute; inset: -20% -10% auto auto; width: 900px; height: 900px; pointer-events: none;
  background: radial-gradient(closest-side, rgba(75, 177, 52, .28), transparent 70%);
  animation: drift 14s ease-in-out infinite alternate;
}
.hero.fx::after {
  content: ''; position: absolute; inset: 0; pointer-events: none;
  background-image: radial-gradient(rgba(255, 255, 255, .07) 1px, transparent 1.3px);
  background-size: 22px 22px;
  -webkit-mask-image: radial-gradient(70% 80% at 75% 45%, #000 0%, transparent 75%);
  mask-image: radial-gradient(70% 80% at 75% 45%, #000 0%, transparent 75%);
}
.hero.fx .wrap { position: relative; z-index: 1; }
@keyframes drift { from { transform: translate(0, 0); } to { transform: translate(-80px, 60px); } }
.glow-green { position: absolute; width: 520px; height: 520px; border-radius: 50%; filter: blur(70px); background: radial-gradient(circle, rgba(2, 113, 67, .5), transparent 70%); left: -180px; bottom: -260px; pointer-events: none; }
.hero-stage { position: relative; display: flex; justify-content: center; padding: 10px 0; }
.hero-stage .device { --w: 318px; transform: rotate(-2deg); }
.float-card { position: absolute; z-index: 3; background: rgba(255, 255, 255, .96); color: var(--ink); border-radius: 14px; padding: 10px 14px 10px 10px; display: flex; gap: 10px; align-items: center; font-size: 13px; line-height: 1.3; box-shadow: 0 18px 40px -12px rgba(0, 0, 0, .45); animation: bob 6s ease-in-out infinite; white-space: nowrap; }
.float-card .ic { width: 34px; height: 34px; border-radius: 10px; display: grid; place-items: center; color: #fff; background: var(--gradient); flex: none; }
.float-card .ic.amber { background: linear-gradient(180deg, #F0C062, #D9A441); }
.float-card .ic.dark { background: var(--ink); }
.float-card b { display: block; font-size: 13px; }
.float-card small { color: var(--muted); font-size: 11.5px; }
.float-card.a { top: 13%; left: -27%; }
.float-card.b { top: 30%; right: -24%; animation-delay: -2s; }
.float-card.c { bottom: 6%; left: -16%; animation-delay: -4s; }
@keyframes bob { 0%, 100% { transform: translateY(0); } 50% { transform: translateY(-8px); } }
.trust { display: flex; flex-wrap: wrap; gap: .5rem 1.2rem; margin-top: 1.8rem; color: rgba(255, 255, 255, .6); font-size: .88rem; font-weight: 700; }
.trust span { display: inline-flex; align-items: center; gap: .4rem; }
.trust i { display: inline-flex; color: var(--lime); }
.trust svg { color: var(--lime); }

/* ───────── Section layouts ───────── */
.showcase { display: grid; grid-template-columns: 1fr 1fr; gap: 64px; align-items: center; }
.showcase.flip > :first-child { order: 2; }
.showcase .stage { position: relative; display: flex; justify-content: center; padding: 30px 0; }
.stage::before { content: ''; position: absolute; width: 78%; aspect-ratio: 1; border-radius: 50%; background: radial-gradient(circle, rgba(75, 177, 52, .18), transparent 68%); top: 50%; left: 50%; transform: translate(-50%, -50%); z-index: 0; }
.stage > * { position: relative; z-index: 1; }
.pair { display: flex; gap: 22px; align-items: flex-end; justify-content: center; }
.pair .device { --w: 262px; }
.pair .device:last-child { margin-bottom: 40px; }
.cmd-chips { display: flex; flex-wrap: wrap; gap: .5rem; margin: 1.2rem 0; }
.cmd-chips span { background: #fff; color: var(--ink); border: 1px solid var(--line); border-radius: 10px; padding: .45rem .7rem; font-size: .92rem; font-weight: 600; }
.bg-dark .cmd-chips span { background: rgba(255, 255, 255, .06); color: rgba(255, 255, 255, .88); border-color: rgba(255, 255, 255, .14); }
.bg-dark .cmd-chips b { background: var(--lime); color: var(--ink); }
.cmd-chips b { display: inline-block; min-width: 2.2em; text-align: center; background: var(--ink); color: #fff; border-radius: 6px; padding: .05rem .4rem; margin-right: .35rem; font-size: .82rem; }
.vtimeline { list-style: none; padding: 0; margin: 0; position: relative; }
.vtimeline::before { content: ''; position: absolute; left: 19px; top: 18px; bottom: 18px; width: 2px; background: linear-gradient(180deg, var(--green), var(--lime)); opacity: .35; }
.vtimeline li { position: relative; display: flex; gap: 16px; align-items: flex-start; padding: 10px 0; }
.vtimeline .dot { width: 40px; height: 40px; border-radius: 12px; background: #fff; border: 1.5px solid var(--line); display: grid; place-items: center; color: var(--green); flex: none; box-shadow: 0 4px 12px -6px rgba(23, 27, 31, .25); }
.vtimeline li.last .dot { background: var(--sage); }
.vtimeline .when { font-weight: 800; color: var(--green); font-size: .9rem; }
.vtimeline .what { font-size: 1.05rem; }
.ladder { display: grid; grid-template-columns: repeat(4, 1fr); gap: 14px; position: relative; margin-top: 8px; }
.ladder::before { content: ''; position: absolute; top: 25px; left: 6%; right: 6%; height: 3px; background: linear-gradient(90deg, #7DC855, #D9A441, #E08676, #171B1F); border-radius: 3px; opacity: .55; }
.ladder .rung { position: relative; text-align: left; }
.ladder .knob { width: 52px; height: 52px; border-radius: 50%; display: grid; place-items: center; background: #fff; border: 3px solid var(--sage); color: var(--green); margin-bottom: .8rem; box-shadow: 0 6px 18px -8px rgba(23, 27, 31, .3); }
.ladder .rung:nth-child(2) .knob { color: #A8781F; }
.ladder .rung:nth-child(3) .knob { color: var(--urgent-ink); }
.ladder .rung:nth-child(4) .knob { background: var(--ink); color: var(--lime); border-color: var(--ink); }
.ladder .when { font: 650 1.3rem var(--serif); color: var(--green); }
.ladder .rung:nth-child(4) .when { color: var(--ink); }
.icon-badge { width: 46px; height: 46px; border-radius: 14px; display: grid; place-items: center; color: #fff; background: var(--gradient); box-shadow: 0 10px 20px -10px rgba(2, 113, 67, .8); margin-bottom: 1rem; }
.icon-badge.soft { background: var(--sage); color: var(--green); box-shadow: none; }
.after-card, .role-card, .problem-card, .compare-card { transition: transform .25s ease, box-shadow .25s ease; }
.after-card:hover, .role-card:hover, .problem-card:hover { transform: translateY(-3px); box-shadow: 0 18px 40px -22px rgba(23, 27, 31, .35); }
.compare-card.win { position: relative; overflow: hidden; }
.compare-card.win::before { content: ''; position: absolute; inset: -40% -20% auto auto; width: 260px; height: 260px; background: radial-gradient(circle, rgba(75, 177, 52, .35), transparent 70%); }
.step .num { background: var(--gradient); box-shadow: 0 10px 20px -10px rgba(2, 113, 67, .8); }
.steps-line { position: relative; }
.steps-line::before { content: ''; position: absolute; top: 23px; left: 46px; right: 12%; border-top: 2px dashed rgba(47, 122, 58, .35); }
.owner-stage { position: relative; padding: 10px 0 40px; }
.owner-stage .device { --w: 230px; position: absolute; right: -30px; bottom: -10px; }
.owner-stage .browser { margin-right: 150px; }
.cta-band.fx { position: relative; overflow: hidden; }
.cta-band.fx::before { content: ''; position: absolute; width: 900px; height: 900px; left: 50%; top: 50%; transform: translate(-50%, -50%); background: radial-gradient(closest-side, rgba(75, 177, 52, .22), transparent 70%); pointer-events: none; }
.cta-band.fx .wrap { position: relative; }

/* Scroll reveal */
.reveal { opacity: 0; transform: translateY(18px); transition: opacity .7s ease, transform .7s cubic-bezier(.2, .8, .2, 1); }
.reveal.in { opacity: 1; transform: none; }
.reveal.d1 { transition-delay: .08s; } .reveal.d2 { transition-delay: .16s; } .reveal.d3 { transition-delay: .24s; } .reveal.d4 { transition-delay: .32s; }

@media (max-width: 1000px) {
  .showcase { grid-template-columns: 1fr; gap: 28px; }
  .showcase.flip > :first-child { order: 0; }
  .owner-stage .browser { margin-right: 0; }
  .owner-stage .device { display: none; }
  .float-card.a { left: 0; } .float-card.b { right: 0; } .float-card.c { left: 2%; }
  .ladder { grid-template-columns: 1fr 1fr; } .ladder::before { display: none; }
  .steps-line::before { display: none; }
}
@media (max-width: 600px) {
  .float-card { display: none; }
  .hero-stage .device { --w: 280px; transform: none; }
  .pair .device { --w: 230px; } .pair .device:first-child { display: none; } .pair .device:last-child { margin-bottom: 0; }
  .dash-m { grid-template-columns: 1fr; } .dash-m .side { display: none; }
  .ladder { grid-template-columns: 1fr; }
}
@media (prefers-reduced-motion: reduce) {
  .reveal { opacity: 1; transform: none; transition: none; }
  .device .seq { opacity: 1; transform: none; animation: none !important; }
  .device .seq.typing { display: none !important; }
  .float-card, .hero.fx::before { animation: none; }
}
.owner-stage .dash-m .main { padding-right: 110px; }
@media (max-width: 1000px) { .owner-stage .dash-m .main { padding-right: 16px; } }
.browser-bar .url { white-space: nowrap; overflow: hidden; text-overflow: ellipsis; min-width: 0; }

/* ═════════ Inner pages ═════════ */
.page-hero.fx { position: relative; overflow: hidden; background: var(--ink); color: #fff; padding: 84px 0 76px; }
.page-hero.fx::before { content: ''; position: absolute; width: 760px; height: 760px; right: -180px; top: -320px; pointer-events: none; background: radial-gradient(closest-side, rgba(75, 177, 52, .3), transparent 70%); animation: drift 14s ease-in-out infinite alternate; }
.page-hero.fx::after { content: ''; position: absolute; inset: 0; pointer-events: none; background-image: radial-gradient(rgba(255, 255, 255, .07) 1px, transparent 1.3px); background-size: 22px 22px; -webkit-mask-image: radial-gradient(60% 90% at 85% 20%, #000 0%, transparent 75%); mask-image: radial-gradient(60% 90% at 85% 20%, #000 0%, transparent 75%); }
.page-hero.fx .wrap { position: relative; z-index: 1; }
.page-hero.fx h1 { color: #fff; max-width: 860px; }
.page-hero.fx .eyebrow { color: var(--lime); }
.page-hero.fx .lede { color: rgba(255, 255, 255, .74); }
.page-hero.fx.tall { padding-bottom: 130px; }
.page-hero.compact { padding: 64px 0 56px; }
.hero-split { display: grid; grid-template-columns: 1.15fr .85fr; gap: 48px; align-items: center; }
.overlap { margin-top: -84px; position: relative; z-index: 2; }
@media (max-width: 900px) { .hero-split { grid-template-columns: 1fr; } .hero-split .stage { display: none; } }

/* Pricing */
.plan { position: relative; box-shadow: 0 24px 50px -36px rgba(23, 27, 31, .35); transition: transform .25s ease, box-shadow .25s ease; }
.plan:hover { transform: translateY(-4px); box-shadow: 0 30px 60px -34px rgba(23, 27, 31, .45); }
.plan.featured { border: 2px solid transparent; background: linear-gradient(#fff, #fff) padding-box, var(--gradient) border-box; box-shadow: 0 40px 80px -40px rgba(2, 113, 67, .55); }
@media (min-width: 701px) { .plan.featured { transform: translateY(-14px); } .plan.featured:hover { transform: translateY(-18px); } }
.ribbon { position: absolute; top: -13px; left: 50%; transform: translateX(-50%); background: var(--gradient); color: #fff; font-size: .74rem; font-weight: 900; letter-spacing: .1em; text-transform: uppercase; padding: .32rem .8rem; border-radius: 99px; box-shadow: 0 8px 18px -8px rgba(2, 113, 67, .8); white-space: nowrap; }
.included { display: grid; grid-template-columns: repeat(5, 1fr); gap: 14px; }
.included > div { background: #fff; border: 1px solid var(--line); border-radius: var(--radius); padding: 1.1rem; font-weight: 700; font-size: .95rem; }
.included .icon-badge { width: 40px; height: 40px; border-radius: 12px; margin-bottom: .7rem; }
@media (max-width: 1000px) { .included { grid-template-columns: repeat(2, 1fr); } }
.faq details { transition: box-shadow .2s ease; }
.faq details[open] { box-shadow: 0 18px 40px -28px rgba(23, 27, 31, .35); border-color: #CFE2CB; }
.faq summary { list-style: none; display: flex; justify-content: space-between; align-items: center; gap: 1rem; }
.faq summary::-webkit-details-marker { display: none; }
.faq summary::after { content: '+'; font-size: 1.4rem; font-weight: 400; color: var(--green); transition: transform .2s ease; }
.faq details[open] summary::after { transform: rotate(45deg); }

/* About */
.founder { display: flex; gap: 1rem; align-items: center; }
.founder .avatar { width: 64px; height: 64px; font-size: 1.4rem; box-shadow: 0 12px 24px -10px rgba(2, 113, 67, .7); }
.product-card { background: #fff; border: 1px solid var(--line); border-radius: var(--radius); padding: 1.5rem; position: relative; overflow: hidden; }
.product-card .wm { font: 800 1.6rem/1 var(--sans); letter-spacing: -.02em; color: var(--green); display: flex; align-items: baseline; gap: .45rem; margin-bottom: .8rem; }
.product-card .wm span { font-size: .8rem; letter-spacing: .3em; color: var(--ink); font-weight: 800; }
.product-card.now { background: var(--ink); color: #fff; border-color: var(--ink); }
.product-card.now .wm span { color: #fff; }
.product-card.now .muted { color: rgba(255, 255, 255, .7); }
.product-card.now::before { content: ''; position: absolute; width: 280px; height: 280px; right: -90px; top: -110px; background: radial-gradient(circle, rgba(75, 177, 52, .35), transparent 70%); }
.product-card .pill { position: absolute; top: 1.2rem; right: 1.2rem; }

/* Contact */
.contact-rows { display: grid; gap: .9rem; margin: 1.4rem 0; }
.contact-rows div { display: flex; gap: .8rem; align-items: center; }
.contact-rows .icon-badge { width: 42px; height: 42px; margin: 0; border-radius: 12px; }
.form-card { box-shadow: 0 40px 80px -40px rgba(23, 27, 31, .45); border: 0; padding: 1.8rem; }
.next-steps { counter-reset: n; list-style: none; padding: 0; margin: 0; display: grid; gap: .8rem; }
.next-steps li { counter-increment: n; display: flex; gap: .8rem; align-items: flex-start; }
.next-steps li::before { content: counter(n); width: 28px; height: 28px; border-radius: 50%; background: var(--gradient); color: #fff; font-weight: 900; font-size: .85rem; display: grid; place-items: center; flex: none; }

/* Auth pages */
.auth-side { position: relative; overflow: hidden; }
.auth-side::before { content: ''; position: absolute; width: 700px; height: 700px; left: -200px; bottom: -340px; background: radial-gradient(closest-side, rgba(75, 177, 52, .32), transparent 70%); pointer-events: none; }
.auth-side::after { content: ''; position: absolute; inset: 0; pointer-events: none; background-image: radial-gradient(rgba(255, 255, 255, .06) 1px, transparent 1.3px); background-size: 22px 22px; -webkit-mask-image: radial-gradient(70% 60% at 50% 55%, #000, transparent 75%); mask-image: radial-gradient(70% 60% at 50% 55%, #000, transparent 75%); }
.auth-side > * { position: relative; z-index: 1; }
.auth-visual { display: flex; justify-content: center; margin: 2rem 0; position: relative; }
.auth-visual .device { --w: 250px; transform: rotate(-3deg); }
.auth-visual .float-card { white-space: normal; max-width: 220px; }
.auth-visual .float-card.a { top: 14%; left: 2%; }
.auth-visual .float-card.b { top: auto; bottom: 16%; right: 0; }
@media (max-width: 1200px) { .auth-visual .float-card { display: none; } }
.auth-main .auth-box { background: #fff; border: 1px solid var(--line); border-radius: 20px; padding: 2rem; box-shadow: 0 40px 80px -50px rgba(23, 27, 31, .4); }
@media (max-width: 860px) { .auth-main .auth-box { border: 0; box-shadow: none; padding: 0; background: transparent; } }

/* Legal */
.prose-card { background: #fff; border: 1px solid var(--line); border-radius: 20px; padding: 2.4rem 2.6rem; max-width: 820px; box-shadow: 0 30px 60px -45px rgba(23, 27, 31, .35); }
.prose-card h2 { font-size: 1.35rem; margin-top: 2rem; padding-top: 1.4rem; border-top: 1px solid var(--line); }
.prose-card h2:first-of-type { border-top: 0; padding-top: 0; }
.prose-card li { margin-bottom: .45rem; }
@media (max-width: 600px) { .prose-card { padding: 1.4rem; } }

/* 404 */
.lost { min-height: calc(100vh - 72px); display: grid; align-items: center; padding: 60px 0; }
.auth-side > a img { width: 190px; }
.contact-grid { align-items: start; grid-template-columns: .9fr 1.1fr; }
@media (max-width: 860px) { .contact-grid { grid-template-columns: 1fr; } .contact-grid > div.card { order: 2; } .contact-grid > form { order: 1; } }
.form-card .grid-2 > .field { min-width: 0; }

/* ═════════ Phones on dark backgrounds ═════════
   A dark phone on a dark page loses its edges. Three things separate it:
   1. a lighter "titanium" frame with a crisp rim of light around the outside,
   2. a soft green backlight glowing behind the phone,
   3. a deeper drop shadow underneath. */
:is(.bg-dark, .page-hero.fx, .auth-side) .device {
  background: linear-gradient(150deg, #6B747E 0%, #343B42 22%, #1C2025 55%, #2E343B 82%, #59616A 100%);
  box-shadow:
    0 0 0 1px rgba(255, 255, 255, .22),
    inset 0 0 0 1.5px rgba(255, 255, 255, .28),
    inset 0 0 0 5px #08090A,
    0 0 0 6px rgba(255, 255, 255, .025),
    0 0 70px 6px rgba(125, 200, 85, .22),
    0 50px 100px -20px rgba(0, 0, 0, .85);
}
:is(.bg-dark, .page-hero.fx, .auth-side) .device::before,
:is(.bg-dark, .page-hero.fx, .auth-side) .device::after { background: linear-gradient(90deg, #2A3036, #7A838C); }
:is(.bg-dark, .page-hero.fx, .auth-side) .device::before { box-shadow: 0 -52px 0 0 #59616A; }
/* Backlight spot behind the phone */
:is(.bg-dark, .page-hero.fx, .auth-side) :is(.stage, .hero-stage, .auth-visual)::before {
  content: ''; position: absolute; z-index: 0; pointer-events: none;
  width: 520px; height: 520px; left: 50%; top: 50%; transform: translate(-50%, -50%);
  border-radius: 50%; background: radial-gradient(circle, rgba(125, 200, 85, .26) 0%, rgba(75, 177, 52, .12) 38%, transparent 68%);
}
:is(.bg-dark, .page-hero.fx, .auth-side) :is(.stage, .hero-stage, .auth-visual) > * { position: relative; z-index: 1; }
:is(.bg-dark, .page-hero.fx, .auth-side) :is(.stage, .hero-stage, .auth-visual) > .float-card { position: absolute; z-index: 3; }

/* "When customers call" row on the texting section */
.call-row-title { font-family: var(--sans); font-weight: 800; font-size: 1.05rem; color: #fff; margin: 1.6rem 0 .8rem; letter-spacing: 0; }
.call-row { display: grid; grid-template-columns: repeat(3, 1fr); gap: 10px; }
.call-row > div { background: rgba(255, 255, 255, .05); border: 1px solid rgba(255, 255, 255, .12); border-radius: 14px; padding: .9rem; display: flex; flex-direction: column; gap: .25rem; color: #fff; }
.call-row .icon-badge { width: 34px; height: 34px; border-radius: 10px; margin-bottom: .35rem; }
.call-row b { font-size: .95rem; }
.call-row small { color: rgba(255, 255, 255, .65); font-size: .84rem; line-height: 1.4; }
@media (max-width: 700px) { .call-row { grid-template-columns: 1fr; } .call-row > div { flex-direction: row; flex-wrap: wrap; align-items: center; gap: .2rem .6rem; } .call-row .icon-badge { margin: 0; } .call-row small { flex-basis: 100%; padding-left: 42px; margin-top: -.3rem; } }

/* ───────── Guided tour (public site; the full demo is invite-only) ───────── */
.tour-bg { position: fixed; inset: 0; z-index: 100; background: rgba(15, 18, 21, .72); backdrop-filter: blur(4px); display: grid; place-items: center; padding: 20px; animation: tourFade .2s ease; }
@keyframes tourFade { from { opacity: 0; } }
.tour { position: relative; width: 100%; max-width: 920px; max-height: calc(100vh - 40px); overflow-y: auto; background: var(--cream, #F6F5F0); border-radius: 22px; display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 1fr); box-shadow: 0 40px 100px rgba(0, 0, 0, .45); }
.tour-x { position: absolute; top: 12px; right: 12px; z-index: 2; width: 38px; height: 38px; border-radius: 50%; border: 1px solid rgba(23, 27, 31, .12); background: #fff; display: grid; place-items: center; cursor: pointer; color: var(--ink, #171B1F); }
.tour-visual { background: radial-gradient(120% 90% at 30% 20%, #2A3A2E 0%, #171B1F 70%); display: grid; place-items: center; padding: 32px 20px; min-height: 520px; border-radius: 22px 0 0 22px; }
.tour-visual .device { --w: 250px; }
.tour-browser { width: 100%; max-width: 380px; }
.tour-browser .dash-m { grid-template-columns: 1fr; min-height: 0; }
.tour-side { padding: 48px 36px 32px; display: flex; flex-direction: column; }
.tour-copy h2 { font-size: 1.9rem; margin: .4rem 0 .8rem; }
.tour-copy p { font-size: 1.05rem; line-height: 1.55; }
.tour-note { margin: auto 0 1rem; padding-top: 1rem; }
.tour-nav { display: flex; align-items: center; justify-content: space-between; gap: 12px; }
.tour-nav [data-prev]:disabled { visibility: hidden; }
.tour-dots { display: flex; gap: 8px; }
.tour-dots button { width: 9px; height: 9px; padding: 0; border-radius: 50%; border: 0; background: rgba(23, 27, 31, .2); cursor: pointer; }
.tour-dots button.on { background: var(--green, #4BB134); width: 24px; border-radius: 5px; }
.tour-end { margin-top: 1rem; }
@media (max-width: 760px) {
  .tour { grid-template-columns: 1fr; }
  .tour-visual { min-height: 0; padding: 24px 12px; border-radius: 22px 22px 0 0; }
  .tour-visual .device { --w: 210px; }
  .tour-side { padding: 24px 22px 22px; }
  .tour-copy h2 { font-size: 1.5rem; }
}
