/* unmodit.com. Colours are the app's dark theme (src/styles.css in the app repo). */
:root {
  --surface: #161b26; --app: #1f2635; --subtle: #1a202d; --text: #f4eedc; --text-2: #b7bed0; --text-3: #d6dae6;
  --accent: #f2d98b; --accent-hover: #f7e6ae; --accent-deep: #f7e6ae; --accent-tint: #2b2a22; --accent-ink: #2a2206;
  --line: #37415b; --line-soft: #2a3246; --line-strong: #46516e; --dash: #46516e;
  --purple: #8fbcf5; --purple-tint: #1f2a40; --warm-text: #f2c79a; --warm-tint: #33291d; --blue-tint: #1e2940; --navy-text: #c3d3f5;
  --mod: #f08ba5; --safe: #86d3b0;
  --grad: linear-gradient(90deg, #f2d98b, #f08ba5 55%, #8fbcf5);
  --font: "Atkinson Hyperlegible", "Segoe UI Variable Text", "Segoe UI", system-ui, -apple-system, "Helvetica Neue", Roboto, Arial, sans-serif;
  --display: "Atkinson Hyperlegible", "Segoe UI Variable Display", "Segoe UI", system-ui, -apple-system, "Helvetica Neue", Roboto, Arial, sans-serif;
  --mono: Consolas, "Cascadia Mono", ui-monospace, Menlo, monospace;
  --r: 12px;
  color-scheme: dark;
}
/* Atkinson Hyperlegible, the app's typeface (SIL Open Font License: assets/fonts/OFL.txt). */
@font-face { font-family: "Atkinson Hyperlegible"; font-weight: 400; font-display: swap; src: url(/assets/fonts/atkinson-hyperlegible-latin-400-normal.woff2) format("woff2"); }
@font-face { font-family: "Atkinson Hyperlegible"; font-weight: 700 800; font-display: swap; src: url(/assets/fonts/atkinson-hyperlegible-latin-700-normal.woff2) format("woff2"); }
*, *::before, *::after { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; scroll-padding-top: 90px; }
body { margin: 0; background: var(--surface); color: var(--text); font: 17px/1.6 var(--font); }
img { max-width: 100%; height: auto; }
a { color: var(--accent); text-underline-offset: 2px; }
a:hover { color: var(--accent-deep); }
h1, h2, h3 { font-family: var(--display); line-height: 1.15; letter-spacing: -0.015em; margin: 0 0 .5em; }
h1 { font-size: clamp(34px, 5vw, 54px); font-weight: 800; }
h2 { font-size: clamp(26px, 3.2vw, 36px); font-weight: 800; }
h3 { font-size: 20px; font-weight: 700; }
p, ul, ol { margin: 0 0 1em; }
code, kbd, .path { font-family: var(--mono); font-size: .88em; background: var(--app); border: 1px solid var(--line-soft); border-radius: 5px; padding: 1px 5px; }
kbd { border-bottom-width: 2px; }
.wrap { max-width: 1160px; margin: 0 auto; padding: 0 28px; }
.skip { position: absolute; left: -999px; }
.skip:focus { left: 12px; top: 12px; background: var(--surface); padding: 8px 12px; z-index: 10; }
.bar { height: 4px; background: var(--grad); }
.small { font-size: 14px; color: var(--text-2); }

/* header */
.site-head { position: sticky; top: 0; z-index: 5; background: #161b26F2; backdrop-filter: blur(8px); border-bottom: 1px solid var(--line-soft); }
.head-row { height: 72px; display: flex; align-items: center; gap: 28px; }
.brand { text-decoration: none; }
.brand-in { display: inline-flex; align-items: center; gap: 10px; }
.brand-in img { display: block; width: 36px; height: 36px; border-radius: 8px; }
.wm { font: 800 24px/1 var(--display); letter-spacing: -0.02em; color: var(--text); }
.wm b { color: var(--accent); font-weight: 800; }
.nav { display: flex; gap: 26px; margin-left: auto; }
.nav a { color: var(--text-3); text-decoration: none; font-weight: 600; font-size: 15px; }
.nav a:hover, .nav a[aria-current] { color: var(--accent); }
.menu { display: none; position: relative; }
.menu summary { list-style: none; cursor: pointer; width: 40px; height: 40px; display: grid; place-content: center; gap: 5px; border: 1px solid var(--line-strong); border-radius: 9px; }
.menu summary::-webkit-details-marker { display: none; }
.menu summary span { display: block; width: 18px; height: 2px; background: var(--text); border-radius: 2px; }
.menu nav { position: absolute; right: 0; top: 48px; background: var(--surface); border: 1px solid var(--line); border-radius: var(--r); box-shadow: 0 16px 40px #00000066; padding: 8px; display: grid; min-width: 220px; }
.menu nav a { padding: 10px 12px; color: var(--text); text-decoration: none; font-weight: 600; border-radius: 8px; }
.menu nav a:hover { background: var(--app); }

/* buttons */
.btn { display: inline-flex; align-items: center; justify-content: center; gap: 8px; min-height: 48px; padding: 0 22px; border-radius: 10px; background: var(--accent); color: var(--accent-ink); font-weight: 700; font-size: 16px; text-decoration: none; border: 1px solid var(--accent); }
.btn:hover { background: var(--accent-hover); color: var(--accent-ink); }
.btn.ghost { background: var(--surface); color: var(--text); border-color: var(--line-strong); font-weight: 600; }
.btn.ghost:hover { background: var(--app); color: var(--text); }
.btn-sm { min-height: 40px; padding: 0 16px; font-size: 15px; }
.btns { display: flex; flex-wrap: wrap; gap: 12px; margin: 0 0 12px; }

/* home */
.hero { background: var(--subtle); border-bottom: 1px solid var(--line-soft); padding: 64px 0 72px; }
.hero-grid { display: grid; grid-template-columns: minmax(0, 5fr) minmax(0, 6fr); gap: 48px; align-items: center; }
.two { align-items: center; }
.eyebrow { display: inline-block; font-size: 14px; font-weight: 700; color: var(--accent); margin-bottom: 14px; }
.hero h1 { margin-bottom: 18px; }
.hero .line { font-size: 20px; color: var(--text-3); max-width: 520px; margin-bottom: 26px; }
.platforms { border-bottom: 1px solid var(--line-soft); padding: 22px 0; }
.platforms p { margin: 0; text-align: center; color: var(--text-2); font-size: 15px; }
.platforms b { color: var(--text); font-weight: 600; }
.band { padding: 88px 0; }
.band.alt { background: var(--subtle); border-top: 1px solid var(--line-soft); border-bottom: 1px solid var(--line-soft); }
.band-head { max-width: 700px; margin-bottom: 40px; }
.band-head p { font-size: 18px; color: var(--text-3); }
.steps, .three { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 32px; }
.step .n { width: 40px; height: 40px; border-radius: 10px; background: var(--accent-tint); color: var(--accent-deep); font-weight: 800; display: grid; place-items: center; margin-bottom: 14px; }
.step p, .three p { color: var(--text-3); }
.three svg { color: var(--accent); margin-bottom: 8px; }
.price-card { max-width: 560px; margin: 0 auto; background: var(--surface); border: 2px solid var(--accent); border-radius: 16px; padding: 32px; }
.price-row { display: flex; align-items: baseline; gap: 10px; margin-bottom: 4px; }
.price-row .amt { font-size: 46px; font-weight: 800; letter-spacing: -0.02em; font-family: var(--display); }
.ticks { list-style: none; padding: 0; margin: 18px 0 24px; display: grid; gap: 10px; }
.ticks li { padding-left: 30px; position: relative; }
.ticks li::before { content: ""; position: absolute; left: 2px; top: 6px; width: 14px; height: 8px; border-left: 2.5px solid var(--accent); border-bottom: 2.5px solid var(--accent); transform: rotate(-45deg); }
.center { text-align: center; }
.two-col { grid-template-columns: repeat(2, minmax(0, 1fr)); column-gap: 40px; }
@media (max-width: 760px) { .two-col { grid-template-columns: 1fr; } }

/* screenshots */
.shot { margin: 28px 0; }
.shot img { display: block; border: 1px solid var(--line-strong); border-radius: var(--r); box-shadow: 0 20px 50px #00000055; background: var(--surface); }
.shot figcaption { font-size: 14px; color: var(--text-2); margin-top: 10px; }
.shot-ph { aspect-ratio: 16 / 10; display: grid; place-items: center; padding: 20px; text-align: center; border: 2px dashed var(--dash); border-radius: var(--r); color: var(--text-2); background: var(--app); font-size: 15px; }
.hero .shot { margin: 0; }

/* articles */
.art { max-width: 780px; margin: 0 auto; padding: 40px 28px 40px; }
.art-head { margin-bottom: 28px; }
.art-head h1 { font-size: clamp(32px, 4.4vw, 46px); }
.crumbs { font-size: 14px; color: var(--text-2); margin-bottom: 14px; display: flex; gap: 8px; flex-wrap: wrap; }
.crumbs a { color: var(--text-2); text-decoration: none; }
.crumbs a:hover { color: var(--accent); }
.lede { font-size: 20px; color: var(--text-3); }
.meta { font-size: 14px; color: var(--text-2); }
.art h2 { font-size: 28px; margin-top: 1.8em; }
.art h3 { margin-top: 1.4em; }
.art li { margin-bottom: .4em; }
.art ol > li::marker { font-weight: 700; color: var(--accent-deep); }
.art .shot { margin: 28px -40px; }
.note { background: var(--blue-tint); border-radius: var(--r); padding: 16px 20px; margin: 0 0 1.2em; font-size: 16px; color: var(--navy-text); }
.note.warm { background: var(--warm-tint); color: var(--warm-text); }
.note p:last-child { margin: 0; }
.app-way { border: 1px solid var(--line); border-radius: 16px; padding: 28px 28px 10px; margin: 2.2em 0; background: var(--subtle); }
.app-way h2 { margin-top: 0; }
.app-way .shot { margin: 20px 0; }
table { width: 100%; border-collapse: collapse; margin: 0 0 1.4em; font-size: 15px; }
th, td { text-align: left; padding: 11px 12px; border-bottom: 1px solid var(--line-soft); vertical-align: top; }
th { font-weight: 700; color: var(--text-3); background: var(--subtle); }
.table-wrap { overflow-x: auto; margin: 0 0 1.4em; }
.table-wrap table { margin: 0; min-width: 560px; }
.cta-block { margin: 2.6em 0 1em; padding: 30px; border-radius: 16px; background: var(--accent-tint); }
.cta-block h2 { margin-top: 0 !important; font-size: 26px; }
.cta-block p { color: var(--text-3); }
.faq { margin-top: 2.6em; }
details { border-bottom: 1px solid var(--line-soft); padding: 16px 0; }
details summary { cursor: pointer; font-weight: 650; font-size: 17px; }
details > div { margin-top: 10px; color: var(--text-3); }
details > div p:last-child { margin: 0; }
.related { margin-top: 2.6em; }
.cards { display: grid; grid-template-columns: repeat(auto-fill, minmax(230px, 1fr)); gap: 16px; }
.card { display: flex; flex-direction: column; gap: 6px; padding: 18px; border: 1px solid var(--line); border-radius: var(--r); text-decoration: none; color: var(--text); background: var(--surface); }
.card:hover { border-color: var(--accent); color: var(--text); box-shadow: 0 8px 24px #00000040; }
.card-k { font-size: 13px; font-weight: 700; color: var(--accent); }
.card-t { font-weight: 700; font-size: 17px; line-height: 1.3; }
.card-d { font-size: 14.5px; color: var(--text-2); line-height: 1.45; }
.page { max-width: 1160px; margin: 0 auto; padding: 48px 28px 40px; }
.page.narrow { max-width: 780px; }
.index-group { margin-bottom: 48px; scroll-margin-top: 80px; }
.index-group h2 { margin-bottom: 4px; }
.index-group > .small { margin: 0 0 16px; }
.topic-nav { margin: 8px 0 36px; line-height: 1.9; }

/* footer */
.site-foot { border-top: 1px solid var(--line-soft); background: var(--subtle); padding: 56px 0 36px; margin-top: 56px; font-size: 15px; }
.foot-brand { max-width: 440px; margin-bottom: 32px; }
.foot-brand .brand-in { margin-bottom: 12px; }
.foot-brand p { color: var(--text-2); }
.foot-cols { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 24px; }
.foot-cols h2 { font-size: 14px; font-weight: 700; letter-spacing: 0; margin-bottom: 10px; }
.foot-cols ul { list-style: none; padding: 0; margin: 0; }
.foot-cols li { margin-bottom: 7px; line-height: 1.35; }
.foot-cols a { color: var(--text-3); text-decoration: none; }
.foot-cols a:hover { color: var(--accent); }
.legal { margin-top: 32px; font-size: 13px; color: var(--text-2); }

@media (max-width: 1000px) {
  .hero-grid { grid-template-columns: 1fr; }
  .steps, .three { grid-template-columns: 1fr; }
  .foot-cols { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .nav { display: none; }
  .menu { display: block; }
  .head-row .btn-sm { margin-left: auto; }
  .art .shot { margin: 24px 0; }
}
@media (max-width: 560px) {
  body { font-size: 16px; }
  .wrap, .art, .page { padding-left: 18px; padding-right: 18px; }
  .head-row { gap: 12px; }
  .wm { font-size: 21px; }
  .head-row .btn-sm { padding: 0 12px; }
  .head-row .btn-sm svg { display: none; }
  .band { padding: 64px 0; }
  .foot-cols { grid-template-columns: 1fr; }
}

/* unmodit.com extras */
.steps.four { grid-template-columns: repeat(4, minmax(0, 1fr)); }
.two { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 28px; }
.panel { background: var(--surface); border: 1px solid var(--line); border-radius: 16px; padding: 28px; }
.panel h3 { margin-bottom: 10px; }
.panel.mod { border-left: 4px solid var(--mod); }
.panel.safe { border-left: 4px solid var(--safe); }
.dl { display: grid; gap: 14px; margin: 0 0 1.4em; }
.dl-row { display: flex; flex-wrap: wrap; align-items: center; gap: 14px 20px; background: var(--app); border: 1px solid var(--line); border-radius: var(--r); padding: 18px 20px; }
.dl-row h3 { margin: 0 0 2px; }
.dl-row p { margin: 0; color: var(--text-2); font-size: 15px; }
.dl-row > div { flex: 1 1 260px; }
.sum { font-family: var(--mono); font-size: 13px; overflow-wrap: anywhere; }
::selection { background: var(--accent); color: var(--accent-ink); }
@media (max-width: 1000px) { .steps.four, .two { grid-template-columns: 1fr; } }
.band > .wrap > .shot { max-width: 900px; margin: 44px auto 0; }
