/* Sundial product site. Paper palette from the app icon: near-white, ink,
   one orange. Dark mode swaps paper and ink and keeps the orange. */
:root {
  --paper: #fbfbfc;
  --tile: #ffffff;
  --ink: #15161a;
  --soft: #5b5e66;
  --line: #e4e6eb;
  --sun: #ff9f1c;
  --sun-ink: #8a4b00;
  --wash: #fff4e2;
  color-scheme: light dark;
}
@media (prefers-color-scheme: dark) {
  :root { --paper: #131417; --tile: #1c1d21; --ink: #f2f3f5; --soft: #a3a6ae; --line: #2c2e34; --sun-ink: #ffc978; --wash: #2a2014; }
}
* { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; }
body { margin: 0; background: var(--paper); color: var(--ink); font: 17px/1.6 -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, sans-serif; }
a { color: inherit; }
.wrap { max-width: 1040px; margin: 0 auto; padding: 0 24px; }
header.top { display: flex; align-items: center; justify-content: space-between; padding: 22px 0; }
.brand { display: flex; align-items: center; gap: 10px; font-weight: 700; font-size: 18px; text-decoration: none; }
.brand img { width: 34px; height: 34px; }
nav a { margin-left: 22px; color: var(--soft); text-decoration: none; font-size: 15px; }
nav a:hover { color: var(--ink); }

.hero { display: grid; grid-template-columns: minmax(0, 1.1fr) minmax(0, 0.9fr); gap: 48px; align-items: center; padding: 56px 0 72px; }
.hero h1 { margin: 0 0 16px; font-size: clamp(38px, 6vw, 62px); line-height: 1.04; letter-spacing: -0.03em; }
.hero p.lede { margin: 0 0 28px; color: var(--soft); font-size: 20px; max-width: 34ch; }
.cta { display: flex; flex-wrap: wrap; align-items: center; gap: 14px 18px; }
.button { display: inline-flex; align-items: center; gap: 10px; padding: 14px 24px; border-radius: 12px; background: var(--ink); color: var(--paper); font-weight: 650; text-decoration: none; transition: transform 140ms ease, box-shadow 140ms ease; }
.button:hover { transform: translateY(-1px); box-shadow: 0 10px 24px rgba(0, 0, 0, 0.18); }
.button:focus-visible, a:focus-visible { outline: 3px solid var(--sun); outline-offset: 3px; border-radius: 6px; }
.button svg { width: 18px; height: 18px; }
.fine { color: var(--soft); font-size: 14px; margin: 14px 0 0; }
.hero-art { display: grid; place-items: center; }
.hero-art img { width: min(100%, 340px); height: auto; filter: drop-shadow(0 24px 40px rgba(0, 0, 0, 0.16)); }

section { padding: 56px 0; border-top: 1px solid var(--line); }
h2 { margin: 0 0 8px; font-size: clamp(26px, 3.4vw, 34px); letter-spacing: -0.02em; }
.sub { margin: 0 0 32px; color: var(--soft); max-width: 60ch; }
.grid { display: grid; grid-template-columns: repeat(auto-fit, minmax(250px, 1fr)); gap: 16px; }
.card { background: var(--tile); border: 1px solid var(--line); border-radius: 16px; padding: 22px; }
.card h3 { margin: 0 0 6px; font-size: 18px; }
.card p { margin: 0; color: var(--soft); font-size: 15.5px; }
.dot { display: inline-block; width: 10px; height: 10px; border-radius: 50%; background: var(--sun); margin-right: 8px; }

ol.steps { list-style: none; margin: 0; padding: 0; display: grid; gap: 14px; counter-reset: step; }
ol.steps li { counter-increment: step; display: grid; grid-template-columns: 40px 1fr; gap: 14px; background: var(--tile); border: 1px solid var(--line); border-radius: 16px; padding: 18px 20px; }
ol.steps li::before { content: counter(step); display: grid; place-items: center; width: 34px; height: 34px; border-radius: 50%; background: var(--wash); color: var(--sun-ink); font-weight: 700; font-variant-numeric: tabular-nums; }
ol.steps strong { display: block; }
ol.steps span { color: var(--soft); font-size: 15.5px; }
.note { margin: 22px 0 0; padding: 16px 18px; border-radius: 14px; background: var(--wash); color: var(--sun-ink); font-size: 15.5px; }
code { font: 0.92em ui-monospace, SFMono-Regular, Menlo, monospace; background: var(--line); padding: 1px 6px; border-radius: 6px; }

footer { padding: 32px 0 48px; border-top: 1px solid var(--line); color: var(--soft); font-size: 14.5px; display: flex; flex-wrap: wrap; gap: 8px 24px; justify-content: space-between; }
footer a { color: var(--soft); }

.doc { max-width: 720px; padding: 24px 0 72px; }
.doc h1 { font-size: clamp(30px, 5vw, 42px); letter-spacing: -0.02em; margin: 24px 0 6px; }
.doc h2 { font-size: 22px; margin: 34px 0 8px; }
.doc p, .doc li { color: var(--soft); }
.doc .updated { font-size: 14.5px; }

@media (max-width: 760px) {
  .hero { grid-template-columns: 1fr; padding: 28px 0 48px; gap: 28px; }
  .hero-art { order: -1; justify-items: start; }
  .hero-art img { width: 132px; }
  nav a { margin-left: 14px; }
}
@media (prefers-reduced-motion: reduce) { .button { transition: none; } .button:hover { transform: none; } }
