/* =====================================================================
   Nalog.nl Sign – portal styles
   Brand: teal #25bdb1 / dark teal #005e5c (nalog.nl) + gold accents
   ===================================================================== */
:root {
  --ns-teal: #25bdb1;
  --ns-teal-600: #1ea89d;
  --ns-teal-dark: #005e5c;
  --ns-teal-deep: #003938;
  --ns-teal-50: #e9f8f6;
  --ns-teal-100: #cdeeea;
  --ns-gold: #c9a227;
  --ns-gold-light: #f0d77a;
  --ns-gold-dark: #9a7a12;
  --ns-gold-grad: linear-gradient(135deg, #f3dc86 0%, #d4af37 45%, #a67c00 100%);
  --ns-ink: #0f1f1f;
  --ns-text: #2b3a3a;
  --ns-muted: #5f6f6f;
  --ns-line: #dfe7e6;
  --ns-bg: #f4f8f8;
  --ns-card: #ffffff;
  --ns-success: #1f9d55;
  --ns-danger: #d64545;
  --ns-warning: #e8a317;
  --ns-radius: 18px;
  --ns-radius-sm: 10px;
  --ns-shadow: 0 10px 30px rgba(0, 57, 56, .08), 0 2px 6px rgba(0, 57, 56, .05);
  --ns-shadow-lg: 0 24px 60px rgba(0, 57, 56, .16);
  --ns-font-head: 'Montserrat', system-ui, -apple-system, 'Segoe UI', sans-serif;
  --ns-font-body: 'Open Sans', system-ui, -apple-system, 'Segoe UI', sans-serif;
  --ns-ease: cubic-bezier(.22, .61, .36, 1);
  --ns-spring: cubic-bezier(.34, 1.56, .64, 1);
}

*, *::before, *::after { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; scroll-behavior: smooth; }
body.ns-body { margin: 0; font-family: var(--ns-font-body); color: var(--ns-text); background: var(--ns-bg); line-height: 1.6; font-size: 16px; min-height: 100vh; display: flex; flex-direction: column; overflow-x: hidden; }
.ns-main { flex: 1; position: relative; z-index: 1; }
h1, h2, h3, h4 { font-family: var(--ns-font-head); color: var(--ns-teal-deep); line-height: 1.2; margin: 0 0 .5em; font-weight: 700; }
p { margin: 0 0 1em; }
a { color: var(--ns-teal-dark); }
img, svg { max-width: 100%; height: auto; }
button { font: inherit; }
[hidden] { display: none !important; }
.ns-container { width: 100%; max-width: 1200px; margin: 0 auto; padding: 0 20px; }
.ns-narrow { max-width: 660px; }
.ns-h2 { font-size: 1.6rem; }
.ns-muted { color: var(--ns-muted); }

/* ---------- ambient background ---------- */
.ns-bg { position: fixed; inset: 0; z-index: 0; pointer-events: none; overflow: hidden; }
.ns-bg__orb { position: absolute; border-radius: 50%; filter: blur(70px); opacity: .32; animation: ns-orb 18s ease-in-out infinite alternate; will-change: transform; }
.ns-bg__orb--1 { width: 540px; height: 540px; background: #25bdb1; top: -180px; right: -140px; }
.ns-bg__orb--2 { width: 440px; height: 440px; background: #d4af37; bottom: -160px; left: -140px; animation-delay: -6s; opacity: .16; }
.ns-bg__orb--3 { width: 380px; height: 380px; background: #005e5c; top: 42%; left: 56%; animation-delay: -12s; opacity: .12; }
@keyframes ns-orb { 0% { transform: translate(0, 0) scale(1); } 50% { transform: translate(-40px, 30px) scale(1.08); } 100% { transform: translate(30px, -30px) scale(.96); } }

/* ---------- header ---------- */
.ns-header { position: sticky; top: 0; z-index: 50; background: rgba(255, 255, 255, .84); backdrop-filter: blur(14px); -webkit-backdrop-filter: blur(14px); border-bottom: 1px solid rgba(0, 57, 56, .06); }
.ns-header__inner { display: flex; align-items: center; justify-content: space-between; height: 72px; gap: 16px; }
.ns-brand { display: inline-flex; align-items: center; gap: 10px; text-decoration: none; color: var(--ns-teal-deep); }
.ns-brand__mark svg { display: block; }
.ns-brand__pen { transform-origin: 28px 28px; animation: ns-pen 4s ease-in-out infinite; }
@keyframes ns-pen { 0%, 100% { transform: rotate(0); } 50% { transform: rotate(-8deg) translate(-1px, 1px); } }
.ns-brand__text { font-family: var(--ns-font-head); font-weight: 800; font-size: 1.35rem; letter-spacing: -.02em; }
.ns-brand__dot { color: var(--ns-teal); }
.ns-brand__pill { font-family: var(--ns-font-head); font-size: .66rem; font-weight: 800; letter-spacing: .14em; text-transform: uppercase; padding: 4px 10px; border-radius: 999px; background: var(--ns-gold-grad); color: #3b2b00; position: relative; overflow: hidden; }
.ns-brand__pill::after { content: ""; position: absolute; inset: 0; background: linear-gradient(110deg, transparent 30%, rgba(255, 255, 255, .75) 50%, transparent 70%); transform: translateX(-120%); animation: ns-shine 5s ease-in-out infinite; }
@keyframes ns-shine { 0%, 60% { transform: translateX(-120%); } 80%, 100% { transform: translateX(120%); } }
.ns-brand__logo { height: 40px; width: auto; }
.ns-nav { display: flex; align-items: center; gap: 6px; }
.ns-nav__link { text-decoration: none; font-weight: 600; color: var(--ns-teal-dark); padding: 8px 12px; border-radius: 999px; transition: background .2s, color .2s; font-size: .95rem; }
.ns-nav__link:hover, .ns-nav__link.is-active { background: var(--ns-teal-50); }

/* ---------- language switcher ---------- */
.ns-lang { position: relative; }
.ns-lang__btn { display: inline-flex; align-items: center; gap: 6px; border: 1px solid var(--ns-line); background: #fff; border-radius: 999px; padding: 7px 12px; cursor: pointer; font-weight: 700; font-size: .85rem; color: var(--ns-teal-deep); transition: border-color .2s, box-shadow .2s; }
.ns-lang__btn:hover { border-color: var(--ns-teal); }
.ns-lang__flag { font-size: 1.05rem; line-height: 1; }
.ns-lang__chev { transition: transform .25s; }
.ns-lang.is-open .ns-lang__chev { transform: rotate(180deg); }
.ns-lang__menu { position: absolute; right: 0; top: calc(100% + 8px); min-width: 190px; background: #fff; border: 1px solid var(--ns-line); border-radius: 14px; box-shadow: var(--ns-shadow-lg); list-style: none; margin: 0; padding: 6px; opacity: 0; transform: translateY(-6px) scale(.98); pointer-events: none; transition: opacity .2s, transform .25s var(--ns-spring); z-index: 60; }
.ns-lang.is-open .ns-lang__menu { opacity: 1; transform: none; pointer-events: auto; }
.ns-lang__item { display: flex; align-items: center; gap: 10px; width: 100%; border: 0; background: none; padding: 9px 12px; border-radius: 10px; cursor: pointer; text-align: left; font-weight: 500; color: var(--ns-text); }
.ns-lang__item:hover { background: var(--ns-teal-50); }
.ns-lang__item.is-active { color: var(--ns-teal-dark); font-weight: 700; background: var(--ns-teal-50); }

/* ---------- buttons ---------- */
.ns-btn { --btn-fg: #fff; position: relative; display: inline-flex; align-items: center; justify-content: center; gap: 10px; border: 0; border-radius: 999px; padding: 12px 22px; font-family: var(--ns-font-head); font-weight: 700; font-size: .95rem; color: var(--btn-fg); background: var(--ns-teal); cursor: pointer; text-decoration: none; overflow: hidden; transition: transform .25s var(--ns-spring), box-shadow .25s, background .2s, opacity .2s; box-shadow: 0 6px 16px rgba(37, 189, 177, .28); white-space: nowrap; }
.ns-btn:hover { transform: translateY(-2px); box-shadow: 0 10px 24px rgba(37, 189, 177, .36); }
.ns-btn:active { transform: translateY(0) scale(.98); }
.ns-btn:disabled, .ns-btn.is-disabled { opacity: .5; cursor: not-allowed; transform: none; box-shadow: none; }
.ns-btn--primary { background: linear-gradient(135deg, #2ccfc2, #1ea89d); }
.ns-btn--gold { --btn-fg: #2c2000; background: var(--ns-gold-grad); box-shadow: 0 6px 16px rgba(201, 162, 39, .3); }
.ns-btn--gold:hover { box-shadow: 0 10px 24px rgba(201, 162, 39, .4); }
.ns-btn--dark { background: var(--ns-teal-deep); box-shadow: 0 6px 16px rgba(0, 57, 56, .25); }
.ns-btn--ghost { --btn-fg: var(--ns-teal-dark); background: transparent; box-shadow: none; border: 1.5px solid var(--ns-line); }
.ns-btn--ghost:hover { background: var(--ns-teal-50); border-color: var(--ns-teal); box-shadow: none; }
.ns-btn--lg { padding: 15px 28px; font-size: 1.02rem; }
.ns-btn--sm { padding: 8px 14px; font-size: .84rem; }
.ns-btn--block { width: 100%; }
.ns-btn .ns-ripple { position: absolute; border-radius: 50%; background: rgba(255, 255, 255, .45); transform: scale(0); animation: ns-ripple .6s ease-out forwards; pointer-events: none; }
@keyframes ns-ripple { to { transform: scale(4); opacity: 0; } }
.ns-btn.is-loading { color: transparent !important; pointer-events: none; }
.ns-btn.is-loading::after { content: ""; position: absolute; width: 20px; height: 20px; border-radius: 50%; border: 2.5px solid rgba(255, 255, 255, .4); border-top-color: #fff; animation: ns-spin .7s linear infinite; }
.ns-btn--ghost.is-loading::after { border-color: rgba(0, 94, 92, .25); border-top-color: var(--ns-teal-dark); }
@keyframes ns-spin { to { transform: rotate(360deg); } }
.ns-iconbtn { display: inline-flex; align-items: center; justify-content: center; width: 34px; height: 34px; border-radius: 10px; border: 1px solid var(--ns-line); background: #fff; color: var(--ns-teal-dark); cursor: pointer; text-decoration: none; font-weight: 700; transition: background .2s, border-color .2s; }
.ns-iconbtn:hover { background: var(--ns-teal-50); border-color: var(--ns-teal); }

/* ---------- cards ---------- */
.ns-card { background: var(--ns-card); border-radius: var(--ns-radius); box-shadow: var(--ns-shadow); padding: 32px; position: relative; border: 1px solid rgba(0, 57, 56, .05); }
.ns-card--entry { transition: transform .35s var(--ns-ease), box-shadow .35s; }
.ns-card--entry:hover { transform: translateY(-4px); box-shadow: var(--ns-shadow-lg); }
.ns-card--entry::before { content: ""; position: absolute; inset: 0; border-radius: inherit; padding: 1.5px; background: linear-gradient(135deg, rgba(37, 189, 177, .7), rgba(212, 175, 55, .6)); -webkit-mask: linear-gradient(#fff 0 0) content-box, linear-gradient(#fff 0 0); -webkit-mask-composite: xor; mask-composite: exclude; opacity: 0; transition: opacity .35s; pointer-events: none; }
.ns-card--entry:hover::before { opacity: 1; }
.ns-card__icon { width: 56px; height: 56px; border-radius: 16px; display: grid; place-items: center; margin-bottom: 18px; }
.ns-card__icon--teal { background: var(--ns-teal-50); color: var(--ns-teal-dark); }
.ns-card__icon--gold { background: #fbf3d9; color: #8a6a00; }
.ns-card__icon--red { background: #fdecec; color: var(--ns-danger); }
.ns-card h2 { font-size: 1.35rem; }
.ns-card--content { padding: 40px; }
.ns-card--center { text-align: center; }
.ns-prose img { border-radius: 12px; }

/* ---------- forms ---------- */
.ns-label { display: flex; align-items: center; font-weight: 600; font-size: .86rem; color: var(--ns-teal-deep); margin-bottom: 6px; }
.ns-label .ns-req { color: var(--ns-danger); margin-left: 3px; }
.ns-label .ns-opt { color: var(--ns-muted); font-weight: 400; margin-left: 6px; font-size: .78rem; }
.ns-field { margin-bottom: 14px; }
.ns-row { display: flex; gap: 12px; flex-wrap: wrap; }
.ns-row > .ns-field { flex: 1 1 calc(50% - 6px); min-width: 140px; }
.ns-input, .ns-select, .ns-textarea { width: 100%; border: 1.5px solid var(--ns-line); border-radius: 12px; padding: 11px 14px; font: inherit; color: var(--ns-ink); background: #fff; transition: border-color .2s, box-shadow .2s; outline: none; }
.ns-input:focus, .ns-select:focus, .ns-textarea:focus { border-color: var(--ns-teal); box-shadow: 0 0 0 4px rgba(37, 189, 177, .16); }
.ns-input[readonly] { background: #f6f9f9; color: var(--ns-muted); }
.ns-field.has-error .ns-input, .ns-field.has-error .ns-select { border-color: var(--ns-danger); box-shadow: 0 0 0 4px rgba(214, 69, 69, .12); }
.ns-hint { font-size: .8rem; color: var(--ns-muted); margin: 8px 0 0; }
.ns-error { font-size: .86rem; color: var(--ns-danger); margin: 8px 0 0; font-weight: 600; display: flex; gap: 6px; align-items: flex-start; animation: ns-fade-up .3s var(--ns-ease); }
.ns-error::before { content: "!"; flex: 0 0 18px; height: 18px; border-radius: 50%; background: var(--ns-danger); color: #fff; font-size: .7rem; display: grid; place-items: center; margin-top: 2px; }
.ns-check { display: flex; gap: 12px; align-items: flex-start; cursor: pointer; font-size: .9rem; line-height: 1.5; position: relative; }
.ns-check input { position: absolute; opacity: 0; width: 0; height: 0; }
.ns-check__box { flex: 0 0 22px; height: 22px; border-radius: 7px; border: 2px solid var(--ns-line); background: #fff; display: grid; place-items: center; transition: background .2s, border-color .2s; margin-top: 1px; }
.ns-check__box svg { opacity: 0; transform: scale(.5); transition: opacity .2s, transform .25s var(--ns-spring); }
.ns-check input:checked + .ns-check__box { background: var(--ns-teal); border-color: var(--ns-teal); }
.ns-check input:checked + .ns-check__box svg { opacity: 1; transform: scale(1); }
.ns-check input:focus-visible + .ns-check__box { box-shadow: 0 0 0 4px rgba(37, 189, 177, .2); }
.ns-check.has-error .ns-check__box { border-color: var(--ns-danger); }

/* ---------- segmented inputs ---------- */
.ns-passcode, .ns-code { display: flex; align-items: center; gap: 8px; margin: 10px 0 4px; }
.ns-passcode__group, .ns-code__group { display: flex; gap: 6px; }
.ns-passcode__sep { width: 14px; height: 3px; border-radius: 2px; background: var(--ns-line); }
.ns-seg { width: 44px; height: 54px; border: 1.5px solid var(--ns-line); border-radius: 12px; text-align: center; font-family: var(--ns-font-head); font-weight: 700; font-size: 1.3rem; color: var(--ns-teal-deep); background: #fff; outline: none; text-transform: uppercase; transition: border-color .15s, box-shadow .15s, background .2s; caret-color: var(--ns-teal); padding: 0; }
.ns-seg:focus { border-color: var(--ns-teal); box-shadow: 0 0 0 4px rgba(37, 189, 177, .16); }
.ns-seg.is-filled { background: var(--ns-teal-50); border-color: var(--ns-teal-100); animation: ns-pop .25s var(--ns-spring); }
.ns-code .ns-seg { width: 46px; height: 56px; font-size: 1.5rem; }
@keyframes ns-pop { 0% { transform: scale(.9); } 60% { transform: scale(1.06); } 100% { transform: scale(1); } }
.is-shake { animation: ns-shake .45s; }
@keyframes ns-shake { 10%, 90% { transform: translateX(-2px); } 20%, 80% { transform: translateX(3px); } 30%, 50%, 70% { transform: translateX(-5px); } 40%, 60% { transform: translateX(5px); } }
.ns-passcode.is-error .ns-seg, .ns-code.is-error .ns-seg { border-color: var(--ns-danger); background: #fff5f5; }
.ns-passcode.is-success .ns-seg, .ns-code.is-success .ns-seg { border-color: var(--ns-success); background: #eaf7ef; }

/* ---------- hero ---------- */
.ns-hero { padding: 56px 0 24px; position: relative; }
.ns-hero__inner { display: grid; grid-template-columns: 1.1fr .9fr; gap: 48px; align-items: center; }
.ns-eyebrow { display: inline-flex; align-items: center; gap: 8px; font-family: var(--ns-font-head); font-size: .74rem; font-weight: 700; letter-spacing: .14em; text-transform: uppercase; color: var(--ns-teal-dark); background: #fff; border: 1px solid var(--ns-teal-100); border-radius: 999px; padding: 6px 14px; margin-bottom: 20px; }
.ns-eyebrow__dot { width: 8px; height: 8px; border-radius: 50%; background: var(--ns-teal); animation: ns-pulse 2s infinite; }
@keyframes ns-pulse { 0% { box-shadow: 0 0 0 0 rgba(37, 189, 177, .55); } 70% { box-shadow: 0 0 0 10px rgba(37, 189, 177, 0); } 100% { box-shadow: 0 0 0 0 rgba(37, 189, 177, 0); } }
.ns-hero__title { font-size: clamp(2rem, 4.2vw, 3.3rem); letter-spacing: -.02em; margin-bottom: 18px; background: linear-gradient(120deg, var(--ns-teal-deep) 0%, var(--ns-teal-dark) 45%, var(--ns-teal) 100%); -webkit-background-clip: text; background-clip: text; color: transparent; }
.ns-hero__text { font-size: 1.1rem; color: var(--ns-muted); max-width: 56ch; }
.ns-hero__trust { list-style: none; padding: 0; margin: 26px 0 0; display: flex; flex-wrap: wrap; gap: 10px; }
.ns-hero__trust li { display: inline-flex; align-items: center; gap: 8px; background: #fff; border: 1px solid var(--ns-line); border-radius: 999px; padding: 8px 14px; font-size: .84rem; font-weight: 600; color: var(--ns-teal-dark); }
.ns-hero__art { position: relative; min-height: 440px; }
.ns-hero__card { position: absolute; border-radius: 20px; box-shadow: var(--ns-shadow-lg); background: #fff; }
.ns-hero__card--doc { --fx: -50%; left: 50%; top: 0; width: min(320px, 82%); animation: ns-float 7s ease-in-out infinite; border-radius: 24px; padding: 0; background: linear-gradient(160deg, #fff, #eef7f6); }
.ns-docart { display: block; width: 100%; height: auto; }
.ns-docart__sig { stroke-dasharray: 420; stroke-dashoffset: 420; animation: ns-draw 2.6s ease-out .8s forwards; }
@keyframes ns-draw { to { stroke-dashoffset: 0; } }
.ns-docart__check { transform-origin: 236px 306px; transform: scale(0); animation: ns-popin .6s var(--ns-spring) 3.2s forwards; }
.ns-docart__tick { stroke-dasharray: 40; stroke-dashoffset: 40; animation: ns-draw .5s ease-out 3.6s forwards; }
@keyframes ns-popin { to { transform: scale(1); } }
.ns-hero__card--sms { left: 0; top: 60%; display: flex; align-items: center; gap: 12px; padding: 14px 18px; animation: ns-float 6s ease-in-out -2s infinite; }
.ns-hero__smsicon { width: 38px; height: 38px; border-radius: 12px; background: var(--ns-teal-50); color: var(--ns-teal-dark); display: grid; place-items: center; }
.ns-hero__smstext { font-family: var(--ns-font-head); font-size: .9rem; letter-spacing: .06em; color: var(--ns-teal-deep); }
.ns-hero__card--log { right: 0; top: 22%; display: flex; align-items: center; gap: 10px; padding: 12px 16px; font-size: .84rem; font-weight: 600; color: var(--ns-teal-deep); animation: ns-float 8s ease-in-out -4s infinite; }
.ns-hero__logdot { width: 10px; height: 10px; border-radius: 50%; background: var(--ns-gold); animation: ns-pulse-gold 2.4s infinite; }
@keyframes ns-pulse-gold { 0% { box-shadow: 0 0 0 0 rgba(212, 175, 55, .55); } 70% { box-shadow: 0 0 0 10px rgba(212, 175, 55, 0); } 100% { box-shadow: 0 0 0 0 rgba(212, 175, 55, 0); } }
@keyframes ns-float { 0%, 100% { transform: translateX(var(--fx, 0)) translateY(0); } 50% { transform: translateX(var(--fx, 0)) translateY(-12px); } }

/* ---------- entry cards ---------- */
.ns-entry { padding: 24px 0 48px; }
.ns-entry__grid { display: grid; grid-template-columns: 1fr 1fr; gap: 28px; align-items: start; }

/* ---------- how it works ---------- */
.ns-how { padding: 48px 0; }
.ns-section-head { text-align: center; max-width: 640px; margin: 0 auto 36px; }
.ns-section-head h2 { font-size: 2rem; }
.ns-section-head p { color: var(--ns-muted); font-size: 1.05rem; }
.ns-steps { list-style: none; margin: 14px 0 0; padding: 0; display: grid; grid-template-columns: repeat(4, 1fr); gap: 20px; }
.ns-step { background: #fff; border-radius: var(--ns-radius); padding: 28px 22px 24px; box-shadow: var(--ns-shadow); position: relative; }
.ns-step:hover { transform: translateY(-6px) !important; }
.ns-step__num { position: absolute; top: -14px; left: 22px; width: 32px; height: 32px; border-radius: 50%; background: var(--ns-gold-grad); color: #2c2000; font-family: var(--ns-font-head); font-weight: 800; font-size: .9rem; display: grid; place-items: center; box-shadow: 0 6px 14px rgba(201, 162, 39, .35); }
.ns-step__icon { width: 52px; height: 52px; border-radius: 14px; background: var(--ns-teal-50); color: var(--ns-teal-dark); display: grid; place-items: center; margin-bottom: 14px; }
.ns-step h3 { font-size: 1.02rem; }
.ns-step p { color: var(--ns-muted); font-size: .9rem; margin: 0; }

/* ---------- trust ---------- */
.ns-trust { padding: 56px 0; background: linear-gradient(135deg, var(--ns-teal-deep), var(--ns-teal-dark) 55%, #0d8a80); color: #fff; position: relative; overflow: hidden; }
.ns-trust::before { content: ""; position: absolute; inset: -40%; background: radial-gradient(circle at 30% 30%, rgba(255, 255, 255, .08), transparent 40%), radial-gradient(circle at 70% 70%, rgba(212, 175, 55, .2), transparent 40%); animation: ns-orb 20s ease-in-out infinite alternate; }
.ns-section-head--light h2 { color: #fff; }
.ns-trust__grid { display: grid; grid-template-columns: repeat(4, 1fr); gap: 20px; position: relative; }
.ns-trust__item { background: rgba(255, 255, 255, .08); border: 1px solid rgba(255, 255, 255, .14); border-radius: var(--ns-radius); padding: 24px; backdrop-filter: blur(6px); transition: background .3s; }
.ns-trust__item:hover { background: rgba(255, 255, 255, .15); }
.ns-trust__spark { display: block; width: 34px; height: 4px; border-radius: 2px; background: var(--ns-gold-grad); margin-bottom: 16px; }
.ns-trust__item h3 { color: #fff; font-size: 1.02rem; }
.ns-trust__item p { color: rgba(255, 255, 255, .82); font-size: .9rem; margin: 0; }

/* ---------- help ---------- */
.ns-help { padding: 48px 0 64px; }
.ns-help__box { background: #fff; border-radius: var(--ns-radius); box-shadow: var(--ns-shadow); padding: 32px; display: flex; align-items: center; justify-content: space-between; gap: 24px; border-left: 6px solid var(--ns-gold); }
.ns-help__box h2 { font-size: 1.3rem; margin-bottom: 6px; }
.ns-help__box p { margin: 0; color: var(--ns-muted); }

/* ---------- footer ---------- */
.ns-footer { background: var(--ns-teal-deep); color: rgba(255, 255, 255, .78); padding: 40px 0 28px; position: relative; z-index: 1; }
.ns-footer__inner { display: grid; grid-template-columns: 1.4fr 1fr 1fr; gap: 28px; font-size: .9rem; }
.ns-footer__name { font-family: var(--ns-font-head); font-weight: 800; color: #fff; font-size: 1.15rem; display: block; margin-bottom: 8px; }
.ns-footer__brand p { margin: 0; }
.ns-footer__contact { display: flex; flex-direction: column; gap: 4px; }
.ns-footer__contact a { color: #fff; text-decoration: none; }
.ns-footer__contact a:hover { color: var(--ns-gold-light); }
.ns-footer__label { font-family: var(--ns-font-head); font-weight: 700; color: var(--ns-gold-light); font-size: .74rem; letter-spacing: .12em; text-transform: uppercase; margin-bottom: 6px; }
.ns-footer__links { list-style: none; margin: 0; padding: 0; display: flex; flex-direction: column; gap: 6px; }
.ns-footer__links a { color: #fff; text-decoration: none; }
.ns-footer__meta { grid-column: 1 / -1; border-top: 1px solid rgba(255, 255, 255, .12); padding-top: 18px; font-size: .82rem; color: rgba(255, 255, 255, .55); }

/* ---------- reveal on scroll ---------- */
[data-reveal] { opacity: 0; transform: translateY(22px); transition: opacity .7s var(--ns-ease), transform .7s var(--ns-ease); transition-delay: calc(var(--i, 0) * 80ms); }
[data-reveal].is-visible { opacity: 1; transform: none; }
@keyframes ns-fade-up { from { opacity: 0; transform: translateY(14px); } to { opacity: 1; transform: none; } }

/* ---------- archive component ---------- */
.ns-archive { margin-top: 6px; }
.ns-phone-wrap { display: flex; gap: 10px; }
.ns-phone-wrap .ns-input { flex: 1; }
.ns-archive__list { list-style: none; padding: 0; margin: 0; display: flex; flex-direction: column; gap: 12px; }
.ns-archive__item { border: 1px solid var(--ns-line); border-radius: 14px; padding: 16px 18px; display: flex; align-items: center; gap: 16px; background: #fff; animation: ns-fade-up .5s var(--ns-ease) both; animation-delay: calc(var(--i, 0) * 70ms); transition: border-color .2s, box-shadow .2s; }
.ns-archive__item:hover { border-color: var(--ns-teal); box-shadow: 0 6px 18px rgba(37, 189, 177, .12); }
.ns-archive__ico { width: 42px; height: 42px; border-radius: 12px; background: var(--ns-teal-50); color: var(--ns-teal-dark); display: grid; place-items: center; flex: 0 0 42px; }
.ns-archive__body { flex: 1; min-width: 0; }
.ns-archive__title { font-weight: 700; color: var(--ns-teal-deep); display: block; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.ns-archive__meta { font-size: .8rem; color: var(--ns-muted); }
.ns-archive__actions { display: flex; gap: 6px; flex-wrap: wrap; justify-content: flex-end; }
.ns-archive__empty { text-align: center; color: var(--ns-muted); padding: 16px 0 4px; }
.ns-archive__head { display: flex; justify-content: space-between; align-items: center; gap: 12px; margin-bottom: 14px; font-size: .9rem; }
.ns-verified { display: inline-flex; align-items: center; gap: 8px; color: var(--ns-success); font-weight: 700; background: #eaf7ef; border-radius: 999px; padding: 6px 14px; font-size: .86rem; animation: ns-pop .4s var(--ns-spring); }
.ns-resend { background: none; border: 0; color: var(--ns-teal-dark); font-weight: 600; cursor: pointer; padding: 0; text-decoration: underline; font-size: .86rem; }
.ns-resend:disabled { color: var(--ns-muted); text-decoration: none; cursor: default; }
.ns-debug-code { font-size: .8rem; background: #fff7d6; border: 1px dashed var(--ns-gold); border-radius: 8px; padding: 6px 10px; margin-top: 8px; color: #5a4500; }
.ns-code-block { animation: ns-fade-up .4s var(--ns-ease); }

/* ---------- toasts ---------- */
.ns-toasts { position: fixed; bottom: 20px; right: 20px; display: flex; flex-direction: column; gap: 10px; z-index: 100; max-width: min(360px, calc(100vw - 40px)); }
.ns-toast { background: var(--ns-teal-deep); color: #fff; padding: 12px 16px; border-radius: 12px; box-shadow: var(--ns-shadow-lg); font-size: .9rem; display: flex; gap: 10px; align-items: center; animation: ns-toast-in .35s var(--ns-spring); }
.ns-toast--error { background: var(--ns-danger); }
.ns-toast--success { background: var(--ns-success); }
.ns-toast.is-leaving { animation: ns-toast-out .3s forwards; }
@keyframes ns-toast-in { from { opacity: 0; transform: translateY(16px) scale(.96); } to { opacity: 1; transform: none; } }
@keyframes ns-toast-out { to { opacity: 0; transform: translateX(20px); } }

/* ---------- tooltip ---------- */
.ns-tip { display: inline-grid; place-items: center; width: 18px; height: 18px; border-radius: 50%; background: var(--ns-teal-50); color: var(--ns-teal-dark); font-size: .68rem; font-weight: 800; cursor: help; margin-left: 6px; vertical-align: middle; border: 1px solid var(--ns-teal-100); transition: background .2s, transform .2s, color .2s; flex: 0 0 auto; font-style: normal; }
.ns-tip:hover, .ns-tip:focus { background: var(--ns-teal); color: #fff; transform: scale(1.12); outline: none; }
.ns-tooltip { position: fixed; z-index: 120; max-width: 280px; background: var(--ns-teal-deep); color: #fff; font-size: .8rem; line-height: 1.5; padding: 10px 12px; border-radius: 10px; box-shadow: var(--ns-shadow-lg); opacity: 0; transform: translateY(4px) scale(.98); transition: opacity .18s, transform .22s var(--ns-spring); pointer-events: none; }
.ns-tooltip.is-visible { opacity: 1; transform: none; }
.ns-tooltip::after { content: ""; position: absolute; left: var(--arrow-x, 50%); top: 100%; margin-left: -6px; border: 6px solid transparent; border-top-color: var(--ns-teal-deep); }
.ns-tooltip.is-below::after { top: auto; bottom: 100%; border-top-color: transparent; border-bottom-color: var(--ns-teal-deep); }

/* ---------- spinner ---------- */
.ns-spinner { width: 28px; height: 28px; border-radius: 50%; border: 3px solid var(--ns-teal-100); border-top-color: var(--ns-teal); animation: ns-spin .8s linear infinite; }
.ns-spinner--lg { width: 44px; height: 44px; border-width: 4px; }

/* =====================================================================
   SIGN PAGE
   ===================================================================== */
.ns-sign__loading { min-height: 60vh; display: flex; flex-direction: column; align-items: center; justify-content: center; gap: 18px; color: var(--ns-muted); }
.ns-sign__gate, .ns-sign__message, .ns-archive-page, .ns-page { padding: 48px 0 64px; }
.ns-sign__topbar { background: #fff; border-bottom: 1px solid var(--ns-line); position: sticky; top: 72px; z-index: 40; }
.ns-sign__topbar-inner { display: grid; grid-template-columns: minmax(0, 1fr) auto auto; align-items: center; gap: 20px; min-height: 74px; padding-top: 10px; padding-bottom: 10px; }
.ns-sign__doclabel { font-size: .68rem; font-weight: 700; letter-spacing: .14em; text-transform: uppercase; color: var(--ns-muted); }
.ns-sign__doctitle h1 { font-size: 1.15rem; margin: 0; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.ns-status-pill { display: inline-flex; align-items: center; gap: 6px; border-radius: 999px; padding: 6px 12px; font-size: .76rem; font-weight: 700; background: var(--ns-teal-50); color: var(--ns-teal-dark); white-space: nowrap; }
.ns-status-pill::before { content: ""; width: 8px; height: 8px; border-radius: 50%; background: currentColor; }
.ns-status-pill--completed { background: #eaf7ef; color: var(--ns-success); }
.ns-status-pill--cancelled { background: #fdecec; color: var(--ns-danger); }
.ns-status-pill--generated { background: #f1f3f4; color: var(--ns-muted); }
.ns-status-pill--partially_signed { background: #fff4dc; color: #9a6b00; }
.ns-stepper { list-style: none; margin: 0; padding: 0; display: flex; align-items: center; }
.ns-stepper__item { display: flex; align-items: center; gap: 8px; font-size: .78rem; font-weight: 600; color: var(--ns-muted); white-space: nowrap; }
.ns-stepper__item + .ns-stepper__item::before { content: ""; width: 26px; height: 2px; background: var(--ns-line); margin: 0 10px; border-radius: 2px; transition: background .4s; }
.ns-stepper__item.is-done + .ns-stepper__item::before { background: var(--ns-teal); }
.ns-stepper__num { width: 26px; height: 26px; border-radius: 50%; border: 2px solid var(--ns-line); display: grid; place-items: center; font-size: .7rem; font-weight: 800; background: #fff; transition: all .3s var(--ns-spring); }
.ns-stepper__item.is-current { color: var(--ns-teal-deep); }
.ns-stepper__item.is-current .ns-stepper__num { border-color: var(--ns-teal); color: var(--ns-teal-dark); box-shadow: 0 0 0 4px rgba(37, 189, 177, .18); }
.ns-stepper__item.is-done .ns-stepper__num { background: var(--ns-teal); border-color: var(--ns-teal); color: #fff; }
.ns-sign__layout { display: grid; grid-template-columns: 440px minmax(0, 1fr); gap: 28px; padding-top: 28px; padding-bottom: 64px; align-items: start; }
.ns-sign__panel { position: sticky; top: 164px; max-height: calc(100vh - 184px); overflow: auto; display: flex; flex-direction: column; gap: 14px; padding: 4px; margin: -4px; scrollbar-width: thin; }
.ns-sign__doc { min-width: 0; display: flex; flex-direction: column; gap: 24px; }

/* accordion sections */
.ns-sec { background: #fff; border-radius: var(--ns-radius); box-shadow: var(--ns-shadow); border: 1px solid rgba(0, 57, 56, .05); overflow: hidden; animation: ns-fade-up .5s var(--ns-ease) both; animation-delay: calc(var(--i, 0) * 80ms); flex: 0 0 auto; }
.ns-sec__head { display: flex; align-items: center; gap: 14px; padding: 18px 22px; cursor: pointer; user-select: none; background: #fff; border: 0; width: 100%; text-align: left; font: inherit; }
.ns-sec.is-locked .ns-sec__head { cursor: not-allowed; }
.ns-sec__num { width: 32px; height: 32px; border-radius: 50%; background: var(--ns-teal-50); color: var(--ns-teal-dark); font-family: var(--ns-font-head); font-weight: 800; font-size: .84rem; display: grid; place-items: center; flex: 0 0 32px; transition: all .3s var(--ns-spring); }
.ns-sec.is-done .ns-sec__num { background: var(--ns-teal); color: #fff; }
.ns-sec.is-locked .ns-sec__num { background: #f1f3f4; color: #9aa5a5; }
.ns-sec__title { flex: 1; font-family: var(--ns-font-head); font-weight: 700; font-size: 1rem; color: var(--ns-teal-deep); }
.ns-sec.is-locked .ns-sec__title { color: #9aa5a5; }
.ns-sec__chev { transition: transform .3s; color: var(--ns-muted); flex: 0 0 auto; }
.ns-sec.is-open .ns-sec__chev { transform: rotate(180deg); }
.ns-sec__body { display: grid; grid-template-rows: 0fr; transition: grid-template-rows .4s var(--ns-ease); }
.ns-sec.is-open .ns-sec__body { grid-template-rows: 1fr; }
.ns-sec__inner { overflow: hidden; }
.ns-sec__content { padding: 2px 22px 22px; }
.ns-sec__text { color: var(--ns-muted); font-size: .9rem; margin-bottom: 16px; }
.ns-sec__footer { display: flex; justify-content: flex-end; gap: 10px; margin-top: 10px; }

/* SEPA */
.ns-sepa__creditor { background: var(--ns-teal-50); border-radius: 12px; padding: 14px 16px; margin: 0 0 16px; font-size: .86rem; display: grid; gap: 6px; }
.ns-sepa__creditor > div { display: flex; justify-content: space-between; gap: 12px; align-items: baseline; }
.ns-sepa__creditor dt { color: var(--ns-muted); display: inline-flex; align-items: center; white-space: nowrap; }
.ns-sepa__creditor dd { margin: 0; font-weight: 600; color: var(--ns-teal-deep); text-align: right; word-break: break-word; }
.ns-sepa__legal { font-size: .8rem; color: var(--ns-muted); background: #fafcfc; border: 1px solid var(--ns-line); border-radius: 12px; padding: 12px 14px; line-height: 1.55; margin: 14px 0; }
.ns-sepa__badge { display: inline-flex; align-items: center; gap: 6px; font-size: .72rem; font-weight: 700; color: #8a6a00; background: #fbf3d9; border-radius: 999px; padding: 3px 10px; margin-left: 8px; }

/* signature pad */
.ns-sigpad { position: relative; border: 2px dashed var(--ns-teal-100); border-radius: 14px; background: #fff; overflow: hidden; transition: border-color .2s, box-shadow .2s; touch-action: none; }
.ns-sigpad.is-active { border-color: var(--ns-teal); box-shadow: 0 0 0 4px rgba(37, 189, 177, .14); }
.ns-sigpad.has-error { border-color: var(--ns-danger); }
.ns-sigpad canvas { display: block; width: 100%; height: 190px; cursor: crosshair; }
.ns-sigpad__hint { position: absolute; inset: 0; display: flex; align-items: center; justify-content: center; gap: 10px; color: #9aa5a5; font-family: var(--ns-font-head); font-weight: 600; pointer-events: none; transition: opacity .25s; }
.ns-sigpad__hint svg { color: var(--ns-gold); animation: ns-pen 3s ease-in-out infinite; }
.ns-sigpad.has-ink .ns-sigpad__hint { opacity: 0; }
.ns-sigpad__line { position: absolute; left: 24px; right: 24px; bottom: 38px; height: 1px; background: var(--ns-line); pointer-events: none; }
.ns-sigpad__x { position: absolute; left: 24px; bottom: 44px; color: var(--ns-gold); font-family: var(--ns-font-head); font-weight: 800; pointer-events: none; }
.ns-sigpad__tools { display: flex; justify-content: space-between; align-items: center; margin-top: 10px; font-size: .84rem; color: var(--ns-muted); }
.ns-sigpad__clear { background: none; border: 0; color: var(--ns-teal-dark); font-weight: 600; cursor: pointer; padding: 6px 0; display: inline-flex; gap: 6px; align-items: center; }
.ns-sigpad__clear:hover { color: var(--ns-danger); }
.ns-sign__note { font-size: .84rem; color: var(--ns-muted); background: #fafcfc; border: 1px solid var(--ns-line); border-radius: 10px; padding: 10px 12px; margin: 12px 0; }
.ns-locked-note { display: flex; align-items: center; gap: 10px; color: var(--ns-muted); font-size: .88rem; }

/* viewer */
.ns-viewer { background: #e9eeee; border-radius: var(--ns-radius); box-shadow: var(--ns-shadow); overflow: hidden; border: 1px solid rgba(0, 57, 56, .06); }
.ns-viewer__bar { display: flex; align-items: center; gap: 14px; padding: 12px 16px; background: #fff; border-bottom: 1px solid var(--ns-line); font-size: .85rem; }
.ns-viewer__name { font-weight: 700; color: var(--ns-teal-deep); overflow: hidden; text-overflow: ellipsis; white-space: nowrap; flex: 1; min-width: 0; }
.ns-viewer__pages { color: var(--ns-muted); white-space: nowrap; }
.ns-viewer__actions { display: flex; gap: 6px; }
.ns-viewer__pages-wrap { padding: 20px; display: flex; flex-direction: column; align-items: center; gap: 18px; max-height: 78vh; overflow: auto; background: linear-gradient(#e9eeee, #e2e8e8); }
.ns-viewer__page { background: #fff; box-shadow: 0 8px 24px rgba(0, 57, 56, .14); border-radius: 4px; max-width: 100%; animation: ns-fade-up .5s var(--ns-ease) both; }
.ns-viewer__frame { width: 100%; height: 78vh; border: 0; background: #fff; }
.ns-viewer__error { padding: 40px 20px; text-align: center; color: var(--ns-muted); }
.ns-skeleton { background: linear-gradient(90deg, #f1f4f4 25%, #fbfcfc 50%, #f1f4f4 75%); background-size: 200% 100%; animation: ns-shimmer 1.4s infinite; border-radius: 6px; }
.ns-skeleton--page { width: min(100%, 620px); aspect-ratio: 1 / 1.35; }
@keyframes ns-shimmer { to { background-position: -200% 0; } }

/* activity */
.ns-activity { background: #fff; border-radius: var(--ns-radius); box-shadow: var(--ns-shadow); padding: 24px; border: 1px solid rgba(0, 57, 56, .05); }
.ns-activity h3 { font-size: 1.02rem; margin-bottom: 14px; display: flex; align-items: center; gap: 10px; }
.ns-signers { display: flex; flex-wrap: wrap; gap: 8px; margin-bottom: 20px; }
.ns-signer { display: inline-flex; align-items: center; gap: 8px; border: 1px solid var(--ns-line); border-radius: 999px; padding: 5px 12px 5px 5px; font-size: .82rem; font-weight: 600; color: var(--ns-teal-deep); background: #fff; }
.ns-signer__avatar { width: 26px; height: 26px; border-radius: 50%; background: var(--ns-teal-50); color: var(--ns-teal-dark); display: grid; place-items: center; font-size: .7rem; font-weight: 800; }
.ns-signer__status { font-size: .72rem; color: var(--ns-muted); font-weight: 500; }
.ns-signer--signed .ns-signer__avatar { background: var(--ns-success); color: #fff; }
.ns-signer--signed .ns-signer__status { color: var(--ns-success); }
.ns-signer--me { border-color: var(--ns-teal); }
.ns-timeline { list-style: none; margin: 0; padding: 0; position: relative; }
.ns-timeline::before { content: ""; position: absolute; left: 11px; top: 8px; bottom: 8px; width: 2px; background: var(--ns-line); border-radius: 2px; }
.ns-timeline__item { position: relative; padding: 0 0 18px 36px; animation: ns-fade-up .45s var(--ns-ease) both; animation-delay: calc(var(--i, 0) * 60ms); }
.ns-timeline__item:last-child { padding-bottom: 0; }
.ns-timeline__dot { position: absolute; left: 4px; top: 4px; width: 16px; height: 16px; border-radius: 50%; background: #fff; border: 3px solid var(--ns-teal); }
.ns-timeline__item--completed .ns-timeline__dot, .ns-timeline__item--signed .ns-timeline__dot { background: var(--ns-teal); }
.ns-timeline__item--accepted .ns-timeline__dot { border-color: var(--ns-gold); background: var(--ns-gold); }
.ns-timeline__item--cancelled .ns-timeline__dot, .ns-timeline__item--declined .ns-timeline__dot { border-color: var(--ns-danger); }
.ns-timeline__item:first-child .ns-timeline__dot { animation: ns-pulse 2s infinite; }
.ns-timeline__title { font-weight: 700; color: var(--ns-teal-deep); font-size: .9rem; }
.ns-timeline__meta { font-size: .78rem; color: var(--ns-muted); }
.ns-timeline__empty { color: var(--ns-muted); font-size: .9rem; }

/* done state */
.ns-done { text-align: center; padding: 12px 6px; }
.ns-done__check { width: 96px; height: 96px; margin: 0 auto 18px; display: block; }
.ns-done__ring { stroke: var(--ns-teal); stroke-width: 3; fill: none; stroke-dasharray: 300; stroke-dashoffset: 300; animation: ns-draw .8s ease-out forwards; }
.ns-done__fill { fill: var(--ns-teal); transform-origin: 48px 48px; transform: scale(0); animation: ns-popin .5s var(--ns-spring) .6s forwards; }
.ns-done__tick { stroke: #fff; stroke-width: 5; fill: none; stroke-linecap: round; stroke-linejoin: round; stroke-dasharray: 80; stroke-dashoffset: 80; animation: ns-draw .5s ease-out 1s forwards; }
.ns-done h2 { font-size: 1.5rem; }
.ns-done p { color: var(--ns-muted); }
.ns-done__actions { display: flex; flex-wrap: wrap; gap: 10px; justify-content: center; margin-top: 18px; }
.ns-done__note { font-size: .84rem; background: var(--ns-teal-50); border-radius: 12px; padding: 12px 14px; color: var(--ns-teal-dark); margin-top: 18px; }
.ns-confetti { position: fixed; inset: 0; pointer-events: none; z-index: 90; }
.ns-card--message { text-align: center; padding: 48px 36px; }
.ns-card--message .ns-card__icon { margin: 0 auto 20px; }
.ns-card--message .ns-btn { margin-top: 8px; }

/* mobile toggle */
.ns-mobile-toggle { position: fixed; bottom: 20px; left: 50%; transform: translateX(-50%); z-index: 80; border: 0; border-radius: 999px; padding: 12px 22px; background: var(--ns-teal-deep); color: #fff; font-family: var(--ns-font-head); font-weight: 700; box-shadow: var(--ns-shadow-lg); cursor: pointer; }

/* 404 */
.ns-404 { font-family: var(--ns-font-head); font-size: 5rem; font-weight: 800; background: var(--ns-gold-grad); -webkit-background-clip: text; background-clip: text; color: transparent; line-height: 1; }

/* ---------- responsive ---------- */
@media (max-width: 1024px) {
  .ns-sign__layout { grid-template-columns: 1fr; padding-bottom: 110px; }
  .ns-sign__panel { position: static; max-height: none; overflow: visible; }
  .ns-sign__doc { display: none; }
  .ns-sign__layout.is-doc-visible .ns-sign__doc { display: flex; }
  .ns-sign__layout.is-doc-visible .ns-sign__panel { display: none; }
  .ns-steps, .ns-trust__grid { grid-template-columns: repeat(2, 1fr); }
  .ns-hero__inner { grid-template-columns: 1fr; gap: 32px; }
  .ns-hero__art { min-height: 400px; max-width: 520px; margin: 0 auto; width: 100%; }
  .ns-sign__topbar-inner { grid-template-columns: minmax(0, 1fr) auto; }
  .ns-stepper { grid-column: 1 / -1; overflow-x: auto; padding-bottom: 4px; }
}
@media (min-width: 1025px) { .ns-mobile-toggle { display: none !important; } }
@media (max-width: 720px) {
  .ns-entry__grid, .ns-steps, .ns-trust__grid, .ns-footer__inner { grid-template-columns: 1fr; }
  .ns-card { padding: 24px 18px; }
  .ns-card--content { padding: 28px 20px; }
  .ns-header__inner { height: 64px; }
  .ns-nav__link { display: none; }
  .ns-brand__text { font-size: 1.15rem; }
  .ns-sign__topbar { top: 64px; }
  .ns-sign__panel { top: auto; }
  .ns-stepper__label { display: none; }
  .ns-help__box { flex-direction: column; align-items: flex-start; }
  .ns-seg { width: 36px; height: 46px; font-size: 1.1rem; border-radius: 10px; }
  .ns-code .ns-seg { width: 40px; height: 50px; }
  .ns-passcode, .ns-code { gap: 6px; }
  .ns-hero { padding-top: 32px; }
  .ns-hero__art { min-height: 360px; }
  .ns-hero__card--sms { top: 68%; }
  .ns-viewer__pages-wrap { padding: 12px; max-height: none; }
  .ns-section-head h2 { font-size: 1.6rem; }
  .ns-sec__head { padding: 16px 18px; }
  .ns-sec__content { padding: 2px 18px 18px; }
  .ns-row > .ns-field { flex-basis: 100%; }
  .ns-sign__doctitle h1 { font-size: 1rem; }
  .ns-toasts { left: 20px; right: 20px; max-width: none; }
}
@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after { animation-duration: .01ms !important; animation-iteration-count: 1 !important; transition-duration: .01ms !important; }
  [data-reveal] { opacity: 1; transform: none; }
  .ns-docart__sig, .ns-docart__tick, .ns-done__ring, .ns-done__tick { stroke-dashoffset: 0; }
  .ns-docart__check, .ns-done__fill { transform: scale(1); }
}
@media print {
  .ns-header, .ns-footer, .ns-bg, .ns-mobile-toggle, .ns-toasts { display: none !important; }
}
