/* Texiva landing page. Palette mirrors app/src/theme/colors.ts. */
:root {
  --primary: #2E3A8C;
  --primary-deep: #1F2766;
  --on-primary: #FFFFFF;
  --primary-soft: #E6E8F6;
  --accent: #D9822B;
  --accent-ink: #94520F;
  --accent-soft: #FBEBD9;
  --on-accent: #1D1F2B;
  --bg: #F7F6F2;
  --surface: #FFFFFF;
  --surface-alt: #F1EFE9;
  --text: #1D1F2B;
  --muted: #595C6B;
  --border: #E3E1DA;
  --success: #2F7D55; --success-soft: #E1F2E8;
  --warning: #8F5A0E; --warning-soft: #FBF0D9;
  --danger: #B83232;  --danger-soft: #F9E3E3;
  --info: #2B6CB0;    --info-soft: #E2EDF8;
  --neutral-soft: #ECEBE6;
  --ink: #1A1F4F;          /* dark indigo band */
  --ink-text: #ECEDF8;
  --ink-muted: #B9BDE0;
  --thread: rgba(46, 58, 140, .07);
  --thread-2: rgba(217, 130, 43, .08);
  --shadow: 0 1px 2px rgba(20,22,35,.06), 0 8px 24px rgba(20,22,35,.08);
  --radius: 16px;
  --font-display: "Bricolage Grotesque", ui-sans-serif, system-ui, -apple-system, "Segoe UI", Roboto, sans-serif;
  --font-body: Inter, ui-sans-serif, system-ui, -apple-system, "Segoe UI", Roboto, "Noto Sans", sans-serif;
  --font-mono: ui-monospace, SFMono-Regular, Menlo, Consolas, "Liberation Mono", monospace;
  color-scheme: light dark;
}
@media (prefers-color-scheme: dark) {
  :root {
    --primary: #8C98F2;
    --primary-deep: #6F7BE0;
    --on-primary: #11132A;
    --primary-soft: #262B52;
    --accent: #F0A34A;
    --accent-ink: #F3B266;
    --accent-soft: #3D2C17;
    --on-accent: #1A1206;
    --bg: #111219;
    --surface: #1B1D27;
    --surface-alt: #161821;
    --text: #ECECF1;
    --muted: #A5A8B8;
    --border: #2E3140;
    --success: #5FC08B; --success-soft: #1D3328;
    --warning: #E5B054; --warning-soft: #3A2F17;
    --danger: #F07C7C;  --danger-soft: #3E2023;
    --info: #79AEEB;    --info-soft: #1C2D42;
    --neutral-soft: #2A2C38;
    --ink: #0B0C1C;
    --ink-text: #ECECF1;
    --ink-muted: #A9ADCF;
    --thread: rgba(140, 152, 242, .06);
    --thread-2: rgba(240, 163, 74, .05);
    --shadow: 0 1px 2px rgba(0,0,0,.4), 0 8px 24px rgba(0,0,0,.35);
  }
}

*, *::before, *::after { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; scroll-behavior: smooth; scroll-padding-top: 76px; }
body {
  margin: 0; background: var(--bg); color: var(--text);
  font: 400 1rem/1.6 var(--font-body);
  overflow-x: hidden; text-rendering: optimizeLegibility; -webkit-font-smoothing: antialiased;
}
img, svg { display: block; max-width: 100%; }
a { color: var(--primary); text-underline-offset: .18em; }
a:hover { color: var(--primary-deep); }
h1, h2, h3 { font-family: var(--font-display); line-height: 1.12; letter-spacing: -.02em; margin: 0 0 .5em; text-wrap: balance; }
h1 { font-size: clamp(2.35rem, 8.5vw, 4.25rem); font-weight: 800; }
h2 { font-size: clamp(1.7rem, 5.2vw, 2.6rem); font-weight: 750; }
h3 { font-size: 1.12rem; font-weight: 700; letter-spacing: -.01em; }
p { margin: 0 0 1rem; }
ul, ol { margin: 0; padding: 0; list-style: none; }

:focus-visible { outline: 3px solid var(--accent); outline-offset: 3px; border-radius: 6px; }
.skip { position: absolute; left: 16px; top: -60px; z-index: 100; background: var(--primary); color: var(--on-primary); padding: 10px 14px; border-radius: 8px; font-weight: 600; }
.skip:focus { top: 12px; color: var(--on-primary); }
.sr-only { position: absolute !important; width: 1px; height: 1px; padding: 0; margin: -1px; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; border: 0; }

.wrap { width: 100%; max-width: 1160px; margin: 0 auto; padding: 0 16px; }
.narrow { max-width: 820px; }
.center { text-align: center; }
.small { font-size: .9rem; color: var(--muted); }
.strong { font-weight: 600; color: var(--text); }
.muted { color: var(--muted); }

/* Woven texture: warp + weft threads */
.weave {
  background-color: var(--bg);
  background-image:
    repeating-linear-gradient(0deg, var(--thread) 0 2px, transparent 2px 9px),
    repeating-linear-gradient(90deg, var(--thread-2) 0 2px, transparent 2px 9px);
}

/* Buttons */
.btn {
  display: inline-flex; align-items: center; justify-content: center; gap: .5em;
  min-height: 48px; padding: 0 22px; border-radius: 999px; border: 2px solid transparent;
  font: 600 1rem/1 var(--font-body); text-decoration: none; white-space: nowrap;
  transition: transform .15s ease, background-color .15s ease, box-shadow .15s ease;
}
.btn:hover { transform: translateY(-1px); }
.btn-sm { min-height: 40px; padding: 0 16px; font-size: .92rem; }
.btn-lg { min-height: 54px; padding: 0 28px; font-size: 1.05rem; }
.btn-primary { background: var(--primary); color: var(--on-primary); }
.btn-primary:hover { background: var(--primary-deep); color: var(--on-primary); }
.btn-accent { background: var(--accent); color: var(--on-accent); box-shadow: 0 6px 18px rgba(217,130,43,.3); }
.btn-accent:hover { color: var(--on-accent); box-shadow: 0 8px 22px rgba(217,130,43,.4); }
.btn-ghost { background: var(--surface); color: var(--primary); border-color: var(--border); }
.btn-ghost:hover { border-color: var(--primary); color: var(--primary); }
.btn-onink { background: transparent; color: var(--ink-text); border-color: rgba(255,255,255,.4); }
.btn-onink:hover { color: #fff; border-color: #fff; }

/* Store badges (Google Play, Microsoft Store): official artwork, same visual height, never stretched. */
.store-badges { display: flex; flex-wrap: wrap; align-items: center; gap: 10px 16px; margin: 18px 0 4px; }
.store-badges.center { justify-content: center; margin-top: 22px; }
.store-badge { display: inline-flex; align-items: center; border-radius: 8px; transition: transform .15s ease; }
.store-badge:hover { transform: translateY(-1px); }
.store-badge:focus-visible { outline: 3px solid var(--accent); outline-offset: 3px; }
.store-badge img { display: block; height: 48px; width: auto; }
.store-badge img[alt="Get it on Google Play"] { height: 60px; margin: -6px -8px; } /* the Play badge carries its own padding */
.store-badges .cta-note { flex-basis: 100%; }

/* Demo videos: two players, desktop and phone, side by side on wide screens. */
.video-grid { display: grid; grid-template-columns: minmax(0, 2fr) minmax(0, 1fr); gap: 28px; align-items: start; margin-top: 28px; }
.video-card { background: var(--surface); border: 1px solid var(--border); border-radius: 16px; padding: 12px; box-shadow: 0 10px 28px rgba(29,31,43,.08); }
.video-card video { display: block; width: 100%; height: auto; border-radius: 10px; background: #15172B; }
.video-card figcaption { padding: 10px 6px 2px; font-size: .95rem; color: var(--muted); }
.video-card.phone video { max-width: 320px; margin: 0 auto; }
@media (max-width: 860px) { .video-grid { grid-template-columns: 1fr; } .video-card.phone video { max-width: 280px; } }

/* Header */
.site-header {
  position: sticky; top: 0; z-index: 50;
  background: color-mix(in srgb, var(--bg) 88%, transparent);
  -webkit-backdrop-filter: saturate(1.4) blur(10px); backdrop-filter: saturate(1.4) blur(10px);
  border-bottom: 1px solid var(--border);
}
.header-row { display: flex; align-items: center; gap: 12px; min-height: 64px; }
.brand { display: inline-flex; align-items: center; gap: 9px; text-decoration: none; color: var(--text); }
.brand:hover { color: var(--text); }
.brand-mark { width: 32px; height: 32px; color: #2E3A8C; flex: none; }
.brand-name { font: 800 1.35rem/1 var(--font-display); letter-spacing: -.02em; }
.top-nav { display: none; margin-left: auto; }
.top-nav ul { display: flex; gap: 4px; }
.top-nav a { display: block; padding: 8px 12px; border-radius: 8px; color: var(--muted); text-decoration: none; font-weight: 500; font-size: .95rem; }
.top-nav a:hover { color: var(--text); background: var(--surface-alt); }
.header-actions { margin-left: auto; display: flex; align-items: center; gap: 6px; }
.link-signin { padding: 10px 10px; font-weight: 600; text-decoration: none; color: var(--text); border-radius: 8px; }
.link-signin:hover { color: var(--primary); }
@media (min-width: 900px) { .top-nav { display: block; } .header-actions { margin-left: 8px; } }

/* Hero */
.hero { padding: 40px 0 56px; border-bottom: 1px solid var(--border); }
.hero-grid { display: grid; gap: 44px; align-items: center; }
.eyebrow { font: 700 .78rem/1.3 var(--font-body); letter-spacing: .1em; text-transform: uppercase; color: var(--accent-ink); margin-bottom: .9rem; }
.thread-underline { position: relative; white-space: nowrap; color: var(--primary); }
.thread-underline::after {
  content: ""; position: absolute; left: 0; right: 0; bottom: -.08em; height: .22em;
  background: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 40 8'%3E%3Cpath d='M0 4c5-4 10 4 20 0s15-4 20 0' fill='none' stroke='%23D9822B' stroke-width='2.4' stroke-linecap='round'/%3E%3C/svg%3E") repeat-x 0 50% / 40px 100%;
}
.lede { font-size: 1.12rem; color: var(--muted); max-width: 36em; }
.cta-row { display: flex; flex-wrap: wrap; gap: 14px; align-items: flex-start; margin: 26px 0 18px; }
.cta-center { justify-content: center; }
.cta-stack { display: flex; flex-direction: column; align-items: flex-start; gap: 6px; }
.cta-stack .cta-note { padding-left: 4px; }
.cta-center .cta-stack { align-items: center; }
.cta-note { font-size: .85rem; color: var(--muted); }
.android-note { display: inline-flex; align-items: center; gap: 8px; font-size: .92rem; font-weight: 600; padding: 6px 12px; border-radius: 999px; background: var(--surface); border: 1px solid var(--border); color: var(--text); }
.dot { width: 8px; height: 8px; border-radius: 50%; background: var(--accent); }
.hero-points { display: flex; flex-wrap: wrap; gap: 8px 18px; margin-top: 14px; font-size: .92rem; color: var(--muted); }
.hero-points li { display: inline-flex; align-items: center; gap: 7px; }
.hero-points li::before { content: ""; width: 14px; height: 2px; background: var(--accent); border-radius: 2px; }
@media (max-width: 479px) {
  .cta-row > .btn, .cta-stack, .cta-stack .btn { width: 100%; }
  .cta-stack { align-items: center; }
}
@media (min-width: 960px) {
  .hero { padding: 72px 0 88px; }
  .hero-grid { grid-template-columns: 1.1fr .9fr; }
}

/* Phone mockup */
.phone-figure { margin: 0; display: flex; justify-content: center; position: relative; }
.phone-figure::before {
  content: ""; position: absolute; width: 78%; aspect-ratio: 1; border-radius: 50%; top: 10%;
  background: radial-gradient(circle, color-mix(in srgb, var(--accent) 28%, transparent), transparent 68%);
}
.phone {
  position: relative; width: 100%; max-width: 300px; padding: 10px; border-radius: 42px;
  background: #15172A; box-shadow: 0 30px 60px rgba(20,22,50,.28), inset 0 0 0 2px #2c2f4a;
}
.phone-screen {
  border-radius: 33px; overflow: hidden; background: #F7F6F2; color: #1D1F2B;
  font-size: 12.5px; line-height: 1.35; padding: 12px 12px 0;
}
.ph-status { display: flex; justify-content: space-between; align-items: center; font-weight: 600; font-size: 11.5px; padding: 0 6px 10px; }
.ph-sync { display: inline-flex; align-items: center; gap: 5px; background: #ECEBE6; padding: 2px 8px; border-radius: 999px; font-size: 10.5px; }
.sd { display: inline-block; width: 8px; height: 8px; border-radius: 50%; flex: none; }
.sd-off { background: #A86A12; }
.sd-sync { background: #79AEEB; box-shadow: 0 0 0 3px rgba(121,174,235,.3); }
.ph-title { display: flex; align-items: center; gap: 10px; font: 700 15px/1 var(--font-display); padding: 4px 4px 12px; }
.ph-back { font-size: 22px; line-height: .6; color: #2E3A8C; }
.ph-qr { margin-left: auto; width: 22px; height: 22px; border-radius: 5px; background:
  conic-gradient(#2E3A8C 0 25%, transparent 0 50%, #2E3A8C 0 75%, transparent 0) 0 0 / 7px 7px; opacity: .85; }
.roll-card { background: #fff; border-radius: 18px; padding: 14px; border: 1px solid #E3E1DA; box-shadow: 0 4px 14px rgba(20,22,35,.06); }
.roll-top { display: flex; justify-content: space-between; align-items: center; }
.roll-no { font: 700 13px/1 var(--font-mono); color: #2E3A8C; letter-spacing: .02em; }
.roll-item { font: 700 19px/1.2 var(--font-display); margin-top: 8px; }
.roll-qty { color: #595C6B; margin-top: 2px; }
.roll-qty strong { font-size: 22px; color: #1D1F2B; font-family: var(--font-display); }
.roll-qty .sep { margin: 0 4px; }
.roll-meta { display: grid; grid-template-columns: 1fr 1fr; gap: 8px; margin: 12px 0; }
.roll-meta div { background: #F1EFE9; border-radius: 10px; padding: 7px 9px; }
.roll-meta dt { font-size: 10px; text-transform: uppercase; letter-spacing: .06em; color: #595C6B; }
.roll-meta dd { margin: 1px 0 0; font-weight: 600; }
.grade { display: inline-grid; place-items: center; width: 20px; height: 20px; border-radius: 6px; background: #E1F2E8; color: #2F7D55; font-weight: 800; }
.barcode { height: 34px; border-radius: 4px;
  background: repeating-linear-gradient(90deg, #1D1F2B 0 2px, transparent 2px 4px, #1D1F2B 4px 5px, transparent 5px 8px, #1D1F2B 8px 11px, transparent 11px 13px); opacity: .85; }
.ph-actions { display: grid; grid-template-columns: repeat(4, 1fr); gap: 6px; margin: 10px 0; }
.ph-actions span { text-align: center; padding: 9px 0; border-radius: 12px; background: #E6E8F6; color: #2E3A8C; font-weight: 600; font-size: 11.5px; }
.ph-actions .pa-main { background: #2E3A8C; color: #fff; }
.ph-toast { background: #1D1F2B; color: #fff; border-radius: 12px; padding: 9px 11px; font-size: 11px; display: flex; gap: 7px; align-items: center; }
.ph-toast::before { content: "✓"; color: #F0A34A; font-weight: 800; }
.ph-nav { display: grid; grid-template-columns: repeat(5, 1fr); align-items: end; text-align: center; margin: 12px -12px 0; padding: 8px 6px 12px; background: #fff; border-top: 1px solid #E3E1DA; font-size: 10.5px; color: #595C6B; font-weight: 500; }
.ph-scan { color: #2E3A8C; font-weight: 700; display: flex; flex-direction: column; align-items: center; gap: 3px; }
.ph-scan i { width: 42px; height: 42px; margin-top: -24px; border-radius: 50%; background: #2E3A8C; box-shadow: 0 0 0 4px #fff, 0 6px 14px rgba(46,58,140,.4);
  background-image: linear-gradient(#fff, #fff), linear-gradient(#fff, #fff); background-size: 18px 2px, 2px 18px; background-position: center; background-repeat: no-repeat; }

/* Chips */
.chip { display: inline-flex; align-items: center; padding: 3px 10px; border-radius: 999px; font-size: .78rem; font-weight: 600; white-space: nowrap; }
.phone .chip { font-size: 10.5px; padding: 3px 8px; }
.chip-ok { background: var(--success-soft); color: var(--success); }
.phone .chip-ok { background: #E1F2E8; color: #2F7D55; }
.chip-info { background: var(--info-soft); color: var(--info); }
.chip-primary { background: var(--primary-soft); color: var(--primary); }
.chip-warn { background: var(--warning-soft); color: var(--warning); }
.chip-bad { background: var(--danger-soft); color: var(--danger); }
.chip-neutral { background: var(--neutral-soft); color: var(--muted); }
.chips { display: flex; flex-wrap: wrap; gap: 8px; }

/* Sections */
.section { padding: 64px 0; }
.section-alt { background: var(--surface-alt); border-block: 1px solid var(--border); }
.section-head { max-width: 720px; margin-bottom: 36px; }
.section-head p:last-child { color: var(--muted); font-size: 1.05rem; }
@media (min-width: 900px) { .section { padding: 96px 0; } }

/* Traceability */
.trace { display: grid; gap: 14px; counter-reset: t; }
.trace-step {
  position: relative; display: flex; flex-direction: column; gap: 3px;
  background: var(--surface); border: 1px solid var(--border); border-radius: var(--radius); padding: 18px 18px 18px 20px; box-shadow: var(--shadow);
}
.trace-step::before { content: ""; position: absolute; left: 0; top: 18px; bottom: 18px; width: 4px; border-radius: 0 4px 4px 0; background: var(--primary); }
.trace-roll::before { background: var(--accent); }
.trace-kind { font-size: .75rem; font-weight: 700; letter-spacing: .08em; text-transform: uppercase; color: var(--muted); }
.trace-step strong { font: 700 1.25rem/1.25 var(--font-display); }
.trace-roll strong { font-family: var(--font-mono); font-size: 1.1rem; color: var(--primary); }
.trace-sub { font-size: .9rem; color: var(--muted); }
.trace-step:not(:last-child)::after {
  content: ""; position: absolute; left: 50%; bottom: -14px; width: 2px; height: 14px; background:
  repeating-linear-gradient(180deg, var(--accent) 0 3px, transparent 3px 6px);
}
@media (min-width: 760px) {
  .trace { grid-template-columns: repeat(4, 1fr); gap: 22px; }
  .trace-step:not(:last-child)::after { left: auto; right: -22px; top: 50%; bottom: auto; width: 22px; height: 2px;
    background: repeating-linear-gradient(90deg, var(--accent) 0 4px, transparent 4px 8px); }
}

/* Features */
.feature-grid { display: grid; gap: 14px; }
.feature { background: var(--surface); border: 1px solid var(--border); border-radius: var(--radius); padding: 22px; }
.feature p { color: var(--muted); margin: 0; }
.feature h3 { display: flex; align-items: center; gap: 10px; }
.feature h3::before { content: ""; width: 10px; height: 10px; border-radius: 3px; flex: none; background: var(--accent); transform: rotate(45deg); }
.tags { display: flex; flex-wrap: wrap; gap: 6px; margin-top: 14px; }
.tags li { font-size: .82rem; padding: 4px 10px; border-radius: 8px; background: var(--primary-soft); color: var(--primary); font-weight: 600; }
.progress-card { margin-top: 16px; background: var(--surface-alt); border-radius: 12px; padding: 14px; display: grid; gap: 10px; }
.pc-head { display: flex; justify-content: space-between; font-size: .85rem; font-weight: 700; }
.pc-head span:first-child { font-family: var(--font-mono); color: var(--primary); }
.bar { display: grid; grid-template-columns: 82px 1fr 56px; align-items: center; gap: 10px; font-size: .85rem; }
.bar span { color: var(--muted); }
.bar b { text-align: right; font-weight: 600; }
.bar i { height: 8px; border-radius: 99px; background: var(--neutral-soft); position: relative; overflow: hidden; }
.bar i::after { content: ""; position: absolute; inset: 0 auto 0 0; width: var(--w); border-radius: inherit; background: linear-gradient(90deg, var(--primary), color-mix(in srgb, var(--primary) 70%, var(--accent))); }
@media (min-width: 640px) { .feature-grid { grid-template-columns: repeat(2, 1fr); } .feature-wide { grid-column: span 2; } }
@media (min-width: 1000px) { .feature-grid { grid-template-columns: repeat(4, 1fr); gap: 18px; } }

/* Split layout */
.split { display: grid; gap: 40px; align-items: center; }
@media (min-width: 900px) { .split { grid-template-columns: 1fr 1fr; gap: 64px; } }

/* Scan */
.actions-list { display: flex; flex-wrap: wrap; gap: 8px; margin: 6px 0 16px; }
.actions-list li { padding: 8px 14px; border-radius: 12px; background: var(--surface); border: 1px solid var(--border); font-weight: 600; font-size: .92rem; }
.scan-visual { display: grid; gap: 22px; }
.navbar-demo {
  display: grid; grid-template-columns: repeat(5, 1fr); align-items: end; text-align: center;
  background: var(--surface); border: 1px solid var(--border); border-radius: 20px; padding: 26px 6px 14px; box-shadow: var(--shadow);
  font-size: .85rem; color: var(--muted); font-weight: 500; margin-top: 18px;
}
.nav-scan { display: flex; flex-direction: column; align-items: center; gap: 6px; color: var(--primary); font-weight: 700; }
.nav-scan i {
  width: 64px; height: 64px; margin-top: -48px; border-radius: 50%; background-color: var(--primary);
  box-shadow: 0 0 0 6px var(--surface), 0 10px 22px rgba(46,58,140,.35);
  background-image:
    linear-gradient(var(--on-primary), var(--on-primary)), linear-gradient(var(--on-primary), var(--on-primary)),
    linear-gradient(var(--on-primary), var(--on-primary)), linear-gradient(var(--on-primary), var(--on-primary)),
    linear-gradient(var(--accent), var(--accent));
  background-size: 10px 3px, 3px 10px, 10px 3px, 3px 10px, 28px 2px;
  background-position: 18px 18px, 18px 18px, 36px 43px, 43px 36px, center;
  background-repeat: no-repeat;
}
.status-cloud { background: var(--surface); border: 1px solid var(--border); border-radius: var(--radius); padding: 18px; }
.status-cloud .small { margin-bottom: 10px; }

/* Offline (ink band) */
.section-ink {
  background-color: var(--ink); color: var(--ink-text);
  background-image:
    repeating-linear-gradient(0deg, rgba(255,255,255,.035) 0 2px, transparent 2px 10px),
    repeating-linear-gradient(90deg, rgba(240,163,74,.05) 0 2px, transparent 2px 10px);
}
.section-ink p { color: var(--ink-muted); }
.section-ink .eyebrow { color: #F3B266; }
.section-ink h2, .section-ink h3 { color: #fff; }
.toast-demo { display: flex; gap: 12px; align-items: center; background: #fff; color: #1D1F2B; border-radius: 14px; padding: 14px 16px; font-weight: 600; box-shadow: 0 10px 30px rgba(0,0,0,.3); margin: 22px 0 16px; max-width: 460px; }
.toast-demo svg { width: 26px; height: 26px; flex: none; padding: 3px; border-radius: 50%; background: #E1F2E8; color: #2F7D55; }
.sync-pills { display: flex; flex-wrap: wrap; gap: 8px; }
.sync-pills li { display: inline-flex; align-items: center; gap: 8px; padding: 6px 12px; border-radius: 999px; background: rgba(255,255,255,.08); border: 1px solid rgba(255,255,255,.14); font-size: .9rem; font-weight: 600; color: #fff; }
.sync-pills .sd-off { background: #F0A34A; }
.tick { color: #5FC08B; font-weight: 800; }
.modes { display: grid; gap: 14px; }
.modes li { display: flex; gap: 16px; padding: 20px; border-radius: var(--radius); background: rgba(255,255,255,.05); border: 1px solid rgba(255,255,255,.12); }
.modes p { margin: 0; }
.modes h3 { margin-bottom: .3em; }
.mode-n { flex: none; display: grid; place-items: center; width: 36px; height: 36px; border-radius: 10px; background: #F0A34A; color: #1A1206; font: 800 1.05rem/1 var(--font-display); }

/* Production flow */
.flow { display: grid; gap: 12px; margin-bottom: 14px; }
.flow li { position: relative; }
.flow span {
  display: flex; align-items: center; justify-content: center; min-height: 56px; border-radius: 14px;
  font: 700 1.05rem/1 var(--font-display); background: var(--surface); border: 1px solid var(--border); box-shadow: var(--shadow);
}
.flow li:first-child span { background: var(--neutral-soft); }
.flow li:nth-child(2) span { background: var(--primary); color: var(--on-primary); border-color: transparent; }
.flow li:nth-child(3) span { background: var(--accent-soft); color: var(--accent-ink); }
.flow li:last-child span { background: var(--success-soft); color: var(--success); }
.flow li:not(:last-child)::after { content: ""; display: block; width: 2px; height: 12px; margin: 0 auto -12px; background: var(--accent); }
@media (min-width: 760px) {
  .flow { grid-template-columns: repeat(5, 1fr); gap: 26px; }
  .flow li:not(:last-child)::after { position: absolute; top: 50%; right: -26px; width: 26px; height: 2px; margin: 0;
    background: repeating-linear-gradient(90deg, var(--accent) 0 5px, transparent 5px 9px); }
}
.prod-cards { display: grid; gap: 16px; margin-top: 36px; }
@media (min-width: 860px) { .prod-cards { grid-template-columns: 1fr 1fr; gap: 22px; } }
.card { background: var(--surface); border: 1px solid var(--border); border-radius: var(--radius); padding: 22px; box-shadow: var(--shadow); }
.jw-issued { display: flex; justify-content: space-between; align-items: baseline; padding: 12px 0; border-block: 1px solid var(--border); }
.jw-issued strong { font: 800 1.6rem/1 var(--font-display); }
.jw-return { display: grid; grid-template-columns: repeat(2, 1fr); gap: 10px; margin: 14px 0; }
.jw-return div { padding: 10px 12px; border-radius: 12px; background: var(--surface-alt); border-left: 4px solid; }
.jw-return dt { font-size: .8rem; color: var(--muted); font-weight: 600; }
.jw-return dd { margin: 0; font-weight: 700; font-size: 1.05rem; }
.jw-return .good, .jw-bar .good { border-color: var(--success); --c: var(--success); }
.jw-return .rej, .jw-bar .rej { border-color: var(--danger); --c: var(--danger); }
.jw-return .loss, .jw-bar .loss { border-color: var(--warning); --c: var(--warning); }
.jw-return .pend, .jw-bar .pend { border-color: var(--info); --c: var(--info); }
.jw-bar { display: flex; height: 10px; border-radius: 99px; overflow: hidden; gap: 2px; }
.jw-bar i { width: var(--w); background: var(--c); min-width: 4px; }
@media (min-width: 480px) { .jw-return { grid-template-columns: repeat(4, 1fr); } }
.grades { display: flex; gap: 8px; margin: 6px 0 4px; }
.grades li { min-width: 44px; height: 44px; padding: 0 12px; display: grid; place-items: center; border-radius: 12px; font: 800 1.1rem/1 var(--font-display); }
.g-a { background: var(--success-soft); color: var(--success); }
.g-b { background: var(--info-soft); color: var(--info); }
.g-c { background: var(--warning-soft); color: var(--warning); }
.g-r { background: var(--danger-soft); color: var(--danger); font-size: .95rem !important; }

/* TamilAccounting */
.ta-grid { display: grid; gap: 16px; align-items: stretch; }
.ta-col { background: var(--surface); border: 1px solid var(--border); border-radius: var(--radius); padding: 24px; }
.ta-col h3 { display: flex; flex-wrap: wrap; align-items: center; gap: 8px; margin-bottom: 14px; }
.ta-badge { padding: 4px 10px; border-radius: 8px; font-size: .95rem; }
.ta-tx { background: var(--primary); color: var(--on-primary); }
.ta-ta { background: var(--accent); color: var(--on-accent); }
.ta-link { display: flex; flex-direction: column; align-items: center; justify-content: center; color: var(--accent); gap: 2px; font-size: .8rem; font-weight: 700; text-transform: uppercase; letter-spacing: .1em; }
.ta-link svg { width: 120px; height: 40px; transform: rotate(90deg); margin: 30px 0; }
.ta-link span { color: var(--muted); }
@media (min-width: 860px) {
  .ta-grid { grid-template-columns: 1fr 130px 1fr; }
  .ta-link svg { transform: none; margin: 0; }
}
.checks { display: grid; gap: 9px; }
.checks li { position: relative; padding-left: 28px; }
.checks li::before {
  content: ""; position: absolute; left: 0; top: .3em; width: 18px; height: 18px; border-radius: 50%;
  background: var(--primary-soft) url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24'%3E%3Cpath d='M6 12.5l4 4L18 8' fill='none' stroke='%232E3A8C' stroke-width='3' stroke-linecap='round' stroke-linejoin='round'/%3E%3C/svg%3E") center / 13px no-repeat;
}
@media (prefers-color-scheme: dark) {
  .checks li::before { background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24'%3E%3Cpath d='M6 12.5l4 4L18 8' fill='none' stroke='%238C98F2' stroke-width='3' stroke-linecap='round' stroke-linejoin='round'/%3E%3C/svg%3E"); }
}

/* Who */
.who-grid { display: grid; gap: 12px; }
.who-grid li { display: flex; flex-direction: column; gap: 2px; padding: 18px 18px 18px 22px; border-radius: 14px; background: var(--surface); border: 1px solid var(--border); position: relative; overflow: hidden; }
.who-grid li::before { content: ""; position: absolute; left: 0; top: 0; bottom: 0; width: 6px;
  background: repeating-linear-gradient(180deg, var(--primary) 0 6px, var(--accent) 6px 12px); }
.who-grid strong { font-family: var(--font-display); font-size: 1.08rem; }
.who-grid span { color: var(--muted); font-size: .92rem; }
@media (min-width: 600px) { .who-grid { grid-template-columns: repeat(2, 1fr); } }
@media (min-width: 1000px) { .who-grid { grid-template-columns: repeat(4, 1fr); } }

/* Plans */
.soon-pill { display: inline-block; padding: 6px 14px; border-radius: 999px; background: var(--accent-soft); color: var(--accent-ink); font-weight: 700; font-size: .92rem; }
.plans { display: grid; gap: 16px; }
.plan { display: flex; flex-direction: column; background: var(--surface); border: 1px solid var(--border); border-radius: 20px; padding: 24px; }
.plan h3 { font-size: 1.35rem; margin-bottom: .2em; }
.plan-for { color: var(--muted); font-size: .95rem; }
.plan .checks { margin-bottom: 22px; flex: 1; align-content: start; }
.plan .btn { align-self: stretch; }
.plan-price { margin: 0; padding: 12px; text-align: center; border-radius: 12px; background: var(--surface-alt); color: var(--muted); font-weight: 600; font-size: .92rem; }
.plan-featured { border: 2px solid var(--primary); box-shadow: var(--shadow); }
@media (min-width: 640px) { .plans { grid-template-columns: repeat(2, 1fr); } }
@media (min-width: 1060px) { .plans { grid-template-columns: repeat(4, 1fr); } }

/* FAQ */
.faq { display: grid; gap: 10px; }
.faq details { background: var(--surface); border: 1px solid var(--border); border-radius: 14px; }
.faq summary { cursor: pointer; list-style: none; padding: 18px 52px 18px 20px; font-weight: 600; position: relative; border-radius: 14px; }
.faq summary::-webkit-details-marker { display: none; }
.faq summary::after { content: ""; position: absolute; right: 20px; top: 50%; width: 10px; height: 10px; margin-top: -7px; border-right: 2.5px solid var(--primary); border-bottom: 2.5px solid var(--primary); transform: rotate(45deg); transition: transform .2s ease; }
.faq details[open] summary::after { transform: rotate(-135deg); margin-top: -2px; }
.faq details p { padding: 0 20px 18px; margin: 0; color: var(--muted); }

/* Final CTA */
.final-cta { padding: 72px 0; border-top: 1px solid var(--border);
  background-color: var(--ink); color: var(--ink-text);
  background-image:
    repeating-linear-gradient(0deg, rgba(255,255,255,.035) 0 2px, transparent 2px 10px),
    repeating-linear-gradient(90deg, rgba(240,163,74,.06) 0 2px, transparent 2px 10px);
}
.final-cta h2 { color: #fff; }
.final-cta p { color: var(--ink-muted); }
.final-cta .cta-note { color: var(--ink-muted); }
.final-cta .android-note { background: rgba(255,255,255,.08); border-color: rgba(255,255,255,.16); color: #fff; }

/* Footer */
.site-footer { padding: 48px 0 24px; background: var(--surface); border-top: 1px solid var(--border); }
.footer-grid { display: grid; gap: 28px; }
.footer-grid .muted { margin-top: 10px; }
.footer-h { font: 700 .8rem/1 var(--font-body); text-transform: uppercase; letter-spacing: .1em; color: var(--muted); margin-bottom: 12px; }
.footer-grid ul { display: grid; gap: 4px; }
.footer-grid nav a { display: inline-block; padding: 6px 0; color: var(--text); text-decoration: none; }
.footer-grid nav a:hover { color: var(--primary); text-decoration: underline; }
.footer-base { margin-top: 32px; padding-top: 18px; border-top: 1px solid var(--border); font-size: .88rem; color: var(--muted); }
.footer-base p { margin: 0; }
@media (min-width: 720px) { .footer-grid { grid-template-columns: 2fr 1fr 1fr; } }

@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  *, *::before, *::after { transition: none !important; animation: none !important; }
  .btn:hover { transform: none; }
}
