/* Dagur's site, in Daybreak, the apps' design (docs/design/README.md): paper-white grounds, sky blue for every action,
   the icon's sun orange only for unread dots, Favorite stars and small marks (never text), SF Pro Rounded for headings
   (the system's own, no font downloads). The top of each page takes the light of the visitor's hour, like the
   sidebar in Dagur (data-hour on <html>, set by a line of script; dawn without it). */
:root {
  color-scheme: light dark;
  --bg: #fbfaf7;            /* paper */
  --surface: #ffffff;
  --sunk: #f3f1ec;
  --text: #1d1d22;          /* ink */
  --text-2: #4a4954;
  --muted: #6c6a73;
  --rule: #e6e3dc;          /* hairline */
  --sky: #2a4cc0;
  --sky-strong: #1d3a9e;
  --sky-tint: #e9eefc;
  --on-sky: #ffffff;
  --sun: #ff7a3d;
  --sun-ink: #a8400f;
  --sun-tint: #ffeadf;
  --hour: #ffe8d6;          /* dawn; see data-hour below */
  --a: #3a63dd;             /* sample account colors (Sky, Meadow, Rose) */
  --b: #1f9d74;
  --c: #c2408f;
  --ok: #1f7a5a;
  --err: #c23b2e;
  --round: ui-rounded, "SF Pro Rounded", -apple-system, BlinkMacSystemFont, "Segoe UI", system-ui, sans-serif;
  --shadow: 0 30px 70px -30px rgba(30, 40, 90, 0.45), 0 2px 6px rgba(30, 40, 90, 0.08);
}
:root[data-hour="noon"] { --hour: #eef1fb; }
:root[data-hour="dusk"] { --hour: #f6e3e6; }
:root[data-hour="night"] { --hour: #e8eaf5; }
@media (prefers-color-scheme: dark) {
  :root {
    --bg: #0f1224; --surface: #161a2e; --sunk: #1b2036; --text: #eceaf4; --text-2: #c9c8d6; --muted: #9b9db4;
    --rule: #262b45; --sky: #8ea6ff; --sky-strong: #b3c3ff; --sky-tint: #1f2850; --on-sky: #0f1224;
    --sun: #ff9a5c; --sun-ink: #ffb98c; --sun-tint: #3a2418; --hour: #2a2448;
    --a: #7c9bff; --b: #4fc79f; --c: #e277b8; --ok: #5fd3a6; --err: #ff8a7a;
    --shadow: 0 30px 70px -30px rgba(0, 0, 0, 0.85), 0 2px 6px rgba(0, 0, 0, 0.4);
  }
  :root[data-hour="noon"] { --hour: #1b2040; }
  :root[data-hour="dusk"] { --hour: #2c2140; }
  :root[data-hour="night"] { --hour: #151935; }
}
* { box-sizing: border-box; }
body {
  margin: 0;
  background: linear-gradient(180deg, var(--hour) 0, var(--bg) 560px) no-repeat, var(--bg);
  color: var(--text);
  font: 17px/1.6 -apple-system, BlinkMacSystemFont, "SF Pro Text", "Segoe UI", "Helvetica Neue", Helvetica, Arial, sans-serif;
  -webkit-font-smoothing: antialiased;
}
a { color: var(--sky); }
a:hover { color: var(--sky-strong); }
:focus-visible { outline: 2px solid var(--sky); outline-offset: 2px; border-radius: 4px; }
h1, h2, h3 { font-family: var(--round); text-wrap: balance; }

/* ---------- Legal pages (privacy, terms, help) ---------- */
main { max-width: 680px; margin: 0 auto; padding: 72px 24px 96px; }
header.brand { display: flex; align-items: center; gap: 14px; margin-bottom: 40px; }
.mark { width: 44px; height: 44px; border-radius: 12px; }
header.brand a { color: inherit; text-decoration: none; font-weight: 650; font-size: 20px; letter-spacing: -0.01em; }
h1 { font-size: 40px; line-height: 1.12; letter-spacing: -0.02em; font-weight: 800; margin: 0 0 12px; }
h2 { font-size: 21px; margin: 36px 0 8px; letter-spacing: -0.01em; font-weight: 750; }
.lede { font-size: 20px; color: var(--text-2); margin: 0 0 32px; }
.muted { color: var(--muted); }
ul { padding-left: 20px; }
main > footer { margin-top: 56px; padding-top: 20px; border-top: 1px solid var(--rule); color: var(--muted); font-size: 15px; display: flex; gap: 20px; flex-wrap: wrap; }
main > footer a { color: var(--muted); }
.note { background: var(--sky-tint); border-radius: 14px; padding: 14px 18px; margin: 24px 0; color: var(--text); }

/* ---------- Site pages (generated by site/build.py) ---------- */
.visually-hidden { position: absolute; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; }
.trap { position: absolute; left: -10000px; width: 1px; height: 1px; opacity: 0; }
.skip { position: absolute; left: -10000px; top: 8px; }
.skip:focus { left: 16px; z-index: 10; background: var(--surface); padding: 8px 14px; border-radius: 999px; }

.icon { width: 24px; height: 24px; flex: none; fill: none; stroke: currentColor; stroke-width: 1.75;
        stroke-linecap: round; stroke-linejoin: round; }

header.site {
  max-width: 1160px; margin: 0 auto; padding: 20px 24px;
  display: flex; align-items: center; justify-content: space-between; gap: 16px;
}
.brand { display: inline-flex; align-items: center; gap: 10px; color: var(--text) !important; text-decoration: none; font-weight: 650; font-size: 19px; letter-spacing: -0.01em; }
.brand img { border-radius: 8px; }
.brand.small { font-size: 15px; gap: 8px; }
.brand.small img { border-radius: 5px; }
header.site nav { display: flex; align-items: center; gap: 22px; font-size: 15px; }
header.site nav a:not(.button) { color: var(--muted); text-decoration: none; }
header.site nav a:not(.button):hover, header.site nav a[aria-current="page"] { color: var(--text); }

.button {
  display: inline-flex; align-items: center; justify-content: center;
  border: 0; border-radius: 999px; padding: 12px 22px;
  background: var(--sky); color: var(--on-sky) !important; font: inherit; font-weight: 600; font-size: 16px;
  text-decoration: none; cursor: pointer; white-space: nowrap;
  box-shadow: 0 8px 20px -10px rgba(42, 76, 192, 0.8);
}
.button:hover { background: var(--sky-strong); }
.button:disabled { opacity: 0.6; cursor: default; }
.button.small { padding: 8px 16px; font-size: 14px; box-shadow: none; }

main.wide { max-width: 1160px; padding: 24px 24px 64px; }

/* Hero: words, then the Mac with the iPhone over its corner. */
.hero { padding: 40px 0 64px; }
.hero-copy { max-width: 760px; }
/* The icon's sun over its three horizon lines, as in the apps' day header. */
.eyebrow { display: inline-flex; align-items: center; gap: 10px; color: var(--sun-ink); font-weight: 700; font-size: 15px; letter-spacing: 0.02em; margin: 0 0 14px; }
.eyebrow .icon { width: 20px; height: 20px; }
.sunrise { display: inline-flex; flex-direction: column; align-items: center; gap: 2px; }
.sunrise i { display: block; height: 2.5px; border-radius: 2px; background: var(--sky); }
.sunrise b { display: block; width: 18px; height: 9px; border-radius: 9px 9px 0 0; background: var(--sun); }
.hero h1, .page-hero h1 { font-size: clamp(38px, 5.2vw, 64px); line-height: 1.04; letter-spacing: -0.03em; font-weight: 800; margin: 0 0 20px; }
.hero .lede, .page-hero .lede { font-size: 20px; line-height: 1.55; margin: 0 0 28px; max-width: 720px; }
.hero .lede strong, .page-hero .lede strong { color: var(--text); }
.fine { color: var(--muted); font-size: 14px; margin: 12px 0 0; }
.hero-shots { position: relative; margin: 56px 0 0; padding-right: 7%; }
.hero-shots .shot.phone.overlap { position: absolute; right: 0; bottom: -40px; width: 21%; }
.hero-note { color: var(--muted); font-size: 13px; margin: 56px 0 0; text-align: center; }
.page-hero { padding: 40px 0 40px; }
.page-hero h1 { font-size: clamp(34px, 4.4vw, 54px); max-width: 900px; }

.waitlist { display: flex; flex-wrap: wrap; gap: 10px; align-items: center; max-width: 520px; }
.waitlist input[type="email"] {
  flex: 1 1 240px; min-width: 0; padding: 12px 16px; border-radius: 999px;
  border: 1px solid var(--rule); background: var(--surface); color: var(--text); font: inherit; font-size: 16px;
}
.waitlist input[type="email"]:focus { outline: 2px solid var(--sky); outline-offset: 1px; }
.form-status { flex-basis: 100%; margin: 4px 0 0; font-size: 15px; min-height: 1.4em; color: var(--muted); }
.form-status[data-state="ok"] { color: var(--ok); }
.form-status[data-state="error"] { color: var(--err); }

/* Screenshots: the Mac's windows keep their own corners; the iPhone gets a phone's. */
.shot { margin: 0; }
.shot img { display: block; width: 100%; height: auto; }
.shot.mac img { border-radius: 12px; box-shadow: var(--shadow); border: 1px solid var(--rule); }
.shot.phone img { border-radius: 13% / 6%; box-shadow: var(--shadow); border: 6px solid #1d1d22; background: #1d1d22; }
.shot figcaption { text-align: center; color: var(--muted); font-size: 14px; margin-top: 14px; }

/* Sections */
.band { padding: 72px 0; border-top: 1px solid var(--rule); }
.band.first { border-top: 0; padding-top: 8px; }
.band h2 { font-size: clamp(28px, 3.4vw, 40px); line-height: 1.12; letter-spacing: -0.025em; font-weight: 800; margin: 0 0 14px; max-width: 760px; }
.section-lede { color: var(--text-2); font-size: 19px; max-width: 680px; margin: 0 0 40px; }
.split { display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 1.05fr); gap: 56px; align-items: center; }
.split .shot.phone { max-width: 300px; justify-self: center; }
.split p { color: var(--text-2); font-size: 18px; }
.showcase .shot { margin-bottom: 28px; }
.more { display: inline-flex; align-items: center; gap: 6px; font-weight: 600; text-decoration: none; }
.more .icon { width: 18px; height: 18px; }
a.feature .more { margin-top: 12px; color: var(--sky); font-size: 15px; }

.steps-list { list-style: none; padding: 0; margin: 0 0 24px; display: grid; gap: 22px; }
.steps-list li { display: grid; grid-template-columns: auto 1fr; gap: 14px; }
.steps-list h3 { font-size: 19px; margin: 2px 0 4px; letter-spacing: -0.01em; }
.steps-list p { margin: 0; color: var(--text-2); font-size: 16px; }
.step {
  display: inline-grid; place-items: center; width: 30px; height: 30px; border-radius: 50%;
  background: var(--sun-tint); color: var(--sun-ink); font-family: var(--round); font-weight: 800;
}
.numbered { padding-left: 22px; color: var(--text-2); font-size: 17px; }
.numbered li { margin-bottom: 10px; }

.features { display: grid; gap: 18px; grid-template-columns: repeat(3, minmax(0, 1fr)); margin-top: 32px; }
.features.two { grid-template-columns: repeat(2, minmax(0, 1fr)); }
.feature {
  display: block; background: var(--surface); border: 1px solid var(--rule); border-radius: 18px; padding: 22px 24px;
  color: inherit; text-decoration: none;
}
a.feature { transition: border-color .15s, transform .15s, box-shadow .15s; }
a.feature:hover { border-color: color-mix(in srgb, var(--sky) 45%, var(--rule)); transform: translateY(-2px);
                  box-shadow: 0 14px 30px -20px rgba(30, 40, 90, 0.5); color: inherit; }
.feature > .icon { color: var(--sky); width: 28px; height: 28px; margin-bottom: 12px; }
.feature h3 { font-size: 18px; letter-spacing: -0.01em; font-weight: 750; margin: 0 0 6px; }
.feature p { margin: 0; color: var(--text-2); font-size: 15.5px; line-height: 1.55; }
.checks { list-style: none; padding: 0; margin: 20px 0; display: grid; gap: 10px; color: var(--text-2); font-size: 17px; }
.checks li { display: grid; grid-template-columns: auto 1fr; gap: 10px; align-items: start; }
.checks .icon { color: var(--sky); width: 20px; height: 20px; margin-top: 3px; }
kbd {
  font: 600 13px ui-monospace, SFMono-Regular, Menlo, monospace; padding: 1px 6px; border-radius: 6px;
  border: 1px solid var(--rule); border-bottom-width: 2px; background: var(--surface); color: var(--text);
}

.phone-row { display: grid; grid-template-columns: repeat(3, minmax(0, 300px)); justify-content: center; gap: 40px; margin: 8px 0 36px; }
.phones .more { display: flex; justify-content: center; }

.faq { max-width: 820px; border-top: 1px solid var(--rule); margin-bottom: 24px; }
.faq details { border-bottom: 1px solid var(--rule); }
.faq summary { cursor: pointer; list-style: none; padding: 18px 36px 18px 0; position: relative;
               font-family: var(--round); font-weight: 700; font-size: 19px; }
.faq summary::-webkit-details-marker { display: none; }
.faq summary::after { content: "+"; position: absolute; right: 6px; top: 14px; font-size: 24px; color: var(--sky); font-weight: 500; }
.faq details[open] summary::after { content: "–"; }
.faq details > div { padding: 0 0 20px; color: var(--text-2); font-size: 17px; max-width: 720px; }

.shortcut-groups { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 28px 36px; }
.shortcut-groups h2 { font-size: 20px; margin: 0 0 10px; }
.shortcuts dl { display: grid; grid-template-columns: auto 1fr; gap: 8px 16px; margin: 0; font-size: 15.5px; }
.shortcuts dt { white-space: nowrap; }
.shortcuts dd { margin: 0; color: var(--text-2); }

.privacy p { max-width: 720px; font-size: 18px; }
.privacy .access { max-width: 720px; font-size: 17px; color: var(--text-2); padding-left: 22px; margin: 0 0 18px; }
.privacy .access li { margin: 0 0 8px; }
.privacy .access strong { color: var(--text); }
.cta { text-align: center; }
.cta h2, .cta .section-lede { margin-left: auto; margin-right: auto; }
.waitlist.stacked { margin: 0 auto; justify-content: center; }
.waitlist fieldset { border: 0; padding: 0; margin: 0; display: flex; gap: 18px; align-items: center; color: var(--muted); font-size: 15px; }
.waitlist legend { float: left; margin-right: 4px; padding: 0; }
.waitlist fieldset label { display: inline-flex; gap: 6px; align-items: center; color: var(--text); }
.waitlist input[type="checkbox"] { accent-color: var(--sky); }
.waitlist.stacked input[type="email"] { flex-basis: 100%; }
.waitlist.stacked .button { flex-basis: auto; }

footer.site {
  max-width: 1160px; margin: 0 auto; padding: 40px 24px 56px; border-top: 1px solid var(--rule);
  display: grid; grid-template-columns: minmax(0, 1fr) auto; gap: 40px; color: var(--muted); font-size: 14px;
}
footer.site p { max-width: 520px; margin: 10px 0 0; }
footer.site .columns { display: grid; grid-template-columns: repeat(4, auto); gap: 40px; }
footer.site .columns div { display: flex; flex-direction: column; gap: 8px; }
footer.site .columns h2 { font-family: inherit; font-size: 13px; font-weight: 650; letter-spacing: 0.04em; text-transform: uppercase; color: var(--text); margin: 0 0 4px; }
footer.site a { color: var(--muted); text-decoration: none; }
footer.site a:hover { color: var(--text); }
footer.site .fine a { color: inherit; text-decoration: underline; }

@media (max-width: 900px) {
  .split { grid-template-columns: 1fr; gap: 32px; }
  .features, .features.two, .shortcut-groups { grid-template-columns: 1fr; }
  header.site nav a:not(.button) { display: none; }
  footer.site { grid-template-columns: 1fr; }
  footer.site .columns { grid-template-columns: repeat(2, auto); justify-content: start; }
  .phone-row { grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 14px; }
  .hero-shots { padding-right: 0; }
  .hero-shots .shot.phone.overlap { width: 26%; right: -2%; bottom: -24px; }
}
@media (max-width: 560px) {
  .phone-row { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .phone-row .shot:nth-child(3) { display: none; }
}
@media (prefers-reduced-motion: reduce) { a.feature { transition: none; } a.feature:hover { transform: none; } }

/* ---------- Pricing, buying and license pages (pricing, buy, thanks, license, refunds) ---------- */
[hidden] { display: none !important; }  /* the license pages' scripts show one state at a time */
.plans { display: grid; grid-template-columns: minmax(0, 1.1fr) minmax(0, 1fr); gap: 20px; align-items: start; }
.card { background: var(--surface); border: 1px solid var(--rule); border-radius: 18px; padding: 28px 30px; }
.card.featured { border-color: color-mix(in srgb, var(--sky) 40%, var(--rule)); box-shadow: var(--shadow); }
.band .card h2 { font-size: 22px; letter-spacing: -0.01em; margin: 0 0 8px; }
.card > p { color: var(--text-2); margin: 0 0 12px; }
.card .checks { font-size: 16px; margin: 18px 0; }
.card .fine { margin: 14px 0 0; }
.split .fine { font-size: 14px; color: var(--muted); }
.card .price { display: flex; align-items: baseline; gap: 8px; flex-wrap: wrap; margin: 0 0 10px;
               font-family: var(--round); font-size: 18px; color: var(--text-2); }
.card .price b { font-size: 52px; font-weight: 800; letter-spacing: -0.03em; line-height: 1; color: var(--text); }
.actions { display: flex; flex-wrap: wrap; gap: 12px; align-items: center; margin: 22px 0 0; }
.button.secondary { background: var(--sky-tint); color: var(--sky) !important; box-shadow: none; }
.button.secondary:hover { background: color-mix(in srgb, var(--sky) 20%, var(--sky-tint)); }
.card .license-code {
  margin: 0; padding: 20px 24px; border-radius: 16px; background: var(--sky-tint); color: var(--text);
  font-family: var(--round); font-weight: 750; font-size: clamp(22px, 3.4vw, 34px); line-height: 1.25;
  letter-spacing: -0.01em; overflow-wrap: break-word; -webkit-user-select: all; user-select: all;
}
.waiting { display: flex; align-items: center; gap: 14px; font-size: 18px; color: var(--text-2); margin: 0; }
.spinner { flex: none; width: 22px; height: 22px; border-radius: 50%; border: 2.5px solid var(--sky-tint);
           border-top-color: var(--sky); animation: spin 0.9s linear infinite; }
@keyframes spin { to { transform: rotate(360deg); } }
.reading { max-width: 720px; }
.band .reading h2 { font-size: 24px; margin: 36px 0 8px; }
.band .reading h2:first-child { margin-top: 0; }
.reading p, .reading li { color: var(--text-2); font-size: 18px; }
.reading li { margin-bottom: 6px; }
.reading .fine { font-size: 14px; color: var(--muted); }
@media (max-width: 900px) { .plans { grid-template-columns: 1fr; } .card { padding: 24px 22px; } }
@media (prefers-reduced-motion: reduce) { .spinner { animation-duration: 3s; } }
