@font-face {
  font-family: "Noto Sans Thai Local";
  src: url("../fonts/NotoSansThai-Regular.ttf") format("truetype");
  font-weight: 400;
  font-style: normal;
  font-display: swap;
}

@font-face {
  font-family: "Noto Sans Thai Local";
  src: url("../fonts/NotoSansThai-Bold.ttf") format("truetype");
  font-weight: 700;
  font-style: normal;
  font-display: swap;
}

:root {
  color-scheme: light;
  --navy-950: #10183f;
  --navy-900: #192459;
  --navy-800: #24356f;
  --navy-700: #385087;
  --ink: #17213f;
  --ink-soft: #4b5875;
  --ink-muted: #5d6984;
  --sky-500: #79a9d9;
  --sky-400: #8fb9e4;
  --sky-300: #a9c9e8;
  --sky-200: #cbdff2;
  --sky-100: #e8f1fa;
  --sky-50: #f4f8fd;
  --lavender: #bd82d2;
  --lavender-soft: #f3e9f7;
  --gold: #f2b232;
  --gold-deep: #d99a1e;
  --line-green: #06c755;
  --line-green-deep: #05a648;
  --bubble-me: #b9ef8f;
  --white: #ffffff;
  --surface: #f8faff;
  --line: #dbe4f0;
  --line-strong: #bdcce0;
  --danger: #963b49;
  --success: #255f58;
  --success-soft: #e7f4f2;
  --cover-background: linear-gradient(90deg, #192459 0%, #202d64 56%, #34336f 100%);
  --ease: cubic-bezier(0.16, 1, 0.3, 1);
  --header-h: 72px;
  --z-content: 1;
  --z-header: 20;
  --z-menu: 30;
  --z-toast: 50;
}

* { box-sizing: border-box; }

html { scroll-padding-top: calc(var(--header-h) + 12px); -webkit-text-size-adjust: 100%; }
@media (prefers-reduced-motion: no-preference) {
  html:not(.lenis) { scroll-behavior: smooth; }
}

/* Lenis smooth scroll (desktop only, loaded by hub-home.js) */
html.lenis, html.lenis body { height: auto; }
.lenis.lenis-smooth { scroll-behavior: auto !important; }
.lenis.lenis-stopped { overflow: hidden; }

body { margin: 0; }

.saas-body {
  min-height: 100vh;
  color: var(--ink);
  background: var(--white);
  font-family: "Noto Sans Thai Local", "Leelawadee UI", Tahoma, system-ui, sans-serif;
  font-size: 16px;
  line-height: 1.7;
  -webkit-font-smoothing: antialiased;
  overflow-x: clip;
}

.saas-body a { color: inherit; text-decoration: none; }
.saas-body img { max-width: 100%; display: block; }
.saas-body :where(h1, h2, h3, p, li, dd, strong, small) { overflow-wrap: anywhere; }
.saas-body button, .saas-body select, .saas-body input { font: inherit; }
.saas-body :where(h1, h2, h3) { margin: 0; line-height: 1.28; text-wrap: balance; }
.saas-body p { margin: 0; text-wrap: pretty; }
.saas-body figure { margin: 0; }

:focus-visible { outline: 3px solid var(--gold); outline-offset: 3px; border-radius: 6px; }

.sprite { position: absolute; width: 0; height: 0; overflow: hidden; }
.sr-only { position: absolute; width: 1px; height: 1px; padding: 0; margin: -1px; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; border: 0; }
.nowrap { white-space: nowrap; }

.skip-link {
  position: fixed; top: 12px; left: 12px; z-index: var(--z-toast);
  padding: 10px 16px; border-radius: 10px; background: var(--white); color: var(--navy-900);
  font-weight: 700; transform: translateY(-160%); transition: transform .2s var(--ease);
}
.skip-link:focus { transform: none; }

.shell { width: min(1180px, 100% - 32px); margin-inline: auto; }

/* ---------- buttons ---------- */
.button {
  display: inline-flex; align-items: center; justify-content: center; gap: 10px;
  min-height: 48px; padding: 0 22px; border-radius: 999px; border: 0;
  font-weight: 700; cursor: pointer; white-space: nowrap;
  transition: transform .25s var(--ease), background-color .2s, box-shadow .25s var(--ease);
}
.button svg { width: 22px; height: 22px; fill: currentColor; flex-shrink: 0; }
.button:hover { transform: translateY(-2px); }
.button:active { transform: translateY(0) scale(.98); }
.button--small { min-height: 40px; padding: 0 18px; font-size: .95rem; }
.button--small svg { width: 18px; height: 18px; }
.button--large { min-height: 58px; padding: 0 30px; font-size: 1.1rem; }
.button--block { width: 100%; }
.saas-body .button--primary { background: var(--navy-900); color: var(--white); }
.saas-body .button--primary:hover { background: var(--navy-800); }
.saas-body .button--secondary { background: var(--white); color: var(--navy-900); box-shadow: inset 0 0 0 1.5px var(--line-strong); }
.saas-body .button--secondary:hover { box-shadow: inset 0 0 0 1.5px var(--navy-700); }
.saas-body .button--gold { background: var(--gold); color: var(--navy-950); box-shadow: 0 5px 0 -1px var(--gold-deep); }
.saas-body .button--gold:hover { background: #f5bd4a; }
.saas-body .button--line { background: var(--line-green); color: var(--navy-950); box-shadow: 0 5px 0 -1px var(--line-green-deep); }
.saas-body .button--line:hover { background: #1fd36a; }

/* ---------- header ---------- */
.site-header {
  position: fixed; inset: 0 0 auto; z-index: var(--z-header);
  height: var(--header-h); color: var(--white);
  transition: background-color .35s var(--ease), color .35s var(--ease), box-shadow .35s var(--ease);
}
.site-header::before {
  content: ""; position: absolute; inset: 0 0 -24px; z-index: -1; pointer-events: none;
  background: linear-gradient(to bottom, rgb(16 24 63 / .75), transparent);
  transition: opacity .35s var(--ease);
}
.site-header.is-scrolled {
  color: var(--ink);
  background: rgb(255 255 255 / .9);
  -webkit-backdrop-filter: saturate(1.6) blur(14px);
  backdrop-filter: saturate(1.6) blur(14px);
  box-shadow: 0 1px 0 var(--line);
}
.site-header.is-scrolled::before { opacity: 0; }
.header-inner { height: 100%; display: flex; align-items: center; gap: 24px; }

.brand { display: inline-flex; align-items: center; gap: 10px; flex-shrink: 0; }
.brand img { width: 60px; height: 40px; object-fit: contain; }
.brand-copy { display: grid; line-height: 1.2; }
.brand-copy strong { font-size: 1.12rem; letter-spacing: -.01em; }
.brand-copy small { font-size: .74rem; opacity: .75; }

.header-menu { display: flex; align-items: center; gap: 28px; margin-left: auto; }
.main-nav { display: flex; gap: 24px; }
.main-nav a, .login-link { font-size: .95rem; font-weight: 700; opacity: .88; transition: opacity .2s; }
.main-nav a:hover, .login-link:hover { opacity: 1; }
.header-actions { display: flex; align-items: center; gap: 18px; }
.saas-body .site-header:not(.is-scrolled) .button--primary { background: var(--gold); color: var(--navy-950); }

.menu-toggle {
  display: none; margin-left: auto; width: 46px; height: 46px; border: 0; border-radius: 12px;
  background: transparent; color: inherit; cursor: pointer; place-content: center; gap: 5px;
}
.menu-toggle span:not(.sr-only) { display: block; width: 22px; height: 2px; border-radius: 2px; background: currentColor; transition: transform .3s var(--ease), opacity .2s; }
.menu-toggle[aria-expanded="true"] span:nth-of-type(2) { transform: translateY(7px) rotate(45deg); }
.menu-toggle[aria-expanded="true"] span:nth-of-type(3) { opacity: 0; }
.menu-toggle[aria-expanded="true"] span:nth-of-type(4) { transform: translateY(-7px) rotate(-45deg); }

@media (max-width: 1100px) {
  .menu-toggle { display: grid; }
  .header-menu {
    position: fixed; top: var(--header-h); left: 0; right: 0; z-index: var(--z-menu);
    flex-direction: column; align-items: stretch; gap: 8px; margin: 0;
    padding: 12px 16px 20px; background: var(--white); color: var(--ink);
    box-shadow: 0 18px 30px -18px rgb(16 24 63 / .35);
    visibility: hidden; opacity: 0; transform: translateY(-8px);
    transition: opacity .25s var(--ease), transform .3s var(--ease), visibility 0s .3s;
  }
  .header-menu.is-open { visibility: visible; opacity: 1; transform: none; transition-delay: 0s; }
  .main-nav { flex-direction: column; gap: 0; }
  .main-nav a { padding: 14px 4px; border-bottom: 1px solid var(--line); opacity: 1; }
  .header-actions { justify-content: space-between; padding-top: 10px; }
  .site-header:has(.is-open) { color: var(--ink); background: var(--white); }
  .site-header:has(.is-open)::before { opacity: 0; }
  .saas-body .site-header:not(.is-scrolled) .header-menu .button--primary { background: var(--navy-900); color: var(--white); }
}

/* ---------- toasts ---------- */
.toast-stack { position: fixed; top: calc(var(--header-h) + 12px); right: 16px; z-index: var(--z-toast); display: grid; gap: 8px; max-width: min(420px, calc(100% - 32px)); }
.toast { padding: 12px 16px; border-radius: 12px; background: var(--white); color: var(--success); font-weight: 700; box-shadow: 0 8px 24px -12px rgb(16 24 63 / .45); }
.toast--error { color: var(--danger); }

/* ---------- hero: pinned 3D stage; scrolling flies into the house ---------- */
:root { --out: 0; --glow: 0; --flash: 0; }
.hero { position: relative; height: 190svh; background: var(--navy-950); }
.hero-stage { position: sticky; top: 0; height: 100svh; overflow: hidden; isolation: isolate; color: var(--white); }
.hero-scene {
  position: absolute; inset: 0; z-index: 0;
  background:
    radial-gradient(60% 70% at 72% 42%, rgb(121 169 217 / .26), transparent 70%),
    radial-gradient(45% 50% at 98% 95%, rgb(189 130 210 / .28), transparent 70%),
    var(--navy-950);
}
.hero-scene canvas { position: absolute; inset: 0; width: 100% !important; height: 100% !important; display: block; }
.scene-fallback {
  position: absolute; inset: 14% 4% 14% 46%;
  background: var(--mark) center / contain no-repeat;
  opacity: 0; transition: opacity .6s var(--ease);
}
.hero-scene.is-fallback .scene-fallback { opacity: 1; }
.hero-shade {
  position: absolute; inset: 0; z-index: 1; pointer-events: none;
  background: linear-gradient(90deg, rgb(16 24 63 / .82) 0%, rgb(16 24 63 / .45) 36%, transparent 58%);
  opacity: calc(1 - var(--out));
}

.hero-layout {
  position: relative; z-index: 2; height: 100%;
  display: flex; align-items: center; justify-content: space-between;
  padding-top: var(--header-h);
}
.hero-copy {
  max-width: 560px;
  opacity: calc(1 - var(--out));
  transform: translateY(calc(var(--out) * -70px));
  filter: blur(calc(var(--out) * 10px));
}
.hero-pill {
  display: inline-flex; align-items: center; gap: 10px;
  padding: 6px 14px 6px 10px; border-radius: 999px;
  background: rgb(255 255 255 / .08); box-shadow: inset 0 0 0 1px rgb(203 223 242 / .22);
  color: var(--sky-200); font-size: .9rem; font-weight: 700;
}
.hero-pill span { width: 8px; height: 8px; border-radius: 50%; background: var(--line-green); box-shadow: 0 0 0 4px rgb(6 199 85 / .2); }
.hero h1 {
  margin: 20px 0 16px;
  font-size: clamp(2.1rem, 4.2vw + .8rem, 4.4rem);
  line-height: 1.2; letter-spacing: -.015em;
}
.hero h1 span { color: var(--gold); }
.hero-lead { max-width: 30em; color: var(--sky-200); font-size: clamp(1.02rem, .4vw + .95rem, 1.2rem); }
.hero-actions { display: flex; flex-wrap: wrap; align-items: center; gap: 14px 22px; margin-top: 30px; }
.hero-alt { color: var(--sky-200) !important; font-weight: 700; border-bottom: 1px solid rgb(203 223 242 / .4); }
.hero-assurances { display: flex; flex-wrap: wrap; gap: 8px 20px; margin: 22px 0 0; padding: 0; list-style: none; color: var(--sky-200); font-size: .92rem; }
.hero-assurances li { display: inline-flex; align-items: center; gap: 8px; }
.hero-assurances li::before { content: ""; width: 14px; height: 8px; border: solid var(--gold); border-width: 0 0 2px 2px; transform: rotate(-45deg) translateY(-2px); }

.hero-chat {
  position: absolute; right: 0; bottom: 7%;
  width: 270px; border-radius: 18px; overflow: hidden;
  background: rgb(232 241 250 / .95); color: var(--ink);
  box-shadow: 0 30px 60px -30px rgb(0 0 0 / .7);
  transform: perspective(900px) rotateY(-12deg) rotateX(4deg) translateY(calc(var(--out) * 80px));
  opacity: calc(1 - var(--out) * 1.6);
}
.hero-chat__head { display: flex; align-items: center; gap: 8px; padding: 9px 14px; background: var(--navy-900); color: var(--white); font-size: .86rem; }
.hero-chat__head i { width: 24px; height: 24px; border-radius: 50%; background: var(--white) url("../vimaansos-mark.svg") center / 86% no-repeat; }
.hero-chat__head small { margin-left: auto; color: #8ff0b5; font-size: .75rem; }
.hero-chat__body { display: grid; gap: 8px; padding: 12px; min-height: 172px; align-content: start; }

.bubble { max-width: 86%; padding: 8px 12px; border-radius: 16px; font-size: .86rem; line-height: 1.5; }
.bubble--me { justify-self: end; background: var(--bubble-me); border-bottom-right-radius: 4px; }
.bubble--ai { justify-self: start; background: var(--white); border-bottom-left-radius: 4px; box-shadow: 0 1px 2px rgb(16 24 63 / .08); }

.mini-card { display: flex; align-items: center; justify-content: space-between; gap: 10px; padding: 10px 12px; border-radius: 12px; background: var(--white); font-size: .84rem; font-weight: 700; box-shadow: 0 1px 2px rgb(16 24 63 / .08); }
.mini-card b { flex-shrink: 0; padding: 4px 12px; border-radius: 999px; font-size: .8rem; }
.mini-card__action { background: var(--line-green); color: var(--navy-950); }
.mini-card__done { display: none; color: var(--success); background: var(--success-soft); }
.mini-card.is-done .mini-card__action { display: none; }
.mini-card.is-done .mini-card__done { display: inline-block; }

.js .hero-chat [data-beat] { opacity: 0; transform: translateY(8px) scale(.98); transition: opacity .45s var(--ease), transform .55s var(--ease); }
.js .hero-chat [data-beat].is-in { opacity: 1; transform: none; }

.hero-cue {
  position: absolute; left: 50%; bottom: 22px; z-index: 2; translate: -50% 0;
  display: grid; justify-items: center; gap: 8px;
  color: var(--sky-200); font-size: .82rem; font-weight: 700;
  opacity: calc(.85 - var(--out) * 2);
}
.hero-cue span { position: relative; width: 26px; height: 40px; border-radius: 999px; box-shadow: inset 0 0 0 2px rgb(203 223 242 / .5); }
.hero-cue span::after { content: ""; position: absolute; left: 50%; top: 8px; width: 4px; height: 8px; margin-left: -2px; border-radius: 2px; background: var(--sky-200); animation: scroll-cue 1.8s var(--ease) infinite; }
@keyframes scroll-cue { 0% { transform: translateY(0); opacity: 1; } 80% { transform: translateY(12px); opacity: 0; } 100% { opacity: 0; } }

/* warm light from the doorway, then white as we step inside */
.hero-flash {
  position: absolute; inset: 0; z-index: 3; pointer-events: none;
  background: radial-gradient(circle at 50% 55%, rgb(255 236 190 / calc(var(--glow) * .9)), rgb(255 214 130 / calc(var(--glow) * .35)) 45%, transparent 75%);
}
.hero-flash::after { content: ""; position: absolute; inset: 0; background: var(--white); opacity: var(--flash); }

/* ---------- section scaffolding ---------- */
.section-heading { max-width: 680px; margin-bottom: clamp(36px, 5vw, 64px); }
.section-heading--center { margin-inline: auto; text-align: center; }
.section-heading h2, .trust-copy h2, .faq-heading h2, .start-copy h2, .final-cta h2 {
  font-size: clamp(1.9rem, 2.6vw + .9rem, 3.1rem); letter-spacing: -.012em; color: var(--navy-950);
}
.section-heading p { margin-top: 14px; color: var(--ink-soft); font-size: 1.06rem; }

/* headline lines rise out of a mask; padding keeps Thai tone marks inside the mask */
.ln { display: block; overflow: hidden; padding: .22em 0 .08em; margin: -.22em 0 -.08em; }
.ln > span { display: inline-block; }
.lines-pending .ln > span { transform: translateY(110%); }
.lines-in .ln > span { transform: none; transition: transform 1.1s var(--ease); transition-delay: calc(var(--i) * 110ms); }

/* reveal: content is visible by default; JS only defers what is below the fold */
.reveal-pending { opacity: 0; transform: translateY(32px) rotateX(10deg); }
.reveal-in { opacity: 1; transform: none; transition: opacity .8s var(--ease), transform 1s var(--ease); }

/* ---------- no app ---------- */
/* tucked under the hero's last screen and faded in with the white flash, so the fly-in lands on this heading */
.no-app.is-through { pointer-events: auto; }
.no-app { --p: 0; position: relative; z-index: 2; margin-top: -100svh; opacity: var(--flash); pointer-events: none; padding: calc(var(--header-h) + clamp(24px, 4vw, 48px)) 0 clamp(70px, 9vw, 120px); background: var(--white); overflow: hidden; }
.duo { display: flex; justify-content: center; align-items: flex-start; gap: clamp(20px, 6vw, 90px); perspective: 1600px; }
.duo-phone { display: grid; justify-items: center; gap: 22px; }
.duo-phone figcaption { display: grid; text-align: center; color: var(--ink-soft); font-size: .95rem; }
.duo-phone figcaption strong { color: var(--navy-950); font-size: 1.08rem; }
.mini-phone {
  --pw: 260px;
  width: var(--pw); height: calc(var(--pw) * 1.6); padding: 10px; border-radius: 40px;
  background: linear-gradient(145deg, var(--navy-800), var(--navy-950));
  box-shadow: 0 36px 50px -30px rgb(16 24 63 / .55), inset 0 0 0 2px rgb(255 255 255 / .08);
  display: flex; flex-direction: column;
  transition: transform .2s linear;
}
.duo-phone--owner .mini-phone { transform: rotateY(calc(10deg + (1 - var(--p)) * 30deg)) rotateZ(-2deg) translateY(calc((1 - var(--p)) * 50px)); }
.duo-phone--tenant { margin-top: 70px; }
.duo-phone--tenant .mini-phone { transform: rotateY(calc(-10deg - (1 - var(--p)) * 30deg)) rotateZ(2deg) translateY(calc((1 - var(--p)) * 90px)); }
.mini-phone__top { display: flex; align-items: center; gap: 10px; padding: 34px 14px 10px; border-radius: 30px 30px 0 0; background: var(--navy-900); color: var(--white); font-size: .86rem; }
.mini-phone__body { flex: 1; display: grid; align-content: start; gap: 10px; padding: 14px 10px; border-radius: 0 0 30px 30px; background: #a8c3e6; }
.stat-card, .bill-card { display: grid; gap: 4px; padding: 12px 14px; border-radius: 14px; background: var(--white); font-size: .82rem; box-shadow: 0 2px 6px rgb(16 24 63 / .1); }
.stat-card small, .bill-card small { color: var(--ink-muted); }
.stat-card strong { font-size: 1.05rem; color: var(--navy-950); }
.stat-card__bar { height: 8px; border-radius: 999px; background: var(--sky-100); overflow: hidden; }
.stat-card__bar i { display: block; height: 100%; width: calc(40% + var(--p) * 52%); border-radius: inherit; background: linear-gradient(90deg, var(--sky-400), var(--lavender)); }
.bill-card strong { font-size: 1.6rem; line-height: 1.2; color: var(--navy-950); }
.bill-card b { margin-top: 6px; padding: 8px; border-radius: 10px; background: var(--line-green); color: var(--navy-950); text-align: center; }
.paid-chip { justify-self: center; padding: 6px 14px; border-radius: 999px; background: var(--success-soft); color: var(--success); font-weight: 700; font-size: .84rem; }
.no-app-points { display: flex; flex-wrap: wrap; justify-content: center; gap: 12px; margin: clamp(40px, 6vw, 64px) 0 0; padding: 0; list-style: none; }
.no-app-points li { display: inline-flex; align-items: center; gap: 10px; padding: 10px 18px; border-radius: 999px; background: var(--sky-50); color: var(--navy-900); font-weight: 700; }
.no-app-points li::before { content: ""; width: 12px; height: 7px; border: solid var(--line-green-deep); border-width: 0 0 2.5px 2.5px; transform: rotate(-45deg) translateY(-2px); }

/* ---------- how it works ---------- */
.how { padding: clamp(70px, 9vw, 120px) 0 clamp(60px, 8vw, 110px); background: var(--surface); }
.how-grid { display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 1fr); gap: clamp(32px, 6vw, 96px); }
.how-phone-wrap { position: sticky; top: calc(50svh - 300px); height: 600px; display: grid; place-items: center; perspective: 1400px; }
.phone {
  position: relative; width: 300px; height: 600px; padding: 12px; border-radius: 46px;
  background: linear-gradient(145deg, var(--navy-800), var(--navy-950));
  box-shadow: 0 36px 50px -30px rgb(16 24 63 / .5), inset 0 0 0 2px rgb(255 255 255 / .08);
  transform: rotateY(var(--phone-ry, -14deg)) rotateX(6deg);
  transition: transform 1.2s var(--ease);
}
.phone::before { content: ""; position: absolute; top: 22px; left: 50%; width: 80px; height: 22px; margin-left: -40px; border-radius: 999px; background: var(--navy-950); z-index: 2; }
.phone__screen { position: relative; display: flex; flex-direction: column; height: 100%; border-radius: 36px; overflow: hidden; background: #a8c3e6; }
.line-top { display: flex; align-items: center; gap: 10px; padding: 46px 16px 12px; background: var(--navy-900); color: var(--white); font-size: .92rem; }
.line-top span, .mini-phone__top span { font-size: 1.4rem; line-height: 1; }
.line-top i { margin-left: auto; width: 18px; height: 3px; border-radius: 2px; background: currentColor; box-shadow: 0 -6px 0 currentColor, 0 6px 0 currentColor; opacity: .7; }
.line-body { flex: 1; display: grid; align-content: start; gap: 10px; padding: 14px 12px; overflow: hidden; }
.line-body time { justify-self: center; padding: 2px 10px; border-radius: 999px; background: rgb(16 24 63 / .18); color: var(--white); font-size: .72rem; }
.line-input { display: flex; align-items: center; gap: 10px; padding: 10px 14px 22px; background: var(--white); }
.line-input span { flex: 1; padding: 6px 14px; border-radius: 999px; background: var(--sky-50); color: var(--ink-muted); font-size: .85rem; }
.line-input i { width: 26px; height: 26px; border-radius: 50%; background: var(--line-green); }

.flex-card { border-radius: 16px; overflow: hidden; background: var(--white); font-size: .84rem; box-shadow: 0 2px 6px rgb(16 24 63 / .1); }
.flex-card__head { padding: 10px 14px; background: #2563eb; color: var(--white); font-weight: 700; }
.flex-card dl { margin: 0; padding: 8px 14px; }
.flex-card dl div { display: flex; justify-content: space-between; gap: 8px; padding: 4px 0; }
.flex-card dt { color: var(--ink-soft); }
.flex-card dd { margin: 0; font-weight: 700; text-align: right; }
.flex-card dd small { font-weight: 400; color: var(--ink-muted); }
.flex-card__actions, .confirm-card__actions { display: grid; grid-template-columns: 1.3fr 1fr 1fr; gap: 6px; padding: 4px 12px 12px; }
.flex-card__actions b, .confirm-card__actions b { padding: 7px 0; border-radius: 10px; text-align: center; font-size: .8rem; background: var(--sky-100); color: var(--navy-800); }
.flex-card__actions b:first-child, .confirm-card__actions b:first-child { background: var(--line-green); color: var(--navy-950); }
.flex-card__done { display: none; margin: 4px 12px 12px; padding: 8px; border-radius: 10px; background: var(--success-soft); color: var(--success); font-weight: 700; text-align: center; }

.js [data-how-chat] [data-show] { opacity: 0; transform: translateY(14px); transition: opacity .5s var(--ease), transform .6s var(--ease); }
.js [data-how-chat][data-step="0"] [data-show="0"],
.js [data-how-chat][data-step="1"] :is([data-show="0"], [data-show="1"]),
.js [data-how-chat][data-step="2"] [data-show] { opacity: 1; transform: none; }
[data-how-chat][data-step="2"] .flex-card__actions { display: none; }
[data-how-chat][data-step="2"] .flex-card__done { display: block; }

.how-steps { margin: 0; padding: 0; list-style: none; }
.how-step { min-height: 64svh; display: flex; flex-direction: column; justify-content: center; opacity: .3; transition: opacity .5s var(--ease); }
.how-step.is-active { opacity: 1; }
.how-step__num {
  display: grid; place-items: center; width: 52px; height: 52px; margin-bottom: 20px; border-radius: 16px;
  background: var(--sky-100); color: var(--navy-900); font-size: 1.3rem; font-weight: 700;
  transition: background-color .4s, color .4s;
}
.how-step.is-active .how-step__num { background: var(--navy-900); color: var(--gold); }
.how-step h3 { font-size: clamp(1.6rem, 1.6vw + 1rem, 2.3rem); color: var(--navy-950); }
.how-step p { margin-top: 10px; max-width: 26em; color: var(--ink-soft); font-size: 1.1rem; }

/* ---------- commands marquee, tilted into the page ---------- */
.commands { --p: 0; padding: clamp(80px, 10vw, 130px) 0 clamp(90px, 11vw, 150px); background: var(--navy-950); color: var(--white); overflow: hidden; }
.commands .section-heading h2 { color: var(--white); }
.commands .section-heading p { color: var(--sky-200); }
.marquee-stage { perspective: 900px; }
.marquee {
  display: grid; gap: 16px;
  transform: rotateX(16deg) rotateZ(-4deg) translateX(calc((var(--p) - .5) * -160px)) scale(1.08);
  -webkit-mask-image: linear-gradient(90deg, transparent, #000 12%, #000 88%, transparent);
  mask-image: linear-gradient(90deg, transparent, #000 12%, #000 88%, transparent);
}
.marquee__row { display: flex; width: max-content; animation: marquee 46s linear infinite; }
.marquee__row--reverse { animation-direction: reverse; animation-duration: 52s; }
.marquee:hover .marquee__row { animation-play-state: paused; }
.marquee__track { display: flex; gap: 16px; margin: 0; padding: 0 16px 0 0; list-style: none; }
.marquee__track li {
  display: inline-flex; align-items: center; gap: 10px; flex-shrink: 0;
  padding: 14px 22px; border-radius: 999px 999px 999px 6px;
  background: var(--bubble-me); color: var(--navy-950); font-weight: 700; font-size: 1.05rem; white-space: nowrap;
}
.marquee__row--reverse li { border-radius: 999px 999px 6px 999px; background: rgb(255 255 255 / .1); color: var(--white); box-shadow: inset 0 0 0 1px rgb(203 223 242 / .22); }
@keyframes marquee { to { transform: translateX(-50%); } }

/* ---------- trust ---------- */
.trust { padding: clamp(80px, 10vw, 140px) 0; }
.trust-grid { display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 1fr); align-items: center; gap: clamp(40px, 7vw, 110px); }
.trust-visual {
  position: relative; display: grid; place-items: center; padding: clamp(36px, 5vw, 64px) 16px;
  border-radius: 20px; perspective: 1200px;
  background: radial-gradient(70% 70% at 30% 20%, rgb(189 130 210 / .35), transparent 70%), var(--cover-background);
}
.confirm-card {
  width: min(340px, 100%); border-radius: 20px; overflow: hidden; background: var(--white);
  box-shadow: 0 40px 60px -35px rgb(0 0 0 / .65);
  transform: rotateX(var(--tilt-x, 8deg)) rotateY(var(--tilt-y, -10deg));
  transition: transform .9s var(--ease);
}
.confirm-card__head { display: flex; align-items: baseline; justify-content: space-between; gap: 10px; padding: 14px 18px; background: #059669; color: var(--white); font-weight: 700; }
.confirm-card__head small { font-weight: 400; opacity: .9; }
.confirm-card dl { margin: 0; padding: 10px 18px; }
.confirm-card dl div { display: flex; justify-content: space-between; padding: 8px 0; border-bottom: 1px solid var(--line); }
.confirm-card dt { color: var(--ink-soft); }
.confirm-card dd { margin: 0; font-weight: 700; }
.confirm-card .confirm-card__total { border-bottom: 0; }
.confirm-card .confirm-card__total dt { color: var(--ink); font-weight: 700; }
.confirm-card .confirm-card__total dd { font-size: 1.2rem; color: var(--navy-950); }
.confirm-card__actions { gap: 8px; padding: 4px 18px 18px; }
.confirm-card__actions b { padding: 10px 0; font-size: .9rem; }
.trust-visual__note { margin-top: 20px; padding: 6px 14px; border-radius: 999px; background: rgb(255 255 255 / .1); color: var(--sky-200); font-size: .9rem; }

.trust-list { display: grid; gap: 26px; margin: 34px 0 0; padding: 0; list-style: none; }
.trust-list li { display: grid; grid-template-columns: 48px minmax(0, 1fr); gap: 16px; align-items: start; }
.trust-list svg { width: 48px; height: 48px; padding: 12px; border-radius: 14px; background: var(--sky-100); fill: none; stroke: var(--navy-800); stroke-width: 2; stroke-linecap: round; stroke-linejoin: round; }
.trust-list strong { display: block; color: var(--navy-950); font-size: 1.12rem; }
.trust-list p { margin-top: 2px; color: var(--ink-soft); }

/* ---------- start in LINE ---------- */
.start { padding: clamp(80px, 10vw, 130px) 0; background: radial-gradient(60% 80% at 90% 10%, rgb(6 199 85 / .14), transparent 70%), var(--sky-50); }
.start-grid { display: grid; grid-template-columns: minmax(0, 1.2fr) minmax(0, .8fr); align-items: center; gap: clamp(36px, 6vw, 90px); }
.start-copy h2 .hl { color: var(--line-green-deep); }
.start-steps { display: grid; gap: 18px; margin: 32px 0 34px; padding: 0; list-style: none; }
.start-steps li { display: grid; grid-template-columns: 44px minmax(0, 1fr); gap: 16px; align-items: center; }
.start-steps b { display: grid; place-items: center; width: 44px; height: 44px; border-radius: 50%; background: var(--line-green); color: var(--navy-950); font-size: 1.1rem; }
.start-steps span { display: grid; color: var(--ink-soft); }
.start-steps strong { color: var(--navy-950); font-size: 1.12rem; }
.start-qr {
  justify-self: center; display: grid; justify-items: center; gap: 14px;
  padding: 26px; border-radius: 24px; background: var(--white); text-align: center; color: var(--ink-soft);
  box-shadow: 0 30px 50px -30px rgb(16 24 63 / .35);
  transform: perspective(1000px) rotateY(-8deg) rotateX(4deg);
  transition: transform .6s var(--ease);
}
.start-qr:hover { transform: perspective(1000px) rotateY(0) rotateX(0); }
.start-qr img { width: 200px; height: 200px; }
.start-qr span { display: grid; }
.start-qr strong { color: var(--line-green-deep); font-size: 1.1rem; }

/* ---------- pricing ---------- */
.pricing { padding: clamp(80px, 10vw, 130px) 0; background: var(--white); }
.plan-tag { display: inline-block; margin-bottom: 10px !important; padding: 3px 12px; border-radius: 999px; background: var(--sky-100); color: var(--navy-800) !important; font-size: .82rem; font-weight: 700; }
.plans { display: grid; gap: clamp(28px, 4vw, 40px); }
.term-switch { justify-self: center; display: inline-flex; gap: 4px; max-width: 100%; padding: 5px; border-radius: 999px; background: var(--sky-100); }
.term-switch label { position: relative; cursor: pointer; }
.term-switch input { position: absolute; inset: 0; opacity: 0; cursor: pointer; }
.term-switch span { display: flex; align-items: center; justify-content: center; gap: 6px; height: 100%; padding: 10px 18px; border-radius: 999px; color: var(--navy-800); font-weight: 700; text-align: center; transition: background-color .25s var(--ease), color .25s var(--ease); }
.term-switch em { padding: 1px 8px; border-radius: 999px; background: #dcfce7; color: #05683a; font-style: normal; font-size: .78rem; }
.term-switch input:checked + span { background: var(--white); color: var(--navy-950); box-shadow: 0 1px 3px rgb(16 24 63 / .18); }
.term-switch input:focus-visible + span { outline: 2px solid var(--navy-700); outline-offset: 2px; }

.plan-grid { display: grid; grid-template-columns: repeat(auto-fit, minmax(min(290px, 100%), 1fr)); align-items: stretch; gap: 20px; }
.plan { position: relative; display: flex; flex-direction: column; gap: 16px; padding: 30px 26px 28px; border-radius: 16px; background: var(--white); box-shadow: inset 0 0 0 1px var(--line); }
.plan-ribbon { position: absolute; top: -13px; left: 26px; padding: 3px 14px; border-radius: 999px; background: var(--gold); color: var(--navy-950); font-size: .85rem; font-weight: 700; }
.plan header { display: grid; gap: 6px; }
.plan header h3 { font-size: 1.45rem; color: var(--navy-950); }
.saas-body .plan-via { display: inline-flex; align-items: center; gap: 6px; color: var(--line-green-deep); font-size: .92rem; font-weight: 700; }
.plan-via svg { width: 18px; height: 18px; fill: currentColor; }
.saas-body .plan-for { color: var(--ink-soft); min-height: 3.2em; }
.plan-term { display: grid; align-content: start; gap: 8px; min-height: 8.2rem; }
.plan-term[hidden] { display: none; }
.plan--free .plan-sub { margin-top: -8px; }
.plan-price { display: flex; align-items: baseline; gap: 4px; color: var(--navy-950); }
.plan-price span { font-size: 1.4rem; font-weight: 700; }
.plan-price strong { font-size: clamp(2.4rem, 2vw + 1.6rem, 3rem); line-height: 1; letter-spacing: -.02em; }
.plan-price small { margin-left: 2px; color: var(--ink-soft); font-size: 1rem; }
.saas-body .plan-sub { color: var(--ink-soft); font-size: .94rem; }
.plan-sub del { opacity: .8; }
.plan-sub b { color: var(--success); }
.saas-body .plan-sub--na { color: var(--ink-muted); }
.saas-body .plan-deadline { color: #a14a00; font-size: .9rem; font-weight: 700; }
.saas-body .check-head { margin-top: 4px; color: var(--navy-950); font-size: .92rem; font-weight: 700; }
.saas-body .plan-note { color: var(--ink-muted); font-size: .86rem; }
.check-list { display: grid; align-content: start; gap: 10px; margin: 0; padding: 0; list-style: none; flex: 1; }
.check-list li { display: flex; gap: 12px; align-items: baseline; }
.check-list li::before { content: ""; flex-shrink: 0; width: 13px; height: 7px; border: solid var(--success); border-width: 0 0 2px 2px; transform: rotate(-45deg) translateY(-3px); }

.plan--pro { color: var(--white); background: radial-gradient(80% 60% at 100% 0%, rgb(189 130 210 / .35), transparent 70%), var(--navy-900); box-shadow: 0 24px 40px -28px rgb(16 24 63 / .6); }
.plan--pro header h3, .plan--pro .plan-price, .saas-body .plan--pro .check-head { color: var(--white); }
.saas-body .plan--pro .plan-for, .saas-body .plan--pro .plan-sub, .plan--pro .plan-price small { color: var(--sky-200); }
.saas-body .plan--pro .plan-via { color: #4ade80; }
.plan--pro .plan-sub b, .saas-body .plan--pro .plan-deadline { color: var(--gold); }
.plan--pro .check-list li::before { border-color: var(--gold); }
.plan--own { background: radial-gradient(80% 60% at 0% 0%, rgb(189 130 210 / .22), transparent 70%), var(--lavender-soft); box-shadow: inset 0 0 0 1px rgb(189 130 210 / .35); }
.saas-body .plan--own .plan-via { color: #6b3b85; }

.plan-assure { display: grid; grid-template-columns: repeat(auto-fit, minmax(min(250px, 100%), 1fr)); gap: 14px; margin: clamp(32px, 4vw, 44px) 0 0; padding: 0; list-style: none; }
.plan-assure li { padding: 18px 20px; border-radius: 14px; background: var(--sky-50); color: var(--ink-soft); }
.plan-assure b { display: flex; align-items: baseline; gap: 10px; margin-bottom: 4px; color: var(--navy-950); font-size: 1.05rem; }
.plan-assure b::before { content: ""; flex-shrink: 0; width: 13px; height: 7px; border: solid var(--success); border-width: 0 0 2px 2px; transform: rotate(-45deg) translateY(-3px); }

.line-explain { margin-top: clamp(40px, 5vw, 64px); }
.line-explain h3 { margin-bottom: 18px; color: var(--navy-950); font-size: clamp(1.3rem, 1vw + 1rem, 1.6rem); text-align: center; }
.line-explain__grid { display: grid; grid-template-columns: repeat(auto-fit, minmax(min(300px, 100%), 1fr)); gap: 16px; }
.line-explain__item { display: grid; align-content: start; gap: 8px; padding: 24px 26px; border-radius: 14px; background: var(--white); box-shadow: inset 0 0 0 1px var(--line); }
.line-explain__item--own { background: var(--lavender-soft); box-shadow: inset 0 0 0 1px rgb(189 130 210 / .35); }
.line-explain h4 { margin: 0; color: var(--navy-950); font-size: 1.2rem; }
.saas-body .line-explain__id { color: var(--line-green-deep); font-size: .9rem; font-weight: 700; }
.saas-body .line-explain__item--own .line-explain__id { color: #6b3b85; }
.line-explain__item p { color: var(--ink-soft); }
.saas-body .line-explain__fit { color: var(--navy-950); font-weight: 700; font-size: .95rem; }

.compare { margin-top: clamp(40px, 5vw, 64px); overflow-x: auto; }
.compare table { width: 100%; min-width: 300px; table-layout: fixed; border-collapse: separate; border-spacing: 0; }
.compare caption { padding-bottom: 18px; color: var(--navy-950); font-size: clamp(1.3rem, 1vw + 1rem, 1.6rem); font-weight: 700; }
.compare th, .compare td { padding: 14px 12px; border-bottom: 1px solid var(--line); text-align: center; vertical-align: middle; }
.compare thead th { vertical-align: bottom; color: var(--navy-950); font-size: 1.02rem; border-bottom-color: var(--line-strong); }
.compare thead small { display: block; margin-top: 2px; color: var(--ink-soft); font-size: .86rem; font-weight: 500; }
.compare tbody th { width: 34%; color: var(--ink); font-weight: 500; text-align: left; }
.compare td { color: var(--navy-950); font-weight: 700; font-size: .95rem; }
.compare .is-featured { background: var(--sky-50); }
.compare thead .is-featured { border-radius: 12px 12px 0 0; }
.compare .yes { display: inline-block; width: 15px; height: 8px; border: solid var(--success); border-width: 0 0 2.5px 2.5px; transform: rotate(-45deg) translateY(-2px); }
.compare .no { color: var(--ink-muted); font-weight: 500; }
.compare-link { margin-top: 28px; text-align: center; }

/* ---------- start and features pages ---------- */
.page-hero {
  padding: calc(var(--header-h) + clamp(40px, 7vw, 90px)) 0 clamp(48px, 7vw, 90px);
  color: var(--white);
  background: radial-gradient(60% 90% at 85% 10%, rgb(121 169 217 / .28), transparent 70%), radial-gradient(40% 70% at 100% 100%, rgb(189 130 210 / .3), transparent 70%), var(--navy-950);
}
.page-hero h1 { margin: 18px 0 14px; font-size: clamp(2rem, 3.6vw + .8rem, 3.6rem); line-height: 1.2; letter-spacing: -.012em; }
.page-hero h1 span { color: var(--gold); }
.page-hero__lead { max-width: 36em; color: var(--sky-200); font-size: 1.1rem; }

.start-paths { padding: clamp(40px, 6vw, 80px) 0 clamp(60px, 8vw, 100px); background: var(--surface); }
.start-paths__grid { display: grid; grid-template-columns: minmax(0, 1.25fr) minmax(0, 1fr); gap: 22px; align-items: stretch; margin-top: clamp(-90px, -6vw, -40px); }
.path { display: flex; flex-direction: column; gap: 16px; padding: clamp(24px, 3.4vw, 40px); border-radius: 16px; background: var(--white); box-shadow: 0 20px 40px -30px rgb(16 24 63 / .45); }
.path .plan-tag { align-self: flex-start; margin-bottom: 0 !important; }
.path h2 { font-size: clamp(1.4rem, 1.2vw + 1rem, 1.9rem); color: var(--navy-950); }
.saas-body .path__lead { color: var(--ink-soft); }
.path .start-steps { margin: 4px 0; }
.path__actions { display: flex; flex-wrap: wrap; align-items: center; gap: 16px 24px; }
.path__qr { display: inline-flex; align-items: center; gap: 12px; color: var(--ink-muted); font-size: .88rem; }
.path__qr img { width: 96px; height: 96px; padding: 4px; border-radius: 12px; box-shadow: inset 0 0 0 1px var(--line); }
.path__steps { display: grid; gap: 10px; margin: 4px 0; padding-left: 1.3em; color: var(--ink); }
.path__steps li::marker { color: #6b3b85; font-weight: 700; }
.saas-body .path__foot { margin-top: auto; padding-top: 16px; border-top: 1px solid var(--line); color: var(--ink-muted); font-size: .9rem; }
.path--own { background: var(--lavender-soft); box-shadow: inset 0 0 0 1px rgb(189 130 210 / .3); }
.path--own .plan-tag { background: var(--white); color: #6b3b85 !important; }
.path--own .path__foot { border-top-color: rgb(189 130 210 / .35); }
.path--own .button { margin-top: 4px; }
.pricing--start { padding-top: clamp(50px, 7vw, 90px); }

.feature-index { position: sticky; top: var(--header-h); z-index: 5; background: rgb(255 255 255 / .92); -webkit-backdrop-filter: blur(10px); backdrop-filter: blur(10px); box-shadow: 0 1px 0 var(--line); }
.feature-index__nav { display: flex; gap: 8px; overflow-x: auto; padding: 12px 0; scrollbar-width: none; }
.feature-index__nav a { flex-shrink: 0; padding: 6px 14px; border-radius: 999px; background: var(--sky-50); color: var(--navy-800) !important; font-weight: 700; font-size: .9rem; }
.feature-list { padding: clamp(50px, 7vw, 100px) 0; }
.feature-list .shell { display: grid; gap: clamp(20px, 3vw, 32px); }
.feature-group { display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 1.2fr); gap: clamp(20px, 4vw, 60px); padding: clamp(24px, 3.5vw, 44px); border-radius: 22px; background: var(--surface); scroll-margin-top: calc(var(--header-h) + 70px); }
.feature-group:nth-child(1) { background: var(--navy-950); color: var(--white); }
.feature-group:nth-child(1) h2 { color: var(--white); }
.feature-group:nth-child(1) header p { color: var(--sky-200); }
.feature-group:nth-child(1) .check-list li::before { border-color: var(--gold); }
.feature-group__num { display: grid; place-items: center; width: 44px; height: 44px; margin-bottom: 16px; border-radius: 14px; background: var(--sky-100); color: var(--navy-900); font-weight: 700; }
.feature-group h2 { font-size: clamp(1.45rem, 1.2vw + 1rem, 2rem); color: var(--navy-950); }
.feature-group h2 em { margin-left: 6px; padding: 2px 10px; border-radius: 999px; background: var(--gold); color: var(--navy-950); font-style: normal; font-size: .8rem; vertical-align: middle; }
.feature-group header p { margin-top: 8px; color: var(--ink-soft); }
.feature-group .check-list { gap: 14px; font-size: 1.04rem; }

/* ---------- faq ---------- */
.faq { padding: clamp(80px, 10vw, 130px) 0; background: var(--surface); }
.faq-grid { display: grid; grid-template-columns: minmax(0, .8fr) minmax(0, 1.2fr); gap: clamp(32px, 6vw, 90px); align-items: start; }
.faq-heading p { margin-top: 12px; color: var(--ink-soft); }
.text-link { display: inline-flex; gap: 6px; margin-top: 18px; color: var(--navy-800) !important; font-weight: 700; border-bottom: 2px solid var(--gold); }
.accordion { display: grid; }
.accordion details { border-bottom: 1px solid var(--line); }
.accordion summary { display: flex; justify-content: space-between; align-items: center; gap: 16px; padding: 22px 0; cursor: pointer; list-style: none; color: var(--navy-950); font-weight: 700; font-size: 1.08rem; }
.accordion summary::-webkit-details-marker { display: none; }
.accordion summary span { position: relative; flex-shrink: 0; width: 32px; height: 32px; border-radius: 50%; background: var(--sky-100); transition: background-color .3s, transform .4s var(--ease); }
.accordion summary span::before, .accordion summary span::after { content: ""; position: absolute; top: 50%; left: 50%; width: 12px; height: 2px; margin: -1px 0 0 -6px; border-radius: 2px; background: var(--navy-800); }
.accordion summary span::after { transform: rotate(90deg); }
.accordion details[open] summary span { background: var(--gold); transform: rotate(45deg); }
.accordion details p { padding: 0 48px 22px 0; color: var(--ink-soft); }

/* ---------- final cta ---------- */
.final-cta { padding: clamp(90px, 11vw, 140px) 0; color: var(--white); text-align: center; background: radial-gradient(50% 70% at 50% 30%, rgb(121 169 217 / .25), transparent 70%), radial-gradient(40% 60% at 90% 100%, rgb(189 130 210 / .3), transparent 70%), var(--navy-950); overflow: hidden; }
.final-cta__inner { display: grid; justify-items: center; gap: 26px; }
.final-cta__mark { width: 240px; height: auto; filter: drop-shadow(0 24px 30px rgb(0 0 0 / .45)); animation: float 6s ease-in-out infinite; }
@keyframes float { 0%, 100% { transform: translateY(0) rotate(-1.5deg); } 50% { transform: translateY(-14px) rotate(1.5deg); } }
.final-cta h2 { color: var(--white); }
.final-cta h2 .hl { color: var(--gold); }
.final-cta__actions { display: flex; flex-wrap: wrap; justify-content: center; align-items: center; gap: 14px 24px; }
.cta-login { color: var(--sky-200) !important; font-weight: 700; border-bottom: 1px solid rgb(203 223 242 / .4); }

/* ---------- footer ---------- */
.site-footer { padding: 36px 0; background: #0b1130; color: var(--sky-200); font-size: .92rem; }
.footer-inner { display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between; gap: 18px 32px; }
.brand--footer { color: var(--white); }
.site-footer nav { display: flex; flex-wrap: wrap; gap: 8px 22px; }
.site-footer nav a:hover { color: var(--white); }

/* ---------- tablet and phone ---------- */
@media (max-width: 899px) {
  .hero-shade { background: linear-gradient(to top, rgb(16 24 63 / .97) 0%, rgb(16 24 63 / .9) 42%, rgb(16 24 63 / 0) 62%); }
  .hero-layout { align-items: flex-end; padding-bottom: 34px; }
  .hero-copy { max-width: 560px; }
  .hero-chat, .hero-cue { display: none; }
  .scene-fallback { inset: 12% 10% 52% 10%; }

  .how-grid { grid-template-columns: 1fr; gap: 36px; }
  .how-phone-wrap { position: relative; top: 0; height: auto; }
  .phone { width: min(290px, 82vw); height: 560px; --phone-ry: 0deg; transform: none; }
  .how-step { min-height: 0; padding: 18px 20px; border-radius: 16px; opacity: 1; display: grid; grid-template-columns: 44px minmax(0, 1fr); column-gap: 16px; transition: background-color .4s; }
  .how-step.is-active { background: var(--white); box-shadow: 0 10px 24px -18px rgb(16 24 63 / .4); }
  .how-step__num { grid-row: span 2; width: 44px; height: 44px; margin: 0; font-size: 1.1rem; border-radius: 12px; }
  .how-step h3 { font-size: 1.3rem; }
  .how-step p { margin-top: 2px; font-size: 1rem; }

  .trust-grid, .faq-grid, .start-grid { grid-template-columns: 1fr; }
  .trust-copy { order: -1; }
  .start-qr { display: none; }
  .start-paths__grid, .feature-group { grid-template-columns: 1fr; }
  .saas-body .plan-for, .plan-term { min-height: 0; }
}

@media (max-width: 560px) {
  .brand-copy small { display: none; }
  .hero h1 { margin: 14px 0 12px; font-size: clamp(2rem, 9vw, 2.6rem); }
  .hero-lead { font-size: 1rem; }
  .hero-actions { margin-top: 22px; }
  .hero-actions .button { width: 100%; }
  .hero-alt { margin-inline: auto; }
  .hero-assurances { font-size: .84rem; gap: 6px 14px; margin-top: 16px; }

  .duo { gap: 0; }
  .mini-phone { --pw: min(180px, 46vw); padding: 7px; border-radius: 28px; }
  .duo-phone--tenant { margin: 60px 0 0 -18px; }
  .mini-phone__top { padding: 22px 10px 8px; border-radius: 22px 22px 0 0; font-size: .74rem; }
  .mini-phone__body { padding: 10px 7px; gap: 7px; border-radius: 0 0 22px 22px; }
  .mini-phone .bubble { font-size: .74rem; padding: 6px 9px; }
  .stat-card, .bill-card { padding: 9px 10px; font-size: .72rem; }
  .stat-card strong { font-size: .88rem; }
  .bill-card strong { font-size: 1.2rem; }
  .paid-chip { font-size: .72rem; padding: 4px 10px; }
  .duo-phone figcaption { font-size: .8rem; }
  .duo-phone figcaption strong { font-size: .92rem; }

  .marquee__track li { padding: 11px 18px; font-size: .95rem; }
  .plan { padding: 28px 20px 24px; }
  .term-switch { display: grid; grid-template-columns: repeat(auto-fit, minmax(0, 1fr)); width: 100%; border-radius: 18px; }
  .term-switch span { flex-direction: column; gap: 2px; padding: 8px 6px; border-radius: 14px; }
  .compare th, .compare td { padding: 11px 6px; font-size: .84rem; }
  .compare thead th { font-size: .88rem; }
  .compare thead small { font-size: .76rem; }
  .compare tbody th { width: 40%; }
  .path__actions .button { width: 100%; }
  .path__qr { display: none; }
  .accordion details p { padding-right: 0; }
}

@media (max-width: 899px) and (max-height: 720px) {
  .hero-assurances { display: none; }
}

@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after { animation-duration: .01ms !important; animation-iteration-count: 1 !important; transition-duration: .01ms !important; }
  .hero { height: 100svh; }
  .no-app { margin-top: 0; opacity: 1; pointer-events: auto; }
  .marquee { transform: none; -webkit-mask-image: none; mask-image: none; }
  .marquee__row { width: auto; animation: none; }
  .marquee__track { flex-wrap: wrap; justify-content: center; padding: 0 16px; }
  .marquee__track[aria-hidden="true"] { display: none; }
  .reveal-pending, .lines-pending .ln > span { opacity: 1; transform: none; }
}
