/* emailhub.ai, the "dead letter office" landing page. Same look as the staff
   app: white paper, ink, one red for postal marks. Light only. No inline
   styles or scripts anywhere: the page CSP allows neither. */
@font-face {
  font-family: 'Bricolage Grotesque';
  font-style: normal;
  font-display: swap;
  font-weight: 200 800;
  font-stretch: 75% 100%;
  src: url(/fonts/bricolage-grotesque.woff2) format('woff2-variations');
}
@font-face {
  font-family: 'Courier Prime';
  font-style: normal;
  font-display: swap;
  font-weight: 400;
  src: url(/fonts/courier-prime-400.woff2) format('woff2');
}
@font-face {
  font-family: 'Courier Prime';
  font-style: normal;
  font-display: swap;
  font-weight: 700;
  src: url(/fonts/courier-prime-700.woff2) format('woff2');
}

:root {
  --paper: #fcfcfc;
  --paper-2: #f3f3f4;
  --white: #ffffff;
  --ink: #18181b;
  --ink-hover: #2e2e33;
  --ink-2: #52525b;
  --ink-3: #63636c;
  --rule: rgba(24, 24, 27, 0.12);
  --red: #d1382c;
  --red-text: #b3301f;
  --red-2: rgba(209, 56, 44, 0.07);
  --red-ring: rgba(209, 56, 44, 0.2);
  --warn-bg: rgba(176, 112, 20, 0.12);
  --warn-text: #7d520e;
  --sans: 'Bricolage Grotesque', system-ui, -apple-system, 'Segoe UI', sans-serif;
  --type: 'Courier Prime', ui-monospace, SFMono-Regular, Menlo, monospace;
  --ease-out: cubic-bezier(0.23, 1, 0.32, 1);
  color-scheme: light;
}

* {
  box-sizing: border-box;
}
html {
  scroll-behavior: smooth;
}
body {
  margin: 0;
  background: var(--paper);
  color: var(--ink);
  font: 17px/1.55 var(--sans);
  -webkit-font-smoothing: antialiased;
}
h1,
h2,
h3,
p,
ul,
ol,
figure {
  margin: 0;
}
ul,
ol {
  padding: 0;
  list-style: none;
}
a {
  color: inherit;
  text-decoration: none;
}
code {
  font-family: var(--type);
}
img {
  display: block;
  max-width: 100%;
  height: auto;
}
:focus-visible {
  outline: 2px solid var(--ink);
  outline-offset: 3px;
}
.wrap {
  max-width: 1280px;
  margin: 0 auto;
  padding: 0 48px;
}
h2 {
  font-size: clamp(34px, 3.8vw, 54px);
  line-height: 1.03;
  letter-spacing: -0.04em;
  font-weight: 720;
  font-variation-settings: 'opsz' 96;
  max-width: 20ch;
  text-wrap: balance;
}
h3 {
  font-size: 20px;
  line-height: 1.25;
  letter-spacing: -0.02em;
  font-weight: 650;
}
.sub {
  margin-top: 16px;
  font-size: 19px;
  color: var(--ink-2);
  max-width: 56ch;
}

/* ---------- buttons: 10px radius on every control ---------- */
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  height: 50px;
  padding: 0 24px;
  border-radius: 10px;
  font-weight: 600;
  font-size: 16px;
  white-space: nowrap;
  transition:
    transform 160ms var(--ease-out),
    background-color 160ms ease;
}
.btn:active {
  transform: scale(0.97);
}
.btn-ink {
  background: var(--ink);
  color: #ffffff;
}
.btn-line {
  box-shadow: inset 0 0 0 1.5px var(--ink);
  color: var(--ink);
}
.btn-sm {
  height: 42px;
  padding: 0 18px;
  font-size: 15px;
}
.cta {
  display: flex;
  flex-wrap: wrap;
  gap: 12px;
  margin-top: 36px;
}
@media (hover: hover) and (pointer: fine) {
  .btn-ink:hover {
    background: var(--ink-hover);
  }
  .btn-line:hover {
    background: var(--paper-2);
  }
  .nav-links a:hover,
  .nav-signin:hover,
  .foot-links a:hover {
    color: var(--ink);
  }
}

/* ---------- nav ---------- */
.nav-bar {
  position: sticky;
  top: 0;
  z-index: 10;
  background: rgba(252, 252, 252, 0.88);
  backdrop-filter: saturate(160%) blur(12px);
  -webkit-backdrop-filter: saturate(160%) blur(12px);
  border-bottom: 1px solid transparent;
}
.nav {
  height: 76px;
  display: flex;
  align-items: center;
  gap: 40px;
}
.mark {
  display: inline-flex;
  align-items: center;
  gap: 11px;
  font-weight: 700;
  font-size: 20px;
  letter-spacing: -0.025em;
}
.seal {
  width: 28px;
  height: 28px;
  flex: none;
  border-radius: 50%;
  display: grid;
  place-items: center;
  color: var(--red);
  font-family: var(--type);
  font-weight: 700;
  font-size: 11px;
  box-shadow:
    inset 0 0 0 2px var(--red),
    inset 0 0 0 4px var(--paper),
    inset 0 0 0 5px var(--red);
  transform: rotate(-12deg);
}
.nav-links {
  display: flex;
  gap: 30px;
  font-size: 16px;
  color: var(--ink-2);
}
.nav-right {
  margin-left: auto;
  display: flex;
  align-items: center;
  gap: 24px;
  font-size: 16px;
  font-weight: 500;
}

/* ---------- hero ---------- */
.hero {
  display: grid;
  grid-template-columns: minmax(0, 7fr) minmax(0, 5fr);
  gap: 32px;
  align-items: center;
  padding-top: 56px;
  padding-bottom: 104px;
}
.kicker {
  font-family: var(--type);
  font-size: 16px;
  color: var(--red-text);
  margin-bottom: 26px;
}
.hero h1 {
  font-size: clamp(52px, 6.6vw, 96px);
  line-height: 0.96;
  letter-spacing: -0.05em;
  font-weight: 760;
  font-variation-settings: 'opsz' 96;
}
.hero h1 span {
  display: block;
}
.red {
  color: var(--red-text);
}
.lede {
  margin-top: 30px;
  font-size: 21px;
  line-height: 1.5;
  color: var(--ink-2);
  max-width: 38ch;
}
@keyframes rise {
  from {
    opacity: 0;
    transform: translateY(12px);
  }
  to {
    opacity: 1;
    transform: none;
  }
}
.hero-copy > * {
  animation: rise 600ms var(--ease-out) both;
}
.hero-copy > :nth-child(2) {
  animation-delay: 70ms;
}
.hero-copy > :nth-child(3) {
  animation-delay: 140ms;
}
.hero-copy > :nth-child(4) {
  animation-delay: 210ms;
}

/* ---------- the envelopes ---------- */
.envelope {
  background: var(--white);
  border-radius: 6px;
  box-shadow:
    0 0 0 1px rgba(24, 24, 27, 0.07),
    0 1px 1px rgba(24, 24, 27, 0.05),
    0 22px 44px -22px rgba(24, 24, 27, 0.32);
}
.pile {
  position: relative;
  height: 460px;
}
.pile .envelope {
  position: absolute;
  left: 50%;
  top: 50%;
  width: 474px;
  height: 292px;
  margin: -146px 0 0 -237px;
  transition: transform 480ms var(--ease-out);
}
.env-3 {
  transform: translate(-40px, 30px) rotate(-8deg);
}
.env-2 {
  transform: translate(30px, -22px) rotate(5deg);
}
.env-1 {
  transform: rotate(-1.5deg);
}
@media (hover: hover) and (pointer: fine) {
  .pile:hover .env-3 {
    transform: translate(-64px, 40px) rotate(-12deg);
  }
  .pile:hover .env-2 {
    transform: translate(52px, -36px) rotate(8deg);
  }
}
.peek {
  position: absolute;
  left: 28px;
  top: 24px;
  font-family: var(--type);
  font-size: 13px;
  color: var(--ink-3);
}
.ret {
  position: absolute;
  left: 28px;
  top: 24px;
  display: flex;
  flex-direction: column;
  font-family: var(--type);
  font-size: 13px;
  line-height: 1.45;
  color: var(--ink-2);
}
.ret b {
  color: var(--ink);
}
.stamp {
  position: absolute;
  top: 22px;
  right: 24px;
  --r: 4px;
  padding: calc(2 * var(--r));
  background:
    radial-gradient(var(--r), #0000 98%, #ffffff) round calc(-1.5 * var(--r)) calc(-1.5 * var(--r)) /
      calc(3 * var(--r)) calc(3 * var(--r)),
    linear-gradient(#ffffff 0 0) no-repeat 50% / calc(100% - 3 * var(--r)) calc(100% - 3 * var(--r));
  filter: drop-shadow(0 0 1px rgba(24, 24, 27, 0.4));
}
.stamp-face {
  width: 58px;
  height: 70px;
  background: var(--red);
  color: #ffffff;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 3px;
}
.stamp-face b {
  font-size: 25px;
  line-height: 1;
  font-weight: 800;
  letter-spacing: -0.05em;
}
.stamp-face span {
  font-family: var(--type);
  font-size: 8px;
  letter-spacing: 0.08em;
  text-transform: uppercase;
}
.postmark {
  position: absolute;
  top: 34px;
  right: 80px;
  width: 86px;
  height: 86px;
  border-radius: 50%;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  color: var(--red);
  font-family: var(--type);
  font-size: 9.5px;
  line-height: 1.25;
  letter-spacing: 0.07em;
  text-transform: uppercase;
  box-shadow:
    inset 0 0 0 2px var(--red),
    inset 0 0 0 5px transparent,
    inset 0 0 0 6px var(--red);
  transform: rotate(-14deg);
  opacity: 0.9;
  mix-blend-mode: multiply;
}
.postmark b {
  font-size: 12px;
  letter-spacing: 0.04em;
  margin: 2px 0;
}
.cancel {
  position: absolute;
  top: 60px;
  right: 160px;
  width: 112px;
  height: 34px;
  background: repeating-linear-gradient(to bottom, var(--red) 0 2px, transparent 2px 8px);
  transform: rotate(-14deg);
  opacity: 0.8;
  mix-blend-mode: multiply;
}
.to {
  position: absolute;
  left: 132px;
  top: 112px;
  display: flex;
  flex-direction: column;
  font-family: var(--type);
  font-size: 15px;
  line-height: 1.5;
}
.lbl {
  font-size: 11px;
  color: var(--ink-3);
  letter-spacing: 0.08em;
  text-transform: uppercase;
}
.to b {
  font-size: 20px;
}
.re {
  position: absolute;
  left: 28px;
  right: 28px;
  bottom: 20px;
  padding-top: 10px;
  border-top: 1px dashed var(--rule);
  font-family: var(--type);
  font-size: 13px;
  color: var(--ink-2);
}
.rubber {
  position: absolute;
  left: 30px;
  top: 196px;
  padding: 7px 14px 5px;
  border-radius: 6px;
  color: var(--red);
  font-weight: 800;
  font-size: 22px;
  line-height: 1;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  font-stretch: 75%;
  box-shadow:
    inset 0 0 0 3px var(--red),
    inset 0 0 0 5px transparent,
    inset 0 0 0 6px var(--red);
  transform: rotate(-8deg);
  mix-blend-mode: multiply;
  opacity: 0.92;
  animation: stamp 460ms var(--ease-out) 760ms both;
}
@keyframes stamp {
  0% {
    opacity: 0;
    transform: rotate(-8deg) scale(1.7);
  }
  60% {
    opacity: 0.92;
    transform: rotate(-8deg) scale(0.95);
  }
  100% {
    opacity: 0.92;
    transform: rotate(-8deg) scale(1);
  }
}

/* ---------- the dilemma ---------- */
.dilemma {
  padding: 40px 0 112px;
}
.options {
  margin-top: 52px;
  display: flex;
  flex-direction: column;
  gap: 8px;
}
.option {
  display: grid;
  grid-template-columns: 260px minmax(0, 1fr) 190px;
  align-items: center;
  gap: 32px;
  padding: 22px 28px;
  border-radius: 12px;
}
.option-best {
  background: var(--red-2);
  box-shadow: inset 0 0 0 1px var(--red-ring);
}
.setting {
  justify-self: start;
  font-size: 15px;
  padding: 6px 10px;
  border-radius: 6px;
  background: var(--paper-2);
}
.option-best .setting {
  background: var(--white);
}
.option p {
  color: var(--ink-2);
}
.option-best p {
  color: var(--ink);
}
.verdict {
  justify-self: end;
  font-size: 15px;
  font-weight: 600;
  padding: 5px 11px;
  border-radius: 6px;
  white-space: nowrap;
}
.v-warn {
  background: var(--warn-bg);
  color: var(--warn-text);
}
.v-danger {
  background: var(--paper-2);
  color: var(--ink);
  box-shadow: inset 0 0 0 1.5px var(--ink);
}
.v-ok {
  background: var(--ink);
  color: #ffffff;
}

/* ---------- how it works ---------- */
.how {
  background: var(--paper-2);
  padding: 112px 0;
}
.how-grid {
  display: grid;
  grid-template-columns: minmax(0, 6fr) minmax(0, 6fr);
  gap: 72px;
  align-items: center;
}
.steps {
  margin-top: 44px;
  display: flex;
  flex-direction: column;
  gap: 28px;
}
.steps li {
  display: grid;
  grid-template-columns: 44px minmax(0, 1fr);
  gap: 16px;
}
.n {
  font-family: var(--type);
  font-weight: 700;
  font-size: 30px;
  line-height: 1;
  color: var(--red-text);
}
.steps p {
  margin-top: 6px;
  color: var(--ink-2);
  max-width: 44ch;
}
.label-fig {
  justify-self: end;
  width: 100%;
  max-width: 540px;
}
.label {
  position: relative;
  height: 330px;
  transform: rotate(1.2deg);
}
.label .ret {
  gap: 1px;
}
.label .to {
  left: 128px;
  top: 118px;
}
.label-fig figcaption {
  margin-top: 28px;
  font-size: 16px;
  color: var(--ink-2);
  max-width: 46ch;
}
.label-fig figcaption code {
  color: var(--red-text);
  font-weight: 700;
}

/* ---------- inside the app ---------- */
.inside {
  padding: 120px 0;
}
.inside-grid {
  display: grid;
  grid-template-columns: minmax(0, 7fr) minmax(0, 5fr);
  gap: 64px;
  align-items: center;
}
.shot img {
  border-radius: 12px;
  box-shadow:
    0 0 0 1px rgba(24, 24, 27, 0.08),
    0 30px 60px -32px rgba(24, 24, 27, 0.35);
}
.points {
  margin-top: 36px;
  display: flex;
  flex-direction: column;
  gap: 22px;
}
.points li {
  padding-left: 18px;
  border-left: 2px solid var(--rule);
}
.points h3 {
  font-size: 18px;
}
.points p {
  margin-top: 4px;
  font-size: 16px;
  color: var(--ink-2);
}

/* ---------- security ---------- */
.security {
  padding: 112px 0;
  border-top: 1px solid var(--rule);
}
.guarantees {
  margin-top: 52px;
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 40px;
}
.g {
  border-top: 2px solid var(--red);
  padding-top: 20px;
}
.g h3 {
  font-size: 18px;
}
.g p {
  margin-top: 8px;
  font-size: 16px;
  color: var(--ink-2);
}

/* ---------- questions ---------- */
.faq {
  background: var(--paper-2);
  padding: 112px 0;
}
.faq-grid {
  display: grid;
  grid-template-columns: minmax(0, 4fr) minmax(0, 8fr);
  gap: 72px;
  align-items: start;
}
.faq-list details {
  border-bottom: 1px solid var(--rule);
}
.faq-list summary {
  list-style: none;
  cursor: pointer;
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 24px;
  padding: 22px 0;
  font-size: 19px;
  font-weight: 550;
  letter-spacing: -0.01em;
}
.faq-list summary::-webkit-details-marker {
  display: none;
}
.faq-list summary::after {
  content: '+';
  font-size: 26px;
  font-weight: 400;
  line-height: 1;
  color: var(--ink-3);
  transition: transform 200ms var(--ease-out);
}
.faq-list details[open] summary::after {
  transform: rotate(45deg);
}
.faq-list details p {
  color: var(--ink-2);
  padding: 0 48px 24px 0;
  max-width: 62ch;
}

/* ---------- closing ---------- */
.closing {
  padding: 112px 0;
}
.closing-panel {
  display: flex;
  justify-content: space-between;
  align-items: flex-end;
  gap: 40px;
  flex-wrap: wrap;
  padding: 56px;
  border-radius: 14px;
  background: var(--white);
  box-shadow:
    0 0 0 1px rgba(24, 24, 27, 0.08),
    0 30px 60px -36px rgba(24, 24, 27, 0.3);
  position: relative;
  overflow: hidden;
}
.closing-panel::before {
  content: '';
  position: absolute;
  inset: 0 0 auto;
  height: 7px;
  background: repeating-linear-gradient(90deg, var(--red) 0 18px, transparent 18px 27px);
}
.closing-panel .cta {
  margin-top: 0;
}

/* ---------- footer ---------- */
.footer {
  border-top: 1px solid var(--rule);
  padding: 40px 0 48px;
}
.foot-row {
  display: flex;
  align-items: center;
  gap: 24px;
  flex-wrap: wrap;
}
.foot-note {
  color: var(--ink-2);
  font-size: 15px;
}
.foot-links {
  margin-left: auto;
  display: flex;
  gap: 24px;
  font-size: 15px;
  font-weight: 500;
}
.foot-legal {
  margin-top: 28px;
  display: flex;
  justify-content: space-between;
  gap: 16px;
  flex-wrap: wrap;
  font-size: 13px;
  color: var(--ink-3);
}

/* ---------- smaller screens ---------- */
@media (max-width: 1080px) {
  .hero,
  .how-grid,
  .inside-grid,
  .faq-grid {
    grid-template-columns: minmax(0, 1fr);
    gap: 48px;
  }
  .hero {
    padding-top: 40px;
    padding-bottom: 80px;
  }
  .label-fig {
    justify-self: start;
  }
  .option {
    grid-template-columns: minmax(0, 1fr) auto;
    gap: 12px 24px;
  }
  .option .setting {
    grid-column: 1 / -1;
  }
  .guarantees {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }
}
@media (max-width: 720px) {
  body {
    font-size: 16px;
  }
  .wrap {
    padding: 0 20px;
  }
  .nav {
    height: 64px;
    gap: 12px;
  }
  .nav-links {
    display: none;
  }
  .nav-right {
    gap: 14px;
  }
  .mark {
    font-size: 18px;
  }
  .lede {
    font-size: 19px;
  }
  /* The envelopes keep their exact drawing; the pile is scaled to fit. */
  .pile {
    height: 330px;
    margin: 0 -20px;
  }
  .pile .envelope {
    transform-origin: center;
  }
  .env-3 {
    transform: scale(0.72) translate(-40px, 30px) rotate(-8deg);
  }
  .env-2 {
    transform: scale(0.72) translate(30px, -22px) rotate(5deg);
  }
  .env-1 {
    transform: scale(0.72) rotate(-1.5deg);
  }
  .dilemma,
  .how,
  .inside,
  .security,
  .faq,
  .closing {
    padding: 72px 0;
  }
  .dilemma {
    padding-top: 24px;
  }
  .option {
    grid-template-columns: minmax(0, 1fr);
    padding: 18px;
  }
  .verdict {
    justify-self: start;
  }
  .label {
    height: auto;
    padding: 22px 22px 26px;
    transform: none;
  }
  .label .ret,
  .label .to {
    position: static;
  }
  .label .to {
    margin-top: 22px;
  }
  .label .stamp {
    top: 18px;
    right: 18px;
  }
  .guarantees {
    grid-template-columns: minmax(0, 1fr);
    gap: 28px;
  }
  .faq-list summary {
    font-size: 17px;
  }
  .faq-list details p {
    padding-right: 0;
  }
  .closing-panel {
    padding: 36px 24px 28px;
  }
  .foot-links {
    margin-left: 0;
  }
}
@media (max-width: 380px) {
  .nav-signin {
    display: none;
  }
}
@media (prefers-reduced-motion: reduce) {
  html {
    scroll-behavior: auto;
  }
  .hero-copy > *,
  .rubber {
    animation: none;
  }
  .pile .envelope,
  .btn,
  .faq-list summary::after {
    transition: none;
  }
}
