/* junkmute.app. Colours from the app (docs/design/midnight-system.md), used quietly: one accent, thin rules, lots
   of space. Self-hosted display font, no scripts, nothing from other hosts. */
@font-face {
  font-family: 'Space Grotesk';
  src: url('/fonts/SpaceGrotesk-Bold.ttf') format('truetype');
  font-weight: 700;
  font-display: swap;
}
:root {
  --bg: #05080f;
  --text: #eceff1;
  --body: #b9c3cc;
  --muted: #7f8b97;
  --line: rgba(255, 255, 255, 0.08);
  --accent: #34d399;
  --display: 'Space Grotesk', ui-sans-serif, system-ui, -apple-system, 'Segoe UI', sans-serif;
  --sans: ui-sans-serif, system-ui, -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, 'Helvetica Neue', Arial, sans-serif;
  color-scheme: dark;
}
*, *::before, *::after { box-sizing: border-box; }
html { scroll-padding-top: 80px; -webkit-text-size-adjust: 100%; }
/* the icon’s background: deep navy with a teal glow from the top (#173A4A -> #0A1220 -> #05080F) */
body { margin: 0; color: var(--text); background: radial-gradient(140% 900px at 50% -120px, #1d4a5e 0%, #12293a 30%, #0a1220 60%, transparent 100%) no-repeat, linear-gradient(180deg, #0a1220 0%, #05080f 1400px) no-repeat, #05080f; font: 400 17px/1.6 var(--sans); -webkit-font-smoothing: antialiased; overflow-x: hidden; }
img { display: block; max-width: 100%; }
a { color: var(--text); text-decoration-color: rgba(52, 211, 153, 0.6); text-underline-offset: 3px; }
a:hover { color: var(--accent); }
:focus-visible { outline: 2px solid var(--accent); outline-offset: 3px; border-radius: 6px; }
h1, h2, h3 { margin: 0; font-weight: 700; color: var(--text); }
h1, h2 { font-family: var(--display); letter-spacing: -0.03em; }
h1 { font-size: clamp(2.3rem, 4.4vw, 3.7rem); line-height: 1.06; }
h2 { font-size: clamp(1.8rem, 3.4vw, 2.7rem); line-height: 1.1; }
h3 { font-size: 1.02rem; font-weight: 600; letter-spacing: -0.005em; }
p { margin: 0 0 1em; }
ul { margin: 0; padding: 0; }
.wrap { width: 100%; max-width: 1140px; margin: 0 auto; padding: 0 24px; }
.small { color: var(--muted); font-size: 0.92rem; }
.skip { position: absolute; left: -9999px; top: 10px; z-index: 20; padding: 10px 16px; border-radius: 8px; background: var(--accent); color: #04140d; }
.skip:focus { left: 12px; }

/* header */
.top { position: sticky; top: 0; z-index: 10; background: rgba(10, 22, 32, 0.72); backdrop-filter: blur(12px); -webkit-backdrop-filter: blur(12px); border-bottom: 1px solid var(--line); }
.bar { display: flex; align-items: center; justify-content: space-between; gap: 20px; height: 64px; }
.brand { display: inline-flex; align-items: center; gap: 10px; text-decoration: none; color: var(--text); font: 700 1.08rem var(--display); letter-spacing: -0.02em; }
.brand img { border-radius: 8px; }
.top nav { display: flex; align-items: center; gap: 26px; font-size: 0.95rem; }
.top nav a { color: var(--muted); text-decoration: none; }
.top nav a:hover, .top nav a[aria-current='page'] { color: var(--text); }
.top nav .lang { color: var(--text); padding-left: 26px; border-left: 1px solid var(--line); }

/* hero */
.hero { position: relative; isolation: isolate; padding: clamp(56px, 8vw, 110px) 0 clamp(64px, 8vw, 120px); }
.hero-grid { display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 1fr); gap: 48px; align-items: center; }
.hero h1 .soft { color: var(--muted); }
.lead { margin-top: 28px; max-width: 33rem; color: var(--body); font-size: clamp(1.05rem, 1.5vw, 1.2rem); line-height: 1.6; }
.stores { display: flex; flex-wrap: wrap; gap: 12px; margin: 36px 0 18px; }
.store { display: inline-flex; align-items: center; gap: 10px; height: 52px; padding: 0 18px 0 14px; border-radius: 12px; border: 1px solid rgba(255, 255, 255, 0.18); background: #000; color: var(--text); font-weight: 600; font-size: 1.05rem; line-height: 1.1; cursor: default; }
.store svg { width: 24px; height: 24px; fill: currentColor; }
.store small { display: block; font-size: 0.68rem; font-weight: 500; color: var(--muted); letter-spacing: 0.02em; }

/* devices: a real iPhone 17 Pro Max frame (389x800, screen at 17,14 355x772) over an HTML screen */
.device { --w: 320; position: relative; width: calc(var(--w) * 1px); aspect-ratio: 389 / 800; filter: drop-shadow(0 40px 70px rgba(0, 0, 0, 0.55)); }
.device-frame { position: absolute; inset: 0; width: 100%; height: 100%; pointer-events: none; }
.device-screen { position: absolute; left: 4.37%; top: 1.75%; width: 91.26%; height: 96.5%; overflow: hidden; border-radius: calc(var(--w) * 0.135px); background: #000; }
.ios { width: 390px; height: 848px; transform: scale(calc(var(--w) * 0.9126 / 390)); transform-origin: 0 0; font-family: -apple-system, 'SF Pro Text', ui-sans-serif, system-ui, 'Segoe UI', Roboto, sans-serif; color: #fff; -webkit-font-smoothing: antialiased; }
.hero-devices { position: relative; width: 100%; max-width: 540px; justify-self: end; height: calc(320px * 800 / 389 + 20px); }
.front-device { position: absolute; right: 0; top: 0; --w: 320; z-index: 2; }
.back-device { position: absolute; left: 0; top: 64px; --w: 270; transform: rotate(-6deg); }

/* iOS status bar */
.sb { display: flex; justify-content: space-between; align-items: center; height: 56px; padding: 16px 32px 0 52px; font-size: 17px; font-weight: 600; letter-spacing: -0.2px; }
.sb-r { display: inline-flex; align-items: center; gap: 6px; }
.sb-r svg { height: 12px; width: auto; fill: #fff; }
.bat { position: relative; width: 26px; height: 12.5px; border: 1.3px solid rgba(255, 255, 255, 0.45); border-radius: 4px; padding: 1.5px; }
.bat i { display: block; width: 78%; height: 100%; background: #fff; border-radius: 2px; }
.bat::after { content: ''; position: absolute; right: -3.5px; top: 3.5px; width: 2px; height: 4px; border-radius: 0 1px 1px 0; background: rgba(255, 255, 255, 0.45); }

/* iOS Messages: the Junk filter */
.ios-msg { position: relative; background: #000; }
.msg-nav { display: flex; justify-content: space-between; align-items: center; padding: 6px 16px 0 10px; height: 44px; color: #0a84ff; font-size: 17px; }
.msg-nav .back { display: inline-flex; align-items: center; gap: 4px; }
.msg-nav svg { width: 12px; height: 20px; fill: none; stroke: #0a84ff; stroke-width: 2.6; stroke-linecap: round; stroke-linejoin: round; }
.msg-nav .edit { display: grid; place-items: center; width: 32px; height: 32px; border-radius: 50%; background: #1c1c1e; font-size: 12px; letter-spacing: 1px; }
.msg-title { padding: 4px 16px 10px; font-size: 34px; font-weight: 700; letter-spacing: 0.3px; }
.msg-search { display: flex; align-items: center; gap: 6px; height: 36px; margin: 0 16px 8px; padding: 0 8px; border-radius: 10px; background: #1c1c1e; color: #8d8d93; font-size: 17px; }
.msg-search svg { width: 18px; height: 18px; fill: none; stroke: #8d8d93; stroke-width: 2; stroke-linecap: round; }
.msg-list { list-style: none; margin: 0; padding: 0; }
.msg-list li { display: flex; gap: 12px; padding: 10px 0 0 16px; }
.av { flex: none; display: grid; place-items: center; width: 46px; height: 46px; margin-top: 2px; border-radius: 50%; background: linear-gradient(180deg, #a1a1a6, #6b6b70); color: #fff; font-size: 18px; font-weight: 600; overflow: hidden; }
.av svg.person { width: 100%; height: 100%; align-self: end; fill: rgba(255, 255, 255, 0.92); }
.mrow { flex: 1; min-width: 0; padding: 0 16px 12px 0; border-bottom: 0.5px solid #38383a; }
.mhead { display: flex; justify-content: space-between; gap: 8px; align-items: baseline; }
.mhead b { font-size: 17px; font-weight: 600; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.mhead span { flex: none; font-size: 15px; color: #8d8d93; }
.mrow p { margin: 2px 0 0; font-size: 15px; line-height: 20px; color: #8d8d93; display: -webkit-box; -webkit-line-clamp: 2; -webkit-box-orient: vertical; overflow: hidden; }

.av.ok { background: linear-gradient(180deg, #6e9bd8, #3f6fb8); }

/* iOS incoming call */
.ios-call { position: relative; background: linear-gradient(180deg, #4a5866 0%, #26303b 45%, #12171d 100%); text-align: center; }
.call-top { display: flex; flex-direction: column; align-items: center; gap: 6px; margin-top: 74px; }
.call-num { font-size: 33px; font-weight: 400; letter-spacing: 0.2px; }
.call-label { font-size: 18px; color: rgba(255, 255, 255, 0.72); }
.call-small { position: absolute; left: 0; right: 0; bottom: 240px; display: flex; justify-content: space-around; padding: 0 40px; font-size: 15px; color: rgba(255, 255, 255, 0.9); }
.call-small div { display: flex; flex-direction: column; align-items: center; gap: 8px; }
.call-small svg { width: 28px; height: 28px; fill: none; stroke: #fff; stroke-width: 1.7; stroke-linecap: round; stroke-linejoin: round; }
.call-btns { position: absolute; left: 0; right: 0; bottom: 92px; display: flex; justify-content: space-around; padding: 0 40px; }
.cbtn { display: flex; flex-direction: column; align-items: center; gap: 10px; font-size: 15px; }
.cbtn span { display: grid; place-items: center; width: 78px; height: 78px; border-radius: 50%; }
.cbtn svg { width: 36px; height: 36px; fill: #fff; }
.cbtn.decline span { background: #ff3b30; }
.cbtn.decline svg { transform: rotate(135deg); }
.cbtn.accept span { background: #34c759; }

/* feature sections: editorial rows */
.feature { display: grid; grid-template-columns: 220px minmax(0, 1fr); column-gap: 32px; padding-top: 48px; padding-bottom: 72px; border-top: 1px solid var(--line); }
.num { grid-row: 1 / span 3; display: flex; gap: 12px; align-items: baseline; margin: 8px 0 0; color: var(--muted); font-size: 0.95rem; }
.num span { font: 700 0.95rem var(--display); color: var(--accent); }
.feature-copy { display: contents; }
.feature-copy h2, .feature-copy .body, .feature-copy .ticks { grid-column: 2; }
.feature-copy h2 { max-width: 20ch; }
.body { margin-top: 18px; max-width: 40rem; color: var(--body); font-size: 1.08rem; }
.ticks { list-style: none; display: grid; gap: 10px; margin-top: 8px; max-width: 40rem; }
.ticks li { position: relative; padding-left: 28px; color: var(--body); }
.ticks li::before { content: ''; position: absolute; left: 2px; top: 0.42em; width: 12px; height: 7px; border-left: 2px solid var(--accent); border-bottom: 2px solid var(--accent); transform: rotate(-45deg); }

/* privacy */
.privacy { padding-top: 96px; padding-bottom: 40px; border-top: 1px solid var(--line); }
.privacy h2 { max-width: 18ch; font-size: clamp(2rem, 4.4vw, 3.4rem); }
.privacy > .body { font-size: 1.15rem; }
.cols { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 32px; margin: 48px 0 32px; }
.cols > div { padding-top: 20px; border-top: 1px solid var(--line); }
.cols h3 { margin-bottom: 8px; }
.cols p { margin: 0; color: var(--muted); font-size: 0.98rem; }
.link-arrow { color: var(--accent); text-decoration: none; font-weight: 600; }
.link-arrow:hover { text-decoration: underline; }

/* comparison, FAQ */
.block { padding-top: 96px; }
.block > h2 { margin-bottom: 32px; }
.table-wrap { overflow-x: auto; }
.compare, .paths { width: 100%; border-collapse: collapse; font-size: 1rem; }
.compare th, .compare td, .paths th, .paths td { text-align: left; vertical-align: top; padding: 16px 18px 16px 0; border-top: 1px solid var(--line); }
.compare thead th { border-top: 0; padding-bottom: 12px; color: var(--muted); font-size: 0.9rem; font-weight: 600; }
.compare tbody th, .paths th { width: 24%; font-weight: 600; color: var(--text); }
.compare td, .paths td { color: var(--body); }
.faq { border-bottom: 1px solid var(--line); max-width: 860px; }
.faq details { border-top: 1px solid var(--line); }
.faq summary { display: flex; justify-content: space-between; gap: 24px; padding: 22px 0; cursor: pointer; list-style: none; font-size: 1.08rem; font-weight: 600; }
.faq summary::-webkit-details-marker { display: none; }
.faq summary::after { content: '+'; flex: none; color: var(--muted); font-size: 1.4rem; line-height: 1; transition: transform 0.2s; }
.faq details[open] summary::after { transform: rotate(45deg); }
.faq details p { margin: -6px 0 24px; max-width: 46rem; color: var(--body); }

/* end */
.end { display: flex; flex-direction: column; align-items: center; text-align: center; padding-top: 120px; }
.end img { width: 72px; height: 72px; border-radius: 17px; margin-bottom: 26px; }
.end h2 { max-width: 20ch; }
.end .stores { justify-content: center; margin-top: 30px; }

/* text pages */
.doc-head { padding-top: clamp(56px, 8vw, 96px); padding-bottom: 32px; }
.doc-head h1 { font-size: clamp(2.2rem, 4.6vw, 3.4rem); max-width: 18ch; }
.doc-head .lead { margin-top: 18px; }
.doc { padding-bottom: 24px; }
.doc.has-toc { display: grid; grid-template-columns: 230px minmax(0, 1fr); gap: 56px; align-items: start; }
.toc { position: sticky; top: 88px; font-size: 0.9rem; }
.toc p { margin: 0 0 10px; color: var(--muted); font-weight: 600; }
.toc ol { margin: 0; padding-left: 18px; display: grid; gap: 7px; color: var(--muted); }
.toc a { color: var(--muted); text-decoration: none; }
.toc a:hover { color: var(--text); }
.prose { max-width: 720px; }
.prose h2 { font-size: 1.35rem; letter-spacing: -0.015em; margin: 44px 0 12px; padding-top: 24px; border-top: 1px solid var(--line); }
.prose h2:first-child { margin-top: 0; }
.prose p, .prose li { color: var(--body); }
.prose strong { color: var(--text); font-weight: 600; }
.prose ul { list-style: disc; padding-left: 22px; margin: 0 0 1em; display: grid; gap: 8px; }
.prose li::marker { color: var(--accent); }
.ver { display: inline-block; margin: 0 6px 6px 0; padding: 0 8px; border-radius: 6px; font-size: 0.76rem; font-weight: 700; color: #04140d; background: var(--accent); }
.ver.old { color: var(--accent); background: transparent; box-shadow: inset 0 0 0 1px rgba(52, 211, 153, 0.5); }

/* footer */
.foot { margin-top: 120px; border-top: 1px solid var(--line); padding: 32px 0 44px; font-size: 0.92rem; color: var(--muted); }
.foot-row { display: flex; flex-wrap: wrap; align-items: center; gap: 16px 32px; }
.foot-row nav { display: flex; flex-wrap: wrap; gap: 10px 24px; flex: 1; justify-content: flex-end; }
.foot a { color: var(--muted); text-decoration: none; }
.foot a:hover { color: var(--text); }
.foot .brand { color: var(--text); font-size: 1rem; }
.copy { width: 100%; color: #5a6571; font-size: 0.85rem; }

@media (max-width: 980px) {
  .hero-grid { grid-template-columns: 1fr; }
  .hero-devices { height: calc(300px * 800 / 389 + 40px); max-width: 560px; width: 100%; margin: 0 auto; }
  .front-device { --w: 300; }
  .back-device { --w: 250; }
  .hero-devices { justify-self: center; }
  .doc.has-toc { grid-template-columns: 1fr; gap: 24px; }
  .toc { position: static; }
}
@media (max-width: 720px) {
  body { font-size: 16px; }
  .top nav > a:not(.lang) { display: none; }
  .top nav .lang { border: 0; padding: 0; }
  .feature { grid-template-columns: 1fr; padding-bottom: 48px; }
  .num { grid-row: auto; margin-bottom: 14px; }
  .feature-copy h2, .feature-copy .body, .feature-copy .ticks { grid-column: 1; }
  .cols { grid-template-columns: 1fr; gap: 20px; }
  /* one phone on small screens: the second would hang off the edge */
  .hero-devices { height: auto; }
  .back-device { display: none; }
  .front-device { --w: 270; position: relative; margin: 0 auto; }
  .compare tbody th, .paths th { width: auto; }
  .foot-row nav { justify-content: flex-start; }
}
@media (prefers-reduced-motion: reduce) { .faq summary::after { transition: none; } }

/* hero variants (previews) */
.hero-center { text-align: center; display: flex; flex-direction: column; align-items: center; }
.hero-center h1 { font-size: clamp(2.4rem, 5vw, 4.2rem); }
.hero-center .lead { margin-left: auto; margin-right: auto; }
.hero-center .stores { justify-content: center; margin-bottom: 0; }
.hero-a { padding-bottom: 0; overflow: hidden; }
.hero-stage { position: relative; display: flex; justify-content: center; height: 560px; margin-top: 64px; overflow: hidden; }
.hero-stage::after { content: ''; position: absolute; left: 0; right: 0; bottom: 0; height: 180px; background: linear-gradient(transparent, var(--bg)); }
.stage-device { --w: 360; }
.pair { display: flex; justify-content: center; gap: clamp(24px, 6vw, 88px); margin-top: 72px; }
.pair-item { margin: 0; display: flex; flex-direction: column; align-items: center; gap: 22px; }
.pair-device { --w: 300; }
.pair-item figcaption { display: inline-flex; align-items: center; gap: 8px; font-weight: 600; color: var(--text); }
.pair-item .dot { width: 8px; height: 8px; border-radius: 50%; background: var(--accent); }
.muted-item figcaption { color: var(--muted); }
@media (max-width: 720px) {
  .pair { gap: 14px; }
  .pair-device { --w: 165; }
  .stage-device { --w: 290; }
  .hero-stage { height: 440px; }
}

/* centred blocks: the FAQ on the home page, the support page */
#faq > h2 { text-align: center; margin-left: auto; margin-right: auto; }
#faq .faq { margin: 0 auto; }
.doc-head.center { text-align: center; }
.doc-head.center h1, .doc-head.center .lead { margin-left: auto; margin-right: auto; }
.doc.center .prose { margin: 0 auto; text-align: center; }
.doc.center .prose h2 { margin-left: auto; margin-right: auto; }
.paths-list { margin: 8px 0 8px; }
.path-item { padding: 18px 0 6px; border-top: 1px solid var(--line); }
.path-item h3 { margin-bottom: 10px; }
.path-item p { margin-bottom: 8px; }
.doc.center .prose ul { list-style: none; padding-left: 0; }


/* product rows: copy beside a phone, sides alternate */
.feature.has-visual { grid-template-columns: minmax(0, 1fr) auto; column-gap: clamp(32px, 6vw, 96px); align-items: center; padding-top: 72px; padding-bottom: 72px; }
.feature.has-visual .feature-copy { display: block; grid-column: 1; grid-row: 1; }
.feature.has-visual .num { margin: 0 0 18px; }
.feature.has-visual .feature-copy h2 { max-width: 16ch; }
.feature-visual { grid-column: 2; grid-row: 1; }
.feature.flip { grid-template-columns: auto minmax(0, 1fr); }
.feature.flip .feature-copy { grid-column: 2; }
.feature.flip .feature-visual { grid-column: 1; }
.call-device { --w: 270; }

/* "moved to Junk" note on the clean inbox */
.moved { position: absolute; left: 24px; right: 24px; bottom: 120px; display: flex; flex-direction: column; align-items: center; gap: 14px; padding: 26px 20px; border-radius: 26px; text-align: center; background: rgba(52, 211, 153, 0.1); border: 1px solid rgba(52, 211, 153, 0.35); }
.moved img { width: 54px; height: 54px; border-radius: 13px; }
.moved span { font-size: 19px; font-weight: 600; line-height: 1.3; color: #d9fbe9; }

/* 4. the icon's glow carries down the page */
.privacy, .end { position: relative; isolation: isolate; }
.privacy::before, .end::before { content: ''; position: absolute; z-index: -1; left: 50%; transform: translateX(-50%); width: min(1100px, 100vw); pointer-events: none; }
.privacy::before { top: -40px; height: 620px; background: radial-gradient(50% 50% at 50% 40%, rgba(29, 74, 94, 0.55), transparent 75%); }
.end::before { top: 0; height: 560px; background: radial-gradient(45% 55% at 50% 45%, rgba(29, 74, 94, 0.6), transparent 75%), radial-gradient(25% 30% at 50% 30%, rgba(52, 211, 153, 0.12), transparent 70%); }
#compare, #faq { position: relative; }

/* 5. one alignment: centred blocks (hero, privacy, comparison, questions, end), product rows left/right */
.privacy { text-align: center; }
.privacy h2, .privacy > .body { margin-left: auto; margin-right: auto; }
.privacy .cols { text-align: center; }
#compare > h2 { text-align: center; margin-left: auto; margin-right: auto; }
#compare .table-wrap { max-width: 900px; margin: 0 auto; }

@media (max-width: 980px) {
  .feature.has-visual, .feature.flip { grid-template-columns: 1fr; }
  .feature.has-visual .feature-copy, .feature.flip .feature-copy { grid-column: 1; grid-row: 1; }
  .feature-visual, .feature.flip .feature-visual { grid-column: 1; grid-row: 2; justify-self: center; margin-top: 40px; }
}

/* real app screenshots inside the phone frame */
.shot { display: block; width: 100%; height: 100%; object-fit: cover; object-position: top; }
.shots { text-align: center; }
.shots > h2, .shots > .body { margin-left: auto; margin-right: auto; }
.shots-row { display: flex; justify-content: center; align-items: flex-start; gap: clamp(20px, 4vw, 56px); margin-top: 56px; }
.shots-row figure { margin: 0; display: flex; flex-direction: column; align-items: center; gap: 22px; }
.shots-row figcaption { max-width: 22ch; font-weight: 600; color: var(--text); }
.shots-row figure:nth-child(2) { margin-top: 48px; }
.shot-device { --w: 280; }
@media (max-width: 900px) {
  .shots-row { flex-direction: column; align-items: center; }
  .shots-row figure:nth-child(2) { margin-top: 0; }
}

/* language switcher (no JavaScript: a <details> menu) */
.langs { position: relative; padding-left: 26px; border-left: 1px solid var(--line); }
.langs summary { list-style: none; cursor: pointer; color: var(--text); display: inline-flex; align-items: center; gap: 6px; }
.langs summary::-webkit-details-marker { display: none; }
.langs summary::after { content: ''; width: 6px; height: 6px; border-right: 1.5px solid currentColor; border-bottom: 1.5px solid currentColor; transform: rotate(45deg) translateY(-2px); }
.langs ul { position: absolute; right: 0; top: calc(100% + 14px); z-index: 20; margin: 0; padding: 8px; list-style: none; min-width: 170px; background: #0e1b2b; border: 1px solid var(--line); border-radius: 14px; box-shadow: 0 24px 60px rgba(0, 0, 0, 0.55); }
.langs li a { display: block; padding: 9px 12px; border-radius: 9px; color: var(--muted); white-space: nowrap; }
.langs li a:hover, .langs li a[aria-current='true'] { color: var(--text); background: rgba(255, 255, 255, 0.06); }
@media (max-width: 720px) { .langs { border: 0; padding: 0; } }
