/* somethingworks.app. The tokens are the design's; every value below is the
   approved reference's inline style, moved here so the page can run under
   default-src 'self'. */

:root {
  --bg: #FBFAF8;
  --surface: #FFFFFF;
  --surface-soft: #F0EEE9;
  --surface-soft-2: #F2F1ED;
  --ink: #1C1C1A;
  --text-2: #3F3E3B;
  --muted: #6B6A66;
  --border: #E2E0DA;
  --border-strong: #D6D4CE;
  --accent: #2F4FD8;
  --accent-hover: #1F3AAE;
  --accent-tint: #EEF1FD;
  --dark: #1C1C1A;
  --dark-text: #F2F1ED;
  --dark-text-2: #CFCDC7;
  --dark-label: #B9B7B1;

  --sans: -apple-system, 'SF Pro Text', system-ui, sans-serif;
  --mono: ui-monospace, 'SF Mono', monospace;
  --wide: 1160px;
}

*, *::before, *::after { box-sizing: border-box; }

body {
  margin: 0;
  background: var(--bg);
  color: var(--ink);
  font-family: var(--sans);
  font-size: 17px;
  line-height: 1.5;
}

a { color: var(--accent); }
a:hover { color: var(--accent-hover); }

:focus-visible {
  outline: 2px solid var(--accent);
  outline-offset: 3px;
  border-radius: 4px;
}
.dark :focus-visible { outline-color: var(--dark-text); }

.skip {
  position: absolute;
  left: 16px;
  top: -48px;
  padding: 8px 14px;
  border-radius: 999px;
  background: var(--ink);
  color: var(--dark-text);
  text-decoration: none;
  font-weight: 600;
  font-size: 15px;
}
.skip:focus { top: 12px; color: var(--dark-text); }

.wrap {
  max-width: var(--wide);
  margin: 0 auto;
  padding-left: 24px;
  padding-right: 24px;
}

.label {
  font-family: var(--mono);
  font-size: 13px;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: var(--muted);
}

.dot {
  border-radius: 50%;
  background: var(--accent);
  flex: none;
}

/* Header */

.site-header { border-bottom: 1px solid var(--border); }

.nav {
  padding-top: 18px;
  padding-bottom: 18px;
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
}

.wordmark {
  display: flex;
  align-items: center;
  gap: 10px;
  color: var(--ink);
  text-decoration: none;
  font-weight: 700;
  font-size: 18px;
  letter-spacing: -0.01em;
}
.wordmark:hover { color: var(--ink); }
.wordmark .dot { width: 14px; height: 14px; }

.nav-links {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 24px;
  font-size: 15px;
}
.nav-links a { color: var(--text-2); text-decoration: none; }
.nav-links a:hover { color: var(--accent-hover); }

.pill-soon {
  display: inline-flex;
  align-items: center;
  min-height: 36px;
  padding: 0 14px;
  border-radius: 999px;
  background: var(--accent-tint);
  color: var(--accent-hover);
  font-weight: 600;
  font-size: 14px;
}

/* Hero */

.hero {
  padding-top: 120px;
  padding-bottom: 96px;
  display: flex;
  flex-direction: column;
  gap: 28px;
}

h1 {
  margin: 0;
  font-size: clamp(48px, 8vw, 104px);
  line-height: 1.0;
  letter-spacing: -0.04em;
  font-weight: 700;
  max-width: 12ch;
}

.lede {
  margin: 0;
  max-width: 40ch;
  font-size: 21px;
  color: var(--text-2);
}

.cta-row {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 12px;
  padding-top: 8px;
}

.pill-launch {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  min-height: 48px;
  padding: 0 20px;
  border-radius: 999px;
  background: var(--surface);
  box-shadow: inset 0 0 0 1px var(--border-strong);
  font-weight: 600;
  font-size: 16px;
}
.pill-launch .dot { width: 8px; height: 8px; }

.shot {
  display: block;
  margin-top: 40px;
  width: 100%;
  height: auto;
  border-radius: 20px;
  background: var(--surface-soft);
  box-shadow: 0 0 0 1px var(--border);
}

/* Sections */

.section { padding-top: 96px; padding-bottom: 96px; }
.rule-top { border-top: 1px solid var(--border); }

.stack-48 { display: flex; flex-direction: column; gap: 48px; }
.head { display: flex; flex-direction: column; gap: 12px; }

h2 {
  margin: 0;
  font-size: clamp(32px, 4.5vw, 52px);
  line-height: 1.08;
  letter-spacing: -0.03em;
  max-width: 18ch;
}

.apps {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(min(320px, 100%), 1fr));
  gap: 16px;
}

.card {
  background: var(--surface);
  border-radius: 16px;
  box-shadow: inset 0 0 0 1px var(--border);
  padding: 28px;
  display: flex;
  flex-direction: column;
  gap: 12px;
}
.card svg {
  width: 28px;
  height: 28px;
  fill: none;
  stroke: var(--accent);
  stroke-width: 1.8;
  stroke-linecap: round;
  stroke-linejoin: round;
}
h3 { margin: 0; }
.card h3 { font-size: 21px; letter-spacing: -0.01em; }
.card p { margin: 0; color: var(--text-2); font-size: 16px; }

/* Privacy, the dark section */

.dark { background: var(--dark); color: var(--dark-text); }
.dark .label { color: var(--dark-label); }

.points {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(min(240px, 100%), 1fr));
  gap: 32px;
}
.point { display: flex; flex-direction: column; gap: 8px; }
.point h3 { font-size: 19px; }
.point p { margin: 0; color: var(--dark-text-2); font-size: 16px; }

/* Coming soon */

.soon { border-top: 1px solid var(--border); background: var(--surface-soft-2); }
.soon .wrap {
  padding-top: 112px;
  padding-bottom: 112px;
  display: flex;
  flex-direction: column;
  align-items: center;
  text-align: center;
  gap: 24px;
}
.soon h2 {
  font-size: clamp(36px, 5.5vw, 64px);
  line-height: 1.05;
  letter-spacing: -0.035em;
  max-width: none;
}
.soon p { margin: 0; max-width: 38ch; color: var(--text-2); font-size: 19px; }

/* Footer */

.site-footer { border-top: 1px solid var(--border); }
.site-footer .wrap {
  padding-top: 32px;
  padding-bottom: 32px;
  display: flex;
  flex-wrap: wrap;
  justify-content: space-between;
  gap: 16px;
  font-size: 14px;
  color: var(--muted);
}
.footer-links { display: flex; flex-wrap: wrap; gap: 20px; }
.footer-links a { color: var(--muted); }
.footer-links a:hover { color: var(--accent-hover); }

/* 404 */

.missing {
  padding-top: 120px;
  padding-bottom: 120px;
  display: flex;
  flex-direction: column;
  gap: 28px;
}
.missing h1 { max-width: 14ch; }
a.pill-launch { color: var(--ink); text-decoration: none; }
a.pill-launch:hover { color: var(--accent-hover); }
