/* unreplied.email — editorial ink-on-paper */

:root {
  --paper: #f7f3ec;
  --paper-2: #efe9de;
  --ink: #1c1a17;
  --ink-2: #57524a;
  --ink-3: #8a8378;
  --line: #ddd5c7;
  --accent: #0f5cad;
  --accent-deep: #0a4485;
  --warn: #b35c00;
  --warn-bg: #f6e7d2;
  --late: #a4262c;
  --late-bg: #f4dfdf;
  --ok: #2c6e3f;
}

* { box-sizing: border-box; }

html { scroll-behavior: smooth; }

body {
  margin: 0;
  background: var(--paper);
  color: var(--ink);
  font-family: "IBM Plex Sans", "Segoe UI", sans-serif;
  font-size: 17px;
  line-height: 1.6;
  -webkit-font-smoothing: antialiased;
}

/* faint paper grain */
body::before {
  content: "";
  position: fixed;
  inset: 0;
  pointer-events: none;
  opacity: 0.35;
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='120' height='120'%3E%3Cfilter id='n'%3E%3CfeTurbulence type='fractalNoise' baseFrequency='0.9' numOctaves='2'/%3E%3CfeColorMatrix values='0 0 0 0 0.55 0 0 0 0 0.52 0 0 0 0 0.46 0 0 0 0.05 0'/%3E%3C/filter%3E%3Crect width='120' height='120' filter='url(%23n)'/%3E%3C/svg%3E");
  z-index: 1;
}

.wrap { position: relative; z-index: 2; max-width: 880px; margin: 0 auto; padding: 0 24px; }

h1, h2, h3, .brand {
  font-family: "Fraunces", Georgia, serif;
  font-weight: 600;
  line-height: 1.12;
  letter-spacing: -0.01em;
  margin: 0;
}

.mono { font-family: "IBM Plex Mono", Consolas, monospace; }

a { color: var(--accent); }

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

.site-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 26px 0 22px;
  border-bottom: 1px solid var(--line);
}

.brand {
  font-size: 22px;
  line-height: 1;
  text-decoration: none;
  color: var(--ink);
  display: inline-flex;
  align-items: center;
}
.brand em { font-style: normal; color: var(--accent); }
.brand-icon { width: 26px; height: 26px; display: block; margin-right: 10px; }

.site-nav a {
  margin-left: 22px;
  font-size: 14px;
  color: var(--ink-2);
  text-decoration: none;
}
.site-nav a:hover { color: var(--accent); }
.site-nav a.nav-cta { color: var(--accent); font-weight: 600; }

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

.hero { padding: 72px 0 30px; }

.hero h1 {
  font-size: clamp(42px, 7.5vw, 76px);
  max-width: 12ch;
}
.hero h1 .strike { position: relative; white-space: nowrap; }
.hero h1 .strike::after {
  content: "";
  position: absolute;
  left: -1%; right: -1%;
  top: 56%;
  height: 0.075em;
  background: var(--late);
  transform: rotate(-1.6deg);
  transform-origin: left center;
  animation: strike 0.7s 0.9s cubic-bezier(0.2, 0.8, 0.3, 1) both;
}
@keyframes strike { from { transform: scaleX(0) rotate(-1.6deg); } to { transform: scaleX(1) rotate(-1.6deg); } }

.hero .lede {
  max-width: 54ch;
  font-size: 19px;
  color: var(--ink-2);
  margin: 26px 0 0;
}

.rise { animation: rise 0.7s cubic-bezier(0.2, 0.8, 0.3, 1) both; }
.d1 { animation-delay: 0.08s; } .d2 { animation-delay: 0.18s; }
.d3 { animation-delay: 0.28s; } .d4 { animation-delay: 0.4s; }
.d5 { animation-delay: 0.52s; } .d6 { animation-delay: 0.64s; }
@keyframes rise { from { opacity: 0; transform: translateY(14px); } to { opacity: 1; transform: none; } }

.hero-ctas { margin-top: 34px; display: flex; gap: 14px; flex-wrap: wrap; align-items: center; }

.btn {
  display: inline-block;
  padding: 13px 26px;
  font-size: 16px;
  font-weight: 600;
  text-decoration: none;
  border-radius: 3px;
}
.btn-primary {
  background: var(--accent);
  color: var(--paper);
  box-shadow: 4px 4px 0 var(--ink);
  transition: transform 0.12s, box-shadow 0.12s;
}
.btn-primary:hover { transform: translate(-1px, -1px); box-shadow: 6px 6px 0 var(--ink); }
.btn-quiet { color: var(--ink-2); }

/* ---------- ledger (mock thread list) ---------- */

.ledger {
  margin: 64px 0 0;
  border: 1px solid var(--ink);
  background: #fffdf8;
  box-shadow: 8px 8px 0 var(--paper-2), 8px 8px 0 1px var(--line);
}

.ledger-head {
  display: flex;
  justify-content: space-between;
  padding: 10px 18px;
  border-bottom: 1px solid var(--ink);
  font-size: 12px;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: var(--ink-3);
}

.ledger-row {
  display: flex;
  align-items: baseline;
  gap: 16px;
  padding: 15px 18px;
  border-bottom: 1px dashed var(--line);
  font-size: 15px;
}
.ledger-row:last-child { border-bottom: none; }

.ledger-row .who { font-weight: 600; min-width: 108px; }
.ledger-row .what { flex: 1; color: var(--ink-2); overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }

.chip {
  font-family: "IBM Plex Mono", monospace;
  font-size: 11.5px;
  padding: 3px 9px;
  border-radius: 20px;
  white-space: nowrap;
}
.chip-warn { background: var(--warn-bg); color: var(--warn); }
.chip-late { background: var(--late-bg); color: var(--late); }
.chip-fresh { background: var(--paper-2); color: var(--ink-2); }

/* ---------- compatibility strip ---------- */

.compat {
  margin-top: 34px;
  padding: 14px 0 4px;
  border-top: 1px solid var(--line);
  display: flex;
  flex-wrap: wrap;
  gap: 8px 0;
  align-items: baseline;
  font-family: "IBM Plex Mono", monospace;
  font-size: 11.5px;
  color: var(--ink-2);
}

.compat-label {
  text-transform: uppercase;
  letter-spacing: 0.16em;
  font-size: 10.5px;
  color: var(--accent);
  margin-right: 18px;
}

.compat-item { white-space: nowrap; }
.compat-item + .compat-item::before {
  content: "·";
  margin: 0 12px;
  color: var(--ink-3);
}

/* ---------- sections ---------- */

section { padding: 72px 0 8px; }

.kicker {
  font-family: "IBM Plex Mono", monospace;
  font-size: 12px;
  letter-spacing: 0.16em;
  text-transform: uppercase;
  color: var(--accent);
  margin-bottom: 12px;
}

section h2 { font-size: clamp(30px, 4.5vw, 42px); max-width: 20ch; }

.steps {
  margin-top: 40px;
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 32px;
}
@media (max-width: 720px) { .steps { grid-template-columns: 1fr; } }

.step { border-top: 2px solid var(--ink); padding-top: 16px; }
.step .num { font-family: "Fraunces", serif; font-size: 30px; color: var(--accent); }
.step h3 { font-size: 19px; margin: 6px 0 8px; }
.step p { margin: 0; font-size: 15px; color: var(--ink-2); }

/* ---------- product gallery ---------- */

.gallery {
  margin-top: 40px;
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 28px;
}
@media (max-width: 720px) { .gallery { grid-template-columns: 1fr; } }

.gallery figure { margin: 0; }

.gallery img {
  display: block;
  width: 100%;
  height: auto;
  border: 1px solid var(--ink);
  background: #fffdf8;
  box-shadow: 8px 8px 0 var(--paper-2), 8px 8px 0 1px var(--line);
}

.gallery figcaption {
  margin-top: 14px;
  font-family: "IBM Plex Mono", monospace;
  font-size: 11.5px;
  color: var(--ink-2);
}

/* ---------- pricing ---------- */

.price-card {
  margin-top: 40px;
  border: 1px solid var(--ink);
  background: #fffdf8;
  padding: 40px 36px;
  display: flex;
  gap: 40px;
  align-items: center;
  flex-wrap: wrap;
  box-shadow: 8px 8px 0 var(--paper-2), 8px 8px 0 1px var(--line);
}

.price-big { font-family: "Fraunces", serif; font-size: 74px; line-height: 1; }
.price-big small { font-size: 20px; color: var(--ink-3); font-family: "IBM Plex Sans", sans-serif; }

.price-meta { flex: 1; min-width: 240px; }
.price-meta ul { list-style: none; margin: 0 0 22px; padding: 0; font-size: 15.5px; }
.price-meta li { padding: 5px 0; }
.price-meta li::before { content: "✓  "; color: var(--ok); font-weight: 700; }

.trial-note { font-size: 13.5px; color: var(--ink-3); margin-top: 12px; }

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

.faq { margin-top: 36px; }
.faq details { border-top: 1px solid var(--line); padding: 4px 0; }
.faq details:last-child { border-bottom: 1px solid var(--line); }
.faq summary {
  cursor: pointer;
  font-weight: 600;
  font-size: 16.5px;
  padding: 14px 0;
  list-style: none;
  display: flex;
  justify-content: space-between;
  gap: 12px;
}
.faq summary::-webkit-details-marker { display: none; }
.faq summary::after { content: "+"; font-family: "IBM Plex Mono", monospace; color: var(--accent); }
.faq details[open] summary::after { content: "–"; }
.faq details p { margin: 0 0 16px; color: var(--ink-2); font-size: 15.5px; max-width: 62ch; }

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

.site-footer {
  margin-top: 90px;
  border-top: 1px solid var(--ink);
  padding: 26px 0 44px;
  display: flex;
  justify-content: space-between;
  flex-wrap: wrap;
  gap: 12px;
  font-size: 13.5px;
  color: var(--ink-3);
}
.site-footer a { color: var(--ink-2); text-decoration: none; margin-right: 18px; }
.site-footer a:hover { color: var(--accent); }

/* ---------- inner pages (privacy / terms / support) ---------- */

.doc { padding: 56px 0 10px; max-width: 680px; }
.doc h1 { font-size: clamp(32px, 5vw, 46px); margin-bottom: 8px; }
.doc .updated { font-family: "IBM Plex Mono", monospace; font-size: 12.5px; color: var(--ink-3); margin-bottom: 34px; }
.doc h2 { font-size: 22px; margin: 36px 0 10px; }
.doc p, .doc li { color: var(--ink-2); font-size: 16px; }
.doc code { font-family: "IBM Plex Mono", monospace; font-size: 14px; background: var(--paper-2); padding: 1px 5px; border-radius: 3px; }
