/* lysiasapp.com — the homepage and the support page. privacy.html carries
   its own copy of these tokens inline, because the app bundles that one
   file and shows it in a window of its own (app/build.sh). */

:root {
  --paper: #f5f0e6;
  --paper-hi: #fbf8f1;
  --paper-lo: #ede5d4;
  --card: rgba(255, 255, 255, .62);
  --ink: #15243a;
  --ink-2: #3d4a5e;
  --muted: #6c7484;
  --rule: rgba(21, 36, 58, .14);
  --accent: #c8552f;
  --accent-ink: #b0461f;
  --accent-wash: rgba(200, 85, 47, .10);
  --band: #15243a;
  --band-ink: #f1ebdf;
  --band-muted: #a9b2c2;
  --shadow: 0 30px 60px -18px rgba(21, 36, 58, .42), 0 6px 16px rgba(21, 36, 58, .16);
  --serif: ui-serif, "New York", "Iowan Old Style", Georgia, "Times New Roman", serif;
  --sans: -apple-system, BlinkMacSystemFont, "SF Pro Text", "Helvetica Neue", "Segoe UI", Arial, sans-serif;
  --mono: ui-monospace, "SF Mono", Menlo, Consolas, monospace;
  color-scheme: light;
}
@media (prefers-color-scheme: dark) {
  :root:not([data-theme="light"]) {
    --paper: #101a28; --paper-hi: #142034; --paper-lo: #0b131e;
    --card: rgba(255, 255, 255, .045);
    --ink: #efe9dd; --ink-2: #c9c4b8; --muted: #8e98a8;
    --rule: rgba(239, 233, 221, .13);
    --accent: #e4875f; --accent-ink: #f0a07c; --accent-wash: rgba(228, 135, 95, .14);
    --band: #0a121c; --band-ink: #efe9dd; --band-muted: #8e98a8;
    --shadow: 0 30px 70px -16px rgba(0, 0, 0, .7), 0 6px 18px rgba(0, 0, 0, .4);
    color-scheme: dark;
  }
}
:root[data-theme="dark"] {
  --paper: #101a28; --paper-hi: #142034; --paper-lo: #0b131e;
  --card: rgba(255, 255, 255, .045);
  --ink: #efe9dd; --ink-2: #c9c4b8; --muted: #8e98a8;
  --rule: rgba(239, 233, 221, .13);
  --accent: #e4875f; --accent-ink: #f0a07c; --accent-wash: rgba(228, 135, 95, .14);
  --band: #0a121c; --band-ink: #efe9dd; --band-muted: #8e98a8;
  --shadow: 0 30px 70px -16px rgba(0, 0, 0, .7), 0 6px 18px rgba(0, 0, 0, .4);
  color-scheme: dark;
}

*, *::before, *::after { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; scroll-behavior: smooth; }
body {
  margin: 0;
  background: var(--paper);
  color: var(--ink);
  font: 17px/1.6 var(--sans);
  -webkit-font-smoothing: antialiased;
  overflow-x: hidden;
}
img { max-width: 100%; height: auto; display: block; }
a { color: var(--accent-ink); text-underline-offset: .18em; text-decoration-thickness: 1px; }
a:hover { text-decoration-thickness: 2px; }
:focus-visible { outline: 2px solid var(--accent); outline-offset: 3px; border-radius: 4px; }
code, kbd { font-family: var(--mono); font-size: .88em; }

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

/* ---------- the strip along the top, and the header ---------- */
.rule { height: 5px; background: linear-gradient(90deg, #c8552f, #e08a55 45%, #d9a441); }
.site-head {
  position: sticky; top: 0; z-index: 10;
  background: color-mix(in srgb, var(--paper) 82%, transparent);
  -webkit-backdrop-filter: saturate(1.4) blur(14px);
  backdrop-filter: saturate(1.4) blur(14px);
  border-bottom: 1px solid transparent;
  transition: border-color .2s;
}
.site-head.scrolled { border-bottom-color: var(--rule); }
.site-head .wrap { display: flex; align-items: center; justify-content: space-between; gap: 16px; height: 64px; }
.brand { display: inline-flex; align-items: center; gap: 11px; color: var(--ink); text-decoration: none; }
.brand img { width: 32px; height: 32px; border-radius: 8px; box-shadow: 0 3px 10px rgba(21, 36, 58, .25); }
.brand span { font-family: var(--serif); font-size: 22px; letter-spacing: .01em; }
.site-nav { display: flex; align-items: center; gap: 26px; font-size: 15px; }
.site-nav a { color: var(--ink-2); text-decoration: none; }
.site-nav a:hover { color: var(--ink); }
.site-nav a[aria-current="page"] { color: var(--ink); font-weight: 600; }
.site-nav a.btn-store, .site-nav a.btn-store:hover { color: var(--paper); }
@media (max-width: 720px) {
  .site-nav .opt { display: none; }
  .site-nav { gap: 16px; }
}

/* ---------- buttons ---------- */
.btn {
  display: inline-flex; align-items: center; gap: 10px;
  font: 600 16px/1 var(--sans); text-decoration: none;
  padding: 15px 24px; border-radius: 12px;
  transition: transform .15s, box-shadow .15s, background .15s;
}
.btn:hover { transform: translateY(-1px); text-decoration: none; }
.btn-store { background: var(--ink); color: var(--paper); box-shadow: 0 10px 24px -8px rgba(21, 36, 58, .55); }
.btn-store small { display: block; font-weight: 500; font-size: 11px; letter-spacing: .04em; opacity: .75; margin-bottom: 3px; }
.btn-store .lines { display: flex; flex-direction: column; align-items: flex-start; }
.btn-store svg { width: 22px; height: 22px; flex: none; }
.btn-ghost { color: var(--ink); border: 1px solid var(--rule); background: var(--card); }
.btn-small { padding: 9px 15px; font-size: 14px; border-radius: 10px; }

/* ---------- hero ---------- */
.hero { position: relative; padding: 76px 0 0; text-align: center; isolation: isolate; }
.hero::before {
  content: ""; position: absolute; inset: -80px 0 0; z-index: -1;
  background:
    radial-gradient(900px 520px at 85% 92%, rgba(200, 85, 47, .16), transparent 65%),
    radial-gradient(800px 560px at 8% 4%, rgba(21, 36, 58, .09), transparent 62%),
    linear-gradient(170deg, var(--paper-hi), var(--paper) 55%, var(--paper-lo));
}
.kicker {
  font: 600 13px/1.2 var(--sans); letter-spacing: .22em; text-transform: uppercase;
  color: var(--accent); margin: 0 0 22px;
}
.hero h1 {
  font: 500 clamp(40px, 7.2vw, 84px)/1.03 var(--serif);
  letter-spacing: -.018em; margin: 0 auto; max-width: 15em; text-wrap: balance;
}
h1 em, h2 em { font-style: italic; color: var(--accent); }
.hero .sub {
  font-size: clamp(18px, 2.1vw, 21px); line-height: 1.55; color: var(--ink-2);
  max-width: 41em; margin: 26px auto 0; text-wrap: pretty;
}
.sub code {
  color: var(--accent-ink); background: var(--accent-wash);
  padding: 2px 8px; border-radius: 7px; white-space: nowrap;
}
.sub i { font-family: var(--serif); color: var(--ink); }
.cta { display: flex; flex-wrap: wrap; justify-content: center; gap: 14px; margin-top: 34px; }
.fine { font-size: 14px; color: var(--muted); margin-top: 18px; }
.fine span + span::before { content: "·"; margin: 0 .6em; opacity: .7; }

.hero-shot { margin: 60px auto 0; width: min(1240px, 100% - 32px); position: relative; }
.hero-shot img {
  border-radius: 12px; box-shadow: var(--shadow);
  outline: 1px solid rgba(0, 0, 0, .25); outline-offset: -1px;
}

/* ---------- the numbers ---------- */
.facts { padding: 72px 0 24px; }
.facts ul {
  list-style: none; margin: 0; padding: 0;
  display: grid; grid-template-columns: repeat(4, 1fr); gap: 0;
  border-top: 1px solid var(--rule); border-bottom: 1px solid var(--rule);
}
.facts li { padding: 26px 24px; }
.facts li + li { border-left: 1px solid var(--rule); }
.facts b { display: block; font: 500 clamp(26px, 2.7vw, 38px)/1.05 var(--serif); letter-spacing: -.01em; color: var(--ink); }
.facts span { display: block; margin-top: 8px; font-size: 15px; line-height: 1.45; color: var(--ink-2); }
@media (max-width: 860px) {
  .facts ul { grid-template-columns: 1fr 1fr; }
  .facts li:nth-child(3) { border-left: 0; }
  .facts li:nth-child(n+3) { border-top: 1px solid var(--rule); }
}
@media (max-width: 420px) {
  .facts li { padding: 20px 14px; }
  .facts b { font-size: 26px; }
}

/* ---------- feature rows ---------- */
.features { padding: 40px 0 40px; }
.feature {
  display: grid; grid-template-columns: minmax(0, 5fr) minmax(0, 8fr);
  gap: clamp(28px, 5vw, 72px); align-items: center;
  padding: clamp(48px, 8vw, 96px) 0;
}
.feature + .feature { border-top: 1px solid var(--rule); }
.feature.flip { grid-template-columns: minmax(0, 8fr) minmax(0, 5fr); }
.feature.flip .text { order: 2; }
.feature h2 {
  font: 500 clamp(30px, 3.6vw, 44px)/1.08 var(--serif);
  letter-spacing: -.012em; margin: 0; text-wrap: balance;
}
.feature p { color: var(--ink-2); margin: 18px 0 0; text-wrap: pretty; }
.feature kbd {
  display: inline-block; font-weight: 600; color: #fbf4e8;
  background: linear-gradient(180deg, #d9673f, #b84d2a);
  border-radius: 8px; padding: 0 .45em .08em; margin: 0 .05em;
  box-shadow: 0 3px 0 #7c3a1c; font-size: .8em; vertical-align: .08em;
}
.points { list-style: none; padding: 0; margin: 22px 0 0; display: grid; gap: 9px; }
.points li { position: relative; padding-left: 26px; font-size: 15.5px; color: var(--ink-2); }
.points li::before {
  content: ""; position: absolute; left: 2px; top: .52em; width: 11px; height: 6px;
  border-left: 2px solid var(--accent); border-bottom: 2px solid var(--accent);
  transform: rotate(-45deg);
}
.shot img {
  border-radius: 10px; box-shadow: var(--shadow);
  outline: 1px solid rgba(0, 0, 0, .25); outline-offset: -1px;
}
@media (max-width: 860px) {
  .feature, .feature.flip { grid-template-columns: minmax(0, 1fr); }
  .feature.flip .text { order: 0; }
}

/* ---------- the smaller things ---------- */
.more { padding: 24px 0 96px; }
.section-head { max-width: 40em; margin: 0 0 40px; }
.section-head h2 { font: 500 clamp(30px, 3.6vw, 44px)/1.08 var(--serif); letter-spacing: -.012em; margin: 0; text-wrap: balance; }
.section-head p { color: var(--ink-2); margin: 14px 0 0; }
.grid { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 18px; }
.card { background: var(--card); border: 1px solid var(--rule); border-radius: 14px; padding: 24px 24px 26px; }
.card h3 { font: 600 17px/1.3 var(--sans); margin: 0 0 8px; }
.card p { margin: 0; font-size: 15.5px; color: var(--ink-2); }
.card .eg { font-family: var(--serif); color: var(--ink); white-space: nowrap; }
@media (max-width: 960px) { .grid { grid-template-columns: 1fr 1fr; } }
@media (max-width: 620px) { .grid { grid-template-columns: minmax(0, 1fr); } }

/* ---------- privacy band ---------- */
.band { background: var(--band); color: var(--band-ink); padding: clamp(64px, 9vw, 112px) 0; position: relative; overflow: hidden; }
.band::after {
  content: ""; position: absolute; right: -120px; bottom: -160px; width: 520px; height: 520px;
  background: radial-gradient(closest-side, rgba(228, 135, 95, .22), transparent); pointer-events: none;
}
.band .wrap { display: grid; grid-template-columns: minmax(0, 6fr) minmax(0, 5fr); gap: clamp(32px, 6vw, 80px); align-items: start; position: relative; z-index: 1; }
.band .kicker { color: #e4875f; }
.band h2 { font: 500 clamp(34px, 4.4vw, 56px)/1.05 var(--serif); letter-spacing: -.015em; margin: 0; }
.band h2 em { color: #e4875f; }
.band p { color: var(--band-muted); margin: 20px 0 0; max-width: 34em; }
.band a { color: #f0a07c; }
.nots { list-style: none; margin: 0; padding: 0; border-top: 1px solid rgba(239, 233, 221, .14); }
.nots li { display: flex; gap: 16px; align-items: baseline; padding: 17px 0; border-bottom: 1px solid rgba(239, 233, 221, .14); }
.nots b { font: 500 22px/1.2 var(--serif); color: var(--band-ink); min-width: 6.5em; }
.nots span { color: var(--band-muted); font-size: 15.5px; }
@media (max-width: 860px) { .band .wrap { grid-template-columns: minmax(0, 1fr); } }
@media (max-width: 480px) { .nots li { flex-direction: column; gap: 4px; } }

/* ---------- price ---------- */
.price { padding: clamp(72px, 10vw, 120px) 0; text-align: center; }
.price h2 { font: 500 clamp(34px, 4.4vw, 56px)/1.05 var(--serif); letter-spacing: -.015em; margin: 0 auto; max-width: 14em; text-wrap: balance; }
.price .sub { color: var(--ink-2); max-width: 36em; margin: 20px auto 0; font-size: 18px; text-wrap: pretty; }
.ticket {
  display: grid; grid-template-columns: 1fr 1fr; text-align: left;
  max-width: 760px; margin: 44px auto 0;
  background: var(--card); border: 1px solid var(--rule); border-radius: 18px; overflow: hidden;
}
.ticket > div { padding: 28px 30px; }
.ticket > div + div { border-left: 1px dashed var(--rule); }
.ticket .label { font: 600 12px/1 var(--sans); letter-spacing: .16em; text-transform: uppercase; color: var(--muted); }
.ticket .amount { font: 500 44px/1.1 var(--serif); margin: 12px 0 6px; }
.ticket .amount small { font: 500 15px var(--sans); color: var(--muted); margin-left: 4px; }
.ticket p { margin: 0; font-size: 15px; color: var(--ink-2); }
@media (max-width: 620px) {
  .ticket { grid-template-columns: 1fr; }
  .ticket > div + div { border-left: 0; border-top: 1px dashed var(--rule); }
}

/* ---------- footer ---------- */
.site-foot { border-top: 1px solid var(--rule); padding: 40px 0 56px; font-size: 14.5px; color: var(--muted); }
.site-foot .wrap { display: flex; flex-wrap: wrap; justify-content: space-between; gap: 20px 32px; align-items: center; }
.site-foot nav { display: flex; flex-wrap: wrap; gap: 8px 24px; }
.site-foot a { color: var(--ink-2); text-decoration: none; }
.site-foot a:hover { color: var(--ink); text-decoration: underline; }

/* ---------- reading pages (support) ---------- */
.doc { padding: 64px 0 96px; }
.doc .wrap { width: min(42em, 100% - 32px); }
.doc h1 { font: 500 clamp(36px, 5vw, 52px)/1.08 var(--serif); letter-spacing: -.015em; margin: 0; }
.doc .date { color: var(--muted); margin: 10px 0 36px; font-size: 15px; }
.doc .lede { font-size: 19px; color: var(--ink-2); }
.doc h2 { font: 500 26px/1.2 var(--serif); margin: 52px 0 6px; padding-top: 22px; border-top: 1px solid var(--rule); }
.doc h3 { font: 600 17px/1.35 var(--sans); margin: 30px 0 6px; }
.doc p, .doc li { color: var(--ink-2); }
.doc strong, .doc b { color: var(--ink); }
.doc ul { padding-left: 1.3em; }
.doc li { margin: .4em 0; }
.doc code { background: var(--accent-wash); color: var(--accent-ink); padding: 1px 6px; border-radius: 5px; }
.contact { background: var(--card); border: 1px solid var(--rule); border-radius: 14px; padding: 22px 24px; margin: 28px 0; }
.contact p { margin: .45em 0; }
.contact .mail { font: 500 22px/1.3 var(--serif); }
.toc { display: flex; flex-wrap: wrap; gap: 8px; margin: 8px 0 0; padding: 0; list-style: none; }
.toc a { display: inline-block; font-size: 14px; padding: 6px 12px; border-radius: 999px; border: 1px solid var(--rule); background: var(--card); color: var(--ink-2); text-decoration: none; }
.toc a:hover { color: var(--ink); border-color: var(--accent); }

@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  .btn { transition: none; }
  .btn:hover { transform: none; }
}
