/* Shiny Pig: one stylesheet for every page. No web fonts, no scripts: nothing is loaded from anyone else. */
:root {
  /* The logo's own colors: navy #0c1924 (the circle and "Shiny"), gold #f2ab17 ("Pig" and the star). */
  --bg: #fffdf8;
  --surface: #ffffff;
  --ink: #0c1924;
  --muted: #55606b;
  --line: #ebe6da;
  --soft: #fff3d1;
  --gold: #f2ab17;
  --accent: #0c1924;
  --accent-ink: #ffffff;
  --app: var(--accent);
  --app-soft: var(--soft);
  --shadow: 0 1px 2px rgb(12 25 36 / 6%), 0 8px 24px rgb(12 25 36 / 6%);
  --radius: 16px;
  --font: system-ui, -apple-system, "Segoe UI", Roboto, "Helvetica Neue", Arial, sans-serif;
}
.theme-stingy { --app: #b4532a; --app-soft: #fbefe8; }
.theme-textbridge { --app: #1d6fb8; --app-soft: #e9f3fc; }

@media (prefers-color-scheme: dark) {
  :root {
    --bg: #0b131b;
    --surface: #131e29;
    --ink: #eef1f4;
    --muted: #9ba7b3;
    --line: #223040;
    --soft: #2b2412;
    --accent: #f2ab17;
    --accent-ink: #0c1924;
    --shadow: none;
  }
  .theme-stingy { --app: #e8946a; --app-soft: #2e221d; }
  .theme-textbridge { --app: #6bb6f2; --app-soft: #18263a; }
  .mark { box-shadow: 0 0 0 2px rgb(255 255 255 / 14%); }
}

* { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; }
body {
  margin: 0;
  background: var(--bg);
  color: var(--ink);
  font: 17px/1.6 var(--font);
}
img { max-width: 100%; }
a { color: var(--app); text-underline-offset: 2px; }
a:hover { text-decoration-thickness: 2px; }
.theme-home main a:not(.button) { text-decoration-color: var(--gold); text-decoration-thickness: 2px; }
.mark { border-radius: 50%; }
.gold { color: var(--gold); }
:focus-visible { outline: 3px solid var(--app); outline-offset: 2px; border-radius: 4px; }

.wrap { max-width: 1040px; margin: 0 auto; padding: 0 16px; }
.wrap.narrow { max-width: 760px; }

.preview-bar {
  background: #ffc94d; color: #0c1924; text-align: center; font-size: 14px; font-weight: 600; padding: 6px 16px;
}

/* ---- header + footer ---- */
.site-header { border-bottom: 1px solid var(--line); background: var(--bg); }
.header-row { display: flex; align-items: center; justify-content: space-between; gap: 12px; min-height: 64px; flex-wrap: wrap; }
.brand { display: flex; align-items: center; gap: 10px; color: var(--ink); text-decoration: none; font-weight: 800; font-size: 20px; letter-spacing: -0.01em; }
.site-header nav { display: flex; gap: 4px; flex-wrap: wrap; }
.site-header nav a { color: var(--ink); text-decoration: none; font-weight: 600; font-size: 15px; padding: 8px 12px; border-radius: 999px; }
.site-header nav a:hover { background: var(--soft); }

.site-footer { border-top: 1px solid var(--line); margin-top: 72px; color: var(--muted); font-size: 15px; }
.footer-row { display: flex; justify-content: space-between; gap: 8px 24px; flex-wrap: wrap; padding-top: 24px; padding-bottom: 40px; }
.footer-row p { margin: 0; }
.footer-links { display: flex; gap: 8px 20px; flex-wrap: wrap; }
.footer-links a { color: var(--muted); }

/* ---- home ---- */
.hero { padding: 64px 0 40px; }
.hero h1 { font-size: clamp(34px, 6vw, 56px); line-height: 1.08; letter-spacing: -0.03em; margin: 0 0 16px; max-width: 14ch; }
.hero p { font-size: clamp(18px, 2.4vw, 21px); color: var(--muted); max-width: 40ch; margin: 0; }
.hero-mark { width: 112px; height: 112px; margin-bottom: 20px; }

.promises { display: flex; flex-wrap: wrap; gap: 8px; margin: 24px 0 0; padding: 0; list-style: none; }
.promises li { background: var(--soft); border-radius: 999px; padding: 6px 14px; font-size: 15px; font-weight: 600; }

.section-title { font-size: 14px; text-transform: uppercase; letter-spacing: 0.08em; color: var(--muted); margin: 48px 0 16px; }

.apps { display: grid; grid-template-columns: repeat(auto-fit, minmax(300px, 1fr)); gap: 20px; }
.app-card {
  background: var(--surface); border: 1px solid var(--line); border-radius: var(--radius); box-shadow: var(--shadow);
  padding: 24px; display: flex; flex-direction: column; gap: 12px;
}
.app-card.theme-stingy, .app-card.theme-textbridge { color: var(--ink); }
.app-head { display: flex; align-items: center; gap: 14px; }
.app-icon { width: 64px; height: 64px; border-radius: 15px; flex: none; }
.app-head h2, .app-head h3 { margin: 0; font-size: 24px; letter-spacing: -0.02em; }
.app-head p { margin: 0; color: var(--app); font-weight: 600; font-size: 15px; }
.app-card > p { margin: 0; }
.app-links { display: flex; flex-wrap: wrap; gap: 8px 16px; margin-top: auto; padding-top: 8px; font-size: 15px; font-weight: 600; }

.status { display: inline-flex; align-items: center; gap: 6px; font-size: 14px; font-weight: 600; color: var(--muted); }
.status::before { content: ""; width: 8px; height: 8px; border-radius: 50%; background: var(--gold); }
.button {
  display: inline-block; background: var(--app); color: var(--accent-ink); text-decoration: none; font-weight: 700;
  padding: 10px 18px; border-radius: 999px;
}
.theme-stingy .button, .theme-textbridge .button { color: #fff; }
@media (prefers-color-scheme: dark) { .theme-stingy .button, .theme-textbridge .button { color: #14161a; } }

.contact { background: var(--soft); border-radius: var(--radius); padding: 28px; margin-top: 48px; }
.contact h2 { margin: 0 0 8px; font-size: 24px; }
.contact p { margin: 0; }
.contact a { font-weight: 700; }

/* ---- an app's page ---- */
.app-hero { padding: 56px 0 24px; }
.app-hero .app-icon { width: 96px; height: 96px; border-radius: 22px; margin-bottom: 16px; }
.app-hero h1 { font-size: clamp(36px, 6vw, 52px); letter-spacing: -0.03em; margin: 0; line-height: 1.1; }
.app-hero .tagline { color: var(--app); font-weight: 700; font-size: 19px; margin: 4px 0 16px; }
.app-hero .intro { font-size: 19px; color: var(--muted); max-width: 46ch; margin: 0 0 20px; }
.app-hero .actions { display: flex; flex-wrap: wrap; align-items: center; gap: 12px 20px; }

.features { display: grid; grid-template-columns: repeat(auto-fit, minmax(260px, 1fr)); gap: 16px; margin-top: 32px; }
.feature { background: var(--surface); border: 1px solid var(--line); border-radius: var(--radius); padding: 20px; }
.feature .emoji { font-size: 28px; line-height: 1; }
.feature h2 { font-size: 18px; margin: 10px 0 4px; }
.feature p { margin: 0; color: var(--muted); font-size: 16px; }

.more { margin-top: 32px; display: flex; flex-wrap: wrap; gap: 8px 24px; font-weight: 600; }
.fine { color: var(--muted); font-size: 15px; margin-top: 24px; }

/* ---- policies and other reading pages ---- */
.doc { padding-top: 40px; }
.doc .kicker { color: var(--app); font-weight: 700; font-size: 15px; margin: 0; }
.doc h1 { font-size: clamp(30px, 5vw, 42px); letter-spacing: -0.02em; line-height: 1.15; margin: 4px 0 6px; }
.doc .updated { color: var(--muted); font-size: 15px; margin: 0 0 24px; }
.doc h2 { font-size: 22px; letter-spacing: -0.01em; margin: 40px 0 8px; padding-top: 24px; border-top: 1px solid var(--line); }
.doc h3 { font-size: 18px; margin: 24px 0 4px; }
.doc ul, .doc ol { padding-left: 24px; }
.doc li { margin: 6px 0; }
.doc strong { font-weight: 650; }
.summary { background: var(--app-soft); border-left: 4px solid var(--app); border-radius: 0 12px 12px 0; padding: 16px 20px; margin: 24px 0; }
.summary p { margin: 0; }
.steps { counter-reset: step; list-style: none; padding: 0 !important; }
.steps li { counter-increment: step; position: relative; padding-left: 44px; margin: 14px 0; min-height: 32px; }
.steps li::before {
  content: counter(step); position: absolute; left: 0; top: -2px; width: 32px; height: 32px; border-radius: 50%;
  background: var(--app); color: var(--surface); font-weight: 800; display: grid; place-items: center; font-size: 15px;
}
.table-scroll { overflow-x: auto; margin: 16px 0; border: 1px solid var(--line); border-radius: 12px; }
table { border-collapse: collapse; width: 100%; min-width: 560px; font-size: 15px; }
th, td { text-align: left; padding: 10px 12px; border-bottom: 1px solid var(--line); vertical-align: top; }
tr:last-child td { border-bottom: 0; }
th { background: var(--app-soft); font-weight: 650; }

.policy-list { list-style: none; padding: 0 !important; display: grid; gap: 12px; }
.policy-list a { display: flex; align-items: center; gap: 14px; padding: 14px 16px; background: var(--surface); border: 1px solid var(--line); border-radius: var(--radius); text-decoration: none; color: var(--ink); font-weight: 700; }
.policy-list a:hover { border-color: var(--accent); }
.policy-list img { width: 44px; height: 44px; border-radius: 11px; }
.policy-list span { display: block; font-weight: 400; color: var(--muted); font-size: 15px; }

.lost { text-align: center; padding: 80px 0 40px; }
.lost img { width: 120px; height: 120px; }
.lost h1 { font-size: 34px; margin: 16px 0 8px; }
.lost p { color: var(--muted); margin: 0 0 24px; }

@media (max-width: 520px) {
  body { font-size: 16px; }
  .hero { padding-top: 40px; }
  .header-row { padding-top: 8px; padding-bottom: 8px; }
  .site-header nav a { padding: 6px 10px; }
  .contact { padding: 20px; }
}

@media print {
  .site-header nav, .site-footer, .preview-bar { display: none; }
  body { background: #fff; color: #000; }
}
