/* NudeGuard - single stylesheet. Dark, quiet, warm accent. */
@font-face {
  font-family: "Figtree";
  src: url("/fonts/figtree-latin.woff2") format("woff2");
  font-weight: 300 900;
  font-display: swap;
}
@font-face {
  font-family: "Instrument Serif";
  src: url("/fonts/instrument-serif-latin.woff2") format("woff2");
  font-weight: 400;
  font-style: normal;
  font-display: swap;
}
@font-face {
  font-family: "Instrument Serif";
  src: url("/fonts/instrument-serif-italic-latin.woff2") format("woff2");
  font-weight: 400;
  font-style: italic;
  font-display: swap;
}

:root {
  --bg: #0b0d12;
  --bg-2: #0f1218;
  --surface: #141821;
  --surface-2: #1a1f2a;
  --line: rgba(255, 255, 255, 0.08);
  --line-2: rgba(255, 255, 255, 0.14);
  --text: #f3efea;
  --muted: #a4aab5;
  --dim: #7b818d;
  --coral: #ff7a59;
  --coral-2: #ff9b7e;
  --peach: #ffd3c4;
  --mint: #7fd6c9;
  --radius: 22px;
  --serif: "Instrument Serif", "Iowan Old Style", Georgia, serif;
  --sans: "Figtree", system-ui, -apple-system, "Segoe UI", Roboto, sans-serif;
  --wrap: 1160px;
  color-scheme: dark;
}

*, *::before, *::after { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; scroll-behavior: smooth; }
body {
  margin: 0;
  background: var(--bg);
  color: var(--text);
  font: 400 1.0625rem/1.6 var(--sans);
  -webkit-font-smoothing: antialiased;
  text-rendering: optimizeLegibility;
  overflow-x: hidden;
}
img { max-width: 100%; display: block; }
a { color: var(--coral-2); text-underline-offset: 3px; }
a:hover { color: var(--peach); }
h1, h2, h3 { font-family: var(--serif); font-weight: 400; letter-spacing: -0.012em; margin: 0; text-wrap: balance; }
p { margin: 0; text-wrap: pretty; }
:focus-visible { outline: 2px solid var(--coral); outline-offset: 3px; border-radius: 6px; }
.sr-only { position: absolute; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; }
.skip { position: absolute; left: 12px; top: -60px; z-index: 50; background: var(--coral); color: var(--bg); padding: 10px 16px; border-radius: 10px; font-weight: 650; text-decoration: none; }
.skip:focus { top: 12px; }
.wrap { width: min(var(--wrap), 100% - 40px); margin-inline: auto; }
.narrow { --wrap: 760px; }
.kicker { font-size: 0.8rem; font-weight: 650; letter-spacing: 0.16em; text-transform: uppercase; color: var(--coral-2); margin-bottom: 14px; }
section h2 { font-size: clamp(2rem, 4.4vw, 3.25rem); line-height: 1.06; }

/* ------------------------------------------------------------- nav */
.nav {
  position: absolute; inset: 0 0 auto 0; z-index: 20;
  display: flex; align-items: center; gap: 28px;
  padding: 22px max(20px, calc((100% - var(--wrap)) / 2));
}
.brand { display: inline-flex; align-items: center; gap: 10px; color: var(--text); text-decoration: none; font-weight: 650; font-size: 1.12rem; letter-spacing: -0.01em; }
.brand:hover { color: var(--text); }
.mark { width: 28px; height: 28px; flex: none; }
.links { display: flex; gap: 26px; margin-left: auto; }
.links a, .nav-help { color: var(--muted); text-decoration: none; font-size: 0.95rem; font-weight: 500; }
.links a:hover { color: var(--text); }
.nav-help { color: var(--text); border: 1px solid var(--line-2); padding: 8px 14px; border-radius: 999px; background: rgba(255, 255, 255, 0.03); }
.nav-help:hover { border-color: var(--coral); color: var(--text); }

/* ------------------------------------------------------------- hero */
.hero { position: relative; isolation: isolate; padding-top: clamp(100px, 12vh, 150px); text-align: center; overflow: hidden; }
.hero::before { /* faint warm glow behind the headline */
  content: ""; position: absolute; z-index: -2; left: 50%; top: -10%; width: min(1100px, 120vw); aspect-ratio: 2 / 1; transform: translateX(-50%);
  background: radial-gradient(closest-side, rgba(70, 62, 140, 0.28), transparent 70%);
  pointer-events: none;
}
.hero-copy { position: relative; z-index: 2; width: min(860px, 100% - 40px); margin-inline: auto; }
.eyebrow {
  display: inline-flex; align-items: center; gap: 10px; padding: 7px 14px 7px 12px; border-radius: 999px;
  border: 1px solid var(--line-2); background: rgba(255, 255, 255, 0.04); color: var(--muted); font-size: 0.88rem; font-weight: 550;
  margin-bottom: 26px; backdrop-filter: blur(8px);
}
.pulse { width: 8px; height: 8px; border-radius: 50%; background: var(--coral); box-shadow: 0 0 0 0 rgba(255, 122, 89, 0.6); animation: pulse 2.4s infinite; }
@keyframes pulse { 0% { box-shadow: 0 0 0 0 rgba(255, 122, 89, 0.55); } 70% { box-shadow: 0 0 0 10px rgba(255, 122, 89, 0); } 100% { box-shadow: 0 0 0 0 rgba(255, 122, 89, 0); } }
.hero h1 { font-size: clamp(2.75rem, 7.2vw, 5.6rem); line-height: 0.98; }
.hero h1 em {
  font-style: italic; padding-right: 0.06em;
  background: linear-gradient(100deg, #ffb39c 0%, var(--coral) 55%, #ff9573 100%);
  -webkit-background-clip: text; background-clip: text; color: transparent;
}
.lede { margin: 22px auto 0; max-width: 600px; color: var(--muted); font-size: clamp(1.02rem, 1.6vw, 1.15rem); }

.scan-slot { margin: 34px auto 0; max-width: 600px; }
.field {
  display: flex; align-items: center; gap: 4px; padding: 6px; border-radius: 999px;
  background: rgba(20, 24, 33, 0.72); border: 1px solid var(--line-2);
  box-shadow: 0 20px 60px -20px rgba(0, 0, 0, 0.8), inset 0 1px 0 rgba(255, 255, 255, 0.05);
  backdrop-filter: blur(14px); -webkit-backdrop-filter: blur(14px);
  transition: border-color 0.2s, box-shadow 0.2s;
}
.field:focus-within { border-color: rgba(255, 122, 89, 0.7); box-shadow: 0 0 0 4px rgba(255, 122, 89, 0.16), 0 20px 60px -20px rgba(0, 0, 0, 0.8); }
.field-icon { width: 22px; height: 22px; margin-left: 14px; flex: none; fill: none; stroke: var(--dim); stroke-width: 2; stroke-linecap: round; }
.field input {
  flex: 1; min-width: 0; height: 54px; padding: 0 10px; border: 0; outline: 0; background: transparent; color: var(--text);
  font: 500 1.125rem var(--sans);
}
.field input::placeholder { color: var(--dim); }
.field button {
  display: inline-flex; align-items: center; gap: 8px; height: 54px; padding: 0 24px 0 26px; border: 0; border-radius: 999px; cursor: pointer;
  background: linear-gradient(180deg, #ff8b6c, #f8673f); color: #1b0c07; font: 700 1.02rem var(--sans);
  box-shadow: 0 10px 30px -8px rgba(255, 110, 75, 0.6), inset 0 1px 0 rgba(255, 255, 255, 0.35);
  transition: transform 0.15s, filter 0.15s;
}
.field button svg { width: 18px; height: 18px; fill: none; stroke: currentColor; stroke-width: 2.4; stroke-linecap: round; stroke-linejoin: round; }
.field button:hover { filter: brightness(1.06); }
.field button:active { transform: translateY(1px); }
.field button[disabled] { cursor: progress; filter: saturate(0.6) brightness(0.9); }
.field button.busy .btn-label::after { content: "…"; }
.form-note { margin-top: 16px; color: var(--dim); font-size: 0.9rem; }
.form-note svg { display: inline-block; vertical-align: -2px; width: 15px; height: 15px; margin-right: 7px; fill: none; stroke: currentColor; stroke-width: 2; }
.form-error { margin-top: 14px; color: #ffb4a2; font-size: 0.95rem; font-weight: 500; }
.hp { position: absolute; left: -9999px; width: 1px; height: 1px; overflow: hidden; }

/* status card, shown after a search is sent */
.scan-status {
  display: flex; gap: 22px; align-items: flex-start; text-align: left; padding: 26px 28px; border-radius: var(--radius);
  background: rgba(20, 24, 33, 0.78); border: 1px solid var(--line-2); backdrop-filter: blur(16px); -webkit-backdrop-filter: blur(16px);
  box-shadow: 0 30px 80px -30px rgba(0, 0, 0, 0.9);
}
.scan-status[hidden], .scan-form[hidden] { display: none; }
.ring { position: relative; flex: none; width: 44px; height: 44px; margin-top: 4px; border-radius: 50%; border: 2px solid rgba(255, 122, 89, 0.18); }
.ring span { position: absolute; inset: -2px; border-radius: 50%; border: 2px solid transparent; border-top-color: var(--coral); animation: spin 1.1s linear infinite; }
.scan-status.done .ring { border-color: var(--mint); }
.scan-status.done .ring span { display: none; }
.scan-status.done .ring::after { content: ""; position: absolute; inset: 0; background: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24'%3E%3Cpath d='m6.5 12.5 3.6 3.6L17.5 8.7' fill='none' stroke='%237fd6c9' stroke-width='2.4' stroke-linecap='round' stroke-linejoin='round'/%3E%3C/svg%3E") center / 24px no-repeat; }
.scan-status.done .status-kicker { color: var(--mint); }
.scan-status.done .status-note { display: none; }
@keyframes spin { to { transform: rotate(360deg); } }
.status-kicker { font-size: 0.78rem; letter-spacing: 0.14em; text-transform: uppercase; font-weight: 650; color: var(--coral-2); }
.status-title { font-size: 1.85rem; line-height: 1.12; margin-top: 4px; overflow-wrap: anywhere; }
.status-title:focus { outline: none; }
.status-msg { margin-top: 10px; color: var(--text); }
.status-note { margin-top: 6px; color: var(--muted); font-size: 0.95rem; }
.status-ref { margin-top: 14px; color: var(--dim); font-size: 0.85rem; }
.status-ref code { font: 600 0.85rem ui-monospace, SFMono-Regular, Menlo, monospace; color: var(--muted); letter-spacing: 0.04em; }
.btn {
  display: inline-flex; margin-top: 16px; padding: 12px 22px; border-radius: 999px; text-decoration: none; font-weight: 700;
  background: linear-gradient(180deg, #ff8b6c, #f8673f); color: #1b0c07;
}
.btn:hover { color: #1b0c07; filter: brightness(1.06); }
.btn[hidden] { display: none; }
.link { margin-top: 10px; padding: 0; border: 0; background: none; color: var(--muted); font: 500 0.9rem var(--sans); text-decoration: underline; text-underline-offset: 3px; cursor: pointer; }
.link:hover { color: var(--text); }

.hero-art { position: relative; z-index: 0; display: block; width: min(100%, 1900px); margin: -6vw auto 0; pointer-events: none; }
.hero-art img {
  width: 100%; height: auto;
  -webkit-mask-image: radial-gradient(ellipse 72% 78% at 50% 52%, #000 55%, transparent 100%);
  mask-image: radial-gradient(ellipse 72% 78% at 50% 52%, #000 55%, transparent 100%);
}
.trust {
  position: relative; z-index: 2; display: flex; flex-wrap: wrap; justify-content: center; gap: 10px 34px;
  list-style: none; margin: -2vw auto 0; padding: 0 20px 64px; color: #c9ccd3; font-size: 0.95rem; font-weight: 500;
}
.trust li { display: inline-flex; align-items: center; gap: 9px; }
.trust svg { width: 17px; height: 17px; fill: none; stroke: var(--coral-2); stroke-width: 2; stroke-linecap: round; stroke-linejoin: round; }

@media (min-width: 760px) {
  .hero-art { margin-top: calc(-0.215 * min(100vw, 1900px)); }
  .hero-art img {
    -webkit-mask-image: radial-gradient(ellipse 62% 70% at 50% 60%, #000 52%, transparent 100%);
    mask-image: radial-gradient(ellipse 62% 70% at 50% 60%, #000 52%, transparent 100%);
  }
  .trust { margin-top: calc(-0.05 * min(100vw, 1900px)); }
}

/* ------------------------------------------------------------- how */
.how { padding: 110px 0 90px; background: linear-gradient(180deg, var(--bg), var(--bg-2)); }
.how h2 { max-width: 760px; }
.steps { list-style: none; margin: 54px 0 0; padding: 0; display: grid; gap: 18px; grid-template-columns: 1fr; }
.step {
  position: relative; padding: 28px 28px 32px; border-radius: var(--radius); background: linear-gradient(180deg, var(--surface), #11141b);
  border: 1px solid var(--line);
}
.step img { width: 112px; height: 112px; margin: -6px 0 14px -8px; }
.num { position: absolute; top: 26px; right: 28px; font: 600 0.85rem ui-monospace, SFMono-Regular, Menlo, monospace; color: var(--dim); letter-spacing: 0.08em; }
.step h3 { font-size: 1.75rem; line-height: 1.1; }
.step p { margin-top: 10px; color: var(--muted); }
@media (min-width: 860px) { .steps { grid-template-columns: repeat(3, 1fr); } }

/* ------------------------------------------------------------- veil */
.veil { padding: 100px 0 110px; text-align: center; background: var(--bg-2); overflow: hidden; }
.tiles { display: flex; justify-content: center; margin-bottom: 54px; }
.tiles img {
  width: clamp(110px, 17vw, 210px); aspect-ratio: 3 / 4; height: auto; object-fit: cover; border-radius: 18px;
  border: 1px solid rgba(255, 255, 255, 0.16); box-shadow: 0 30px 60px -24px rgba(0, 0, 0, 0.9), inset 0 1px 0 rgba(255, 255, 255, 0.2);
  margin-inline: -1.4vw;
}
.tiles img:nth-child(1) { transform: rotate(-9deg) translateY(28px); }
.tiles img:nth-child(2) { transform: rotate(-4deg) translateY(8px); z-index: 1; }
.tiles img:nth-child(3) { transform: translateY(-4px); z-index: 2; }
.tiles img:nth-child(4) { transform: rotate(4deg) translateY(8px); z-index: 1; }
.tiles img:nth-child(5) { transform: rotate(9deg) translateY(28px); }
.veil h2 { max-width: 760px; margin-inline: auto; }
.veil-sub { margin-top: 16px; color: var(--dim); font-size: 0.95rem; }
@media (max-width: 560px) { .tiles img:nth-child(1), .tiles img:nth-child(5) { display: none; } .tiles img { width: 30vw; margin-inline: -3vw; } }

/* ------------------------------------------------------------- privacy */
.privacy { padding: 110px 0; }
.privacy-grid { display: grid; gap: 48px; align-items: center; }
.privacy-intro img { width: 150px; height: 150px; margin: 0 0 18px -12px; }
.privacy-intro p:last-child { margin-top: 18px; color: var(--muted); max-width: 520px; }
.promises { list-style: none; margin: 0; padding: 0; display: grid; gap: 14px; }
.promises li {
  position: relative; padding: 20px 22px 20px 58px; border-radius: 18px; background: var(--surface); border: 1px solid var(--line); color: var(--muted);
}
.promises li::before {
  content: ""; position: absolute; left: 20px; top: 22px; width: 22px; height: 22px; border-radius: 50%;
  background: rgba(255, 122, 89, 0.14) url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24'%3E%3Cpath d='m7 12.5 3.2 3.2L17 9' fill='none' stroke='%23ff9b7e' stroke-width='2.4' stroke-linecap='round' stroke-linejoin='round'/%3E%3C/svg%3E") center / 18px no-repeat;
}
.promises strong { display: block; color: var(--text); font-weight: 650; margin-bottom: 2px; }
@media (min-width: 900px) { .privacy-grid { grid-template-columns: 1fr 1fr; gap: 72px; } }

/* ------------------------------------------------------------- help */
.help { padding: 110px 0; background: radial-gradient(900px 400px at 15% 0%, rgba(127, 214, 201, 0.07), transparent 70%), var(--bg-2); }
.help h2 { max-width: 720px; }
.help-lede { margin-top: 18px; max-width: 720px; color: var(--muted); }
.resources { display: grid; gap: 14px; margin-top: 40px; grid-template-columns: 1fr; }
.res {
  display: flex; flex-direction: column; gap: 6px; padding: 24px; border-radius: 18px; background: var(--surface); border: 1px solid var(--line);
  color: var(--text); text-decoration: none; transition: border-color 0.2s, transform 0.2s;
}
.res:hover { border-color: rgba(127, 214, 201, 0.5); transform: translateY(-2px); color: var(--text); }
.res-name { font-weight: 700; font-size: 1.08rem; }
.res-desc { color: var(--muted); font-size: 0.96rem; }
.res-cta { margin-top: auto; padding-top: 10px; color: var(--mint); font-weight: 650; }
.help-urgent { margin-top: 28px; color: var(--muted); }
.help-urgent a { color: var(--text); font-weight: 650; }
@media (min-width: 860px) { .resources { grid-template-columns: repeat(3, 1fr); } }

/* ------------------------------------------------------------- faq */
.faq { padding: 110px 0; }
.faq h2 { margin-bottom: 36px; }
details { border-top: 1px solid var(--line); }
details:last-of-type { border-bottom: 1px solid var(--line); }
summary {
  list-style: none; cursor: pointer; padding: 22px 44px 22px 0; position: relative; font-weight: 600; font-size: 1.1rem;
}
summary::-webkit-details-marker { display: none; }
summary::after {
  content: ""; position: absolute; right: 6px; top: 50%; width: 14px; height: 14px; margin-top: -7px;
  background: linear-gradient(var(--coral-2), var(--coral-2)) center / 14px 2px no-repeat, linear-gradient(var(--coral-2), var(--coral-2)) center / 2px 14px no-repeat;
  transition: transform 0.25s;
}
details[open] summary::after { transform: rotate(45deg); }
details p { padding: 0 0 24px; color: var(--muted); max-width: 640px; }

/* ------------------------------------------------------------- final cta */
.cta { padding: 100px 0 120px; text-align: center; background: radial-gradient(700px 360px at 50% 100%, rgba(255, 122, 89, 0.12), transparent 70%); }
.cta h2 { font-size: clamp(2.4rem, 5.4vw, 4rem); }
.cta > .wrap > p { margin: 14px auto 34px; color: var(--muted); }
.cta .scan-form { max-width: 600px; margin: 0 auto; }
.cta-running { display: none; }
body.is-scanning .cta .scan-form { display: none; }
body.is-scanning .cta-running { display: block; color: var(--muted); }

/* ------------------------------------------------------------- footer */
.footer { padding: 48px 0 40px; border-top: 1px solid var(--line); background: var(--bg); }
.foot-grid { display: flex; flex-wrap: wrap; gap: 24px; justify-content: space-between; align-items: flex-start; }
.foot-tag { margin-top: 10px; color: var(--dim); font-size: 0.95rem; }
.foot-links { display: flex; flex-wrap: wrap; gap: 22px; }
.foot-links a { color: var(--muted); text-decoration: none; font-size: 0.95rem; }
.foot-links a:hover { color: var(--text); }
.foot-small { margin-top: 30px; color: var(--dim); font-size: 0.82rem; }

/* ------------------------------------------------------------- legal pages */
.doc { padding: 140px 0 100px; }
.doc h1 { font-size: clamp(2.4rem, 5vw, 3.6rem); line-height: 1.04; }
.doc .updated { margin-top: 12px; color: var(--dim); font-size: 0.92rem; }
.doc h2 { font-size: 1.7rem; margin: 44px 0 12px; }
.doc p, .doc li { color: var(--muted); }
.doc p + p { margin-top: 12px; }
.doc ul { padding-left: 20px; margin: 12px 0 0; display: grid; gap: 8px; }
.doc ul + p { margin-top: 16px; }
.doc strong { color: var(--text); }
.nf { min-height: 100svh; display: grid; place-items: center; text-align: center; padding: 120px 20px; }
.nf h1 { font-size: clamp(2.6rem, 6vw, 4.2rem); }
.nf p { margin-top: 14px; color: var(--muted); }

/* ------------------------------------------------------------- small screens */
@media (max-width: 760px) {
  .links { display: none; }
  .nav-help { margin-left: auto; font-size: 0.88rem; padding: 7px 12px; }
  .nav { padding-top: 16px; }
  .hero { padding-top: 104px; }
  .hero h1 { font-size: clamp(2.6rem, 11.5vw, 3.6rem); }
  .lede { font-size: 1.02rem; }
  .field input { height: 50px; font-size: 1.0625rem; }
  .field button { height: 50px; padding: 0 18px 0 20px; }
  .field-icon { margin-left: 10px; width: 20px; height: 20px; }
  .form-note { font-size: 0.82rem; }
  .scan-status { flex-direction: column; gap: 12px; padding: 22px; }
  .ring { width: 36px; height: 36px; margin-top: 0; }
  .status-title { font-size: 1.6rem; }
  .how, .privacy, .help, .faq { padding: 80px 0; }
}
@media (max-width: 380px) {
  .field button { padding: 0 16px; }
  .field button .btn-label { position: absolute; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); }
  .field-icon { display: none; }
  .field input { padding-left: 16px; }
}
@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  *, *::before, *::after { animation-duration: 0.001ms !important; animation-iteration-count: 1 !important; transition-duration: 0.001ms !important; }
}
