/* ============================================================
   mailing-dispatch.org — shared styles (landing + unsubscribe)
   ============================================================ */

:root {
  --bg: #f6f7fb;
  --card: #ffffff;
  --ink: #0f172a;
  --muted: #475569;
  --soft: #64748b;
  --accent: #4338ca;
  --accent-strong: #3730a3;
  --accent-soft: #eef2ff;
  --line: #e2e8f0;
  --ok: #047857;
  --ok-soft: #ecfdf5;
  --warn: #b45309;
  --warn-soft: #fffbeb;
  --radius: 16px;
  --shadow: 0 1px 2px rgba(15, 23, 42, .06), 0 8px 24px rgba(15, 23, 42, .07);
}

* { box-sizing: border-box; }

html { scroll-behavior: smooth; }

body {
  margin: 0;
  background: var(--bg);
  color: var(--ink);
  font-family: ui-sans-serif, system-ui, -apple-system, "Segoe UI", Roboto,
    "Helvetica Neue", Arial, sans-serif;
  font-size: 16px;
  line-height: 1.65;
  -webkit-font-smoothing: antialiased;
}

.wrap {
  max-width: 1060px;
  margin: 0 auto;
  padding: 0 22px;
}

/* ---------- header ---------- */

.site-head {
  position: sticky;
  top: 0;
  z-index: 20;
  background: rgba(246, 247, 251, .88);
  backdrop-filter: blur(8px);
  border-bottom: 1px solid var(--line);
}

.site-head .wrap {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 18px;
  min-height: 62px;
  flex-wrap: wrap;
}

.brand {
  display: flex;
  align-items: center;
  gap: 10px;
  font-weight: 700;
  letter-spacing: -.01em;
  color: var(--ink);
  text-decoration: none;
}

.brand .dot {
  width: 34px;
  height: 34px;
  border-radius: 10px;
  background: linear-gradient(135deg, #4f46e5, #7c3aed);
  color: #fff;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  font-size: 17px;
}

.nav {
  display: flex;
  gap: 4px;
  flex-wrap: wrap;
}

.nav a {
  color: var(--muted);
  text-decoration: none;
  font-size: .95rem;
  font-weight: 550;
  padding: 8px 12px;
  border-radius: 9px;
}

.nav a:hover { background: var(--accent-soft); color: var(--accent-strong); }

/* ---------- typography ---------- */

h1, h2, h3 { letter-spacing: -.02em; line-height: 1.22; margin: 0 0 .5em; }

h1 { font-size: clamp(1.9rem, 4vw, 2.7rem); font-weight: 800; }
h2 { font-size: clamp(1.35rem, 2.6vw, 1.75rem); font-weight: 750; }
h3 { font-size: 1.12rem; font-weight: 650; }

p { margin: 0 0 1em; }
.muted { color: var(--muted); }
.small { font-size: .88rem; }

.kicker {
  display: inline-block;
  background: var(--accent-soft);
  color: var(--accent-strong);
  border: 1px solid #dbe2ff;
  font-size: .8rem;
  font-weight: 650;
  letter-spacing: .04em;
  text-transform: uppercase;
  padding: 5px 12px;
  border-radius: 999px;
  margin-bottom: 14px;
}

.badge {
  display: inline-block;
  font-size: .74rem;
  font-weight: 650;
  padding: 3px 10px;
  border-radius: 999px;
  background: #f1f5f9;
  border: 1px solid var(--line);
  color: var(--muted);
  white-space: nowrap;
}
.badge.law { background: #f5f3ff; border-color: #ddd6fe; color: #5b21b6; }

.section { padding: 54px 0; }
.section-head { max-width: 760px; margin-bottom: 26px; }

/* ---------- hero ---------- */

.hero {
  padding: 72px 0 58px;
  background:
    radial-gradient(1100px 420px at 85% -60px, #ede9fe 0%, transparent 60%),
    radial-gradient(900px 380px at 0% -80px, #e0e7ff 0%, transparent 55%);
  border-bottom: 1px solid var(--line);
}

.hero .lead { font-size: 1.13rem; color: var(--muted); max-width: 720px; }

.btn-row { display: flex; gap: 12px; flex-wrap: wrap; margin-top: 26px; }

.btn {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 12px 22px;
  border-radius: 11px;
  font-weight: 650;
  font-size: .98rem;
  text-decoration: none;
  cursor: pointer;
  border: 1px solid transparent;
  transition: transform .12s ease, box-shadow .12s ease, background .12s ease;
}

.btn-primary {
  background: linear-gradient(135deg, #4f46e5, #6d28d9);
  color: #fff;
  box-shadow: 0 6px 16px rgba(79, 70, 229, .28);
}
.btn-primary:hover { transform: translateY(-1px); box-shadow: 0 9px 22px rgba(79, 70, 229, .34); }

.btn-ghost {
  background: #fff;
  border-color: var(--line);
  color: var(--ink);
}
.btn-ghost:hover { border-color: #c7d2fe; background: var(--accent-soft); }

.meta-note { margin-top: 18px; color: var(--soft); font-size: .85rem; }

/* ---------- cards & grids ---------- */

.grid { display: grid; gap: 16px; }
.grid.two { grid-template-columns: repeat(2, 1fr); }
.grid.three { grid-template-columns: repeat(3, 1fr); }

.card {
  background: var(--card);
  border: 1px solid var(--line);
  border-radius: var(--radius);
  box-shadow: var(--shadow);
  padding: 24px;
}

.card h3 { display: flex; align-items: baseline; gap: 9px; }
.card .icon { font-size: 1.3rem; }
.card p:last-child { margin-bottom: 0; }

.card.warn-card { border-color: #fde68a; background: #fffdf5; }

.check-list { list-style: none; padding: 0; margin: 0; }
.check-list li {
  position: relative;
  padding-left: 30px;
  margin-bottom: 12px;
}
.check-list li::before {
  content: "\2713";
  position: absolute;
  left: 0;
  top: 0;
  width: 21px;
  height: 21px;
  border-radius: 7px;
  background: var(--ok-soft);
  color: var(--ok);
  font-size: .8rem;
  font-weight: 800;
  display: flex;
  align-items: center;
  justify-content: center;
  margin-top: 3px;
}

.laws { display: flex; flex-wrap: wrap; gap: 8px; margin-top: 6px; }

/* ---------- forms ---------- */

.form-shell { max-width: 640px; }

.field { margin-bottom: 18px; }

label, legend {
  display: block;
  font-weight: 640;
  font-size: .93rem;
  margin-bottom: 7px;
}

.req { color: #dc2626; }

input[type="email"],
input[type="text"],
textarea {
  width: 100%;
  padding: 12px 14px;
  border: 1px solid #cbd5e1;
  border-radius: 10px;
  font: inherit;
  color: var(--ink);
  background: #fff;
}

input:focus-visible,
textarea:focus-visible,
button:focus-visible,
a:focus-visible,
summary:focus-visible {
  outline: 2px solid var(--accent);
  outline-offset: 2px;
}

fieldset {
  border: 1px solid var(--line);
  border-radius: 12px;
  padding: 16px 16px 6px;
  margin: 0 0 18px;
  background: #fcfdff;
}

.choice {
  display: flex;
  gap: 10px;
  align-items: flex-start;
  padding: 10px 6px 14px;
  border-bottom: 1px dashed var(--line);
}
.choice:last-child { border-bottom: 0; }
.choice input { margin-top: 4px; accent-color: var(--accent); flex: none; }
.choice .desc { display: block; font-weight: 450; color: var(--muted); font-size: .87rem; }

.hp { position: absolute; left: -9999px; top: auto; height: 1px; width: 1px; overflow: hidden; }

.form-error {
  background: #fef2f2;
  border: 1px solid #fecaca;
  color: #991b1b;
  border-radius: 12px;
  padding: 13px 16px;
  margin-bottom: 18px;
  font-size: .93rem;
}

.panel {
  border-radius: 14px;
  border: 1px solid var(--line);
  padding: 20px 22px;
  margin-bottom: 16px;
}
.panel.ok { background: var(--ok-soft); border-color: #a7f3d0; }
.panel.note { background: var(--warn-soft); border-color: #fde68a; }
.panel h3 { margin-bottom: 6px; }
.panel p:last-child { margin-bottom: 0; }

.success-dot {
  display: inline-flex;
  width: 44px; height: 44px;
  border-radius: 50%;
  background: #d1fae5;
  color: var(--ok);
  font-size: 1.3rem;
  font-weight: 800;
  align-items: center;
  justify-content: center;
  margin-bottom: 10px;
}

/* ---------- faq ---------- */

details {
  background: var(--card);
  border: 1px solid var(--line);
  border-radius: 12px;
  box-shadow: var(--shadow);
  margin-bottom: 12px;
  overflow: hidden;
}
summary {
  cursor: pointer;
  font-weight: 650;
  padding: 16px 20px;
  list-style: none;
  position: relative;
  padding-right: 44px;
}
summary::-webkit-details-marker { display: none; }
summary::after {
  content: "+";
  position: absolute;
  right: 18px;
  top: 50%;
  transform: translateY(-50%);
  color: var(--accent);
  font-size: 1.25rem;
  font-weight: 700;
}
details[open] summary::after { content: "\2013"; }
details .body { padding: 0 20px 18px; color: var(--muted); }

/* ---------- footer ---------- */

.site-foot {
  background: #0f172a;
  color: #cbd5e1;
  margin-top: 30px;
  padding: 46px 0 34px;
}
.site-foot a { color: #a5b4fc; text-decoration: none; }
.site-foot a:hover { text-decoration: underline; }
.site-foot .cols {
  display: grid;
  grid-template-columns: 2fr 1fr 1fr;
  gap: 34px;
}
.site-foot h4 {
  color: #e2e8f0;
  font-size: .82rem;
  text-transform: uppercase;
  letter-spacing: .08em;
  margin: 0 0 12px;
}
.site-foot ul { list-style: none; padding: 0; margin: 0; }
.site-foot li { margin-bottom: 8px; font-size: .92rem; }
.foot-rule {
  border: 0;
  border-top: 1px solid #1e293b;
  margin: 28px 0 18px;
}
.addr { color: #94a3b8; font-style: normal; font-size: .92rem; line-height: 1.7; }

/* ---------- responsive ---------- */

@media (max-width: 860px) {
  .grid.three { grid-template-columns: repeat(2, 1fr); }
}

@media (max-width: 680px) {
  .grid.two, .grid.three { grid-template-columns: 1fr; }
  .site-foot .cols { grid-template-columns: 1fr; gap: 26px; }
  .section { padding: 40px 0; }
  .hero { padding: 50px 0 40px; }
}
