/* IsoFab Studio website — one stylesheet for every page.
   Colours and sizes live in :root; change them there. */
/* Barlow, self-hosted (SIL OFL 1.1). Latin and Vietnamese subsets load only when needed. */
@font-face { font-family: "Barlow"; font-style: normal; font-weight: 400; font-display: swap; src: url("../fonts/barlow-vietnamese-400-normal.woff2") format("woff2"); unicode-range: U+0102-0103,U+0110-0111,U+0128-0129,U+0168-0169,U+01A0-01A1,U+01AF-01B0,U+0300-0301,U+0303-0304,U+0308-0309,U+0323,U+0329,U+1EA0-1EF9,U+20AB; }
@font-face { font-family: "Barlow"; font-style: normal; font-weight: 400; font-display: swap; src: url("../fonts/barlow-latin-400-normal.woff2") format("woff2"); unicode-range: U+0000-00FF,U+0131,U+0152-0153,U+02BB-02BC,U+02C6,U+02DA,U+02DC,U+0304,U+0308,U+0329,U+2000-206F,U+20AC,U+2122,U+2191,U+2193,U+2212,U+2215,U+FEFF,U+FFFD; }
@font-face { font-family: "Barlow"; font-style: normal; font-weight: 500; font-display: swap; src: url("../fonts/barlow-vietnamese-500-normal.woff2") format("woff2"); unicode-range: U+0102-0103,U+0110-0111,U+0128-0129,U+0168-0169,U+01A0-01A1,U+01AF-01B0,U+0300-0301,U+0303-0304,U+0308-0309,U+0323,U+0329,U+1EA0-1EF9,U+20AB; }
@font-face { font-family: "Barlow"; font-style: normal; font-weight: 500; font-display: swap; src: url("../fonts/barlow-latin-500-normal.woff2") format("woff2"); unicode-range: U+0000-00FF,U+0131,U+0152-0153,U+02BB-02BC,U+02C6,U+02DA,U+02DC,U+0304,U+0308,U+0329,U+2000-206F,U+20AC,U+2122,U+2191,U+2193,U+2212,U+2215,U+FEFF,U+FFFD; }
@font-face { font-family: "Barlow"; font-style: normal; font-weight: 600; font-display: swap; src: url("../fonts/barlow-vietnamese-600-normal.woff2") format("woff2"); unicode-range: U+0102-0103,U+0110-0111,U+0128-0129,U+0168-0169,U+01A0-01A1,U+01AF-01B0,U+0300-0301,U+0303-0304,U+0308-0309,U+0323,U+0329,U+1EA0-1EF9,U+20AB; }
@font-face { font-family: "Barlow"; font-style: normal; font-weight: 600; font-display: swap; src: url("../fonts/barlow-latin-600-normal.woff2") format("woff2"); unicode-range: U+0000-00FF,U+0131,U+0152-0153,U+02BB-02BC,U+02C6,U+02DA,U+02DC,U+0304,U+0308,U+0329,U+2000-206F,U+20AC,U+2122,U+2191,U+2193,U+2212,U+2215,U+FEFF,U+FFFD; }
@font-face { font-family: "Barlow Semi Condensed"; font-style: normal; font-weight: 500; font-display: swap; src: url("../fonts/barlow-semi-condensed-vietnamese-500-normal.woff2") format("woff2"); unicode-range: U+0102-0103,U+0110-0111,U+0128-0129,U+0168-0169,U+01A0-01A1,U+01AF-01B0,U+0300-0301,U+0303-0304,U+0308-0309,U+0323,U+0329,U+1EA0-1EF9,U+20AB; }
@font-face { font-family: "Barlow Semi Condensed"; font-style: normal; font-weight: 500; font-display: swap; src: url("../fonts/barlow-semi-condensed-latin-500-normal.woff2") format("woff2"); unicode-range: U+0000-00FF,U+0131,U+0152-0153,U+02BB-02BC,U+02C6,U+02DA,U+02DC,U+0304,U+0308,U+0329,U+2000-206F,U+20AC,U+2122,U+2191,U+2193,U+2212,U+2215,U+FEFF,U+FFFD; }
@font-face { font-family: "Barlow Semi Condensed"; font-style: normal; font-weight: 600; font-display: swap; src: url("../fonts/barlow-semi-condensed-vietnamese-600-normal.woff2") format("woff2"); unicode-range: U+0102-0103,U+0110-0111,U+0128-0129,U+0168-0169,U+01A0-01A1,U+01AF-01B0,U+0300-0301,U+0303-0304,U+0308-0309,U+0323,U+0329,U+1EA0-1EF9,U+20AB; }
@font-face { font-family: "Barlow Semi Condensed"; font-style: normal; font-weight: 600; font-display: swap; src: url("../fonts/barlow-semi-condensed-latin-600-normal.woff2") format("woff2"); unicode-range: U+0000-00FF,U+0131,U+0152-0153,U+02BB-02BC,U+02C6,U+02DA,U+02DC,U+0304,U+0308,U+0329,U+2000-206F,U+20AC,U+2122,U+2191,U+2193,U+2212,U+2215,U+FEFF,U+FFFD; }

:root {
  --paper: #ffffff;
  --sheet: #f3f5f6;
  --stage: #e8ecef;
  --ink: #18212b;
  --steel: #4e5b67;
  --muted: #5a6672;
  --line: #d9dfe3;
  --redline: #c2410c;
  --redline-dark: #9a3412;
  --blue: #1f5fbf;
  --warn-bg: #fff3e0;
  --warn-ink: #8a4b00;
  --display: "Barlow Semi Condensed", "Arial Narrow", Arial, sans-serif;
  --text: "Barlow", "Segoe UI", Arial, sans-serif;
  --wrap: 1180px;
  --radius: 4px;
}

*, *::before, *::after { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; scroll-padding-top: 88px; }
body {
  margin: 0;
  background: var(--paper);
  color: var(--steel);
  font: 400 17px/1.6 var(--text);
  text-rendering: optimizeLegibility;
}
img, svg { display: block; max-width: 100%; height: auto; }
.logo-mark { flex: none; }
.brand .logo { display: block; height: 40px; width: auto; }
@media (max-width: 640px) { .site-header .brand .logo { height: 34px; } }
.site-footer .brand .logo { height: 30px; }
a { color: var(--blue); text-underline-offset: 3px; }
a:hover { color: var(--ink); }
h1, h2, h3, h4 { text-wrap: balance; color: var(--ink); font-family: var(--display); font-weight: 600; margin: 0; letter-spacing: -.005em; }
h1 { font-size: clamp(2.5rem, 5.2vw, 4.1rem); line-height: 1.04; }
h2 { font-size: clamp(1.9rem, 3.3vw, 2.6rem); line-height: 1.1; }
h3 { font-size: 1.4rem; line-height: 1.2; }
h4 { font-size: 1.1rem; line-height: 1.3; }
p { margin: 0; }
p + p { margin-top: .9em; }
ul, ol { margin: 0; padding: 0; }
strong { color: var(--ink); font-weight: 600; }
:focus-visible { outline: 2px solid var(--blue); outline-offset: 3px; border-radius: 2px; }
[hidden] { display: none !important; }

.wrap { width: min(100% - 48px, var(--wrap)); margin-inline: auto; }
.narrow { max-width: 760px; }
.skip { position: absolute; left: -9999px; top: 8px; background: var(--ink); color: #fff; padding: 8px 14px; z-index: 50; }
.skip:focus { left: 16px; }

/* ---------- buttons & links ---------- */
.btn {
  display: inline-flex; align-items: center; justify-content: center; gap: 8px;
  min-height: 46px; padding: 0 22px; border-radius: var(--radius);
  font: 600 1rem/1 var(--text); text-decoration: none; cursor: pointer;
  border: 1.5px solid transparent; transition: background-color .15s, border-color .15s, color .15s;
}
.btn-primary { background: var(--redline); color: #fff; }
.btn-primary:hover { background: var(--redline-dark); color: #fff; }
.btn-secondary { border-color: #b9c3cb; color: var(--ink); background: #fff; }
.btn-secondary:hover { border-color: var(--ink); color: var(--ink); }
.btn-on-dark { border-color: #5c6c7a; color: #fff; background: transparent; }
.btn-on-dark:hover { border-color: #fff; color: #fff; }
.btn[aria-disabled="true"], .btn:disabled { opacity: .45; cursor: not-allowed; }
.actions { display: flex; flex-wrap: wrap; gap: 12px; align-items: center; }

/* ---------- header ---------- */
.site-header { position: sticky; top: 0; z-index: 20; background: rgba(255,255,255,.96); border-bottom: 1px solid var(--line); backdrop-filter: saturate(1.2) blur(6px); }
.site-header .wrap { display: flex; align-items: center; gap: 32px; min-height: 68px; }
.brand { display: inline-flex; align-items: center; gap: 8px; color: var(--ink); text-decoration: none; font: 600 1.35rem/1 var(--display); letter-spacing: -.01em; }
.brand:hover { color: var(--ink); }
.site-nav { display: flex; align-items: center; gap: 28px; margin-left: auto; }
.site-nav a { color: var(--ink); text-decoration: none; font-weight: 500; font-size: .98rem; }
.site-nav a:hover, .site-nav a[aria-current="page"] { color: var(--redline); }
.lang { display: inline-flex; gap: 2px; font-size: .9rem; border: 1px solid var(--line); border-radius: var(--radius); padding: 2px; }
.lang a, .lang span { padding: 4px 8px; border-radius: 2px; line-height: 1.2; font-weight: 600; }
.lang span { background: var(--ink); color: #fff; }
.lang a { color: var(--steel); }
.site-nav .btn { margin-left: 8px; min-height: 40px; padding: 0 18px; font-size: .95rem; color: #fff; }
.site-nav .btn:hover { color: #fff; }
.menu-toggle { display: none; margin-left: auto; background: none; border: 1px solid var(--line); border-radius: var(--radius); width: 44px; height: 44px; cursor: pointer; color: var(--ink); }
.menu-toggle svg { margin: auto; }

/* ---------- sections ---------- */
.band { padding-block: 96px; }
.band-tight { padding-block: 64px; }
.band-sheet { background: var(--sheet); }
.band-ink { background: var(--ink); color: #c9d3db; }
.band-ink h2, .band-ink h3 { color: #fff; }
.section-head { max-width: 720px; margin-bottom: 48px; }
.section-head p { margin-top: 16px; font-size: 1.1rem; }
.lede { font-size: 1.2rem; line-height: 1.55; max-width: 62ch; }
.fine { font-size: .92rem; color: var(--muted); }

/* ---------- hero ---------- */
.hero { padding-top: 80px; }
.hero h1 { max-width: 16ch; }
@media (min-width: 900px) { .hero h1 { max-width: none; } }
.hero .lede { margin-top: 24px; }
.hero .actions { margin-top: 32px; }
.hero .fine { margin-top: 16px; }
.stage {
  margin-top: 64px; padding: 56px 0 0;
  background-color: var(--stage);
  background-image: linear-gradient(#dde2e6 1px, transparent 1px), linear-gradient(90deg, #dde2e6 1px, transparent 1px);
  background-size: 32px 32px; background-position: center top;
  border-top: 1px solid var(--line);
}
.app-frame { max-width: 1200px; margin-inline: auto; border-radius: 8px 8px 0 0; box-shadow: 0 30px 60px -20px rgba(24,33,43,.35), 0 0 0 1px rgba(24,33,43,.12); overflow: hidden; background: #fff; }
.video-frame video { display: block; width: 100%; height: auto; aspect-ratio: 1920 / 1032; background: #18212b; }
.stage-caption { text-align: center; font-size: .9rem; color: var(--muted); padding: 14px 16px; background: var(--paper); border-top: 1px solid var(--line); }

/* the one orchestrated moment: markups land, rows fill in */
@media (prefers-reduced-motion: no-preference) {
  .app-svg .mk { opacity: 0; transform-box: fill-box; transform-origin: center; animation: mk-in .35s ease-out forwards; animation-delay: var(--d); }
  .app-svg .row { opacity: 0; animation: row-in .3s ease-out forwards; animation-delay: var(--d); }
  @keyframes mk-in { from { opacity: 0; transform: scale(.55); } to { opacity: 1; transform: none; } }
  @keyframes row-in { from { opacity: 0; transform: translateY(-4px); } to { opacity: 1; transform: none; } }
}

/* ---------- 1B.0.12 hero: Detect Pipe Route demo ---------- */
.eyebrow { display: inline-flex; flex-wrap: wrap; align-items: center; gap: 8px; margin-bottom: 22px; padding: 6px 12px 6px 6px; border: 1px solid var(--line); border-radius: 999px; font-size: .92rem; color: var(--ink); background: #fff; text-decoration: none; }
.eyebrow b { background: var(--redline); color: #fff; font-weight: 600; border-radius: 999px; padding: 2px 10px; font-size: .82rem; letter-spacing: .02em; }
.eyebrow:hover { border-color: var(--ink); color: var(--ink); }
.demo { max-width: 1200px; margin-inline: auto; border-radius: 10px 10px 0 0; box-shadow: 0 30px 60px -20px rgba(24,33,43,.35), 0 0 0 1px rgba(24,33,43,.12); overflow: hidden; background: #fff; }
.demo-bar { display: flex; flex-wrap: wrap; align-items: stretch; gap: 0; background: #1c2b66; color: #fff; font-size: .82rem; }
.demo-bar .tab { padding: 9px 16px; font-weight: 600; background: #fff; color: #1c2b66; margin: 6px 0 0 8px; border-radius: 4px 4px 0 0; }
.demo-bar .tab.off { background: transparent; color: #dfe4f3; font-weight: 500; }
.demo-ribbon { display: flex; gap: 6px; flex-wrap: wrap; align-items: center; padding: 10px 12px; background: #fff; border-bottom: 1px solid #c9ced6; font-size: .85rem; }
.demo-ribbon .grp { display: inline-flex; align-items: center; gap: 6px; padding-right: 10px; margin-right: 4px; border-right: 1px solid var(--line); color: var(--muted); }
.demo-ribbon .grp:last-child { border-right: 0; }
.demo-ribbon .grp > .lbl { font-size: .75rem; text-transform: uppercase; letter-spacing: .06em; }
.demo-ribbon .btn-ui { padding: 5px 10px; border: 1px solid var(--line); border-radius: 4px; color: var(--ink); background: #fff; font-weight: 500; white-space: nowrap; }
.demo-ribbon .btn-ui.key { border-color: #9cb6e8; background: #eef3fb; color: #1c2b66; font-weight: 600; }
.demo-body { display: grid; grid-template-columns: minmax(0, 1fr) 280px; }
.demo-sheet { background: #e6eaed; padding: 14px; }
.only-narrow { display: none; }
.demo-sheet svg { border-radius: 2px; box-shadow: 0 1px 3px rgba(24,33,43,.18); }
.demo-log { list-style: none; margin: 0; padding: 18px 18px 18px 20px; border-left: 1px solid var(--line); display: grid; align-content: start; gap: 12px; font-size: .92rem; }
.demo-log ol { list-style: none; margin: 0; padding: 0; display: grid; gap: 12px; }
.demo-log h2 { font: 600 .78rem/1.2 var(--text); text-transform: uppercase; letter-spacing: .08em; color: var(--muted); margin-bottom: 2px; }
.demo-log li { display: grid; grid-template-columns: 34px minmax(0, 1fr); gap: 10px; align-items: start; color: var(--steel); line-height: 1.4; }
.demo-log li b { display: block; color: var(--ink); font-weight: 600; }
.demo-log .num { display: grid; place-items: center; height: 30px; border-radius: 6px; font: 600 1rem/1 var(--display); color: #fff; }
.c-red { background: #d3202a; } .c-teal { background: #0e7f81; } .c-org { background: #b8430b; } .c-ink { background: #1c2b66; } .c-blue { background: #2f6fdb; }
@media (max-width: 900px) {
  .demo-body { grid-template-columns: 1fr; }
  .demo-log { border-left: 0; border-top: 1px solid var(--line); }
  .demo-log ol { grid-template-columns: 1fr 1fr; }
}
@media (max-width: 640px) {
  .demo-log { padding: 16px; }
  .demo-log ol { grid-template-columns: 1fr; }
  .demo-sheet { padding: 6px; }
  .eyebrow { border-radius: 14px; }
  .only-wide { display: none; }
  .demo-ribbon .grp { border-right: 0; }
  .only-narrow { display: block; }
  .demo-ribbon .grp.hide-sm, .demo-bar .tab.hide-sm { display: none; }
}
@media (prefers-reduced-motion: no-preference) {
  .anim .w, .anim .pc { opacity: 0; transform-box: fill-box; transform-origin: center; animation: mk-in .35s ease-out forwards; animation-delay: var(--d); }
  .anim .fit { opacity: 0; animation: fade-in .45s ease-out forwards; animation-delay: var(--d); }
  .anim .sp, .anim .cl { stroke-dasharray: 1; stroke-dashoffset: 1; animation: draw-in .9s ease-in-out forwards; animation-delay: var(--d); }
  .anim .demo-log li { opacity: 0; animation: row-in .4s ease-out forwards; animation-delay: var(--d); }
  .anim .btn-ui.key { animation: press 1.2s ease-out; animation-delay: var(--d); }
  @keyframes fade-in { to { opacity: 1; } }
  @keyframes draw-in { to { stroke-dashoffset: 0; } }
  @keyframes press { 0%, 100% { box-shadow: none; } 15% { box-shadow: 0 0 0 4px rgba(47,111,219,.35); background: #dbe7fb; } }
}

/* ---------- before / after (estimates, not measurements) ---------- */
.ba { display: grid; gap: 28px; margin-bottom: 64px; }
.ba-row { display: grid; grid-template-columns: 180px minmax(0, 1fr); gap: 20px; align-items: center; }
.ba-row > h3 { font-size: 1.2rem; }
.ba-row > h3 small { display: block; font: 400 .92rem/1.3 var(--text); color: var(--muted); margin-top: 4px; }
.ba-bar { display: flex; flex-wrap: wrap; gap: 4px; }
.ba-bar span { flex: 1 1 auto; padding: 10px 12px; font-size: .9rem; line-height: 1.25; border-radius: 3px; background: #e9edf0; color: var(--steel); }
.ba-bar.fast { max-width: 46%; }
.ba-bar.fast span { background: #fdeee6; color: var(--redline-dark); font-weight: 600; }
.ba-bar.fast span.check { background: #eef3fb; color: #1c2b66; }
.ba-note { font-size: .92rem; color: var(--muted); max-width: 70ch; }
@media (max-width: 760px) { .ba-row { grid-template-columns: 1fr; gap: 10px; } .ba-bar.fast { max-width: none; } }

/* ---------- what is new ---------- */
.news { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 20px; }
.news article { background: #fff; border: 1px solid var(--line); border-top: 3px solid var(--redline); border-radius: 6px; padding: 24px; }
.news h3 { font-size: 1.3rem; }
.news p { margin-top: 10px; font-size: 1rem; }
.news .tag { display: inline-block; margin-bottom: 10px; font-size: .78rem; font-weight: 600; letter-spacing: .06em; text-transform: uppercase; color: var(--muted); }
@media (max-width: 1024px) { .news { grid-template-columns: 1fr 1fr; } }
@media (max-width: 640px) { .news { grid-template-columns: 1fr; } }
.video-band .app-frame { border-radius: 8px; }
.video-band .stage-caption { background: transparent; border: 0; }

/* ---------- today vs IsoFab Studio ---------- */
.compare { width: 100%; border-collapse: collapse; font-size: 1rem; }
.compare th, .compare td { text-align: left; vertical-align: top; padding: 18px 20px; border-bottom: 1px solid var(--line); }
.compare thead th { font: 600 1.05rem/1.2 var(--display); color: var(--ink); border-bottom: 2px solid var(--ink); }
.compare thead th:last-child { color: var(--redline); }
.compare tbody th { color: var(--ink); font-weight: 600; width: 18%; }
.compare td:nth-child(2) { color: var(--muted); width: 38%; }
.compare td:last-child { color: var(--ink); }

/* ---------- steps (a real sequence) ---------- */
.steps { list-style: none; display: grid; grid-template-columns: repeat(var(--cols, 3), 1fr); gap: 40px; counter-reset: step; }
.steps li { counter-increment: step; border-top: 2px solid var(--ink); padding-top: 20px; }
.steps li::before { content: counter(step); display: block; font: 600 2.4rem/1 var(--display); color: var(--redline); margin-bottom: 14px; }
.steps h3 { margin-bottom: 8px; }
.steps p { font-size: 1rem; }

/* ---------- feature rows ---------- */
.feature-row { display: grid; grid-template-columns: minmax(0, 5fr) minmax(0, 6fr); gap: 72px; align-items: center; }
.feature-row + .feature-row { margin-top: 112px; }
.feature-row.flip .feature-copy { order: 2; }
.feature-copy h3 { font-size: clamp(1.6rem, 2.4vw, 2rem); line-height: 1.12; }
.feature-copy > p { margin-top: 16px; font-size: 1.08rem; }
.ticks { list-style: none; margin-top: 22px; display: grid; gap: 10px; }
.ticks li { position: relative; padding-left: 26px; font-size: 1rem; }
.ticks li::before { content: ""; position: absolute; left: 2px; top: .52em; width: 10px; height: 10px; border: 2px solid var(--redline); transform: rotate(45deg) scale(.8); border-radius: 1px; }
.figure { margin: 0; border: 1px solid var(--line); border-radius: 6px; background: #fff; padding: 12px; }
.figure figcaption { font-size: .88rem; color: var(--muted); padding: 10px 6px 2px; border-top: 1px solid var(--line); margin-top: 8px; }

/* ---------- outputs table ---------- */
.spec { width: 100%; border-collapse: collapse; }
.spec th, .spec td { text-align: left; vertical-align: top; padding: 16px 0; border-bottom: 1px solid var(--line); }
.spec th { width: 30%; padding-right: 32px; color: var(--ink); font: 600 1.15rem/1.3 var(--display); }
.spec td { font-size: 1rem; }
.spec tr:first-child th, .spec tr:first-child td { border-top: 2px solid var(--ink); }

/* ---------- privacy / dark band ---------- */
.statement { display: grid; grid-template-columns: minmax(0, 7fr) minmax(0, 5fr); gap: 72px; align-items: start; }
.statement h2 { font-size: clamp(2rem, 3.6vw, 2.9rem); }
.statement p { font-size: 1.1rem; }
.facts { list-style: none; display: grid; gap: 0; border-top: 1px solid #3a4754; }
.facts li { display: flex; justify-content: space-between; gap: 16px; padding: 14px 0; border-bottom: 1px solid #3a4754; }
.facts span:first-child { color: #9fb0bf; }
.facts span:last-child { color: #fff; font-weight: 600; text-align: right; }

/* ---------- plans ---------- */
.plans { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 24px; }
.plan { border: 1px solid var(--line); border-radius: 6px; padding: 36px; background: #fff; display: flex; flex-direction: column; }
.plan.recommended { border-color: var(--ink); box-shadow: inset 0 3px 0 var(--redline); }
.plan h3 { font-size: 1.7rem; }
.plan .price { font: 600 2.6rem/1 var(--display); color: var(--ink); margin-top: 22px; overflow-wrap: anywhere; }
.plan .price-note { margin-top: 8px; color: var(--muted); font-size: .95rem; }
.plan .ticks { margin-block: 26px 32px; }
.plan .btn { margin-top: auto; align-self: flex-start; }
.team-note { margin-top: 24px; display: flex; flex-wrap: wrap; justify-content: space-between; align-items: center; gap: 16px; padding: 24px 28px; background: var(--sheet); border-radius: 6px; }
.team-note p { color: var(--ink); }

.matrix { width: 100%; border-collapse: collapse; font-size: 1rem; }
.matrix th, .matrix td { text-align: left; padding: 15px 16px; border-bottom: 1px solid var(--line); }
.matrix thead th { font: 600 1.05rem/1.2 var(--display); color: var(--ink); border-bottom: 2px solid var(--ink); }
.matrix tbody th { color: var(--ink); font-weight: 500; }
.table-scroll { overflow-x: auto; }
.scroll-cue { display: none; font-size: .88rem; color: var(--muted); margin-top: 8px; }
@media (max-width: 640px) { .scroll-cue { display: block; } }
.roles { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 32px; }
.roles h3 { font-size: 1.25rem; padding-top: 16px; border-top: 2px solid var(--ink); }
.roles p { margin-top: 8px; font-size: 1rem; }
@media (max-width: 1024px) { .roles { grid-template-columns: 1fr 1fr; } }
@media (max-width: 640px) { .roles { grid-template-columns: 1fr; gap: 24px; } }

/* ---------- notices ---------- */
.notice { border-left: 3px solid var(--redline); background: var(--sheet); padding: 16px 20px; color: var(--ink); font-size: .98rem; }
.notice.warn { border-color: #e08a00; background: var(--warn-bg); color: var(--warn-ink); }

/* ---------- page intro (inner pages) ---------- */
.page-intro { padding-block: 72px 48px; border-bottom: 1px solid var(--line); }
.page-intro h1 { font-size: clamp(2.3rem, 4.6vw, 3.4rem); max-width: 20ch; }
.page-intro .lede { margin-top: 18px; }

/* ---------- features page ---------- */
.with-index { display: grid; grid-template-columns: 220px minmax(0, 1fr); gap: 64px; align-items: start; }
.side-index { position: sticky; top: 100px; display: grid; gap: 2px; border-left: 1px solid var(--line); }
.side-index a { display: block; padding: 7px 0 7px 16px; margin-left: -1px; border-left: 2px solid transparent; color: var(--steel); text-decoration: none; font-size: .95rem; }
.side-index a:hover { color: var(--ink); border-left-color: var(--ink); }
.detail { padding-block: 56px; border-bottom: 1px solid var(--line); }
.detail:first-child { padding-top: 8px; }
.detail:last-child { border-bottom: 0; }
.detail h2 { font-size: clamp(1.7rem, 2.6vw, 2.15rem); }
.detail > p { margin-top: 14px; font-size: 1.08rem; max-width: 65ch; }
.detail .ticks { max-width: 68ch; }
.detail .figure { margin-top: 32px; max-width: 640px; }

/* ---------- docs ---------- */
.guide { list-style: none; counter-reset: g; display: grid; gap: 0; }
.guide > li { counter-increment: g; display: grid; grid-template-columns: 64px minmax(0, 1fr); gap: 8px; padding: 30px 0; border-top: 1px solid var(--line); }
.guide > li::before { content: counter(g); font: 600 2rem/1 var(--display); color: var(--redline); }
.guide h2 { font-size: 1.45rem; }
.guide p { margin-top: 8px; }
kbd { font: 600 .85em/1 var(--text); color: var(--ink); background: #fff; border: 1px solid #c3ccd3; border-bottom-width: 2px; border-radius: 3px; padding: 2px 6px; }
.menu-path { color: var(--ink); font-weight: 600; white-space: nowrap; }

/* ---------- FAQ ---------- */
.faq { border-top: 2px solid var(--ink); }
.faq-group + .faq-group { margin-top: 56px; }
.faq-group > h2 { font-size: 1.5rem; margin-bottom: 8px; }
details { border-bottom: 1px solid var(--line); }
summary { list-style: none; cursor: pointer; padding: 20px 40px 20px 0; position: relative; color: var(--ink); font-weight: 600; font-size: 1.08rem; }
summary::-webkit-details-marker { display: none; }
summary::after { content: ""; position: absolute; right: 6px; top: 50%; width: 10px; height: 10px; border-right: 2px solid var(--steel); border-bottom: 2px solid var(--steel); transform: translateY(-70%) rotate(45deg); transition: transform .2s; }
details[open] summary::after { transform: translateY(-30%) rotate(-135deg); }
details > div { padding: 0 40px 22px 0; max-width: 70ch; }

/* ---------- forms ---------- */
.form-grid { display: grid; grid-template-columns: minmax(0, 7fr) minmax(0, 5fr); gap: 64px; align-items: start; }
.site-form { display: grid; gap: 20px; }
.site-form fieldset { border: 0; padding: 0; margin: 0; display: grid; gap: 20px; min-width: 0; }
.field { display: grid; gap: 6px; }
.field label, .field .label { color: var(--ink); font-weight: 600; font-size: .98rem; }
.field .hint { font-size: .9rem; color: var(--muted); }
input[type="text"], input[type="email"], select, textarea {
  width: 100%; font: 400 1rem/1.4 var(--text); color: var(--ink); background: #fff;
  border: 1px solid #b9c3cb; border-radius: var(--radius); padding: 11px 12px; min-height: 46px;
}
textarea { min-height: 150px; resize: vertical; }
input:focus, select:focus, textarea:focus { outline: 2px solid var(--blue); outline-offset: 0; border-color: var(--blue); }
fieldset:disabled input, fieldset:disabled select, fieldset:disabled textarea { background: var(--sheet); color: var(--muted); }
.two { display: grid; grid-template-columns: 1fr 1fr; gap: 20px; }
.check { display: flex; gap: 10px; align-items: flex-start; font-size: .98rem; color: var(--ink); }
.check input { width: 18px; height: 18px; margin-top: 3px; accent-color: var(--redline); flex: none; }
.hp { position: absolute; left: -9999px; width: 1px; height: 1px; overflow: hidden; }
.pay-panel { border-top: 2px solid var(--ink); padding-top: 20px; display: grid; gap: 16px; }
.pay-panel:focus { outline: none; }
.pay-panel h2 { font-size: 1.35rem; }
.pay-panel h3 { font-size: 1.1rem; margin-bottom: 4px; }
.pay-list { display: grid; margin: 0; }
.pay-list div { display: flex; justify-content: space-between; align-items: baseline; gap: 16px; padding: 10px 0; border-bottom: 1px solid var(--line); }
.pay-list dt { color: var(--muted); }
.pay-list dd { margin: 0; text-align: right; font-weight: 600; overflow-wrap: anywhere; }
.pay-list code { font-size: 1.02rem; letter-spacing: .02em; }
.vietqr { margin: 8px 0 12px; display: grid; justify-items: center; gap: 8px; text-align: center; }
.vietqr [data-pay-qr] { width: 220px; height: 220px; padding: 8px; background: #fff; border: 1px solid var(--line); border-radius: 6px; }
.vietqr svg { width: 100%; height: 100%; display: block; }
.vietqr figcaption { font-size: .9rem; color: var(--muted); max-width: 40ch; }
.copy { margin-left: 8px; padding: 2px 10px; font: inherit; font-size: .85rem; font-weight: 500; border: 1px solid var(--line); border-radius: 4px; background: #fff; color: var(--ink); cursor: pointer; }
.copy:hover { border-color: var(--ink); }
.form-status { min-height: 1.5em; font-size: .98rem; color: var(--ink); }
.form-status.error { color: var(--redline-dark); }
.aside { border-top: 2px solid var(--ink); padding-top: 20px; display: grid; gap: 18px; }
.aside h2 { font-size: 1.35rem; }
.aside dl { display: grid; gap: 0; margin: 0; }
.aside dl div { display: flex; justify-content: space-between; gap: 16px; padding: 11px 0; border-bottom: 1px solid var(--line); }
.aside dt { color: var(--muted); }
.aside dd { margin: 0; color: var(--ink); font-weight: 600; text-align: right; }
.machine-id { font-size: .95rem; background: var(--sheet); border-radius: 6px; padding: 18px 20px; }
.machine-id strong { display: block; margin-bottom: 4px; }

/* ---------- download ---------- */
.download-card { border: 1px solid var(--line); border-radius: 6px; padding: 36px; }
.download-card h2 { font-size: 1.8rem; }
.download-card p { margin-top: 10px; }
.download-card .site-form, .download-card .actions { margin-top: 24px; }

/* ---------- prose (legal, changelog) ---------- */
.prose { max-width: 70ch; }
.prose h2 { font-size: 1.5rem; margin-top: 44px; margin-bottom: 10px; }
.prose h2:first-child { margin-top: 0; }
.prose ul { padding-left: 1.2em; }
.prose li + li { margin-top: 6px; }
.release { border-top: 2px solid var(--ink); padding-top: 20px; }
.release-meta { color: var(--muted); font-size: .95rem; margin-top: 4px; }

/* ---------- closing call to action ---------- */
.closing { display: flex; flex-wrap: wrap; justify-content: space-between; align-items: center; gap: 32px; }
.closing h2 { max-width: 22ch; }
.closing p { margin-top: 12px; font-size: 1.1rem; }

/* ---------- footer ---------- */
.site-footer { background: var(--sheet); border-top: 1px solid var(--line); padding-block: 56px 32px; font-size: .95rem; }
.footer-grid { display: grid; grid-template-columns: 2fr repeat(3, 1fr); gap: 40px; }
.footer-grid p { margin-top: 14px; max-width: 34ch; }
.footer-grid h2 { font: 600 1rem/1.2 var(--display); color: var(--ink); margin-bottom: 12px; }
.footer-grid ul { list-style: none; display: grid; gap: 8px; }
.footer-grid a { color: var(--steel); text-decoration: none; }
.footer-grid a:hover { color: var(--ink); text-decoration: underline; }
.footer-base { margin-top: 48px; padding-top: 20px; border-top: 1px solid var(--line); display: flex; flex-wrap: wrap; justify-content: space-between; gap: 12px; color: var(--muted); font-size: .9rem; }

/* ---------- 404 ---------- */
.missing { padding-block: 120px; }
.missing .lede { margin-top: 18px; }
.missing .actions { margin-top: 28px; }

/* ---------- responsive ---------- */
@media (max-width: 1024px) {
  .feature-row, .statement, .form-grid { grid-template-columns: 1fr; gap: 40px; }
  .feature-row.flip .feature-copy { order: 0; }
  .feature-row + .feature-row { margin-top: 80px; }
  .with-index { grid-template-columns: 1fr; gap: 24px; }
  .side-index { position: static; display: flex; flex-wrap: wrap; gap: 6px 18px; border-left: 0; border-block: 1px solid var(--line); padding-block: 12px; }
  .side-index a { padding: 4px 0; border-left: 0; margin: 0; }
  .footer-grid { grid-template-columns: 1fr 1fr 1fr; }
  .footer-grid > div:first-child { grid-column: 1 / -1; }
}
@media (max-width: 860px) {
  .menu-toggle { display: block; }
  .site-nav { display: none; position: absolute; top: 100%; left: 0; right: 0; flex-direction: column; align-items: stretch; gap: 0; background: #fff; border-bottom: 1px solid var(--line); padding: 8px 24px 20px; box-shadow: 0 16px 24px -16px rgba(24,33,43,.25); }
  .site-nav.open { display: flex; }
  .site-nav a { padding: 12px 0; border-bottom: 1px solid var(--line); }
  .site-nav .btn { margin: 16px 0 0; border-bottom: 0; }
  .site-nav .lang { align-self: flex-start; margin-top: 16px; }
  .site-nav .lang a { border-bottom: 0; padding: 4px 8px; }
  .steps { grid-template-columns: 1fr; gap: 32px; }
  .plans { grid-template-columns: minmax(0, 1fr); }
  .band { padding-block: 72px; }
}
@media (max-width: 640px) {
  body { font-size: 16px; }
  .wrap { width: min(100% - 32px, var(--wrap)); }
  .hero { padding-top: 48px; }
  .stage { margin-top: 44px; padding-top: 24px; }
  .stage .wrap { width: calc(100% - 20px); }
  .compare thead { display: none; }
  .compare, .compare tbody, .compare tr, .compare th, .compare td { display: block; width: 100% !important; }
  .compare tr { padding: 16px 0; border-bottom: 1px solid var(--line); }
  .compare th, .compare td { border: 0; padding: 2px 0; }
  .compare tbody th { margin-bottom: 6px; }
  .compare td::before { content: attr(data-label) ": "; font-weight: 600; color: var(--steel); }
  .spec th, .spec td { display: block; width: 100%; padding: 0; border: 0; }
  .spec tr { display: block; padding: 14px 0; border-bottom: 1px solid var(--line); }
  .spec tr:first-child { border-top: 2px solid var(--ink); }
  .spec tr:first-child th, .spec tr:first-child td { border-top: 0; }
  .spec td { margin-top: 4px; }
  .two { grid-template-columns: 1fr; }
  .plan, .download-card { padding: 26px; }
  .guide > li { grid-template-columns: 44px minmax(0, 1fr); }
  .footer-grid { grid-template-columns: 1fr 1fr; }
  .closing { flex-direction: column; align-items: flex-start; }
}
.badge-new { display: inline-block; vertical-align: middle; margin-left: 10px; padding: 3px 9px; border-radius: 999px; background: var(--redline); color: #fff; font: 600 .78rem/1.2 var(--text); letter-spacing: .03em; }

/* ================= 2026-11-21: trang chủ + Tính năng viết lại (giữ logo, cam, Barlow; gọn và thoáng hơn) ================= */
.kicker { display: flex; align-items: center; gap: 10px; margin-bottom: 14px; font: 600 .8rem/1.2 var(--text); letter-spacing: .12em; text-transform: uppercase; color: var(--redline); }
.kicker span { display: inline-grid; place-items: center; min-width: 30px; height: 24px; padding: 0 6px; border: 1.5px solid currentColor; border-radius: 3px; font: 600 .82rem/1 var(--display); letter-spacing: 0; }
.kicker .badge-new { margin-left: 2px; }

/* hero trên nền mực, lưới bản vẽ mờ; khung app tràn xuống nền trắng */
.hero-dark {
  padding-top: 88px; color: #c9d3db;
  background:
    linear-gradient(rgba(255,255,255,.045) 1px, transparent 1px) 0 0 / 32px 32px,
    linear-gradient(90deg, rgba(255,255,255,.045) 1px, transparent 1px) 0 0 / 32px 32px,
    linear-gradient(var(--ink), var(--ink)) top / 100% calc(100% - 200px) no-repeat,
    var(--paper);
}
.hero-dark h1 { color: #fff; max-width: 14ch; font-size: clamp(2.6rem, 6vw, 4.6rem); line-height: 1.02; }
.hero-dark h1 em { font-style: normal; color: #f2763a; }
.hero-dark .lede { margin-top: 26px; color: #c9d3db; max-width: 58ch; }
.hero-dark .actions { margin-top: 34px; }
.hero-dark .eyebrow { background: rgba(255,255,255,.04); border-color: #3a4754; color: #e4e9ee; }
.hero-dark .eyebrow:hover { border-color: #8696a5; color: #fff; }
.hero-meta { list-style: none; display: flex; flex-wrap: wrap; gap: 6px 22px; margin-top: 26px; font-size: .93rem; color: #9fb0bf; }
.hero-meta li { position: relative; padding-left: 16px; }
.hero-meta li::before { content: ""; position: absolute; left: 0; top: .55em; width: 7px; height: 7px; border: 1.5px solid #f2763a; transform: rotate(45deg); }
.hero-stage { margin-top: 64px; }
.hero-stage .demo { border-radius: 10px; box-shadow: 0 40px 80px -30px rgba(0,0,0,.6), 0 0 0 1px rgba(255,255,255,.08); }
.hero-caption { text-align: center; font-size: .88rem; color: var(--muted); padding: 14px 16px 0; }
.link-on-dark { color: #fff; }
.link-on-dark:hover { color: #f2763a; }

/* dải tóm tắt bốn ý */
.proof { padding-block: 56px 8px; }
.proof ul { list-style: none; display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); border-block: 1px solid var(--line); }
.proof li { padding: 26px 24px; display: grid; gap: 6px; align-content: start; }
.proof li + li { border-left: 1px solid var(--line); }
.proof b { font: 600 1.45rem/1.1 var(--display); color: var(--ink); }
.proof span { font-size: .97rem; color: var(--muted); line-height: 1.45; }

/* bốn chương: đọc, markup, kiểm tra, revision */
.chapters { display: grid; gap: 104px; }
.chapter { display: grid; grid-template-columns: minmax(0, 5fr) minmax(0, 6fr); gap: 72px; align-items: center; }
.chapter.flip .chapter-copy { order: 2; }
.chapter h3 { font-size: clamp(1.65rem, 2.5vw, 2.1rem); line-height: 1.12; }
.chapter-copy > p:not(.kicker) { margin-top: 16px; font-size: 1.08rem; }
.chapter .figure, .detail .figure { box-shadow: 0 18px 40px -24px rgba(24,33,43,.35); }

/* đầu ra */
.deliverables { list-style: none; display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 16px; }
.deliverables li { background: #fff; border: 1px solid var(--line); border-radius: 6px; padding: 22px 22px 24px; border-top: 3px solid var(--ink); }
.deliverables h3 { font-size: 1.2rem; }
.deliverables p { margin-top: 6px; font-size: .98rem; line-height: 1.5; }

/* không gian làm việc */
.split { display: grid; grid-template-columns: minmax(0, 5fr) minmax(0, 6fr); gap: 72px; align-items: start; }
.split .section-head { margin-bottom: 0; }
.cards { list-style: none; display: grid; gap: 28px; padding-top: 8px; }
.cards li { border-left: 3px solid var(--redline); padding: 2px 0 2px 22px; }
.cards h3 { font-size: 1.25rem; }
.cards p { margin-top: 6px; font-size: 1rem; }

/* lời mời cuối trang */
.cta-band { padding-block: 88px; }
.cta-box { display: grid; grid-template-columns: minmax(0, 1fr) auto; gap: 40px; align-items: center; padding: 48px 52px; border-radius: 10px; background: var(--sheet); border: 1px solid var(--line); box-shadow: inset 4px 0 0 var(--redline); }
.cta-box h2 { font-size: clamp(1.8rem, 3vw, 2.4rem); }
.cta-box p { margin-top: 12px; max-width: 60ch; }
.section-head .kicker + h2 { margin-top: 0; }

/* trang Tính năng: nhóm theo công việc, hình đặt cạnh chữ */
.side-group { margin: 18px 0 4px 16px; font: 600 .74rem/1.2 var(--text); letter-spacing: .1em; text-transform: uppercase; color: var(--muted); }
.side-group:first-child { margin-top: 0; }
.group-title { margin-top: 56px; padding-top: 18px; border-top: 2px solid var(--ink); font: 600 .85rem/1.2 var(--text); letter-spacing: .12em; text-transform: uppercase; color: var(--ink); }
.group-title:first-child { margin-top: 0; }
.details .detail { border-bottom: 0; padding-block: 40px; }
.details .detail + .detail { border-top: 1px solid var(--line); }
.detail h2 { margin-top: 0; }
.detail-copy > p:not(.kicker) { margin-top: 14px; font-size: 1.06rem; max-width: 65ch; }
.page-intro h1 { max-width: 24ch; }
.detail.has-fig { display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 1fr); gap: 40px; align-items: start; }
.detail.has-fig .figure { margin-top: 6px; max-width: none; }

@media (max-width: 1100px) {
  .detail.has-fig { grid-template-columns: 1fr; gap: 0; }
  .detail.has-fig .figure { margin-top: 28px; max-width: 640px; }
}
@media (max-width: 900px) {
  .chapter, .split { grid-template-columns: 1fr; gap: 32px; }
  .chapter.flip .chapter-copy { order: 0; }
  .chapters { gap: 72px; }
  .proof ul { grid-template-columns: 1fr 1fr; }
  .proof li:nth-child(3) { border-left: 0; }
  .proof li:nth-child(n+3) { border-top: 1px solid var(--line); }
  .deliverables { grid-template-columns: 1fr 1fr; }
  .cta-box { grid-template-columns: 1fr; padding: 36px 28px; }
  .hero-dark { background:
    linear-gradient(rgba(255,255,255,.045) 1px, transparent 1px) 0 0 / 32px 32px,
    linear-gradient(90deg, rgba(255,255,255,.045) 1px, transparent 1px) 0 0 / 32px 32px,
    linear-gradient(var(--ink), var(--ink)) top / 100% calc(100% - 120px) no-repeat,
    var(--paper); }
}
@media (max-width: 600px) {
  .hero-dark { padding-top: 56px; }
  .hero-stage { margin-top: 44px; }
  .proof ul { grid-template-columns: 1fr; }
  .proof li + li { border-left: 0; border-top: 1px solid var(--line); }
  .proof li { padding: 20px 4px; }
  .deliverables { grid-template-columns: 1fr; }
  .chapters { gap: 56px; }
}
.release-table th { width: 26%; }
.release-date { display: block; font: 400 .88rem/1.3 var(--text); color: var(--muted); margin-top: 4px; }
