/* iResponse Pro — public landing / preference centre. --accent is set per domain on <html>. */
:root {
  --bg: #f6f7f9; --surface: #ffffff; --ink: #14161a; --muted: #5b616e; --line: #e4e7ec;
  --ok-bg: #e8f6ee; --ok-ink: #11643a; --err-bg: #fdecec; --err-ink: #9b1c1c; --danger: #c0392b;
  --radius: 14px; --shadow: 0 1px 2px rgba(16,24,40,.05), 0 8px 24px rgba(16,24,40,.06);
  color-scheme: light dark;
}
@media (prefers-color-scheme: dark) {
  :root { --bg: #0f1115; --surface: #171a20; --ink: #eceef2; --muted: #a2a8b4; --line: #272b33;
          --ok-bg: #12301f; --ok-ink: #8fe0b0; --err-bg: #3a1717; --err-ink: #f3a3a3; --danger: #e5675a;
          --shadow: 0 1px 2px rgba(0,0,0,.3), 0 8px 24px rgba(0,0,0,.3); }
}
* { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; }
body { margin: 0; min-height: 100vh; display: flex; flex-direction: column; background: var(--bg); color: var(--ink);
       font: 16px/1.6 ui-sans-serif, system-ui, -apple-system, "Segoe UI", Roboto, "Helvetica Neue", Arial, sans-serif; }
a { color: var(--accent); }
.wrap { max-width: 1080px; margin: 0 auto; padding: 0 20px; }

.top { background: var(--surface); border-bottom: 1px solid var(--line); }
.top-in { display: flex; align-items: center; justify-content: space-between; height: 64px; }
.brand { display: flex; align-items: center; gap: 10px; text-decoration: none; color: var(--ink); font-weight: 700; font-size: 1.1rem; letter-spacing: -.01em; }
.mark { width: 32px; height: 32px; border-radius: 9px; background: var(--accent); color: #fff; display: grid; place-items: center; font-size: .95rem; }
.nav a { color: var(--muted); text-decoration: none; font-size: .95rem; }
.nav a:hover { color: var(--ink); }

main.wrap { flex: 1; width: 100%; padding-top: 56px; padding-bottom: 72px; }
.hero { display: grid; grid-template-columns: 1.1fr .9fr; gap: 56px; align-items: start; }
.eyebrow { color: var(--accent); font-weight: 600; font-size: .85rem; letter-spacing: .06em; text-transform: uppercase; margin: 0 0 12px; }
h1 { font-size: clamp(1.9rem, 4vw, 2.8rem); line-height: 1.12; letter-spacing: -.025em; margin: 0 0 16px; }
h2 { font-size: 1.15rem; margin: 0 0 12px; letter-spacing: -.01em; }
.lead { color: var(--muted); font-size: 1.12rem; margin: 0 0 24px; }
.ticks { list-style: none; padding: 0; margin: 0; display: grid; gap: 10px; }
.ticks li { padding-left: 30px; position: relative; }
.ticks li::before { content: ""; position: absolute; left: 0; top: .3em; width: 18px; height: 18px; border-radius: 50%;
  background: var(--accent); -webkit-mask: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 20 20'%3E%3Cpath d='M10 0a10 10 0 100 20 10 10 0 000-20zm-1.2 14.2L4.6 10l1.4-1.4 2.8 2.8 5.2-5.2 1.4 1.4-6.6 6.6z'/%3E%3C/svg%3E") center/contain no-repeat;
  mask: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 20 20'%3E%3Cpath d='M10 0a10 10 0 100 20 10 10 0 000-20zm-1.2 14.2L4.6 10l1.4-1.4 2.8 2.8 5.2-5.2 1.4 1.4-6.6 6.6z'/%3E%3C/svg%3E") center/contain no-repeat; }

.card { background: var(--surface); border: 1px solid var(--line); border-radius: var(--radius); box-shadow: var(--shadow); padding: 28px; margin-bottom: 20px; }
.card p { color: var(--muted); }
.card.danger { border-color: color-mix(in srgb, var(--danger) 35%, var(--line)); }
.narrow { max-width: 620px; margin: 0 auto; }
.center { text-align: center; } .center .card { text-align: left; }
.center h1 { font-size: 1.7rem; }

.field { display: grid; gap: 6px; margin-bottom: 18px; font-weight: 600; font-size: .92rem; }
input[type=email], input[type=text] { width: 100%; font: inherit; color: var(--ink); background: var(--bg); border: 1px solid var(--line);
  border-radius: 10px; padding: 12px 14px; outline: none; transition: border-color .15s, box-shadow .15s; }
input[type=email]:focus { border-color: var(--accent); box-shadow: 0 0 0 4px color-mix(in srgb, var(--accent) 18%, transparent); }

.cats { border: 0; padding: 0; margin: 0 0 18px; display: grid; gap: 8px; }
.cats legend { font-weight: 600; font-size: .92rem; margin-bottom: 8px; display: flex; justify-content: space-between; align-items: baseline; gap: 12px; width: 100%; }
.cats legend .link { white-space: nowrap; }
.cat { display: flex; gap: 12px; align-items: flex-start; padding: 12px 14px; border: 1px solid var(--line); border-radius: 10px; cursor: pointer; }
.cat:hover { border-color: color-mix(in srgb, var(--accent) 45%, var(--line)); }
.cat input { margin-top: 4px; accent-color: var(--accent); width: 18px; height: 18px; flex: none; }
.cat small, .toggle small { display: block; color: var(--muted); font-weight: 400; font-size: .85rem; }
.consent { display: flex; gap: 10px; align-items: flex-start; font-size: .9rem; color: var(--muted); margin: 0 0 20px; }
.consent input { margin-top: 4px; accent-color: var(--accent); width: 18px; height: 18px; flex: none; }

.btn { display: inline-flex; justify-content: center; align-items: center; gap: 8px; font: inherit; font-weight: 600; border: 0; cursor: pointer;
  background: var(--accent); color: #fff; padding: 12px 22px; border-radius: 10px; text-decoration: none; transition: filter .15s, transform .05s; }
.signup .btn { width: 100%; }
.btn:hover { filter: brightness(1.08); } .btn:active { transform: translateY(1px); }
.btn.ghost { background: transparent; color: var(--accent); border: 1px solid color-mix(in srgb, var(--accent) 50%, var(--line)); }
.btn.danger { background: var(--danger); }
.link { background: none; border: 0; padding: 0; color: var(--accent); font: inherit; font-size: .85rem; font-weight: 600; cursor: pointer; }
.row { display: flex; gap: 18px; align-items: center; margin-top: 20px; flex-wrap: wrap; }
.fine { font-size: .82rem; color: var(--muted); margin: 14px 0 0; }
.alert { background: var(--err-bg); color: var(--err-ink) !important; border-radius: 10px; padding: 10px 14px; font-size: .92rem; }
.ok { background: var(--ok-bg); color: var(--ok-ink); border-radius: 10px; padding: 12px 16px; font-weight: 600; }
.hp { position: absolute; left: -10000px; width: 1px; height: 1px; overflow: hidden; }

.toggles { display: grid; }
.toggle { display: grid; grid-template-columns: 1fr auto; align-items: center; gap: 16px; padding: 16px 0; border-top: 1px solid var(--line); cursor: pointer; position: relative; }
.toggle:first-child { border-top: 0; }
.toggle input { position: absolute; opacity: 0; width: 1px; height: 1px; }
.switch { width: 46px; height: 26px; border-radius: 999px; background: var(--line); position: relative; transition: background .15s; }
.switch::after { content: ""; position: absolute; top: 3px; left: 3px; width: 20px; height: 20px; border-radius: 50%; background: #fff; box-shadow: 0 1px 2px rgba(0,0,0,.25); transition: transform .15s; }
.toggle input:checked + .switch { background: var(--accent); }
.toggle input:checked + .switch::after { transform: translateX(20px); }
.toggle input:focus-visible + .switch { outline: 3px solid color-mix(in srgb, var(--accent) 45%, transparent); outline-offset: 2px; }

.already { margin-top: 56px; padding: 28px; border: 1px dashed var(--line); border-radius: var(--radius); display: flex; justify-content: space-between; align-items: center; gap: 20px; }
.already h2 { margin-bottom: 4px; } .already p { margin: 0; color: var(--muted); }
.prose h2 { margin-top: 28px; } .prose p, .prose li { color: var(--muted); }

.foot { border-top: 1px solid var(--line); color: var(--muted); font-size: .85rem; }
.foot-in { display: flex; justify-content: space-between; padding: 22px 20px; gap: 12px; flex-wrap: wrap; }
.foot a { color: var(--muted); text-decoration: none; margin-left: 18px; } .foot a:hover { color: var(--ink); }

@media (max-width: 820px) {
  .wrap { padding-left: 16px; padding-right: 16px; } main.wrap { padding-top: 28px; padding-bottom: 48px; }
  .hero { grid-template-columns: 1fr; gap: 32px; }
  .already { flex-direction: column; align-items: flex-start; }
  .card { padding: 22px; }
  .nav a { font-size: .88rem; }
  .foot a { margin: 0 14px 0 0; }
}
