/* meLink Blast — static product and policy site.
   Light-only, no external assets, system fonts, single accent #2563eb. */

:root {
  --canvas: #fafafa;
  --surface: #ffffff;
  --sunken: #f4f4f5;
  --border: #e8e8ec;
  --border-strong: #8b8b93;
  --text: #09090b;
  --text-secondary: #52525b;
  --text-muted: #71717a;
  --accent: #2563eb;
  --accent-hover: #1d4ed8;
  --accent-active: #1e40af;
  --accent-soft: #eff6ff;
  --on-accent: #ffffff;
  --success: #15803d;
  --success-soft: #f0fdf4;
  --warning: #b45309;
  --warning-soft: #fffbeb;
  --radius-sm: 8px;
  --radius-md: 12px;
  --radius-lg: 16px;
  --radius-full: 9999px;
  --shadow-sm: 0 1px 3px rgb(9 9 11 / 0.06), 0 1px 2px rgb(9 9 11 / 0.04);
  --shadow-md: 0 4px 12px -2px rgb(9 9 11 / 0.08);
  --shadow-lg: 0 12px 32px -8px rgb(9 9 11 / 0.12);
  --font: -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, Helvetica,
    Arial, sans-serif;
  --mono: ui-monospace, SFMono-Regular, "SF Mono", Menlo, Consolas, monospace;
  color-scheme: light;
}

*,
*::before,
*::after {
  box-sizing: border-box;
}

html {
  -webkit-text-size-adjust: 100%;
  scroll-behavior: smooth;
}

body {
  margin: 0;
  background: var(--canvas);
  color: var(--text);
  font-family: var(--font);
  font-size: 16px;
  line-height: 1.6;
  font-weight: 400;
  -webkit-font-smoothing: antialiased;
}

h1,
h2,
h3,
h4,
p {
  margin: 0;
}

ul,
ol {
  margin: 0;
  padding: 0;
  list-style: none;
}

a {
  color: inherit;
  text-decoration: none;
}

img,
svg {
  display: block;
  flex: none;
  max-width: 100%;
}

::selection {
  background: var(--accent-soft);
  color: var(--accent-active);
}

:focus-visible {
  outline: 2px solid var(--accent);
  outline-offset: 3px;
  border-radius: 3px;
}

/* Layout ----------------------------------------------------------------- */

.wrap {
  width: 100%;
  max-width: 1080px;
  margin: 0 auto;
  padding: 0 20px;
}

.wrap-narrow {
  max-width: 780px;
}

@media (min-width: 768px) {
  .wrap {
    padding: 0 32px;
  }
}

.skip-link {
  position: fixed;
  left: 16px;
  top: -80px;
  z-index: 100;
  padding: 10px 16px;
  border-radius: var(--radius-md);
  background: var(--text);
  color: #ffffff;
  font-size: 14px;
  font-weight: 500;
}

.skip-link:focus {
  top: 12px;
}

/* Header ----------------------------------------------------------------- */

.site-header {
  position: sticky;
  top: 0;
  z-index: 30;
  background: var(--canvas);
  border-bottom: 1px solid var(--border);
}

.site-header .inner {
  display: flex;
  align-items: center;
  gap: 24px;
  min-height: 64px;
}

.wordmark {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  font-size: 15px;
  font-weight: 600;
  letter-spacing: -0.01em;
  white-space: nowrap;
}

.wordmark img {
  width: 28px;
  height: 28px;
  border-radius: 7px;
}

.site-nav {
  display: flex;
  align-items: center;
  gap: 24px;
  margin-left: auto;
}

.site-nav a {
  padding: 6px 0;
  font-size: 14px;
  font-weight: 500;
  color: var(--text-secondary);
}

.site-nav a:hover {
  color: var(--text);
}

.site-nav a[aria-current="page"] {
  color: var(--text);
  text-decoration: underline;
  text-decoration-color: var(--accent);
  text-decoration-thickness: 2px;
  text-underline-offset: 6px;
}

@media (max-width: 560px) {
  .site-header .inner {
    gap: 12px;
    min-height: 60px;
  }

  .wordmark {
    font-size: 14px;
  }

  .wordmark img {
    width: 26px;
    height: 26px;
  }

  .site-nav {
    gap: 15px;
  }

  .site-nav a {
    font-size: 13px;
  }
}

/* Buttons ---------------------------------------------------------------- */

.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  min-height: 46px;
  padding: 0 20px;
  border: 1px solid transparent;
  border-radius: var(--radius-md);
  font-size: 15px;
  font-weight: 600;
  line-height: 1.2;
  text-align: center;
  transition:
    background-color 150ms cubic-bezier(0.2, 0, 0, 1),
    border-color 150ms cubic-bezier(0.2, 0, 0, 1),
    color 150ms cubic-bezier(0.2, 0, 0, 1);
}

.btn-primary {
  background: var(--accent);
  color: var(--on-accent);
  box-shadow: var(--shadow-sm);
}

.btn-primary:hover {
  background: var(--accent-hover);
}

.btn-primary:focus-visible {
  outline-color: var(--on-accent);
  outline-offset: -3px;
}

.btn-secondary {
  background: var(--surface);
  border-color: var(--border-strong);
  color: var(--text);
}

.btn-secondary:hover {
  background: var(--sunken);
}

/* Hero ------------------------------------------------------------------- */

.hero {
  padding: 56px 0 64px;
  border-bottom: 1px solid var(--border);
}

.hero-grid {
  display: grid;
  gap: 40px;
  align-items: center;
}

.eyebrow {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  font-size: 12px;
  font-weight: 600;
  letter-spacing: 0.09em;
  text-transform: uppercase;
  color: var(--text-secondary);
}

.eyebrow-dot {
  width: 7px;
  height: 7px;
  border-radius: var(--radius-full);
  background: var(--success);
  box-shadow: 0 0 0 3px var(--success-soft);
}

.hero h1 {
  max-width: 15ch;
  margin-top: 18px;
  font-size: clamp(2.05rem, 6.2vw, 3.6rem);
  font-weight: 600;
  line-height: 1.04;
  letter-spacing: -0.038em;
}

.hero-lede {
  max-width: 54ch;
  margin-top: 20px;
  font-size: 17px;
  line-height: 1.65;
  color: var(--text-secondary);
}

.hero-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 12px;
  margin-top: 30px;
}

.hero-notes {
  display: flex;
  flex-wrap: wrap;
  gap: 8px 20px;
  margin-top: 22px;
  font-size: 13px;
  color: var(--text-secondary);
}

.hero-notes li {
  display: inline-flex;
  align-items: center;
  gap: 7px;
}

.hero-notes li::before {
  content: "";
  width: 5px;
  height: 5px;
  border-radius: var(--radius-full);
  background: var(--success);
}

/* Local desk card -------------------------------------------------------- */

.desk-card {
  overflow: hidden;
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: var(--radius-lg);
  box-shadow: var(--shadow-md);
}

.desk-head {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  padding: 16px 20px;
  border-bottom: 1px solid var(--border);
}

.desk-title {
  display: inline-flex;
  align-items: center;
  gap: 9px;
  font-size: 13px;
  font-weight: 600;
}

.desk-title img {
  width: 24px;
  height: 24px;
  border-radius: 6px;
}

.badge {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  min-height: 24px;
  padding: 2px 10px;
  border-radius: var(--radius-full);
  background: var(--accent-soft);
  color: var(--accent-active);
  font-size: 11px;
  font-weight: 600;
  letter-spacing: 0.02em;
  white-space: nowrap;
}

.badge-success {
  background: var(--success-soft);
  color: var(--success);
}

.desk-rows {
  padding: 4px 20px;
}

.desk-row {
  display: flex;
  flex-wrap: wrap;
  gap: 3px 16px;
  align-items: baseline;
  justify-content: space-between;
  padding: 13px 0;
  border-bottom: 1px solid var(--border);
}

.desk-row:last-child {
  border-bottom: 0;
}

.desk-row dt {
  font-size: 13px;
  color: var(--text-secondary);
}

.desk-row dd {
  margin: 0;
  font-size: 13px;
  font-weight: 500;
  text-align: right;
  overflow-wrap: anywhere;
}

.desk-row code {
  padding: 1px 5px;
  border: 1px solid var(--border);
  border-radius: 5px;
  background: var(--sunken);
  font-family: var(--mono);
  font-size: 12px;
  color: var(--text);
}

.desk-foot {
  display: flex;
  align-items: flex-start;
  gap: 8px;
  padding: 13px 20px;
  border-top: 1px solid var(--border);
  background: var(--canvas);
  font-size: 12px;
  line-height: 1.55;
  color: var(--text-secondary);
}

.desk-foot svg {
  width: 14px;
  height: 14px;
  margin-top: 2px;
  color: var(--success);
}

@media (min-width: 900px) {
  .hero {
    padding: 80px 0 88px;
  }

  .hero-grid {
    grid-template-columns: minmax(0, 1.05fr) minmax(0, 0.95fr);
    gap: 56px;
  }

  .hero-lede {
    font-size: 18px;
  }
}

/* Sections --------------------------------------------------------------- */

.section {
  padding: 60px 0;
  border-bottom: 1px solid var(--border);
}

@media (min-width: 768px) {
  .section {
    padding: 80px 0;
  }
}

.section-sunken {
  background: var(--sunken);
}

.section-head {
  max-width: 660px;
}

.section h2 {
  margin-top: 12px;
  font-size: clamp(1.65rem, 3.4vw, 2.35rem);
  font-weight: 600;
  line-height: 1.1;
  letter-spacing: -0.03em;
}

.section-lede {
  max-width: 60ch;
  margin-top: 14px;
  font-size: 16px;
  line-height: 1.65;
  color: var(--text-secondary);
}

/* Steps ------------------------------------------------------------------ */

.steps {
  display: grid;
  gap: 14px;
  margin-top: 36px;
}

.step {
  padding: 22px;
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: var(--radius-lg);
}

.step-num {
  display: inline-grid;
  place-items: center;
  width: 30px;
  height: 30px;
  border-radius: 9px;
  background: var(--accent-soft);
  color: var(--accent-active);
  font-size: 12px;
  font-weight: 600;
  font-variant-numeric: tabular-nums;
}

.step h3 {
  margin-top: 14px;
  font-size: 15px;
  font-weight: 600;
  letter-spacing: -0.005em;
}

.step p {
  margin-top: 6px;
  font-size: 14px;
  line-height: 1.6;
  color: var(--text-secondary);
}

@media (min-width: 700px) {
  .steps {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }
}

@media (min-width: 1000px) {
  .steps {
    grid-template-columns: repeat(4, minmax(0, 1fr));
  }
}

/* Split section ---------------------------------------------------------- */

.split {
  display: grid;
  gap: 36px;
  align-items: start;
}

.split-copy p {
  max-width: 56ch;
  margin-top: 16px;
  font-size: 15px;
  line-height: 1.7;
  color: var(--text-secondary);
}

.split-copy p:first-of-type {
  margin-top: 18px;
}

.local-card {
  overflow: hidden;
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: var(--radius-lg);
  box-shadow: var(--shadow-sm);
}

.local-head {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  padding: 17px 22px;
  border-bottom: 1px solid var(--border);
}

.local-head h3 {
  font-size: 14px;
  font-weight: 600;
}

.local-list {
  padding: 4px 22px;
}

.local-list li {
  display: flex;
  gap: 10px;
  align-items: flex-start;
  padding: 11px 0;
  border-bottom: 1px solid var(--border);
  font-size: 14px;
  line-height: 1.55;
  color: var(--text-secondary);
}

.local-list li:last-child {
  border-bottom: 0;
}

.local-list svg {
  width: 16px;
  height: 16px;
  margin-top: 3px;
  color: var(--success);
}

.local-foot {
  padding: 13px 22px;
  border-top: 1px solid var(--border);
  background: var(--canvas);
  font-size: 12px;
  line-height: 1.55;
  color: var(--text-secondary);
}

@media (min-width: 900px) {
  .split {
    grid-template-columns: minmax(0, 1fr) minmax(0, 430px);
    gap: 64px;
  }
}

/* Cards ------------------------------------------------------------------ */

.cards {
  display: grid;
  gap: 14px;
  margin-top: 36px;
}

.card {
  padding: 24px;
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: var(--radius-lg);
}

.card h3 {
  font-size: 15px;
  font-weight: 600;
  letter-spacing: -0.005em;
}

.card p {
  margin-top: 7px;
  font-size: 14px;
  line-height: 1.6;
  color: var(--text-secondary);
}

.card-tag {
  display: inline-block;
  margin-bottom: 14px;
  padding: 3px 9px;
  border-radius: var(--radius-full);
  background: var(--sunken);
  color: var(--text-secondary);
  font-size: 11px;
  font-weight: 600;
  letter-spacing: 0.05em;
  text-transform: uppercase;
}

@media (min-width: 700px) {
  .cards {
    grid-template-columns: repeat(3, minmax(0, 1fr));
  }
}

/* CTA -------------------------------------------------------------------- */

.cta {
  padding: 56px 0;
  border-bottom: 1px solid var(--border);
}

@media (min-width: 768px) {
  .cta {
    padding: 72px 0;
  }
}

.cta-card {
  padding: 28px;
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: var(--radius-lg);
  box-shadow: var(--shadow-sm);
}

.cta-card h2 {
  font-size: clamp(1.45rem, 2.6vw, 1.9rem);
  font-weight: 600;
  line-height: 1.15;
  letter-spacing: -0.025em;
}

.cta-card p {
  max-width: 52ch;
  margin-top: 10px;
  font-size: 15px;
  line-height: 1.6;
  color: var(--text-secondary);
}

.cta-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 12px;
  margin-top: 22px;
}

@media (min-width: 820px) {
  .cta-card {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 48px;
    padding: 38px 42px;
  }

  .cta-actions {
    flex: none;
    margin-top: 0;
  }
}

/* Policy pages ----------------------------------------------------------- */

.policy-header {
  padding: 48px 0 32px;
}

.policy-header h1 {
  margin-top: 12px;
  font-size: clamp(2rem, 5vw, 3.1rem);
  font-weight: 600;
  line-height: 1.05;
  letter-spacing: -0.035em;
}

.policy-date {
  margin-top: 12px;
  font-size: 14px;
  color: var(--text-secondary);
}

.summary {
  margin-top: 28px;
  padding: 20px 22px;
  background: var(--accent-soft);
  border: 1px solid #dbeafe;
  border-radius: var(--radius-lg);
}

.summary h2 {
  font-size: 12px;
  font-weight: 700;
  letter-spacing: 0.09em;
  text-transform: uppercase;
  color: var(--accent-active);
}

.summary p {
  margin-top: 8px;
  font-size: 15px;
  line-height: 1.65;
  color: var(--text);
}

.policy-body {
  padding: 8px 0 64px;
}

.prose {
  max-width: 72ch;
  padding-top: 20px;
}

.prose h2 {
  margin-top: 40px;
  padding-top: 4px;
  font-size: 1.35rem;
  font-weight: 600;
  line-height: 1.25;
  letter-spacing: -0.02em;
}

.prose h2:first-child {
  margin-top: 8px;
}

.prose h3 {
  margin-top: 26px;
  font-size: 1.05rem;
  font-weight: 600;
}

.prose p {
  margin-top: 12px;
  font-size: 16px;
  line-height: 1.7;
  color: var(--text-secondary);
}

.prose ul {
  margin-top: 12px;
  padding-left: 1.25rem;
  list-style: disc;
}

.prose li {
  margin-top: 8px;
  font-size: 16px;
  line-height: 1.65;
  color: var(--text-secondary);
}

.prose li::marker {
  color: var(--accent);
}

.prose a {
  color: var(--accent-active);
  font-weight: 500;
  text-decoration: underline;
  text-decoration-thickness: 1px;
  text-underline-offset: 3px;
}

.prose a:hover {
  color: var(--accent-hover);
}

.prose strong {
  color: var(--text);
  font-weight: 600;
}

.notice {
  margin-top: 36px;
  padding: 16px 18px;
  border: 1px solid var(--border);
  border-radius: var(--radius-md);
  background: var(--surface);
  font-size: 14px;
  line-height: 1.6;
  color: var(--text-secondary);
}

.back-links {
  display: flex;
  flex-wrap: wrap;
  gap: 12px 24px;
  margin-top: 40px;
  padding-top: 24px;
  border-top: 1px solid var(--border);
  font-size: 14px;
}

.back-links a {
  font-weight: 500;
  color: var(--accent-active);
  text-decoration: underline;
  text-underline-offset: 3px;
}

/* Footer ----------------------------------------------------------------- */

.site-footer {
  padding: 44px 0 28px;
  background: var(--surface);
}

.footer-grid {
  display: grid;
  gap: 28px;
}

.footer-brand p {
  max-width: 38ch;
  margin-top: 12px;
  font-size: 13px;
  line-height: 1.6;
  color: var(--text-secondary);
}

.footer-col h2 {
  font-size: 12px;
  font-weight: 600;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: var(--text-secondary);
}

.footer-col ul {
  display: grid;
  gap: 10px;
  margin-top: 13px;
}

.footer-col a,
.footer-col address {
  font-size: 13px;
  font-style: normal;
  line-height: 1.55;
  color: var(--text-secondary);
}

.footer-col a:hover {
  color: var(--text);
  text-decoration: underline;
  text-underline-offset: 3px;
}

.footer-bottom {
  display: flex;
  flex-wrap: wrap;
  justify-content: space-between;
  gap: 8px 24px;
  margin-top: 34px;
  padding-top: 18px;
  border-top: 1px solid var(--border);
  font-size: 12px;
  line-height: 1.55;
  color: var(--text-secondary);
}

@media (min-width: 760px) {
  .footer-grid {
    grid-template-columns: 1.5fr 1fr 1fr;
    gap: 48px;
  }
}

/* Motion ----------------------------------------------------------------- */

@media (prefers-reduced-motion: reduce) {
  html {
    scroll-behavior: auto;
  }

  *,
  *::before,
  *::after {
    animation-duration: 0.01ms !important;
    animation-iteration-count: 1 !important;
    transition-duration: 0.01ms !important;
  }
}
