/* forward — correspondence-minimal */

:root {
  --paper: #faf7f2;
  --paper-deep: #f3eee6;
  --ink: #16181d;
  --ink-soft: #4b4f58;
  --ink-faint: #8a8e98;
  --blue: #1080e9;
  --blue-deep: #3868dd;
  --night: #1c1c1e;
  --night-edge: #2c2c2e;
  --rule: #e2dccf;
  --sans: "Schibsted Grotesk", "Avenir Next", "Helvetica Neue", sans-serif;
  --mono: "IBM Plex Mono", "SF Mono", Menlo, monospace;
}

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

html { scroll-behavior: smooth; }

body {
  background: var(--paper);
  color: var(--ink);
  font-family: var(--sans);
  line-height: 1.6;
  -webkit-font-smoothing: antialiased;
}

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

::selection { background: var(--blue); color: #fff; }

.wrap { max-width: 1060px; margin: 0 auto; padding: 0 28px; }

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

header {
  padding: 30px 0 0;
  display: flex;
  justify-content: space-between;
  align-items: baseline;
}

.wordmark {
  font-weight: 700;
  font-size: 1.35rem;
  letter-spacing: -0.02em;
  color: var(--ink);
  text-decoration: none;
}
.wordmark::after { content: "."; color: var(--blue); }

.header-note {
  font-family: var(--mono);
  font-size: 0.72rem;
  color: var(--ink-faint);
  letter-spacing: 0.04em;
}

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

.hero {
  display: grid;
  grid-template-columns: minmax(0, 7fr) minmax(0, 5fr);
  gap: 48px;
  align-items: center;
  padding: 84px 0 110px;
}

.postmark {
  font-family: var(--mono);
  font-size: 0.78rem;
  letter-spacing: 0.05em;
  color: var(--ink-soft);
  border: 1px solid var(--rule);
  border-radius: 999px;
  display: inline-flex;
  gap: 0.6em;
  padding: 7px 16px;
  margin-bottom: 30px;
  background: #fff8;
  animation: rise 0.7s 0.05s cubic-bezier(0.2, 0.7, 0.2, 1) both;
}
.postmark b { color: var(--blue); font-weight: 500; }

h1 {
  font-size: clamp(2.7rem, 6.2vw, 4.4rem);
  line-height: 1.04;
  font-weight: 700;
  letter-spacing: -0.03em;
  animation: rise 0.7s 0.15s cubic-bezier(0.2, 0.7, 0.2, 1) both;
}
h1 em {
  font-style: italic;
  font-weight: 600;
  color: var(--blue-deep);
}

.hero p.lede {
  margin: 26px 0 38px;
  font-size: 1.18rem;
  color: var(--ink-soft);
  max-width: 30em;
  animation: rise 0.7s 0.25s cubic-bezier(0.2, 0.7, 0.2, 1) both;
}

.cta-row {
  display: flex;
  align-items: center;
  gap: 22px;
  animation: rise 0.7s 0.35s cubic-bezier(0.2, 0.7, 0.2, 1) both;
}

.appstore-badge { display: inline-block; transition: transform 0.25s ease; }
.appstore-badge:hover { transform: translateY(-2px); }
.appstore-badge svg { display: block; height: 52px; width: auto; }

.cta-aside {
  font-family: var(--mono);
  font-size: 0.74rem;
  color: var(--ink-faint);
  letter-spacing: 0.03em;
}

@keyframes rise {
  from { opacity: 0; transform: translateY(18px); }
  to { opacity: 1; transform: none; }
}

/* ---------- phone ---------- */

.device-col { display: flex; justify-content: center; }

.device {
  width: min(295px, 72vw);
  border-radius: 46px;
  padding: 11px;
  background: #0d0d0f;
  box-shadow:
    0 2px 0 #ffffff14 inset,
    0 30px 60px -18px rgba(22, 24, 29, 0.45),
    0 8px 22px -8px rgba(22, 24, 29, 0.35);
  transform: rotate(2.2deg);
  animation: rise 0.9s 0.3s cubic-bezier(0.2, 0.7, 0.2, 1) both;
}
.device img {
  display: block;
  width: 100%;
  height: auto;
  border-radius: 36px;
}

/* ---------- ribbon rule ---------- */

.rule-label {
  display: flex;
  align-items: center;
  gap: 18px;
  font-family: var(--mono);
  font-size: 0.72rem;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: var(--ink-faint);
}
.rule-label::before, .rule-label::after {
  content: "";
  height: 1px;
  background: var(--rule);
  flex: 1;
}

/* ---------- how it works ---------- */

.how { padding: 30px 0 40px; }

.steps {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 40px;
  margin-top: 56px;
}

.step h3 {
  font-size: 1.45rem;
  font-weight: 650;
  letter-spacing: -0.015em;
  margin: 14px 0 10px;
}
.step p { color: var(--ink-soft); font-size: 1.02rem; max-width: 24em; }

.step-num {
  font-family: var(--mono);
  font-size: 0.74rem;
  letter-spacing: 0.08em;
  color: var(--blue);
}
.step-num::before {
  content: "";
  display: inline-block;
  width: 8px; height: 8px;
  border-radius: 50%;
  background: var(--blue);
  margin-right: 9px;
  vertical-align: 1px;
}

/* ---------- the email artifact ---------- */

.letter { padding: 90px 0 100px; }

.envelope {
  max-width: 620px;
  margin: 0 auto;
  background: #fffdf9;
  border: 1px solid var(--rule);
  border-radius: 14px;
  box-shadow: 0 24px 50px -28px rgba(22, 24, 29, 0.35);
  overflow: hidden;
  transform: rotate(-0.5deg);
}
.envelope-bar {
  height: 6px;
  background: linear-gradient(90deg, var(--blue-deep), var(--blue));
}
.envelope-head {
  padding: 22px 30px 18px;
  border-bottom: 1px solid var(--paper-deep);
  font-family: var(--mono);
  font-size: 0.8rem;
  color: var(--ink-soft);
  line-height: 2;
}
.envelope-head b { color: var(--ink); font-weight: 500; }
.envelope-body {
  padding: 26px 30px 30px;
  font-size: 1.25rem;
  line-height: 1.55;
}
.envelope-body .digest {
  list-style: none;
  display: grid;
  gap: 12px;
}
.envelope-body .digest li {
  display: flex;
  gap: 14px;
  align-items: baseline;
}
.envelope-body .digest li::before {
  content: "•";
  color: var(--blue);
  flex-shrink: 0;
}
.envelope-body .sig { color: var(--ink-faint); font-style: italic; font-size: 1.05rem; margin-top: 18px; }

.letter-caption {
  text-align: center;
  margin-top: 28px;
  font-family: var(--mono);
  font-size: 0.76rem;
  color: var(--ink-faint);
  letter-spacing: 0.04em;
}

/* ---------- night band (dark mode) ---------- */

.night {
  background: var(--night);
  color: #f4f4f6;
  border-top: 1px solid var(--night-edge);
  border-bottom: 1px solid var(--night-edge);
  padding: 96px 0;
}
.night .wrap {
  display: grid;
  grid-template-columns: minmax(0, 6fr) minmax(0, 6fr);
  gap: 56px;
  align-items: center;
}
.night-tag {
  font-family: var(--mono);
  font-size: 0.72rem;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: #69a8ff;
  margin-bottom: 22px;
}
.night h2 {
  font-size: clamp(1.9rem, 3.6vw, 2.7rem);
  font-weight: 700;
  letter-spacing: -0.02em;
  line-height: 1.12;
}
.night p {
  margin-top: 20px;
  color: #b9bac2;
  font-size: 1.08rem;
  max-width: 30em;
}
.feature-list {
  margin-top: 34px;
  list-style: none;
  display: grid;
  gap: 14px;
}
.feature-list li {
  position: relative;
  padding-left: 30px;
  font-size: 1.02rem;
  color: #dadbe0;
}
.feature-list li::before {
  content: "→";
  font-family: var(--mono);
  color: #69a8ff;
  position: absolute;
  left: 0;
}
.feature-list b { font-weight: 560; color: #fff; }

.night-visual { display: flex; justify-content: center; }
.night-visual .device { transform: rotate(-2deg); box-shadow: 0 30px 70px -20px rgba(0,0,0,0.8); }

/* ---------- closing ---------- */

.closing { padding: 110px 0 96px; text-align: center; }
.closing h2 {
  font-size: clamp(2rem, 4.4vw, 3.1rem);
  font-weight: 700;
  letter-spacing: -0.022em;
  line-height: 1.1;
  max-width: 17em;
  margin: 0 auto;
}
.closing h2 em { font-style: italic; color: var(--blue-deep); font-weight: 600; }
.closing .cta-row { justify-content: center; margin-top: 44px; }

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

footer {
  border-top: 1px solid var(--rule);
  padding: 34px 0 46px;
}
.foot-row {
  display: flex;
  justify-content: space-between;
  align-items: baseline;
  gap: 18px;
  flex-wrap: wrap;
  font-family: var(--mono);
  font-size: 0.76rem;
  color: var(--ink-faint);
  letter-spacing: 0.03em;
}
.foot-row a { color: var(--ink-soft); text-decoration: none; border-bottom: 1px solid var(--rule); }
.foot-row a:hover { color: var(--blue); border-color: var(--blue); }
.foot-links { display: flex; gap: 26px; }

/* ---------- privacy page ---------- */

.doc { max-width: 660px; margin: 0 auto; padding: 60px 28px 100px; }
.doc h1 { font-size: 2.3rem; margin-bottom: 6px; }
.doc .doc-date {
  font-family: var(--mono);
  font-size: 0.76rem;
  color: var(--ink-faint);
  margin-bottom: 44px;
  display: block;
}
.doc h2 {
  font-size: 1.3rem;
  font-weight: 650;
  letter-spacing: -0.01em;
  margin: 42px 0 12px;
}
.doc p, .doc li { color: var(--ink-soft); font-size: 1.04rem; }
.doc ul { padding-left: 1.2em; margin-top: 10px; display: grid; gap: 8px; }
.doc a { color: var(--blue-deep); }

/* ---------- responsive ---------- */

@media (max-width: 860px) {
  .hero { grid-template-columns: 1fr; padding: 60px 0 70px; gap: 60px; }
  .device-col { order: 2; }
  .steps { grid-template-columns: 1fr; gap: 34px; }
  .night .wrap { grid-template-columns: 1fr; gap: 56px; }
  .night-visual { order: 2; }
}

@media (prefers-reduced-motion: reduce) {
  .postmark, h1, .hero p.lede, .cta-row, .device { animation: none; }
}
