/* Useless Notifications — design tokens + layout.
   Palette/type/spacing follow first-viewport.png: off-white background, near-
   black text, a single black CTA, hairline borders, no color accent beyond
   black/white. System font stack (no self-hosted webfont): keeps the CSP at
   font-src 'self' trivially and avoids an extra network-fetched asset, while
   staying visually close to the mockup's geometric sans-serif. */

:root {
  --bg: #fafaf9;
  --surface: #ffffff;
  --text: #111111;
  --muted: #6b6b6b;
  --muted-2: #9a9a9a;
  --border: #e5e5e5;
  --border-strong: #111111;
  --danger: #b3261e;
  --focus: #2563eb;

  --font-sans:
    -apple-system, BlinkMacSystemFont, 'Segoe UI', system-ui, Roboto, 'Helvetica Neue', Arial, sans-serif;

  --max-width: 720px;
  --gutter: 20px;
  --radius: 14px;
  --radius-sm: 10px;

  color-scheme: light;
}

@media (prefers-color-scheme: dark) {
  :root:not([data-theme='light']) {
    --bg: #0b0b0c;
    --surface: #151516;
    --text: #f2f2f0;
    --muted: #9c9c9c;
    --muted-2: #737373;
    --border: #2a2a2b;
    --border-strong: #f2f2f0;
    --danger: #ff6b60;
    --focus: #6ea8ff;
    color-scheme: dark;
  }
}

:root[data-theme='dark'] {
  --bg: #0b0b0c;
  --surface: #151516;
  --text: #f2f2f0;
  --muted: #9c9c9c;
  --muted-2: #737373;
  --border: #2a2a2b;
  --border-strong: #f2f2f0;
  --danger: #ff6b60;
  --focus: #6ea8ff;
  color-scheme: dark;
}

* {
  box-sizing: border-box;
}

html {
  -webkit-text-size-adjust: 100%;
}

body {
  margin: 0;
  background: var(--bg);
  color: var(--text);
  font-family: var(--font-sans);
  line-height: 1.5;
  -webkit-font-smoothing: antialiased;
  text-rendering: optimizeLegibility;
}

a {
  color: inherit;
}

button {
  font-family: inherit;
}

:focus-visible {
  outline: 2px solid var(--focus);
  outline-offset: 2px;
}

.wrap {
  max-width: 1040px;
  margin: 0 auto;
  padding: 0 var(--gutter);
}

/* ---------- Header ---------- */

.site-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 28px 0 0;
}

.brand {
  display: flex;
  align-items: center;
  gap: 10px;
  font-weight: 600;
  font-size: 16px;
  letter-spacing: -0.01em;
}

.brand svg {
  width: 20px;
  height: 20px;
  flex: none;
}

.lang-switch {
  display: flex;
  align-items: center;
  gap: 8px;
  font-size: 14px;
  font-weight: 600;
  letter-spacing: 0.02em;
}

.lang-switch .sep {
  color: var(--border);
}

.lang-btn {
  appearance: none;
  border: none;
  background: none;
  color: var(--muted-2);
  cursor: pointer;
  padding: 4px 2px;
}

.lang-btn[aria-pressed='true'] {
  color: var(--text);
}

.lang-btn:hover {
  color: var(--text);
}

/* ---------- Hero / state machine ---------- */

.hero {
  min-height: calc(100svh - 90px);
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  text-align: center;
  padding: 48px 0 32px;
}

.hero-inner {
  width: 100%;
  max-width: var(--max-width);
  display: flex;
  flex-direction: column;
  align-items: center;
}

.headline {
  margin: 0 0 20px;
  font-size: clamp(34px, 6.4vw, 68px);
  line-height: 1.06;
  font-weight: 800;
  letter-spacing: -0.03em;
}

.subcopy {
  margin: 0 0 40px;
  color: var(--muted);
  font-size: clamp(16px, 2.4vw, 19px);
  line-height: 1.5;
  max-width: 560px;
}

.state-message {
  margin: 0 0 28px;
  font-size: clamp(22px, 4vw, 32px);
  font-weight: 700;
  letter-spacing: -0.02em;
}

.state-note {
  margin: -16px 0 28px;
  color: var(--muted);
  font-size: 15px;
  max-width: 480px;
}

/* Frequency picker */

.freq-label {
  font-size: 12px;
  font-weight: 700;
  letter-spacing: 0.14em;
  color: var(--muted-2);
  margin-bottom: 14px;
  text-transform: uppercase;
}

.freq-grid {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 10px;
  width: 100%;
  margin-bottom: 28px;
}

@media (max-width: 640px) {
  .freq-grid {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }
}

.freq-card {
  position: relative;
}

.freq-card input {
  position: absolute;
  inset: 0;
  opacity: 0;
  margin: 0;
  cursor: pointer;
}

.freq-card label {
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 4px;
  min-height: 74px;
  padding: 12px 10px;
  border: 1.5px solid var(--border);
  border-radius: var(--radius-sm);
  cursor: pointer;
  transition: border-color 0.15s ease;
}

.freq-card input:checked + label {
  border-color: var(--border-strong);
}

.freq-card input:focus-visible + label {
  outline: 2px solid var(--focus);
  outline-offset: 2px;
}

.freq-title {
  font-weight: 700;
  font-size: 15px;
  letter-spacing: -0.01em;
}

.freq-sub {
  font-size: 12.5px;
  color: var(--muted);
}

/* Buttons */

.btn {
  appearance: none;
  border: none;
  border-radius: var(--radius-sm);
  font-weight: 700;
  font-size: 16px;
  letter-spacing: -0.01em;
  cursor: pointer;
  padding: 16px 24px;
  width: 100%;
  max-width: var(--max-width);
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  transition:
    transform 0.1s ease,
    opacity 0.15s ease;
}

.btn:active {
  transform: scale(0.99);
}

.btn:disabled {
  opacity: 0.5;
  cursor: not-allowed;
}

.btn-primary {
  background: var(--border-strong);
  color: var(--bg);
}

.btn-secondary {
  background: transparent;
  color: var(--text);
  border: 1.5px solid var(--border);
}

.btn-inline {
  display: inline-flex;
  width: auto;
  padding: 12px 20px;
  text-decoration: none;
}

.btn-text {
  background: none;
  border: none;
  color: var(--muted);
  font-weight: 600;
  font-size: 14px;
  padding: 8px;
  width: auto;
  text-decoration: underline;
  text-underline-offset: 3px;
}

.btn-text:hover {
  color: var(--text);
}

.btn-row {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 14px;
  width: 100%;
}

.caption {
  margin-top: 14px;
  font-size: 13px;
  color: var(--muted-2);
}

.state-icon {
  font-size: 32px;
  margin-bottom: 16px;
}

.ios-install-steps {
  margin: -16px 0 28px;
  padding: 0;
  list-style: none;
  counter-reset: ios-step;
  max-width: 480px;
}

.ios-install-steps li {
  counter-increment: ios-step;
  display: flex;
  align-items: center;
  gap: 10px;
  margin-top: 10px;
  color: var(--muted);
  font-size: 15px;
}

.ios-install-steps li::before {
  content: counter(ios-step);
  flex: none;
  display: flex;
  align-items: center;
  justify-content: center;
  width: 20px;
  height: 20px;
  border-radius: 50%;
  background: var(--muted);
  color: var(--bg);
  font-size: 12px;
  font-weight: 700;
}

.ios-share-icon {
  flex: none;
  color: var(--muted);
}

/* Scroll chevron */

.chevron-link {
  display: flex;
  justify-content: center;
  padding-bottom: 28px;
  color: var(--muted-2);
}

.chevron-link svg {
  width: 22px;
  height: 22px;
}

@media (prefers-reduced-motion: no-preference) {
  .chevron-link svg {
    animation: chevron-bob 2.2s ease-in-out infinite;
  }
}

@keyframes chevron-bob {
  0%,
  100% {
    transform: translateY(0);
  }
  50% {
    transform: translateY(4px);
  }
}

/* ---------- Below the fold ---------- */

.more {
  border-top: 1px solid var(--border);
  padding: 64px 0 40px;
}

.more-inner {
  max-width: 1040px;
  margin: 0 auto;
  padding: 0 var(--gutter);
}

.section-title {
  font-size: 12px;
  font-weight: 700;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: var(--muted-2);
  margin: 0 0 20px;
}

.samples {
  margin-bottom: 56px;
}

.sample-grid {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 12px;
}

@media (max-width: 720px) {
  .sample-grid {
    grid-template-columns: 1fr;
  }
}

.sample-card {
  border: 1px solid var(--border);
  border-radius: var(--radius);
  padding: 16px 18px;
  background: var(--surface);
  display: flex;
  gap: 12px;
  align-items: flex-start;
}

.sample-icon {
  flex: none;
  width: 32px;
  height: 32px;
  border-radius: 8px;
  background: var(--bg);
  border: 1px solid var(--border);
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 16px;
}

.sample-body {
  min-width: 0;
}

.sample-title {
  font-weight: 700;
  font-size: 14px;
  margin: 0 0 4px;
}

.sample-text {
  font-size: 13.5px;
  color: var(--muted);
  margin: 0;
  line-height: 1.45;
}

.faq {
  margin-bottom: 48px;
  max-width: 640px;
}

.faq-item {
  border-bottom: 1px solid var(--border);
  padding: 16px 0;
}

.faq-item:first-child {
  border-top: 1px solid var(--border);
}

.faq-q {
  font-weight: 600;
  font-size: 15px;
  margin: 0 0 6px;
}

.faq-a {
  font-size: 14px;
  color: var(--muted);
  margin: 0;
  line-height: 1.5;
}

.site-footer {
  font-size: 13px;
  color: var(--muted-2);
  padding-top: 8px;
}

.site-footer p {
  margin: 0;
}

.site-footer .credit {
  margin-top: 6px;
}

.credit a {
  color: var(--muted-2);
  text-decoration: underline;
  text-underline-offset: 2px;
}

.credit a:hover {
  color: var(--text);
}

/* ---------- Notification detail page (/n) ---------- */

.detail-wrap {
  max-width: 480px;
  margin: 0 auto;
  padding: 64px var(--gutter);
  text-align: center;
}

.detail-kicker {
  font-size: 12px;
  font-weight: 700;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  color: var(--muted-2);
  margin-bottom: 18px;
}

.detail-title {
  font-size: 26px;
  font-weight: 800;
  letter-spacing: -0.02em;
  margin: 0 0 14px;
}

.detail-body {
  color: var(--muted);
  font-size: 16px;
  line-height: 1.55;
  margin: 0 0 32px;
}

.visually-hidden {
  position: absolute;
  width: 1px;
  height: 1px;
  padding: 0;
  margin: -1px;
  overflow: hidden;
  clip: rect(0, 0, 0, 0);
  white-space: nowrap;
  border: 0;
}
