/* See DESIGN.md for the reason behind each choice. Dark theme, same as the resume builder (resume.sisystem.org). */
:root {
  --ink: #e8e8e8;        /* body text */
  --panel: #000000;      /* top bar, table heads, about band */
  --brand: #ef4444;      /* red as text or line on dark */
  --red: #dc2626;        /* red as a fill behind white text */
  --cta: #ffffff;        /* main buttons: white, black text */
  --cta-hover: #e0e0e0;
  --on-cta: #0a0a0a;
  --ok: #4ade80;
  --header-bg: rgba(10, 10, 10, 0.92);
  --bg: #0a0a0a;
  --tint: #111111;
  --line: #2a2a2a;
  --muted: #a3a3a3;
  --field: #7a7a7a;
  --error: #f87171;
  --font: 'Poppins', system-ui, -apple-system, 'Segoe UI', Roboto, sans-serif;
  --mono: 'JetBrains Mono', ui-monospace, 'Cascadia Mono', Consolas, monospace;
  --r-sm: 0;
  --r-md: 0;
  --tick: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 16 16'%3E%3Cpath d='M3 8.5l3.2 3.2L13 4.6' fill='none' stroke='%23fff' stroke-width='2.4' stroke-linecap='square'/%3E%3C/svg%3E");
  --tick-brand: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 16 16'%3E%3Cpath d='M3 8.5l3.2 3.2L13 4.6' fill='none' stroke='%23dc2626' stroke-width='2.4' stroke-linecap='square'/%3E%3C/svg%3E");
  color-scheme: light dark;
}
/* Light mode follows the device setting. Keep the last :root block in sync with check.mjs. */
@media (prefers-color-scheme: light) {
  :root {
    --ink: #0a0a0a;
    --brand: #b91c1c;
    --cta: #0a0a0a;
    --cta-hover: #262626;
    --on-cta: #ffffff;
    --ok: #15803d;
    --header-bg: rgba(255, 255, 255, 0.92);
    --bg: #ffffff;
    --tint: #f4f4f5;
    --line: #d4d4d8;
    --muted: #525252;
    --field: #737373;
    --error: #b42318;
  }
}
*, *::before, *::after { box-sizing: border-box; }
html { scroll-behavior: smooth; -webkit-text-size-adjust: 100%; }
body { margin: 0; background: var(--bg); color: var(--ink); font: 400 1.0625rem/1.6 var(--font); }
a { color: var(--brand); text-underline-offset: 0.2em; }
p { margin: 0 0 1em; }
h1, h2, h3 { margin: 0; line-height: 1.12; letter-spacing: -0.02em; }
h1, h2 { font-weight: 800; }
h3 { font-weight: 700; }
:focus-visible { outline: 3px solid var(--brand); outline-offset: 3px; border-radius: 3px; }
.topbar :focus-visible, .about-band :focus-visible, .cta-band :focus-visible, thead :focus-visible { outline-color: #fff; }
[id] { scroll-margin-top: 90px; }
.wrap { width: min(1160px, 100% - 2rem); margin-inline: auto; }
.narrow { max-width: 780px; }
.sr { position: absolute; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; }
.skip { position: absolute; left: -999px; top: 0.5rem; z-index: 100; background: #fff; color: #000; padding: 0.6rem 1rem; border-radius: var(--r-sm); }
.skip:focus { left: 0.5rem; }
.fine { color: var(--muted); font-size: 0.92rem; }

/* top bar and header */
.topbar { background: var(--panel); color: #fff; font: 400 0.72rem var(--mono); letter-spacing: 0.08em; border-bottom: 1px solid var(--line); }
.topbar a { color: #fff; }
.topbar-in { display: flex; justify-content: space-between; align-items: center; min-height: 38px; gap: 1rem; }
.topbar p { margin: 0; }
.langs { display: flex; gap: 0.9rem; }
.langs [aria-current] { font-weight: 700; }
.site-header { position: sticky; top: 0; z-index: 20; background: var(--header-bg); -webkit-backdrop-filter: blur(12px); backdrop-filter: blur(12px); border-bottom: 1px solid var(--line); }
.bar { display: flex; align-items: center; justify-content: space-between; min-height: 64px; gap: 1rem; position: relative; }
/* logo: same lockup as the resume builder */
.brand { display: inline-flex; align-items: center; gap: 0.6rem; color: var(--ink); text-decoration: none; }
.logo-si { font-weight: 700; font-size: 1.35rem; letter-spacing: -0.05em; text-decoration: underline; text-decoration-color: var(--red); text-decoration-thickness: 2px; text-underline-offset: 4px; transition: text-decoration-thickness 0.2s; }
.brand:hover .logo-si { text-decoration-thickness: 3px; }
.logo-txt { display: flex; flex-direction: column; margin-left: 0.15rem; }
.logo-name { font-size: 0.9rem; font-weight: 500; letter-spacing: -0.01em; line-height: 1.15; }
.logo-sub { font: 500 0.5rem var(--mono); letter-spacing: 0.3em; color: var(--brand); }
.nav { display: none; align-items: center; gap: 2rem; }
.nav a:not(.btn) { color: var(--muted); font: 500 0.7rem var(--mono); letter-spacing: 0.22em; text-transform: uppercase; text-decoration: none; padding-block: 0.4rem; border-bottom: 1px solid transparent; transition: color 0.2s, border-color 0.2s; }
.nav a:not(.btn):hover { color: var(--ink); }
.menu-btn { font: 500 0.7rem var(--mono); letter-spacing: 0.2em; text-transform: uppercase; background: var(--tint); color: var(--ink); border: 1px solid var(--line); border-radius: var(--r-sm); padding: 0.55rem 1rem; cursor: pointer; }
@media (min-width: 900px) { .nav { display: flex; } .menu-btn { display: none; } }
@media (max-width: 899px) {
  .nav.open { display: flex; flex-direction: column; align-items: stretch; gap: 0; position: absolute; left: -1rem; right: -1rem; top: 100%; background: var(--bg); border-bottom: 1px solid var(--line); padding: 0.5rem 1rem 1rem; }
  .nav.open a:not(.btn) { padding: 0.9rem 0; border-bottom: 1px solid var(--line); }
  .nav.open .btn { margin-top: 0.8rem; }
}

/* buttons */
.btn { display: inline-flex; align-items: center; justify-content: center; text-align: center; background: var(--cta); color: var(--on-cta); font: 700 0.75rem var(--mono); letter-spacing: 0.16em; text-transform: uppercase; padding: 1rem 1.6rem; border: 2px solid var(--cta); border-radius: var(--r-sm); text-decoration: none; cursor: pointer; transition: background-color 0.2s, color 0.2s, border-color 0.2s; }
.btn:hover { background: var(--cta-hover); border-color: var(--cta-hover); }
.btn-sm { padding: 0.6rem 1.1rem; font-size: 0.68rem; }
.btn-ghost { background: transparent; color: var(--ink); border-color: var(--line); }
.btn-ghost:hover { background: var(--red); border-color: var(--red); color: #fff; }
.btn-light { background: #fff; color: #0a0a0a; border-color: #fff; }
.btn-light:hover { background: #e0e0e0; border-color: #e0e0e0; }
.btn-block { width: 100%; margin-top: 0.9rem; }

/* tick motif */
.ticks { list-style: none; padding: 0; margin: 0; display: grid; gap: 0.6rem; }
.ticks li, .trust-list li { position: relative; padding-left: 1.9rem; }
.ticks li::before, .trust-list li::before { content: ''; position: absolute; left: 0; top: 0.28em; width: 1.15rem; height: 1.15rem; background: var(--red) var(--tick) center / 75% no-repeat; border-radius: 3px; }
.ticks-light li::before { background-color: #fff; background-image: var(--tick-brand); }
.tick { display: inline-block; width: 1.25rem; height: 1.25rem; background: var(--red) var(--tick) center / 75% no-repeat; border-radius: 3px; vertical-align: middle; }
.no { display: inline-block; width: 0.9rem; height: 2px; background: var(--field); vertical-align: middle; }

/* hero */
.hero { padding-block: clamp(2.5rem, 1.5rem + 4vw, 5rem); }
.hero-grid { display: grid; gap: 2.5rem; align-items: start; }
@media (min-width: 900px) { .hero-grid { grid-template-columns: 1.15fr 0.85fr; gap: 4rem; align-items: center; } }
.hero h1 { font-size: clamp(2.2rem, 1.3rem + 3.6vw, 3.7rem); letter-spacing: -0.03em; margin-bottom: 1.2rem; }
.lede { font-size: clamp(1.1rem, 1rem + 0.4vw, 1.3rem); color: var(--muted); max-width: 34em; margin-bottom: 1.8rem; }
.cta-row { display: flex; flex-wrap: wrap; gap: 0.8rem; }
.check-card { background: var(--bg); border: 1px solid var(--line); border-top: 4px solid var(--brand); border-radius: var(--r-md); padding: 1.6rem; box-shadow: 0 14px 34px -18px #000; }
.check-card h2 { font-size: 1.45rem; margin-bottom: 0.5rem; }
.check-card label { display: block; font-weight: 600; font-size: 0.95rem; margin-bottom: 0.35rem; }
.check-card input { width: 100%; font: 400 1rem var(--font); color: var(--ink); background: var(--bg); border: 1.5px solid var(--field); border-radius: var(--r-sm); padding: 0.85rem 1rem; }
.check-card input[aria-invalid='true'] { border-color: var(--error); }
.form-msg { min-height: 1.5rem; margin: 0.6rem 0 0; font-size: 0.95rem; color: var(--ok); font-weight: 600; }
.form-msg.is-error { color: var(--error); }
.looks { border-top: 1px solid var(--line); margin-top: 1rem; padding-top: 1rem; }
.looks-h { font-weight: 700; margin-bottom: 0.6rem; }

/* trust strip */
.trust { background: var(--tint); border-block: 1px solid var(--line); padding-block: 1.3rem; }
.trust-list { list-style: none; margin: 0; padding: 0; display: grid; gap: 0.8rem 2rem; font-weight: 600; font-size: 0.97rem; }
@media (min-width: 640px) { .trust-list { grid-template-columns: repeat(2, 1fr); } }
@media (min-width: 1000px) { .trust-list { grid-template-columns: repeat(4, 1fr); } }

/* sections */
.section { padding-block: clamp(3rem, 2rem + 4vw, 5.5rem); }
.tint { background: var(--tint); }
.section-head { margin-bottom: 2rem; max-width: 40em; }
.section-head h2 { font-size: clamp(1.7rem, 1.2rem + 1.8vw, 2.5rem); margin-bottom: 0.6rem; }
.section-head p { color: var(--muted); font-size: 1.1rem; margin: 0; }

/* services: one featured item, two compact ones */
.services { display: grid; gap: 2rem; }
@media (min-width: 900px) { .services { grid-template-columns: 1.2fr 1fr; gap: 3.5rem; } }
.feature { border: 1px solid var(--line); border-top: 4px solid var(--brand); border-radius: var(--r-md); padding: 2rem; }
.feature h3 { font-size: 1.7rem; margin-bottom: 0.7rem; }
.feature > p { color: var(--muted); margin-bottom: 1.2rem; }
.service-side article { padding: 1.3rem 0; border-top: 1px solid var(--line); }
.service-side article:first-child { border-top: 2px solid var(--red); }
.service-side h3 { font-size: 1.25rem; margin-bottom: 0.35rem; }
.service-side p { margin: 0; color: var(--muted); }
.service-side .soon-tag { margin-top: 0.5rem; color: var(--ink); font-weight: 700; font-size: 0.92rem; }

/* package comparison */
.compare, .flow { width: 100%; border-collapse: collapse; background: var(--bg); }
.compare th, .compare td, .flow th, .flow td { padding: 0.95rem 1rem; text-align: left; vertical-align: top; border-bottom: 1px solid var(--line); }
.compare thead th { background: var(--panel); color: #fff; font-size: 0.8rem; font-family: var(--mono); letter-spacing: 0.12em; text-transform: uppercase; border-bottom: 2px solid var(--red); }
.compare tbody th { font-weight: 600; width: 28%; }
.compare .price-row strong { font-size: 1.7rem; font-weight: 800; color: var(--brand); letter-spacing: -0.02em; }
.extras { margin-top: 2.2rem; }
.extras h3 { font-size: 1.2rem; margin-bottom: 0.5rem; }
.extras ul { list-style: none; margin: 0; padding: 0; border-top: 2px solid var(--red); }
.extras li { display: flex; justify-content: space-between; gap: 1.5rem; padding: 1rem 0; border-bottom: 1px solid var(--line); }
.extras li div { display: grid; }
.extras li span { color: var(--muted); }
.extras .extra-price { font-weight: 700; color: var(--ink); text-align: right; white-space: nowrap; }
.tint .fine { margin-top: 1.2rem; max-width: 46em; }

/* process */
.flow thead th { border-bottom: 2px solid var(--red); font: 500 0.75rem var(--mono); letter-spacing: 0.12em; text-transform: uppercase; }
.flow tbody th { color: var(--brand); font-weight: 700; width: 16%; }

/* stacked tables on phones */
@media (max-width: 760px) {
  .compare thead, .flow thead { display: none; }
  .compare, .compare tbody, .compare tr, .compare th, .compare td,
  .flow, .flow tbody, .flow tr, .flow th, .flow td { display: block; width: 100% !important; }
  .compare tr, .flow tr { border: 1px solid var(--line); border-radius: var(--r-md); margin-bottom: 1rem; overflow: hidden; background: var(--bg); }
  .compare tbody th, .flow tbody th { background: var(--tint); border-bottom: 1px solid var(--line); }
  .compare td, .flow td { display: flex; gap: 1rem; justify-content: space-between; align-items: baseline; }
  .compare td::before, .flow td::before { content: attr(data-label); font-weight: 600; color: var(--muted); flex: 0 0 38%; }
  .compare td > *, .flow td { text-align: left; }
  .extras li { flex-direction: column; gap: 0.2rem; }
  .extras .extra-price { text-align: left; }
}

/* about band */
.about-band { background: var(--panel); color: #fff; border-block: 1px solid var(--line); padding-block: clamp(3rem, 2rem + 4vw, 5.5rem); }
.about { display: grid; gap: 2.5rem; }
@media (min-width: 900px) { .about { grid-template-columns: 1.1fr 0.9fr; gap: 5rem; } }
.about h2 { font-size: clamp(1.7rem, 1.2rem + 1.8vw, 2.5rem); margin-bottom: 1rem; }
.about p { color: #d9e2f2; font-size: 1.1rem; }
.about h3 { font-size: 1.15rem; margin-bottom: 1rem; }

/* faq */
details { border-bottom: 1px solid var(--line); padding: 1.1rem 0; }
details:first-of-type { border-top: 2px solid var(--red); }
summary { cursor: pointer; font-weight: 700; font-size: 1.12rem; list-style: none; display: flex; justify-content: space-between; gap: 1rem; }
summary::-webkit-details-marker { display: none; }
summary::after { content: '+'; font-size: 1.5rem; line-height: 1; color: var(--brand); }
details[open] summary::after { content: '\2212'; }
details p { margin: 0.8rem 0 0; color: var(--muted); }

/* closing call to action */
.cta-band { background: var(--red); color: #fff; padding-block: clamp(2.5rem, 2rem + 3vw, 4.5rem); }
.cta-inner { display: grid; gap: 1.5rem; align-items: center; }
@media (min-width: 800px) { .cta-inner { grid-template-columns: 1fr auto; gap: 3rem; } }
.cta-inner h2 { font-size: clamp(1.6rem, 1.2rem + 1.6vw, 2.4rem); margin-bottom: 0.5rem; }
.cta-inner p { margin: 0; color: #fff; font-size: 1.1rem; }

/* footer */
.site-footer { padding-top: 3rem; padding-bottom: 5.5rem; border-top: 1px solid var(--line); }
.foot { display: grid; gap: 1.5rem; padding-bottom: 2rem; }
@media (min-width: 800px) { .foot { grid-template-columns: 1.6fr 1fr 1fr; gap: 3rem; } }
.foot p { margin: 0 0 0.3rem; }
.foot-brand { margin-bottom: 0.8rem !important; }
.foot a:not(.brand) { color: var(--muted); }
.foot a:not(.brand):hover { color: var(--ink); }
.foot-h { font: 500 0.7rem var(--mono); letter-spacing: 0.2em; text-transform: uppercase; color: var(--ink); }
.foot-line { color: var(--muted); max-width: 26em; }
.foot-end { display: flex; flex-wrap: wrap; justify-content: space-between; gap: 0.5rem 2rem; border-top: 1px solid var(--line); padding-top: 1.2rem; color: var(--muted); font-size: 0.92rem; }
.foot-end p { margin: 0; }
.doc-h1 { font-size: clamp(2rem, 1.4rem + 2.5vw, 3rem); margin-bottom: 0.5rem; }
.doc-h2 { font-size: 1.35rem; margin: 2rem 0 0.5rem; }

/* persistent WhatsApp button, as on the reference sites */
.float-wa { position: fixed; right: 1rem; bottom: 1rem; z-index: 30; background: var(--red); color: #fff; font: 700 0.72rem var(--mono); letter-spacing: 0.14em; text-transform: uppercase; padding: 0.85rem 1.2rem; border: 1px solid rgba(255, 255, 255, 0.5); border-radius: var(--r-sm); text-decoration: none; transition: background-color 0.2s; }
.float-wa:hover { background: #b91c1c; }
.float-wa:focus-visible { outline-color: var(--ink); }

@media (prefers-reduced-motion: reduce) { html { scroll-behavior: auto; } * { transition: none !important; } }

/* multi-page additions */
.page-head { background: var(--tint); border-bottom: 1px solid var(--line); padding-block: clamp(2rem, 1.5rem + 2.5vw, 3.5rem); }
.page-head h1 { font-size: clamp(2rem, 1.3rem + 2.8vw, 3.2rem); letter-spacing: -0.03em; margin-bottom: 0.8rem; }
.page-head .lede { margin: 0; }
.breadcrumb { font-size: 0.9rem; color: var(--muted); margin-bottom: 1rem; }
.breadcrumb ol { list-style: none; display: flex; flex-wrap: wrap; gap: 0.4rem; margin: 0; padding: 0; }
.breadcrumb li + li::before { content: '/'; margin-right: 0.4rem; color: var(--field); }
.breadcrumb a { color: var(--muted); }
.prose { max-width: 46rem; }
.prose h2 { font-size: 1.6rem; margin: 2.2rem 0 0.7rem; }
.prose h3 { font-size: 1.2rem; margin: 1.6rem 0 0.5rem; }
.prose ul, .prose ol { padding-left: 1.3rem; margin: 0 0 1.2em; }
.prose li { margin-bottom: 0.4rem; }
.prose blockquote { margin: 1.4rem 0; padding: 1rem 1.2rem; background: var(--tint); border-radius: var(--r-sm); }
.prose blockquote p { margin: 0; }
.prose code { background: var(--tint); padding: 0.1em 0.35em; border-radius: 4px; font-size: 0.92em; }
.meta { color: var(--muted); font-size: 0.92rem; margin: 0 0 1.5rem; }
.link-rows { list-style: none; margin: 0; padding: 0; border-top: 2px solid var(--red); }
.link-rows a { display: grid; gap: 0.25rem; padding: 1.3rem 0; border-bottom: 1px solid var(--line); text-decoration: none; color: var(--ink); }
.link-rows a:hover h3, .link-rows a:hover h2 { color: var(--brand); text-decoration: underline; }
.link-rows h2, .link-rows h3 { font-size: 1.3rem; }
.link-rows p { margin: 0; color: var(--muted); }
.link-rows .more { color: var(--brand); font-weight: 600; font-size: 0.95rem; }
.section-foot { margin-top: 1.5rem; }
.nav a[aria-current='page']:not(.btn) { color: var(--ink); border-color: var(--red); }
@media (min-width: 800px) { .foot.cols4 { grid-template-columns: 1.5fr 1fr 1fr 1fr; } }
.foot a { display: block; padding: 0.15rem 0; }
.two-col { display: grid; gap: 2rem; }
@media (min-width: 900px) { .two-col { grid-template-columns: 1fr 1fr; gap: 3.5rem; } }
.contact-lines { list-style: none; margin: 0 0 1.5rem; padding: 0; display: grid; gap: 0.5rem; font-size: 1.15rem; }
.contact-lines strong { display: inline-block; min-width: 5.5rem; }
.foot-gap { margin-top: 1.2rem; }

/* ---- Scroll motion (compositor-only: transform and opacity). Hidden states apply only when JS runs and motion is allowed. ---- */
.progress { position: fixed; inset: 0 0 auto 0; height: 3px; background: var(--brand); transform: scaleX(0); transform-origin: left; z-index: 60; pointer-events: none; }
.site-header { transition: box-shadow 0.25s; }
.site-header.scrolled { box-shadow: 0 6px 18px rgba(0, 0, 0, 0.5); }
.steps { display: grid; gap: 2rem; }
@media (min-width: 900px) { .steps { grid-template-columns: 0.8fr 1.2fr; gap: 4.5rem; } .steps-intro { position: sticky; top: 6rem; align-self: start; } }
.steps-list { list-style: none; margin: 0; padding: 0; display: grid; gap: 1rem; }
.steps-list li { display: grid; grid-template-columns: 3rem 1fr; gap: 1rem; padding: 1.4rem; border: 1px solid var(--line); border-radius: var(--r-sm); background: var(--tint); transition: border-color 0.3s, transform 0.3s; }
.steps-list li.is-active { border-color: var(--brand); transform: translateX(6px); }
.step-n { display: grid; place-items: center; width: 3rem; height: 3rem; border: 1px solid var(--line); background: var(--bg); color: var(--brand); font: 700 1rem var(--mono); transition: background-color 0.3s, color 0.3s; }
.is-active .step-n { background: var(--red); border-color: var(--red); color: #fff; }
.steps-list h3 { margin: 0 0 0.3rem; }
.steps-list p { margin: 0 0 0.4rem; }
.step-get { color: var(--muted); font-size: 0.95rem; }
@media (prefers-reduced-motion: no-preference) {
  .js .rv { opacity: 0; transform: translateY(26px); transition: opacity 0.7s cubic-bezier(0.16, 1, 0.3, 1) var(--d, 0ms), transform 0.7s cubic-bezier(0.16, 1, 0.3, 1) var(--d, 0ms); }
  .js .rv.in { opacity: 1; transform: none; }
  .js .steps-list li.rv.in { transition: opacity 0.7s var(--d, 0ms), transform 0.3s, border-color 0.3s; }
  .js [data-split].is-split .w { display: inline-block; opacity: 0; transform: translateY(0.5em); animation: word-in 0.7s cubic-bezier(0.16, 1, 0.3, 1) forwards; animation-delay: calc(var(--i) * 70ms + 100ms); }
  @keyframes word-in { to { opacity: 1; transform: none; } }
  .btn:hover { transform: translateY(-2px); }
  .link-rows li a { transition: transform 0.25s; }
  .link-rows li a:hover { transform: translateX(6px); }
}
@media (prefers-reduced-motion: reduce) { .progress { display: none; } }
