/* Damex Email Sender public pages. No build step, no external requests. */
:root {
  --paper: #FAF9F6;
  --ink: #111111;
  --muted: #55524C;
  --rule: #E3E0D8;
  --marigold: #FFB000;
  --measure: 68rem;
  --radius: 10px;
  font-family: "Hanken Grotesk", ui-sans-serif, system-ui, -apple-system, "Segoe UI", Roboto, "Helvetica Neue", Arial, sans-serif;
  color: var(--ink);
  background: var(--paper);
  line-height: 1.55;
  -webkit-text-size-adjust: 100%;
}

*, *::before, *::after { box-sizing: border-box; }
html { scroll-behavior: smooth; }
body { margin: 0; }
h1, h2, h3 {
  font-family: "Bricolage Grotesque", "Hanken Grotesk", ui-sans-serif, system-ui, sans-serif;
  font-weight: 600;
  line-height: 1.15;
  letter-spacing: -0.01em;
  margin: 0;
}
p, ul, ol, dl, dd { margin: 0; }
a { color: inherit; text-underline-offset: 3px; text-decoration-thickness: 1px; }
a:hover { text-decoration-color: var(--marigold); }
:focus-visible { outline: 2px solid var(--ink); outline-offset: 3px; }

.skip { position: absolute; left: -999px; top: 0; }
.skip:focus { left: 1rem; top: 1rem; background: var(--paper); padding: .5rem .75rem; z-index: 2; }

.wrap { max-width: var(--measure); margin: 0 auto; padding: 0 1.25rem; }

/* Header */
.site-head { border-bottom: 1px solid var(--rule); }
.site-head .wrap { display: flex; align-items: center; justify-content: space-between; gap: 1rem; min-height: 4rem; }
.brand { text-decoration: none; font-weight: 600; letter-spacing: -0.01em; }
.brand span { color: var(--muted); font-weight: 400; }
.site-nav { display: flex; gap: 1.25rem; font-size: .95rem; }
.site-nav a { text-decoration: none; }
/* 44px tap targets without changing the visual line height. */
.site-nav a, .site-foot nav a { display: inline-flex; align-items: center; min-height: 2.75rem; }
.brand { display: inline-block; padding: .7rem 0; }
.site-nav a:hover { text-decoration: underline; }

/* Buttons: square corners per Damex direction */
.btn {
  display: inline-block;
  padding: .8rem 1.2rem;
  border: 1px solid var(--ink);
  border-radius: 0;
  font-weight: 600;
  text-decoration: none;
  line-height: 1.2;
  transition: background-color .15s ease, color .15s ease;
}
.btn-primary { background: var(--marigold); border-color: var(--marigold); color: var(--ink); }
.btn-primary:hover { background: var(--ink); border-color: var(--ink); color: var(--paper); }
.btn-quiet { background: transparent; }
.btn-quiet:hover { background: var(--ink); color: var(--paper); }

/* Sections */
section { padding: 4rem 0; border-bottom: 1px solid var(--rule); }
section:last-of-type { border-bottom: 0; }
.hero { padding: 5rem 0 4rem; }
.hero h1 { font-size: clamp(2.1rem, 5vw, 3.6rem); max-width: 20ch; }
.actions { display: flex; flex-wrap: wrap; gap: .75rem; margin-top: 2rem; }

h2 { font-size: clamp(1.5rem, 3vw, 2rem); margin-bottom: 1.5rem; }
.lede { color: var(--muted); max-width: 60ch; margin: -0.75rem 0 2rem; }

/* Feature list: hairline rows */
.features { list-style: none; padding: 0; display: grid; grid-template-columns: repeat(auto-fit, minmax(16rem, 1fr)); border-top: 1px solid var(--rule); }
.features li { padding: 1.25rem 1.25rem 1.25rem 0; border-bottom: 1px solid var(--rule); }
.features strong { display: block; margin-bottom: .25rem; }
.features span { color: var(--muted); }

/* Plans */
.plans { display: grid; grid-template-columns: repeat(4, 1fr); border: 1px solid var(--rule); border-radius: var(--radius); overflow: hidden; }
.plan { padding: 1.5rem; border-left: 1px solid var(--rule); display: flex; flex-direction: column; gap: 1rem; background: #fff; }
.plan:first-child { border-left: 0; }
.plan h3 { font-size: 1.15rem; }
.price { font-size: 2rem; font-weight: 600; line-height: 1; }
.price small { font-size: .95rem; font-weight: 400; color: var(--muted); margin-left: .25rem; }
.plan ul { padding-left: 1.1rem; color: var(--ink); font-size: .95rem; }
.plan li + li { margin-top: .35rem; }
.plan .note { font-size: .85rem; color: var(--muted); margin-top: auto; }
.plans-foot { margin-top: 1.5rem; font-size: .9rem; color: var(--muted); max-width: 70ch; }
.plans-foot p + p { margin-top: .5rem; }

/* Steps */
.steps { counter-reset: step; list-style: none; padding: 0; display: grid; grid-template-columns: repeat(auto-fit, minmax(13rem, 1fr)); gap: 1.5rem; }
.steps li { counter-increment: step; border-top: 2px solid var(--ink); padding-top: .9rem; }
.steps li::before { content: counter(step); display: block; font-weight: 600; color: var(--muted); margin-bottom: .35rem; font-variant-numeric: tabular-nums; }

/* FAQ */
.faq { border-top: 1px solid var(--rule); max-width: 52rem; }
.faq div { padding: 1.25rem 0; border-bottom: 1px solid var(--rule); }
.faq dt { font-weight: 600; margin-bottom: .35rem; }
.faq dd { color: var(--muted); }

/* Prose pages (notices) */
.prose { max-width: 46rem; padding: 3.5rem 0; }
.prose h1 { font-size: clamp(1.8rem, 4vw, 2.4rem); margin-bottom: 1.25rem; }
.prose h2 { font-size: 1.25rem; margin: 2rem 0 .75rem; }
.prose p + p { margin-top: .75rem; }
.prose pre { white-space: pre-wrap; font-size: .85rem; background: #fff; border: 1px solid var(--rule); border-radius: var(--radius); padding: 1rem; overflow-x: auto; }

/* Footer */
.site-foot { border-top: 1px solid var(--rule); padding: 2rem 0 3rem; font-size: .85rem; color: var(--muted); }
.site-foot .wrap { display: flex; flex-wrap: wrap; gap: .75rem 2rem; justify-content: space-between; }
.site-foot nav { display: flex; flex-wrap: wrap; gap: 0 1rem; }

@media (max-width: 960px) {
  .plans { grid-template-columns: repeat(2, 1fr); }
  .plan:nth-child(3) { border-left: 0; }
  .plan:nth-child(n+3) { border-top: 1px solid var(--rule); }
}
@media (max-width: 600px) {
  section { padding: 3rem 0; }
  .hero { padding: 3.5rem 0 3rem; }
  .site-nav { gap: .9rem; font-size: .9rem; }
  .site-nav .hide-sm { display: none; }
  .plans { grid-template-columns: 1fr; }
  .plan { border-left: 0; }
  .plan + .plan { border-top: 1px solid var(--rule); }
  .actions .btn { flex: 1 1 100%; text-align: center; }
}
@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  *, *::before, *::after { transition: none !important; animation: none !important; }
}
