/* One Thing's pages at ltblapps.com/onething. Dark, like the app (D17); yellow only for the main action
   and the mark (D18). No scripts, no inline styles: the CSP allows neither. */
:root {
  color-scheme: dark;
  --bg: #000;
  --card: #1c1c1e;
  --line: #2c2c2e;
  --text: #fff;
  --muted: #a1a1a6;
  --yellow: #ffd23f;
  --round: ui-rounded, "SF Pro Rounded", system-ui, -apple-system, "Segoe UI", sans-serif;
  --body: system-ui, -apple-system, "Segoe UI", Roboto, sans-serif;
}

* { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; }
body {
  margin: 0;
  background: var(--bg);
  color: var(--text);
  font: 17px/1.55 var(--body);
}
img { max-width: 100%; height: auto; display: block; }
a { color: var(--text); text-underline-offset: 3px; }
a:hover { color: var(--yellow); }
a:focus-visible { outline: 2px solid var(--yellow); outline-offset: 3px; border-radius: 6px; }

.skip { position: absolute; left: -9999px; }
.skip:focus { left: 16px; top: 16px; background: var(--card); padding: 8px 12px; border-radius: 8px; z-index: 1; }

.shell { max-width: 1040px; margin: 0 auto; padding: 0 24px; }

/* Header and footer */
.site-header { display: flex; align-items: center; justify-content: space-between; gap: 16px; padding: 22px 0; }
.brand { display: inline-flex; align-items: center; gap: 10px; text-decoration: none; font: 700 19px/1 var(--round); }
.brand img { width: 32px; height: 32px; border-radius: 8px; border: 1px solid var(--line); }
.site-header nav, .site-footer nav { display: flex; gap: 20px; flex-wrap: wrap; }
.site-header nav a, .site-footer nav a { color: var(--muted); text-decoration: none; font-size: 15px; }
.site-header nav a:hover, .site-footer nav a:hover { color: var(--text); }
.site-footer { border-top: 1px solid var(--line); margin-top: 72px; padding: 28px 0 40px; display: flex; justify-content: space-between; gap: 16px; flex-wrap: wrap; color: var(--muted); font-size: 14px; }
.site-footer p { margin: 0; }

/* Type */
h1, h2, h3 { font-family: var(--round); line-height: 1.1; margin: 0; }
h1 { font-size: clamp(40px, 7vw, 68px); font-weight: 800; letter-spacing: -0.02em; }
h2 { font-size: clamp(26px, 4vw, 34px); font-weight: 750; }
h3 { font-size: 20px; font-weight: 700; }
.eyebrow { color: var(--muted); font: 600 13px/1 var(--body); letter-spacing: 0.08em; text-transform: uppercase; margin: 0 0 14px; }
.lede { font-size: 20px; color: var(--text); max-width: 34em; }
.muted { color: var(--muted); }

/* Home */
.hero { display: grid; grid-template-columns: 1.1fr 0.9fr; gap: 48px; align-items: center; padding: 40px 0 24px; }
.hero h1 { margin-bottom: 20px; }
.hero .lede { margin: 0 0 16px; }
.actions { display: flex; gap: 14px; flex-wrap: wrap; align-items: center; margin-top: 26px; }
.button { display: inline-block; background: var(--yellow); color: #000; font: 700 17px/1 var(--round); padding: 16px 24px; border-radius: 999px; text-decoration: none; }
.button:hover { color: #000; filter: brightness(1.06); }
.text-link { color: var(--text); font-weight: 600; text-decoration: none; padding: 12px 4px; }
.status { margin-top: 18px; color: var(--muted); font-size: 15px; }

.phone { border: 1px solid var(--line); border-radius: 44px; overflow: hidden; background: #000; max-width: 330px; margin: 0 auto; }

.features { display: grid; grid-template-columns: repeat(2, 1fr); gap: 16px; margin-top: 56px; }
.card { background: var(--card); border-radius: 22px; padding: 26px; }
.card h3 { margin-bottom: 12px; }
.card ul { margin: 0; padding-left: 20px; color: var(--muted); }
.card li { margin: 6px 0; }
.card li::marker { color: var(--muted); }

.stories { margin-top: 56px; }
.stories h2 { margin-bottom: 18px; }
.story-grid { display: grid; grid-template-columns: repeat(4, 1fr); gap: 16px; }
.story .amount { margin: 0 0 10px; font-size: 17px; font-weight: 600; }
.story .muted { margin: 0; }

.shots { display: grid; grid-template-columns: repeat(3, 1fr); gap: 20px; margin-top: 64px; }
.shots figure { margin: 0; }
.shots figcaption { margin-top: 12px; color: var(--muted); font-size: 15px; text-align: center; }

.plus { margin-top: 64px; background: var(--card); border-radius: 22px; padding: 30px; display: grid; grid-template-columns: 1fr 1fr; gap: 28px; }
.plus p { margin: 10px 0 0; }
.plus ul { margin: 0; padding-left: 20px; color: var(--muted); }
.plus li { margin: 6px 0; }

/* Text pages: support, privacy, terms */
.page { max-width: 720px; padding: 32px 0 0; }
.page h1 { font-size: clamp(34px, 6vw, 48px); margin-bottom: 12px; }
.page h2 { font-size: 24px; margin: 40px 0 10px; }
.page h3 { margin: 26px 0 6px; }
.page p, .page li { color: #e5e5ea; }
.page ul, .page ol { padding-left: 22px; }
.page ol li { margin: 8px 0; }
.page .updated { color: var(--muted); margin-top: 0; }
.contact { background: var(--card); border-radius: 18px; padding: 22px 24px; margin: 24px 0 8px; }
.contact p { margin: 0; }
.contact p + p { margin-top: 6px; color: var(--muted); }

@media (max-width: 1000px) {
  .story-grid { grid-template-columns: repeat(2, 1fr); }
}

@media (max-width: 760px) {
  .shell { padding: 0 16px; }
  .hero { grid-template-columns: 1fr; gap: 36px; padding-top: 20px; }
  .features, .plus, .story-grid { grid-template-columns: 1fr; }
  .shots { grid-template-columns: 1fr; max-width: 330px; margin-left: auto; margin-right: auto; }
  .site-footer { flex-direction: column; }
}
