/* GraffitiDelete design system: tokens, base, shell (header/footer),
   buttons, homepage sections, forms, and the admin pipeline. */

:root {
  --bg: #ffffff;
  --bg-alt: #f5f5f2;
  --surface: #ffffff;
  --surface-2: #fafaf8;
  --text: #121316;
  --text-2: #2c2f36;
  --muted: #5d626d;
  --faint: #8b909a;
  --border: #e5e5e0;
  --border-strong: #d3d3cc;
  --accent: #e2491a;
  --accent-hover: #c93d12;
  --accent-soft: #fdeee7;
  --accent-ink: #b8380f;
  --clean: #0f8a63;          /* "after" / done */
  --clean-soft: #e3f4ee;
  --ink: #111215;            /* dark bands (hero, CTA) */
  --ink-2: #1a1c21;
  --on-ink: #f3f3f0;
  --on-ink-muted: #a9adb6;
  --radius: 14px;
  --radius-sm: 10px;
  --shadow-sm: 0 1px 2px rgba(18, 19, 22, .05);
  --shadow: 0 1px 2px rgba(18, 19, 22, .04), 0 4px 16px -4px rgba(18, 19, 22, .1);
  --shadow-lg: 0 2px 4px rgba(18, 19, 22, .04), 0 24px 48px -12px rgba(18, 19, 22, .22);
  --ring: 0 0 0 3px color-mix(in srgb, var(--accent) 30%, transparent);
  --font: "Inter", system-ui, -apple-system, "Segoe UI", Roboto, sans-serif;
  --font-display: "Archivo", var(--font);
  --text-bad: #b42323;
  --bad-soft: #fdecec;
}

@media (prefers-color-scheme: dark) {
  :root {
    --bg: #0d0e11;
    --bg-alt: #131418;
    --surface: #17181d;
    --surface-2: #1b1c22;
    --text: #eeeeea;
    --text-2: #cfd0cc;
    --muted: #9ca0a8;
    --faint: #6f737c;
    --border: #25272e;
    --border-strong: #33363e;
    --accent: #ff6a3a;
    --accent-hover: #ff8459;
    --accent-soft: #2a1610;
    --accent-ink: #ff9a77;
    --clean: #34c793;
    --clean-soft: #10261e;
    --ink: #08090b;
    --ink-2: #111216;
    --shadow-sm: 0 1px 2px rgba(0, 0, 0, .4);
    --shadow: 0 1px 2px rgba(0, 0, 0, .35), 0 4px 16px -4px rgba(0, 0, 0, .45);
    --shadow-lg: 0 2px 4px rgba(0, 0, 0, .3), 0 24px 48px -12px rgba(0, 0, 0, .6);
    --text-bad: #ff8080;
    --bad-soft: #2b1414;
  }
}

/* ---------- Base ---------- */
*, *::before, *::after { box-sizing: border-box; }
[hidden] { display: none !important; }

html { scroll-behavior: smooth; scroll-padding-top: 80px; }
@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  *, *::before, *::after { transition: none !important; animation: none !important; }
}

body {
  margin: 0;
  font-family: var(--font);
  font-size: 16px;
  line-height: 1.6;
  color: var(--text);
  background: var(--bg);
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
}

h1, h2, h3, h4 { line-height: 1.12; margin: 0 0 .5em; letter-spacing: -0.02em; font-weight: 700; color: var(--text); }
h1, h2 { font-family: var(--font-display); font-weight: 800; letter-spacing: -0.03em; }
h1 { font-size: clamp(2.3rem, 5.4vw, 4rem); }
h2 { font-size: clamp(1.7rem, 3.4vw, 2.5rem); }
h3 { font-size: 1.1rem; }
p { margin: 0 0 1em; }
a { color: var(--accent-ink); text-underline-offset: 3px; }
:focus-visible { outline: none; box-shadow: var(--ring); border-radius: 6px; }
::selection { background: color-mix(in srgb, var(--accent) 24%, transparent); }

.container { width: 100%; max-width: 1180px; margin: 0 auto; padding: 0 32px; }
.narrow { max-width: 760px; }
@media (max-width: 640px) { .container { padding: 0 16px; } }

.visually-hidden {
  position: absolute !important;
  width: 1px; height: 1px; padding: 0; margin: -1px;
  overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; border: 0;
}

/* ---------- Brand ---------- */
.brand {
  display: inline-flex; align-items: center; gap: 10px;
  color: var(--text); text-decoration: none;
  font-family: var(--font-display); font-weight: 800; font-size: 1.12rem; letter-spacing: -0.02em;
}
.brand-logo { width: 32px; height: 32px; flex: none; display: block; }
.brand-name span { color: var(--accent); }

/* ---------- Header ---------- */
.site-header {
  position: sticky; top: 0; z-index: 50;
  background: color-mix(in srgb, var(--bg) 84%, transparent);
  backdrop-filter: saturate(180%) blur(14px);
  -webkit-backdrop-filter: saturate(180%) blur(14px);
  border-bottom: 1px solid var(--border);
}
.header-inner { display: flex; align-items: center; justify-content: space-between; height: 64px; gap: 24px; }
.site-nav { display: flex; align-items: center; gap: 4px; }
.site-nav a:not(.btn) {
  color: var(--muted); text-decoration: none;
  font-weight: 500; font-size: .92rem;
  padding: 8px 12px; border-radius: 8px;
  transition: color .15s, background .15s;
}
.site-nav a:not(.btn):hover { color: var(--text); background: var(--bg-alt); }
.site-nav a[aria-current="page"] { color: var(--text); }
.site-nav .btn { margin-left: 10px; }
.nav-toggle {
  display: none;
  width: 40px; height: 40px;
  border: 1px solid var(--border); border-radius: 10px;
  background: var(--surface); color: var(--text);
  cursor: pointer; place-items: center;
}
.nav-toggle svg { width: 20px; height: 20px; fill: none; stroke: currentColor; stroke-width: 2; stroke-linecap: round; }
.nav-toggle .icon-close, .site-header[data-open] .nav-toggle .icon-open { display: none; }
.site-header[data-open] .nav-toggle .icon-close { display: block; }

@media (max-width: 820px) {
  .nav-toggle { display: grid; }
  .site-nav {
    display: none;
    position: absolute; left: 0; right: 0; top: 64px;
    flex-direction: column; align-items: stretch; gap: 2px;
    padding: 12px 16px 20px;
    background: var(--bg); border-bottom: 1px solid var(--border); box-shadow: var(--shadow);
  }
  .site-header[data-open] .site-nav { display: flex; }
  .site-nav a:not(.btn) { padding: 12px; font-size: 1rem; }
  .site-nav .btn { margin: 8px 0 0; }
}

/* ---------- Buttons ---------- */
.btn {
  display: inline-flex; align-items: center; justify-content: center; gap: 8px;
  padding: 13px 22px;
  border: 1px solid transparent; border-radius: 10px;
  background: var(--accent); color: #fff;
  font: inherit; font-weight: 650; font-size: .98rem; line-height: 1.2;
  text-decoration: none; cursor: pointer;
  transition: background .15s, transform .15s, box-shadow .15s;
}
.btn:hover { background: var(--accent-hover); }
.btn:active { transform: translateY(1px); }
.btn:disabled { opacity: .6; cursor: progress; }
.btn-small { padding: 9px 16px; font-size: .9rem; }
.btn-ghost { background: transparent; color: var(--text); border-color: var(--border-strong); }
.btn-ghost:hover { background: var(--bg-alt); }
.on-ink .btn-ghost { color: var(--on-ink); border-color: #3a3d45; }
.on-ink .btn-ghost:hover { background: #1f2127; }
.btn-danger { background: transparent; color: var(--text-bad); border-color: color-mix(in srgb, var(--text-bad) 40%, transparent); }
.btn-danger:hover { background: var(--bad-soft); }

/* ---------- Hero ---------- */
.hero { background: var(--ink); color: var(--on-ink); padding: 84px 0 92px; overflow: hidden; }
.hero h1, .hero h2 { color: #fff; }
.hero-inner { display: grid; grid-template-columns: 1.05fr 1fr; gap: 56px; align-items: center; }
.eyebrow {
  display: inline-flex; align-items: center; gap: 8px;
  font-size: .8rem; font-weight: 650; letter-spacing: .08em; text-transform: uppercase;
  color: var(--accent);
  margin-bottom: 16px;
}
.hero h1 em { font-style: normal; color: var(--accent); }
.lede { font-size: 1.15rem; color: var(--on-ink-muted); max-width: 34em; margin-bottom: 28px; }
.hero-actions { display: flex; flex-wrap: wrap; gap: 12px; }
.hero-points { display: flex; flex-wrap: wrap; gap: 8px 22px; margin: 28px 0 0; padding: 0; list-style: none; color: var(--on-ink-muted); font-size: .92rem; }
.hero-points li { display: flex; align-items: center; gap: 8px; }
.hero-points svg { width: 16px; height: 16px; flex: none; stroke: var(--clean); fill: none; stroke-width: 2.5; stroke-linecap: round; stroke-linejoin: round; }
@media (prefers-color-scheme: dark) { .hero-points svg { stroke: #34c793; } }
@media (max-width: 900px) {
  .hero { padding: 56px 0 64px; }
  .hero-inner { grid-template-columns: 1fr; gap: 40px; }
}

/* Before / after wall: drag the handle to wipe the tag off */
.wipe {
  position: relative; aspect-ratio: 5 / 4; border-radius: var(--radius);
  overflow: hidden; box-shadow: var(--shadow-lg); user-select: none;
  border: 1px solid #2a2c33;
}
.wipe svg { position: absolute; inset: 0; width: 100%; height: 100%; display: block; }
.wipe .wipe-before { clip-path: inset(0 calc(100% - var(--pos, 55%)) 0 0); }
.wipe-line {
  position: absolute; top: 0; bottom: 0; left: var(--pos, 55%); width: 3px; margin-left: -1.5px;
  background: #fff; box-shadow: 0 0 12px rgba(0, 0, 0, .4); pointer-events: none;
}
.wipe-line::after {
  content: ""; position: absolute; top: 50%; left: 50%; width: 40px; height: 40px; margin: -20px 0 0 -20px;
  border-radius: 50%; background: #fff; box-shadow: var(--shadow);
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='%23111215' stroke-width='2.2' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpath d='M9 6l-6 6 6 6M15 6l6 6-6 6'/%3E%3C/svg%3E");
  background-size: 22px; background-repeat: no-repeat; background-position: center;
}
.wipe-tag {
  position: absolute; top: 14px; padding: 4px 10px; border-radius: 999px;
  font-size: .72rem; font-weight: 700; letter-spacing: .06em; text-transform: uppercase;
  background: rgba(17, 18, 21, .78); color: #fff; pointer-events: none;
}
.wipe-tag.before { left: 14px; }
.wipe-tag.after { right: 14px; background: #0f8a63; }
.wipe input[type="range"] {
  position: absolute; inset: 0; width: 100%; height: 100%; margin: 0;
  opacity: 0; cursor: ew-resize;
}
.wipe input[type="range"]:focus-visible + .wipe-line::after { box-shadow: 0 0 0 4px color-mix(in srgb, var(--accent) 60%, transparent); }
.wipe-caption { margin: 12px 0 0; font-size: .85rem; color: var(--on-ink-muted); text-align: center; }

/* ---------- Sections ---------- */
.section { padding: 88px 0; }
.section-alt { background: var(--bg-alt); }
.section-head { max-width: 680px; margin-bottom: 44px; }
.section-head p { color: var(--muted); font-size: 1.08rem; }
.section-head .eyebrow { color: var(--accent-ink); }
@media (max-width: 640px) { .section { padding: 60px 0; } }

.cards { display: grid; grid-template-columns: repeat(auto-fill, minmax(250px, 1fr)); gap: 18px; }
.card {
  background: var(--surface); border: 1px solid var(--border); border-radius: var(--radius);
  padding: 26px; box-shadow: var(--shadow-sm);
}
.card p { color: var(--muted); margin: 0; font-size: .96rem; }
.card-icon {
  width: 44px; height: 44px; border-radius: 12px; display: grid; place-items: center;
  background: var(--accent-soft); color: var(--accent-ink); margin-bottom: 16px;
}
.card-icon svg { width: 22px; height: 22px; fill: none; stroke: currentColor; stroke-width: 2; stroke-linecap: round; stroke-linejoin: round; }

.steps { display: grid; grid-template-columns: repeat(4, 1fr); gap: 18px; counter-reset: step; list-style: none; margin: 0; padding: 0; }
.steps li { position: relative; padding: 24px; border-radius: var(--radius); background: var(--surface); border: 1px solid var(--border); }
.steps li::before {
  counter-increment: step; content: counter(step);
  display: grid; place-items: center; width: 34px; height: 34px; border-radius: 50%;
  background: var(--ink); color: #fff; font-weight: 800; font-family: var(--font-display);
  margin-bottom: 16px;
}
@media (prefers-color-scheme: dark) { .steps li::before { background: var(--accent); } }
.steps p { color: var(--muted); margin: 0; font-size: .95rem; }
@media (max-width: 900px) { .steps { grid-template-columns: 1fr 1fr; } }
@media (max-width: 560px) { .steps { grid-template-columns: 1fr; } }

.audiences { display: grid; grid-template-columns: repeat(4, 1fr); gap: 18px; }
@media (max-width: 900px) { .audiences { grid-template-columns: 1fr 1fr; } }
@media (max-width: 560px) { .audiences { grid-template-columns: 1fr; } }

.band { background: var(--ink); color: var(--on-ink); border-radius: 20px; padding: 48px; display: grid; grid-template-columns: 1.4fr 1fr; gap: 32px; align-items: center; }
.band h2 { color: #fff; }
.band p { color: var(--on-ink-muted); margin: 0; }
.band-actions { display: flex; flex-wrap: wrap; gap: 12px; justify-content: flex-end; }
@media (max-width: 820px) { .band { grid-template-columns: 1fr; padding: 32px 24px; } .band-actions { justify-content: flex-start; } }

.faq { display: grid; gap: 10px; }
.faq details { background: var(--surface); border: 1px solid var(--border); border-radius: var(--radius-sm); padding: 0 20px; }
.faq summary { cursor: pointer; padding: 18px 0; font-weight: 650; list-style: none; display: flex; justify-content: space-between; gap: 16px; }
.faq summary::-webkit-details-marker { display: none; }
.faq summary::after { content: "+"; color: var(--muted); font-size: 1.3rem; line-height: 1; }
.faq details[open] summary::after { content: "–"; }
.faq details p { color: var(--muted); padding-bottom: 6px; }

/* ---------- Page header (inner pages) ---------- */
.page-head { background: var(--ink); color: var(--on-ink); padding: 56px 0 48px; }
.page-head h1 { color: #fff; font-size: clamp(2rem, 4.4vw, 3rem); }
.page-head p { color: var(--on-ink-muted); font-size: 1.1rem; max-width: 40em; margin: 0; }

/* ---------- Forms ---------- */
.form-card { background: var(--surface); border: 1px solid var(--border); border-radius: var(--radius); padding: 32px; box-shadow: var(--shadow); margin-top: -28px; position: relative; }
@media (max-width: 640px) { .form-card { padding: 22px 16px; } }
.form-section + .form-section { margin-top: 32px; padding-top: 28px; border-top: 1px solid var(--border); }
.form-section h2 { font-family: var(--font); font-size: 1.15rem; font-weight: 700; letter-spacing: -0.01em; margin-bottom: 4px; }
.form-section > p { color: var(--muted); font-size: .94rem; margin-bottom: 18px; }
.grid-2 { display: grid; grid-template-columns: 1fr 1fr; gap: 16px; margin-bottom: 16px; }
.grid-3 { display: grid; grid-template-columns: 2fr 1fr; gap: 16px; margin-bottom: 16px; }
@media (max-width: 640px) { .grid-2, .grid-3 { grid-template-columns: 1fr; } }
.field { display: flex; flex-direction: column; gap: 6px; margin-bottom: 16px; }
.grid-2 .field, .grid-3 .field { margin-bottom: 0; }
label, .label { font-weight: 600; font-size: .92rem; }
.optional { color: var(--faint); font-weight: 400; }
.hint { color: var(--muted); font-size: .85rem; }
input[type="text"], input[type="email"], input[type="tel"], input[type="url"], input[type="password"], input[type="date"], input[type="search"], select, textarea {
  width: 100%; font: inherit; font-size: 1rem; color: var(--text);
  background: var(--surface-2); border: 1px solid var(--border-strong); border-radius: var(--radius-sm);
  padding: 11px 13px; transition: border-color .15s, box-shadow .15s;
}
textarea { min-height: 110px; resize: vertical; }
input:focus, select:focus, textarea:focus { outline: none; border-color: var(--accent); box-shadow: var(--ring); }
.choices { display: grid; grid-template-columns: repeat(auto-fill, minmax(140px, 1fr)); gap: 8px; }
.choice { position: relative; }
.choice input { position: absolute; opacity: 0; inset: 0; margin: 0; cursor: pointer; }
.choice span {
  display: block; padding: 11px 13px; border: 1px solid var(--border-strong); border-radius: var(--radius-sm);
  background: var(--surface-2); font-size: .94rem; font-weight: 500; cursor: pointer; transition: border-color .15s, background .15s;
}
.choice input:checked + span { border-color: var(--accent); background: var(--accent-soft); color: var(--accent-ink); font-weight: 650; }
.choice input:focus-visible + span { box-shadow: var(--ring); }
.check { display: flex; gap: 10px; align-items: flex-start; font-weight: 500; font-size: .95rem; margin-bottom: 10px; cursor: pointer; }
.check input { width: 18px; height: 18px; margin: 2px 0 0; accent-color: var(--accent); flex: none; }
.honey { position: absolute; left: -9999px; width: 1px; height: 1px; overflow: hidden; }

.dropzone {
  display: grid; place-items: center; text-align: center; gap: 6px;
  border: 2px dashed var(--border-strong); border-radius: var(--radius); padding: 28px 16px;
  background: var(--surface-2); cursor: pointer; transition: border-color .15s, background .15s;
}
.dropzone:hover, .dropzone[data-over] { border-color: var(--accent); background: var(--accent-soft); }
.dropzone svg { width: 30px; height: 30px; stroke: var(--accent-ink); fill: none; stroke-width: 2; stroke-linecap: round; stroke-linejoin: round; }
.dropzone strong { font-size: .98rem; }
.thumbs { display: grid; grid-template-columns: repeat(auto-fill, minmax(96px, 1fr)); gap: 10px; margin-top: 12px; }
.thumb { position: relative; aspect-ratio: 1; border-radius: 10px; overflow: hidden; border: 1px solid var(--border); background: var(--bg-alt); }
.thumb img { width: 100%; height: 100%; object-fit: cover; display: block; }
.thumb button {
  position: absolute; top: 4px; right: 4px; width: 26px; height: 26px; border-radius: 50%;
  border: 0; background: rgba(17, 18, 21, .8); color: #fff; cursor: pointer; font-size: 1rem; line-height: 1;
}

.form-actions { display: flex; flex-wrap: wrap; align-items: center; gap: 16px; margin-top: 28px; }
.form-actions .hint { margin: 0; }
.alert { border-radius: var(--radius-sm); padding: 12px 16px; font-size: .95rem; margin-top: 16px; }
.alert-error { background: var(--bad-soft); color: var(--text-bad); border: 1px solid color-mix(in srgb, var(--text-bad) 30%, transparent); }
.success { text-align: center; padding: 24px 8px; }
.success-icon { width: 56px; height: 56px; border-radius: 50%; display: inline-grid; place-items: center; background: var(--clean-soft); color: var(--clean); margin-bottom: 16px; }
.success-icon svg { width: 28px; height: 28px; fill: none; stroke: currentColor; stroke-width: 2.5; stroke-linecap: round; stroke-linejoin: round; }
.ref { font-family: ui-monospace, "SFMono-Regular", Consolas, monospace; font-weight: 700; background: var(--bg-alt); padding: 2px 8px; border-radius: 6px; }

/* ---------- Prose (privacy) ---------- */
.prose { padding: 56px 0 88px; }
.prose h2 { font-family: var(--font); font-size: 1.25rem; letter-spacing: -0.01em; margin-top: 2em; }
.prose p, .prose li { color: var(--text-2); }

/* ---------- Footer ---------- */
.site-footer { border-top: 1px solid var(--border); padding: 40px 0; color: var(--muted); font-size: .9rem; }
.footer-inner { display: flex; flex-wrap: wrap; justify-content: space-between; align-items: center; gap: 16px; }
.footer-links { display: flex; flex-wrap: wrap; gap: 18px; }
.footer-links a { color: var(--muted); text-decoration: none; }
.footer-links a:hover { color: var(--text); }
