/* ===================== DESIGN TOKENS — "Paper & Vermilion" ===================== */
/* Warm paper-white canvas, ink text, hanko-red (vermilion) + amber brand accents.
   Product mockups keep their own blue palette (--pgrad/--blue) to look like real UI. */
:root{
  --bg:#FAF8F4; --ink:#221D17; --muted:#6E6559; --line:rgba(34,29,23,.12);
  --accent:#E2492E; --accent-deep:#C0361D; --amber:#F5A31C; --indigo:#23406B;
  --blue:#3B82F6; --teal:#14B8A6; --green:#22C55E; --orange:#F59E0B;
  --grad:linear-gradient(115deg,#E2492E 0%,#F5A31C 100%);
  --pgrad:linear-gradient(115deg,#3B82F6 0%,#2DD4C7 100%);
  --card:#FFFFFF; --dark:#1E1914; --dark2:#2B241D;
  --panel:#F6F5F1; --panel-line:rgba(15,23,42,.08); --panel-ink:#0F172A; --panel-muted:#64748B;
  --glow:1;
  --shadow-card:0 2px 6px rgba(34,29,23,.04),0 18px 44px -24px rgba(34,29,23,.18);
  --fdisp:'Zen Kaku Gothic New','Noto Sans JP',system-ui,sans-serif;
  --fbody:'Hanken Grotesk','Noto Sans JP',system-ui,sans-serif;
  --fmono:'IBM Plex Mono',ui-monospace,monospace;
}
/* EN/VI: Zen Kaku lacks Vietnamese diacritics — swap display font to avoid per-glyph fallback mixing */
html:lang(en),html:lang(vi){--fdisp:'Bricolage Grotesque','Noto Sans JP',system-ui,sans-serif}
*{box-sizing:border-box;margin:0;padding:0}
html{scroll-behavior:smooth}
body{
  font-family:var(--fbody);color:var(--ink);background:var(--bg);line-height:1.6;
  -webkit-font-smoothing:antialiased;text-rendering:optimizeLegibility;overflow-x:clip;
}
img{display:block;max-width:100%;height:auto}
a{color:inherit}
#hero,#problem,#features,#story,#how,#cta{scroll-margin-top:70px}
::selection{background:var(--accent);color:#fff}
.container{width:min(1200px,calc(100% - 40px));margin-inline:auto}

@keyframes ilsFloat{0%,100%{transform:translateY(0)}50%{transform:translateY(-16px)}}
@keyframes ilsFloatS{0%,100%{transform:translateY(0)}50%{transform:translateY(-8px)}}
@keyframes ilsDrift{0%{transform:translate(0,0) rotate(0deg)}50%{transform:translate(6px,-8px) rotate(1.5deg)}100%{transform:translate(0,0) rotate(0deg)}}
@keyframes ilsSpin{to{transform:rotate(360deg)}}
@keyframes ilsPulse{0%,100%{opacity:.55;transform:scale(1)}50%{opacity:1;transform:scale(1.06)}}
@keyframes ilsBlink{0%,49%{opacity:1}50%,100%{opacity:0}}
@keyframes ilsShine{to{background-position:200% center}}
@keyframes ilsGridPan{to{background-position:38px 38px}}
@keyframes ilsOrbit{from{transform:rotate(0deg) translateX(58px) rotate(0deg)}to{transform:rotate(360deg) translateX(58px) rotate(-360deg)}}
@keyframes ilsScrollUp{from{transform:translateY(0)}to{transform:translateY(-50%)}}

/* ---- utilities ---- */
.gradient-text{background:var(--grad);-webkit-background-clip:text;background-clip:text;color:transparent}
.eyebrow{font-family:var(--fmono);font-size:18px;font-weight:700;letter-spacing:.1em;text-transform:uppercase;color:var(--accent);margin-bottom:16px}
.eyebrow--teal{color:var(--amber)}

.btn{display:inline-flex;align-items:center;justify-content:center;gap:.5rem;text-decoration:none;font-weight:700;font-size:15px;padding:14px 26px;border-radius:14px;border:none;cursor:pointer;transition:transform .25s,box-shadow .25s,background .25s}
.btn-white{background:var(--accent);color:#fff;box-shadow:0 14px 34px -12px rgba(226,73,46,.55);min-width:160px;text-align:center}
.btn-white:hover{transform:translateY(-2px);background:var(--accent-deep);box-shadow:0 18px 38px -12px rgba(226,73,46,.6)}
.btn-ghost{background:#fff;color:var(--ink);border:1px solid var(--line);box-shadow:0 2px 8px rgba(34,29,23,.05)}
.btn-ghost:hover{background:#fff;border-color:rgba(34,29,23,.28);transform:translateY(-2px)}
.btn-cta{background:#fff;color:var(--accent-deep);padding:17px 34px;font-size:16px;font-weight:800;box-shadow:0 24px 50px -16px rgba(90,20,8,.5);min-width:180px;text-align:center}
.btn-cta:hover{transform:translateY(-2px)}
.btn-note{font-family:var(--fmono);font-size:12px;color:var(--muted);margin-top:16px}

.section{scroll-margin-top:70px;padding:clamp(70px,10vh,110px) clamp(20px,5vw,40px) clamp(60px,9vh,100px);max-width:1200px;margin:0 auto}
.section__head{max-width:640px;margin:0 auto clamp(40px,6vh,64px);text-align:center}
.section__title{font-family:var(--fdisp);font-weight:900;font-size:clamp(1.9rem,4vw,3rem);line-height:1.14;letter-spacing:-.02em;margin:0 0 16px;text-wrap:balance}
.section__title span{display:inline-block} /* phrase-level line breaking (never mid-phrase) */
.phone-br{display:none} /* line break shown only on phones (see max-width:600px) */
.pc-br{display:inline} /* line break hidden on phones (see max-width:600px) */
.narrow-br{display:none} /* line break shown on phones AND tablets (see max-width:1024px) */
.se-br{display:none} /* line break shown on iPhone SE class only (see 321px-380px range) */
.sp-br{display:none} /* line break shown on standard phones only (see 321px-395px range) */
.wide-br{display:none} /* line break shown on desktop only — complement of .narrow-br (see min-width:1025px) */
.section__lead{font-size:1.05rem;color:var(--muted);margin:0;text-wrap:pretty}

/* ===================== SCROLL PROGRESS ===================== */
.progress{position:fixed;top:0;left:0;right:0;height:3px;z-index:400;pointer-events:none}
.progress i{display:block;height:100%;width:100%;background:var(--grad);transform-origin:0 50%;transform:scaleX(0)}

/* ===================== DOT NAV ===================== */

/* ===================== NAV ===================== */
.nav{position:sticky;top:0;z-index:200;display:grid;grid-template-columns:1fr auto 1fr;align-items:center;gap:16px;padding:13px clamp(20px,4vw,48px);background:rgba(250,248,244,.85);backdrop-filter:blur(14px);-webkit-backdrop-filter:blur(14px);border-bottom:1px solid var(--line)}
/* Mobile: the sticky nav's blur + translucency forces the GPU to re-blur and bleed through
   the infinitely-animating hero glows behind it every scroll frame → the frosted bar
   shimmers/jitters. A FULLY opaque bar with no backdrop-filter has nothing to recompute and
   nothing bleeding through, so it stays rock-steady. (Desktop composites fine, keeps the blur.) */
@media (max-width:900px){
  .nav{background:var(--bg);backdrop-filter:none;-webkit-backdrop-filter:none;transform:translateZ(0);will-change:transform;contain:layout}
}
.nav__brand{justify-self:start;display:flex;align-items:center;gap:12px;text-decoration:none}
.nav__brand-mark{font-family:var(--fdisp);font-weight:700;font-size:15px;letter-spacing:.01em}
.nav__brand-logo{width:clamp(130px,18vw,235px);aspect-ratio:235/55;height:auto;display:block}
.nav__brand-name{padding-left:12px;border-left:1px solid var(--line);font-family:var(--fdisp);font-weight:700;font-size:20px;letter-spacing:-.01em;color:var(--ink);white-space:nowrap}
/* only the logo is a link (to the corporate site); the product name is plain text */
.nav__brand-corp{display:flex;align-items:center;min-width:0}
.nav__links{justify-self:center;display:flex;align-items:center;gap:clamp(14px,2.4vw,30px)}
.nav__links a{text-decoration:none;font-size:15px;font-weight:600;color:var(--muted);transition:color .2s}
.nav__links a:hover{color:var(--ink)}
.nav__right{justify-self:end;display:flex;align-items:center;gap:14px}
.lang-switch{position:relative;font-family:var(--fbody)}
.lang-btn{display:flex;align-items:center;gap:6px;height:40px;background:#fff;color:var(--ink);border:1px solid var(--line);border-radius:999px;padding:0 11px;font:inherit;font-size:13px;font-weight:600;cursor:pointer;transition:border-color .25s,box-shadow .25s}
.lang-btn:hover{border-color:var(--accent)}
.lang-btn .lang-caret{color:var(--muted);transition:transform .25s}
.lang-switch.open .lang-btn{border-color:var(--accent);box-shadow:0 0 0 3px rgba(226,73,46,.12)}
.lang-switch.open .lang-caret{transform:rotate(180deg)}
.lang-flag{display:flex;align-items:center;line-height:1}
.flag-svg{border-radius:2px;display:block;flex-shrink:0;box-shadow:0 0 0 1px rgba(0,0,0,.06)}
.lang-menu{position:absolute;top:calc(100% + 8px);right:0;min-width:152px;background:#fff;border:1px solid var(--line);border-radius:12px;box-shadow:var(--shadow-card);padding:6px;z-index:710;opacity:0;visibility:hidden;transform:translateY(-6px);pointer-events:none;transition:opacity .25s,transform .25s,visibility .25s}
.lang-switch.open .lang-menu{opacity:1;visibility:visible;transform:translateY(0);pointer-events:auto}
.lang-opt{display:flex;align-items:center;gap:10px;width:100%;padding:9px 12px;border:0;border-radius:8px;background:transparent;font:inherit;font-size:13px;font-weight:500;color:var(--ink);cursor:pointer;text-align:left;transition:background .2s,color .2s}
.lang-opt:hover{background:rgba(226,73,46,.08)}
.lang-opt.active{background:rgba(226,73,46,.1);color:var(--accent);font-weight:700}
.nav__cta{display:inline-flex;align-items:center;justify-content:center;height:40px;line-height:1;text-decoration:none;font-size:15px;font-weight:700;color:#fff;background:var(--accent);padding:0 16px;border-radius:999px;white-space:nowrap;min-width:100px;text-align:center;transition:background .25s}
.nav__cta:hover{background:var(--accent-deep)}

/* ===================== HERO ===================== */
.hero{position:relative;padding:clamp(56px,8vh,90px) clamp(20px,5vw,40px) clamp(60px,8vh,90px);max-width:1240px;margin:0 auto;perspective:1400px}
.hero__glow{position:absolute;inset:0;overflow:hidden;pointer-events:none;z-index:0}
.hero__glow span{position:absolute;width:460px;height:460px;filter:blur(34px);border-radius:50%;opacity:calc(var(--glow)*.9);will-change:transform}
.hero__glow .g1{top:-8%;left:6%;background:radial-gradient(circle,rgba(226,73,46,.13),transparent 65%);animation:ilsFloat 9s ease-in-out infinite}
.hero__glow .g2{top:6%;right:0;width:430px;height:430px;background:radial-gradient(circle,rgba(245,163,28,.14),transparent 65%);animation:ilsFloat 11s ease-in-out infinite reverse}
.hero__grid{position:absolute;inset:0;background-image:linear-gradient(rgba(34,29,23,.05) 1px,transparent 1px),linear-gradient(90deg,rgba(34,29,23,.05) 1px,transparent 1px);background-size:38px 38px;-webkit-mask-image:radial-gradient(ellipse 80% 60% at 50% 35%,#000,transparent 78%);mask-image:radial-gradient(ellipse 80% 60% at 50% 35%,#000,transparent 78%)}
.hero__terminal{position:absolute;inset:0;overflow:hidden;opacity:.1;-webkit-mask-image:linear-gradient(to bottom,transparent,#000 22%,#000 78%,transparent);mask-image:linear-gradient(to bottom,transparent,#000 22%,#000 78%,transparent)}
.hero__terminal-track{display:flex;flex-direction:column;gap:16px;align-items:center;animation:ilsScrollUp 28s linear infinite}
.hero__terminal-track div{font-family:var(--fmono);font-size:13px;color:var(--ink);white-space:nowrap}

.hero__inner{position:relative;z-index:1;text-align:center;max-width:860px;margin:0 auto}
.hero__badge{display:inline-flex;align-items:center;gap:8px;padding:6px 14px;border:1px solid rgba(226,73,46,.28);background:rgba(226,73,46,.06);border-radius:999px;font-family:var(--fmono);font-size:12px;color:var(--accent-deep);margin-bottom:26px}
.hero__badge i{width:7px;height:7px;border-radius:50%;background:var(--accent);box-shadow:0 0 0 4px rgba(226,73,46,.16)}
.hero__title-wrap{overflow:hidden}
.hero__title{font-family:var(--fdisp);font-weight:900;font-size:clamp(2.5rem,7vw,5.2rem);line-height:1.08;letter-spacing:-.03em;margin:0 0 22px}
.hero__sub{font-size:clamp(1.02rem,1.6vw,1.22rem);color:var(--muted);max-width:600px;margin:0 auto 34px;text-wrap:pretty}
.hero__actions{display:flex;gap:12px;justify-content:center;flex-wrap:wrap;margin-bottom:16px}

.hero__visual-wrap{position:relative;z-index:1;margin-top:clamp(46px,7vh,80px);animation:ilsFloat 7s ease-in-out infinite;will-change:transform}
.hero__visual{position:relative;max-width:1000px;margin:0 auto;transform-style:preserve-3d;will-change:transform}
.hero__visual-glow{position:absolute;inset:-4% -3% -10%;background:var(--grad);filter:blur(70px);opacity:calc(var(--glow)*.16);border-radius:40px;z-index:0}

.hero__tabs{position:relative;z-index:1;display:flex;justify-content:center;gap:8px;margin-bottom:14px}
.hero__tab{display:flex;align-items:center;gap:8px;padding:7px 16px;border-radius:999px;border:1px solid var(--line);background:#fff;color:var(--muted);font-family:var(--fbody);font-weight:600;font-size:12.5px;letter-spacing:-.01em;cursor:pointer;transition:color .25s,background .25s,border-color .25s}
.hero__tab-dot{width:6px;height:6px;border-radius:50%;background:currentColor;opacity:.5;transition:opacity .25s}
.hero__tab.is-active{color:var(--accent-deep);background:rgba(226,73,46,.08);border-color:rgba(226,73,46,.4)}
.hero__tab.is-active .hero__tab-dot{opacity:1;background:var(--accent)}

.hero__window{position:relative;z-index:1;border-radius:18px;overflow:hidden;border:1px solid rgba(34,29,23,.14);box-shadow:0 40px 90px -36px rgba(34,29,23,.4);background:var(--card)}
.hero__window-bar{display:flex;align-items:center;gap:7px;padding:12px 16px;background:var(--dark);border-bottom:1px solid rgba(255,255,255,.06)}
.hero__window-bar span{width:11px;height:11px;border-radius:50%}
.hero__window-bar span:nth-child(1){background:#ff5f57}
.hero__window-bar span:nth-child(2){background:#febc2e}
.hero__window-bar span:nth-child(3){background:#28c840}
.hero__window-bar em{margin-left:12px;font-style:normal;font-family:var(--fmono);font-size:11px;color:rgba(255,255,255,.45)}

.hero__win-viewport{overflow:hidden}
.hero__win-track{display:flex;width:200%;align-items:stretch;transition:transform .6s cubic-bezier(.65,0,.35,1)}
.hero__win-track>.hero__mock{flex:0 0 50%}

.hero__mock{background:var(--panel);padding:clamp(20px,3vw,32px) clamp(22px,3.4vw,36px)}

/* -- client (日報) panel: mini nav rail + report body -- */
.hero__mock--client{display:flex;padding:0}
.hero__mock-rail{flex:none;width:44px;background:var(--dark2);display:flex;flex-direction:column;align-items:center;gap:14px;padding:18px 0}
.hero__mock-rail-logo{width:20px;height:20px;border-radius:6px;background:var(--pgrad);flex:none}
.hero__mock-rail-icon{width:22px;height:22px;border-radius:7px;background:rgba(255,255,255,.08);flex:none}
.hero__mock-rail-icon.is-active{background:rgba(59,130,246,.4)}
.hero__mock-body{flex:1;min-width:0;padding:clamp(18px,2.8vw,28px) clamp(20px,3vw,32px)}

.hero__mock-toolbar{display:flex;align-items:center;gap:10px;margin-bottom:clamp(14px,2vw,20px)}
.hero__mock-toolbar-title{font-family:var(--fdisp);font-weight:700;font-size:15px;color:var(--panel-ink);flex:1}
.hero__mock-datepick{display:flex;align-items:center;gap:8px;padding:6px 12px;border:1px solid var(--panel-line);border-radius:9px;background:#fff;font-family:var(--fmono);font-size:11px;color:var(--panel-ink)}
.hero__mock-datepick i{font-style:normal;color:var(--panel-muted)}
.hero__mock-genbtn,.hero__mock-quickbtn{padding:7px 14px;border-radius:8px;border:1px solid transparent;font-family:var(--fbody);font-weight:700;font-size:11px;cursor:default}
.hero__mock-genbtn{background:var(--pgrad);color:#fff}
.hero__mock-quickbtn{background:#fff;border-color:var(--panel-line);color:var(--panel-muted);font-weight:600}
.hero__mock-quickbtn.is-active{background:var(--blue);border-color:var(--blue);color:#fff}

.hero__mock-report-head{display:flex;align-items:flex-start;justify-content:space-between;gap:14px;padding:14px 16px;border:1px solid var(--panel-line);border-radius:12px;background:#fff;margin-bottom:clamp(14px,2vw,20px)}
.hero__mock-report-head b{display:block;font-size:13.5px;font-weight:700;color:var(--panel-ink);margin-bottom:5px}
.hero__mock-report-head span{display:block;font-size:11.5px;color:var(--panel-muted);line-height:1.55}
.hero__mock-report-head .hero__mock-badge{flex:none}

.hero__mock-usage{display:flex;flex-direction:column;gap:9px;margin-bottom:clamp(14px,2vw,20px)}
.hero__mock-usage-row{display:grid;grid-template-columns:70px 1fr 46px;align-items:center;gap:10px}
.hero__mock-usage-row>span{font-family:var(--fbody);font-weight:600;font-size:11.5px;color:var(--panel-ink)}
.hero__mock-usage-row i{display:block;height:6px;border-radius:99px;background:var(--panel-line);overflow:hidden}
.hero__mock-usage-row i b{display:block;height:100%;border-radius:99px;background:var(--pgrad)}
.hero__mock-usage-row>b{font-family:var(--fmono);font-size:11px;text-align:right;color:var(--panel-muted);font-weight:600}

.hero__mock-who{display:flex;align-items:center;gap:12px}
.hero__mock-avatar{width:38px;height:38px;flex:none;border-radius:50%;background:var(--pgrad);display:grid;place-items:center;color:#fff;font-weight:700;font-size:15px}
.hero__mock-who b{display:block;font-size:14.5px;font-weight:700;color:var(--panel-ink)}
.hero__mock-who span{display:block;font-size:11.5px;color:var(--panel-muted);margin-top:2px}
.hero__mock-badge{display:flex;align-items:center;gap:7px;padding:6px 12px;border-radius:99px;background:rgba(59,130,246,.1);border:1px solid rgba(59,130,246,.25);font-size:11.5px;font-weight:600;color:var(--blue)}
.hero__mock-badge i{width:6px;height:6px;border-radius:50%;background:var(--blue);box-shadow:0 0 0 3px rgba(59,130,246,.2)}
.hero__mock-main{display:flex;align-items:center;gap:clamp(24px,4vw,40px);padding:clamp(16px,2.6vw,24px);border:1px solid var(--panel-line);border-radius:14px;background:#fff;margin-bottom:clamp(14px,2vw,20px)}
.hero__mock-donut-wrap{position:relative;flex:none;width:clamp(84px,10vw,108px);height:clamp(84px,10vw,108px)}
.hero__mock-donut{width:100%;height:100%;border-radius:50%;background:conic-gradient(var(--blue) 0% 52%,var(--green) 52% 80%,var(--orange) 80% 100%);-webkit-mask:radial-gradient(closest-side,transparent 62%,#000 63%);mask:radial-gradient(closest-side,transparent 62%,#000 63%)}
.hero__mock-donut-label{position:absolute;inset:0;display:grid;place-items:center;font-family:var(--fdisp);font-weight:700;font-size:clamp(12px,1.3vw,15px);color:var(--panel-ink)}
.hero__mock-legend{flex:1;display:flex;flex-direction:column;gap:10px}
.hero__mock-legend-row{display:flex;align-items:center;gap:9px;font-size:12.5px;color:var(--panel-muted)}
.hero__mock-legend-row i{width:8px;height:8px;border-radius:50%;flex:none}
.hero__mock-legend-row i.c-blue{background:var(--blue)}
.hero__mock-legend-row i.c-green{background:var(--green)}
.hero__mock-legend-row i.c-orange{background:var(--orange)}
.hero__mock-legend-row span{flex:1}
.hero__mock-legend-row b{color:var(--panel-ink);font-weight:700}

.hero__mock-table{border:1px solid var(--panel-line);border-radius:14px;overflow:hidden;background:#fff}
.hero__mock-row{display:grid;grid-template-columns:.7fr 1fr 1.4fr .7fr;gap:8px;padding:11px 16px;font-family:var(--fmono);font-size:11.5px;color:var(--panel-muted)}
.hero__mock-row:not(:last-child){border-bottom:1px solid var(--panel-line)}
.hero__mock-row--head{background:rgba(15,23,42,.035);color:var(--panel-muted);font-family:var(--fbody);font-size:11px;text-transform:uppercase;letter-spacing:.05em}
.hero__mock-row span:first-child{color:rgba(15,23,42,.4)}
.hero__mock-row span:last-child{text-align:right;color:var(--panel-ink);font-weight:600}
.hero__mock-table--plain .hero__mock-row{font-family:var(--fbody)}
.hero__mock-table--plain .hero__mock-row span:first-child{color:var(--panel-ink);font-weight:600}
.hero__mock-table--client .hero__mock-row{grid-template-columns:.9fr 1.3fr .9fr .6fr}

/* -- corp admin (社員レポート管理) panel: filters + report cards -- */
.hero__mock--admin{display:flex;padding:0}
.hero__mock--admin .hero__mock-body{padding:clamp(16px,2.4vw,24px) clamp(18px,2.6vw,26px)}
.hero__mock-filters{display:flex;gap:7px;flex-wrap:wrap;margin-bottom:9px}
.hero__mock-filter-chip{display:flex;align-items:center;gap:5px;padding:6px 11px;border:1px solid var(--panel-line);border-radius:8px;background:#fff;font-family:var(--fbody);font-size:10.5px;color:var(--panel-muted);white-space:nowrap}
.hero__mock-filter-chip--search{color:var(--panel-ink);font-weight:600}
.hero__mock-filter-chip--search svg{flex:none;opacity:.5}
.hero__mock-quickrow{display:flex;gap:6px;margin-bottom:clamp(12px,1.8vw,16px)}
.hero__mock-quickrow .hero__mock-quickbtn{padding:6px 12px;font-size:10.5px}
.hero__mock-cards{display:grid;grid-template-columns:repeat(4,1fr);gap:10px}
/* min-width:0 for the same reason as .duo-scene: as a grid item it defaults to
   min-width:auto, so the unbreakable mono strings in the foot (WIN-A1F3) push its
   min-content past the column — the grid then overflows right and body's
   overflow-x:clip hides it, leaving the panel looking off-centre. */
.hero__mock-card{border:1px solid var(--panel-line);border-radius:11px;background:#fff;padding:10px 12px;display:flex;flex-direction:column;gap:7px;min-width:0}
.hero__mock-card-top{display:flex;align-items:center;justify-content:space-between;gap:6px}
/* min-width:0 is required: a flex item defaults to min-width:auto and so refuses to
   shrink below its nowrap content, which pushed the (flex:none) time out of the card.
   With it, long names ellipsis instead and the time stays flush right on every card. */
.hero__mock-card-top b{font-size:11.5px;font-weight:700;color:var(--panel-ink);white-space:nowrap;overflow:hidden;text-overflow:ellipsis;min-width:0}
.hero__mock-card-time{font-family:var(--fmono);font-size:9.5px;color:var(--panel-muted);flex:none}
.hero__mock-card-tags{display:flex;gap:4px;flex-wrap:wrap}
.hero__mock-tag{font-style:normal;padding:2px 7px;border-radius:99px;font-family:var(--fbody);font-size:9px;font-weight:600;background:rgba(15,23,42,.06);color:var(--panel-muted)}
.hero__mock-tag--ai{background:rgba(59,130,246,.12);color:var(--blue)}
.hero__mock-tag--manual{background:rgba(34,197,94,.14);color:var(--green)}
.hero__mock-tag--loc{background:rgba(20,184,166,.14);color:var(--teal)}
.hero__mock-card p{margin:0;font-family:var(--fbody);font-size:10px;line-height:1.5;color:var(--panel-muted);display:-webkit-box;-webkit-line-clamp:2;-webkit-box-orient:vertical;overflow:hidden}
.hero__mock-card-foot{display:flex;justify-content:space-between;gap:6px;font-family:var(--fmono);font-size:9.5px;color:var(--panel-muted);padding-top:4px;border-top:1px solid var(--panel-line)}
/* now that the card can shrink, keep the mono strings inside it instead of spilling */
.hero__mock-card-foot span{min-width:0;white-space:nowrap;overflow:hidden;text-overflow:ellipsis}
.hero__mock-pagination{display:flex;justify-content:space-between;margin-top:10px;font-family:var(--fbody);font-size:10px;color:var(--panel-muted)}
.hero__badge-float{position:absolute;z-index:2;display:flex;align-items:center;gap:8px;padding:9px 13px;border-radius:12px;font-size:12.5px;font-weight:600}
.hero__badge-float--ai{top:38px;left:-3%;background:rgba(255,255,255,.92);backdrop-filter:blur(8px);border:1px solid var(--line);box-shadow:0 18px 40px -18px rgba(34,29,23,.35);color:var(--ink);animation:ilsFloatS 5.5s ease-in-out infinite}
.hero__badge-float--ai i{width:22px;height:22px;border-radius:7px;background:var(--grad);display:grid;place-items:center;color:#fff;font-family:var(--fmono);font-size:10px;font-style:normal}
.hero__badge-float--live{bottom:14%;right:-2%;background:rgba(30,25,20,.94);color:#fff;backdrop-filter:blur(8px);box-shadow:0 18px 40px -18px rgba(34,29,23,.45);font-family:var(--fmono);font-size:11.5px;animation:ilsFloatS 6.5s ease-in-out infinite reverse}
.hero__badge-float--live i{width:7px;height:7px;border-radius:50%;background:#28c840;box-shadow:0 0 0 4px rgba(40,200,64,.25);font-style:normal}


/* ===================== PROBLEM — two characters: the writer at night, the reader left blind ===================== */
.duo{display:grid;grid-template-columns:1fr clamp(84px,10vw,132px) 1fr;gap:clamp(10px,1.6vw,18px);align-items:stretch;margin-bottom:clamp(30px,4.5vh,48px)}

.pain-tag{display:inline-flex;align-items:center;gap:6px;padding:6px 13px;border-radius:999px;background:var(--card);border:1px solid var(--line);font-family:var(--fmono);font-size:11px;font-weight:600;color:var(--ink);box-shadow:0 2px 8px rgba(34,29,23,.05)}
.pain-tag--alert{background:rgba(226,73,46,.08);border-color:rgba(226,73,46,.3);color:var(--accent-deep)}

/* min-width:0 matters: as a grid item this defaults to min-width:auto, and the
   nowrap lines inside .duo-doc push its min-content past the column width — the
   card then grows wider than the grid and body's overflow-x:clip hides the rest. */
.duo-scene{display:flex;flex-direction:column;gap:0;min-width:0;padding:18px 20px 20px;border:1px solid var(--line);border-radius:18px;background:var(--card);box-shadow:0 1px 3px rgba(34,29,23,.04)}
.duo-scene__chips{display:flex;gap:7px;flex-wrap:wrap}

.duo-stage{position:relative;display:flex;align-items:flex-end;gap:14px;padding-top:74px;padding-bottom:4px;flex:1}
.duo-stage--mgr{justify-content:flex-end}

.duo-avatar{flex:none;width:64px;height:64px;border-radius:50%;display:grid;place-items:center}
.duo-avatar svg{width:38px;height:38px}
.duo-avatar--emp{background:rgba(59,130,246,.1);color:var(--blue)}
.duo-avatar--mgr{background:rgba(35,64,107,.1);color:var(--indigo)}

/* evaporating thought bubbles above the employee */
.duo-think{position:absolute;top:12px;left:6px;max-width:78%;padding:6px 11px;border-radius:12px 12px 12px 3px;background:var(--panel);border:1px solid var(--line);font-size:11px;color:var(--muted);line-height:1.4;opacity:0;animation:duoThink 6.6s ease-in-out infinite;animation-delay:var(--td);will-change:opacity,transform}
@keyframes duoThink{
  0%{opacity:0;transform:translateY(6px)}
  6%,28%{opacity:1;transform:translateY(0)}
  36%,100%{opacity:0;transform:translateY(-8px)}
}
/* the manager's one — always on screen */
.duo-think--stay{left:auto;right:6px;border-radius:12px 12px 3px 12px;opacity:1;animation:ilsFloatS 5.5s ease-in-out infinite;color:var(--accent-deep);background:rgba(226,73,46,.06);border-color:rgba(226,73,46,.25)}

/* floating question marks around the manager */
.duo-q{position:absolute;top:46px;right:calc(30px + var(--qx));font-family:var(--fdisp);font-weight:900;font-size:15px;color:var(--indigo);opacity:0;animation:duoQ 3.2s ease-in-out infinite;animation-delay:var(--qd)}
@keyframes duoQ{
  0%{opacity:0;transform:translateY(4px) rotate(-4deg)}
  20%{opacity:.75}
  100%{opacity:0;transform:translateY(-16px) rotate(6deg)}
}

/* mini document cards */
.duo-doc{flex:1;min-width:0;background:var(--panel);border:1px solid var(--panel-line);border-radius:10px;padding:9px 12px 11px}
.duo-doc em{display:block;font-style:normal;font-family:var(--fmono);font-size:9.5px;color:var(--panel-muted);letter-spacing:.04em;margin-bottom:7px;padding-bottom:6px;border-bottom:1px dashed rgba(15,23,42,.12);white-space:nowrap;overflow:hidden;text-overflow:ellipsis}
.duo-doc p{margin:0 0 4px;font-size:11.5px;color:var(--panel-ink);line-height:1.5;white-space:nowrap;overflow:hidden;text-overflow:ellipsis}
.duo-doc p:last-child{margin-bottom:0}
.duo-doc__faint{color:var(--panel-muted)}
/* the employee's line types itself, then gets deleted */
.duo-type{display:inline-block;max-width:100%;overflow:hidden;white-space:nowrap;vertical-align:bottom;animation:duoType 5.4s steps(18) infinite}
@keyframes duoType{
  0%,8%{max-width:0}
  42%,66%{max-width:100%}
  92%,100%{max-width:0}
}
.duo-caret{display:inline-block;width:2px;height:12px;background:var(--panel-ink);vertical-align:-1px;margin-left:1px;animation:ilsBlink 1.05s steps(1) infinite}

/* one plain sentence per scene — the part everyone must understand */
.duo-cap{margin:14px 0 0;padding-top:13px;border-top:1px dashed var(--line);font-size:.85rem;color:var(--ink);line-height:1.55;text-wrap:pretty}

/* the handoff: a tiny document travels between them */
.duo-link{position:relative;align-self:center;height:64px}
/* the line stops 7px early — exactly the arrowhead width — so the dashes never sit under the triangle */
.duo-link__line{position:absolute;left:2%;right:calc(2% + 7px);top:26px;border-top:2px dashed rgba(34,29,23,.28)}
/* -6px, not -5px: the containing block is the padding edge, i.e. below the 2px dashed border */
.duo-link__line::after{content:'';position:absolute;right:-7px;top:-6px;border:5px solid transparent;border-left:7px solid rgba(34,29,23,.4);border-right:none}
.duo-link__doc{position:absolute;top:26px;left:8%;translate:0 -50%;display:grid;place-items:center;width:26px;height:26px;border-radius:8px;background:var(--card);border:1px solid var(--line);color:var(--accent);box-shadow:0 4px 12px -4px rgba(34,29,23,.25);animation:duoTravel 3.4s ease-in-out infinite}
@keyframes duoTravel{
  0%{left:4%;opacity:0}
  14%{opacity:1}
  86%{opacity:1}
  100%{left:calc(96% - 26px);opacity:0}
}
.duo-link__label{position:absolute;left:0;right:0;top:46px;text-align:center;font-family:var(--fmono);font-size:10.5px;font-weight:700;color:var(--accent-deep);white-space:nowrap}

@media(max-width:880px){
  .duo{grid-template-columns:1fr;max-width:440px;margin-inline:auto}
  .duo-link{height:74px;width:100%}
  .duo-link__line{left:50%;right:auto;top:4px;bottom:calc(22px + 7px);border-top:none;border-left:2px dashed rgba(34,29,23,.28)}
  .duo-link__line::after{right:auto;left:-6px;top:auto;bottom:-7px;border:5px solid transparent;border-top:7px solid rgba(34,29,23,.4);border-bottom:none}
  .duo-link__doc{left:50%;top:6px;translate:-50% 0;animation:duoTravelV 3.4s ease-in-out infinite}
  .duo-link__label{top:auto;bottom:0}
  .duo-stage{padding-top:66px}
}
/* Below ~362px a single nowrap line in the mock document no longer fits beside
   the avatar, so truncating it would leave an unreadable stub. Give the document
   more room and let it wrap instead — the sample stays fully legible. */
@media(max-width:400px){
  .duo-scene{padding:16px 14px 18px}
  .duo-avatar{width:52px;height:52px}
  .duo-stage{gap:10px}
  .duo-doc em,.duo-doc p{white-space:normal;overflow:visible;text-overflow:clip}
  /* the type-on effect animates max-width, which fights wrapped text */
  .duo-type{max-width:none;animation:none}
}
@keyframes duoTravelV{
  0%{top:2px;opacity:0}
  14%{opacity:1}
  86%{opacity:1}
  100%{top:34px;opacity:0}
}

.problem-bridge{border:1px solid var(--line);border-radius:20px;background:var(--panel);padding:clamp(24px,4vw,36px)}
.problem-bridge__lead{font-family:var(--fdisp);font-weight:800;font-size:clamp(1.1rem,2vw,1.35rem);margin-bottom:20px;text-align:center}
.problem-bridge__grid{display:grid;grid-template-columns:repeat(3,1fr);gap:18px}
.problem-bridge__item{display:flex;gap:14px;align-items:flex-start}
.problem-bridge__num{font-family:var(--fmono);font-weight:700;font-size:.85rem;color:var(--accent);flex:none;padding-top:2px}
.problem-bridge__item b{display:block;font-family:var(--fdisp);font-weight:700;font-size:.95rem;margin-bottom:5px}
/* No text-wrap here on purpose: both balance and pretty shorten the filled lines to
   even out the block, which left the narrow column looking half empty. Default greedy
   wrapping packs each line to the full column width instead. */
.problem-bridge__item small{display:block;font-size:.875rem;color:var(--muted);line-height:1.6}
/* JA only: justify flushes the right edge so the text truly fills the box. Not applied
   to EN/VI — without hyphenation, justifying a ~40ch Latin column opens ugly word gaps. */
html[lang="ja"] .problem-bridge__item small{text-align:justify}

@media(max-width:860px){
  .problem-bridge__grid{grid-template-columns:1fr;gap:16px}
}

/* ===================== FEATURES (grid + animated mockup) ===================== */
.feat-wrap{display:grid;grid-template-columns:1.1fr 1fr;gap:clamp(30px,5vw,64px);align-items:start}
.feat-grid{display:grid;grid-template-columns:repeat(2,1fr);gap:14px}
.feat-card{position:relative;padding:22px 20px;border:1px solid var(--line);border-radius:16px;background:var(--card);overflow:hidden;box-shadow:0 1px 3px rgba(34,29,23,.04);transition:transform .3s,border-color .3s,box-shadow .3s}
.feat-card:hover{transform:translateY(-3px);border-color:rgba(226,73,46,.35);box-shadow:var(--shadow-card)}
.feat-card__index{position:absolute;top:16px;right:18px;font-family:var(--fmono);font-size:11px;color:rgba(34,29,23,.22);font-weight:600;letter-spacing:.06em}
.feat-card__icon{width:36px;height:36px;border-radius:10px;display:grid;place-items:center;margin-bottom:14px}
.feat-card__icon--blue{background:rgba(226,73,46,.09);color:var(--accent)}
.feat-card__icon--teal{background:rgba(35,64,107,.09);color:var(--indigo)}
.feat-card h3{font-family:var(--fdisp);font-weight:700;font-size:.98rem;margin:0 0 7px;letter-spacing:-.01em}
.feat-card p{font-size:.83rem;color:var(--muted);margin:0;line-height:1.6;text-wrap:pretty}

/* ---- hand-drawn "app window" mockup replacing the screenshot ---- */
.feat-mock{position:sticky;top:96px;border-radius:16px;overflow:hidden;border:1px solid rgba(34,29,23,.14);box-shadow:0 30px 70px -36px rgba(34,29,23,.35);background:var(--card)}
.feat-mock__bar{display:flex;align-items:center;gap:7px;padding:12px 16px;background:var(--dark);border-bottom:1px solid rgba(255,255,255,.06)}
.feat-mock__bar span{width:11px;height:11px;border-radius:50%}
.feat-mock__bar span:nth-child(1){background:#ff5f57}
.feat-mock__bar span:nth-child(2){background:#febc2e}
.feat-mock__bar span:nth-child(3){background:#28c840}
.feat-mock__bar em{margin-left:12px;font-style:normal;font-family:var(--fmono);font-size:11px;color:rgba(255,255,255,.45)}
.feat-mock__body{position:relative;min-height:360px;background:var(--panel)}
.feat-mock__panel{position:absolute;inset:0;padding:26px 24px}
.feat-mock__panel--summary{opacity:0;pointer-events:none}
.feat-mock__panel-label{display:flex;align-items:center;gap:8px;font-family:var(--fmono);font-size:11px;letter-spacing:.08em;color:var(--panel-muted);text-transform:uppercase;margin-bottom:16px}
.feat-mock__ai-dot{width:7px;height:7px;border-radius:50%;background:var(--blue);box-shadow:0 0 0 4px rgba(59,130,246,.18)}
.feat-mock__rows{display:flex;flex-direction:column;gap:10px}
.feat-mock__row{display:flex;align-items:center;gap:10px;padding:10px 12px;border:1px solid var(--panel-line);border-radius:10px;background:#fff}
.feat-mock__row-dot{width:6px;height:6px;border-radius:50%;background:var(--blue);flex:none}
.feat-mock__row-app{font-family:var(--fmono);font-size:12px;color:var(--panel-ink);flex:none;width:66px}
.feat-mock__row-title{font-size:12px;color:var(--panel-muted);flex:1;overflow:hidden;text-overflow:ellipsis;white-space:nowrap}
.feat-mock__row-time{font-family:var(--fmono);font-size:11px;color:rgba(15,23,42,.4);flex:none}
.feat-mock__donut-wrap{position:relative;width:120px;height:120px;margin:4px auto 20px}
.feat-mock__donut-ring{position:absolute;inset:-14px;border-radius:50%;background:conic-gradient(from 0deg,#3B82F6,#22C55E,#F59E0B,#3B82F6);opacity:.3;filter:blur(12px);animation:ilsSpin 7s linear infinite;will-change:transform}
.feat-mock__donut{position:relative;width:120px;height:120px;border-radius:50%;background:conic-gradient(var(--blue) 0% 52%,var(--green) 52% 80%,var(--orange) 80% 100%);-webkit-mask:radial-gradient(closest-side,transparent 63%,#000 64%);mask:radial-gradient(closest-side,transparent 63%,#000 64%)}
.feat-mock__donut-label{position:absolute;inset:0;display:grid;place-items:center;font-family:var(--fmono);font-weight:600;font-size:14px;color:var(--panel-ink)}
.feat-mock__legend{display:flex;flex-direction:column;gap:10px;margin-bottom:18px}
.feat-mock__legend-row{display:flex;align-items:center;gap:9px;font-size:12px}
.feat-mock__legend-row i{width:7px;height:7px;border-radius:50%;flex:none}
.feat-mock__legend-row span{flex:none;width:auto;color:var(--panel-muted);min-width:56px}
.feat-mock__legend-row b{margin-left:0;font-family:var(--fmono);font-weight:600;font-size:11px;color:var(--panel-ink);flex:none;width:32px;text-align:right}
.feat-mock__bar-track{flex:1;height:4px;border-radius:99px;background:rgba(15,23,42,.08);overflow:hidden}
.feat-mock__bar-fill{height:100%;border-radius:99px}
.feat-mock__badge{display:inline-flex;align-items:center;gap:7px;padding:7px 13px;border-radius:999px;background:rgba(59,130,246,.1);border:1px solid rgba(59,130,246,.25);color:var(--blue);font-family:var(--fmono);font-size:11px;font-weight:600}

/* ===================== STORY — dark ink band ===================== */
.story{position:relative;background:var(--dark);padding:clamp(60px,8vh,90px) clamp(20px,5vw,40px);overflow:hidden}
.story__bg{position:absolute;inset:0;pointer-events:none}
.story__bg-grid{position:absolute;inset:0;background-image:linear-gradient(rgba(255,255,255,.05) 1px,transparent 1px),linear-gradient(90deg,rgba(255,255,255,.05) 1px,transparent 1px);background-size:38px 38px;-webkit-mask-image:radial-gradient(ellipse 70% 55% at 50% 40%,#000,transparent 75%);mask-image:radial-gradient(ellipse 70% 55% at 50% 40%,#000,transparent 75%)}
.story__bg span{position:absolute;width:420px;height:420px;filter:blur(50px);border-radius:50%;opacity:calc(var(--glow)*.9)}
.story__bg .g1{top:8%;left:8%;background:radial-gradient(circle,rgba(226,73,46,.2),transparent 65%)}
.story__bg .g2{bottom:6%;right:6%;background:radial-gradient(circle,rgba(245,163,28,.14),transparent 65%)}

.story__head{position:relative;z-index:1;text-align:center;max-width:640px;margin:0 auto clamp(28px,4vh,40px)}
.story__head h2{font-family:var(--fdisp);font-weight:900;color:#FBF7F1;font-size:clamp(1.8rem,3.6vw,2.7rem);letter-spacing:-.015em;margin:0;text-wrap:balance}

/* ---- carousel: one window, 3 horizontal slides the user can click through ---- */
.story__carousel{position:relative;z-index:1;max-width:760px;margin:0 auto}

.story__tabs{display:flex;justify-content:center;gap:8px;margin-bottom:18px;flex-wrap:wrap}
.story__tab{display:flex;align-items:center;gap:9px;padding:7px 18px 7px 7px;border-radius:999px;border:1px solid rgba(255,255,255,.12);background:rgba(255,255,255,.04);color:rgba(255,255,255,.55);font-family:var(--fbody);font-weight:600;font-size:13.5px;letter-spacing:-.01em;cursor:pointer;transition:color .25s,background .25s,border-color .25s}
.story__tab-num{width:24px;height:24px;border-radius:50%;display:grid;place-items:center;background:rgba(255,255,255,.08);font-family:var(--fmono);font-weight:500;font-size:11px;color:rgba(255,255,255,.55);transition:background .25s,color .25s}
.story__tab:hover{color:rgba(255,255,255,.88)}
.story__tab.is-active{color:#fff;background:rgba(226,73,46,.16);border-color:rgba(226,73,46,.5)}
.story__tab.is-active .story__tab-num{background:var(--grad);color:#fff}

.story__win{border-radius:16px;overflow:hidden;border:1px solid rgba(255,255,255,.14);box-shadow:0 0 90px 8px rgba(226,73,46,.16),0 40px 90px -30px rgba(0,0,0,.7);background:var(--panel)}
.story__win-bar{display:flex;align-items:center;gap:7px;padding:12px 16px;background:#12100D;border-bottom:1px solid rgba(255,255,255,.06)}
.story__win-bar span{width:11px;height:11px;border-radius:50%}
.story__win-bar span:nth-child(1){background:#ff5f57}
.story__win-bar span:nth-child(2){background:#febc2e}
.story__win-bar span:nth-child(3){background:#28c840}
.story__win-bar em{margin-left:12px;font-style:normal;font-family:var(--fmono);font-size:11px;color:rgba(255,255,255,.45)}

.story__viewport{overflow:hidden}
.story__track{display:flex;width:300%;transition:transform .6s cubic-bezier(.65,0,.35,1)}
.story__panel{flex:0 0 calc(100% / 3);min-height:clamp(280px,42vh,340px);padding:clamp(24px,4vw,36px);display:flex;flex-direction:column;align-items:center;justify-content:center;text-align:center}
.story__panel--ai{gap:18px}
.story__panel--report{text-align:left;align-items:stretch;justify-content:center}

.story__caption{font-family:var(--fbody);font-weight:700;color:var(--panel-ink);font-size:clamp(1rem,1.8vw,1.2rem);line-height:1.45;letter-spacing:-.005em;margin:0 0 20px;text-wrap:pretty}
.story__panel--ai .story__caption{margin:0;white-space:nowrap}
.story__panel--report .story__caption{max-width:480px;margin-bottom:18px}

.story__chips{display:flex;flex-wrap:wrap;gap:10px;justify-content:center;max-width:600px}
.story__chip{display:flex;align-items:center;gap:7px;padding:7px 13px;background:#fff;border:1px solid var(--panel-line);border-radius:999px;font-family:var(--fbody);font-weight:500;font-size:12.5px;color:var(--panel-ink);white-space:nowrap;box-shadow:0 1px 2px rgba(15,23,42,.05)}
.story__chip-dot{width:6px;height:6px;border-radius:50%;flex:none}

.story__orb{position:relative;width:84px;height:84px}
.story__orb-ring{position:absolute;inset:-14px;border-radius:50%;background:conic-gradient(from 0deg,#E2492E,#F5A31C,#E2492E);opacity:.5;filter:blur(10px);animation:ilsSpin 6s linear infinite;will-change:transform}
.story__orb-core{position:absolute;inset:0;border-radius:50%;background:var(--dark2);border:1px solid rgba(255,255,255,.16);display:grid;place-items:center;box-shadow:0 0 60px 10px rgba(226,73,46,.35);animation:ilsPulse 3s ease-in-out infinite;will-change:transform,opacity}
.story__orb-core span{font-family:var(--fmono);font-weight:600;font-size:17px}
.story__orb-packet{position:absolute;top:50%;left:50%;width:7px;height:7px;margin:-3.5px 0 0 -3.5px;border-radius:50%;box-shadow:0 0 10px 2px currentColor;will-change:transform}
.story__orb-packet--1{color:var(--accent);background:var(--accent);animation:ilsOrbit 4.5s linear infinite}
.story__orb-packet--2{color:var(--amber);background:var(--amber);animation:ilsOrbit 6s linear infinite reverse;animation-delay:-2s}

/* ---- hand-drawn "generated report" mockup replacing the screenshot ---- */
.story__report-body{display:grid;grid-template-columns:auto 1fr;gap:clamp(18px,3vw,32px);align-items:center}
.story__report-donut-wrap{position:relative;width:106px;height:106px;flex:none}
.story__report-donut{position:relative;width:106px;height:106px;border-radius:50%;background:conic-gradient(var(--blue) 0% 52%,var(--green) 52% 80%,var(--orange) 80% 100%);-webkit-mask:radial-gradient(closest-side,transparent 58%,#000 59%);mask:radial-gradient(closest-side,transparent 58%,#000 59%)}
.story__report-donut-label{position:absolute;inset:0;display:flex;flex-direction:column;align-items:center;justify-content:center;text-align:center;line-height:1.1;pointer-events:none}
.story__report-donut-label b{display:block;font-family:var(--fmono);font-weight:600;font-size:12px;color:var(--panel-ink);white-space:nowrap}
.story__report-donut-label span{display:block;font-size:8px;color:var(--panel-muted);margin-top:3px;white-space:nowrap}
.story__report-side{display:flex;flex-direction:column;gap:12px;min-width:0}
.story__report-legend{display:flex;flex-direction:column;gap:7px}
.story__report-legend-row{display:flex;align-items:center;gap:9px;font-size:12px}
.story__report-legend-row i{width:7px;height:7px;border-radius:50%;flex:none}
.story__report-legend-row span{color:var(--panel-muted);min-width:88px}
.story__report-legend-row b{margin-left:auto;font-family:var(--fmono);font-weight:600;font-size:11px;color:var(--panel-ink);flex:none}
.story__report-bar-track{flex:1;height:4px;border-radius:99px;background:rgba(15,23,42,.08);overflow:hidden}
.story__report-bar-fill{height:100%;border-radius:99px}
.story__report-summary{display:flex;flex-direction:column;gap:6px;margin-top:4px}
.story__report-summary p{display:flex;align-items:flex-start;gap:8px;font-size:12px;color:var(--panel-muted);margin:0}
.story__report-summary p svg{flex:none;margin-top:2px;color:var(--green)}
.story__report-badge{display:inline-flex;align-items:center;gap:7px;margin-top:10px;padding:6px 12px;border-radius:999px;background:rgba(34,197,94,.12);border:1px solid rgba(34,197,94,.3);color:var(--green);font-family:var(--fmono);font-size:11px;font-weight:600;align-self:flex-start}

/* ===================== HOW — auto-playing "HTML clip" player ===================== */
.howplay{display:grid;grid-template-columns:minmax(270px,330px) 1fr;gap:clamp(18px,3vw,36px);align-items:stretch}

/* ---- chapter list ---- */
.howplay__steps{display:flex;flex-direction:column;justify-content:center;gap:6px}
.howplay__step{display:flex;align-items:flex-start;gap:14px;text-align:left;padding:13px 16px;border-radius:14px;border:1px solid transparent;background:transparent;cursor:pointer;font-family:var(--fbody);transition:background .25s,border-color .25s,opacity .25s;opacity:.62}
.howplay__step:hover{opacity:1;background:rgba(34,29,23,.04)}
.howplay__step.is-active{opacity:1;background:#fff;border-color:var(--line);box-shadow:var(--shadow-card)}
.howplay__step-num{flex:none;font-family:var(--fdisp);font-weight:900;font-size:1.5rem;line-height:1.2;min-width:34px}
.howplay__step-txt{display:flex;flex-direction:column;gap:3px;min-width:0}
.howplay__step-txt b{font-family:var(--fdisp);font-weight:700;font-size:1.02rem;letter-spacing:-.01em;color:var(--ink)}
.howplay__step-txt small{font-size:.82rem;line-height:1.5;color:var(--muted);text-wrap:pretty}
.howplay__step--auto{position:relative;margin-top:8px}
.howplay__step--auto::before{content:"";position:absolute;top:-7px;left:16px;right:16px;height:1px;background:var(--line)}

/* ---- player window ---- */
.howplay__win{display:flex;flex-direction:column;border-radius:18px;overflow:hidden;border:1px solid rgba(34,29,23,.14);background:var(--panel);box-shadow:0 2px 8px rgba(34,29,23,.05),0 36px 80px -34px rgba(34,29,23,.35)}
.howplay__bar{display:flex;align-items:center;gap:7px;padding:11px 16px;background:#12100D;border-bottom:1px solid rgba(255,255,255,.06)}
.howplay__bar span:nth-child(1),.howplay__bar span:nth-child(2),.howplay__bar span:nth-child(3){width:11px;height:11px;border-radius:50%}
.howplay__bar span:nth-child(1){background:#ff5f57}
.howplay__bar span:nth-child(2){background:#febc2e}
.howplay__bar span:nth-child(3){background:#28c840}
.howplay__bar em{flex:1;min-width:0;margin-left:12px;overflow:hidden;white-space:nowrap;text-overflow:ellipsis;font-style:normal;font-family:var(--fmono);font-size:11px;color:rgba(255,255,255,.45)}
.howplay__live{flex-shrink:0;margin-left:auto;display:inline-flex;align-items:center;gap:6px;font-family:var(--fmono);font-size:10px;font-weight:600;letter-spacing:.14em;color:#4ade80}
.howplay__live i{width:6px;height:6px;border-radius:50%;background:#4ade80;box-shadow:0 0 0 3px rgba(74,222,128,.2)}
.howplay.is-playing .howplay__live i{animation:ilsPulse 1.6s ease-in-out infinite}

.howplay__stage{position:relative;flex:1;min-height:clamp(320px,46vh,400px);overflow:hidden;background:radial-gradient(120% 90% at 20% 0%,rgba(226,73,46,.06),transparent 55%),radial-gradient(110% 90% at 90% 100%,rgba(245,163,28,.08),transparent 55%),#F3F0EA;background-blend-mode:normal}
.howplay__stage::before{content:"";position:absolute;inset:0;background-image:linear-gradient(rgba(34,29,23,.045) 1px,transparent 1px),linear-gradient(90deg,rgba(34,29,23,.045) 1px,transparent 1px);background-size:34px 34px;pointer-events:none}

/* ---- controls ---- */
.howplay__ctrl{display:flex;align-items:center;gap:14px;padding:11px 16px;background:#12100D;border-top:1px solid rgba(255,255,255,.06)}
.howplay__toggle{flex:none;display:grid;place-items:center;width:32px;height:32px;border-radius:50%;border:1px solid rgba(255,255,255,.16);background:rgba(255,255,255,.06);color:#fff;cursor:pointer;transition:background .25s,transform .2s}
.howplay__toggle:hover{background:rgba(255,255,255,.14);transform:scale(1.06)}
.howplay__ic-pause{display:none}
.howplay.is-playing .howplay__ic-pause{display:block}
.howplay.is-playing .howplay__ic-play{display:none}
.howplay__segs{flex:1;display:flex;gap:6px}
.howplay__seg{flex:1;height:4px;border-radius:99px;background:rgba(255,255,255,.14);overflow:hidden}
.howplay__seg i{display:block;height:100%;width:100%;border-radius:99px;background:var(--grad);transform:scaleX(0);transform-origin:left center}
.howplay__idx{flex:none;font-family:var(--fmono);font-size:10.5px;color:rgba(255,255,255,.45);letter-spacing:.08em}

/* ---- poster overlay ---- */
.howplay__poster{position:absolute;inset:0;z-index:6;display:grid;place-items:center;border:0;background:rgba(243,240,234,.55);backdrop-filter:blur(2px);cursor:pointer;transition:opacity .5s;opacity:1}
.howplay__poster-btn{display:grid;place-items:center;width:64px;height:64px;border-radius:50%;background:var(--grad);color:#fff;box-shadow:0 18px 44px -12px rgba(226,73,46,.55);transition:transform .25s}
.howplay__poster:hover .howplay__poster-btn{transform:scale(1.08)}
.howplay.has-started .howplay__poster{opacity:0;pointer-events:none}

/* ---- scenes: base ---- */
.hp-scene{position:absolute;inset:0;display:flex;flex-direction:column;align-items:center;justify-content:center;padding:clamp(18px,3vw,30px);opacity:0;visibility:hidden;transition:opacity .45s ease,visibility 0s linear .45s}
.hp-scene.is-active{opacity:1;visibility:visible;transition:opacity .45s ease}
.howplay.is-paused .hp-scene *{animation-play-state:paused!important}

@keyframes hpFadeUp{from{opacity:0;transform:translateY(12px)}to{opacity:1;transform:translateY(0)}}
@keyframes hpPop{0%{opacity:0;transform:scale(.72)}70%{opacity:1;transform:scale(1.06)}100%{opacity:1;transform:scale(1)}}
@keyframes hpGrow{from{transform:scaleX(0)}to{transform:scaleX(1)}}
@keyframes hpWipe{from{clip-path:inset(0 100% 0 0)}to{clip-path:inset(0 0 0 0)}}

/* ---- scene 1 : install ---- */
.hp-oschips{display:flex;gap:8px;margin-bottom:22px}
.hp-oschip{font-family:var(--fmono);font-size:10.5px;font-weight:500;letter-spacing:.06em;color:var(--panel-muted);padding:5px 12px;border-radius:999px;border:1px solid var(--panel-line);background:#fff}
.hp-scene--install.is-active .hp-oschips{animation:hpFadeUp .5s ease-out both}
.hp-installer{display:flex;flex-direction:column;align-items:center;gap:12px;width:min(320px,86%);padding:26px 28px 22px;border-radius:16px;background:#fff;border:1px solid var(--panel-line);box-shadow:0 24px 54px -22px rgba(15,23,42,.25);opacity:0}
.hp-scene--install.is-active .hp-installer{animation:hpPop .55s cubic-bezier(.34,1.4,.4,1) .15s both}
.hp-installer__icon{display:grid;place-items:center;width:52px;height:52px;border-radius:14px;background:var(--grad);box-shadow:0 10px 26px -8px rgba(226,73,46,.55)}
.hp-installer__icon span{font-family:var(--fdisp);font-weight:900;font-size:15px;color:#fff}
.hp-installer__name{font-family:var(--fmono);font-size:11.5px;color:var(--panel-ink)}
.hp-installer__track{width:100%;height:6px;border-radius:99px;background:rgba(15,23,42,.08);overflow:hidden}
.hp-installer__fill{display:block;height:100%;border-radius:99px;background:var(--grad);transform:scaleX(0);transform-origin:left center}
.hp-scene--install.is-active .hp-installer__fill{animation:hpGrow 1.9s cubic-bezier(.2,.6,.25,1) .55s both}
.hp-installer__status{position:relative;height:18px;width:100%;text-align:center;font-size:11.5px}
.hp-installer__doing{position:absolute;inset:0;color:var(--panel-muted)}
.hp-scene--install.is-active .hp-installer__doing{animation:hpHide .3s linear 2.45s both}
@keyframes hpHide{to{opacity:0;visibility:hidden}}
.hp-installer__done{position:absolute;inset:0;display:inline-flex;align-items:center;justify-content:center;gap:6px;color:var(--green);font-weight:700;opacity:0}
.hp-scene--install.is-active .hp-installer__done{animation:hpPop .45s cubic-bezier(.34,1.4,.4,1) 2.55s both}
.hp-tray{display:flex;align-items:center;gap:9px;margin-top:22px;padding:8px 14px;border-radius:999px;background:#fff;border:1px solid var(--panel-line);box-shadow:0 2px 8px rgba(15,23,42,.06);opacity:0}
.hp-scene--install.is-active .hp-tray{animation:hpFadeUp .5s ease-out 3s both}
.hp-tray__ic{width:8px;height:8px;border-radius:50%;background:rgba(15,23,42,.18)}
.hp-tray__ils{position:relative;width:12px;height:12px;display:grid;place-items:center}
.hp-tray__ils i{width:10px;height:10px;border-radius:50%;background:var(--grad);opacity:0}
.hp-scene--install.is-active .hp-tray__ils i{animation:hpPop .4s cubic-bezier(.34,1.6,.4,1) 3.35s both}
.hp-tray__ils::after{content:"";position:absolute;inset:-4px;border-radius:50%;border:1.5px solid rgba(226,73,46,.5);opacity:0}
.hp-scene--install.is-active .hp-tray__ils::after{animation:hpRipple 1s ease-out 3.45s both}
@keyframes hpRipple{0%{opacity:.9;transform:scale(.5)}100%{opacity:0;transform:scale(1.5)}}
.hp-tray em{font-style:normal;font-family:var(--fmono);font-size:10.5px;color:var(--panel-muted)}

/* ---- scene 2 : capture ---- */
.hp-scene--capture{justify-content:flex-start;padding-bottom:0}
.hp-desk{position:relative;width:min(560px,100%);flex:1;min-height:0}
.hp-win{position:absolute;border-radius:10px;overflow:hidden;background:#fff;border:1px solid var(--panel-line);box-shadow:0 10px 26px -14px rgba(15,23,42,.3);opacity:0}
.hp-scene--capture.is-active .hp-win{animation-fill-mode:both}
.hp-win--code{left:2%;top:8%;width:46%;height:66%}
.hp-win--web{left:36%;top:22%;width:42%;height:62%}
.hp-win--chat{right:0;top:4%;width:30%;height:52%}
.hp-scene--capture.is-active .hp-win--code{animation:hpWinA 5.4s both}
.hp-scene--capture.is-active .hp-win--web{animation:hpWinB 5.4s both}
.hp-scene--capture.is-active .hp-win--chat{animation:hpWinC 5.4s both}
@keyframes hpWinA{0%{opacity:0;transform:translateY(10px)}5%,32%{opacity:1;transform:translateY(-3px);box-shadow:0 0 0 2px rgba(59,130,246,.65),0 18px 40px -14px rgba(59,130,246,.35);z-index:3}38%,100%{opacity:.85;transform:translateY(0);z-index:1}}
@keyframes hpWinB{0%{opacity:0;transform:translateY(10px)}8%{opacity:.85;transform:translateY(0)}36%,63%{opacity:1;transform:translateY(-3px);box-shadow:0 0 0 2px rgba(59,130,246,.65),0 18px 40px -14px rgba(59,130,246,.35);z-index:3}69%,100%{opacity:.85;transform:translateY(0);z-index:2}}
@keyframes hpWinC{0%{opacity:0;transform:translateY(10px)}11%{opacity:.85;transform:translateY(0)}67%,94%{opacity:1;transform:translateY(-3px);box-shadow:0 0 0 2px rgba(59,130,246,.65),0 18px 40px -14px rgba(59,130,246,.35);z-index:3}97%,100%{opacity:.85}}
.hp-win__bar{display:flex;align-items:center;gap:4px;padding:6px 9px;background:rgba(15,23,42,.045);border-bottom:1px solid var(--panel-line)}
.hp-win__bar i{width:6px;height:6px;border-radius:50%;background:rgba(15,23,42,.15)}
.hp-win__bar em{margin-left:5px;font-style:normal;font-family:var(--fmono);font-size:8.5px;color:var(--panel-muted);white-space:nowrap;overflow:hidden;text-overflow:ellipsis}
.hp-win__body{display:flex;flex-direction:column;gap:6px;padding:10px}
.hp-win__body span{display:block;height:5px;border-radius:99px;background:rgba(15,23,42,.1)}
.hp-win__body--code{background:#1E1914}
.hp-win__body--code span{background:rgba(255,255,255,.16)}
.hp-win__body--code span:nth-child(2n){background:rgba(245,163,28,.4)}
.hp-win__body--code span:nth-child(3n){background:rgba(59,130,246,.45)}
.hp-win__body--chat .l{align-self:flex-start;height:10px;border-radius:7px;background:rgba(15,23,42,.08)}
.hp-win__body--chat .r{align-self:flex-end;height:10px;border-radius:7px;background:rgba(59,130,246,.25)}
.hp-logs{position:relative;z-index:4;width:min(560px,100%);margin-top:10px;margin-bottom:clamp(14px,2.4vw,22px);padding:10px 14px;border-radius:12px;background:#12100D;border:1px solid rgba(255,255,255,.08);font-family:var(--fmono)}
.hp-logs__head{display:flex;align-items:center;gap:8px;font-size:10px;letter-spacing:.08em;color:rgba(255,255,255,.55);margin-bottom:7px}
.hp-logs__head i{width:7px;height:7px;border-radius:50%;background:#f87171;box-shadow:0 0 0 3px rgba(248,113,113,.2)}
.hp-scene--capture.is-active .hp-logs__head i{animation:ilsPulse 1.4s ease-in-out infinite}
.hp-logs__line{font-size:10.5px;color:rgba(255,255,255,.75);padding:2.5px 0;opacity:0}
.hp-scene--capture.is-active .hp-logs__line{animation:hpFadeUp .4s ease-out both}
.hp-scene--capture.is-active .hp-logs__line:nth-child(2){animation-delay:.6s}
.hp-scene--capture.is-active .hp-logs__line:nth-child(3){animation-delay:2.3s}
.hp-scene--capture.is-active .hp-logs__line:nth-child(4){animation-delay:4s}

/* ---- scene 3 : AI ---- */
.hp-ai__chip{position:absolute;left:50%;top:44%;transform:translate(calc(-50% + var(--dx)),calc(-50% + var(--dy)));padding:5px 11px;border-radius:999px;background:#fff;border:1px solid var(--panel-line);box-shadow:0 2px 8px rgba(15,23,42,.08);font-family:var(--fmono);font-size:10px;color:var(--panel-ink);white-space:nowrap;opacity:0}
.hp-scene--ai.is-active .hp-ai__chip{animation:hpAbsorb 2.1s cubic-bezier(.5,0,.6,1) var(--dl) both}
@keyframes hpAbsorb{0%{opacity:0;transform:translate(calc(-50% + var(--dx)),calc(-50% + var(--dy))) scale(.8)}18%{opacity:1;transform:translate(calc(-50% + var(--dx)),calc(-50% + var(--dy))) scale(1)}55%{opacity:1}100%{opacity:0;transform:translate(-50%,-50%) scale(.2)}}
.hp-ai__orb{position:relative;width:76px;height:76px;margin-bottom:16px}
.hp-ai__ring{position:absolute;inset:-13px;border-radius:50%;background:conic-gradient(from 0deg,#E2492E,#F5A31C,#E2492E);opacity:.45;filter:blur(9px)}
.hp-scene--ai.is-active .hp-ai__ring{animation:ilsSpin 5s linear infinite}
.hp-ai__orb b{position:absolute;inset:0;border-radius:50%;background:var(--dark2);border:1px solid rgba(255,255,255,.16);display:grid;place-items:center;font-family:var(--fmono);font-weight:600;font-size:15px;box-shadow:0 0 46px 8px rgba(226,73,46,.3)}
.hp-scene--ai.is-active .hp-ai__orb b{animation:ilsPulse 2.4s ease-in-out infinite}
.hp-ai__status{display:flex;align-items:center;gap:8px;font-family:var(--fmono);font-size:11px;color:var(--panel-muted)}
.hp-ai__dots{display:inline-flex;gap:3px}
.hp-ai__dots span{width:4px;height:4px;border-radius:50%;background:var(--panel-muted)}
.hp-scene--ai.is-active .hp-ai__dots span{animation:ilsPulse 1s ease-in-out infinite}
.hp-scene--ai.is-active .hp-ai__dots span:nth-child(2){animation-delay:.2s}
.hp-scene--ai.is-active .hp-ai__dots span:nth-child(3){animation-delay:.4s}
.hp-ai__cats{display:flex;flex-wrap:wrap;justify-content:center;gap:8px;margin-top:18px}
.hp-ai__cat{display:inline-flex;align-items:center;gap:7px;padding:6px 12px;border-radius:999px;background:#fff;border:1px solid var(--panel-line);box-shadow:0 2px 8px rgba(15,23,42,.07);font-size:11.5px;color:var(--panel-ink);opacity:0}
.hp-ai__cat i{width:7px;height:7px;border-radius:50%}
.hp-ai__cat b{font-family:var(--fmono);font-weight:600;font-size:10.5px;color:var(--panel-muted)}
.hp-scene--ai.is-active .hp-ai__cat{animation:hpPop .5s cubic-bezier(.34,1.5,.4,1) both}
.hp-scene--ai.is-active .hp-ai__cats .hp-ai__cat:nth-child(1){animation-delay:2.5s}
.hp-scene--ai.is-active .hp-ai__cats .hp-ai__cat:nth-child(2){animation-delay:2.75s}
.hp-scene--ai.is-active .hp-ai__cats .hp-ai__cat:nth-child(3){animation-delay:3s}

/* ---- scene 4 : report ---- */
@property --hpd{syntax:'<angle>';initial-value:360deg;inherits:false}
.hp-report{width:min(500px,100%);padding:20px 22px;border-radius:16px;background:#fff;border:1px solid var(--panel-line);box-shadow:0 24px 54px -22px rgba(15,23,42,.25);opacity:0}
.hp-scene--report.is-active .hp-report{animation:hpPop .55s cubic-bezier(.34,1.4,.4,1) .1s both}
.hp-report__head{display:flex;align-items:flex-start;justify-content:space-between;gap:12px;margin-bottom:16px}
.hp-report__title{min-width:0}
.hp-report__title b{display:block;font-family:var(--fdisp);font-weight:700;font-size:13.5px;color:var(--panel-ink);margin-bottom:4px}
.hp-report__sum{display:block;font-size:11px;line-height:1.55;color:var(--panel-muted)}
.hp-scene--report.is-active .hp-report__sum{animation:hpWipe 1.1s steps(24) .7s both}
.hp-report__badge{flex:none;display:inline-flex;align-items:center;gap:6px;padding:5px 11px;border-radius:999px;background:rgba(34,197,94,.12);border:1px solid rgba(34,197,94,.3);color:var(--green);font-family:var(--fmono);font-size:10px;font-weight:600;opacity:0}
.hp-scene--report.is-active .hp-report__badge{animation:hpPop .45s cubic-bezier(.34,1.5,.4,1) 2.7s both}
.hp-report__grid{display:grid;grid-template-columns:auto 1fr;gap:clamp(16px,3vw,28px);align-items:center}
.hp-report__donutwrap{position:relative;width:98px;height:98px}
.hp-report__donut{width:100%;height:100%;border-radius:50%;background:conic-gradient(var(--blue) 0 min(var(--hpd),187.2deg),var(--green) min(var(--hpd),187.2deg) min(var(--hpd),288deg),var(--orange) min(var(--hpd),288deg) min(var(--hpd),360deg),rgba(15,23,42,.07) 0);-webkit-mask:radial-gradient(closest-side,transparent 60%,#000 61%);mask:radial-gradient(closest-side,transparent 60%,#000 61%)}
.hp-scene--report.is-active .hp-report__donut{animation:hpDonut 1.4s cubic-bezier(.3,.6,.2,1) .8s both}
@keyframes hpDonut{from{--hpd:0deg}to{--hpd:360deg}}
.hp-report__dlabel{position:absolute;inset:0;display:flex;flex-direction:column;align-items:center;justify-content:center;line-height:1.1;opacity:0}
.hp-scene--report.is-active .hp-report__dlabel{animation:hpFadeUp .5s ease-out 1.9s both}
.hp-report__dlabel b{font-family:var(--fmono);font-weight:600;font-size:12px;color:var(--panel-ink)}
.hp-report__dlabel span{font-size:8px;color:var(--panel-muted);margin-top:3px}
.hp-report__legend{display:flex;flex-direction:column;gap:9px;min-width:0}
.hp-report__row{display:flex;align-items:center;gap:9px;font-size:11.5px;opacity:0}
.hp-scene--report.is-active .hp-report__row{animation:hpFadeUp .45s ease-out both}
.hp-scene--report.is-active .hp-report__row:nth-child(1){animation-delay:1.3s}
.hp-scene--report.is-active .hp-report__row:nth-child(2){animation-delay:1.5s}
.hp-scene--report.is-active .hp-report__row:nth-child(3){animation-delay:1.7s}
.hp-report__row i{width:7px;height:7px;border-radius:50%;flex:none}
.hp-report__row span{color:var(--panel-muted);min-width:86px;white-space:nowrap;overflow:hidden;text-overflow:ellipsis}
.hp-report__row u{flex:1;height:4px;border-radius:99px;background:rgba(15,23,42,.08);overflow:hidden;text-decoration:none}
.hp-report__row u b{display:block;height:100%;width:var(--w);border-radius:99px;transform:scaleX(0);transform-origin:left center}
.hp-scene--report.is-active .hp-report__row u b{animation:hpGrow .7s cubic-bezier(.2,.6,.25,1) both}
.hp-scene--report.is-active .hp-report__row:nth-child(1) u b{animation-delay:1.45s}
.hp-scene--report.is-active .hp-report__row:nth-child(2) u b{animation-delay:1.65s}
.hp-scene--report.is-active .hp-report__row:nth-child(3) u b{animation-delay:1.85s}
.hp-report__row em{font-style:normal;font-family:var(--fmono);font-weight:600;font-size:10.5px;color:var(--panel-ink);flex:none}

/* ---- scene 5 : auto delivery ---- */
.hp-auto__clock{display:inline-flex;align-items:center;gap:8px;padding:7px 15px;border-radius:999px;background:#12100D;color:#fff;font-size:11.5px;box-shadow:0 12px 30px -12px rgba(18,16,13,.5);opacity:0}
.hp-scene--auto.is-active .hp-auto__clock{animation:hpPop .5s cubic-bezier(.34,1.5,.4,1) .15s both}
.hp-auto__clock svg{color:var(--amber)}
.hp-auto__clock b{font-family:var(--fmono);font-weight:600;font-size:12px}
.hp-auto__clock span{color:rgba(255,255,255,.65);font-size:10.5px}
.hp-auto__days{display:flex;gap:clamp(10px,2.4vw,20px);margin:24px 0 22px}
.hp-auto__day{display:flex;flex-direction:column;align-items:center;gap:8px}
.hp-auto__day em{font-style:normal;font-family:var(--fmono);font-size:10.5px;color:var(--panel-muted);opacity:0}
.hp-scene--auto.is-active .hp-auto__day em{animation:hpFadeUp .4s ease-out var(--dl) both}
.hp-auto__doc{display:flex;flex-direction:column;gap:5px;width:clamp(88px,12vw,112px);padding:12px 12px 14px;border-radius:11px;background:#fff;border:1px solid var(--panel-line);box-shadow:0 14px 30px -16px rgba(15,23,42,.3);opacity:0}
.hp-scene--auto.is-active .hp-auto__doc{animation:hpDrop .55s cubic-bezier(.34,1.4,.4,1) calc(var(--dl) + .15s) both}
@keyframes hpDrop{0%{opacity:0;transform:translateY(-16px) scale(.92)}100%{opacity:1;transform:translateY(0) scale(1)}}
.hp-auto__doc u{width:22px;height:22px;border-radius:50%;background:conic-gradient(var(--blue) 0 52%,var(--green) 52% 80%,var(--orange) 80% 100%);-webkit-mask:radial-gradient(closest-side,transparent 52%,#000 53%);mask:radial-gradient(closest-side,transparent 52%,#000 53%);margin-bottom:3px;text-decoration:none}
.hp-auto__doc i{display:block;height:4px;border-radius:99px;background:rgba(15,23,42,.1)}
.hp-auto__ok{display:inline-flex;align-items:center;gap:5px;font-family:var(--fmono);font-size:9.5px;font-weight:600;color:var(--green);opacity:0}
.hp-scene--auto.is-active .hp-auto__ok{animation:hpPop .4s cubic-bezier(.34,1.5,.4,1) calc(var(--dl) + .5s) both}
.hp-auto__to{display:flex;flex-wrap:wrap;justify-content:center;gap:8px}
.hp-auto__chip{display:inline-flex;align-items:center;gap:7px;padding:7px 14px;border-radius:999px;background:#fff;border:1px solid var(--panel-line);box-shadow:0 2px 8px rgba(15,23,42,.07);font-size:11.5px;color:var(--panel-ink);opacity:0}
.hp-auto__chip svg{color:var(--accent)}
.hp-scene--auto.is-active .hp-auto__chip{animation:hpFadeUp .5s ease-out both}
.hp-scene--auto.is-active .hp-auto__chip:nth-child(1){animation-delay:3.6s}
.hp-scene--auto.is-active .hp-auto__chip:nth-child(2){animation-delay:3.85s}

/* ---- static / reduced-motion fallback ---- */
.howplay.is-static .hp-scene *{animation:none!important}
.howplay.is-static .hp-scene .hp-installer,.howplay.is-static .hp-scene .hp-tray,.howplay.is-static .hp-scene .hp-tray__ils i,
.howplay.is-static .hp-scene .hp-installer__done,.howplay.is-static .hp-scene .hp-oschips,
.howplay.is-static .hp-scene .hp-win,.howplay.is-static .hp-scene .hp-logs__line,
.howplay.is-static .hp-scene .hp-ai__cat,.howplay.is-static .hp-scene .hp-report,
.howplay.is-static .hp-scene .hp-report__badge,.howplay.is-static .hp-scene .hp-report__dlabel,.howplay.is-static .hp-scene .hp-report__row,
.howplay.is-static .hp-scene .hp-auto__clock,.howplay.is-static .hp-scene .hp-auto__day em,
.howplay.is-static .hp-scene .hp-auto__doc,.howplay.is-static .hp-scene .hp-auto__ok,.howplay.is-static .hp-scene .hp-auto__chip{opacity:1;transform:none}
.howplay.is-static .hp-installer__doing{opacity:0;visibility:hidden}
.howplay.is-static .hp-installer__fill,.howplay.is-static .hp-report__row u b{transform:scaleX(1)}
.howplay.is-static .hp-report__sum{clip-path:none}
.howplay.is-static .hp-ai__chip{display:none}
.howplay.is-static .howplay__poster{display:none}

/* ===================== CTA — vermilion panel ===================== */
.cta{position:relative;overflow:hidden;margin:0 clamp(12px,3vw,40px) clamp(60px,8vh,90px);border-radius:28px;background:linear-gradient(125deg,#E2492E 0%,#C0361D 78%);padding:clamp(60px,11vh,110px) clamp(24px,6vw,60px);text-align:center}
.cta__dots{position:absolute;inset:0;background-image:radial-gradient(circle,rgba(255,255,255,.15) 1.5px,transparent 1.5px);background-size:26px 26px;opacity:.5}
.cta__glow{position:absolute;top:-25%;right:-8%;width:480px;height:480px;background:radial-gradient(circle,rgba(255,205,120,.4),transparent 65%);filter:blur(40px)}
.cta__body{position:relative;z-index:1;max-width:680px;margin:0 auto}
.cta__title{font-family:var(--fdisp);font-weight:900;color:#fff;font-size:clamp(2.1rem,4.8vw,3.4rem);line-height:1.12;letter-spacing:-.02em;margin:0 0 20px;text-shadow:0 2px 24px rgba(90,20,8,.25)}
.cta__sub{color:rgba(255,246,240,.92);font-size:1.1rem;margin:0 0 34px;text-wrap:pretty}
.cta__actions{display:flex;justify-content:center;gap:12px;flex-wrap:wrap;margin-bottom:18px}

/* ===================== FOOTER ===================== */
.footer{padding:clamp(40px,6vh,60px) clamp(20px,5vw,40px) 36px;max-width:1200px;margin:0 auto;border-top:1px solid var(--line);text-align:center}
.footer__top{display:flex;flex-direction:column;align-items:center;gap:16px;margin-bottom:28px}
.footer__brand{max-width:360px;display:flex;flex-direction:column;align-items:center}
.footer__brand-row{display:flex;align-items:center;justify-content:center;gap:10px;margin-bottom:12px}
.footer__logo{display:block;width:38px;height:38px;padding:4px;border-radius:9px;border:1px solid var(--line);background:#fff;object-fit:contain}
.footer__name{font-family:var(--fdisp);font-weight:700;font-size:15px}
.footer__tag{font-size:.9rem;color:var(--muted);margin:0;text-wrap:pretty;text-align:center}
.footer__copy{font-family:var(--fmono);font-size:12px;color:var(--muted);text-align:center}

/* ===================== RESPONSIVE ===================== */
@media(max-width:1024px){
  .narrow-br{display:inline}
  .feat-wrap{grid-template-columns:1fr}
  .feat-mock{position:static;order:-1;max-width:560px;margin:0 auto;width:100%}
  .hero__mock-cards{grid-template-columns:repeat(3,1fr)}
  .hero__mock-card:nth-child(n+10){display:none}
  .howplay{grid-template-columns:1fr}
  .howplay__win{order:-1;max-width:640px;margin:0 auto;width:100%}
  .howplay__steps{max-width:640px;margin:0 auto;width:100%}
}
/* Tablet + desktop (>900px): nav links show and sections have a large top padding, so
   the default 70px anchor offset leaves too much empty space after clicking a nav tab —
   reduce it so the section content lands higher. Mobile (<=900px) keeps 70px. */
@media(min-width:901px){
  #problem,#features,#how,#cta{scroll-margin-top:8px}
  /* Story is a short (carousel) section: a tiny offset scrolls it so high that the
     next section's title (仕組み) peeks in below — keep a larger offset here. */
  #story{scroll-margin-top:70px}
}
/* Desktop only, Japanese copy only: sentence 1 of the JA hero sub is ~50em and must
   render on a single line (its .phone-br breaks are hidden above 600px, and a plain
   <br> separates the two sentences), so the sub ends up exactly two lines here.
   The default 600px sub / 860px inner would wrap sentence 1, so widen both.
   Scoped to [lang="ja"] because the shorter EN/VI copy reads better at 600px. */
@media(min-width:1025px){
  html[lang="ja"] .hero__inner{max-width:1040px}
  html[lang="ja"] .hero__sub{max-width:none}
  .wide-br{display:inline}
  /* Every JA step caption below 01 is hard-broken at a chosen point (.wide-br). The track
     has to clear the widest of those first halves:
       02  アクティブウィンドウ（アプリ名・タイトル）を自動で … 327px  ← the widest
       03  記録データをもとに、AIが要約・分析・作業内容を      … 300px
       04  本人はいつでも確認でき、管理者は権限に応じて閲覧    … 314px
       ∞   設定した時刻に…配信。 … 315px  /  もう、ゼロから…ありません。 … 301px
     The default 330px track leaves the caption only 248px (track − 82px of step padding,
     gap and the number column), so every one of them wrapped. 420px leaves 338px, which
     clears the widest by 11px; JA is full-width, so these widths are font-independent
     (chars × font-size) and hold across DPRs, and the track keeps its max from 1025px up.
     Costs the player window 90px (754→664 at 1200px+) — the price of the chosen break
     points; at 1025px the track is already ~44% of the row, so widen further only if the
     copy really demands it. JA only: EN/VI have no such breaks and keep the 330px track. */
  html[lang="ja"] .howplay{grid-template-columns:minmax(270px,420px) 1fr}
}
@media(max-width:900px){
  /* links hidden here → the 3-col centering grid has nothing to center and would
     squeeze the brand into a half-width cell (overflow/overlap). Fall back to a
     simple two-item row: brand left, controls right. */
  .nav{display:flex;justify-content:space-between}
  .nav__links{display:none}
  .nav__brand{min-width:0}
  .nav__brand-name{overflow:hidden;text-overflow:ellipsis}
  /* logo header khổ mobile: cố định chiều cao như site AMS (không co theo width) */
  .nav__brand-logo{width:auto;height:44px}
}
@media(max-width:768px){
  .section{padding:56px 20px}
  .howplay__stage{min-height:300px}
  .howplay__step{padding:10px 12px;gap:11px}
  .howplay__step-num{font-size:1.2rem;min-width:26px}
  .howplay__step-txt small{font-size:.78rem}
  .hp-ai__chip{font-size:9px}
  .hp-win--chat{display:none}
  .hp-win--code{width:54%}
  .hp-win--web{left:44%;width:52%}
  .story__report-body{grid-template-columns:1fr;text-align:center}
  .story__report-donut-wrap{margin:0 auto}
  .story__report-legend-row span{min-width:0;flex:1;text-align:left}
  .story__report-badge{align-self:center}
  .hero__mock{padding:16px 14px}
  .hero__mock-rail{display:none}
  .hero__mock-body{padding:16px 14px}
  .hero__mock--admin .hero__mock-body{padding:16px 14px}
  .hero__mock-main{flex-direction:column;text-align:center}
  .hero__mock-legend{width:100%}
  .hero__mock-row{grid-template-columns:.6fr .8fr 1fr .6fr;font-size:10px;padding:9px 10px}
  .hero__mock-table--client .hero__mock-row{grid-template-columns:.8fr 1.2fr .8fr .6fr}
  .hero__mock-who span{display:none}
  .hero__mock-toolbar-title{font-size:13px}
  .hero__mock-datepick{display:none}
  .hero__mock-filter-chip:nth-child(n+3){display:none}
  .hero__mock-quickrow{gap:4px}
  .hero__mock-quickrow .hero__mock-quickbtn:nth-child(n+3){display:none}
  .hero__mock-cards{grid-template-columns:repeat(2,1fr)}
  .hero__mock-card:nth-child(n+7){display:none}
  /* Two columns leave ~117px per card for name + time. Long VI names (e.g.
     "Nguyễn Văn Hùng") would ellipsis at 11.5px, so tighten the row slightly. */
  .hero__mock-card{padding:10px 10px}
  .hero__mock-card-top{gap:4px}
  .hero__mock-card-top b{font-size:11px}
  .hero__mock-pagination{display:none}
  .hero__tab{padding:6px 12px;font-size:11.5px}
}
@media(max-width:640px){
  .hero__badge-float{display:none}
  .hero__visual-wrap{animation:none}
  /* màn hình hẹp: cho phép caption AI xuống hàng lại để không tràn */
  .story__panel--ai .story__caption{white-space:normal;max-width:400px}
}
@media(max-width:520px){
  .feat-grid{grid-template-columns:1fr;gap:10px}
  /* モバイルは横並び（アイコン左・テキスト右）にして余白の間延びを解消 */
  .feat-card{
    display:grid;
    grid-template-columns:auto minmax(0,1fr);
    column-gap:14px;
    row-gap:4px;
    align-items:center;
    padding:16px 18px;
  }
  .feat-card__icon{grid-row:1 / span 2;align-self:center;margin-bottom:0}
  .feat-card h3{grid-column:2;margin:0;padding-right:26px}
  .feat-card p{grid-column:2}
  /* single primary CTAs stay full-width; hero has two buttons → keep them as compact pills */
  .cta .btn{width:100%;max-width:340px}
  .hero__actions{gap:10px}
  .hero__actions .btn{width:auto;max-width:none;min-width:0;padding:11px 20px;font-size:13.5px;border-radius:11px}
  .hero__actions .btn-white{box-shadow:0 10px 24px -12px rgba(226,73,46,.5)}
}
@media(max-width:1320px){
  .nav__brand-name{display:none}
}
@media(max-width:600px){
  .nav__brand-logo{height:38px}
  .hero__title{font-size:30px}
  .section__title{font-size:26px}
  .story__head h2{font-size:26px}
  .cta__title{font-size:30px}
  .phone-br{display:inline}
  .pc-br{display:none}
  .hero__sub{font-size:15px}
  .section__lead{font-size:15px}
  .cta__sub{font-size:15px}
  .problem-bridge__lead{font-size:16px}
  /* Phone: hide the macOS traffic-light dots in the mock window bars */
  .hero__window-bar span,
  .feat-mock__bar span,
  .story__win-bar span,
  .howplay__bar span:nth-child(1),
  .howplay__bar span:nth-child(2),
  .howplay__bar span:nth-child(3){display:none}
  /* Phone: with the dots hidden, pull the title flush to the left */
  .hero__window-bar em,
  .feat-mock__bar em,
  .story__win-bar em,
  .howplay__bar em{margin-left:0}
  /* Phone: the installer status is a single 18px-tall readout and .hp-installer__done sits
     on it absolutely, so a wrapped second line does not push anything down — it spills up
     over the progress bar. width:min(320px,86%) took only 208px of the 242px the scene
     offers at 320px, and 28px side padding left the label 150px, while
     「インストール完了 — 自動起動」 needs 173px next to its check icon (EN
     "Installed — launched automatically" needs 202px, so it wrapped on every phone).
     Filling the scene and letting the side padding shrink with the viewport gives 214px at
     320px; nowrap keeps the line intact if a fallback font renders wider. The 320px cap is
     kept so the card is unchanged from ~400px up. */
  .hp-installer{width:min(320px,100%);padding:26px clamp(14px,4.4vw,28px) 22px}
  .hp-installer__status{white-space:nowrap}
}
@media(max-width:480px){
  .nav{padding:12px 14px;gap:8px}
  .nav__right{gap:8px}
  .lang-btn{height:36px;padding:0 9px}
  .nav__cta{height:36px;padding:0 12px;font-size:13px;min-width:88px}
}
/* Phone: the report legend column is the 1fr half of a 98px-donut grid, so it drops to
   ~120px here. A row needs 147px that cannot shrink (7px dot + 86px label min-width +
   27px of gaps + the flex:none percentage), so the percentage was pushed outside the
   card. Above 430px the column leaves the bar ~40px+ and everything fits, so the bar
   only goes away below that — where it was a 2-5px stub anyway. Letting the label
   shrink and grow instead keeps all three percentages flush right and aligned. */
@media(max-width:430px){
  .hp-report__row u{display:none}
  .hp-report__row span{min-width:0;flex:1}
}
/* 360-380px only. The break is only right while the text before it (…必ず本人が) still
   fits two full lines. It needs a 236.6px column — viewport 357px. Any narrower and that
   text wraps to three lines by itself, with the browser's own break falling on the very
   same character: 「が」 is then left alone on line 3 and 行います。 pushed to a fourth.
   That is what Galaxy Z Fold 5 (344px cover screen) showed, and it held all the way down
   to 321px. 357-365px is a no-op band (the natural wrap and the break agree), so the
   boundary sits at 360px rather than 357px to leave margin for font-metric drift. Above
   380px the column is ~268px and the blurb already fits two full lines unaided. */
@media(min-width:360px) and (max-width:380px){
  .se-br{display:inline}
}
/* A range, not a max: the 自動配信 blurb needs its hard break between 321-395px
   (iPhone SE 2/3 through iPhone 16). Above 395px it already fits two lines, and at
   320px (iPhone 5/SE 1) the text before the break itself wraps to three lines — the
   break would then add a fourth, leaving two stub lines in a row. */
@media(min-width:321px) and (max-width:395px){
  .sp-br{display:inline}
}
/* iPhone 5 / SE gen 1 only. The bridge lead's own first half ("...で変わる、") already
   fills the ~232px column here, so keeping its .phone-br would push 3つのこと。 onto a
   third line with a 1-character stub above it. Two natural lines read better.
   Scoped to this element so the shared .phone-br keeps working in the hero. */
@media(max-width:320px){
  .problem-bridge__lead .phone-br{display:none}
  /* 26px would make the second line (読めるレポートになる。) 286px in a 280px column,
     wrapping a 1-character tail onto a third line. 25px brings it to 275px. */
  .story__head h2{font-size:25px}
  /* The CTA box is the tightest column on the page: 320 - margin 12*2 - padding 24*2
     = 248px. At 30px its second line (時間を取られない。) is ~265px and wraps. */
  .cta__title{font-size:28px}
  /* Same story in the hero: at 30px line 2 (レポートが完成する。) is ~291px in a 280px
     column. 28px brings it to ~272px. */
  .hero__title{font-size:28px}
}

/* ===================== SCROLL PERF: freeze looping animations while scrolling ===================== */
/* Set by JS (initScrollPause) on <html> during scroll, removed ~160ms after it stops.
   Stops per-frame repaints of the background loops so scrolling stays smooth. */
html.is-scrolling .hero__visual-wrap,
html.is-scrolling .hero__glow .g1,
html.is-scrolling .hero__glow .g2,
html.is-scrolling .hero__badge-float--ai,
html.is-scrolling .hero__badge-float--live,
html.is-scrolling .hero__terminal-track,
html.is-scrolling .story__orb-ring,
html.is-scrolling .story__orb-core,
html.is-scrolling .story__orb-packet,
html.is-scrolling .story__chip,
html.is-scrolling .feat-mock__donut-ring{animation-play-state:paused}

/* ===================== REDUCED MOTION ===================== */
@media(prefers-reduced-motion:reduce){
  html{scroll-behavior:auto}
  .hero__visual-wrap,.hero__glow .g1,.hero__glow .g2,.hero__badge-float--ai,.hero__badge-float--live,
  .story__orb-ring,.story__orb-core,.hero__terminal-track,.story__chip,
  .feat-mock__donut-ring,.story__orb-packet--1,.story__orb-packet--2{animation:none}
}
