/* catmail.sh landing — tokens shared with id.darkcat.cloud (account-center, Keycloak theme). */
@font-face { font-family: "Inter Variable"; font-display: swap; font-weight: 100 900; src: url(fonts/inter-cyrillic-ext-wght-normal.woff2) format("woff2-variations"); unicode-range: U+0460-052F, U+1C80-1C8A, U+20B4, U+2DE0-2DFF, U+A640-A69F, U+FE2E-FE2F; }
@font-face { font-family: "Inter Variable"; font-display: swap; font-weight: 100 900; src: url(fonts/inter-cyrillic-wght-normal.woff2) format("woff2-variations"); unicode-range: U+0301, U+0400-045F, U+0490-0491, U+04B0-04B1, U+2116; }
@font-face { font-family: "Inter Variable"; font-display: swap; font-weight: 100 900; src: url(fonts/inter-latin-ext-wght-normal.woff2) format("woff2-variations"); unicode-range: U+0100-02BA, U+02BD-02C5, U+02C7-02CC, U+02CE-02D7, U+02DD-02FF, U+0304, U+0308, U+0329, U+1D00-1DBF, U+1E00-1E9F, U+1EF2-1EFF, U+2020, U+20A0-20AB, U+20AD-20C0, U+2113, U+2C60-2C7F, U+A720-A7FF; }
@font-face { font-family: "Inter Variable"; font-display: swap; font-weight: 100 900; src: url(fonts/inter-latin-wght-normal.woff2) format("woff2-variations"); unicode-range: U+0000-00FF, U+0131, U+0152-0153, U+02BB-02BC, U+02C6, U+02DA, U+02DC, U+0304, U+0308, U+0329, U+2000-206F, U+20AC, U+2122, U+2191, U+2193, U+2212, U+2215, U+FEFF, U+FFFD; }
@font-face { font-family: "JetBrains Mono"; font-display: swap; font-weight: 400; src: url(fonts/jetbrains-mono-cyrillic-400-normal.woff2) format("woff2"); unicode-range: U+0301, U+0400-045F, U+0490-0491, U+04B0-04B1, U+2116; }
@font-face { font-family: "JetBrains Mono"; font-display: swap; font-weight: 400; src: url(fonts/jetbrains-mono-latin-400-normal.woff2) format("woff2"); unicode-range: U+0000-00FF, U+0131, U+0152-0153, U+02BB-02BC, U+02C6, U+02DA, U+02DC, U+2000-206F, U+20AC, U+2122, U+2212, U+FEFF, U+FFFD; }

:root {
  --bg: #0d0e11; --surface: #15171c; --surface-2: #1c1f26; --border: #2a2e37; --line: #1e2128;
  --text: #ecedef; --text-2: #c9cdd4; --muted: #a0a6b1;
  --accent: #a68bff; --on-accent: #14110a;
  --ok: #6fcf97; --warn-text: #f5c98a;
  --font: "Inter Variable", Inter, system-ui, sans-serif; --mono: "JetBrains Mono", ui-monospace, monospace;
  color-scheme: dark;
}
*, *::before, *::after { box-sizing: border-box; }
html { scroll-behavior: smooth; }
@media (prefers-reduced-motion: reduce) { html { scroll-behavior: auto; } }
body { margin: 0; background: var(--bg); color: var(--text); font-family: var(--font); line-height: 1.5; -webkit-font-smoothing: antialiased; }
a { color: var(--accent); }
a:hover { color: color-mix(in srgb, var(--accent) 70%, #fff); }
:focus-visible { outline: 2px solid var(--accent); outline-offset: 3px; border-radius: 6px; }
.sr-only { position: absolute; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; }
.skip { position: absolute; left: 16px; top: -48px; background: var(--accent); color: var(--on-accent); padding: 8px 12px; border-radius: 8px; z-index: 10; }
.skip:focus { top: 12px; }
.wrap { max-width: 1160px; margin: 0 auto; padding: 0 24px; }
.mono { font-family: var(--mono); }
.accent { color: var(--accent); }

/* header */
.site-header .wrap { padding-top: 20px; padding-bottom: 20px; display: flex; flex-wrap: wrap; gap: 16px; align-items: center; justify-content: space-between; }
.logo { display: flex; align-items: center; gap: 10px; text-decoration: none; color: var(--text); font-weight: 700; font-size: 18px; }
.logo:hover { color: var(--text); }
.logo svg { width: 32px; height: 32px; }
.nav { display: flex; flex-wrap: wrap; gap: 4px; align-items: center; }
.nav a { color: var(--muted); text-decoration: none; padding: 10px 12px; font-size: 15px; border-radius: 8px; }
.nav a:hover { color: var(--text); }
.nav .lang { border: 1px solid var(--border); font-size: 14px; padding: 8px 12px; }
.btn { display: inline-flex; align-items: center; justify-content: center; gap: 8px; text-decoration: none; border-radius: 10px; font-weight: 600; font-size: 16px; padding: 14px 22px; min-height: 48px; border: 1px solid transparent; cursor: pointer; font-family: inherit; }
.btn-primary { background: var(--accent); color: var(--on-accent); }
.btn-primary:hover { background: color-mix(in srgb, var(--accent) 88%, #fff); color: var(--on-accent); }
.btn-ghost { color: var(--text); border-color: var(--border); font-weight: 500; }
.btn-ghost:hover { background: var(--surface-2); color: var(--text); }
.nav .btn { padding: 10px 16px; min-height: 0; font-size: 15px; font-weight: 500; }

/* hero */
.hero .wrap { padding-top: 88px; padding-bottom: 72px; display: flex; flex-wrap: wrap; gap: 56px; align-items: center; }
.hero-copy { flex: 1 1 480px; min-width: 0; }
.pill { margin: 0 0 20px; display: inline-flex; gap: 8px; align-items: center; font-size: 13px; color: var(--accent); border: 1px solid color-mix(in srgb, var(--accent) 35%, var(--bg)); background: color-mix(in srgb, var(--accent) 10%, var(--bg)); padding: 6px 12px; border-radius: 999px; }
h1 { margin: 0; font-size: clamp(40px, 6vw, 64px); line-height: 1.05; letter-spacing: -0.03em; font-weight: 700; }
.hero-lead { margin: 24px 0 0; font-size: 19px; line-height: 1.55; color: var(--muted); max-width: 520px; }
.cta { margin-top: 36px; display: flex; flex-wrap: wrap; gap: 12px; }

/* hero diagram: several addresses → one inbox */
.flow { flex: 1 1 420px; min-width: 0; margin: 0; display: flex; align-items: center; }
.flow-addrs { flex: 1 1 auto; min-width: 0; display: flex; flex-direction: column; gap: 12px; }
.flow-row { display: flex; align-items: center; }
.chip { flex: 1 1 auto; min-width: 0; background: var(--surface); border: 1px solid var(--border); border-radius: 10px; padding: 11px 14px; font-family: var(--mono); font-size: 14px; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.chip.own { border-color: var(--accent); }
.chip.off { background: transparent; border-style: dashed; border-color: #3a3f4a; color: var(--muted); text-decoration: line-through; }
.chip small { font-family: var(--font); color: var(--muted); font-size: 12px; }
.wire { flex: 0 0 32px; height: 2px; background: var(--accent); }
.wire.off { height: 0; background: none; border-top: 2px dashed #3a3f4a; }
.bus { align-self: stretch; display: flex; flex-direction: column; padding: 20px 0 44px; }
.bus span { flex: 1; width: 2px; background: var(--accent); }
.wire.short { flex-basis: 20px; }
.inbox { flex: 0 0 168px; background: var(--surface); border: 1px solid var(--border); border-radius: 16px; padding: 18px; display: flex; flex-direction: column; gap: 8px; box-shadow: 0 0 0 6px color-mix(in srgb, var(--accent) 12%, transparent); }
.inbox svg { width: 36px; height: 36px; color: var(--accent); }
.inbox b { font-size: 15px; }
.inbox .mono { font-size: 12px; color: var(--muted); word-break: break-all; }
.inbox .meta { font-size: 13px; color: var(--muted); }

/* sections */
section.block .wrap { padding-top: 72px; padding-bottom: 72px; border-top: 1px solid var(--line); }
h2 { margin: 0 0 12px; font-size: 34px; letter-spacing: -0.02em; }
.section-lead { margin: 0 0 40px; color: var(--muted); font-size: 16px; max-width: 640px; }
.grid { display: grid; grid-template-columns: repeat(auto-fit, minmax(300px, 1fr)); gap: 16px; }
.card { background: var(--surface); border: 1px solid var(--border); border-radius: 14px; padding: 24px; }
.card svg { width: 24px; height: 24px; color: var(--accent); }
.card h3 { margin: 16px 0 8px; font-size: 18px; display: flex; align-items: center; gap: 8px; flex-wrap: wrap; }
.card p { margin: 0; color: var(--muted); line-height: 1.55; font-size: 15px; }
.soon { font-size: 12px; font-weight: 500; color: var(--muted); border: 1px solid var(--border); border-radius: 999px; padding: 2px 8px; }

.plans { display: grid; grid-template-columns: repeat(auto-fit, minmax(300px, 1fr)); gap: 16px; }
.plan { background: var(--surface); border: 1px solid var(--border); border-radius: 16px; padding: 28px; }
.plan.plus { border-color: var(--accent); }
.plan-head { display: flex; justify-content: space-between; align-items: center; gap: 8px; }
.plan h3 { margin: 0; font-size: 20px; }
.price { margin: 8px 0 24px; font-size: 32px; font-weight: 700; }
.plan ul { margin: 0; padding: 0; list-style: none; display: flex; flex-direction: column; gap: 12px; color: var(--text-2); font-size: 15px; }
.plan li::before { content: "✓"; color: var(--accent); margin-right: 10px; }
.badge { font-size: 12px; color: var(--on-accent); background: var(--accent); padding: 4px 10px; border-radius: 999px; font-weight: 600; }

.waitlist .wrap { display: flex; flex-wrap: wrap; gap: 40px; align-items: center; }
.waitlist-copy { flex: 1 1 380px; }
.waitlist-copy p { margin: 0; color: var(--muted); font-size: 16px; line-height: 1.55; }
.waitlist form { flex: 1 1 420px; display: flex; flex-wrap: wrap; gap: 10px; }
.waitlist input { flex: 1 1 240px; background: var(--surface); border: 1px solid var(--border); color: var(--text); border-radius: 10px; padding: 14px 16px; font: inherit; font-size: 16px; min-height: 48px; }
.waitlist input:focus { outline: none; border-color: var(--accent); box-shadow: 0 0 0 3px color-mix(in srgb, var(--accent) 22%, transparent); }
.waitlist button { background: var(--text); color: var(--bg); }
.waitlist button:hover { background: #fff; }
.waitlist button:disabled { opacity: .6; cursor: progress; }
.form-msg { flex-basis: 100%; margin: 0; font-size: 14px; min-height: 21px; color: var(--muted); }
.form-msg.ok { color: var(--ok); }
.form-msg.err { color: var(--warn-text); }

.faq { display: flex; flex-direction: column; gap: 10px; max-width: 820px; }
details { background: var(--surface); border: 1px solid var(--border); border-radius: 12px; padding: 18px 35px; }
summary { cursor: pointer; font-weight: 600; font-size: 16px; list-style-position: outside; }
details p { margin: 12px 0 0; color: var(--muted); line-height: 1.55; }

.site-footer { border-top: 1px solid var(--line); }
.site-footer .wrap { padding-top: 32px; padding-bottom: 32px; display: flex; flex-wrap: wrap; gap: 20px; justify-content: space-between; color: var(--muted); font-size: 14px; }
.site-footer nav { display: flex; flex-wrap: wrap; gap: 20px; }
.site-footer a { color: var(--muted); }
.site-footer a:hover { color: var(--text); }

@media (max-width: 720px) {
  .hero .wrap { padding-top: 48px; padding-bottom: 48px; gap: 40px; }
  .nav a:not(.btn):not(.lang) { display: none; }
  .inbox { flex-basis: 140px; padding: 14px; }
  .chip { font-size: 13px; padding: 10px 12px; }
  .wire { flex-basis: 16px; }
  .wire.short { flex-basis: 12px; }
  section.block .wrap { padding-top: 56px; padding-bottom: 56px; }
  h2 { font-size: 28px; }
}

/* ── motion & live bits ─────────────────────────────────────────────────────
   Everything below is decoration: without JS the page is static and complete
   (reveal states only apply under html.js), and prefers-reduced-motion turns it off. */
[hidden] { display: none !important; }
:root { interpolate-size: allow-keywords; }

/* sticky header that frosts once the page scrolls */
.site-header { position: sticky; top: 0; z-index: 30; transition: background-color .25s, border-color .25s; border-bottom: 1px solid transparent; }
.site-header.scrolled { background: color-mix(in srgb, var(--bg) 78%, transparent); backdrop-filter: blur(14px) saturate(140%); -webkit-backdrop-filter: blur(14px) saturate(140%); border-bottom-color: var(--line); }
.site-header .wrap { transition: padding .25s; }
.site-header.scrolled .wrap { padding-top: 12px; padding-bottom: 12px; }

/* hero: drifting glow behind everything */
.hero { position: relative; overflow: hidden; isolation: isolate; }
.hero::before, .hero::after { content: ""; position: absolute; z-index: -1; border-radius: 50%; filter: blur(80px); opacity: .55; pointer-events: none; }
.hero::after { width: 520px; height: 520px; right: -160px; top: 40px; background: radial-gradient(circle, rgba(79, 209, 197, .28), transparent 70%); animation: drift-b 22s ease-in-out infinite alternate; }
@keyframes drift-a { to { transform: translate(120px, 90px) scale(1.15); } }
@keyframes drift-b { to { transform: translate(-110px, 60px) scale(.9); } }

/* staggered entrance of the hero copy */
.rise { animation: rise .8s cubic-bezier(.2, .7, .2, 1) both; animation-delay: calc(var(--d, 0) * 110ms + 80ms); }
@keyframes rise { from { opacity: 0; transform: translateY(18px); filter: blur(6px); } }
.pill .pulse { width: 8px; height: 8px; border-radius: 50%; background: var(--accent); box-shadow: 0 0 0 0 color-mix(in srgb, var(--accent) 60%, transparent); animation: pulse 2.2s infinite; }
@keyframes pulse { 70% { box-shadow: 0 0 0 8px transparent; } 100% { box-shadow: 0 0 0 0 transparent; } }
.shine { background: linear-gradient(100deg, var(--accent) 0%, #e2d9ff 22%, var(--accent) 44%, var(--accent) 100%); background-size: 250% 100%; -webkit-background-clip: text; background-clip: text; color: transparent; animation: shine 7s ease-in-out infinite; }
@keyframes shine { 0%, 15% { background-position: 100% 0; } 55%, 100% { background-position: -40% 0; } }

/* buttons: lift + glow */
.btn { transition: transform .18s, box-shadow .25s, background-color .2s, border-color .2s, color .2s; }
.btn:hover { transform: translateY(-1px); }
.btn:active { transform: translateY(0) scale(.98); }
.btn-primary:hover { box-shadow: 0 10px 30px -10px color-mix(in srgb, var(--accent) 80%, transparent); }

/* signed-in bits */
.me-link { display: block; width: 40px; height: 40px; border-radius: 999px; padding: 0; margin-left: 6px; box-shadow: 0 0 0 2px var(--bg), 0 0 0 4px color-mix(in srgb, var(--accent) 55%, transparent); transition: box-shadow .2s, transform .2s; }
.me-link:hover { transform: scale(1.06); box-shadow: 0 0 0 2px var(--bg), 0 0 0 4px var(--accent); }
.nav a.me-link { padding: 0; }
.me-pic { width: 40px; height: 40px; border-radius: 999px; overflow: hidden; display: grid; place-items: center; background: var(--accent); color: var(--on-accent); font-weight: 700; }
.me-pic img { width: 100%; height: 100%; object-fit: cover; display: block; }
.signed-as { flex-basis: 100%; margin: 4px 0 0; color: var(--muted); font-size: 14px; }
.appear { animation: rise .6s cubic-bezier(.2, .7, .2, 1) both; }

/* hero demo: a tiny live inbox */
.demo { flex: 1 1 440px; min-width: 0; position: relative; }
.demo-win { background: color-mix(in srgb, var(--surface) 88%, transparent); border: 1px solid var(--border); border-radius: 16px; box-shadow: 0 30px 80px -30px rgba(0, 0, 0, .8), 0 0 0 1px rgba(255, 255, 255, .02) inset; overflow: hidden; transform: perspective(1400px) rotateY(-6deg) rotateX(3deg); transition: transform .6s cubic-bezier(.2, .7, .2, 1); }
.demo:hover .demo-win { transform: perspective(1400px) rotateY(0) rotateX(0); }
.demo-bar { display: flex; align-items: center; gap: 12px; padding: 10px 14px; border-bottom: 1px solid var(--line); color: var(--muted); font-size: 12px; }
.dots { display: flex; gap: 6px; }
.dots i { width: 10px; height: 10px; border-radius: 50%; background: #2f333d; }
.demo-body { display: flex; min-height: 300px; }
.demo-h { font-size: 12px; text-transform: uppercase; letter-spacing: .08em; color: var(--muted); margin: 0 0 10px; }
.demo-aliases { flex: 0 0 46%; padding: 16px; border-right: 1px solid var(--line); display: flex; flex-direction: column; gap: 8px; min-width: 0; }
.demo .chip { flex: none; display: flex; align-items: center; gap: 8px; font-size: 12px; padding: 8px 10px; transition: border-color .3s, color .3s, opacity .3s, background-color .3s; }
.demo .chip .addr { min-width: 0; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; color: var(--muted); }
.demo .chip .addr b { color: var(--text); font-weight: 400; }
.demo .chip .sw { flex: none; width: 22px; height: 12px; border-radius: 999px; background: var(--accent); position: relative; transition: background-color .3s; }
.demo .chip .sw::after { content: ""; position: absolute; top: 2px; left: 12px; width: 8px; height: 8px; border-radius: 50%; background: var(--on-accent); transition: left .3s cubic-bezier(.3, 1.4, .5, 1); }
.demo .chip.off { border-style: dashed; opacity: .6; text-decoration: none; background: transparent; }
.demo .chip.off .sw { background: #3a3f4a; }
.demo .chip.off .sw::after { left: 2px; background: var(--muted); }
.demo .chip.off .addr b { text-decoration: line-through; color: var(--muted); }
.demo .chip.ping { animation: ping .9s ease-out; }
@keyframes ping { 0% { box-shadow: 0 0 0 0 color-mix(in srgb, var(--accent) 55%, transparent); border-color: var(--accent); } 100% { box-shadow: 0 0 0 10px transparent; } }
.demo-list { flex: 1 1 auto; min-width: 0; padding: 16px; }
.demo-rows { list-style: none; margin: 0; padding: 0; display: flex; flex-direction: column; gap: 8px; }
.demo-row { display: flex; align-items: center; gap: 10px; padding: 9px 10px; border-radius: 10px; background: var(--bg); border: 1px solid var(--line); font-size: 12px; max-height: 60px; transition: opacity .45s, transform .45s cubic-bezier(.2, .7, .2, 1), max-height .45s, padding .45s, margin .45s, border-color .45s, background-color .45s; }
.demo-row.new { opacity: 0; transform: translateY(-14px) scale(.97); }
.demo-row:first-child:not(.new):not(.refused) { border-color: color-mix(in srgb, var(--accent) 40%, var(--line)); }
.demo-row .av { flex: none; width: 24px; height: 24px; border-radius: 50%; display: grid; place-items: center; background: var(--surface-2); font-weight: 700; font-size: 11px; }
.demo-row .txt { min-width: 0; display: flex; flex-direction: column; }
.demo-row .txt b { font-weight: 600; }
.demo-row .txt span { color: var(--muted); overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.demo-row .tag { margin-left: auto; flex: none; font-family: var(--mono); font-size: 10px; color: var(--accent); border: 1px solid color-mix(in srgb, var(--accent) 35%, transparent); border-radius: 999px; padding: 1px 7px; }
.demo-row.spam { border-color: rgba(242, 153, 74, .45); }
.demo-row.refused { border-style: dashed; border-color: #3a3f4a; background: transparent; animation: refuse .6s ease-out; }
.demo-row.refused .txt span { color: var(--warn-text); }
@keyframes refuse { 0% { opacity: 0; transform: translateX(30px); } 60% { transform: translateX(-6px); } 100% { opacity: 1; transform: none; } }
.demo-row.gone { opacity: 0; transform: translateX(40px); max-height: 0; padding-top: 0; padding-bottom: 0; margin-top: -8px; border-width: 0; }

/* scroll reveal */
.js .reveal { opacity: 0; transform: translateY(22px); transition: opacity .7s cubic-bezier(.2, .7, .2, 1), transform .7s cubic-bezier(.2, .7, .2, 1); transition-delay: calc(var(--d, 0) * 80ms); }
.js .reveal.in { opacity: 1; transform: none; }

/* cards & plans: lift + pointer spotlight */
.card, .plan { position: relative; overflow: hidden; }
.js .card.reveal, .js .plan.reveal { transition: opacity .7s cubic-bezier(.2, .7, .2, 1), transform .7s cubic-bezier(.2, .7, .2, 1), border-color .3s; }
.js .card.reveal.in, .js .plan.reveal.in { transition: opacity .7s cubic-bezier(.2, .7, .2, 1) calc(var(--d, 0) * 80ms), transform .3s cubic-bezier(.2, .7, .2, 1), border-color .3s; }
.card::before, .plan::before { content: ""; position: absolute; inset: 0; pointer-events: none; opacity: 0; transition: opacity .3s; background: radial-gradient(360px circle at var(--mx, 50%) var(--my, 0%), color-mix(in srgb, var(--accent) 14%, transparent), transparent 70%); }
.card:hover, .plan:hover { transform: translateY(-4px); border-color: color-mix(in srgb, var(--accent) 45%, var(--border)); }
.card:hover::before, .plan:hover::before { opacity: 1; }
.card svg { transition: transform .4s cubic-bezier(.3, 1.4, .5, 1); }
.card:hover svg { transform: scale(1.15) rotate(-6deg); }
.plan.plus { animation: plus-glow 4s ease-in-out infinite; }
@keyframes plus-glow { 50% { box-shadow: 0 0 40px -12px color-mix(in srgb, var(--accent) 70%, transparent); } }

/* FAQ: smooth open where the browser can animate to height:auto */
details { transition: border-color .25s, background-color .25s; }
details:hover { border-color: color-mix(in srgb, var(--accent) 35%, var(--border)); }
details[open] { border-color: color-mix(in srgb, var(--accent) 45%, var(--border)); }
details::details-content { block-size: 0; overflow: clip; transition: block-size .35s cubic-bezier(.2, .7, .2, 1), content-visibility .35s allow-discrete; }
details[open]::details-content { block-size: auto; }

@media (max-width: 720px) {
  .demo-win { transform: none; }
  .demo-aliases { flex-basis: 50%; padding: 12px; }
  .demo-list { padding: 12px; }
  .hero::before { width: 380px; height: 380px; }
  .hero::after { display: none; }
}
@media (max-width: 480px) {
  .demo-body { flex-direction: column; min-height: 0; }
  .demo-aliases { border-right: 0; border-bottom: 1px solid var(--line); }
}
@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after { animation: none !important; transition: none !important; }
  .js .reveal { opacity: 1; transform: none; }
  .demo-win { transform: none; }
}
