/* Umbra landing page. Self-hosted fonts, no third-party requests. */
@font-face { font-family: "Newsreader"; font-weight: 400 600; font-display: swap; src: url(/fonts/newsreader.woff2) format("woff2"); }
@font-face { font-family: "Newsreader"; font-style: italic; font-weight: 400 500; font-display: swap; src: url(/fonts/newsreader-italic.woff2) format("woff2"); }
@font-face { font-family: "Inter"; font-weight: 400 700; font-display: swap; src: url(/fonts/inter.woff2) format("woff2"); }

:root {
  --ink: #0A0A0B;        /* the app's own background */
  --raised: #141317;
  --line: rgba(243, 239, 231, .11);
  --bone: #F3EFE7;
  --ash: rgba(243, 239, 231, .64);
  --corona: #D6A35C;
  --flare: #F2C885;
  --serif: "Newsreader", ui-serif, Georgia, serif;
  --sans: "Inter", -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
  --wrap: 1180px;
  --gutter: clamp(20px, 4vw, 40px);
  color-scheme: dark;
}

* { box-sizing: border-box; }
html { scroll-behavior: smooth; -webkit-text-size-adjust: 100%; }
body { margin: 0; background: var(--ink); color: var(--bone); font: 400 1.0625rem/1.6 var(--sans); -webkit-font-smoothing: antialiased; overflow-x: hidden; }
img, svg { display: block; max-width: 100%; }
a { color: var(--flare); }
a:focus-visible, button:focus-visible, summary:focus-visible { outline: 2px solid var(--flare); outline-offset: 3px; border-radius: 6px; }
.wrap { width: min(var(--wrap), 100% - 2 * var(--gutter)); margin-inline: auto; }

h1, h2, h3 { font-family: var(--serif); font-weight: 500; letter-spacing: -.02em; margin: 0; text-wrap: balance; }
h1 { font-size: clamp(3rem, 6.4vw, 5.75rem); line-height: .98; letter-spacing: -.03em; }
h2 { font-size: clamp(2.25rem, 4.2vw, 3.75rem); line-height: 1.02; }
h3 { font-size: clamp(1.75rem, 2.6vw, 2.4rem); line-height: 1.08; }
p { margin: 0; color: var(--ash); text-wrap: pretty; }
.lede { font-size: clamp(1.125rem, 1.5vw, 1.3rem); line-height: 1.55; max-width: 34em; }
.section { padding-block: clamp(72px, 9vw, 128px); }
.section-head { max-width: 760px; margin-bottom: clamp(48px, 6vw, 80px); }
.section-head p { margin-top: 20px; }

/* Nav */
.nav { position: sticky; top: 0; z-index: 20; background: rgba(10, 10, 11, .78); backdrop-filter: blur(14px); -webkit-backdrop-filter: blur(14px); border-bottom: 1px solid transparent; transition: border-color .2s; }
.nav.scrolled { border-bottom-color: var(--line); }
.nav .wrap { display: flex; align-items: center; gap: 28px; height: 68px; }
.brand { display: flex; align-items: center; gap: 10px; color: var(--bone); text-decoration: none; font: 500 1.5rem/1 var(--serif); letter-spacing: -.01em; }
.brand svg { width: 30px; height: 30px; }
.nav-links { display: flex; gap: 26px; margin-left: auto; }
.nav-links a { color: var(--ash); text-decoration: none; font-size: .9375rem; }
.nav-links a:hover { color: var(--bone); }
.nav-cta { color: #15100A; background: var(--flare); text-decoration: none; font-weight: 600; font-size: .9375rem; padding: 10px 18px; border-radius: 999px; }
.nav-cta:hover { background: #F7D7A0; }

/* Store buttons */
.stores { display: flex; flex-wrap: wrap; gap: 12px; }
.store { display: inline-flex; align-items: center; gap: 12px; min-width: 184px; padding: 11px 20px 11px 16px; border-radius: 14px; background: var(--bone); color: var(--ink); text-decoration: none; transition: transform .15s, background .15s; }
.store:hover { background: #fff; transform: translateY(-1px); }
.store svg { width: 26px; height: 26px; flex: none; }
.store span { display: flex; flex-direction: column; line-height: 1.1; font-weight: 600; font-size: 1.2rem; letter-spacing: -.01em; }
.store small { font-weight: 500; font-size: .72rem; letter-spacing: 0; opacity: .7; }
.store.ghost { background: transparent; color: var(--bone); box-shadow: inset 0 0 0 1.5px rgba(243, 239, 231, .35); }
.store.ghost:hover { background: rgba(243, 239, 231, .06); }

/* Phone frame */
.phone { position: relative; width: var(--w, 300px); aspect-ratio: 660 / 1434; padding: 2.7%; border-radius: 13.5% / 6.3%; background: #050506;
  box-shadow: 0 0 0 1.5px #2D2A24, 0 0 0 4px #0D0C0B, 0 40px 90px rgba(0, 0, 0, .7); flex: none; }
.phone .screen { position: relative; width: 100%; height: 100%; border-radius: 11.5% / 5.4%; overflow: hidden; background: var(--ink); }
.phone .screen > img, .phone .screen > svg { position: absolute; inset: 0; width: 100%; height: 100%; }
.phone .island { position: absolute; left: 50%; top: 2.3%; width: 29%; height: 3.9%; transform: translateX(-50%); border-radius: 999px; background: #000; z-index: 2; }
.phone.dim .screen::after { content: ""; position: absolute; inset: 0; background: rgba(10, 10, 11, .45); }
.phone.peek { aspect-ratio: auto; height: var(--h); padding-bottom: 0; border-bottom-left-radius: 0; border-bottom-right-radius: 0;
  -webkit-mask-image: linear-gradient(#000 70%, transparent); mask-image: linear-gradient(#000 70%, transparent); }
.phone.peek .screen { border-bottom-left-radius: 0; border-bottom-right-radius: 0; height: 100%; }
.phone.peek .screen > img { height: auto; bottom: auto; }

/* Hero */
.hero { position: relative; padding-top: clamp(40px, 6vw, 80px); overflow: hidden; }
.hero .wrap { display: grid; grid-template-columns: 1.08fr .92fr; gap: clamp(32px, 5vw, 72px); align-items: center; }
.hero-copy { padding-bottom: clamp(48px, 8vw, 120px); }
.hero-copy .lede { margin-top: 28px; }
.hero-copy .stores { margin-top: 40px; }
.fine { margin-top: 22px; font-size: .9375rem; }
.qr { display: none; align-items: center; gap: 16px; margin-top: 32px; padding: 14px 18px 14px 14px; border: 1px solid var(--line); border-radius: 16px; width: fit-content; }
.qr .code { width: 76px; height: 76px; padding: 7px; background: var(--bone); border-radius: 10px; }
.qr p { font-size: .9375rem; line-height: 1.4; }
.qr strong { color: var(--bone); font-weight: 600; display: block; }
@media (hover: hover) and (min-width: 900px) { .qr { display: flex; } }

.hero-art { position: relative; height: clamp(560px, 64vw, 760px); align-self: end; }
.hero-art .eclipse { position: absolute; left: 50%; top: -14%; width: 150%; max-width: none; transform: translateX(-50%); pointer-events: none; }
.hero-art .phone { --w: min(360px, 78%); position: absolute; left: 50%; bottom: -12%; transform: translateX(-50%); }
.flare { animation: flare 1.6s .3s cubic-bezier(.2, .7, .2, 1) both; transform-origin: center; }
@keyframes flare { from { opacity: 0; transform: scale(.4); } to { opacity: 1; transform: scale(1); } }

/* Duress walkthrough: a real sequence, so it is numbered */
.story { border-top: 1px solid var(--line); }
.steps { list-style: none; margin: 0; padding: 0; display: grid; grid-template-columns: repeat(3, 1fr); gap: clamp(24px, 3vw, 48px); counter-reset: step; }
.steps li { counter-increment: step; display: flex; flex-direction: column; }
.steps .phone { --w: min(270px, 100%); margin-bottom: 36px; }
.steps h3, .steps p { position: relative; }
.steps h3 { font-size: clamp(1.5rem, 2vw, 1.9rem); display: flex; gap: 14px; align-items: baseline; }
.steps h3::before { content: counter(step); font: 500 1rem/1 var(--sans); color: var(--flare); flex: none; width: 1.9rem; height: 1.9rem; display: grid; place-items: center; border: 1px solid rgba(242, 200, 133, .45); border-radius: 50%; transform: translateY(-.2em); }
.steps p { margin-top: 12px; padding-left: calc(1.9rem + 14px); }
.story-note { margin-top: clamp(48px, 6vw, 72px); padding-top: 28px; border-top: 1px solid var(--line); max-width: 760px; }

/* Feature rows */
.feature { display: grid; grid-template-columns: 1fr 1fr; gap: clamp(40px, 6vw, 96px); align-items: center; padding-block: clamp(44px, 5.5vw, 76px); border-top: 1px solid var(--line); }
.feature:nth-child(even) .feature-art { order: -1; }
.feature-copy p { margin-top: 20px; max-width: 30em; }
.feature-art { display: flex; justify-content: center; align-items: flex-end; min-height: 420px; position: relative; }
.fan .phone { --w: min(250px, 42%); }
.fan .phone:nth-child(1) { transform: rotate(-9deg) translate(28%, 6%); }
.fan .phone:nth-child(3) { transform: rotate(9deg) translate(-28%, 6%); }
.fan .phone:nth-child(2) { z-index: 2; --w: min(280px, 46%); }
.split-line { position: absolute; top: 0; bottom: 0; left: 50%; width: 2px; margin-left: -1px; background: var(--flare); box-shadow: 0 0 18px rgba(242, 200, 133, .8); z-index: 3; }
.split-tags { position: absolute; top: -18px; left: 0; right: 0; display: flex; justify-content: space-around; z-index: 4; }
.tag { font-size: .8125rem; font-weight: 600; padding: 8px 14px; border-radius: 999px; background: #1E1D22; color: var(--bone); box-shadow: inset 0 0 0 1px var(--line); white-space: nowrap; }
.tag.lit { background: var(--flare); color: #15100A; box-shadow: none; }

.also { margin-top: clamp(56px, 7vw, 96px); padding-top: clamp(40px, 5vw, 64px); border-top: 1px solid var(--line); }
.also h3 { margin-bottom: 36px; }
.also dl { display: grid; grid-template-columns: repeat(2, 1fr); gap: 28px clamp(32px, 5vw, 80px); margin: 0; }
.also dt { font-weight: 600; color: var(--bone); }
.also dd { margin: 4px 0 0; color: var(--ash); }
.pro { font-size: .75rem; font-weight: 700; color: #15100A; background: var(--corona); border-radius: 6px; padding: 2px 6px; margin-left: 6px; vertical-align: 2px; }

/* Security */
.security { background: linear-gradient(#0A0A0B, #100F0D 40%, #0A0A0B); border-block: 1px solid var(--line); }
.specs { margin: 0; display: grid; grid-template-columns: 1fr; }
.specs > div { display: grid; grid-template-columns: minmax(180px, .7fr) 1.3fr; gap: 12px 40px; padding: 26px 0; border-top: 1px solid var(--line); }
.specs > div:last-child { border-bottom: 1px solid var(--line); }
.specs dt { font-family: var(--serif); font-size: 1.5rem; line-height: 1.2; color: var(--bone); }
.specs dd { margin: 0; color: var(--ash); }
.specs dd strong { color: var(--bone); font-weight: 600; }

/* Compare */
.table-wrap { overflow-x: auto; -webkit-overflow-scrolling: touch; margin-inline: calc(-1 * var(--gutter)); padding-inline: var(--gutter); }
table { width: 100%; min-width: 620px; border-collapse: collapse; font-size: 1rem; }
th, td { text-align: left; padding: 18px 20px; border-bottom: 1px solid var(--line); vertical-align: top; }
thead th { font: 500 1.35rem/1.2 var(--serif); color: var(--bone); padding-top: 0; }
tbody th { font-weight: 500; color: var(--ash); width: 38%; padding-left: 0; }
td { color: var(--ash); }
td.us { color: var(--bone); background: rgba(214, 163, 92, .07); }
thead th { padding-top: 18px; }
thead th.us { background: rgba(214, 163, 92, .07); border-radius: 14px 14px 0 0; }
.yes::before, .no::before { content: ""; display: inline-block; width: 8px; height: 8px; border-radius: 50%; margin-right: 10px; vertical-align: 2px; }
.yes::before { background: var(--flare); }
.no::before { background: rgba(243, 239, 231, .25); }
.compare-note { margin-top: 32px; max-width: 760px; }
.mid-cta { margin-top: 40px; }
.zoom { position: absolute; z-index: 3; left: 50%; bottom: 22%; width: min(420px, 92%); aspect-ratio: 600 / 140; transform: translateX(-50%); border-radius: 22px;
  background: url(/img/breakin.webp) no-repeat; background-size: 110% auto; background-position: 50% 21.3%;
  box-shadow: 0 0 0 1px rgba(242, 200, 133, .35), 0 30px 80px rgba(0, 0, 0, .85), 0 0 80px rgba(214, 163, 92, .16); }

/* Pricing */
.plans { display: grid; grid-template-columns: 1fr 1fr; gap: 20px; }
.plan { border: 1px solid var(--line); border-radius: 24px; padding: clamp(28px, 4vw, 44px); }
.plan.pro-plan { background: radial-gradient(120% 90% at 100% 0%, rgba(214, 163, 92, .16), rgba(214, 163, 92, 0) 60%), var(--raised); border-color: rgba(242, 200, 133, .3); }
.plan h3 { font-size: 2rem; }
.price { margin-top: 10px; color: var(--bone); font-size: 1.05rem; }
.price b { font: 500 2.6rem/1 var(--serif); letter-spacing: -.02em; margin-right: 6px; }
.plan ul { list-style: none; margin: 28px 0 0; padding: 0; display: grid; gap: 12px; }
.plan li { padding-left: 26px; position: relative; color: var(--ash); }
.plan li::before { content: ""; position: absolute; left: 2px; top: .62em; width: 9px; height: 9px; border-radius: 50%; box-shadow: inset 0 0 0 1.5px var(--flare); }
.plan li strong { color: var(--bone); font-weight: 600; }
.plans-note { margin-top: 20px; font-size: .9375rem; }

/* FAQ */
.faq { max-width: 860px; }
.faq details { border-top: 1px solid var(--line); }
.faq details:last-child { border-bottom: 1px solid var(--line); }
.faq summary { list-style: none; cursor: pointer; display: flex; justify-content: space-between; gap: 24px; padding: 24px 0; font: 500 1.4rem/1.25 var(--serif); color: var(--bone); }
.faq summary::-webkit-details-marker { display: none; }
.faq summary::after { content: ""; flex: none; width: 12px; height: 12px; margin-top: .45em; border-right: 1.5px solid var(--ash); border-bottom: 1.5px solid var(--ash); transform: rotate(45deg); transition: transform .2s; }
.faq details[open] summary::after { transform: rotate(225deg); }
.faq details p { padding-bottom: 26px; max-width: 44em; }

/* Closing CTA */
.closing { text-align: center; position: relative; overflow: hidden; }
.closing .eclipse { width: min(560px, 90vw); margin: 0 auto 8px; opacity: .9; }
.closing h2 { position: relative; }
.closing h2 { max-width: 14em; margin-inline: auto; }
.closing p { margin: 20px auto 0; max-width: 32em; }
.closing .stores { justify-content: center; margin-top: 40px; }

/* Footer */
footer { border-top: 1px solid var(--line); padding-block: 48px 64px; font-size: .9375rem; }
footer .wrap { display: grid; grid-template-columns: 1fr auto; gap: 28px 40px; align-items: start; }
footer nav { display: flex; flex-wrap: wrap; gap: 10px 26px; }
footer nav a { color: var(--ash); text-decoration: none; }
footer nav a:hover { color: var(--bone); }
footer p { grid-column: 1 / -1; font-size: .875rem; }

/* Guides and comparisons (rendered by tools/build.mjs) */
.article { padding-block: clamp(28px, 4vw, 48px) clamp(72px, 9vw, 120px); }
.article .wrap { max-width: 760px; }
.article.hub .wrap { max-width: var(--wrap); }
.hub .cta-box { max-width: 760px; }
.crumbs ol { list-style: none; margin: 0 0 clamp(28px, 4vw, 44px); padding: 0; display: flex; flex-wrap: wrap; gap: 6px 10px; font-size: .875rem; color: var(--ash); }
.crumbs li + li::before { content: "/"; margin-right: 10px; opacity: .5; }
.crumbs a { color: var(--ash); text-decoration: none; }
.crumbs a:hover { color: var(--bone); }
.article-head h1 { font-size: clamp(2.5rem, 5.2vw, 4.25rem); line-height: 1.02; }
.article-head .lede { margin-top: 24px; }
.byline { margin-top: 20px; font-size: .875rem; }
.toc { margin-top: 40px; padding: 22px 26px; border: 1px solid var(--line); border-radius: 18px; background: var(--raised); }
.toc p { font-weight: 600; color: var(--bone); font-size: .9375rem; }
.toc ol { margin: 10px 0 0; padding-left: 1.2em; display: grid; gap: 6px; font-size: .9375rem; color: var(--ash); }
.toc a { color: var(--ash); text-decoration: none; }
.toc a:hover { color: var(--flare); }
.prose { margin-top: clamp(36px, 5vw, 56px); }
.prose > * + * { margin-top: 20px; }
.prose h2 { font-size: clamp(1.9rem, 3vw, 2.5rem); line-height: 1.1; margin-top: clamp(48px, 6vw, 72px); scroll-margin-top: 90px; }
.prose h3 { font-size: clamp(1.35rem, 2vw, 1.6rem); line-height: 1.2; margin-top: 36px; scroll-margin-top: 90px; }
.prose h2 + *, .prose h3 + * { margin-top: 16px; }
.prose p, .prose li { color: var(--ash); }
.prose strong { color: var(--bone); font-weight: 600; }
.prose a { text-underline-offset: 3px; text-decoration-thickness: 1px; }
.prose ul, .prose ol { padding-left: 1.3em; display: grid; gap: 10px; }
.prose li::marker { color: var(--corona); }
.prose ol.howto { list-style: none; padding: 0; counter-reset: howto; gap: 14px; }
.prose ol.howto li { counter-increment: howto; position: relative; padding-left: 44px; }
.prose ol.howto li::before { content: counter(howto); position: absolute; left: 0; top: .1em; width: 28px; height: 28px; display: grid; place-items: center; border: 1px solid rgba(242, 200, 133, .45); border-radius: 50%; color: var(--flare); font-size: .875rem; font-weight: 500; }
.prose code { font-size: .9em; background: var(--raised); border: 1px solid var(--line); border-radius: 6px; padding: 1px 6px; color: var(--bone); }
.prose .note { border-left: 2px solid var(--corona); padding: 4px 0 4px 20px; }
.prose .note p { color: var(--bone); }
.prose .table-wrap { margin-top: 28px; }
.prose table { min-width: 560px; font-size: .9375rem; }
.prose th, .prose td { padding: 14px 16px; }
.prose thead th { font-size: 1.15rem; }
.prose tbody th { width: 30%; }
.prose .faq { margin-top: 12px; }
.prose .faq summary { font-size: 1.25rem; padding: 20px 0; }
.prose .faq details > p { padding-bottom: 22px; }
.prose .faq details > * + * { margin-top: 12px; }
.cta-box { margin-top: clamp(48px, 6vw, 72px); padding: clamp(28px, 4vw, 40px); border-radius: 24px; border: 1px solid rgba(242, 200, 133, .3);
  background: radial-gradient(120% 90% at 100% 0%, rgba(214, 163, 92, .16), rgba(214, 163, 92, 0) 60%), var(--raised); }
.prose .cta-box h2 { margin-top: 0; font-size: clamp(1.75rem, 2.6vw, 2.2rem); }
.cta-box p { margin-top: 12px; }
.cta-box .stores { margin-top: 24px; }
.sources { font-size: .875rem; padding-top: 24px; border-top: 1px solid var(--line); }
.related { margin-top: clamp(56px, 7vw, 88px); }
.related h2 { font-size: clamp(1.75rem, 2.6vw, 2.2rem); margin-bottom: 24px; }
.cards { display: grid; grid-template-columns: repeat(auto-fill, minmax(min(100%, 320px), 1fr)); gap: 16px; }
.hub .cards { margin-top: clamp(40px, 5vw, 64px); }
.card { display: flex; flex-direction: column; gap: 8px; padding: 24px; border: 1px solid var(--line); border-radius: 18px; text-decoration: none; transition: border-color .15s, background .15s; }
.card:hover { border-color: rgba(242, 200, 133, .4); background: rgba(214, 163, 92, .05); }
.card strong { font: 500 1.35rem/1.2 var(--serif); color: var(--bone); letter-spacing: -.01em; }
.card span:last-child { color: var(--ash); font-size: .9375rem; line-height: 1.5; }
.hub-more { margin-top: 40px; }
@media (max-width: 520px) { .toc { padding: 18px 20px; } .prose ol.howto li { padding-left: 40px; } }

@media (max-width: 960px) {
  .nav-links { display: none; }
  .nav-cta { margin-left: auto; }
  .hero .wrap { grid-template-columns: 1fr; }
  .hero-copy { padding-bottom: 0; }
  .hero-art { height: 560px; }
  .hero-art .phone { --w: 300px; bottom: -14%; }
  .feature { grid-template-columns: 1fr; }
  .feature:nth-child(even) .feature-art { order: 0; }
  .feature-art { min-height: 0; }
  .steps { grid-template-columns: 1fr; gap: 64px; }
  .steps li { align-items: center; text-align: left; }
  .steps .phone { --w: min(250px, 70vw); }
  .steps h3, .steps p { width: 100%; max-width: 30em; }
  .specs > div { grid-template-columns: 1fr; }
  .plans { grid-template-columns: 1fr; }
  .also dl { grid-template-columns: 1fr; }
  footer .wrap { grid-template-columns: 1fr; }
}
@media (max-width: 520px) {
  .store { flex: 1 1 100%; justify-content: center; }
  .hero-art { height: 470px; }
  .hero-art .phone { --w: 250px; }
  .fan .phone { --w: 38%; }
  .fan .phone:nth-child(2) { --w: 44%; }
  .faq summary { font-size: 1.2rem; }
}
@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  .flare { animation: none; }
  .store:hover { transform: none; }
}
