/* Newsmoth site. System fonts only; no external requests. */
:root {
  color-scheme: light dark;
  --paper: #f1eff6;
  --surface: #ffffff;
  --ink: #211c33;
  --muted: #575069;
  --line: #d9d4e5;
  --violet: #4b2fa6;
  --violet-ink: #ffffff;
  --lamp: #f2a93b;
  --night: #1b1736;
  --night-ink: #f3f0fb;
  --night-muted: #c3bcdc;
  --ok: #1f7a43;
  --warn: #9a5b00;
  --radius-l: 18px;
  --radius-s: 8px;
  --focus: #4b2fa6;
  --button-hover: #e89a26;
  --section-gap: 88px;
  --display: system-ui, -apple-system, "Segoe UI", Roboto, "Helvetica Neue", Arial, sans-serif;
  --body: system-ui, -apple-system, "Segoe UI", Roboto, "Helvetica Neue", Arial, sans-serif;
}
@media (prefers-color-scheme: dark) {
  :root {
    --paper: #0d0b19;
    --surface: #191530;
    --ink: #eeeaf8;
    --muted: #b0a9c8;
    --line: #36315c;
    --violet: #b9a6ff;
    --violet-ink: #15122a;
    --lamp: #ffbf5a;
    --night: #1d1840;
    --focus: var(--lamp);
    --button-hover: #ffd08a;
    --ok: #5fd08a;
    --warn: #ffb44d;
  }
}

*, *::before, *::after { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; }
body {
  margin: 0;
  background: var(--paper);
  color: var(--ink);
  font: 17px/1.55 var(--body);
}
img, svg { display: block; max-width: 100%; }
a { color: var(--violet); text-underline-offset: 0.18em; }
a:hover { text-decoration-thickness: 2px; }
:focus-visible { outline: 3px solid var(--focus); outline-offset: 3px; border-radius: 4px; }
.site-head :focus-visible, .hero :focus-visible, .price-card:not(.free) :focus-visible { outline-color: var(--lamp); }
main:focus { outline: none; }
.sprite { position: absolute; }
.vh { position: absolute; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); clip-path: inset(50%); white-space: nowrap; }

.skip {
  position: absolute; left: 16px; top: -60px;
  background: var(--surface); color: var(--ink); padding: 8px 14px; border-radius: var(--radius-s); z-index: 10;
}
.skip:focus { top: 12px; }

.wrap { width: min(1120px, 100% - 32px); margin-inline: auto; }
.narrow { width: min(720px, 100% - 32px); margin-inline: auto; }

h1, h2, h3 { font-family: var(--display); line-height: 1.12; letter-spacing: -0.02em; margin: 0 0 0.5em; }
h1 { font-size: clamp(2.4rem, 6vw, 4.25rem); font-weight: 750; }
h2 { font-size: clamp(1.75rem, 3.6vw, 2.5rem); font-weight: 750; }
h3 { font-size: 1.15rem; font-weight: 650; margin-bottom: 0.35em; }
p { margin: 0 0 1em; max-width: 66ch; }

/* Header */
.site-head { background: var(--night); color: var(--night-ink); }
.site-head .wrap { display: flex; align-items: center; justify-content: space-between; gap: 16px; padding-block: 18px; flex-wrap: wrap; }
.brand { display: inline-flex; align-items: center; gap: 10px; color: inherit; text-decoration: none; font: 700 1.25rem/1 var(--display); }
.brand svg { width: 34px; height: 34px; }
.site-head nav ul { list-style: none; display: flex; gap: 22px; margin: 0; padding: 0; }
.site-head nav a { color: var(--night-muted); text-decoration: none; font-size: 0.95rem; display: inline-block; padding-block: 6px; }
.site-head nav a:hover { color: var(--night-ink); }

/* Hero: the one bold moment. A night sky, one lamp, one moth. */
.hero {
  background:
    radial-gradient(520px 420px at 76% 42%, rgba(255, 191, 90, 0.34), rgba(255, 191, 90, 0) 70%),
    var(--night);
  color: var(--night-ink);
  padding-block: 40px 140px;
  overflow: hidden;
}
.hero .wrap { display: grid; grid-template-columns: 1.15fr 0.85fr; align-items: center; gap: 32px; }
.hero h1 { max-width: 13ch; }
.hero .lede { color: var(--night-muted); font-size: 1.2rem; max-width: 34ch; }
.status { display: inline-block; font-weight: 600; color: var(--lamp); margin-bottom: 18px; font-size: 1rem; }
.cta-row { display: flex; flex-wrap: wrap; gap: 12px 20px; align-items: center; margin-top: 26px; }
.button {
  display: inline-block; background: var(--lamp); color: #1b1736; font-weight: 650;
  padding: 13px 22px; border-radius: 999px; text-decoration: none;
}
.button:hover { background: var(--button-hover); }
.cta-row .note { color: var(--night-muted); font-size: 0.95rem; margin: 0; }
.hero .note.sub { color: var(--night-muted); font-size: 0.95rem; margin: 18px 0 0; }
.hero-moth { justify-self: center; width: min(360px, 80%); }
.hero-moth svg { width: 100%; height: auto; filter: drop-shadow(0 10px 40px rgba(255, 191, 90, 0.25)); }
@media (prefers-reduced-motion: no-preference) {
  .hero-moth .wings { transform-origin: 50% 55%; animation: flutter 1.6s ease-in-out 0.4s 2 both; }
}
@keyframes flutter {
  0%, 100% { transform: scaleX(1); }
  30% { transform: scaleX(0.78); }
  60% { transform: scaleX(1.04); }
}

/* The app window illustration, pulled up over the hero edge */
.window-shot { margin-top: -96px; position: relative; }
.window {
  background: var(--surface); border: 1px solid var(--line); border-radius: 14px;
  box-shadow: 0 30px 60px -30px rgba(20, 14, 50, 0.45);
  overflow: hidden; display: grid; grid-template-columns: 210px 1fr; min-height: 380px;
  font-size: 13px;
}
.win-side { background: color-mix(in srgb, var(--paper) 70%, var(--surface)); border-right: 1px solid var(--line); padding: 14px 12px; }
.lights { display: flex; gap: 7px; margin-bottom: 18px; }
.lights i { width: 11px; height: 11px; border-radius: 50%; background: #ff5f57; }
.lights i:nth-child(2) { background: #febc2e; }
.lights i:nth-child(3) { background: #28c840; }
.win-side .win-h { margin: 0 0 6px; font-size: 11px; color: var(--muted); font-weight: 600; }
.win-side ul { list-style: none; margin: 0 0 16px; padding: 0; }
.win-side li { padding: 5px 8px; border-radius: 6px; color: var(--ink); white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.win-side li.on { background: var(--violet); color: var(--violet-ink); }
.win-main { padding: 18px 20px 14px; display: flex; flex-direction: column; }
.win-main .win-title { margin: 0 0 12px; font: 700 17px/1.2 var(--display); }
.cards { display: grid; grid-template-columns: repeat(auto-fill, minmax(150px, 1fr)); gap: 14px; flex: 1; }
.card { border: 1px solid var(--line); border-radius: 10px; overflow: hidden; background: var(--surface); }
.thumb { height: 92px; position: relative; }
.t1 { background: linear-gradient(180deg, #9fd0f0 0 52%, #e9d6a6 52% 66%, #5a9ec2 66%); }
.t2 { background: radial-gradient(circle at 70% 30%, #ffe3a1 0 14%, transparent 15%), linear-gradient(180deg, #f6b38a, #b56a86 60%, #3e3a6b); }
.t3 { background: linear-gradient(135deg, #d9773a 0 30%, #e9a74b 30% 55%, #8c4b2a 55% 75%, #f1c36d 75%); }
.t4 { background: linear-gradient(180deg, #cfe7d3 0 40%, #6fae7a 40% 70%, #3f7a4f 70%); }
.badge { position: absolute; left: 8px; bottom: 8px; background: rgba(30, 24, 50, 0.78); color: #fff; font-size: 10.5px; font-weight: 600; padding: 2px 8px; border-radius: 999px; }
.card-body { padding: 8px 10px 10px; }
.card-body b { display: block; font-size: 12.5px; }
.card-body small { color: var(--muted); font-size: 11px; }
.card-body .mark { display: block; margin-top: 4px; font-size: 11px; font-weight: 600; }
.mark.ok { color: var(--ok); }
.mark.warn { color: var(--warn); }
.statusbar { margin-top: 14px; border-top: 1px solid var(--line); padding-top: 9px; color: var(--muted); font-size: 11.5px; display: flex; gap: 16px; flex-wrap: wrap; }
.statusbar .dot { display: inline-block; width: 8px; height: 8px; border-radius: 50%; background: #28c840; margin-right: 6px; }
.window-shot figcaption { color: var(--muted); font-size: 0.85rem; margin-top: 10px; text-align: center; }

/* Sections */
section { padding-block: var(--section-gap) 0; }
.eyebrow { display: inline-block; font-weight: 650; font-size: 0.9rem; color: var(--violet); margin-bottom: 10px; }
.tag { display: inline-block; vertical-align: 2px; margin-left: 6px; font: 650 0.72rem/1 var(--body); letter-spacing: 0.02em; padding: 4px 8px; border-radius: 999px; background: var(--violet); color: var(--violet-ink); }
.section-intro { color: var(--muted); font-size: 1.1rem; max-width: 52ch; }

.features { list-style: none; padding: 0; margin: 40px 0 0; display: grid; grid-template-columns: repeat(3, 1fr); gap: 40px 36px; }
.features li { padding-left: 0; }
.features li.lead { background: var(--surface); border: 1px solid var(--line); border-radius: var(--radius-l); padding: 26px 24px; }
.features li.lead svg { width: 40px; height: 40px; }
.features li.lead h3 { font-size: 1.35rem; }
.features li.lead p { font-size: 1.02rem; }
.features svg { width: 30px; height: 30px; margin-bottom: 12px; color: var(--violet); }
.features p { color: var(--muted); margin: 0; font-size: 0.98rem; }
.later { margin-top: 48px; padding: 20px 22px; border-radius: var(--radius-s); border: 1px solid var(--line); background: color-mix(in srgb, var(--violet) 6%, var(--surface)); color: var(--muted); }
.later strong { color: var(--ink); }
.later p { margin: 0; max-width: none; }

/* Free vs Plus */
.table-scroll { overflow-x: auto; margin-top: 32px; border: 1px solid var(--line); border-radius: var(--radius-l); background: var(--surface); }
table { width: 100%; border-collapse: collapse; }
.table-note { color: var(--muted); font-size: 0.9rem; margin-top: 12px; }
th, td { padding: 13px 16px; text-align: left; border-bottom: 1px solid var(--line); vertical-align: top; }
tbody tr:last-child th, tbody tr:last-child td { border-bottom: 0; }
thead th { font: 650 1rem/1.2 var(--display); background: color-mix(in srgb, var(--paper) 60%, var(--surface)); }
td.c, th.c { text-align: center; width: 96px; }
tbody th { font-weight: 450; }
.yes { color: var(--ok); font-weight: 700; font-size: 1.1rem; }
.no { color: var(--muted); }

/* Pricing */
.price-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 28px; align-items: stretch; margin-top: 32px; }
.price-card {
  background: var(--night); color: var(--night-ink); border-radius: var(--radius-l); padding: 30px 30px 26px;
  background-image: radial-gradient(300px 220px at 100% 0%, rgba(255, 191, 90, 0.28), transparent 70%);
}
.price-card h3 { font-size: 1.4rem; display: flex; align-items: center; gap: 10px; }
.price-card h3 svg { width: 30px; height: 30px; }
.price { font: 700 3.2rem/1 var(--display); margin: 14px 0 4px; }
.price small { font-size: 1rem; font-weight: 500; color: var(--night-muted); }
.launch { color: var(--lamp); font-weight: 600; margin-bottom: 18px; }
.price-card ul { margin: 0; padding-left: 1.1em; color: var(--night-muted); }
.price-card li { margin-bottom: 6px; }
.price-card li::marker { color: var(--lamp); }
.price-card .fine { font-size: 0.85rem; color: var(--night-muted); margin: 16px 0 0; }
.price-card.free { background: var(--surface); background-image: none; color: var(--ink); border: 1px solid var(--line); }
.price-card.free .price small, .price-card.free ul, .price-card.free .fine { color: var(--muted); }
.price-card.free .launch { color: var(--ok); }
.price-card.free li::marker { color: var(--violet); }

/* FAQ */
.faq { max-width: 760px; margin-top: 28px; border-top: 1px solid var(--line); }
.faq details { border-bottom: 1px solid var(--line); }
.faq summary { cursor: pointer; padding: 18px 4px; font: 650 1.08rem/1.3 var(--display); list-style: none; display: flex; justify-content: space-between; gap: 16px; }
.faq summary::-webkit-details-marker { display: none; }
.faq summary::after { content: "+"; color: var(--violet); font-size: 1.4rem; line-height: 1; }
.faq details[open] summary::after { content: "\2212"; }
.faq details > div { padding: 0 4px 18px; color: var(--muted); }

/* Closing band + footer */
.closing { text-align: center; padding-block: 96px 80px; }
.closing p { margin-inline: auto; color: var(--muted); }
.closing .button { margin-top: 10px; }
.site-foot { border-top: 1px solid var(--line); padding-block: 28px 40px; color: var(--muted); font-size: 0.9rem; }
.site-foot .wrap { display: flex; justify-content: space-between; flex-wrap: wrap; gap: 12px 28px; }
.site-foot ul { list-style: none; display: flex; flex-wrap: wrap; gap: 18px; margin: 0; padding: 0; }
.site-foot a { color: var(--muted); display: inline-block; padding-block: 4px; }

/* Plain pages */
.page { padding-block: 64px 40px; }
.page h1 { font-size: clamp(2rem, 5vw, 3rem); }
.page h2 { font-size: 1.4rem; margin-top: 1.8em; }
.page p, .page li { color: var(--muted); }
.page .updated { font-size: 0.9rem; }
.lost { text-align: center; padding-block: 80px 60px; }
.lost img { width: 140px; margin: 0 auto 24px; }
.lost p { margin-inline: auto; color: var(--muted); }

@media (max-width: 900px) {
  .hero .wrap { grid-template-columns: 1fr; }
  .hero-moth { order: -1; width: 180px; justify-self: start; }
  .hero { background: radial-gradient(300px 260px at 25% 14%, rgba(255, 191, 90, 0.30), rgba(255, 191, 90, 0) 70%), var(--night); }
  .features { grid-template-columns: 1fr 1fr; }
  .features li.lead:nth-child(3) { grid-column: 1 / -1; }
  .price-grid { grid-template-columns: 1fr; }
  .window { grid-template-columns: 1fr; }
  .win-side { display: none; }
}
@media (max-width: 560px) {
  body { font-size: 16px; }
  .site-head nav ul { gap: 12px; }
  .site-head nav a { padding-inline: 4px; }
  .hero-moth { width: 112px; }
  .hero .wrap { gap: 16px; }
  .hero { background: radial-gradient(220px 200px at 18% 12%, rgba(255, 191, 90, 0.30), rgba(255, 191, 90, 0) 70%), var(--night); }
  .hero { padding-block: 24px 120px; }
  .features { grid-template-columns: 1fr; gap: 28px; }
  .features li.lead { padding: 22px 20px; }
  .cards { grid-template-columns: 1fr 1fr; gap: 10px; }
  .card:nth-child(n+3) { display: none; }
  .statusbar span:nth-child(n+2) { display: none; }
  th, td { padding: 11px 10px; }
  td.c, th.c { width: 64px; }
  .price-card { padding: 24px 20px; }
}

/* Fixes after the phone and dark-mode check */
.cards { align-content: start; }
@media (max-width: 900px) { .window { min-height: 0; } }
@media (prefers-color-scheme: dark) {
  .price-card { border: 1px solid var(--line); }
  .site-head { border-bottom: 1px solid rgba(255, 255, 255, 0.06); }
  .hero { border-bottom: 1px solid rgba(255, 255, 255, 0.06); }
}
