/* NanoHash site: shared styles for nanohash.html and nanopdf.html */

/* ---------- Tokens ---------- */
:root {
  --ink: #13235a;
  --ink-2: #1d3175;
  --text: #2b3553;
  --muted: #5b6784;
  --bg: #ffffff;
  --alt: #f5f7fb;
  --line: #e3e8f1;
  --lime: #d9ff5b;
  --lime-soft: #f3ffd0;
  --tidy: #2a78f0;
  --tidy-soft: #eaf2ff;
  --radius: 12px;
  --radius-lg: 18px;
  --shadow: 0 1px 2px rgba(19, 35, 90, .06), 0 18px 40px -12px rgba(19, 35, 90, .18);
  --font: "Inter", "Noto Sans Thai", system-ui, -apple-system, "Segoe UI", sans-serif;
  --wrap: 1200px;
  --gutter: 32px;
  --ease: cubic-bezier(.2, .8, .2, 1);
}

/* ---------- Base ---------- */
*, *::before, *::after { box-sizing: border-box; }
html { scroll-behavior: smooth; scroll-padding-top: 88px; -webkit-text-size-adjust: 100%; }
body { margin: 0; background: var(--bg); color: var(--text); font: 400 17px/1.6 var(--font); -webkit-font-smoothing: antialiased; text-rendering: optimizeLegibility; }
.nh-i18n-pending body { visibility: hidden; }
img { display: block; max-width: 100%; height: auto; }
a { color: inherit; }
h1, h2, h3 { margin: 0; color: var(--ink); font-weight: 700; text-wrap: balance; }
h1 { font-size: clamp(40px, 5.2vw, 64px); line-height: 1.08; letter-spacing: -.028em; }
h2 { font-size: clamp(30px, 3.6vw, 44px); line-height: 1.12; letter-spacing: -.022em; }
h3 { font-size: 20px; line-height: 1.3; letter-spacing: -.01em; }
p { margin: 0; }
ul { margin: 0; padding: 0; list-style: none; }
:lang(th) body { line-height: 1.8; }
:lang(th) h1 { font-size: clamp(34px, 4.2vw, 52px); line-height: 1.3; letter-spacing: 0; }
.nh-line { display: inline-block; }
:lang(th) h2 { font-size: clamp(28px, 3.2vw, 40px); line-height: 1.35; letter-spacing: 0; }
:lang(th) h3 { line-height: 1.45; letter-spacing: 0; }
:focus-visible { outline: 2px solid var(--ink); outline-offset: 3px; border-radius: 4px; }

.nh-sr { position: absolute; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; }
.nh-skip { position: absolute; left: 16px; top: -60px; z-index: 100; padding: 10px 16px; border-radius: 8px; background: var(--ink); color: #fff; font-weight: 600; text-decoration: none; }
.nh-skip:focus { top: 12px; }

/* ---------- Layout ---------- */
.nh-wrap { max-width: var(--wrap); margin: 0 auto; padding: 0 var(--gutter); }
.nh-section { padding: 112px 0; }
.nh-section--alt { background: var(--alt); }
.nh-section-head { max-width: 720px; margin-bottom: 56px; }
.nh-section-head--center { margin-left: auto; margin-right: auto; text-align: center; }
.nh-section-head h2 { margin-top: 16px; }
.nh-section-head p { margin-top: 18px; color: var(--muted); font-size: 18px; text-wrap: pretty; }

/* ---------- Label pill ---------- */
.nh-label { display: inline-flex; align-items: center; gap: 8px; padding: 5px 12px 5px 10px; border-radius: 999px; background: var(--lime); color: var(--ink); font-size: 13px; font-weight: 600; line-height: 1.4; letter-spacing: .01em; }
.nh-label::before { content: ""; width: 6px; height: 6px; border-radius: 50%; background: var(--ink); }

/* ---------- Buttons ---------- */
.nh-btn { display: inline-flex; align-items: center; justify-content: center; gap: 10px; min-height: 48px; padding: 12px 22px; border: 1.5px solid transparent; border-radius: 999px; font: 600 16px/1.2 var(--font); text-decoration: none; cursor: pointer; transition: background-color .2s var(--ease), border-color .2s var(--ease), transform .2s var(--ease); }
.nh-btn:hover { transform: translateY(-1px); }
.nh-btn:active { transform: translateY(0); }
.nh-btn--primary { background: var(--ink); color: #fff; }
.nh-btn--primary:hover { background: var(--ink-2); }
.nh-btn--secondary { border-color: #c9d2e3; background: #fff; color: var(--ink); }
.nh-btn--secondary:hover { border-color: var(--ink); }
.nh-btn--lime { background: var(--lime); color: var(--ink); }
.nh-btn--lime:hover { background: #cdf53f; }
.nh-btn--ghost-light { border-color: rgba(255, 255, 255, .35); color: #fff; }
.nh-btn--ghost-light:hover { border-color: #fff; }
.nh-btn--small { min-height: 40px; padding: 8px 16px; font-size: 14px; }
.nh-btn svg { width: 18px; height: 18px; flex: none; }
.nh-actions { display: flex; flex-wrap: wrap; gap: 12px; }

/* ---------- Header ---------- */
.nh-header { position: sticky; top: 0; z-index: 50; background: rgba(255, 255, 255, .92); border-bottom: 1px solid var(--line); backdrop-filter: saturate(1.4) blur(10px); -webkit-backdrop-filter: saturate(1.4) blur(10px); }
.nh-header .nh-wrap { display: flex; align-items: center; gap: 32px; height: 72px; }
.nh-brand { display: inline-flex; align-items: center; gap: 10px; color: var(--ink); font-size: 18px; font-weight: 700; letter-spacing: -.01em; text-decoration: none; }
.nh-brand img { width: 36px; height: 36px; }
.nh-brand-product { display: inline-flex; align-items: center; gap: 12px; color: var(--ink); font-size: 18px; font-weight: 700; white-space: nowrap; }
.nh-brand-product::before { content: ""; width: 1px; height: 22px; background: var(--line); }
.nh-nav { display: flex; gap: 28px; margin-left: auto; }
.nh-nav a { position: relative; color: var(--text); font-size: 15px; font-weight: 500; text-decoration: none; }
.nh-nav a::after { content: ""; position: absolute; left: 0; right: 0; bottom: -6px; height: 2px; border-radius: 2px; background: var(--ink); transform: scaleX(0); transition: transform .2s var(--ease); }
.nh-nav a:hover { color: var(--ink); }
.nh-nav a:hover::after { transform: scaleX(1); }
.nh-header-tools { display: flex; align-items: center; gap: 12px; }
.nh-lang { display: inline-flex; padding: 3px; border: 1px solid var(--line); border-radius: 999px; background: #fff; }
.nh-lang button { min-width: 44px; min-height: 34px; padding: 0 10px; border: 0; border-radius: 999px; background: transparent; color: var(--muted); font: 600 13px/1 var(--font); cursor: pointer; }
.nh-lang button[aria-pressed="true"] { background: var(--ink); color: #fff; }

/* ---------- Home hero ---------- */
.nh-hero { padding: 88px 0 72px; overflow: hidden; }
.nh-hero .nh-wrap { display: grid; grid-template-columns: minmax(0, 1.08fr) minmax(0, 1fr); gap: 56px; align-items: center; }
.nh-hero h1 { margin-top: 20px; }
.nh-lead { max-width: 560px; margin-top: 22px; color: var(--muted); font-size: 19px; text-wrap: pretty; }
.nh-hero .nh-actions { margin-top: 34px; }
.nh-hero-shots { position: relative; padding: 0 0 18% 0; }
.nh-hero-shots::before { content: ""; position: absolute; inset: 8% -6% -4% 10%; border-radius: 28px; background: linear-gradient(135deg, var(--tidy-soft), var(--lime-soft)); }
.nh-shot { position: relative; overflow: hidden; border: 1px solid var(--line); border-radius: var(--radius); background: #fff; box-shadow: var(--shadow); }
.nh-hero-shots .nh-shot:first-child { width: 84%; }
.nh-hero-shots .nh-shot:last-child { position: absolute; right: 0; bottom: 0; width: 70%; }

/* ---------- Facts strip ---------- */
.nh-facts { padding: 8px 0 32px; }
.nh-facts ul { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); border: 1px solid var(--line); border-radius: var(--radius-lg); background: #fff; box-shadow: 0 1px 2px rgba(19, 35, 90, .04), 0 20px 40px -24px rgba(19, 35, 90, .22); }
.nh-facts li { display: flex; align-items: center; gap: 14px; padding: 22px 24px; }
.nh-facts li + li { border-left: 1px solid var(--line); }
.nh-fact-cards strong { display: block; color: var(--ink); font-size: 16px; font-weight: 600; line-height: 1.4; white-space: nowrap; }
.nh-fact-cards small { display: block; margin-top: 3px; color: var(--muted); font-size: 14px; font-weight: 400; line-height: 1.45; }
.nh-fact-icon { display: grid; flex: none; place-items: center; width: 44px; height: 44px; border-radius: 12px; background: var(--ink); color: var(--lime); transition: transform .25s var(--ease); }
.nh-facts li:hover .nh-fact-icon { transform: translateY(-2px) rotate(-4deg); }
.nh-fact-icon svg { width: 22px; height: 22px; fill: none; stroke: currentColor; stroke-width: 1.8; stroke-linecap: round; stroke-linejoin: round; }
.nh-check { flex: none; width: 22px; height: 22px; padding: 4px; border-radius: 50%; background: var(--lime); color: var(--ink); }

/* ---------- Products ---------- */
.nh-products { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 28px; }
.nh-product { --accent: var(--ink); --accent-soft: var(--lime-soft); display: flex; flex-direction: column; overflow: hidden; border: 1px solid var(--line); border-radius: var(--radius-lg); background: #fff; transition: box-shadow .25s var(--ease), transform .25s var(--ease); }
.nh-product:hover { box-shadow: var(--shadow); transform: translateY(-3px); }
.nh-product--tidy { --accent: var(--tidy); --accent-soft: var(--tidy-soft); }
.nh-product-media { padding: 36px 36px 0; background: var(--accent-soft); }
.nh-product-media .nh-shot { border-bottom: 0; border-radius: var(--radius) var(--radius) 0 0; box-shadow: 0 -1px 0 var(--line), 0 18px 40px -18px rgba(19, 35, 90, .3); }
.nh-product-body { display: flex; flex: 1; flex-direction: column; padding: 32px 36px 36px; }
.nh-kicker { color: var(--accent); font-size: 14px; font-weight: 600; }
.nh-product h3 { margin-top: 6px; font-size: 30px; letter-spacing: -.02em; }
.nh-tagline { margin-top: 4px; color: var(--muted); font-size: 15px; font-weight: 600; }
.nh-product-body > p:not(.nh-kicker):not(.nh-tagline) { margin-top: 16px; }
.nh-points { display: grid; gap: 10px; margin: 22px 0 30px; }
.nh-points li { display: grid; grid-template-columns: 22px 1fr; gap: 12px; align-items: start; font-size: 16px; }
.nh-points .nh-check { margin-top: 2px; }
.nh-product--tidy .nh-check { background: var(--tidy-soft); color: var(--tidy); }
.nh-product .nh-actions { margin-top: auto; }

/* ---------- Principles ---------- */
.nh-principles { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 24px; }
.nh-principle { padding: 32px; border: 1px solid var(--line); border-radius: var(--radius-lg); background: #fff; }
.nh-num { display: inline-grid; place-items: center; min-width: 40px; height: 28px; padding: 0 8px; border-radius: 8px; background: var(--ink); color: var(--lime); font-size: 13px; font-weight: 700; font-variant-numeric: tabular-nums; }
.nh-principle h3 { margin-top: 22px; }
.nh-principle p { margin-top: 10px; color: var(--muted); font-size: 16px; }

/* ---------- About ---------- */
.nh-about { display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 1.2fr); gap: 64px; align-items: start; }
.nh-about h2 { margin-top: 16px; }
.nh-about { align-items: center; }
.nh-about-text { max-width: 520px; margin-top: 20px; color: var(--muted); font-size: 18px; }

/* ---------- Navy band (contact / trial) ---------- */
.nh-band { padding: 104px 0; background: var(--ink); color: #d7def0; text-align: center; }
.nh-band .nh-label { background: var(--lime); }
.nh-band h2 { max-width: 780px; margin: 20px auto 0; color: #fff; }
.nh-band p { max-width: 620px; margin: 18px auto 0; font-size: 18px; }
.nh-band .nh-actions { justify-content: center; margin-top: 36px; }
.nh-band a:not(.nh-btn) { color: #fff; text-underline-offset: 3px; }

/* ---------- About bento ---------- */
.nh-bento { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 14px; }
.nh-tile { position: relative; display: flex; flex-direction: column; justify-content: space-between; gap: 18px; min-height: 132px; padding: 24px; overflow: hidden; border: 1px solid var(--line); border-radius: 24px; background: var(--alt); transition: transform .3s var(--ease), box-shadow .3s var(--ease); }
.nh-tile:hover { transform: translateY(-4px) rotate(-.4deg); box-shadow: 0 24px 40px -24px rgba(19, 35, 90, .35); }
.nh-tile--wide { grid-column: 1 / -1; }
.nh-tile-k { color: var(--muted); font-size: 13px; font-weight: 600; letter-spacing: .02em; }
.nh-tile strong { color: var(--ink); font-size: clamp(22px, 2.2vw, 28px); font-weight: 700; line-height: 1.2; letter-spacing: -.02em; }
:lang(th) .nh-tile strong { letter-spacing: 0; line-height: 1.35; }
.nh-tile--ink { border-color: var(--ink); background: var(--ink); }
.nh-tile--ink::after { content: ""; position: absolute; right: -60px; top: -80px; width: 240px; height: 240px; border-radius: 50%; background: radial-gradient(circle, rgba(217, 255, 91, .35), transparent 65%); }
.nh-tile--ink .nh-tile-k { color: #aeb9d6; }
.nh-tile--lime { border-color: var(--lime); background: var(--lime); }
.nh-tile--lime .nh-tile-k { color: var(--ink-2); }
.nh-tile--soft { background: linear-gradient(135deg, var(--tidy-soft), var(--lime-soft)); }
.nh-tile-products { position: relative; z-index: 1; display: flex; flex-wrap: wrap; gap: 10px; }
.nh-chip { display: inline-flex; align-items: center; gap: 10px; padding: 10px 18px 10px 12px; border-radius: 999px; background: rgba(255, 255, 255, .1); color: #fff; font-size: 18px; font-weight: 700; text-decoration: none; transition: background-color .2s var(--ease); }
.nh-chip:hover { background: rgba(255, 255, 255, .18); }
.nh-chip i { width: 14px; height: 14px; border-radius: 5px; }
.nh-chip--tidy i { background: var(--tidy); }
.nh-chip--pdf i { background: var(--lime); }

.nh-hl { position: relative; z-index: 0; white-space: nowrap; }
.nh-hl::after { content: ""; position: absolute; z-index: -1; left: -4px; right: -4px; bottom: .08em; height: .38em; border-radius: 6px; background: var(--lime); transform: rotate(-1.5deg); }
.nh-about-products { margin-top: 28px; }
.nh-chip--light { background: var(--alt); border: 1px solid var(--line); color: var(--ink); }
.nh-chip--light:hover { background: #fff; border-color: #c9d2e3; }
.nh-stats .nh-tile { min-height: 168px; justify-content: space-between; }
.nh-stat { display: flex; align-items: baseline; gap: 8px; font-size: clamp(56px, 6vw, 80px) !important; font-weight: 800; line-height: 1 !important; letter-spacing: -.04em !important; font-variant-numeric: tabular-nums; }
.nh-stat small { font-size: 18px; font-weight: 700; letter-spacing: 0; }
.nh-stats .nh-tile-k { font-size: 15px; line-height: 1.45; }
.nh-tile--ink .nh-stat { color: var(--lime); }
.nh-tile--ink .nh-stat small { color: #fff; }
/* ---------- Contact band ---------- */
.nh-band#contact { position: relative; overflow: hidden; text-align: left; }
.nh-band#contact::before, .nh-band#contact::after { content: ""; position: absolute; border-radius: 50%; filter: blur(10px); pointer-events: none; }
.nh-band#contact::before { left: -120px; bottom: -160px; width: 420px; height: 420px; background: radial-gradient(circle, rgba(42, 120, 240, .45), transparent 65%); }
.nh-band#contact::after { right: -80px; top: -140px; width: 460px; height: 460px; background: radial-gradient(circle, rgba(217, 255, 91, .25), transparent 65%); }
.nh-contact { position: relative; z-index: 1; display: grid; grid-template-columns: minmax(0, 1.15fr) minmax(0, 1fr); gap: 64px; align-items: center; }
.nh-band#contact h2 { max-width: 620px; margin: 18px 0 0; }
.nh-topics { display: flex; flex-wrap: wrap; gap: 10px; margin-top: 28px; }
.nh-topics li { padding: 9px 16px; border: 1px solid rgba(255, 255, 255, .18); border-radius: 999px; background: rgba(255, 255, 255, .05); color: #e3e9f7; font-size: 15px; }
.nh-contact-card { padding: 36px; border: 1px solid rgba(255, 255, 255, .16); border-radius: 28px; background: linear-gradient(160deg, rgba(255, 255, 255, .12), rgba(255, 255, 255, .03)); box-shadow: 0 30px 60px -30px rgba(0, 0, 0, .5); backdrop-filter: blur(8px); -webkit-backdrop-filter: blur(8px); }
.nh-band#contact .nh-contact-kicker { margin: 0; color: #aeb9d6; font-size: 15px; }
.nh-band#contact .nh-contact-email { display: block; margin: 6px 0 28px; color: #fff; font-size: clamp(24px, 2.6vw, 32px); font-weight: 700; letter-spacing: -.02em; text-decoration: none; overflow-wrap: anywhere; }
.nh-band#contact .nh-contact-email:hover { color: var(--lime); }
.nh-contact-actions { display: flex; flex-wrap: wrap; gap: 10px; }
.nh-contact-actions .nh-btn--lime { flex: 1 1 auto; }
.nh-copy { background: transparent; }
.nh-copy .nh-copy-ok, .nh-copy.is-copied .nh-copy-i { display: none; }
.nh-copy.is-copied .nh-copy-ok { display: block; color: var(--lime); }
.nh-copy.is-copied { border-color: var(--lime); }
/* ---------- Footer ---------- */
.nh-footer { padding: 48px 0; border-top: 1px solid var(--line); color: var(--muted); font-size: 14px; }
.nh-footer .nh-wrap { display: flex; flex-wrap: wrap; align-items: center; gap: 16px 32px; }
.nh-footer nav { display: flex; flex-wrap: wrap; gap: 8px 24px; margin-left: auto; }
.nh-footer nav a { color: var(--text); font-weight: 500; text-decoration: none; }
.nh-footer nav a:hover { color: var(--ink); text-decoration: underline; text-underline-offset: 3px; }
.nh-footer-meta { display: flex; flex-wrap: wrap; gap: 4px 24px; width: 100%; padding-top: 20px; border-top: 1px solid var(--line); }

/* ---------- Product hero (NanoPDF) ---------- */
.nh-phero { padding: 88px 0 0; text-align: center; overflow: hidden; }
.nh-phero h1 { max-width: 880px; margin: 20px auto 0; }
.nh-phero .nh-lead { margin: 22px auto 0; max-width: 680px; }
.nh-phero .nh-actions { justify-content: center; margin-top: 34px; }
.nh-meta { margin-top: 18px; color: var(--muted); font-size: 14px; }
.nh-phero-shot { position: relative; max-width: 1040px; margin: 64px auto 0; padding: 0 var(--gutter); }
.nh-phero-shot::before { content: ""; position: absolute; left: 0; right: 0; top: 12%; bottom: 0; border-radius: 32px 32px 0 0; background: linear-gradient(180deg, var(--lime-soft), var(--lime) 180%); }
.nh-phero-shot .nh-shot { border-bottom: 0; border-radius: var(--radius) var(--radius) 0 0; }

/* ---------- Modes grid ---------- */
.nh-modes { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 16px; }
.nh-mode { padding: 26px; border: 1px solid var(--line); border-radius: var(--radius); background: #fff; transition: border-color .2s var(--ease); }
.nh-mode:hover { border-color: #c9d2e3; }
.nh-icon { display: grid; place-items: center; width: 44px; height: 44px; border-radius: 11px; background: var(--ink); color: var(--lime); }
.nh-icon svg { width: 22px; height: 22px; fill: none; stroke: currentColor; stroke-width: 1.8; stroke-linecap: round; stroke-linejoin: round; }
.nh-mode h3 { margin-top: 18px; font-size: 18px; }
.nh-mode p { margin-top: 6px; color: var(--muted); font-size: 15px; }
.nh-modes--3 { grid-template-columns: repeat(3, minmax(0, 1fr)); }
.nh-modes--3 .nh-mode--cta { grid-column: 1 / -1; flex-direction: row; align-items: center; }
.nh-page-tidy .nh-phero-shot::before { background: linear-gradient(180deg, var(--tidy-soft), #bcd4ff 180%); }
.nh-mode--cta { display: flex; flex-direction: column; justify-content: space-between; gap: 24px; border-color: var(--ink); background: var(--ink); text-decoration: none; }
.nh-mode--cta:hover { border-color: var(--ink-2); background: var(--ink-2); }
.nh-mode--cta h3 { margin-top: 0; color: #fff; font-size: 20px; }
.nh-mode-link { display: inline-flex; align-items: center; gap: 8px; color: var(--lime); font-weight: 600; }
.nh-mode-link svg { width: 18px; height: 18px; transition: transform .2s var(--ease); }
.nh-mode--cta:hover .nh-mode-link svg { transform: translateX(3px); }

/* ---------- Split rows ---------- */
.nh-splits { display: grid; gap: 104px; }
.nh-split { display: grid; grid-template-columns: minmax(0, .9fr) minmax(0, 1.1fr); gap: 64px; align-items: center; }
.nh-split--reverse .nh-split-copy { order: 2; }
.nh-split h3 { font-size: clamp(24px, 2.6vw, 32px); letter-spacing: -.02em; }
:lang(th) .nh-split h3 { letter-spacing: 0; line-height: 1.4; }
.nh-split-copy h2 { margin-top: 16px; }
.nh-split-copy > p { margin-top: 16px; color: var(--muted); font-size: 18px; }
.nh-checks { display: grid; gap: 12px; margin-top: 26px; }
.nh-checks li { display: grid; grid-template-columns: 22px 1fr; gap: 12px; color: var(--ink); font-weight: 600; }
.nh-checks .nh-check { margin-top: 2px; }

/* ---------- Cards row (privacy) ---------- */
.nh-cards { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 24px; }

/* ---------- FAQ ---------- */
.nh-faq { max-width: 820px; margin: 0 auto; border-top: 1px solid var(--line); }
.nh-faq details { border-bottom: 1px solid var(--line); }
.nh-faq summary { display: flex; align-items: center; justify-content: space-between; gap: 24px; padding: 24px 4px; color: var(--ink); font-size: 18px; font-weight: 600; cursor: pointer; list-style: none; }
.nh-faq summary::-webkit-details-marker { display: none; }
.nh-faq summary::after { content: ""; flex: none; width: 12px; height: 12px; margin-right: 6px; border-right: 2px solid var(--ink); border-bottom: 2px solid var(--ink); transform: translateY(-3px) rotate(45deg); transition: transform .2s var(--ease); }
.nh-faq details[open] summary::after { transform: translateY(3px) rotate(-135deg); }
.nh-faq details p { padding: 0 4px 24px; color: var(--muted); }

/* ---------- Install guide ---------- */
.nh-install-hero { padding-bottom: 88px; }
.nh-dl-cards { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 20px; max-width: 880px; margin-top: 48px; text-align: left; }
.nh-dl-card { display: flex; flex-direction: column; gap: 14px; padding: 28px; border: 1px solid var(--line); border-radius: var(--radius-lg); background: #fff; box-shadow: 0 1px 2px rgba(19, 35, 90, .04), 0 20px 40px -24px rgba(19, 35, 90, .22); }
.nh-dl-card p { flex: 1; color: var(--muted); font-size: 15px; }
.nh-dl-card .nh-btn { align-self: flex-start; }
.nh-dl-head { display: flex; align-items: center; gap: 10px; }
.nh-dl-head h2 { font-size: 22px; letter-spacing: -.01em; }
.nh-dl-dot { width: 14px; height: 14px; border-radius: 5px; }
.nh-dl-dot--tidy { background: var(--tidy); }
.nh-dl-dot--pdf { background: var(--lime); box-shadow: inset 0 0 0 1px rgba(19, 35, 90, .2); }
.nh-split-copy .nh-num + h3 { margin-top: 16px; }
.nh-shot--ring { justify-self: center; width: 100%; max-width: 529px; background: #c42b1c; }
.nh-shot--ring img { width: 100%; }
.nh-ring { position: absolute; border: 3px solid var(--lime); border-radius: 10px; box-shadow: 0 0 0 4px rgba(19, 35, 90, .55); animation: nhRing 1.8s ease-in-out infinite; pointer-events: none; }
.nh-ring--soft { border-style: dashed; animation: none; box-shadow: none; }
@keyframes nhRing { 50% { box-shadow: 0 0 0 9px rgba(217, 255, 91, .35); } }
.nh-code { display: block; margin-top: 14px; padding: 12px 14px; overflow-x: auto; border-radius: 10px; background: var(--ink); color: #e3e9f7; font: 13px/1.5 ui-monospace, "Cascadia Code", Consolas, monospace; white-space: nowrap; }
.nh-links { margin-top: 12px !important; font-size: 14px !important; }
.nh-links a { color: var(--ink); font-weight: 600; text-underline-offset: 3px; }
.nh-warn { margin-top: 32px; padding: 28px 32px; border: 1px solid #f3c9c4; border-radius: var(--radius-lg); background: #fff5f4; }
.nh-warn h3 { color: #9b2317; }
.nh-warn ul { display: grid; gap: 8px; margin-top: 14px; padding-left: 20px; list-style: disc; color: var(--text); }
.nh-warn p { margin-top: 16px; color: var(--muted); }
.nh-warn a { color: var(--ink); font-weight: 600; }
.nh-meta a { color: var(--ink); font-weight: 600; text-underline-offset: 3px; }
/* ---------- Motion ---------- */
.nh-js .nh-reveal { opacity: 0; transform: translateY(16px); transition: opacity .5s var(--ease), transform .5s var(--ease); }
.nh-js .nh-reveal.is-in { opacity: 1; transform: none; }
@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  .nh-js .nh-reveal { opacity: 1; transform: none; transition: none; }
  .nh-ring { animation: none; }
  .nh-btn, .nh-product, .nh-nav a::after, .nh-fact-icon, .nh-tile { transition: none; }
}

/* ---------- Responsive ---------- */
@media (max-width: 1100px) {
  .nh-modes, .nh-modes--3 { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .nh-modes--3 .nh-mode--cta { grid-column: auto; flex-direction: column; align-items: flex-start; }
}
@media (max-width: 1080px) {
  .nh-header--product .nh-nav { display: none; }
  .nh-header--product .nh-header-tools { margin-left: auto; }
}
@media (max-width: 960px) {
  .nh-section { padding: 88px 0; }
  .nh-hero .nh-wrap, .nh-products, .nh-principles, .nh-about, .nh-contact, .nh-split, .nh-cards { grid-template-columns: minmax(0, 1fr); }
  .nh-hero { padding-top: 64px; }
  .nh-hero .nh-wrap { gap: 56px; }
  .nh-hero-shots { max-width: 640px; }
  .nh-facts ul { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .nh-facts li:nth-child(3) { border-left: 0; }
  .nh-facts li:nth-child(n+3) { border-top: 1px solid var(--line); }
  .nh-about, .nh-contact { gap: 40px; }
  .nh-split { gap: 36px; }
  .nh-split--reverse .nh-split-copy { order: 0; }
  .nh-splits { gap: 80px; }
}
@media (max-width: 760px) {
  .nh-header .nh-nav { display: none; }
  .nh-header .nh-header-tools { margin-left: auto; }
  .nh-footer nav { margin-left: 0; width: 100%; }
}
@media (max-width: 600px) {
  :root { --gutter: 20px; }
  body { font-size: 16px; }
  .nh-header .nh-wrap { height: 64px; gap: 12px; }
  .nh-brand { font-size: 17px; }
  .nh-brand-product { gap: 10px; font-size: 17px; }
  .nh-section { padding: 72px 0; }
  .nh-section-head { margin-bottom: 40px; }
  .nh-lead { font-size: 17px; }
  .nh-actions .nh-btn { flex: 1 1 auto; }
  .nh-product-media { padding: 24px 24px 0; }
  .nh-product-body { padding: 26px 24px 28px; }
  .nh-product h3 { font-size: 26px; }
  .nh-principle { padding: 26px; }
  .nh-modes { grid-template-columns: minmax(0, 1fr); }
  .nh-dl-cards { grid-template-columns: minmax(0, 1fr); }
  .nh-warn { padding: 22px 20px; }
  .nh-about-text { font-size: 17px; }
  .nh-tile { min-height: 112px; padding: 20px; border-radius: 20px; }
  .nh-tile strong { font-size: 19px; }
  .nh-stats .nh-tile { min-height: 136px; }
  .nh-stat { font-size: 52px !important; }
  .nh-bento { gap: 10px; }
  .nh-contact-card { padding: 26px; border-radius: 22px; }
  .nh-chip { font-size: 16px; }
  .nh-band { padding: 80px 0; }
  .nh-phero { padding-top: 56px; }
  .nh-phero-shot { margin-top: 44px; }
  .nh-faq summary { font-size: 17px; }
}
@media (max-width: 480px) {
  .nh-facts ul { grid-template-columns: minmax(0, 1fr); }
  .nh-facts li { padding: 16px 18px; }
  .nh-facts li + li { border-left: 0; border-top: 1px solid var(--line); }
}
@media (max-width: 420px) {
  .nh-header-cta { display: none; }
  .nh-header--product .nh-brand-name { position: absolute; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; }
}
