/* mailprovider.net — shared styles */

:root {
  --bg: #08090C;
  --bg-grad: radial-gradient(ellipse 80% 50% at 50% -10%, #14171F 0%, #08090C 60%);
  --surface: #0F1117;
  --surface-2: #14171F;
  --ink: #ECEDEF;
  --mute: #6E727B;
  --mute-strong: #9B9FA8;
  --border: #1C1F27;
  --border-strong: #262932;
  --accent: #B5F0A8;
  --accent-glow: rgba(181, 240, 168, 0.18);
}

* { box-sizing: border-box; margin: 0; padding: 0; }

html {
  scroll-behavior: smooth;
  background: var(--bg);
}

body {
  background: var(--bg);
  background-image: var(--bg-grad);
  background-attachment: fixed;
  color: var(--ink);
  font-family: 'Geist', -apple-system, BlinkMacSystemFont, sans-serif;
  font-size: 15px;
  line-height: 1.6;
  letter-spacing: -0.005em;
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
  min-height: 100vh;
  display: flex;
  flex-direction: column;
  font-feature-settings: 'ss01', 'ss02';
}

.shell {
  width: 100%;
  max-width: 720px;
  margin: 0 auto;
  padding: 0 32px;
  flex: 1;
  display: flex;
  flex-direction: column;
}

/* Topbar */
.topbar {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 28px 0;
}

.wordmark {
  font-family: 'Geist Mono', ui-monospace, monospace;
  font-size: 13px;
  font-weight: 500;
  letter-spacing: -0.01em;
  color: var(--ink);
  text-decoration: none;
  transition: color 0.2s ease;
}

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

.status {
  font-family: 'Geist Mono', ui-monospace, monospace;
  font-size: 11px;
  letter-spacing: 0.04em;
  color: var(--mute);
  display: flex;
  align-items: center;
  gap: 8px;
}

.status-dot {
  width: 6px;
  height: 6px;
  border-radius: 50%;
  background: var(--accent);
  display: inline-block;
  box-shadow: 0 0 0 3px var(--accent-glow);
  animation: pulse 2.6s ease-in-out infinite;
}

@keyframes pulse {
  0%, 100% { box-shadow: 0 0 0 3px var(--accent-glow); opacity: 1; }
  50% { box-shadow: 0 0 0 5px rgba(181, 240, 168, 0.06); opacity: 0.85; }
}

/* Hero (homepage) */
.hero {
  padding: 120px 0 88px;
}

.hero-eyebrow {
  font-family: 'Geist Mono', ui-monospace, monospace;
  font-size: 11px;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  color: var(--mute);
  margin-bottom: 32px;
}

.hero-headline {
  font-family: 'Geist', sans-serif;
  font-weight: 500;
  font-size: clamp(36px, 5.5vw, 54px);
  line-height: 1.05;
  letter-spacing: -0.035em;
  color: var(--ink);
  max-width: 580px;
}

.hero-headline .quiet {
  color: var(--mute-strong);
  font-weight: 400;
}

.hero-lede {
  margin-top: 32px;
  font-size: 16px;
  line-height: 1.55;
  color: var(--mute-strong);
  max-width: 520px;
  font-weight: 400;
}

/* Page header (sub-pages) */
.page-header {
  padding: 88px 0 56px;
}

.page-header-eyebrow {
  font-family: 'Geist Mono', ui-monospace, monospace;
  font-size: 11px;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  color: var(--mute);
  margin-bottom: 24px;
}

.page-header-title {
  font-family: 'Geist', sans-serif;
  font-weight: 500;
  font-size: clamp(32px, 4.5vw, 44px);
  line-height: 1.1;
  letter-spacing: -0.03em;
  color: var(--ink);
  max-width: 580px;
}

.page-header-lede {
  margin-top: 24px;
  font-size: 16px;
  line-height: 1.55;
  color: var(--mute-strong);
  max-width: 580px;
}

/* Record card */
.record {
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: 12px;
  overflow: hidden;
  position: relative;
}

.record::before {
  content: '';
  position: absolute;
  top: 0; left: 0; right: 0;
  height: 1px;
  background: linear-gradient(to right, transparent, var(--border-strong), transparent);
}

.record-header {
  padding: 18px 22px;
  display: flex;
  justify-content: space-between;
  align-items: center;
  border-bottom: 1px solid var(--border);
  background: var(--surface-2);
}

.record-title {
  font-family: 'Geist Mono', ui-monospace, monospace;
  font-size: 11px;
  letter-spacing: 0.04em;
  text-transform: uppercase;
  color: var(--mute);
}

.record-ref {
  font-family: 'Geist Mono', ui-monospace, monospace;
  font-size: 11px;
  color: var(--mute);
}

.record-body { padding: 4px 0; }

.record-row {
  display: grid;
  grid-template-columns: 200px 1fr;
  gap: 32px;
  padding: 14px 22px;
  align-items: baseline;
}

.record-row + .record-row {
  border-top: 1px solid var(--border);
}

.record-key {
  font-family: 'Geist Mono', ui-monospace, monospace;
  font-size: 12px;
  color: var(--mute);
  letter-spacing: -0.005em;
}

.record-value {
  font-size: 14.5px;
  color: var(--ink);
  font-weight: 400;
  letter-spacing: -0.005em;
}

.record-value .mono {
  font-family: 'Geist Mono', ui-monospace, monospace;
  font-size: 13px;
}

.record-value a {
  color: var(--ink);
  text-decoration: none;
  border-bottom: 1px solid var(--border-strong);
  padding-bottom: 1px;
  transition: border-color 0.2s, color 0.2s;
}

.record-value a:hover {
  color: var(--accent);
  border-bottom-color: var(--accent);
}

/* Sections (homepage) */
section {
  padding: 64px 0;
}

section + section {
  padding-top: 0;
}

.section-title {
  font-family: 'Geist', sans-serif;
  font-weight: 500;
  font-size: 22px;
  line-height: 1.25;
  letter-spacing: -0.02em;
  color: var(--ink);
  margin-bottom: 14px;
  max-width: 520px;
}

.section-body {
  font-size: 15px;
  color: var(--mute-strong);
  max-width: 540px;
  line-height: 1.6;
}

.section-body p + p {
  margin-top: 12px;
}

.section-body strong {
  color: var(--ink);
  font-weight: 500;
}

.section-body a {
  color: var(--ink);
  text-decoration: none;
  border-bottom: 1px solid var(--border-strong);
  padding-bottom: 1px;
  transition: border-color 0.2s ease, color 0.2s ease;
}

.section-body a:hover {
  border-bottom-color: var(--accent);
  color: var(--accent);
}

.section-body code {
  font-family: 'Geist Mono', ui-monospace, monospace;
  font-size: 13px;
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: 4px;
  padding: 1px 6px;
  color: var(--ink);
}

/* Checks list */
.checks {
  margin-top: 18px;
  border-top: 1px solid var(--border);
}

.check-row {
  padding: 12px 0;
  border-bottom: 1px solid var(--border);
  display: grid;
  grid-template-columns: 24px 1fr;
  gap: 14px;
  align-items: baseline;
}

.check-mark {
  font-family: 'Geist Mono', ui-monospace, monospace;
  font-size: 11px;
  color: var(--accent);
}

.check-text {
  font-size: 14.5px;
  color: var(--ink);
  line-height: 1.5;
}

.check-text .mute {
  color: var(--mute-strong);
}

/* Document content (privacy/imprint long-form) */
.doc {
  max-width: 620px;
}

.doc-toc {
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: 12px;
  padding: 20px 22px;
  margin-bottom: 56px;
}

.doc-toc-label {
  font-family: 'Geist Mono', ui-monospace, monospace;
  font-size: 11px;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  color: var(--mute);
  margin-bottom: 12px;
}

.doc-toc-list {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 6px 24px;
  list-style: none;
}

.doc-toc-list li {
  font-size: 13.5px;
}

.doc-toc-list a {
  color: var(--ink);
  text-decoration: none;
  display: flex;
  gap: 10px;
  padding: 4px 0;
  transition: color 0.2s ease;
}

.doc-toc-list a:hover {
  color: var(--accent);
}

.doc-toc-list .toc-num {
  font-family: 'Geist Mono', ui-monospace, monospace;
  font-size: 11px;
  color: var(--mute);
  min-width: 22px;
}

.doc-section {
  padding-bottom: 40px;
  scroll-margin-top: 24px;
}

.doc-section + .doc-section {
  border-top: 1px solid var(--border);
  padding-top: 40px;
}

.doc-section-num {
  font-family: 'Geist Mono', ui-monospace, monospace;
  font-size: 11px;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  color: var(--mute);
  margin-bottom: 12px;
}

.doc-section-title {
  font-family: 'Geist', sans-serif;
  font-weight: 500;
  font-size: 22px;
  line-height: 1.25;
  letter-spacing: -0.02em;
  color: var(--ink);
  margin-bottom: 18px;
}

.doc-body {
  font-size: 15px;
  color: var(--mute-strong);
  line-height: 1.65;
}

.doc-body p + p {
  margin-top: 14px;
}

.doc-body strong {
  color: var(--ink);
  font-weight: 500;
}

.doc-body a {
  color: var(--ink);
  text-decoration: none;
  border-bottom: 1px solid var(--border-strong);
  padding-bottom: 1px;
  transition: border-color 0.2s, color 0.2s;
}

.doc-body a:hover {
  border-bottom-color: var(--accent);
  color: var(--accent);
}

.doc-body ul {
  list-style: none;
  margin-top: 14px;
}

.doc-body ul li {
  position: relative;
  padding-left: 20px;
  margin-top: 8px;
  color: var(--ink);
  line-height: 1.55;
}

.doc-body ul li::before {
  content: '';
  position: absolute;
  left: 4px;
  top: 11px;
  width: 6px;
  height: 1px;
  background: var(--mute);
}

.doc-body ul li strong {
  color: var(--ink);
  font-weight: 500;
}

.doc-body code {
  font-family: 'Geist Mono', ui-monospace, monospace;
  font-size: 13px;
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: 4px;
  padding: 1px 6px;
  color: var(--ink);
}

.doc-body .small {
  font-size: 13px;
  color: var(--mute);
  margin-top: 14px;
}

/* Footer */
footer {
  margin-top: auto;
  padding: 48px 0 56px;
}

.footer-line {
  height: 1px;
  background: var(--border);
  margin-bottom: 32px;
}

.footer-grid {
  display: flex;
  justify-content: space-between;
  align-items: flex-start;
  gap: 24px;
  flex-wrap: wrap;
}

.footer-col {
  display: flex;
  flex-direction: column;
  gap: 4px;
}

.footer-col-label {
  font-family: 'Geist Mono', ui-monospace, monospace;
  font-size: 11px;
  color: var(--mute);
  letter-spacing: 0.02em;
}

.footer-col-value {
  font-size: 13.5px;
  color: var(--ink);
  line-height: 1.5;
}

.footer-col-value a {
  color: var(--ink);
  text-decoration: none;
  transition: color 0.2s ease;
}

.footer-col-value a:hover {
  color: var(--accent);
}

.footer-meta {
  margin-top: 36px;
  font-family: 'Geist Mono', ui-monospace, monospace;
  font-size: 11px;
  color: var(--mute);
  letter-spacing: 0.02em;
  display: flex;
  justify-content: space-between;
  flex-wrap: wrap;
  gap: 12px;
}

/* Fade-in */
.fade {
  opacity: 0;
  transform: translateY(6px);
  animation: fadeIn 0.7s cubic-bezier(0.16, 1, 0.3, 1) forwards;
}

.fade:nth-child(1) { animation-delay: 0.05s; }
.fade:nth-child(2) { animation-delay: 0.15s; }
.fade:nth-child(3) { animation-delay: 0.25s; }
.fade:nth-child(4) { animation-delay: 0.35s; }
.fade:nth-child(5) { animation-delay: 0.45s; }
.fade:nth-child(6) { animation-delay: 0.55s; }
.fade:nth-child(7) { animation-delay: 0.65s; }

@keyframes fadeIn {
  to { opacity: 1; transform: translateY(0); }
}

@media (prefers-reduced-motion: reduce) {
  .fade { animation: none; opacity: 1; transform: none; }
  .status-dot { animation: none; }
  html { scroll-behavior: auto; }
}

/* Responsive */
@media (max-width: 640px) {
  .shell { padding: 0 22px; }
  .topbar { padding: 22px 0; }
  .hero { padding: 72px 0 56px; }
  .hero-headline { font-size: 32px; letter-spacing: -0.03em; }
  .hero-lede { font-size: 15px; }
  .page-header { padding: 56px 0 40px; }
  .page-header-title { font-size: 28px; letter-spacing: -0.025em; }
  .page-header-lede { font-size: 15px; }
  section { padding: 48px 0; }
  .section-title { font-size: 20px; }
  .record-row {
    grid-template-columns: 1fr;
    gap: 4px;
    padding: 14px 18px;
  }
  .record-header { padding: 14px 18px; }
  .check-row {
    grid-template-columns: 20px 1fr;
    gap: 10px;
  }
  .doc-toc-list {
    grid-template-columns: 1fr;
    gap: 4px;
  }
  .doc-section-title { font-size: 20px; }
  .doc-section { padding-bottom: 32px; }
  .doc-section + .doc-section { padding-top: 32px; }
  .footer-grid {
    flex-direction: column;
    gap: 20px;
  }
  .footer-meta {
    flex-direction: column;
    gap: 6px;
  }
  .status .status-text { display: none; }
}

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