/* App Empire: appempire.site */
:root {
  --bg: #F7F6F2;
  --surface: #FFFFFF;
  --ink: #16181D;
  --muted: #5A5F69;
  --faint: #8A8F98;
  --line: #E3E1DA;
  --link: #2847C2;
  --mark: #16181D;
  --mark-cell: #FFFFFF;
  --gold: #F2B544;
  --shadow: 0 1px 2px rgba(20, 22, 30, .06), 0 8px 24px rgba(20, 22, 30, .06);
  --icon-shadow: 0 1px 2px rgba(20, 22, 30, .10), 0 6px 18px rgba(20, 22, 30, .12);
  --radius: 20px;
  --a: #2847C2;
  --a-raw: #2847C2;
  color-scheme: light dark;
}
/* Per-app accent: each app element sets --a / --a-dark inline; resolve them where they are set. */
:root, [style*="--a:"] { --accent: var(--a); --accent-raw: var(--a-raw); }
@media (prefers-color-scheme: dark) {
  :root {
    --bg: #111216;
    --surface: #1A1C21;
    --ink: #ECEDEF;
    --muted: #A6ABB4;
    --faint: #7D828B;
    --line: #2B2E35;
    --link: #9DB0FF;
    --mark: #ECEDEF;
    --mark-cell: #111216;
    --shadow: 0 1px 2px rgba(0, 0, 0, .3), 0 8px 24px rgba(0, 0, 0, .25);
    --icon-shadow: 0 1px 2px rgba(0, 0, 0, .4), 0 6px 18px rgba(0, 0, 0, .35);
  }
  :root, [style*="--a:"] { --accent: var(--a-dark, var(--link)); --accent-raw: var(--a-raw-dark, var(--link)); }
}

*, *::before, *::after { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; text-size-adjust: 100%; scroll-behavior: smooth; }
@media (prefers-reduced-motion: reduce) { html { scroll-behavior: auto; } *, *::before, *::after { transition: none !important; } }
body {
  margin: 0;
  background: var(--bg);
  color: var(--ink);
  font: 17px/1.6 system-ui, -apple-system, "Segoe UI", Roboto, "Helvetica Neue", Arial, sans-serif;
  -webkit-font-smoothing: antialiased;
  overflow-x: hidden;
}
img { max-width: 100%; height: auto; }
a { color: var(--link); text-underline-offset: 3px; text-decoration-thickness: 1px; }
a:hover { text-decoration-thickness: 2px; }
:focus-visible { outline: 3px solid var(--link); outline-offset: 3px; border-radius: 6px; }
h1, h2, h3 { line-height: 1.2; letter-spacing: -0.02em; margin: 0 0 .5em; text-wrap: balance; }
h1 { font-size: clamp(2.1rem, 5.2vw, 3.6rem); font-weight: 750; letter-spacing: -0.03em; }
h2 { font-size: clamp(1.45rem, 3vw, 1.9rem); font-weight: 700; }
h3 { font-size: 1.1rem; font-weight: 650; letter-spacing: -0.01em; }
p { margin: 0 0 1em; }
ul { margin: 0 0 1em; padding-left: 1.2em; }
li { margin: .3em 0; }

.wrap { width: 100%; max-width: 1120px; margin: 0 auto; padding: 0 20px; }
@media (max-width: 420px) { .wrap { padding: 0 16px; } }
.sr-only { position: absolute; width: 1px; height: 1px; padding: 0; margin: -1px; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; border: 0; }
.skip { position: absolute; left: 12px; top: -60px; background: var(--ink); color: var(--bg); padding: 10px 14px; border-radius: 10px; z-index: 10; text-decoration: none; }
.skip:focus { top: 12px; }

/* Header and footer */
.site-header { border-bottom: 1px solid var(--line); background: color-mix(in srgb, var(--bg) 88%, transparent); backdrop-filter: saturate(1.4) blur(10px); -webkit-backdrop-filter: saturate(1.4) blur(10px); position: sticky; top: 0; z-index: 5; }
.header-row { display: flex; align-items: center; justify-content: space-between; height: 64px; gap: 16px; }
.brand { display: inline-flex; align-items: center; gap: 10px; color: var(--ink); text-decoration: none; font-weight: 700; letter-spacing: -0.01em; font-size: 1.05rem; white-space: nowrap; }
.mark { width: 30px; height: 30px; color: var(--mark); flex: none; }
.site-nav { display: flex; gap: 4px; }
.site-nav a { color: var(--muted); text-decoration: none; padding: 8px 12px; border-radius: 999px; font-size: .95rem; }
.site-nav a:hover { color: var(--ink); background: color-mix(in srgb, var(--ink) 6%, transparent); }
.site-nav a[aria-current="page"] { color: var(--ink); }
@media (max-width: 400px) { .site-nav a { padding: 8px 8px; } .site-nav .nav-apps { display: none; } }

.site-footer { border-top: 1px solid var(--line); margin-top: 96px; padding: 40px 0 48px; color: var(--muted); font-size: .95rem; }
.footer-row { display: flex; flex-wrap: wrap; justify-content: space-between; gap: 24px 48px; }
.footer-brand p { margin: 10px 0 0; }
.footer-nav { display: flex; flex-wrap: wrap; gap: 8px 24px; align-items: center; }
.footer-nav a { color: var(--muted); }
.footer-nav a:hover { color: var(--ink); }

/* Buttons */
.button { display: inline-block; background: var(--ink); color: var(--bg); text-decoration: none; font-weight: 600; padding: 12px 20px; border-radius: 999px; font-size: .98rem; line-height: 1.2; }
.button:hover { background: color-mix(in srgb, var(--ink) 85%, var(--bg)); }
body.app .button { background: var(--accent); color: #FFFFFF; }
@media (prefers-color-scheme: dark) { body.app .button { color: #111216; } }
body.app .button:hover { background: color-mix(in srgb, var(--accent) 86%, var(--ink)); }
.text-link { font-weight: 600; margin-left: 16px; }
.hero-links .text-link, .glance-links .text-link { white-space: nowrap; }

/* Home hero */
.hero { padding: 72px 0 40px; overflow: hidden; }
.hero-row { display: grid; grid-template-columns: minmax(0, 1.1fr) minmax(0, 1fr); gap: 48px; align-items: center; }
.eyebrow { text-transform: uppercase; letter-spacing: .12em; font-size: .8rem; font-weight: 700; color: var(--muted); margin-bottom: 16px; }
.lead { font-size: clamp(1.08rem, 2vw, 1.25rem); color: var(--muted); max-width: 36em; }
.hero h1 { max-width: 13em; }
.hero-links { margin-top: 28px; }
.mosaic { list-style: none; margin: 0; padding: 0; display: grid; grid-template-columns: repeat(3, 104px); gap: 22px; justify-content: center; transform: rotate(-6deg); }
.mosaic li { margin: 0; }
.mosaic li:nth-child(3n+2) { transform: translateY(28px); }
.mosaic .icon { width: 104px; height: 104px; }
@media (max-width: 900px) {
  .hero { padding: 48px 0 16px; }
  .hero-row { grid-template-columns: 1fr; }
  .mosaic { display: none; }
}

/* Icons */
.icon { display: block; border-radius: 22.5%; box-shadow: var(--icon-shadow); background: var(--accent-raw); flex: none; }
.icon-xl { width: 152px; height: 152px; }

/* App grid */
.apps { padding: 32px 0 24px; }
.section-head { display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between; gap: 16px 24px; margin-bottom: 24px; }
.section-head h2 { margin: 0; }
.filters { border: 0; margin: 0; padding: 0; display: none; flex-wrap: wrap; gap: 8px; min-width: 0; }
@supports selector(:has(*)) { .filters { display: flex; } }
.filters input { position: absolute; opacity: 0; width: 1px; height: 1px; pointer-events: none; }
.filters label { cursor: pointer; padding: 7px 14px; border-radius: 999px; border: 1px solid var(--line); background: var(--surface); color: var(--muted); font-size: .92rem; font-weight: 550; user-select: none; }
.filters label:hover { color: var(--ink); border-color: color-mix(in srgb, var(--ink) 30%, var(--line)); }
.filters input:checked + label { background: var(--ink); border-color: var(--ink); color: var(--bg); }
.filters input:focus-visible + label { outline: 3px solid var(--link); outline-offset: 2px; }

.app-grid { list-style: none; margin: 0; padding: 0; display: none; grid-template-columns: repeat(auto-fill, minmax(230px, 1fr)); gap: 16px; }
.app-card { margin: 0; }
.app-card a { display: flex; flex-direction: column; gap: 16px; height: 100%; padding: 22px; background: var(--surface); border: 1px solid var(--line); border-radius: var(--radius); color: var(--ink); text-decoration: none; transition: transform .18s ease, box-shadow .18s ease, border-color .18s ease; }
.app-card a:hover { transform: translateY(-3px); box-shadow: var(--shadow); border-color: color-mix(in srgb, var(--accent-raw) 45%, var(--line)); }
.app-card a:focus-visible { outline-offset: 2px; border-radius: var(--radius); }
.app-card .icon { width: 88px; height: 88px; }
.app-text { display: flex; flex-direction: column; gap: 4px; min-width: 0; }
.app-name { font-weight: 700; font-size: 1.12rem; letter-spacing: -0.01em; }
.app-tag { color: var(--muted); font-size: .96rem; line-height: 1.45; }
.app-cat { color: var(--faint); font-size: .8rem; font-weight: 600; letter-spacing: .04em; text-transform: uppercase; margin-top: 6px; }
.app-avail { color: var(--accent); font-size: .84rem; font-weight: 650; margin-top: 2px; }

/* List view */
.head-controls { display: flex; flex-wrap: wrap; gap: 10px 20px; align-items: center; }
.views { margin-left: auto; }
.app-list { display: block; counter-reset: app; list-style: none; margin: 0; padding: 0; border: 1px solid var(--line); border-radius: var(--radius); background: var(--surface); overflow: hidden; }
@supports selector(:has(*)) {
  .apps:has(#view-grid:checked) .app-grid { display: grid; }
  .apps:has(#view-grid:checked) .app-list { display: none; }
}
.app-row { counter-increment: app; display: grid; grid-template-columns: 2.4em 56px minmax(0, 1fr) auto; gap: 16px; align-items: center; padding: 14px 18px; border-top: 1px solid var(--line); }
.app-row:first-child { border-top: 0; }
.app-row .icon { width: 56px; height: 56px; }
.row-num { color: var(--faint); font-size: .9rem; font-weight: 650; font-variant-numeric: tabular-nums; text-align: right; }
.row-num::before { content: counter(app); }
.row-text { min-width: 0; }
.filters .n { font-size: .8em; opacity: .7; font-variant-numeric: tabular-nums; margin-left: 2px; }
.row-name { font-weight: 700; font-size: 1.05rem; color: var(--ink); text-decoration: none; }
.row-name:hover { color: var(--accent); text-decoration: underline; }
.row-text p { margin: 2px 0 0; color: var(--muted); font-size: .93rem; line-height: 1.45; }
.row-get { display: flex; gap: 8px; justify-content: flex-end; }
.row-store { display: inline-flex; flex-direction: column; min-width: 104px; padding: 6px 12px; border-radius: 10px; background: var(--ink); color: var(--bg); text-decoration: none; font-weight: 650; font-size: .9rem; line-height: 1.2; }
.row-store span { font-size: .72rem; font-weight: 500; opacity: .85; }
.row-store:hover { background: color-mix(in srgb, var(--ink) 85%, var(--accent-raw)); }
.row-none { color: var(--faint); font-size: .85rem; white-space: nowrap; }
@media (max-width: 720px) {
  .app-row { grid-template-columns: 1.8em 48px minmax(0, 1fr); gap: 6px 12px; padding: 14px; }
  .row-num { grid-row: span 2; align-self: start; padding-top: 14px; }
  .row-get { grid-column: 3; }
  .app-row .icon { width: 48px; height: 48px; }
  .row-icon { grid-row: span 2; align-self: start; }
  .row-get { justify-content: flex-start; flex-wrap: wrap; }
  .views { margin-left: 0; }
}
@media (max-width: 560px) {
  .app-grid { grid-template-columns: 1fr; gap: 10px; }
  .app-card a { flex-direction: row; align-items: center; padding: 14px; gap: 14px; }
  .app-card .icon { width: 64px; height: 64px; }
  .app-cat { display: none; }
}

/* How we build */
.how { padding: 56px 0 0; }
.how-grid { list-style: none; margin: 0; padding: 0; display: grid; grid-template-columns: repeat(auto-fill, minmax(280px, 1fr)); gap: 0 40px; }
.how-grid li { margin: 0; padding: 22px 0; border-top: 1px solid var(--line); }
.how-grid h3 { display: flex; align-items: center; gap: 10px; }
.how-grid h3::before { content: ""; width: 10px; height: 10px; border-radius: 3px; background: var(--gold); flex: none; }
.how-grid p { color: var(--muted); margin: 0; }

/* App page */
.app-hero { padding: 28px 0 48px; background: linear-gradient(180deg, color-mix(in srgb, var(--accent-raw) 13%, var(--bg)), var(--bg)); }
.crumbs ol { list-style: none; display: flex; flex-wrap: wrap; gap: 6px; padding: 0; margin: 0 0 28px; font-size: .9rem; color: var(--muted); }
.crumbs li { margin: 0; }
.crumbs li + li::before { content: "/"; margin-right: 6px; color: var(--faint); }
.crumbs a { color: var(--muted); }
.app-hero-row { display: flex; gap: 32px; align-items: center; }
.app-hero h1 { margin-bottom: .2em; }
.app-hero .lead { margin-bottom: 16px; }
.platforms { display: flex; gap: 8px; margin: 0; }
.pill { display: inline-block; padding: 4px 12px; border-radius: 999px; font-size: .85rem; font-weight: 600; color: var(--accent); background: color-mix(in srgb, var(--accent-raw) 12%, var(--surface)); border: 1px solid color-mix(in srgb, var(--accent-raw) 25%, transparent); }
.stores { display: flex; flex-wrap: wrap; gap: 10px; margin-top: 16px; }
.store { display: inline-flex; flex-direction: column; background: var(--ink); color: var(--bg); text-decoration: none; padding: 8px 16px; border-radius: 12px; font-weight: 650; line-height: 1.15; }
.store span { font-size: .72rem; font-weight: 500; }
@media (max-width: 600px) {
  .app-hero-row { flex-direction: column; align-items: flex-start; gap: 20px; }
  .icon-xl { width: 112px; height: 112px; }
}

.app-body { display: grid; gap: 56px; padding-top: 40px; }
.app-body section { min-width: 0; }
.prose { max-width: 42em; }
.prose p { font-size: 1.06rem; }
.checks { list-style: none; padding: 0; margin: 0; display: grid; grid-template-columns: repeat(auto-fill, minmax(300px, 1fr)); gap: 4px 32px; }
.checks li { position: relative; padding-left: 30px; margin: .35em 0; }
.checks li::before { content: ""; position: absolute; left: 2px; top: .42em; width: 16px; height: 16px; border-radius: 50%; background: color-mix(in srgb, var(--accent-raw) 16%, transparent); }
.checks li::after { content: ""; position: absolute; left: 7px; top: calc(.42em + 4px); width: 4px; height: 7px; border: solid var(--accent); border-width: 0 2px 2px 0; transform: rotate(45deg); }
.tiers { display: grid; grid-template-columns: repeat(auto-fit, minmax(280px, 1fr)); gap: 16px; }
.tier { background: var(--surface); border: 1px solid var(--line); border-radius: var(--radius); padding: 24px; }
.tier .checks { grid-template-columns: 1fr; }
.tier-pro { border-color: color-mix(in srgb, var(--accent-raw) 45%, var(--line)); box-shadow: 0 0 0 1px color-mix(in srgb, var(--accent-raw) 20%, transparent); }
.tier-pro h3 { color: var(--accent); }
.note { color: var(--muted); font-size: .95rem; margin-top: 16px; }
.glance { background: var(--surface); border: 1px solid var(--line); border-radius: var(--radius); padding: 28px; }
.glance ul { padding-left: 1.2em; }
.glance-links { margin: 20px 0 0; }

/* Documents: privacy and support */
.doc { max-width: 780px; padding-top: 32px; }
.doc-head { display: flex; align-items: center; gap: 18px; margin-bottom: 8px; }
.doc-head .icon { width: 64px; height: 64px; }
.doc-head h1 { font-size: clamp(1.8rem, 4.5vw, 2.6rem); margin: 0; }
.doc .meta { color: var(--muted); font-size: .95rem; margin: 12px 0 20px; }
.doc section { margin-top: 36px; }
.doc h2 { font-size: 1.35rem; }
.doc h3 { margin-top: 1.4em; }
.doc li { margin: .45em 0; }
.table-wrap { overflow-x: auto; border: 1px solid var(--line); border-radius: 14px; background: var(--surface); }
table { border-collapse: collapse; width: 100%; font-size: .95rem; }
th, td { text-align: left; vertical-align: top; padding: 12px 14px; border-bottom: 1px solid var(--line); }
thead th { font-size: .82rem; text-transform: uppercase; letter-spacing: .05em; color: var(--muted); font-weight: 650; }
tbody tr:last-child th, tbody tr:last-child td { border-bottom: 0; }
tbody th { font-weight: 650; white-space: nowrap; }
@media (max-width: 640px) {
  table, thead, tbody, tr, th, td { display: block; }
  thead { position: absolute; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); }
  tbody tr { padding: 14px 16px; border-bottom: 1px solid var(--line); }
  tbody tr:last-child { border-bottom: 0; }
  tbody th, td { padding: 2px 0; border: 0; white-space: normal; }
  td:nth-of-type(1) { color: var(--muted); font-size: .88rem; }
  td:nth-of-type(3)::before { content: "If you say no: "; font-weight: 600; }
}
.contact-card { background: var(--surface); border: 1px solid var(--line); border-radius: var(--radius); padding: 24px 28px; margin: 28px 0 8px; }
.contact-card h2 { font-size: 1.25rem; }
.contact-card p:last-child { margin-bottom: 0; }
.faq .qa { border-top: 1px solid var(--line); padding: 18px 0 4px; }
.faq .qa h3 { margin: 0 0 .5em; }
.app-links { list-style: none; padding: 0; display: grid; grid-template-columns: repeat(auto-fill, minmax(240px, 1fr)); gap: 8px; }
.app-links li { margin: 0; }
.app-links a { display: flex; align-items: center; gap: 12px; padding: 10px 12px; border-radius: 14px; border: 1px solid var(--line); background: var(--surface); color: var(--ink); text-decoration: none; font-weight: 550; }
.app-links a:hover { border-color: color-mix(in srgb, var(--accent-raw) 45%, var(--line)); }
.app-links .icon { width: 40px; height: 40px; box-shadow: none; }
.notfound { padding-top: 72px; }
