/* temporary-email.com / tijdelijke-email.nl
   Violet + stamp yellow on a pale lavender ground. */
@font-face { font-family: 'Bricolage Grotesque'; src: url(/fonts/bricolage-grotesque.woff2) format('woff2'); font-weight: 600 800; font-display: swap; }
@font-face { font-family: 'Inter'; src: url(/fonts/inter.woff2) format('woff2'); font-weight: 400 600; font-display: swap; }
@font-face { font-family: 'JetBrains Mono'; src: url(/fonts/jetbrains-mono.woff2) format('woff2'); font-weight: 500 700; font-display: swap; }

:root {
  --ground: #f6f5ff;
  --surface: #ffffff;
  --ink: #16123a;
  --muted: #57537a;
  --line: #e6e3fa;
  --line-strong: #d9d5f5;
  --dash: #b9b3e6;
  --violet: #5b3df5;
  --violet-ink: #4a2fe0;
  --violet-soft: #e9e4ff;
  --violet-tint: #f1eeff;
  --warm: #ffb547;
  --warm-ink: #8a5300;
  --warm-soft: #fff1d9;
  --on-dark-muted: #c9c3f2;
  --good: #1f9d6b;
  --error: #b42318;
  --display: 'Bricolage Grotesque', system-ui, sans-serif;
  --sans: Inter, system-ui, sans-serif;
  --mono: 'JetBrains Mono', ui-monospace, monospace;
}

* { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; }
/* "How it works" and "FAQ" in the header glide to their section instead of jumping. */
@media (prefers-reduced-motion: no-preference) { html { scroll-behavior: smooth; } }
section[id] { scroll-margin-top: 16px; }
body { margin: 0; background: var(--ground); color: var(--ink); font-family: var(--sans); font-size: 16px; line-height: 1.5; }
a { color: var(--violet-ink); }
a:hover { color: #2e1a9e; }
h1, h2, h3 { margin: 0; }
p { margin: 0; }
[hidden] { display: none !important; }
button { font: inherit; cursor: pointer; }

.wrap { max-width: 1200px; margin: 0 auto; padding-inline: 32px; }
.wrap-narrow { max-width: 820px; margin: 0 auto; padding-inline: 32px; }
.grow { flex-grow: 1; }
.muted { color: var(--muted); }
.ink { color: var(--ink); }
.small { font-size: 14px; }
.tiny { font-size: 12px; line-height: 1.5; }
.center { text-align: center; }
.strong { font-weight: 700; }
.mono { font-family: var(--mono); }
.stack-6 { display: flex; flex-direction: column; gap: 6px; }
.stack-16 { display: flex; flex-direction: column; gap: 16px; }
.icon { fill: none; stroke: currentColor; stroke-width: 2; stroke-linecap: round; stroke-linejoin: round; flex-shrink: 0; }

/* Header and footer */
.header-row { display: flex; flex-wrap: wrap; align-items: center; gap: 24px; padding-block: 20px; }
.logo { display: flex; align-items: center; gap: 10px; flex-grow: 1; color: var(--ink); text-decoration: none; }
.logo:hover { color: var(--ink); }
.logo-mark { position: relative; width: 36px; height: 36px; border-radius: 10px; background: var(--violet); display: flex; align-items: center; justify-content: center; }
.logo-mark svg { fill: none; stroke: #fff; stroke-width: 2; stroke-linecap: round; stroke-linejoin: round; }
.logo-dot { position: absolute; right: -3px; top: -3px; width: 12px; height: 12px; border-radius: 6px; background: var(--warm); border: 2px solid var(--ground); }
.logo-name { font-family: var(--display); font-weight: 800; font-size: 20px; letter-spacing: -0.01em; }
.logo-tld { color: var(--muted); font-weight: 600; }
.nav { display: flex; flex-wrap: wrap; align-items: center; gap: 28px; font-size: 15px; font-weight: 500; }
.nav-link { color: var(--ink); text-decoration: none; }
.lang-pill { display: inline-flex; align-items: center; min-height: 36px; padding: 0 12px; border: 1px solid var(--line-strong); border-radius: 999px; color: var(--ink); text-decoration: none; font-size: 14px; }
.site-footer { border-top: 1px solid var(--line); }
.footer-row { display: flex; flex-wrap: wrap; gap: 24px; padding-block: 28px; font-size: 14px; color: var(--muted); }
.footer-guides { padding-bottom: 0; }

/* Buttons */
.btn { display: inline-flex; align-items: center; justify-content: center; gap: 8px; min-height: 48px; padding: 0 22px; border-radius: 14px; border: 0; font-size: 16px; font-weight: 600; text-decoration: none; white-space: nowrap; }
.btn-lg { min-height: 60px; padding: 0 30px; font-size: 18px; }
.btn-block { width: 100%; }
.btn-primary { background: var(--violet); color: #fff; box-shadow: 0 8px 24px rgba(91, 61, 245, 0.28); }
.btn-primary:hover { background: #4a2fe0; color: #fff; }
.btn-warm { background: var(--warm); color: var(--ink); }
.btn-warm:hover { background: #ffa826; color: var(--ink); }
.btn-light { background: #fff; color: var(--ink); }
.btn-outline { background: #fff; color: var(--ink); border: 1px solid var(--line-strong); min-height: 44px; font-size: 14px; padding: 0 12px; }
.btn:disabled { opacity: 0.55; cursor: not-allowed; box-shadow: none; }
.text-link { font-size: 15px; font-weight: 500; }
.link-button { background: none; border: 0; padding: 0; color: var(--violet-ink); text-decoration: underline; font-size: inherit; }
.notice { padding: 12px 16px; border-radius: 12px; font-size: 15px; }
.notice-error { background: #fdecea; color: var(--error); }

/* Cards */
.card { background: var(--surface); border: 1px solid var(--line); border-radius: 24px; }

/* Home */
.hero { display: flex; flex-wrap: wrap; align-items: center; gap: 56px; padding-top: 56px; padding-bottom: 88px; }
.hero-copy { flex: 1 1 480px; display: flex; flex-direction: column; gap: 24px; align-items: flex-start; }
.badge { padding: 6px 12px; border-radius: 999px; background: #fff; border: 1px solid var(--line-strong); font-size: 14px; font-weight: 500; }
.display { font-family: var(--display); font-weight: 800; font-size: clamp(40px, 6vw, 64px); line-height: 1.03; letter-spacing: -0.02em; }
.accent { color: var(--violet); }
.lead { font-size: 19px; line-height: 1.55; color: var(--muted); max-width: 520px; }
.hero-actions { display: flex; flex-wrap: wrap; align-items: center; gap: 20px; margin-top: 8px; }
.create-form { display: flex; flex-direction: column; gap: 12px; align-items: flex-start; }
.hero-card-wrap { flex: 1 1 380px; max-width: 500px; position: relative; }
.hero-card-shadow { position: absolute; right: -14px; top: -14px; width: 100%; height: 100%; border-radius: 24px; background: var(--warm); }
.hero-card { position: relative; padding: 24px; display: flex; flex-direction: column; gap: 16px; box-shadow: 0 20px 48px rgba(22, 18, 58, 0.1); border-color: var(--line-strong); }
.hero-card .mono { font-size: 19px; overflow-wrap: anywhere; }
.timer-chip { display: flex; align-items: center; gap: 12px; padding: 12px 14px; border-radius: 12px; background: var(--ground); }
.band { background: #fff; border-block: 1px solid var(--line); }
.band .grid-3 { padding-block: 72px; }
.grid-3 { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 32px; }
.feature { display: flex; flex-direction: column; gap: 12px; }
.feature h3, .step h3 { font-family: var(--display); font-size: 22px; }
.feature p, .step p { color: var(--muted); }
.feature-icon { width: 48px; height: 48px; border-radius: 14px; background: var(--violet-soft); color: var(--violet-ink); display: flex; align-items: center; justify-content: center; }
.feature-icon-warm { background: var(--warm-soft); color: var(--warm-ink); }
.section { padding-top: 88px; padding-bottom: 72px; display: flex; flex-direction: column; gap: 32px; }
.section-bottom { padding-bottom: 96px; }
.guide { gap: 36px; padding-top: 64px; }
.guide-title { font-size: clamp(34px, 5vw, 52px); }
.guide .lead { max-width: none; }
.guide section { display: flex; flex-direction: column; gap: 10px; }
.guide h2 { font-family: var(--display); font-weight: 800; font-size: 26px; line-height: 1.2; letter-spacing: -0.01em; }
.guide section p { color: var(--muted); line-height: 1.65; }
.guide .facts { margin-top: 6px; }
.guide-cta { margin-top: 24px; }
.section-title { font-family: var(--display); font-weight: 800; font-size: 40px; letter-spacing: -0.01em; }
.step { padding: 28px; display: flex; flex-direction: column; gap: 10px; border-radius: 20px; }
.step h3 { font-family: var(--sans); font-size: 19px; }
.step-number { color: var(--violet); font-weight: 700; font-size: 15px; }
.facts { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); margin-top: 32px; padding: 8px 24px; border-radius: 16px; }
.fact { display: flex; justify-content: space-between; gap: 16px; padding: 14px 0; border-bottom: 1px solid var(--line); }
.fact:nth-child(odd) { margin-right: 24px; }
.fact dt { color: var(--muted); }
.fact dd { margin: 0; font-weight: 600; text-align: right; }
@media (max-width: 720px) { .facts { grid-template-columns: 1fr; } .fact:nth-child(odd) { margin-right: 0; } }
.faq { display: flex; flex-direction: column; gap: 12px; }
.faq-item { border-radius: 16px; padding: 20px 24px; }
.faq-item summary { font-size: 17px; font-weight: 600; cursor: pointer; list-style: none; display: flex; gap: 12px; }
.faq-item summary::-webkit-details-marker { display: none; }
.faq-item summary::after { content: '+'; margin-left: auto; color: var(--violet); font-size: 22px; line-height: 1; transition: transform 0.25s ease; }
.faq-item[open] summary::after { transform: rotate(45deg); }
/* Answers slide open where the browser supports animating <details>; elsewhere they just appear. */
@media (prefers-reduced-motion: no-preference) {
  .faq { interpolate-size: allow-keywords; }
  .faq-item::details-content { height: 0; overflow: hidden; opacity: 0; transition: height 0.3s ease, opacity 0.3s ease, content-visibility 0.3s allow-discrete; }
  .faq-item[open]::details-content { height: auto; opacity: 1; }
}
.faq-item p { margin-top: 10px; color: var(--muted); line-height: 1.6; }
.cta-band { background: var(--ink); color: #fff; border-radius: 28px; padding: 56px 48px; display: flex; flex-wrap: wrap; align-items: center; gap: 24px; }
.cta-band h2 { flex: 1 1 420px; font-family: var(--display); font-weight: 800; font-size: 36px; line-height: 1.1; }

/* Ads */
.ad { margin-inline: auto; display: flex; flex-direction: column; align-items: center; justify-content: center; gap: 4px; }
.ad-placeholder { border: 1px dashed var(--dash); background: #fff; border-radius: 12px; font-size: 13px; color: var(--muted); }
.ad-label { font-size: 11px; color: var(--muted); align-self: flex-start; }
.ad-banner { width: 728px; max-width: 100%; min-height: 90px; }
.ad-inline { width: 468px; max-width: 100%; min-height: 60px; margin-inline: 0; }
.ad-rectangle { width: 300px; max-width: 100%; min-height: 250px; }
.ad-skyscraper { width: 300px; max-width: 100%; min-height: 600px; }
.ad > ins { width: 100%; }
.ad-row { padding-bottom: 24px; }

/* Inbox */
.inbox-layout { display: flex; flex-wrap: wrap; gap: 24px; align-items: flex-start; padding-bottom: 72px; }
.inbox-main { flex: 999 1 640px; min-width: 0; display: flex; flex-direction: column; gap: 24px; }
.inbox-side { flex: 1 1 300px; max-width: 300px; display: flex; flex-direction: column; gap: 24px; margin-inline: auto; }
.address-panel { background: var(--ink); color: #fff; border-radius: 24px; padding: 28px; display: flex; flex-direction: column; gap: 22px; }
.on-dark-muted { color: var(--on-dark-muted); }
.address-row { display: flex; flex-wrap: wrap; align-items: center; gap: 16px; }
.address-block { flex: 1 1 360px; min-width: 0; display: flex; flex-direction: column; gap: 6px; }
.address { font-weight: 700; font-size: clamp(18px, 3vw, 28px); overflow-wrap: anywhere; }
.timer-panel { display: flex; flex-wrap: wrap; align-items: center; gap: 20px; padding: 18px 20px; border-radius: 16px; background: rgba(255, 255, 255, 0.08); }
.timer-block { flex: 1 1 300px; display: flex; flex-direction: column; gap: 10px; }
.timer-line { display: flex; align-items: baseline; gap: 12px; }
.timer { font-weight: 700; font-size: 32px; color: var(--warm); font-variant-numeric: tabular-nums; }
.progress { height: 8px; border-radius: 4px; background: rgba(255, 255, 255, 0.16); overflow: hidden; }
.progress-fill { height: 8px; border-radius: 4px; background: var(--warm); transition: width 0.5s; }
.inbox-card { overflow: hidden; }
.inbox-head { padding: 18px 24px; border-bottom: 1px solid var(--line); display: flex; align-items: center; gap: 12px; }
.inbox-head h2 { font-family: var(--display); font-size: 22px; flex-grow: 1; }
.count { font-family: var(--sans); font-size: 14px; font-weight: 600; color: var(--violet-ink); background: var(--violet-soft); border-radius: 999px; padding: 2px 10px; vertical-align: middle; }
.live { display: inline-flex; align-items: center; gap: 8px; }
.live-dot { width: 8px; height: 8px; border-radius: 4px; background: var(--good); }
.live-dot { position: relative; }
.live-dot::after { content: ''; position: absolute; inset: 0; border-radius: 50%; background: var(--good); opacity: 0; }
/* One soft ring per check for new mail, so the pulse slows down with the polling. */
.live-dot.ping::after { animation: live-ping 1.6s ease-out; }
@keyframes live-ping { from { transform: scale(1); opacity: 0.6; } to { transform: scale(3); opacity: 0; } }
.live.paused .live-dot { background: var(--dash); }
.inbox-split { display: flex; flex-wrap: wrap; }
.message-list-wrap { flex: 1 1 280px; border-right: 1px solid var(--line); min-width: 0; }
.message-list { list-style: none; margin: 0; padding: 0; }
.message-list li + li { border-top: 1px solid #eeecfb; }
.message-item { display: flex; gap: 12px; align-items: flex-start; padding: 16px 20px; color: var(--ink); text-decoration: none; border-left: 3px solid transparent; }
.message-item:hover { background: var(--ground); color: var(--ink); }
.message-item.selected { background: var(--violet-tint); border-left-color: var(--violet); }
.avatar { width: 36px; height: 36px; flex-shrink: 0; border-radius: 18px; background: var(--violet-soft); color: var(--violet-ink); display: flex; align-items: center; justify-content: center; font-weight: 600; font-size: 14px; }
.message-meta { display: flex; flex-direction: column; gap: 2px; flex-grow: 1; min-width: 0; }
.message-top { display: flex; gap: 8px; font-size: 14px; }
.message-from { font-weight: 600; flex-grow: 1; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.message-time { color: var(--muted); }
.message-subject { font-size: 14px; color: var(--muted); overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.message-item.selected .message-subject { color: var(--ink); font-weight: 500; }
.message-item.unread .message-from::before { content: ''; display: inline-block; width: 8px; height: 8px; border-radius: 4px; background: var(--violet); margin-right: 6px; vertical-align: middle; }
.empty { padding: 40px 24px; display: flex; flex-direction: column; align-items: center; gap: 8px; text-align: center; }
.empty-icon { width: 56px; height: 56px; border-radius: 28px; background: var(--violet-soft); color: var(--violet-ink); display: flex; align-items: center; justify-content: center; margin-bottom: 4px; }
.empty-icon.waiting { position: relative; }
.empty-icon.waiting::before, .empty-icon.waiting::after { content: ''; position: absolute; inset: 0; border-radius: 50%; border: 2px solid var(--violet); opacity: 0; animation: waiting-ring 2.4s ease-out infinite; }
.empty-icon.waiting::after { animation-delay: 1.2s; }
@keyframes waiting-ring { from { transform: scale(1); opacity: 0.5; } to { transform: scale(1.8); opacity: 0; } }
@media (prefers-reduced-motion: reduce) { .empty-icon.waiting::before, .empty-icon.waiting::after, .live-dot.ping::after { animation: none; } }
.reader-head { display: flex; align-items: flex-start; justify-content: space-between; gap: 12px; }
.btn-small { min-height: 36px; padding: 0 12px; font-size: 14px; flex-shrink: 0; }
.undo-row { position: relative; overflow: hidden; display: flex; align-items: center; justify-content: space-between; gap: 12px; margin: 8px; padding: 14px 16px; border-radius: 12px; background: var(--warm-soft); color: var(--warm-ink); font-size: 14px; font-weight: 500; }
.undo-row .link-button { color: var(--warm-ink); font-weight: 700; }
.undo-bar { position: absolute; left: 0; bottom: 0; height: 3px; width: 100%; background: var(--warm); transform-origin: left; }
#undo-slot .undo-row { margin: 0 24px 24px; }
.reader { flex: 2 1 380px; min-width: 0; padding: 24px 28px; display: flex; flex-direction: column; gap: 14px; }
.reader-subject { font-family: var(--display); font-size: 24px; overflow-wrap: anywhere; }
#reader-frame { width: 100%; height: 480px; border: 1px solid var(--line); border-radius: 12px; background: #fff; }
.reader-note { display: inline-flex; align-items: center; gap: 8px; flex-wrap: wrap; }
.share-card { padding: 24px; display: flex; flex-direction: column; gap: 14px; }
.share-card h2 { font-family: var(--display); font-size: 20px; }
.qr { align-self: center; width: 156px; padding: 8px; border-radius: 16px; background: var(--ground); }
.qr svg { display: block; width: 100%; height: auto; }
.key { font-weight: 700; font-size: 17px; letter-spacing: 0.04em; text-align: center; padding: 12px; border-radius: 12px; border: 1px dashed var(--dash); }
.button-pair { display: flex; gap: 8px; }
.button-pair .btn { flex: 1; }

/* Narrow pages (open, expired) */
.narrow-page { max-width: 480px; margin: 0 auto; padding: 32px 16px 64px; display: flex; flex-direction: column; gap: 20px; }
.center-page { align-items: center; text-align: center; }
.center-page .create-form { align-items: stretch; width: 100%; }
.center-page .create-form .btn { width: 100%; }
.form-card { padding: 28px 24px; display: flex; flex-direction: column; gap: 16px; }
.page-title { font-family: var(--display); font-weight: 800; font-size: 32px; line-height: 1.1; }
.field { display: flex; flex-direction: column; gap: 8px; }
.field label { font-size: 14px; font-weight: 600; }
.input { min-height: 56px; border: 2px solid var(--line-strong); border-radius: 14px; padding: 0 16px; font-size: 18px; color: var(--ink); background: #fff; }
.input:focus { outline: none; border-color: var(--violet); }
.expired-icon { width: 88px; height: 88px; border-radius: 44px; background: var(--warm-soft); color: var(--warm-ink); display: flex; align-items: center; justify-content: center; margin-top: 24px; }

/* Privacy and stats */
.prose h2 { font-family: var(--display); font-size: 22px; margin-top: 8px; }
.prose p { color: var(--muted); line-height: 1.6; }
.table-wrap { overflow-x: auto; background: #fff; border: 1px solid var(--line); border-radius: 16px; }
.stats { width: 100%; border-collapse: collapse; font-size: 15px; }
.stats th, .stats td { padding: 12px 16px; text-align: left; border-bottom: 1px solid var(--line); white-space: nowrap; }
.stats .num { text-align: right; font-variant-numeric: tabular-nums; }
.chart { margin: 0 0 24px; padding: 20px 24px; border-radius: 16px; }
.chart-head { display: flex; flex-wrap: wrap; gap: 8px 24px; align-items: baseline; margin-bottom: 12px; }
.chart-legend { display: flex; flex-wrap: wrap; gap: 16px; font-size: 13px; color: var(--muted); }
.chart-legend span { display: inline-flex; align-items: center; gap: 6px; }
.chart-legend i { width: 10px; height: 10px; border-radius: 3px; }
.chart svg { display: block; width: 100%; height: auto; }
.chart text { font-size: 11px; fill: var(--muted); font-variant-numeric: tabular-nums; }
.chart .grid { stroke: var(--line); }
.chart .axis { stroke: var(--line-strong); }
.chart .hit { fill: transparent; }
.chart .day:hover .hit { fill: var(--violet-tint); }

:focus-visible { outline: 3px solid var(--violet); outline-offset: 2px; }

@media (max-width: 720px) {
  .wrap, .wrap-narrow { padding-inline: 16px; }
  .header-row { padding-block: 14px; gap: 12px; }
  .logo-name { font-size: 17px; }
  .hide-sm { display: none; }
  .hero { padding-top: 24px; padding-bottom: 48px; gap: 40px; }
  .hero-copy .btn-lg, .hero-copy .create-form { width: 100%; }
  .grid-3 { grid-template-columns: minmax(0, 1fr); gap: 24px; }
  .band .grid-3 { padding-block: 40px; }
  .section { padding-top: 48px; padding-bottom: 40px; }
  .section-title { font-size: 28px; }
  .cta-band { padding: 28px 22px; }
  .cta-band h2 { font-size: 26px; flex-basis: 100%; }
  .cta-band .create-form, .cta-band .btn { width: 100%; }
  .address-panel { padding: 20px; }
  .address-row .btn, #extend-form, #extend-form .btn { width: 100%; }
  .timer { font-size: 26px; }
  .message-list-wrap { border-right: 0; border-bottom: 1px solid var(--line); }
  .reader { padding: 18px; }
  #reader-frame { height: 60vh; }
  .inbox-side { max-width: none; }
  .ad-skyscraper { min-height: 250px; }
}
