/* Blacklist His Number — design system
   Palette: black, white, neutral gray, and ONE red sampled from the logo (#E8202B).
   Every red on the site comes from --red (or an opacity of it). */

@font-face { font-family: "Inter"; src: url("/fonts/inter-var.woff2") format("woff2"); font-weight: 100 900; font-style: normal; font-display: swap; }
@font-face { font-family: "Inter"; src: url("/fonts/inter-var-italic.woff2") format("woff2"); font-weight: 100 900; font-style: italic; font-display: swap; }

:root {
  --red: #E8202B;
  --red-rgb: 232, 32, 43;
  --black: #000;
  --white: #fff;
  --gray-950: #0b0b0b;
  --gray-900: #121212;
  --gray-850: #181818;
  --gray-800: #222;
  --gray-700: #333;
  --gray-500: #6b6b6b;
  --gray-400: #8c8c8c;
  --gray-300: #b5b5b5;
  --gray-200: #d6d6d6;
  --line: rgba(255, 255, 255, 0.1);
  --line-strong: rgba(255, 255, 255, 0.18);
  --radius: 14px;
  --radius-sm: 10px;
  --wrap: 1200px;
  --pad: clamp(16px, 4vw, 40px);
  --header-h: 76px;
  --font: "Inter", ui-sans-serif, system-ui, -apple-system, "Segoe UI", Roboto, Arial, sans-serif;
  color-scheme: dark;
}

*, *::before, *::after { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; scroll-behavior: smooth; scroll-padding-top: calc(var(--header-h) + 16px); }
@media (prefers-reduced-motion: reduce) { html { scroll-behavior: auto; } *, *::before, *::after { animation: none !important; transition: none !important; } }
body {
  margin: 0; background: var(--black); color: var(--white);
  font-family: var(--font); font-size: 1rem; line-height: 1.6; font-weight: 400;
  -webkit-font-smoothing: antialiased; overflow-x: hidden;
}
body.is-locked { overflow: hidden; }
img { max-width: 100%; height: auto; display: block; }
a { color: var(--red); text-decoration: none; }
a:hover { text-decoration: underline; text-underline-offset: 3px; }
button, input, select, textarea { font: inherit; color: inherit; }
h1, h2, h3, h4 { margin: 0; line-height: 1.15; font-weight: 800; letter-spacing: -0.02em; }
p { margin: 0; }
:focus-visible { outline: 2px solid var(--white); outline-offset: 3px; border-radius: 6px; }
[hidden] { display: none !important; }
.sr-only { position: absolute !important; width: 1px; height: 1px; padding: 0; margin: -1px; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; border: 0; }
.wrap { width: 100%; max-width: var(--wrap); margin-inline: auto; padding-inline: var(--pad); }
.skip-link { position: absolute; left: 12px; top: -60px; z-index: 200; background: var(--white); color: var(--black); padding: 10px 14px; border-radius: 8px; font-weight: 700; }
.skip-link:focus { top: 12px; }

/* Icons — one family (Lucide), one stroke width, one set of sizes */
.icon { width: 1.25em; height: 1.25em; flex: none; stroke: currentColor; fill: none; stroke-width: 2; stroke-linecap: round; stroke-linejoin: round; vertical-align: middle; }
.icon-sm { width: 1rem; height: 1rem; }
.icon-md { width: 1.25rem; height: 1.25rem; }
.icon-lg { width: 1.75rem; height: 1.75rem; }
.icon-red { color: var(--red); }

/* Buttons */
.btn {
  display: inline-flex; align-items: center; justify-content: center; gap: 10px;
  min-height: 48px; padding: 0 22px; border-radius: 12px; border: 2px solid transparent;
  font-weight: 700; font-size: 1rem; line-height: 1; cursor: pointer; text-decoration: none !important;
  transition: background-color .15s ease, border-color .15s ease, color .15s ease, opacity .15s ease, transform .15s ease;
  -webkit-tap-highlight-color: transparent; white-space: nowrap;
}
.btn:active { transform: translateY(1px); }
.btn[disabled] { opacity: .55; cursor: not-allowed; transform: none; }
.btn-primary { background: var(--red); color: var(--white); border-color: var(--red); }
.btn-primary:hover:not([disabled]) { background: rgba(var(--red-rgb), .86); border-color: rgba(var(--red-rgb), .86); }
.btn-outline { background: var(--black); color: var(--white); border-color: var(--white); }
.btn-outline:hover:not([disabled]) { border-color: var(--red); color: var(--white); background: rgba(var(--red-rgb), .1); }
.btn-ghost { background: transparent; color: var(--gray-200); border-color: var(--line-strong); }
.btn-ghost:hover:not([disabled]) { border-color: var(--white); color: var(--white); }
.btn-lg { min-height: 58px; padding: 0 28px; font-size: 1.125rem; border-radius: 14px; }
.btn-sm { min-height: 40px; padding: 0 14px; font-size: .9375rem; border-radius: 10px; }
.icon-btn {
  display: inline-grid; place-items: center; width: 44px; height: 44px; border-radius: 10px;
  background: transparent; border: 1px solid transparent; color: var(--white); cursor: pointer;
}
.icon-btn:hover { border-color: var(--line-strong); }
.link-btn { background: none; border: 0; padding: 0; color: var(--red); font-weight: 600; cursor: pointer; display: inline-flex; align-items: center; gap: 6px; }
.link-btn:hover { text-decoration: underline; text-underline-offset: 3px; }
.link-muted { color: var(--gray-400); font-weight: 500; font-size: .875rem; }
.link-muted:hover { color: var(--white); }

/* ---------- Header ---------- */
.site-header { position: sticky; top: 0; z-index: 50; background: rgba(0,0,0,.92); backdrop-filter: saturate(140%) blur(10px); -webkit-backdrop-filter: saturate(140%) blur(10px); border-bottom: 1px solid var(--line); }
.header-inner { display: flex; align-items: center; justify-content: space-between; gap: 16px; height: var(--header-h); }
.brand { display: inline-flex; align-items: center; flex: none; }
.brand img { height: 46px; width: auto; aspect-ratio: 1917 / 464; }
.nav-desktop { display: flex; align-items: center; gap: 6px; }
.nav-desktop a.nav-link { color: var(--gray-200); font-weight: 600; font-size: .9375rem; padding: 10px 14px; border-radius: 10px; }
.nav-desktop a.nav-link:hover { color: var(--white); text-decoration: none; background: rgba(255,255,255,.06); }
.nav-desktop a.nav-link[aria-current="page"] { color: var(--white); box-shadow: inset 0 -2px 0 var(--red); border-radius: 0; }
.nav-desktop .btn { margin-left: 10px; }
.nav-mobile { display: none; align-items: center; gap: 6px; }
.mobile-menu { display: none; }

@media (max-width: 899px) {
  :root { --header-h: 64px; }
  .nav-desktop { display: none; }
  .nav-mobile { display: flex; }
  .brand img { height: 36px; }
  .mobile-menu {
    position: absolute; top: 100%; left: 0; right: 0; z-index: 49; display: block;
    background: var(--black); border-bottom: 1px solid var(--line);
    transform: translateY(-8px); opacity: 0; visibility: hidden; transition: opacity .18s ease, transform .18s ease, visibility .18s;
    max-height: calc(100dvh - var(--header-h)); overflow-y: auto;
  }
  .mobile-menu.is-open { transform: none; opacity: 1; visibility: visible; }
  .mobile-menu ul { list-style: none; margin: 0; padding: 8px var(--pad) 20px; }
  .mobile-menu li + li { border-top: 1px solid var(--line); }
  .mobile-menu a, .mobile-menu button.menu-item {
    display: flex; align-items: center; gap: 14px; width: 100%; padding: 16px 4px; color: var(--white);
    font-weight: 600; font-size: 1.0625rem; background: none; border: 0; cursor: pointer; text-align: left;
  }
  .mobile-menu a:hover, .mobile-menu button.menu-item:hover { text-decoration: none; color: var(--red); }
  .mobile-menu .icon { color: var(--red); }
  .mobile-menu .btn .icon { color: var(--white); }
  .mobile-menu .menu-cta { padding-top: 12px; }
  .mobile-menu .menu-cta .btn { width: 100%; }
}
@media (max-width: 380px) { .brand img { height: 31px; } .nav-mobile { gap: 2px; } .nav-mobile .btn-sm { padding: 0 11px; } }
@media (max-width: 349px) { .brand img { height: 28px; } .nav-mobile .btn-report-label { display: none; } .nav-mobile .btn-sm { padding: 0; width: 40px; } .icon-btn { width: 40px; } }

/* ---------- Hero ---------- */
.hero { position: relative; padding-block: clamp(36px, 6vw, 80px) clamp(28px, 4vw, 48px); overflow: hidden; }
.hero-grid { display: grid; grid-template-columns: minmax(0, 1.05fr) minmax(0, 1fr); align-items: center; gap: clamp(24px, 4vw, 56px); }
.eyebrow { display: inline-flex; align-items: center; gap: 14px; color: var(--red); font-weight: 700; font-size: .8125rem; letter-spacing: .22em; text-transform: uppercase; }
.eyebrow::before { content: ""; width: 36px; height: 2px; background: var(--red); flex: none; }
.hero h1 { margin-top: 22px; font-size: clamp(2.875rem, 6.2vw, 6rem); font-weight: 900; line-height: .98; letter-spacing: -0.045em; }
.hero h1 .accent { display: block; color: var(--red); font-style: italic; letter-spacing: -0.05em; padding-right: .06em; }
.hero-lede { margin-top: 24px; max-width: 34ch; font-size: clamp(1.125rem, 1.6vw, 1.3125rem); line-height: 1.55; color: var(--white); font-weight: 400; }
.hero-ctas { margin-top: 34px; display: flex; flex-wrap: wrap; gap: 14px; }
.hero-art { position: relative; justify-self: end; width: 100%; max-width: 660px; }
.hero-art picture, .hero-art img { width: 100%; aspect-ratio: 1200 / 896; }
.hero-art img {
  -webkit-mask-image: radial-gradient(ellipse 72% 72% at 50% 48%, #000 58%, transparent 100%);
  mask-image: radial-gradient(ellipse 72% 72% at 50% 48%, #000 58%, transparent 100%);
  animation: art-in 1.1s ease-out both, drift 9s ease-in-out 1.1s infinite;
}
/* Typing-indicator overlay sits exactly on the illustration's white bubble */
.typing { position: absolute; left: 0; top: 0; width: 100%; height: 100%; pointer-events: none; }
.typing span { position: absolute; top: 55.8%; width: 1.7%; aspect-ratio: 1; margin: -.85% 0 0 -.85%; border-radius: 50%; background: var(--red); animation: typing 1.4s ease-in-out infinite; }
.typing span:nth-child(1) { left: 51.4%; }
.typing span:nth-child(2) { left: 54.75%; animation-delay: .18s; }
.typing span:nth-child(3) { left: 57.9%; animation-delay: .36s; }
.hero-art .typing { animation: drift 9s ease-in-out 1.1s infinite; }
@keyframes typing { 0%, 60%, 100% { transform: translateY(0) scale(1); } 30% { transform: translateY(-28%) scale(1.12); } }
@keyframes drift { 0%, 100% { transform: translateY(0); } 50% { transform: translateY(-6px); } }
@keyframes art-in { from { opacity: 0; transform: translateY(10px); } to { opacity: 1; transform: none; } }

@media (max-width: 1023px) {
  .hero-grid { grid-template-columns: 1fr; }
  .hero-copy { max-width: 720px; }
  .hero-art { justify-self: center; max-width: 600px; margin-top: 4px; }
}
@media (max-width: 639px) {
  .hero h1 { font-size: clamp(2.6rem, 13vw, 3.75rem); margin-top: 18px; }
  .eyebrow { font-size: .75rem; letter-spacing: .18em; gap: 10px; }
  .eyebrow::before { width: 26px; }
  .hero-lede { margin-top: 18px; }
  .hero-ctas { flex-direction: column; margin-top: 26px; gap: 12px; }
  .hero-ctas .btn { width: 100%; }
  .hero-art { max-width: 100%; margin-inline: calc(var(--pad) * -0.5); width: calc(100% + var(--pad)); }
}

/* ---------- Trust strip ---------- */
.trust { border-block: 1px solid var(--line); background: var(--gray-950); }
.trust ul { list-style: none; margin: 0 auto; padding: 0; display: grid; grid-template-columns: repeat(3, 1fr); }
.trust li { display: flex; align-items: center; justify-content: center; gap: 14px; padding: 26px 16px; }
.trust li + li { border-left: 1px solid var(--line); }
.trust .icon { color: var(--red); width: 30px; height: 30px; }
.trust strong { display: block; font-weight: 700; font-size: 1.0625rem; color: var(--white); line-height: 1.25; }
.trust small { display: block; color: var(--gray-400); font-size: .8125rem; line-height: 1.35; margin-top: 2px; }
@media (max-width: 767px) {
  .trust li { flex-direction: column; text-align: center; gap: 10px; padding: 20px 8px; }
  .trust strong { font-size: .9375rem; }
  .trust small { display: none; }
  .trust .icon { width: 26px; height: 26px; }
}
@media (max-width: 379px) {
  .trust ul { grid-template-columns: 1fr; }
  .trust li { flex-direction: row; justify-content: flex-start; text-align: left; padding: 14px 4px; }
  .trust li + li { border-left: 0; border-top: 1px solid var(--line); }
}

/* ---------- Sections ---------- */
.section { padding-block: clamp(56px, 8vw, 104px); }
.section-head { display: flex; align-items: end; justify-content: space-between; gap: 16px; flex-wrap: wrap; margin-bottom: clamp(24px, 4vw, 40px); }
.section-title { font-size: clamp(1.75rem, 3.4vw, 2.625rem); font-weight: 800; letter-spacing: -0.03em; }
.section-sub { color: var(--gray-300); margin-top: 10px; max-width: 60ch; font-size: 1.0625rem; }
.kicker { color: var(--red); font-weight: 700; font-size: .75rem; letter-spacing: .2em; text-transform: uppercase; display: block; margin-bottom: 12px; }

/* ---------- Search panel ---------- */
.search-section { padding-top: clamp(40px, 6vw, 72px); }
.search-card {
  position: relative; background: var(--gray-900); border: 1px solid var(--line); border-radius: 20px;
  padding: clamp(22px, 4vw, 44px); overflow: hidden;
}
.search-card::before { content: ""; position: absolute; inset: 0 0 auto 0; height: 3px; background: var(--red); }
.search-card-grid { display: grid; grid-template-columns: minmax(0, .9fr) minmax(0, 1.1fr); gap: clamp(20px, 4vw, 48px); align-items: center; }
.search-card h2 { font-size: clamp(1.75rem, 3.2vw, 2.375rem); letter-spacing: -0.03em; }
.search-card .section-sub { margin-top: 10px; }
.search-form .row { display: flex; gap: 12px; }
.field-phone { position: relative; flex: 1; min-width: 0; }
.field-phone .icon-lead { position: absolute; left: 16px; top: 50%; transform: translateY(-50%); color: var(--gray-400); pointer-events: none; }
.input {
  width: 100%; min-height: 52px; padding: 12px 14px; border-radius: 12px; background: var(--black);
  border: 1.5px solid var(--gray-700); color: var(--white); font-size: 1rem; transition: border-color .15s ease, box-shadow .15s ease;
}
.input::placeholder { color: var(--gray-500); }
.input:hover { border-color: var(--gray-500); }
.input:focus { outline: none; border-color: var(--red); box-shadow: 0 0 0 3px rgba(var(--red-rgb), .22); }
.input[aria-invalid="true"] { border-color: var(--red); }
.input-phone { min-height: 58px; padding-left: 48px; padding-right: 50px; font-size: 1.1875rem; font-weight: 600; letter-spacing: .02em; font-variant-numeric: tabular-nums; }
.clear-btn { position: absolute; right: 6px; top: 50%; transform: translateY(-50%); width: 44px; height: 44px; display: grid; place-items: center; background: none; border: 0; border-radius: 10px; color: var(--gray-400); cursor: pointer; }
.clear-btn:hover { color: var(--white); background: rgba(255,255,255,.06); }
.clear-btn[hidden] { display: none; }
.search-form .btn { min-height: 58px; padding-inline: 28px; font-size: 1.0625rem; }
.form-note { display: flex; align-items: center; gap: 8px; margin-top: 14px; color: var(--gray-400); font-size: .875rem; }
.form-note .icon { color: var(--gray-400); }
.field-error { display: flex; align-items: flex-start; gap: 6px; margin-top: 8px; color: var(--white); font-size: .875rem; font-weight: 500; }
.field-error .icon { color: var(--red); margin-top: 2px; }
.field-error[hidden] { display: none; }
@media (max-width: 899px) { .search-card-grid { grid-template-columns: 1fr; } }
@media (max-width: 559px) {
  .search-form .row { flex-direction: column; }
  .search-form .btn { width: 100%; }
}

/* Search results */
.results { margin-top: 28px; }
.results:empty { display: none; }
.results-head { display: flex; flex-wrap: wrap; align-items: baseline; justify-content: space-between; gap: 8px 16px; padding-top: 24px; border-top: 1px solid var(--line); }
.results-head h3 { font-size: 1.25rem; }
.results-head h3 .count { color: var(--red); }
.notice { display: flex; gap: 12px; align-items: flex-start; padding: 14px 16px; border-radius: 12px; background: rgba(255,255,255,.04); border: 1px solid var(--line); color: var(--gray-300); font-size: .9375rem; }
.notice .icon { color: var(--red); margin-top: 2px; }
.notice-strong { border-color: rgba(var(--red-rgb), .55); background: rgba(var(--red-rgb), .08); color: var(--gray-200); }
.notice-strong strong { color: var(--white); }
.results .notice { margin-top: 14px; }
.result-list { display: grid; gap: 14px; margin-top: 18px; }
.empty-state { margin-top: 0; padding: 28px 24px; border: 1px dashed var(--line-strong); border-radius: 14px; text-align: center; color: var(--gray-300); }
.empty-state .icon { color: var(--red); width: 30px; height: 30px; margin-bottom: 10px; }
.empty-state h3 { color: var(--white); font-size: 1.1875rem; margin-bottom: 6px; }

/* Report card (shared by search results + mobile feed) */
.report-card { background: var(--black); border: 1px solid var(--line); border-radius: var(--radius); padding: 20px; }
.report-card .meta { display: flex; flex-wrap: wrap; align-items: center; gap: 6px 16px; color: var(--gray-400); font-size: .875rem; }
.report-card .meta span { display: inline-flex; align-items: center; gap: 6px; }
.report-card .meta .icon { color: var(--gray-400); }
.report-card .masked { color: var(--white); font-weight: 700; font-variant-numeric: tabular-nums; letter-spacing: .04em; font-size: 1rem; }
.report-card p.desc { margin-top: 12px; color: var(--gray-200); white-space: pre-line; overflow-wrap: anywhere; }
.report-card .card-foot { display: flex; justify-content: flex-end; margin-top: 14px; }
.badges { display: flex; flex-wrap: wrap; gap: 6px; margin-top: 12px; }
.badge { display: inline-flex; align-items: center; min-height: 26px; padding: 3px 10px; border-radius: 999px; font-size: .78rem; font-weight: 600; line-height: 1.2; color: var(--white); background: rgba(var(--red-rgb), .16); border: 1px solid rgba(var(--red-rgb), .7); }

/* ---------- How it works ---------- */
.how { background: var(--gray-950); border-block: 1px solid var(--line); }
.steps { list-style: none; margin: 0; padding: 0; display: grid; grid-template-columns: repeat(3, 1fr); gap: clamp(14px, 2.4vw, 28px); counter-reset: step; }
.step { position: relative; background: var(--gray-900); border: 1px solid var(--line); border-radius: 18px; padding: clamp(22px, 3vw, 34px); }
.step-top { display: flex; align-items: center; justify-content: space-between; margin-bottom: 22px; }
.step-num { width: 44px; height: 44px; border-radius: 50%; display: grid; place-items: center; background: var(--red); color: var(--white); font-weight: 800; font-size: 1.125rem; }
.step h3 { font-size: 1.3125rem; color: var(--white); }
.step p { margin-top: 10px; color: var(--gray-300); }
.how-cta { margin-top: 32px; display: flex; flex-wrap: wrap; gap: 12px; }
@media (max-width: 899px) {
  .steps { grid-template-columns: 1fr; }
  .step { display: grid; grid-template-columns: auto 1fr; gap: 0 18px; align-items: start; }
  .step-top { flex-direction: column; gap: 14px; margin: 0; }
}
@media (max-width: 559px) { .how-cta .btn { width: 100%; } }

/* ---------- Recent reports ---------- */
.feed-table { border: 1px solid var(--line); border-radius: 16px; overflow: hidden; background: var(--gray-950); }
.feed-row { display: grid; grid-template-columns: 150px minmax(0, 1.3fr) 70px 128px minmax(0, 2.2fr) 44px; gap: 18px; align-items: start; padding: 18px 22px; }
.feed-row + .feed-row { border-top: 1px solid var(--line); }
.feed-row.head { padding-block: 13px; background: var(--gray-900); color: var(--gray-400); font-size: .75rem; font-weight: 700; letter-spacing: .12em; text-transform: uppercase; align-items: center; }
.feed-row .masked { font-weight: 700; font-variant-numeric: tabular-nums; letter-spacing: .04em; color: var(--white); }
.feed-row .cell-muted { color: var(--gray-300); font-size: .9375rem; }
.feed-row .desc { color: var(--gray-200); font-size: .9375rem; overflow-wrap: anywhere; }
.feed-row .badges { margin-top: 0; }
.feed-cards { display: none; }
.feed-more { display: flex; justify-content: center; margin-top: 24px; }
.feed-status { padding: 32px 20px; text-align: center; color: var(--gray-400); }
.flag-btn { width: 36px; height: 36px; display: grid; place-items: center; border-radius: 8px; background: none; border: 1px solid transparent; color: var(--gray-500); cursor: pointer; }
.flag-btn:hover { color: var(--red); border-color: var(--line-strong); }
.flag-text { background: none; border: 0; color: var(--gray-400); font-size: .8125rem; font-weight: 600; display: inline-flex; gap: 6px; align-items: center; cursor: pointer; padding: 6px 0; }
.flag-text:hover { color: var(--red); }
.skeleton { height: 14px; border-radius: 6px; background: linear-gradient(90deg, var(--gray-850), var(--gray-800), var(--gray-850)); background-size: 200% 100%; animation: shimmer 1.4s linear infinite; }
@keyframes shimmer { to { background-position: -200% 0; } }
@media (max-width: 1023px) { .feed-row { grid-template-columns: 130px minmax(0, 1.2fr) 56px 112px minmax(0, 1.8fr) 40px; gap: 14px; padding-inline: 16px; } }
@media (max-width: 859px) {
  .feed-table { display: none; }
  .feed-cards { display: grid; gap: 12px; }
}
@media (min-width: 560px) and (max-width: 859px) { .feed-cards { grid-template-columns: 1fr 1fr; } }

/* Disclaimer band */
.disclaimer-band { border-top: 1px solid var(--line); }
.disclaimer-band .wrap { display: flex; gap: 14px; align-items: flex-start; padding-block: 28px; color: var(--gray-300); font-size: .9375rem; }
.disclaimer-band .icon { color: var(--red); margin-top: 3px; }

/* ---------- Footer ---------- */
.site-footer { border-top: 1px solid var(--line); background: var(--gray-950); padding-block: 48px 28px; color: var(--gray-400); font-size: .9375rem; }
.footer-grid { display: grid; grid-template-columns: 1.3fr 1fr 1fr; gap: 32px; }
.footer-brand img { height: 40px; width: auto; aspect-ratio: 1917 / 464; }
.footer-brand p { margin-top: 14px; max-width: 38ch; }
.footer-col h2 { font-size: .75rem; letter-spacing: .16em; text-transform: uppercase; color: var(--white); font-weight: 700; margin-bottom: 12px; }
.footer-col ul { list-style: none; margin: 0; padding: 0; display: grid; gap: 2px; }
.footer-col a, .footer-col button { color: var(--gray-300); font-weight: 500; background: none; border: 0; padding: 6px 0; cursor: pointer; font-size: .9375rem; text-align: left; display: inline-block; }
.footer-col a:hover, .footer-col button:hover { color: var(--white); text-decoration: none; }
.footer-bottom { margin-top: 36px; padding-top: 20px; border-top: 1px solid var(--line); display: flex; flex-wrap: wrap; justify-content: space-between; gap: 10px 24px; font-size: .8125rem; }
.footer-bottom .disc { color: var(--gray-300); }
@media (max-width: 767px) {
  .footer-grid { grid-template-columns: 1fr 1fr; }
  .footer-brand { grid-column: 1 / -1; }
}

/* ---------- Forms (modal, flag, contact) ---------- */
.field { margin-top: 22px; }
.field:first-child { margin-top: 0; }
.label { display: flex; align-items: center; gap: 8px; font-weight: 700; font-size: .9375rem; margin-bottom: 8px; color: var(--white); }
.label .num { width: 22px; height: 22px; border-radius: 50%; background: var(--red); color: var(--white); font-size: .75rem; display: inline-grid; place-items: center; flex: none; }
.label .opt { color: var(--gray-400); font-weight: 500; font-size: .8125rem; }
.label .req { color: var(--red); }
.hint { color: var(--gray-400); font-size: .8125rem; margin-top: 6px; }
.input-wrap { position: relative; }
.input-wrap .icon-lead { position: absolute; left: 14px; top: 50%; transform: translateY(-50%); color: var(--gray-400); pointer-events: none; }
.input-wrap .input { padding-left: 44px; }
.input-wrap .icon-trail { position: absolute; right: 14px; top: 50%; transform: translateY(-50%); color: var(--gray-400); pointer-events: none; }
select.input { appearance: none; -webkit-appearance: none; padding-right: 44px; cursor: pointer; }
select.input option { background: var(--gray-900); color: var(--white); }
input[type="date"].input { padding-right: 14px; min-width: 0; }
input[type="date"].input::-webkit-calendar-picker-indicator { filter: invert(1); opacity: .7; cursor: pointer; }
textarea.input { min-height: 160px; resize: vertical; line-height: 1.55; }
.counter-row { display: flex; justify-content: space-between; gap: 12px; margin-top: 6px; font-size: .8125rem; color: var(--gray-400); }
.counter { font-variant-numeric: tabular-nums; flex: none; }
.counter.is-near { color: var(--white); }
.counter.is-over { color: var(--red); font-weight: 700; }

.cat-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 10px; }
.cat { position: relative; border: 1.5px solid var(--gray-700); border-radius: 12px; background: var(--black); transition: border-color .15s ease, background-color .15s ease; }
.cat:hover { border-color: var(--gray-500); }
.cat.is-checked { border-color: var(--red); background: rgba(var(--red-rgb), .08); }
.cat-head { display: flex; align-items: center; }
.cat label { flex: 1; display: flex; align-items: center; gap: 12px; padding: 13px 4px 13px 14px; cursor: pointer; font-weight: 600; font-size: .9375rem; min-height: 50px; line-height: 1.3; }
.cat input[type="checkbox"] { position: absolute; opacity: 0; width: 1px; height: 1px; }
.check { width: 22px; height: 22px; border-radius: 6px; border: 2px solid var(--gray-500); display: grid; place-items: center; flex: none; transition: all .15s ease; }
.check .icon { width: 14px; height: 14px; stroke-width: 3; opacity: 0; color: var(--white); }
.cat input:checked + .check, .ack input:checked + .check { background: var(--red); border-color: var(--red); }
.cat input:checked + .check .icon, .ack input:checked + .check .icon { opacity: 1; }
.cat input:focus-visible + .check, .ack input:focus-visible + .check { outline: 2px solid var(--white); outline-offset: 2px; }
.cat .info-btn { width: 44px; height: 44px; margin-right: 3px; flex: none; display: grid; place-items: center; background: none; border: 0; border-radius: 8px; color: var(--gray-400); cursor: pointer; }
.cat .info-btn:hover, .cat .info-btn[aria-expanded="true"] { color: var(--red); }
.cat-desc { padding: 0 14px 14px 48px; color: var(--gray-300); font-size: .8125rem; line-height: 1.5; }
.cat-desc[hidden] { display: none; }
@media (max-width: 559px) { .cat-grid { grid-template-columns: 1fr; } }

.ack { display: flex; gap: 14px; align-items: flex-start; padding: 16px; border: 1.5px solid var(--gray-700); border-radius: 12px; cursor: pointer; font-size: .9375rem; color: var(--gray-200); line-height: 1.5; }
.ack.is-checked { border-color: var(--red); background: rgba(var(--red-rgb), .06); }
.ack input { position: absolute; opacity: 0; width: 1px; height: 1px; }
.ack .check { margin-top: 1px; }
.form-alert { display: flex; gap: 10px; align-items: flex-start; padding: 14px 16px; border-radius: 12px; border: 1px solid rgba(var(--red-rgb), .7); background: rgba(var(--red-rgb), .1); color: var(--white); font-size: .9375rem; font-weight: 500; }
.form-alert .icon { color: var(--red); margin-top: 2px; }
.form-alert[hidden] { display: none; }
.hp { position: absolute !important; left: -9999px !important; width: 1px; height: 1px; overflow: hidden; }

/* ---------- Modal ---------- */
dialog.modal { padding: 0; border: 0; background: transparent; color: var(--white); max-width: none; max-height: none; width: 100%; height: 100%; margin: 0; overflow: clip; }
dialog.modal::backdrop { background: rgba(0, 0, 0, .78); backdrop-filter: blur(4px); -webkit-backdrop-filter: blur(4px); }
dialog.modal[open] { display: grid; place-items: center; padding: 24px; }
.modal-panel {
  position: relative; width: min(760px, 100%); max-height: min(92dvh, 980px); display: flex; flex-direction: column;
  background: var(--gray-900); border: 1px solid var(--line-strong); border-radius: 20px; overflow: clip;
  box-shadow: 0 30px 80px rgba(0,0,0,.6); animation: modal-in .22s ease-out;
}
.modal-panel.is-small { width: min(520px, 100%); }
.modal-panel::before { content: ""; position: absolute; inset: 0 0 auto 0; height: 3px; background: var(--red); z-index: 2; }
@keyframes modal-in { from { opacity: 0; transform: translateY(14px) scale(.985); } to { opacity: 1; transform: none; } }
.modal-header { display: flex; align-items: center; justify-content: space-between; gap: 12px; padding: 18px 18px 16px 28px; border-bottom: 1px solid var(--line); flex: none; }
.modal-header h2 { font-size: 1.375rem; display: flex; align-items: center; gap: 10px; }
.modal-header h2 .icon { color: var(--red); }
.modal-body { flex: 1 1 auto; min-height: 0; overflow-y: auto; overscroll-behavior: contain; padding: 26px 28px 28px; -webkit-overflow-scrolling: touch; }
.modal-footer { flex: none; display: flex; align-items: center; justify-content: space-between; gap: 12px; padding: 16px 28px; border-top: 1px solid var(--line); background: var(--gray-900); }
.modal-footer .btn-primary { min-width: 190px; }
.draft-note { color: var(--gray-400); font-size: .8125rem; }
.guidelines { background: var(--black); border: 1px solid var(--line); border-radius: 16px; padding: 22px; }
.guidelines h3 { font-size: 1.1875rem; display: flex; gap: 10px; align-items: center; }
.guidelines h3 .icon { color: var(--red); }
.guidelines > p { color: var(--gray-300); margin-top: 6px; }
.guidelines h4 { margin-top: 18px; font-size: .75rem; letter-spacing: .16em; text-transform: uppercase; color: var(--gray-400); font-weight: 700; }
.rules { margin: 10px 0 0; padding: 0; list-style: none; display: grid; gap: 9px; }
.rules li { position: relative; padding-left: 20px; color: var(--gray-200); font-size: .9rem; line-height: 1.5; }
.rules li::before { content: ""; position: absolute; left: 2px; top: .62em; width: 7px; height: 7px; border-radius: 2px; background: var(--red); }
.guidelines .notice-strong { margin-top: 18px; }
.form-section-title { margin-top: 30px; margin-bottom: 18px; padding-top: 24px; border-top: 1px solid var(--line); font-size: 1.1875rem; }
.success { text-align: center; padding: 40px 12px 24px; }
.success .icon-wrap { width: 72px; height: 72px; border-radius: 50%; margin: 0 auto 20px; display: grid; place-items: center; background: rgba(var(--red-rgb), .14); border: 1.5px solid var(--red); }
.success .icon-wrap .icon { color: var(--red); width: 34px; height: 34px; }
.success h3 { font-size: 1.75rem; }
.success p { margin: 12px auto 0; max-width: 46ch; color: var(--gray-200); }
.success .actions { margin-top: 28px; display: flex; flex-wrap: wrap; gap: 12px; justify-content: center; }
.radio-list { display: grid; gap: 8px; }
.radio { display: flex; gap: 12px; align-items: center; padding: 12px 14px; border: 1.5px solid var(--gray-700); border-radius: 12px; cursor: pointer; font-size: .9375rem; }
.radio:has(input:checked) { border-color: var(--red); background: rgba(var(--red-rgb), .06); }
.radio input { accent-color: var(--red); width: 18px; height: 18px; margin: 0; flex: none; }
.spinner { animation: spin .8s linear infinite; }
@keyframes spin { to { transform: rotate(360deg); } }

@media (max-width: 639px) {
  dialog.modal[open] { padding: 8px; place-items: stretch; }
  .modal-panel, .modal-panel.is-small { width: 100%; height: calc(100vh - 16px); height: calc(100dvh - 16px); max-height: none; border-radius: 16px; }
  .modal-panel.is-small { height: auto; max-height: calc(100dvh - 16px); align-self: end; }
  .modal-header { padding: 12px 10px 12px 18px; }
  .modal-header h2 { font-size: 1.1875rem; }
  .modal-body { padding: 20px 18px 24px; }
  .guidelines { padding: 18px 16px; }
  .modal-footer { padding: 12px 18px calc(12px + env(safe-area-inset-bottom)); flex-direction: column-reverse; align-items: stretch; }
  .modal-footer .btn-primary { width: 100%; }
  .draft-note { text-align: center; }
}

/* ---------- Content pages ---------- */
.page-hero { padding-block: clamp(40px, 7vw, 88px) clamp(20px, 3vw, 32px); border-bottom: 1px solid var(--line); }
.page-hero h1 { font-size: clamp(2.25rem, 5vw, 3.75rem); font-weight: 900; letter-spacing: -0.04em; margin-top: 16px; }
.page-hero p { color: var(--gray-300); margin-top: 14px; max-width: 62ch; font-size: 1.125rem; }
.prose { max-width: 760px; padding-block: clamp(32px, 5vw, 56px) clamp(56px, 8vw, 96px); }
.prose h2 { font-size: 1.375rem; margin-top: 40px; margin-bottom: 12px; }
.prose h2:first-child { margin-top: 0; }
.prose p, .prose li { color: var(--gray-200); }
.prose p + p { margin-top: 14px; }
.prose ul { padding-left: 0; list-style: none; display: grid; gap: 10px; margin: 12px 0 0; }
.prose ul li { position: relative; padding-left: 22px; }
.prose ul li::before { content: ""; position: absolute; left: 2px; top: .62em; width: 7px; height: 7px; border-radius: 2px; background: var(--red); }
.prose .notice { margin-top: 20px; }
.prose .updated { color: var(--gray-400); font-size: .875rem; margin-bottom: 28px; }
.contact-card { background: var(--gray-900); border: 1px solid var(--line); border-radius: 18px; padding: clamp(20px, 4vw, 34px); }
.contact-card .btn-primary { margin-top: 24px; }
@media (max-width: 559px) { .contact-card .btn-primary { width: 100%; } }

/* Toast */
.toast { position: fixed; left: 50%; bottom: 24px; transform: translate(-50%, 20px); opacity: 0; visibility: hidden; z-index: 300; background: var(--white); color: var(--black); font-weight: 600; padding: 12px 18px; border-radius: 12px; display: flex; gap: 10px; align-items: center; max-width: calc(100% - 32px); transition: all .2s ease; box-shadow: 0 10px 30px rgba(0,0,0,.5); }
.toast .icon { color: var(--red); }
.toast.is-visible { opacity: 1; visibility: visible; transform: translate(-50%, 0); }

@media (max-width: 399px) {
  .search-card { padding: 22px 16px; border-radius: 16px; }
  .input-phone { font-size: 1.0625rem; letter-spacing: 0; padding-left: 42px; padding-right: 46px; }
  .field-phone .icon-lead { left: 13px; }
  .clear-btn { right: 2px; }
}
