/* PrintKavach — marketing site
   Visual language: office paper + CMYK process ink. Light, warm, colourful, print-native.
   Modern platform features used: cross-document View Transitions, scroll-driven animations,
   @property, :has(), popover, text-wrap: balance/pretty, color-mix(), @starting-style. */

@view-transition { navigation: auto; }

@property --pk-angle { syntax: '<angle>'; inherits: false; initial-value: 0deg; }

:root {
  --paper: #FBF8F1;
  --paper-2: #F4EEE1;
  --paper-3: #EDE5D3;
  --card: #FFFEFB;
  --ink: #17202B;
  --ink-2: #445063;
  --ink-3: #7A8394;
  --line: #E6DDCB;
  --line-2: #D9CDB6;

  --cyan: #0E9DB0;   --cyan-ink: #08707E;  --cyan-soft: #DDF3F5;
  --magenta: #D63A72; --mag-ink: #A4224F;  --mag-soft: #FBE4EC;
  --yellow: #F2B705;  --yel-ink: #8A6400;  --yel-soft: #FFF2C7;
  --green: #2C9A56;   --green-soft: #E0F3E6;
  --orange: #E8762E;  --orange-soft: #FDEBDD;

  --radius: 18px;
  --radius-sm: 12px;
  --shadow: 0 1px 0 rgba(23,32,43,.04), 0 10px 30px -12px rgba(60,45,20,.18);
  --shadow-lg: 0 2px 0 rgba(23,32,43,.04), 0 30px 60px -24px rgba(60,45,20,.28);

  --f-display: 'Bricolage Grotesque', 'DM Sans', system-ui, sans-serif;
  --f-body: 'Hanken Grotesk', 'DM Sans', system-ui, -apple-system, 'Segoe UI', sans-serif;
  --f-mono: 'JetBrains Mono', ui-monospace, 'Cascadia Code', Consolas, monospace;
  --f-hindi: 'Tiro Devanagari Hindi', 'Noto Serif Devanagari', serif;

  --wrap: 1200px;
  color-scheme: light;
}

*, *::before, *::after { box-sizing: border-box; }
html { scroll-behavior: smooth; -webkit-text-size-adjust: 100%; }
body {
  margin: 0; background: var(--paper); color: var(--ink);
  font: 400 17px/1.6 var(--f-body); -webkit-font-smoothing: antialiased;
  background-image:
    radial-gradient(circle at 1px 1px, rgba(23,32,43,.05) 1px, transparent 0);
  background-size: 22px 22px;
}
img, svg { max-width: 100%; display: block; }
a { color: inherit; }
h1, h2, h3, h4 { font-family: var(--f-display); line-height: 1.08; letter-spacing: -.02em; margin: 0 0 .5em; text-wrap: balance; }
h1 { font-size: clamp(2.4rem, 4.7vw, 4rem); font-weight: 800; letter-spacing: -.035em; }
h2 { font-size: clamp(2rem, 3.8vw, 3.1rem); font-weight: 800; }
h3 { font-size: 1.3rem; font-weight: 700; }
p { margin: 0 0 1em; text-wrap: pretty; }
::selection { background: var(--yel-soft); }
:focus-visible { outline: 3px solid var(--cyan); outline-offset: 3px; border-radius: 6px; }

.wrap { width: min(var(--wrap), calc(100% - 40px)); margin-inline: auto; }
.section { padding: clamp(70px, 9vw, 120px) 0; position: relative; }
.center { text-align: center; }
.muted { color: var(--ink-2); }
.small { font-size: .9rem; }
.mono { font-family: var(--f-mono); }
.hi { font-family: var(--f-hindi); font-weight: 400; letter-spacing: 0; }
.sr { position: absolute; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); }

/* ---------- Kicker / registration marks ---------- */
.kicker {
  display: inline-flex; align-items: center; gap: 10px; font: 600 .8rem/1 var(--f-mono);
  text-transform: uppercase; letter-spacing: .12em; color: var(--ink-2); margin-bottom: 18px;
}
.kicker::before {
  content: ''; width: 14px; height: 14px; border-radius: 50%;
  background: conic-gradient(var(--cyan) 0 25%, var(--magenta) 0 50%, var(--yellow) 0 75%, var(--ink) 0);
}
.regmark { position: absolute; width: 22px; height: 22px; opacity: .35; pointer-events: none; }
.regmark::before, .regmark::after { content: ''; position: absolute; background: var(--ink); }
.regmark::before { left: 50%; top: 0; bottom: 0; width: 1px; }
.regmark::after { top: 50%; left: 0; right: 0; height: 1px; }
.regmark i { position: absolute; inset: 5px; border: 1px solid var(--ink); border-radius: 50%; }

/* CMYK test strip divider */
.strip { height: 8px; display: grid; grid-template-columns: repeat(8, 1fr); }
.strip span:nth-child(1) { background: var(--cyan); }
.strip span:nth-child(2) { background: color-mix(in oklab, var(--cyan) 50%, white); }
.strip span:nth-child(3) { background: var(--magenta); }
.strip span:nth-child(4) { background: color-mix(in oklab, var(--magenta) 50%, white); }
.strip span:nth-child(5) { background: var(--yellow); }
.strip span:nth-child(6) { background: color-mix(in oklab, var(--yellow) 50%, white); }
.strip span:nth-child(7) { background: var(--ink); }
.strip span:nth-child(8) { background: var(--ink-3); }

/* ---------- Buttons ---------- */
.btn {
  --b: var(--ink); --t: #fff;
  display: inline-flex; align-items: center; gap: 10px; justify-content: center;
  padding: 14px 22px; border-radius: 999px; border: 2px solid var(--b);
  background: var(--b); color: var(--t); font: 700 1rem/1 var(--f-body); text-decoration: none; cursor: pointer;
  box-shadow: 0 4px 0 color-mix(in oklab, var(--b) 60%, black);
  transition: transform .15s, box-shadow .15s, background .2s;
}
.btn:hover { transform: translateY(-2px); box-shadow: 0 6px 0 color-mix(in oklab, var(--b) 60%, black); }
.btn:active { transform: translateY(2px); box-shadow: 0 1px 0 color-mix(in oklab, var(--b) 60%, black); }
.btn.mag { --b: var(--magenta); }
.btn.cyan { --b: var(--cyan); }
.btn.ghost { --t: var(--ink); background: transparent; box-shadow: none; border-color: var(--line-2); }
.btn.ghost:hover { border-color: var(--ink); background: var(--card); }
.btn.sm { padding: 10px 16px; font-size: .92rem; }
.btn svg { width: 18px; height: 18px; }

/* ---------- Header ---------- */
.topbar { background: var(--ink); color: #F4EEE1; font-size: .85rem; }
.topbar .wrap { display: flex; gap: 18px; justify-content: center; align-items: center; padding: 8px 0; flex-wrap: wrap; }
.topbar a { color: var(--yellow); font-weight: 600; text-decoration: none; }
.topbar .dotsep { opacity: .4; }
.hdr { position: sticky; top: 0; z-index: 50; background: color-mix(in oklab, var(--paper) 86%, transparent); backdrop-filter: saturate(1.4) blur(12px); border-bottom: 1px solid transparent; transition: border-color .3s; view-transition-name: site-header; }
.hdr.scrolled { border-color: var(--line); }
.hdr .wrap { display: flex; align-items: center; gap: 28px; height: 74px; }
.brand { display: flex; align-items: center; gap: 10px; text-decoration: none; font: 800 1.45rem/1 var(--f-display); letter-spacing: -.03em; }
.brand img { width: 38px; height: 38px; }
.brand b { color: var(--magenta); font-weight: 800; }
.brand small { display: block; font: 600 .62rem/1 var(--f-mono); letter-spacing: .14em; color: var(--ink-3); text-transform: uppercase; margin-top: 4px; }
.nav { display: flex; gap: 4px; margin-left: auto; }
.nav a { text-decoration: none; padding: 9px 14px; border-radius: 999px; font-weight: 600; color: var(--ink-2); font-size: .96rem; }
.nav a:hover, .nav a[aria-current] { background: var(--paper-2); color: var(--ink); }
.hdr .actions { display: flex; gap: 10px; align-items: center; }
.menu-btn { display: none; background: none; border: 2px solid var(--line-2); border-radius: 12px; width: 44px; height: 44px; cursor: pointer; }
.menu-btn span { display: block; width: 18px; height: 2px; background: var(--ink); margin: 4px auto; border-radius: 2px; }
#mnav { border: 0; padding: 0; margin: 0; inset: 0 0 auto auto; width: min(360px, 90vw); height: 100dvh; background: var(--card); box-shadow: var(--shadow-lg); }
#mnav:popover-open { display: flex; flex-direction: column; padding: 24px; gap: 6px; }
#mnav a { padding: 14px 12px; border-radius: 12px; text-decoration: none; font-weight: 700; font-size: 1.1rem; }
#mnav a:hover { background: var(--paper-2); }
#mnav { transition: translate .3s, opacity .3s, overlay .3s allow-discrete, display .3s allow-discrete; translate: 100% 0; opacity: 0; }
#mnav:popover-open { translate: 0 0; opacity: 1; }
@starting-style { #mnav:popover-open { translate: 100% 0; opacity: 0; } }
#mnav::backdrop { background: rgba(23,32,43,.3); }

/* ---------- Hero ---------- */
.hero { padding: 56px 0 40px; position: relative; overflow: hidden; }
.hero .wrap { display: grid; grid-template-columns: 1.02fr 1fr; gap: 48px; align-items: center; }
.hero h1 .ink { position: relative; white-space: nowrap; }
.hero h1 .ink::after {
  content: ''; position: absolute; left: -2%; right: -2%; bottom: .04em; height: .32em; z-index: -1;
  background: var(--yellow); border-radius: 4px; transform: skew(-8deg) scaleX(0); transform-origin: left;
  animation: swipe .9s .5s cubic-bezier(.2,.8,.2,1) forwards;
}
@keyframes swipe { to { transform: skew(-8deg) scaleX(1); } }
.hero .lede { font-size: 1.22rem; color: var(--ink-2); max-width: 36em; }
.hero .cta { display: flex; gap: 14px; flex-wrap: wrap; margin: 30px 0 34px; }
.hero-badges { display: flex; gap: 10px; flex-wrap: wrap; }
.chip { display: inline-flex; align-items: center; gap: 8px; padding: 7px 13px; border-radius: 999px; background: var(--card); border: 1px solid var(--line); font-size: .85rem; font-weight: 600; color: var(--ink-2); }
.chip i { width: 8px; height: 8px; border-radius: 50%; background: var(--green); }
.chip.c i { background: var(--cyan); } .chip.m i { background: var(--magenta); } .chip.y i { background: var(--yellow); }
.hero-hindi { font-size: 1.05rem; color: var(--mag-ink); margin: -6px 0 18px; }

/* Animated hero scene */
.scene { position: relative; aspect-ratio: 1 / .92; min-height: 440px; }
.scene .board {
  position: absolute; inset: 8% 3% 14% 6%; background: var(--card); border: 1px solid var(--line); border-radius: 26px; box-shadow: var(--shadow-lg);
  overflow: hidden;
}
.board .bhead { display: flex; align-items: center; gap: 8px; padding: 12px 16px; border-bottom: 1px solid var(--line); font: 600 .78rem/1 var(--f-mono); color: var(--ink-3); }
.board .bhead i { width: 9px; height: 9px; border-radius: 50%; background: var(--line-2); }
.board .bhead i:nth-child(1) { background: #F28B82; } .board .bhead i:nth-child(2) { background: #F6C21C; } .board .bhead i:nth-child(3) { background: #7BC67E; }
.board .bhead span { margin-left: 8px; }
.board .bbody { display: grid; grid-template-columns: 1fr 1fr 1fr; gap: 10px; padding: 14px; }
.pnode { border: 1px solid var(--line); border-radius: 14px; padding: 10px; background: var(--paper); font-size: .72rem; position: relative; }
.pnode b { display: block; font: 700 .76rem/1.2 var(--f-mono); margin-bottom: 6px; }
.pnode .st { position: absolute; top: 10px; right: 10px; width: 9px; height: 9px; border-radius: 50%; background: var(--green); box-shadow: 0 0 0 0 rgba(44,154,86,.5); animation: ping 2.4s infinite; }
.pnode.warn .st { background: var(--yellow); animation-delay: .6s; }
.pnode.err .st { background: var(--magenta); animation: ping 1.2s infinite; }
@keyframes ping { 0% { box-shadow: 0 0 0 0 color-mix(in oklab, currentColor 0%, rgba(44,154,86,.45)); } 70%,100% { box-shadow: 0 0 0 9px rgba(0,0,0,0); } }
.tbar { display: grid; grid-template-columns: repeat(4, 1fr); gap: 3px; height: 26px; align-items: end; }
.tbar span { border-radius: 3px 3px 1px 1px; background: var(--c); height: var(--h); transition: height 1s; }
.pnode.warn .tbar span:last-child { animation: drain 6s ease-in-out infinite; }
@keyframes drain { 0%, 100% { height: 40%; } 50% { height: 9%; } }

.mini-chart { grid-column: span 2; border: 1px solid var(--line); border-radius: 14px; padding: 10px 12px; background: var(--paper); }
.mini-chart svg { width: 100%; height: 78px; }
.mini-chart .ln { stroke-dasharray: 400; stroke-dashoffset: 400; animation: draw 2.4s .4s ease forwards; }
@keyframes draw { to { stroke-dashoffset: 0; } }
.quota { border: 1px solid var(--line); border-radius: 14px; padding: 10px; background: var(--paper); font-size: .72rem; }
.quota .bar { height: 7px; border-radius: 9px; background: var(--paper-3); margin: 6px 0 9px; overflow: hidden; }
.quota .bar span { display: block; height: 100%; border-radius: 9px; background: var(--cyan); width: var(--w); animation: grow 2s .6s cubic-bezier(.2,.8,.2,1) both; }
.quota .bar.m span { background: var(--magenta); }
@keyframes grow { from { width: 0; } }

/* the printer + paper */
.printer3d { position: absolute; left: -4%; bottom: 0; width: 40%; filter: drop-shadow(0 18px 22px rgba(60,45,20,.22)); }
.printer3d .sheet { animation: feed 4.2s cubic-bezier(.6,.05,.3,1) infinite; transform-box: fill-box; }
@keyframes feed { 0%, 12% { transform: translateY(-58px); opacity: 0; } 22% { opacity: 1; } 62%, 84% { transform: translateY(0); opacity: 1; } 100% { transform: translateY(14px); opacity: 0; } }
.printer3d .led { animation: blink 1.2s steps(2) infinite; }
@keyframes blink { 50% { opacity: .25; } }

.toast {
  position: absolute; display: flex; gap: 10px; align-items: flex-start; padding: 11px 14px; border-radius: 14px; background: #fff;
  border: 1px solid var(--line); box-shadow: var(--shadow); font-size: .78rem; line-height: 1.35; width: 240px;
  animation: float 6s ease-in-out infinite;
}
.toast b { display: block; font-size: .82rem; }
.toast .ic { flex: none; width: 30px; height: 30px; border-radius: 9px; display: grid; place-items: center; font-size: 15px; }
.toast.t1 { top: 0; right: 0; animation-delay: 0s; } .toast.t1 .ic { background: var(--yel-soft); }
.toast.t2 { top: 50%; right: -5%; animation-delay: -2s; } .toast.t2 .ic { background: var(--green-soft); }
.toast.t3 { bottom: 0; right: 12%; animation-delay: -4s; } .toast.t3 .ic { background: var(--mag-soft); }
.toast.wa { border-left: 4px solid #25D366; }
@keyframes float { 0%, 100% { translate: 0 0; } 50% { translate: 0 -10px; } }
.toast .time { color: var(--ink-3); font: 500 .68rem/1 var(--f-mono); margin-top: 3px; display: block; }

/* ---------- Logos / trust ---------- */
.trust { padding: 26px 0; border-block: 1px dashed var(--line-2); }
.trust .wrap { display: flex; gap: 34px; align-items: center; justify-content: space-between; flex-wrap: wrap; font: 600 .86rem/1.3 var(--f-mono); color: var(--ink-2); }
.trust b { font: 800 1.6rem/1 var(--f-display); color: var(--ink); display: block; letter-spacing: -.02em; }

/* ---------- Problem cards (torn paper / tractor-feed) ---------- */
.problems { display: grid; grid-template-columns: repeat(3, 1fr); gap: 22px; margin-top: 44px; }
.pcard {
  position: relative; padding: 26px 26px 24px 44px; background: var(--card); border: 1px solid var(--line); border-radius: 6px;
  box-shadow: var(--shadow);
}
.pcard::before { /* tractor-feed holes */
  content: ''; position: absolute; left: 12px; top: 14px; bottom: 14px; width: 12px;
  background: radial-gradient(circle, var(--paper-2) 4px, var(--line-2) 4.5px, transparent 5.5px) 0 0 / 12px 22px repeat-y;
}
.pcard .tm { font: 600 .76rem/1 var(--f-mono); color: var(--mag-ink); background: var(--mag-soft); padding: 5px 8px; border-radius: 6px; display: inline-block; margin-bottom: 12px; }
.pcard h3 { font-size: 1.16rem; }
.pcard p { color: var(--ink-2); font-size: .97rem; margin: 0; }
.pcard .hi { display: block; margin-top: 12px; color: var(--ink-3); font-size: .95rem; }

/* ---------- Before / After ---------- */
.ba { display: grid; grid-template-columns: 1fr 1fr; gap: 0; margin-top: 46px; border-radius: var(--radius); overflow: hidden; border: 1px solid var(--line); box-shadow: var(--shadow); }
.ba > div { padding: 34px; }
.ba .before { background: repeating-linear-gradient(-45deg, var(--paper-2) 0 10px, var(--paper) 10px 20px); }
.ba .after { background: var(--card); }
.ba h3 { display: flex; gap: 10px; align-items: center; }
.ba ul { list-style: none; padding: 0; margin: 18px 0 0; display: grid; gap: 12px; }
.ba li { display: flex; gap: 12px; align-items: flex-start; }
.ba li::before { content: '✕'; flex: none; width: 24px; height: 24px; border-radius: 50%; display: grid; place-items: center; font-size: .75rem; font-weight: 800; background: var(--mag-soft); color: var(--mag-ink); margin-top: 2px; }
.ba .after li::before { content: '✓'; background: var(--green-soft); color: var(--green); }

/* ---------- Modules (5 core requirements) ---------- */
.mods { display: grid; gap: 26px; margin-top: 50px; }
.mod { display: grid; grid-template-columns: 1fr 1.05fr; gap: 40px; align-items: center; padding: 34px; background: var(--card); border: 1px solid var(--line); border-radius: 24px; box-shadow: var(--shadow); }
.mod:nth-child(even) .mod-ui { order: -1; }
.mod .num { font: 800 .9rem/1 var(--f-mono); color: var(--c, var(--cyan)); display: inline-flex; gap: 8px; align-items: center; margin-bottom: 14px; }
.mod .num::before { content: ''; width: 22px; height: 6px; border-radius: 6px; background: var(--c, var(--cyan)); }
.mod h3 { font-size: 1.75rem; }
.mod ul { padding: 0; list-style: none; margin: 18px 0 0; display: grid; gap: 9px; }
.mod li { padding-left: 26px; position: relative; color: var(--ink-2); }
.mod li::before { content: ''; position: absolute; left: 0; top: .55em; width: 12px; height: 12px; border-radius: 4px; background: color-mix(in oklab, var(--c, var(--cyan)) 25%, white); border: 2px solid var(--c, var(--cyan)); }
.mod-ui { background: var(--paper); border: 1px solid var(--line); border-radius: 18px; padding: 18px; min-height: 260px; position: relative; overflow: hidden; }
.mod-ui .row { display: flex; align-items: center; gap: 10px; padding: 9px 10px; border-radius: 10px; background: var(--card); border: 1px solid var(--line); margin-bottom: 8px; font-size: .84rem; }
.mod-ui .row .dot { width: 9px; height: 9px; border-radius: 50%; background: var(--green); flex: none; }
.mod-ui .row .dot.y { background: var(--yellow); } .mod-ui .row .dot.m { background: var(--magenta); } .mod-ui .row .dot.g { background: var(--ink-3); }
.mod-ui .row .r { margin-left: auto; font: 600 .74rem/1 var(--f-mono); color: var(--ink-3); }
.pill { display: inline-flex; align-items: center; padding: 4px 9px; border-radius: 999px; font: 700 .7rem/1 var(--f-mono); background: var(--paper-2); color: var(--ink-2); }
.pill.g { background: var(--green-soft); color: var(--green); } .pill.m { background: var(--mag-soft); color: var(--mag-ink); } .pill.y { background: var(--yel-soft); color: var(--yel-ink); } .pill.c { background: var(--cyan-soft); color: var(--cyan-ink); }
.email-mock { background: #fff; border: 1px solid var(--line); border-radius: 12px; padding: 14px; font-size: .84rem; }
.email-mock .eh { display: flex; justify-content: space-between; color: var(--ink-3); font: 500 .72rem/1.4 var(--f-mono); border-bottom: 1px dashed var(--line); padding-bottom: 8px; margin-bottom: 10px; }
.pinpad { display: grid; grid-template-columns: repeat(3, 44px); gap: 8px; justify-content: center; margin-top: 10px; }
.pinpad span { height: 40px; border-radius: 10px; background: var(--card); border: 1px solid var(--line); display: grid; place-items: center; font: 700 .95rem/1 var(--f-mono); }
.pinpad span.on { background: var(--ink); color: #fff; }

/* ---------- Extras grid ---------- */
.extras { display: grid; grid-template-columns: repeat(4, 1fr); gap: 16px; margin-top: 44px; }
.xcard { background: var(--card); border: 1px solid var(--line); border-radius: 18px; padding: 22px; position: relative; transition: transform .25s, box-shadow .25s, border-color .25s; }
.xcard:hover { transform: translateY(-4px) rotate(-.4deg); box-shadow: var(--shadow-lg); border-color: var(--line-2); }
.xcard .ico { width: 44px; height: 44px; border-radius: 13px; display: grid; place-items: center; margin-bottom: 14px; background: var(--bg, var(--cyan-soft)); color: var(--fg, var(--cyan-ink)); }
.xcard .ico svg { width: 23px; height: 23px; }
.xcard h4 { font: 700 1.04rem/1.25 var(--f-display); margin: 0 0 6px; letter-spacing: -.01em; }
.xcard p { font-size: .9rem; color: var(--ink-2); margin: 0; }
.xcard .new { position: absolute; top: 16px; right: 16px; }

/* ---------- Scroll story (scroll-driven animation) ---------- */
.story { display: grid; grid-template-columns: 1fr 1fr; gap: 60px; margin-top: 30px; }
.story .steps { display: grid; gap: 22vh; padding: 12vh 0 18vh; }
.story .step { padding: 22px 24px; border-left: 4px solid var(--line-2); background: var(--card); border-radius: 0 16px 16px 0; box-shadow: var(--shadow); }
.story .step .n { font: 700 .8rem/1 var(--f-mono); color: var(--magenta); }
.story .step h3 { margin: 8px 0 6px; }
.story .step p { margin: 0; color: var(--ink-2); }
.story .stage { position: sticky; top: 110px; height: min(560px, 72vh); background: var(--card); border: 1px solid var(--line); border-radius: 26px; box-shadow: var(--shadow-lg); overflow: hidden; }
.track { position: absolute; inset: 0; }
.track .lane { position: absolute; left: 50%; top: 9%; bottom: 9%; width: 2px; background: repeating-linear-gradient(var(--line-2) 0 8px, transparent 8px 16px); }
.track .stop { position: absolute; left: 50%; translate: -50% -50%; display: flex; align-items: center; gap: 10px; font: 600 .8rem/1.2 var(--f-mono); white-space: nowrap; }
.track .stop .b { width: 40px; height: 40px; border-radius: 12px; background: var(--paper); border: 2px solid var(--line-2); display: grid; place-items: center; font-size: 17px; }
.track .stop .lab { position: absolute; left: 52px; background: var(--card); padding: 4px 8px; border-radius: 6px; }
.track .stop:nth-child(odd) .lab { left: auto; right: 52px; }
.doc {
  position: absolute; left: 50%; top: 9%; width: 70px; height: 92px; translate: -50% -50%; background: #fff; border: 1px solid var(--line-2); border-radius: 6px;
  box-shadow: 0 12px 20px -8px rgba(23,32,43,.3); padding: 10px 8px; z-index: 2;
}
.doc i { display: block; height: 4px; border-radius: 3px; background: var(--paper-3); margin-bottom: 6px; }
.doc i:nth-child(1) { width: 70%; background: var(--cyan); }
.doc i:nth-child(4) { width: 55%; }
.doc .stamp { position: absolute; bottom: 8px; right: 6px; font: 800 .5rem/1 var(--f-mono); color: var(--magenta); border: 1.5px solid var(--magenta); padding: 2px 3px; rotate: -12deg; opacity: 0; }
@supports (animation-timeline: view()) {
  .story { view-timeline-name: --story; }
  .doc { animation: travel linear both; animation-timeline: --story; animation-range: entry 40% exit 60%; }
  .doc .stamp { animation: stampin linear both; animation-timeline: --story; animation-range: entry 40% exit 60%; }
  @keyframes travel { 0% { top: 9%; rotate: -4deg; } 100% { top: 91%; rotate: 3deg; } }
  @keyframes stampin { 0%, 70% { opacity: 0; scale: 2; } 78%, 100% { opacity: 1; scale: 1; } }
  .reveal { animation: rv linear both; animation-timeline: view(); animation-range: entry 0% entry 85%; }
  @keyframes rv { from { opacity: 0; translate: 0 34px; } to { opacity: 1; translate: 0 0; } }
}

/* ---------- Architecture ---------- */
.arch { margin-top: 44px; background: var(--card); border: 1px solid var(--line); border-radius: 26px; padding: 30px; box-shadow: var(--shadow); }
.arch-top { margin: 0 auto 26px; max-width: 520px; text-align: center; padding: 18px; border-radius: 18px; background: var(--ink); color: #fff; }
.arch-top small { display: block; font: 600 .72rem/1 var(--f-mono); letter-spacing: .1em; color: var(--yellow); margin-bottom: 6px; }
.arch-cols { display: grid; grid-template-columns: repeat(3, 1fr); gap: 18px; position: relative; }
.arch-col { border: 2px dashed var(--line-2); border-radius: 18px; padding: 18px; text-align: center; }
.arch-col h4 { margin: 0 0 4px; font: 700 1.05rem/1.2 var(--f-display); }
.arch-col p { font-size: .86rem; color: var(--ink-2); margin: 0 0 12px; }
.arch-col .ps { display: flex; justify-content: center; gap: 8px; }
.arch-col .ps span { width: 38px; height: 30px; border-radius: 8px; border: 2px solid var(--ink); position: relative; background: var(--paper); }
.arch-col .ps span::after { content: ''; position: absolute; left: 7px; right: 7px; top: -8px; height: 8px; background: #fff; border: 2px solid var(--ink); border-bottom: 0; border-radius: 3px 3px 0 0; }
.arch-bottom { display: grid; grid-template-columns: 1fr 1fr; gap: 18px; margin-top: 18px; }
.arch-bottom > div { padding: 18px; border-radius: 16px; background: var(--paper); border: 1px solid var(--line); }
.arch-bottom b { font-family: var(--f-display); }

/* ---------- Compare ---------- */
.compare { margin-top: 40px; overflow-x: auto; border-radius: 20px; border: 1px solid var(--line); background: var(--card); box-shadow: var(--shadow); }
.compare table { width: 100%; border-collapse: collapse; min-width: 760px; }
.compare th, .compare td { padding: 15px 18px; text-align: left; border-bottom: 1px solid var(--line); font-size: .95rem; }
.compare th { font: 700 .82rem/1.2 var(--f-mono); text-transform: uppercase; letter-spacing: .06em; color: var(--ink-3); background: var(--paper); }
.compare th.us { background: var(--ink); color: var(--yellow); }
.compare td.us { background: color-mix(in oklab, var(--yel-soft) 55%, white); font-weight: 600; }
.compare tr:last-child td { border-bottom: 0; }
.y { color: var(--green); font-weight: 800; } .n { color: var(--magenta); font-weight: 800; } .p { color: var(--yel-ink); font-weight: 700; }

/* ---------- Pricing ---------- */
.price-wrap { display: grid; grid-template-columns: 1fr 1.1fr; gap: 26px; margin-top: 44px; align-items: stretch; }
.price-card { background: var(--card); border: 2px solid var(--ink); border-radius: 26px; padding: 34px; position: relative; box-shadow: 8px 8px 0 var(--yellow); }
.price-card .tag { position: absolute; top: -14px; left: 30px; background: var(--magenta); color: #fff; padding: 6px 12px; border-radius: 999px; font: 700 .75rem/1 var(--f-mono); }
.price-card .amt { font: 800 clamp(3rem, 6vw, 4.4rem)/1 var(--f-display); letter-spacing: -.04em; margin: 14px 0 4px; }
.price-card .amt small { font: 600 1rem/1 var(--f-body); color: var(--ink-2); letter-spacing: 0; }
.price-card ul { list-style: none; padding: 0; margin: 22px 0 26px; display: grid; gap: 10px; }
.price-card li { padding-left: 30px; position: relative; }
.price-card li::before { content: '✓'; position: absolute; left: 0; top: 1px; width: 20px; height: 20px; border-radius: 6px; background: var(--green-soft); color: var(--green); font-weight: 800; font-size: .75rem; display: grid; place-items: center; }
.calc { background: var(--card); border: 1px solid var(--line); border-radius: 26px; padding: 30px; box-shadow: var(--shadow); }
.calc label { font-weight: 700; display: flex; justify-content: space-between; align-items: baseline; }
.calc output { font: 800 2.1rem/1 var(--f-display); color: var(--cyan-ink); }
.calc input[type=range] { width: 100%; margin: 18px 0 8px; accent-color: var(--magenta); height: 28px; }
.calc .rows { margin-top: 18px; border-top: 1px dashed var(--line-2); padding-top: 14px; display: grid; gap: 8px; font-size: .95rem; }
.calc .rows div { display: flex; justify-content: space-between; }
.calc .rows .tot { font: 800 1.35rem/1.3 var(--f-display); border-top: 2px solid var(--ink); padding-top: 10px; margin-top: 4px; }
.calc .disc { color: var(--green); }
.slabs { display: flex; gap: 8px; flex-wrap: wrap; margin-top: 16px; }
.slabs span { padding: 6px 10px; border-radius: 10px; background: var(--paper-2); font: 600 .78rem/1 var(--f-mono); }
.slabs span.on { background: var(--green-soft); color: var(--green); }

/* ---------- Timeline ---------- */
.phases { display: grid; grid-template-columns: repeat(4, 1fr); gap: 0; margin-top: 44px; counter-reset: ph; }
.phase { padding: 24px; border-top: 4px solid var(--c); position: relative; background: var(--card); border-right: 1px solid var(--line); }
.phase:first-child { border-radius: 0 0 0 18px; } .phase:last-child { border-right: 0; border-radius: 0 0 18px 0; }
.phase::before { counter-increment: ph; content: '0' counter(ph); font: 800 2.4rem/1 var(--f-display); color: color-mix(in oklab, var(--c) 35%, white); display: block; margin-bottom: 12px; }
.phase h4 { margin: 0 0 6px; font: 700 1.1rem/1.2 var(--f-display); }
.phase p { font-size: .9rem; color: var(--ink-2); margin: 0; }
.phase .wk { font: 600 .74rem/1 var(--f-mono); color: var(--ink-3); display: block; margin-top: 12px; }

/* ---------- FAQ ---------- */
.faq { max-width: 860px; margin: 40px auto 0; display: grid; gap: 12px; }
.faq details { background: var(--card); border: 1px solid var(--line); border-radius: 16px; padding: 0 22px; interpolate-size: allow-keywords; }
.faq details::details-content { block-size: 0; overflow: hidden; transition: block-size .35s, content-visibility .35s allow-discrete; }
.faq details[open]::details-content { block-size: auto; }
.faq summary { cursor: pointer; padding: 18px 0; font: 700 1.06rem/1.35 var(--f-display); list-style: none; display: flex; justify-content: space-between; gap: 18px; }
.faq summary::-webkit-details-marker { display: none; }
.faq summary::after { content: '+'; font: 400 1.6rem/1 var(--f-body); color: var(--magenta); transition: rotate .3s; }
.faq details[open] summary::after { rotate: 45deg; }
.faq details p { color: var(--ink-2); padding-bottom: 18px; margin: 0; }

/* ---------- CTA band ---------- */
.band { background: var(--ink); color: #F4EEE1; border-radius: 30px; padding: clamp(36px, 6vw, 64px); display: grid; grid-template-columns: 1.3fr 1fr; gap: 30px; align-items: center; position: relative; overflow: hidden; }
.band h2 { color: #fff; }
.band p { color: #C8C0AF; }
.band::after { content: ''; position: absolute; right: -60px; bottom: -60px; width: 260px; height: 260px; border-radius: 50%; background: radial-gradient(circle at 30% 30%, var(--cyan) 0 35%, transparent 36%), radial-gradient(circle at 70% 30%, var(--magenta) 0 35%, transparent 36%), radial-gradient(circle at 50% 65%, var(--yellow) 0 35%, transparent 36%); opacity: .5; mix-blend-mode: screen; }
.band .btn.ghost { --t: #fff; border-color: #4A5463; background: var(--ink); }
.band .btn.ghost:hover { background: #222c38; }

/* ---------- Forms ---------- */
.form { display: grid; gap: 14px; }
.form .two { display: grid; grid-template-columns: 1fr 1fr; gap: 14px; }
.field label { display: block; font-weight: 700; font-size: .9rem; margin-bottom: 6px; }
.field input, .field select, .field textarea {
  width: 100%; padding: 13px 14px; border-radius: 12px; border: 1.5px solid var(--line-2); background: #fff; font: inherit; color: var(--ink);
  transition: border-color .2s, box-shadow .2s;
}
.field input:focus, .field select:focus, .field textarea:focus { outline: none; border-color: var(--cyan); box-shadow: 0 0 0 4px var(--cyan-soft); }
.field small { color: var(--ink-3); font-size: .8rem; }
.notice { padding: 12px 14px; border-radius: 12px; background: var(--yel-soft); color: var(--yel-ink); font-size: .9rem; }
.notice.ok { background: var(--green-soft); color: var(--green); }
.notice.err { background: var(--mag-soft); color: var(--mag-ink); }

/* ---------- Page header & legal ---------- */
.phead { padding: 64px 0 30px; }
.phead p { font-size: 1.15rem; color: var(--ink-2); max-width: 46em; }
.legal { background: var(--card); border: 1px solid var(--line); border-radius: 24px; padding: clamp(24px, 5vw, 56px); max-width: 900px; margin: 0 auto 90px; box-shadow: var(--shadow); }
.legal h2 { font-size: 1.45rem; margin-top: 1.8em; }
.legal h2:first-child { margin-top: 0; }
.legal p, .legal li { color: var(--ink-2); }
.legal table { width: 100%; border-collapse: collapse; margin: 14px 0; font-size: .95rem; }
.legal td, .legal th { border: 1px solid var(--line); padding: 10px 12px; text-align: left; }
.legal .meta { font: 600 .8rem/1.4 var(--f-mono); color: var(--ink-3); }

.contact-grid { display: grid; grid-template-columns: 1fr 1.2fr; gap: 26px; margin-bottom: 90px; }
.ccard { background: var(--card); border: 1px solid var(--line); border-radius: 24px; padding: 30px; box-shadow: var(--shadow); }
.ccard dl { margin: 0; display: grid; gap: 16px; }
.ccard dt { font: 600 .74rem/1 var(--f-mono); text-transform: uppercase; letter-spacing: .08em; color: var(--ink-3); margin-bottom: 5px; }
.ccard dd { margin: 0; font-weight: 600; }

.auth { min-height: calc(100dvh - 120px); display: grid; place-items: center; padding: 40px 20px; }
.auth .box { width: min(520px, 100%); background: var(--card); border: 1px solid var(--line); border-radius: 26px; padding: 36px; box-shadow: var(--shadow-lg); }
.auth .box h1 { font-size: 2rem; }

/* ---------- Footer ---------- */
.ftr { margin-top: 40px; background: var(--paper-2); border-top: 1px solid var(--line); }
.ftr .top { display: grid; grid-template-columns: 1.5fr 1fr 1fr 1.3fr; gap: 36px; padding: 60px 0 40px; }
.ftr h5 { font: 700 .76rem/1 var(--f-mono); text-transform: uppercase; letter-spacing: .1em; color: var(--ink-3); margin: 0 0 16px; }
.ftr ul { list-style: none; padding: 0; margin: 0; display: grid; gap: 10px; }
.ftr a { text-decoration: none; color: var(--ink-2); font-weight: 500; }
.ftr a:hover { color: var(--magenta); }
.ftr .addr { font-size: .92rem; color: var(--ink-2); line-height: 1.6; }
.ftr .ids { font: 500 .78rem/1.7 var(--f-mono); color: var(--ink-3); margin-top: 12px; }
.ftr .bottom { border-top: 1px dashed var(--line-2); padding: 20px 0 26px; display: flex; justify-content: space-between; gap: 16px; flex-wrap: wrap; font-size: .86rem; color: var(--ink-3); }
.rzp { display: inline-flex; align-items: center; gap: 8px; padding: 7px 12px; border: 1px solid var(--line-2); border-radius: 10px; background: var(--card); font-weight: 600; font-size: .82rem; color: var(--ink-2); }
.rzp svg { width: 16px; height: 16px; }
.wa-float { position: fixed; right: 20px; bottom: 20px; z-index: 40; width: 56px; height: 56px; border-radius: 50%; background: #25D366; display: grid; place-items: center; box-shadow: 0 10px 24px -6px rgba(37,211,102,.6); transition: transform .2s; }
.wa-float:hover { transform: scale(1.08) rotate(-6deg); }
.wa-float svg { width: 30px; height: 30px; fill: #fff; }

/* ---------- Responsive ---------- */
@media (max-width: 1020px) {
  .nav, .hdr .actions .login { display: none; }
  .menu-btn { display: block; }
  .hdr .actions { margin-left: auto; }
  .hero .wrap, .mod, .price-wrap, .story, .band, .contact-grid { grid-template-columns: 1fr; }
  .mod:nth-child(even) .mod-ui { order: 0; }
  .scene { min-height: 420px; max-width: 620px; margin: 0 auto; width: 100%; }
  .problems, .extras { grid-template-columns: 1fr 1fr; }
  .story .stage { display: none; }
  .story .steps { gap: 20px; padding: 0; }
  .phases { grid-template-columns: 1fr 1fr; }
  .ftr .top { grid-template-columns: 1fr 1fr; }
}
@media (max-width: 640px) {
  body { font-size: 16px; }
  .problems, .extras, .arch-cols, .arch-bottom, .ba, .phases, .form .two { grid-template-columns: 1fr; }
  .ftr .top { grid-template-columns: 1fr; }
  .toast { width: 200px; font-size: .72rem; }
  .toast.t2 { right: 0; }
  .board .bbody { grid-template-columns: 1fr 1fr; }
  .mini-chart { grid-column: span 2; }
  .hdr .actions .btn.trial { display: none; }
  .mod { padding: 22px; }
  .topbar .hide-sm { display: none; }
}
@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after { animation: none !important; transition: none !important; }
  .doc .stamp { opacity: 1; }
}
