/* VoiceMail Pro: clean email/productivity identity.
   Paper white, indigo accent, card-stack motif (rough note -> clean draft). */

:root {
  --paper: #fbfbfd;
  --paper-deep: #f1f2f8;
  --card: #ffffff;
  --ink: #17171f;
  --ink-soft: #33333f;
  --muted: #66667a;
  --line: #e3e4ee;
  --indigo: #4f46e5;
  --indigo-deep: #3730a3;
  --indigo-tint: #eceafd;
  --sky: #e0f2fe;
  --radius: 18px;
  --body: "Hanken Grotesk", system-ui, -apple-system, "Segoe UI", sans-serif;
}

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

html { scroll-behavior: smooth; }

body {
  background: var(--paper);
  color: var(--ink);
  font-family: var(--body);
  font-size: 17px;
  line-height: 1.65;
  -webkit-font-smoothing: antialiased;
}

::selection { background: var(--indigo-tint); }

.wrap { width: min(1060px, 100% - 3rem); margin-inline: auto; }

a { color: var(--indigo-deep); }

/* ---------- top bar ---------- */
.topbar { display: flex; align-items: center; justify-content: space-between; padding: 1.1rem 0; }
.back { text-decoration: none; color: var(--muted); font-size: 0.95rem; font-weight: 500; }
.back:hover { color: var(--ink); }
.brandmark { display: flex; align-items: center; gap: 0.55rem; font-weight: 800; letter-spacing: -0.01em; }
.brandmark .env {
  width: 28px; height: 20px; flex: none; position: relative;
  border: 2px solid var(--indigo); border-radius: 4px;
  background: var(--indigo-tint);
}
.brandmark .env::after {
  content: ""; position: absolute; left: 2px; right: 2px; top: 2px; height: 9px;
  background: var(--indigo);
  clip-path: polygon(0 0, 100% 0, 50% 100%);
}

/* ---------- hero ---------- */
.hero { padding: 3rem 0 3.8rem; }
.hero-grid { display: grid; grid-template-columns: 1.05fr 0.95fr; gap: 3rem; align-items: center; }
@media (max-width: 860px) { .hero-grid { grid-template-columns: 1fr; } }

.eyebrow {
  display: inline-block;
  font-size: 0.82rem; font-weight: 600;
  letter-spacing: 0.08em; text-transform: uppercase;
  color: var(--indigo-deep); background: var(--indigo-tint);
  border: 1px solid #d4d0f5; border-radius: 999px;
  padding: 0.42rem 0.85rem; margin-bottom: 1.3rem;
}

h1 { font-size: clamp(2.5rem, 5vw, 3.9rem); font-weight: 800; letter-spacing: -0.03em; line-height: 1.06; margin-bottom: 1.2rem; }
.hl { color: var(--indigo); box-shadow: inset 0 -0.32em 0 var(--sky); }

.sub { font-size: 1.13rem; color: var(--ink-soft); max-width: 34rem; margin-bottom: 2rem; }

.cta-row { display: flex; flex-wrap: wrap; gap: 0.8rem; align-items: center; }
.cta-row.center { justify-content: center; }
.btn {
  display: inline-block;
  background: var(--indigo); color: #fff;
  font-weight: 700; font-size: 1.02rem; text-decoration: none;
  padding: 0.95rem 1.9rem; border-radius: 999px;
  transition: transform 0.15s ease, background 0.15s ease;
}
.btn:hover { background: var(--indigo-deep); transform: translateY(-1px); }
.btn-ghost { background: transparent; color: var(--indigo-deep); border: 1.5px solid var(--indigo); }
.btn-ghost:hover { background: var(--indigo); color: #fff; }
.btn-ghost.on-dark { color: #fff; border-color: #ffffff88; }
.btn-ghost.on-dark:hover { background: #ffffff22; border-color: #fff; }

.stats { display: flex; gap: 2.4rem; flex-wrap: wrap; margin-top: 2.2rem; }
.stats strong { display: block; font-size: 1.8rem; font-weight: 800; color: var(--indigo-deep); line-height: 1.15; }
.stats span { color: var(--muted); font-size: 0.92rem; }

/* ---------- rough -> polished stack ---------- */
.mail-stack { display: grid; gap: 0; justify-items: center; }
.rough, .polished {
  width: 100%;
  background: var(--card);
  border: 1px solid var(--line);
  border-radius: var(--radius);
  padding: 1.4rem 1.5rem;
  box-shadow: 0 20px 40px -24px rgba(23, 23, 31, 0.18);
}
.rough { transform: rotate(-1.2deg); background: #fffdf5; }
.rough p:last-child { font-style: italic; color: var(--ink-soft); }
.polished { transform: rotate(0.6deg); border-color: #cfcbf2; }
.polished p { margin-bottom: 0.7rem; color: var(--ink-soft); }
.polished p:last-child { margin-bottom: 0; }
.card-label {
  font-size: 0.78rem; font-weight: 700;
  letter-spacing: 0.09em; text-transform: uppercase;
  color: var(--muted); margin-bottom: 0.6rem;
}
.polished .card-label { color: var(--indigo); }
.mail-stack .arrow {
  width: 2px; height: 34px; background: var(--indigo);
  position: relative; margin: 2px 0;
}
.mail-stack .arrow::after {
  content: ""; position: absolute; bottom: -1px; left: 50%;
  transform: translateX(-50%);
  border-style: solid; border-width: 8px 5.5px 0 5.5px;
  border-color: var(--indigo) transparent transparent transparent;
}

/* ---------- sections ---------- */
.section { padding: 4.5rem 0; }
.section.alt { background: var(--paper-deep); border-block: 1px solid var(--line); }
.section h2 { font-size: clamp(1.9rem, 3.5vw, 2.6rem); font-weight: 800; letter-spacing: -0.02em; line-height: 1.15; text-align: center; margin-bottom: 0.8rem; }
.lede { text-align: center; color: var(--muted); max-width: 38rem; margin: 0 auto 2.8rem; }

.features { display: grid; gap: 1.25rem; max-width: 780px; margin: 0 auto; }
.feature { background: var(--card); border: 1px solid var(--line); border-radius: var(--radius); padding: 1.9rem; }
.feature .tag { font-size: 0.8rem; font-weight: 700; letter-spacing: 0.09em; text-transform: uppercase; color: var(--indigo); margin-bottom: 0.5rem; }
.feature h3 { font-size: 1.3rem; font-weight: 700; margin-bottom: 0.5rem; }
.feature p { color: var(--ink-soft); }
.feature ul { list-style: none; margin-top: 0.9rem; display: grid; gap: 0.45rem; }
.feature ul li { position: relative; padding-left: 1.6em; color: var(--ink-soft); }
.feature ul li::before {
  content: ""; position: absolute; left: 0; top: 0.28em;
  width: 1em; height: 1em; border-radius: 50%;
  background: var(--indigo-tint)
    url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='%234f46e5' stroke-width='3.4' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpath d='M20 6 9 17l-5-5'/%3E%3C/svg%3E")
    center / 0.62em no-repeat;
}

.steps { display: grid; grid-template-columns: repeat(3, 1fr); gap: 1.25rem; max-width: 920px; margin: 0 auto; }
@media (max-width: 760px) { .steps { grid-template-columns: 1fr; } }
.step { background: var(--card); border: 1px solid var(--line); border-radius: var(--radius); padding: 1.7rem; }
.step .n { font-size: 1.9rem; font-weight: 800; color: var(--indigo); margin-bottom: 0.5rem; }
.step h3 { margin-bottom: 0.4rem; }
.step p { color: var(--ink-soft); }

/* ---------- final ---------- */
.final { background: var(--indigo-deep); color: #eef0ff; text-align: center; padding: 4.8rem 0; }
.final h2 { font-size: clamp(2.1rem, 4.5vw, 3.2rem); font-weight: 800; letter-spacing: -0.02em; margin-bottom: 0.8rem; }
.final p { color: #c7cbf7; margin-bottom: 2rem; }
.final .btn { background: #fff; color: var(--indigo-deep); }
.final .btn:hover { background: var(--indigo-tint); }

footer { padding: 2rem 0 2.8rem; text-align: center; color: var(--muted); font-size: 0.92rem; }
footer a { color: var(--muted); }
footer a:hover { color: var(--indigo-deep); }
