/* Redmark website. Colours match the app (redmark/theme.py): neutral charcoal, white for emphasis,
   red only as an accent (the logo's blade). No web fonts or third-party files, so the site makes no
   requests anywhere else. */
:root {
  --bg: #161616;          /* theme.PHOTO */
  --bg-2: #1b1b1b;        /* theme.PANEL */
  --raise: #1f1f1f;       /* theme.WINDOW */
  --surface: #2a2a2a;     /* theme.SURFACE */
  --surface-hover: #333333;
  --border: #383838;      /* theme.BORDER */
  --hair: #262626;
  --text: #ececec;        /* theme.TEXT */
  --muted: #a3a3a3;       /* theme.TEXT_MUTED */
  --white: #f2f2f2;       /* theme.ACCENT */
  --red: #e5484d;         /* theme.REJECT, close to the logo's #E0232A */
  --star: #f5c542;        /* theme.STAR */
  --radius: 10px;
  --wrap: 1120px;
  --font: "Segoe UI Variable Text", "Segoe UI", system-ui, -apple-system, "Helvetica Neue", Arial, sans-serif;
  --font-display: "Segoe UI Variable Display", "Segoe UI", system-ui, -apple-system, "Helvetica Neue", Arial, sans-serif;
  color-scheme: dark;
}
*, *::before, *::after { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; text-size-adjust: 100%; }
body {
  margin: 0; background: var(--bg); color: var(--text); font: 17px/1.6 var(--font);
  -webkit-font-smoothing: antialiased; overflow-x: hidden;
}
img, svg { max-width: 100%; height: auto; }
picture { display: block; max-width: 100%; }
a { color: var(--white); text-decoration-color: #6a6a6a; text-underline-offset: 3px; }
a:hover { text-decoration-color: var(--red); }
:focus-visible { outline: 2px solid var(--white); outline-offset: 3px; border-radius: 4px; }
h1, h2, h3 { font-family: var(--font-display); line-height: 1.15; letter-spacing: -0.01em; margin: 0 0 .5em; }
h1 { font-size: clamp(2.2rem, 6vw, 3.6rem); font-weight: 700; letter-spacing: -0.025em; }
h2 { font-size: clamp(1.5rem, 3.6vw, 2.1rem); font-weight: 650; }
h3 { font-size: 1.15rem; font-weight: 600; }
p { margin: 0 0 1em; }
.muted { color: var(--muted); }
.wrap { max-width: var(--wrap); margin: 0 auto; padding: 0 20px; }
.narrow { max-width: 760px; }
.skip { position: absolute; left: 12px; top: -60px; background: var(--white); color: #111; padding: 8px 14px;
  border-radius: 6px; z-index: 10; font-weight: 600; text-decoration: none; }
.skip:focus { top: 12px; }

/* ---------------------------------------------------------------- header */
.top { position: sticky; top: 0; z-index: 5; background: rgba(22, 22, 22, .92); border-bottom: 1px solid var(--hair);
  backdrop-filter: saturate(140%) blur(10px); -webkit-backdrop-filter: saturate(140%) blur(10px); }
.top-row { display: flex; align-items: center; gap: 16px; min-height: 60px; }
.brand { display: inline-flex; align-items: center; gap: 10px; color: var(--text); text-decoration: none;
  font-weight: 650; font-size: 1.1rem; letter-spacing: -0.01em; }
.brand img { display: block; }
.brand-small { font-size: 1rem; }
.nav { margin-left: auto; }
.nav ul { display: flex; gap: 4px; list-style: none; margin: 0; padding: 0; }
.nav a { display: block; padding: 7px 13px; border-radius: 999px; color: #cfcfcf; text-decoration: none; font-size: .95rem; }
.nav a:hover { background: #2e2e2e; color: #fff; }
.nav a[aria-current="page"] { background: var(--surface); color: #fff; }
.menu-btn { display: none; margin-left: auto; background: var(--surface); color: var(--text); border: 1px solid var(--border);
  border-radius: 999px; padding: 7px 16px; font: inherit; font-size: .95rem; cursor: pointer; min-height: 40px; }
@media (max-width: 760px) {
  .js .menu-btn { display: block; }
  .js .nav { display: none; position: absolute; left: 0; right: 0; top: 60px; background: var(--raise);
    border-bottom: 1px solid var(--border); padding: 8px 12px 14px; }
  .js .nav.open { display: block; }
  .js .nav ul { flex-direction: column; }
  .js .nav a { padding: 12px 14px; border-radius: 8px; font-size: 1.05rem; }
  html:not(.js) .nav ul { flex-wrap: wrap; }
}

/* ---------------------------------------------------------------- buttons */
.btn { display: inline-flex; align-items: center; justify-content: center; gap: 8px; min-height: 46px; padding: 10px 22px;
  border-radius: 999px; font: inherit; font-weight: 600; font-size: 1rem; text-decoration: none; cursor: pointer;
  border: 1px solid var(--border); background: var(--surface); color: var(--text); }
.btn:hover { background: var(--surface-hover); }
.btn-primary { background: var(--white); color: #121212; border-color: var(--white); }
.btn-primary:hover { background: #fff; }
.btn[aria-disabled="true"] { opacity: .55; pointer-events: none; }
.btn-row { display: flex; flex-wrap: wrap; gap: 12px; align-items: center; }

/* ---------------------------------------------------------------- sections */
.section { padding: 72px 0; border-top: 1px solid var(--hair); }
.section:first-child { border-top: 0; }
.page-head { padding: 64px 0 24px; }
.page-head p { font-size: 1.15rem; color: var(--muted); max-width: 680px; }
.eyebrow { display: inline-flex; align-items: center; gap: 8px; color: var(--muted); font-size: .85rem; font-weight: 600;
  letter-spacing: .08em; text-transform: uppercase; margin-bottom: 14px; }
.eyebrow::before { content: ""; width: 8px; height: 8px; border-radius: 2px; background: var(--red); }

.hero { padding: 72px 0 40px; }
.hero h1 { max-width: 14ch; }
.hero .lead { font-size: clamp(1.1rem, 2.4vw, 1.3rem); color: #cfcfcf; max-width: 600px; margin-bottom: 28px; }
.hero .fine { margin-top: 14px; font-size: .95rem; }
.red-dot { color: var(--red); }

/* screenshots and photos (made by tools/web_images.py, placed with {{img:...}} in pages) */
.shot { margin: 0; }
.shot img { display: block; width: 100%; height: auto; border-radius: var(--radius); border: 1px solid var(--hair);
  background: var(--bg-2); box-shadow: 0 18px 50px rgba(0, 0, 0, .45); }
.shot figcaption { margin-top: 10px; font-size: .9rem; color: var(--muted); }
.shots-2 { align-items: start; }
.band { margin: 72px 0 0; }
.band img { display: block; width: 100%; height: clamp(240px, 48vw, 640px); object-fit: cover; }
.band figcaption { margin-top: 10px; font-size: .9rem; color: var(--muted); }

/* placeholders where photos and screenshots will go */
.ph { margin: 0; border: 1px dashed #4a4a4a; border-radius: var(--radius); background:
  repeating-linear-gradient(135deg, #1c1c1c 0 14px, #1a1a1a 14px 28px); display: grid; place-items: center;
  text-align: center; padding: 28px 20px; color: var(--muted); aspect-ratio: 16 / 9; }
.ph strong { display: block; color: var(--text); font-size: .8rem; letter-spacing: .08em; text-transform: uppercase; margin-bottom: 6px; }
.ph span { display: block; max-width: 46ch; font-size: .95rem; line-height: 1.5; }
.ph.tall { aspect-ratio: 4 / 3; }
.hero-shot { margin-top: 48px; }

.grid-2 { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 48px; align-items: center; }
.grid-3 { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 20px; }
@media (max-width: 860px) { .grid-2 { grid-template-columns: 1fr; gap: 28px; } .grid-3 { grid-template-columns: 1fr; } }
.flip > :first-child { order: 2; }
@media (max-width: 860px) { .flip > :first-child { order: 0; } }

.card { background: var(--bg-2); border: 1px solid var(--hair); border-radius: var(--radius); padding: 24px; }
.card h3 { margin-bottom: .4em; }
.card p:last-child { margin-bottom: 0; }
.ticks { list-style: none; padding: 0; margin: 0 0 1em; }
.ticks li { position: relative; padding-left: 26px; margin-bottom: .55em; }
.ticks li::before { content: ""; position: absolute; left: 2px; top: .62em; width: 10px; height: 6px;
  border-left: 2px solid var(--white); border-bottom: 2px solid var(--white); transform: rotate(-45deg); }
.points { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 20px; margin: 0; padding: 0; list-style: none; }
.points li { border-top: 1px solid var(--border); padding-top: 14px; }
.points b { display: block; font-size: 1.05rem; margin-bottom: 4px; }
.points span { color: var(--muted); font-size: .95rem; }
@media (max-width: 860px) { .points { grid-template-columns: repeat(2, minmax(0, 1fr)); } }
@media (max-width: 480px) { .points { grid-template-columns: 1fr; } }
.chips { display: flex; flex-wrap: wrap; gap: 8px; list-style: none; padding: 0; margin: 0; }
.chips li { border: 1px solid var(--border); border-radius: 999px; padding: 5px 13px; font-size: .92rem; color: #d6d6d6; }
kbd { font: 600 .85em var(--font); background: var(--surface); border: 1px solid var(--border); border-bottom-width: 2px;
  border-radius: 5px; padding: 1px 7px; color: var(--text); white-space: nowrap; }

/* ---------------------------------------------------------------- pricing */
.prices { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 20px; max-width: 900px; }
@media (max-width: 760px) { .prices { grid-template-columns: 1fr; } }
.price { background: var(--bg-2); border: 1px solid var(--border); border-radius: 14px; padding: 28px; display: flex; flex-direction: column; }
.price.featured { border-color: #d0d0d0; }
.price .tag { align-self: flex-start; font-size: .8rem; font-weight: 700; letter-spacing: .06em; text-transform: uppercase;
  border-radius: 999px; padding: 3px 10px; margin-bottom: 14px; border: 1px solid var(--border); color: #d6d6d6; }
.price.featured .tag { background: var(--white); color: #121212; border-color: var(--white); }
.price .amount { font: 700 3rem/1 var(--font-display); letter-spacing: -0.03em; margin: 4px 0 6px; }
.price .amount small { font-size: 1rem; font-weight: 500; color: var(--muted); letter-spacing: 0; }
.price .ticks { flex: 1; margin-top: 14px; }
.price .btn { width: 100%; }
.left-count { min-height: 1.6em; color: var(--text); font-weight: 600; }
.left-count .bar { display: block; height: 6px; background: var(--surface); border-radius: 3px; margin-top: 8px; overflow: hidden; }
.left-count .bar i { display: block; height: 100%; background: var(--red); border-radius: 3px; }

/* ---------------------------------------------------------------- forms */
.signup { background: var(--bg-2); border: 1px solid var(--border); border-radius: 14px; padding: 28px; max-width: 640px; }
.signup.inline { margin-top: 8px; }
.field-row { display: flex; gap: 10px; flex-wrap: wrap; }
.field-row input[type="email"] { flex: 1 1 240px; min-height: 48px; background: #121212; color: var(--text); font: inherit;
  border: 1px solid var(--border); border-radius: 999px; padding: 10px 18px; }
.field-row input[type="email"]:focus-visible { outline: 2px solid var(--white); outline-offset: 1px; }
.hp { position: absolute !important; left: -10000px; width: 1px; height: 1px; overflow: hidden; }
.form-note { font-size: .9rem; color: var(--muted); margin: 12px 0 0; }
.form-msg { margin: 14px 0 0; font-weight: 600; }
.form-msg:empty { display: none; }
.form-msg.ok { color: var(--white); }
.form-msg.err { color: #ff9a9d; }
.form-msg a { font-weight: 400; word-break: break-all; }

/* ---------------------------------------------------------------- long text (help, legal, notes) */
.prose { max-width: 760px; }
.prose h2 { margin-top: 2.2em; font-size: 1.5rem; }
.prose h3 { margin-top: 1.8em; }
.prose ul, .prose ol { padding-left: 1.3em; margin: 0 0 1em; }
.prose li { margin-bottom: .45em; }
.prose table { border-collapse: collapse; width: 100%; margin: 0 0 1.2em; font-size: .95rem; }
.prose th, .prose td { text-align: left; border-bottom: 1px solid var(--border); padding: 9px 10px 9px 0; vertical-align: top; }
.prose th { color: var(--muted); font-weight: 600; }
.table-scroll { overflow-x: auto; }
.draft { border: 1px solid #6b4a1c; background: #2a2116; color: #f3dcb5; border-radius: var(--radius); padding: 16px 18px; margin: 0 0 28px; }
.draft strong { color: #fff; }
.note { border-left: 3px solid var(--red); background: var(--bg-2); padding: 14px 18px; border-radius: 0 var(--radius) var(--radius) 0; margin: 0 0 1.4em; }
details.faq { border-bottom: 1px solid var(--border); padding: 4px 0; }
details.faq summary { cursor: pointer; padding: 14px 28px 14px 0; font-weight: 600; list-style: none; position: relative; }
details.faq summary::-webkit-details-marker { display: none; }
details.faq summary::after { content: "+"; position: absolute; right: 4px; top: 10px; font-size: 1.4rem; color: var(--muted); font-weight: 400; }
details.faq[open] summary::after { content: "−"; }
details.faq > div { padding: 0 0 14px; color: #d6d6d6; }
.toc { display: flex; flex-wrap: wrap; gap: 8px; list-style: none; padding: 0; margin: 0 0 8px; }
.toc a { display: inline-block; border: 1px solid var(--border); border-radius: 999px; padding: 6px 14px; text-decoration: none; font-size: .95rem; }
.toc a:hover { background: var(--surface); }
.release { border-top: 1px solid var(--border); padding: 28px 0; display: grid; grid-template-columns: 170px minmax(0, 1fr); gap: 24px; }
.release h2 { font-size: 1.25rem; margin: 0; }
.release .when { color: var(--muted); font-size: .95rem; }
.release ul { margin: 0; padding-left: 1.2em; }
.release li { margin-bottom: .45em; }
@media (max-width: 640px) { .release { grid-template-columns: 1fr; gap: 8px; } }

/* ---------------------------------------------------------------- footer */
.foot { border-top: 1px solid var(--hair); background: #121212; padding: 44px 0 28px; margin-top: 40px; font-size: .95rem; }
.foot-grid { display: grid; grid-template-columns: 1.2fr 2fr; gap: 32px; }
.foot-grid p { margin-top: 10px; max-width: 34ch; }
.foot-links { list-style: none; padding: 0; margin: 0; columns: 2; column-gap: 32px; }
.foot-links li { margin-bottom: 10px; break-inside: avoid; }
.foot-links a { color: #cfcfcf; text-decoration: none; }
.foot-links a:hover { color: #fff; text-decoration: underline; }
.foot-small { margin-top: 28px; font-size: .88rem; }
@media (max-width: 640px) { .foot-grid { grid-template-columns: 1fr; } }

/* hidden until the launch switch in config.js says otherwise */
.when-live { display: none; }
.live .when-live { display: revert; }
.live .when-prelaunch { display: none; }

@media (prefers-reduced-motion: no-preference) { html { scroll-behavior: smooth; } }

/* small helpers (no inline styles, so the security policy can stay strict) */
.mt-0 { margin-top: 0; } .mt-8 { margin-top: 8px; } .mt-16 { margin-top: 16px; } .mt-18 { margin-top: 18px; }
.mt-24 { margin-top: 24px; } .mt-28 { margin-top: 28px; } .mt-56 { margin-top: 56px; }
.w-900 { max-width: 900px; } .top-align { align-items: start; } .small { font-size: .9rem; } .break { word-break: break-all; }
[data-latest] { margin-top: 14px; }
code { font: .9em ui-monospace, "Cascadia Mono", Consolas, monospace; background: #222; border: 1px solid #333; border-radius: 4px; padding: 1px 5px; }
.foot-grid > * { min-width: 0; }
.foot-links a { overflow-wrap: anywhere; }
@media (max-width: 420px) { .foot-links { columns: 1; } }
.wrap.prose { max-width: var(--wrap); }
.wrap.prose > * { max-width: 760px; }
.page-head p.eyebrow { font-size: .85rem; color: var(--muted); }
.left-count:empty { display: none; }

/* thank-you page and renew form */
.key-row { display: flex; flex-wrap: wrap; align-items: center; gap: 12px; margin: 6px 0 4px; }
.key { font-size: 1.25rem; padding: 10px 14px; letter-spacing: .04em; color: #fff; user-select: all; word-break: break-all; }
.key-done { font-size: 1.15rem; font-weight: 600; }
.key-input { flex: 1 1 260px; min-height: 48px; background: #121212; color: var(--text); font: 1rem ui-monospace, "Cascadia Mono", Consolas, monospace;
  border: 1px solid var(--border); border-radius: 999px; padding: 10px 18px; text-transform: uppercase; }
.key-input::placeholder { text-transform: none; color: #777; }
[hidden] { display: none !important; }
