:root {
  color-scheme: dark;
  --bg: #141416;
  --bg-raised: #1d1d20;
  --line: #2c2c31;
  --text: #ececee;
  --muted: #a0a0a8;
  --accent: #5eb4f7;
  --accent-soft: #b3e3ff;
  --on-accent: #0b1a26;
  --card: #18181b;
  --todo: #ff6b5e;
  --done: #4fd18b;
  --shadow: 0 1px 2px rgb(0 0 0 / .4), 0 20px 50px -20px rgb(0 0 0 / .7);
  --mono: ui-monospace, "SF Mono", Menlo, Consolas, monospace;
}

* { box-sizing: border-box; }

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

body {
  margin: 0;
  background: var(--bg);
  color: var(--text);
  font: 17px/1.6 -apple-system, BlinkMacSystemFont, "Segoe UI", Inter, Roboto, sans-serif;
  -webkit-font-smoothing: antialiased;
}

img { max-width: 100%; height: auto; display: block; }

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

h1, h2, h3 { line-height: 1.15; letter-spacing: -.02em; margin: 0; }
h2 { font-size: clamp(1.6rem, 3.5vw, 2.2rem); margin-bottom: 1.5rem; }
h3 { font-size: 1.05rem; letter-spacing: -.01em; margin-bottom: .4rem; }
p { margin: 0; }

kbd {
  display: inline-block;
  min-width: 1.7em;
  padding: .05em .45em;
  border: 1px solid var(--line);
  border-bottom-width: 2px;
  border-radius: 6px;
  background: var(--bg-raised);
  font: 600 .85em/1.5 var(--mono);
  text-align: center;
}

.wrap {
  width: 100%;
  max-width: 1120px;
  margin: 0 auto;
  padding-inline: 16px;
}
@media (min-width: 700px) { .wrap { padding-inline: 32px; } }

section { padding: clamp(56px, 9vw, 112px) 0 0; }

/* Header */

.top {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding-top: 20px;
  padding-bottom: 20px;
}
.brand {
  display: flex;
  align-items: center;
  gap: 10px;
  color: var(--text);
  font-weight: 700;
  font-size: 1.15rem;
  text-decoration: none;
}
.top__cta { font-weight: 600; text-decoration: none; }
.top__cta:hover { text-decoration: underline; }

/* Hero */

.hero { padding-top: clamp(24px, 6vw, 72px); text-align: center; }
.hero h1 {
  font-size: clamp(2.3rem, 6.5vw, 4.2rem);
  letter-spacing: -.035em;
  max-width: 14em;
  margin: 0 auto;
}
.lede {
  max-width: 36em;
  margin: 1.4rem auto 0;
  color: var(--muted);
  font-size: clamp(1.05rem, 2vw, 1.2rem);
}
.cta { margin-top: 2rem; }
.button {
  display: inline-block;
  max-width: 100%;
  padding: .85em 1.4em;
  border-radius: 999px;
  background: var(--accent);
  color: var(--on-accent);
  font-weight: 650;
  text-decoration: none;
  overflow-wrap: anywhere;
  transition: transform .15s ease, filter .15s ease;
}
.button:hover { filter: brightness(1.08); transform: translateY(-1px); }
.button:focus-visible { outline: 3px solid var(--accent-soft); outline-offset: 3px; }
.fine { margin-top: .9rem; color: var(--muted); font-size: .9rem; }

/* Screenshots */

.shot { margin: 0; }
.shot img {
  border: 1px solid var(--line);
  border-radius: 12px;
  box-shadow: var(--shadow);
}
.shot figcaption { margin-top: .8rem; color: var(--muted); font-size: .92rem; text-align: center; }
.shot--hero { margin-top: clamp(40px, 7vw, 72px); }

.eyebrow {
  margin-bottom: .8rem;
  color: var(--accent-soft);
  font-size: .8rem;
  font-weight: 700;
  letter-spacing: .1em;
  text-transform: uppercase;
}
.hero .eyebrow { margin-bottom: 1.1rem; }
.intro { max-width: 40em; color: var(--muted); font-size: 1.08rem; }

/* Forward and backward in time */

.time h2 { max-width: 22em; margin-bottom: 1rem; text-wrap: balance; }

.timeline {
  list-style: none;
  display: grid;
  gap: 16px;
  margin: clamp(32px, 5vw, 48px) 0 0;
  padding: 0;
}
@media (min-width: 860px) { .timeline { grid-template-columns: repeat(3, 1fr); gap: 20px; } }
.timeline__step {
  position: relative;
  display: flex;
  flex-direction: column;
  gap: 14px;
  padding: 20px;
  border: 1px solid var(--line);
  border-radius: 14px;
  background: var(--bg-raised);
}
.timeline__step--back {
  border-color: color-mix(in srgb, var(--done) 45%, var(--line));
  background: color-mix(in srgb, var(--done) 6%, var(--bg-raised));
}
.timeline__when { color: var(--muted); font-size: .9rem; }
.timeline__when span {
  margin-right: .5em;
  color: var(--text);
  font: 600 .85rem var(--mono);
}
.timeline__ai { margin-top: auto; color: var(--muted); font-size: .93rem; }
.timeline__ai b { color: var(--text); font-weight: 600; }

/* An email row, drawn like the app's cards. */
.mail {
  padding: 10px 12px;
  border: 1px solid var(--line);
  border-left: 3px solid var(--line);
  border-radius: 8px;
  background: var(--card);
  font-size: .88rem;
  line-height: 1.45;
}
.mail--todo { border-left-color: var(--todo); }
.mail--done { border-left-color: var(--done); }
.mail__meta { display: flex; justify-content: space-between; gap: 8px; }
.mail__from { color: var(--muted); font-family: var(--mono); font-size: .8rem; overflow-wrap: anywhere; }
.mail__from b { color: var(--text); font-weight: 600; }
.mail__subject { margin-top: 2px; font-weight: 650; }
.mail__subject s { color: var(--muted); }
.mail__note { font-style: italic; font-size: .82rem; }
.mail--todo .mail__note { color: var(--todo); }
.mail--done .mail__note { color: var(--done); }
.badge { font: 700 .72rem var(--mono); letter-spacing: .04em; }
.badge--todo { color: var(--todo); }
.badge--done { color: var(--done); }

.pillars {
  list-style: none;
  display: grid;
  gap: 28px;
  margin: clamp(40px, 6vw, 64px) 0 0;
  padding: 0;
}
@media (min-width: 800px) { .pillars { grid-template-columns: repeat(3, 1fr); gap: 40px; } }
.pillars h3 { font-size: 1.15rem; }
.pillars h3 span { color: var(--accent-soft); margin-right: .25em; }
.pillars p, .features__grid p { color: var(--muted); }

/* Your rules */

.rules { display: grid; gap: 40px; align-items: center; }
@media (min-width: 900px) { .rules { grid-template-columns: 5fr 6fr; gap: 56px; } }
.rules h2 { margin-bottom: 1rem; }
.rules__text p:not(.eyebrow) { color: var(--muted); }
.rules__text p + p { margin-top: 1rem; }
.rules__text b { color: var(--text); font-weight: 600; }

.prompts {
  display: grid;
  gap: 22px;
  padding: clamp(18px, 3vw, 28px);
  border: 1px solid var(--line);
  border-radius: 14px;
  background: var(--bg-raised);
  box-shadow: var(--shadow);
}
.prompt__label { margin-bottom: 6px; font-weight: 650; font-size: .95rem; }
.prompt__box {
  padding: 12px 14px;
  border: 1px solid var(--line);
  border-radius: 8px;
  background: var(--card);
  font: .86rem/1.65 var(--mono);
}
.prompt__actions { display: flex; flex-wrap: wrap; gap: 8px; margin-top: 10px; font-size: .85rem; }
.prompt__actions span {
  padding: 4px 12px;
  border: 1px solid var(--line);
  border-radius: 6px;
  color: var(--muted);
}
.prompt__actions .prompt__primary {
  border-color: transparent;
  background: color-mix(in srgb, var(--accent) 20%, transparent);
  color: var(--accent-soft);
  font-weight: 600;
}

/* Keys */

.keys { display: grid; gap: 40px; align-items: center; }
@media (min-width: 900px) { .keys { grid-template-columns: 5fr 7fr; gap: 56px; } }
.keys__text > p { color: var(--muted); }
.keys__list {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 10px 20px;
  margin: 1.6rem 0 0;
}
@media (max-width: 520px) { .keys__list { grid-template-columns: 1fr; } }
.keys__list div { display: flex; align-items: baseline; gap: 10px; }
.keys__list dt { flex: 0 0 3.6em; text-align: right; }
.keys__list dd { margin: 0; color: var(--muted); font-size: .95rem; }

/* Features */

.features__grid {
  list-style: none;
  display: grid;
  gap: 16px;
  margin: 0;
  padding: 0;
}
@media (min-width: 640px) { .features__grid { grid-template-columns: repeat(2, 1fr); } }
@media (min-width: 960px) { .features__grid { grid-template-columns: repeat(3, 1fr); } }
.features__grid li {
  padding: 22px 22px 24px;
  border: 1px solid var(--line);
  border-radius: 12px;
  background: var(--bg-raised);
}
.features__grid p { font-size: .95rem; }

.gallery {
  display: grid;
  gap: 28px;
  margin-top: clamp(40px, 6vw, 64px);
}
@media (min-width: 800px) { .gallery { grid-template-columns: repeat(3, 1fr); gap: 24px; } }

/* Closing */

.closing { text-align: center; padding-bottom: 24px; }
.closing h2 { margin-bottom: 1rem; }
.closing > p:not(.cta, .fine, .party) { max-width: 32em; margin: 0 auto; color: var(--muted); }
.party { margin-top: 3rem; font-size: 2.2rem; }
.party + .fine { margin-top: .2rem; }

.foot {
  display: flex;
  flex-wrap: wrap;
  justify-content: space-between;
  gap: 8px 24px;
  margin-top: 64px;
  padding-top: 24px;
  padding-bottom: 40px;
  border-top: 1px solid var(--line);
  color: var(--muted);
  font-size: .9rem;
}
.foot a { color: inherit; }

@media (prefers-reduced-motion: reduce) {
  .button { transition: none; }
  .button:hover { transform: none; }
}
