/* Dots at Home: one stylesheet for every page. Apple-quiet: system font, one blue button. */
:root {
  --bg: #fbfbfd; --fg: #1d1d1f; --dim: #6e6e73; --line: #d2d2d7; --card: #ffffff;
  --accent: #0071e3; --accent-hover: #0077ed;
  --holly: #5e5ce6; --buddy: #c0392b;
}
/* Theme: Auto (no data-theme) follows the device; data-theme="light" or "dark" forces one. */
:root:not([data-theme]) { color-scheme: light dark; }
:root[data-theme="light"] { color-scheme: light; }
@media (prefers-color-scheme: dark) {
  :root:not([data-theme]) {
    --bg: #000000; --fg: #f5f5f7; --dim: #a1a1a6; --line: #333336; --card: #161617;
    --accent: #2997ff; --accent-hover: #47a6ff;
  }
}
:root[data-theme="dark"] {
  color-scheme: dark;
  --bg: #000000; --fg: #f5f5f7; --dim: #a1a1a6; --line: #333336; --card: #161617;
  --accent: #2997ff; --accent-hover: #47a6ff;
}
* { box-sizing: border-box; }
[hidden] { display: none !important; }   /* hidden always wins over a display rule */
body {
  margin: 0; background: var(--bg); color: var(--fg);
  font: 17px/1.55 -apple-system, BlinkMacSystemFont, "SF Pro Text", "Helvetica Neue", sans-serif;
  -webkit-font-smoothing: antialiased;
}
.wrap { max-width: 980px; margin: 0 auto; padding: 0 22px; }
a { color: var(--accent); }

/* Nav */
nav { border-bottom: 1px solid var(--line); }
nav .wrap { display: flex; align-items: center; justify-content: space-between; height: 52px; gap: 12px; }
nav .brand { color: var(--fg); text-decoration: none; font-weight: 600; letter-spacing: -0.01em; white-space: nowrap; }
nav .right { display: flex; align-items: center; gap: 16px; }
nav .links a { color: var(--dim); text-decoration: none; font-size: 14px; }
nav .links a:hover { color: var(--fg); }
nav .links { display: flex; gap: 16px; }
.theme { display: inline-flex; padding: 2px; gap: 2px; border: 1px solid var(--line); border-radius: 980px; }
.theme button {
  border: 0; background: none; color: var(--dim); font: inherit; font-size: 13px; line-height: 1;
  padding: 5px 10px; border-radius: 980px; cursor: pointer;
}
.theme button:hover { color: var(--fg); }
.theme button[aria-pressed="true"] { background: var(--card); color: var(--fg); box-shadow: 0 0 0 1px var(--line); }
.theme button:focus-visible { outline: 2px solid var(--accent); outline-offset: 1px; }

/* Sign in (Supabase Auth). Hidden until the site has its publishable key. */
.signin, .me button, .notify { font: inherit; cursor: pointer; border-radius: 980px; }
.signin { border: 1px solid var(--line); background: none; color: var(--fg); font-size: 13px; padding: 5px 12px; white-space: nowrap; }
.signin:hover { border-color: var(--dim); }
.me { display: inline-flex; align-items: center; gap: 8px; font-size: 13px; color: var(--dim); }
.me img { width: 24px; height: 24px; border-radius: 50%; background: var(--line); }
.me button { border: 0; background: none; color: var(--dim); font-size: 13px; padding: 0; text-decoration: underline; white-space: nowrap; }
@media (max-width: 600px) {
  .me .name, nav .links { display: none; }
  nav .right { gap: 10px; }
  .theme button { padding: 5px 8px; }
}
dialog.sign {
  border: 1px solid var(--line); border-radius: 18px; background: var(--card); color: var(--fg);
  padding: 28px; width: min(360px, calc(100vw - 32px));
}
dialog.sign::backdrop { background: rgba(0, 0, 0, 0.45); }
dialog.sign h2 { font-size: 22px; letter-spacing: -0.01em; margin: 0 0 6px; text-align: left; }
dialog.sign p { color: var(--dim); font-size: 15px; margin: 0 0 18px; }
dialog.sign .provider {
  display: flex; align-items: center; justify-content: center; gap: 10px; width: 100%; height: 44px;
  margin-bottom: 10px; border: 1px solid var(--line); border-radius: 12px; background: var(--bg);
  color: var(--fg); font: inherit; font-size: 16px; font-weight: 500; cursor: pointer;
}
dialog.sign .provider:hover { border-color: var(--dim); }
dialog.sign .provider svg { width: 20px; height: 20px; }
dialog.sign .fine a { color: var(--dim); }
dialog.sign .close { margin-top: 6px; border: 0; background: none; color: var(--dim); font: inherit; font-size: 14px; cursor: pointer; }

/* Buttons */
.ctas { display: flex; flex-wrap: wrap; justify-content: center; gap: 14px; }
.pill {
  font: inherit; font-size: 15px; line-height: 1.2; padding: 9px 20px; border-radius: 980px; cursor: pointer;
  border: 1px solid var(--accent); background: var(--accent); color: #fff; text-decoration: none;
}
.pill:hover { background: var(--accent-hover); border-color: var(--accent-hover); }
.pill.ghost { background: none; color: var(--accent); }
.pill.ghost:hover { background: color-mix(in srgb, var(--accent) 10%, transparent); }
.pill.notify.on { background: var(--accent); color: #fff; }

/* Big statements */
.statement { text-align: center; padding-top: 112px; padding-bottom: 104px; }
.statement h1, .statement h2 { font-size: clamp(44px, 7vw, 80px); line-height: 1.02; letter-spacing: -0.035em; margin: 0; font-weight: 700; text-wrap: balance; }
.statement p { font-size: clamp(22px, 3.2vw, 36px); font-weight: 600; letter-spacing: -0.02em; margin: 16px auto 0; max-width: 760px; color: var(--fg); text-wrap: balance; }
.statement .quiet { color: var(--dim); }
.statement p.fine { font-size: 17px; font-weight: 400; letter-spacing: 0; color: var(--dim); margin-top: 28px; }

section h2 { font-size: clamp(28px, 4vw, 40px); letter-spacing: -0.02em; margin: 0 0 8px; text-align: center; text-wrap: balance; }
section .sub { text-align: center; color: var(--dim); margin: 0 auto 32px; max-width: 620px; text-wrap: balance; }
.fine { color: var(--dim); font-size: 14px; margin-top: 14px; }
.fine a { color: var(--accent); text-decoration: none; }
.fine a:hover { text-decoration: underline; }

/* Product tiles, Apple-home style, tinted with each product's color (--tint). */
.tiles { padding: 0 12px 12px; }
.tile-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 12px; }
.tile {
  display: flex; flex-direction: column; align-items: center; text-align: center; overflow: hidden;
  padding: 56px 28px 0; min-height: 520px; background: color-mix(in srgb, var(--tint) 11%, var(--bg));
}
.tile .kind { margin: 0 0 6px; color: var(--dim); font-size: 14px; font-weight: 600; text-transform: uppercase; letter-spacing: 0.04em; }
.tile h2 { margin: 0; font-size: clamp(34px, 4.6vw, 48px); line-height: 1.08; letter-spacing: -0.025em; }
.tile .tagline { margin: 8px 0 22px; font-size: clamp(18px, 2.1vw, 22px); color: var(--fg); max-width: 420px; text-wrap: balance; }
.tile .art {
  margin-top: auto; margin-bottom: 56px; width: 168px; height: 168px; border-radius: 22.5%;
  box-shadow: 0 14px 30px rgba(0, 0, 0, 0.18); transition: transform 0.35s cubic-bezier(0.3, 1.6, 0.5, 1);
}
.tile .art:hover { transform: rotate(-6deg) scale(1.04); }
@media (prefers-reduced-motion: reduce) { .tile .art { transition: none; } }
@media (max-width: 734px) { .tile-grid { grid-template-columns: 1fr; } .tile { min-height: 460px; } }

/* Feature cards */
.features { padding-top: 104px; padding-bottom: 32px; }
.cards { display: grid; grid-template-columns: repeat(3, 1fr); gap: 12px; }
@media (max-width: 860px) { .cards { grid-template-columns: 1fr 1fr; } }
@media (max-width: 560px) { .cards { grid-template-columns: 1fr; } }
.card { background: var(--card); border: 1px solid var(--line); border-radius: 18px; padding: 24px; }
.card h3 { margin: 0 0 6px; font-size: 19px; letter-spacing: -0.01em; }
.card p { margin: 0; color: var(--dim); font-size: 16px; }
.card .icon { font-size: 26px; line-height: 1; margin-bottom: 14px; display: block; }

/* Side-by-side comparison */
.compare-wrap { max-width: 980px; margin: 0 auto; overflow-x: auto; }
table.compare { width: 100%; border-collapse: collapse; font-size: 16px; }
.compare th, .compare td { text-align: left; padding: 12px 14px 12px 0; border-bottom: 1px solid var(--line); vertical-align: top; }
.compare th { color: var(--fg); font-weight: 600; }
.compare td { color: var(--dim); }
.compare .us { color: var(--fg); font-weight: 600; }
.compare.wide { min-width: 720px; font-size: 15px; }

/* Long-form text */
.narrow { max-width: 680px; margin: 0 auto 72px; }
.narrow p, .narrow li { color: var(--dim); }
.narrow li { margin: 6px 0; }
.narrow strong { color: var(--fg); font-weight: 600; }
.box { max-width: 680px; margin: 0 auto 72px; padding: 20px 24px; border: 1px solid var(--line); border-radius: 14px; background: var(--card); color: var(--dim); font-size: 15px; }

footer { border-top: 1px solid var(--line); padding: 28px 0 48px; color: var(--dim); font-size: 13px; }
footer p { margin: 4px 0; }
footer a { color: var(--dim); }
.social { display: inline-flex; align-items: center; gap: 12px; margin-top: 10px; }
.social a { display: inline-flex; color: var(--dim); }
.social a:hover { color: var(--fg); }
.social svg { width: 18px; height: 18px; }
