:root {
  --bg: #ffffff;
  --bg-alt: #f6f5f4;
  --text: #16130f;
  --muted: #5f5a54;
  --line: #e6e2dd;
  --brand: #e0182d;
  --brand-2: #ff5a3c;
  --on-brand: #ffffff;
  --card: #ffffff;
  --radius: 20px;
  --max: 1080px;
  color-scheme: light dark;
}

@media (prefers-color-scheme: dark) {
  :root {
    --bg: #0f0d0c;
    --bg-alt: #181513;
    --text: #f4f1ee;
    --muted: #a9a29b;
    --line: #2b2622;
    --card: #1c1917;
  }
}

* { box-sizing: border-box; }

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

body {
  margin: 0;
  background: var(--bg);
  color: var(--text);
  font: 17px/1.55 -apple-system, BlinkMacSystemFont, "SF Pro Text", "Inter", "Segoe UI", Roboto, sans-serif;
}

a { color: var(--brand); }

img { max-width: 100%; }

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

/* Header */

.site-header {
  border-bottom: 1px solid var(--line);
}

.site-header .wrap {
  display: flex;
  align-items: center;
  justify-content: space-between;
  height: 64px;
}

.logo {
  display: flex;
  align-items: center;
  gap: 10px;
  color: var(--text);
  font-weight: 700;
  font-size: 19px;
  text-decoration: none;
}

.logo img {
  width: 32px;
  height: 32px;
  border-radius: 8px;
}

.nav {
  display: flex;
  gap: 20px;
  font-size: 15px;
}

.nav a {
  color: var(--muted);
  text-decoration: none;
}

.nav a:hover,
.nav a[aria-current="page"] { color: var(--text); }

/* Hero */

.hero {
  display: grid;
  grid-template-columns: 1.1fr 0.9fr;
  gap: 48px;
  align-items: center;
  padding-top: 72px;
  padding-bottom: 64px;
}

.eyebrow {
  color: var(--brand);
  font-weight: 600;
  font-size: 15px;
  letter-spacing: 0.02em;
  margin: 0 0 12px;
}

h1 {
  font-size: clamp(36px, 5.4vw, 54px);
  line-height: 1.05;
  letter-spacing: -0.02em;
  margin: 0 0 20px;
  text-wrap: balance;
}

.lead {
  font-size: 20px;
  color: var(--muted);
  margin: 0 0 28px;
  max-width: 34ch;
}

.cta {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 16px;
}

.button {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 14px 22px;
  border-radius: 999px;
  background: var(--text);
  color: var(--bg);
  font-weight: 600;
  text-decoration: none;
}

.fine {
  color: var(--muted);
  font-size: 14px;
}

/* Phone mockup */

.phone {
  justify-self: center;
  width: min(300px, 100%);
  aspect-ratio: 9 / 19.5;
  border-radius: 46px;
  padding: 12px;
  background: #0b0a09;
  box-shadow: 0 30px 60px -20px rgb(224 24 45 / 0.35), 0 0 0 1px #2b2622;
}

.screen {
  position: relative;
  height: 100%;
  border-radius: 36px;
  overflow: hidden;
  background: #000;
  color: #fff;
  display: flex;
  flex-direction: column;
  align-items: center;
  padding: 56px 14px 8px;
  text-align: center;
}

.screen .island {
  position: absolute;
  top: 12px;
  width: 96px;
  height: 28px;
  border-radius: 999px;
  background: #000;
  box-shadow: 0 0 0 1px #1a1a1a;
}

/* Mirrors AlarmKit's full-screen alarm: the notification over the time,
   the app's name under it, and a slide-to-stop bar. */
.alarm {
  margin: auto 0;
  width: 100%;
}

.alarm .title {
  display: flex;
  gap: 6px;
  align-items: flex-start;
  justify-content: center;
  text-align: left;
  font-size: 18px;
  font-weight: 600;
  line-height: 1.2;
  color: #9a9aa0;
  padding: 0 4px;
}

.alarm .title svg {
  flex: none;
  width: 18px;
  height: 18px;
  margin-top: 2px;
  fill: currentColor;
  color: #9a9aa0;
}

.alarm .time {
  font-size: 86px;
  font-weight: 600;
  letter-spacing: -0.02em;
  line-height: 1;
  margin: 10px 0 14px;
}

.alarm .app {
  font-size: 14px;
  color: #8e8e93;
}

.snooze {
  width: 100%;
  margin-bottom: 8px;
  padding: 17px 0;
  border-radius: 999px;
  background: #f33b30;
  font-size: 19px;
  font-weight: 700;
}

.screen .home {
  width: 112px;
  height: 4px;
  margin-top: 10px;
  border-radius: 999px;
  background: #c7c7cc;
}

.slider {
  width: 100%;
  display: flex;
  align-items: center;
  gap: 12px;
  padding: 4px;
  border-radius: 999px;
  background: #1c1c1e;
}

.slider .knob {
  flex: none;
  width: 52px;
  height: 52px;
  border-radius: 50%;
  background: #000;
  display: grid;
  place-items: center;
}

.slider .knob span {
  width: 18px;
  height: 18px;
  border-radius: 4px;
  background: #fff;
}

.slider .label {
  font-size: 17px;
  background: linear-gradient(90deg, #8e8e93 30%, #fff 50%, #8e8e93 70%) 0 0 / 300% 100%;
  -webkit-background-clip: text;
  background-clip: text;
  color: transparent;
  animation: shimmer 2.4s linear infinite;
}

@keyframes shimmer {
  from { background-position: 100% 0; }
  to { background-position: 0 0; }
}

@media (prefers-reduced-motion: reduce) {
  .slider .label { animation: none; color: #c7c7cc; background: none; }
}

/* Sections */

section { padding: 64px 0; }

.band { background: var(--bg-alt); }

h2 {
  font-size: clamp(28px, 4vw, 38px);
  letter-spacing: -0.01em;
  line-height: 1.15;
  margin: 0 0 12px;
}

.section-lead {
  color: var(--muted);
  margin: 0 0 36px;
  max-width: 60ch;
}

.steps {
  list-style: none;
  counter-reset: step;
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 20px;
  padding: 0;
  margin: 0;
}

.steps li,
.card {
  background: var(--card);
  border: 1px solid var(--line);
  border-radius: var(--radius);
  padding: 24px;
}

.steps li::before {
  counter-increment: step;
  content: counter(step);
  display: grid;
  place-items: center;
  width: 32px;
  height: 32px;
  border-radius: 50%;
  background: var(--brand);
  color: var(--on-brand);
  font-weight: 700;
  margin-bottom: 14px;
}

.steps h3,
.card h3 {
  margin: 0 0 6px;
  font-size: 18px;
}

.steps p,
.card p {
  margin: 0;
  color: var(--muted);
}

.grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 20px;
}

.uses {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 16px;
}

.use {
  border-left: 3px solid var(--brand);
  padding: 4px 0 4px 14px;
}

.use strong { display: block; }

.use span { color: var(--muted); font-size: 15px; }

.pricing {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 20px;
  max-width: 760px;
}

.price {
  font-size: 34px;
  font-weight: 700;
  margin: 4px 0 12px;
}

.card ul {
  margin: 0;
  padding-left: 20px;
  color: var(--muted);
}

.card.highlight {
  border-color: var(--brand);
  box-shadow: 0 0 0 1px var(--brand);
}

/* Calls */

.split {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 48px;
  align-items: center;
}

.checks {
  list-style: none;
  padding: 0;
  margin: 0;
  display: grid;
  gap: 10px;
}

.checks li {
  padding-left: 28px;
  position: relative;
}

.checks li::before {
  content: "✓";
  position: absolute;
  left: 0;
  color: var(--brand);
  font-weight: 700;
}

/* A screenshot in an iPhone bezel. The status bar is part of the
   screenshot (from an iPhone 13, with real Liquid Glass); the screen
   corners follow iPhone 17's. */
.shot {
  display: block;
  justify-self: center;
  width: min(300px, 100%);
  padding: 9px;
  border-radius: 48px;
  background: #0b0a09;
  box-shadow: 0 30px 60px -24px rgb(0 0 0 / 0.4), 0 0 0 1px #2b2622;
}

.shot img,
.shot video {
  display: block;
  width: 100%;
  height: auto;
  border-radius: 39px;
}

.preview {
  margin: 0 0 48px;
  display: grid;
  justify-items: center;
  gap: 14px;
}

.preview figcaption {
  color: var(--muted);
  font-size: 15px;
  text-align: center;
}

.shots {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 28px;
}

.shots figure {
  margin: 0;
  display: grid;
  justify-items: center;
  gap: 14px;
}

.shots figcaption {
  color: var(--muted);
  font-size: 15px;
  text-align: center;
}

/* Use cases */

.more { margin: 28px 0 0; font-weight: 600; }

.more a { text-decoration: none; }

.cases-intro {
  padding-top: 64px;
  padding-bottom: 56px;
}

.cases-intro .lead { max-width: 52ch; }

.chips {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
  margin-bottom: 20px;
}

.chips a {
  padding: 8px 14px;
  border: 1px solid var(--line);
  border-radius: 999px;
  background: var(--card);
  color: var(--text);
  font-size: 15px;
  font-weight: 600;
  text-decoration: none;
}

.chips a:hover { border-color: var(--brand); }

/* Leave room above a use case that's linked to directly. */
.case,
.recipe[id] { scroll-margin-top: 12px; }

.case .split { align-items: start; }

.case .section-lead { margin-bottom: 24px; }

/* The screenshot stays in view next to a long list of rules. */
@media (min-width: 861px) {
  .case .shot { position: sticky; top: 24px; }
}

.anchor {
  color: var(--line);
  font-weight: 400;
  text-decoration: none;
}

.anchor:hover { color: var(--brand); }

/* A channel's rules, laid out like the editor: a name with its color,
   then "When" and "Then" rows. */
.recipe {
  background: var(--card);
  border: 1px solid var(--line);
  border-radius: var(--radius);
  padding: 18px 20px;
  margin: 0 0 14px;
}

.recipe-name {
  display: flex;
  align-items: center;
  gap: 8px;
  margin: 0 0 4px;
  font-weight: 700;
}

.dot {
  flex: none;
  width: 11px;
  height: 11px;
  border-radius: 50%;
}

.recipe h3 {
  margin: 14px 0 2px;
  color: var(--muted);
  font-size: 13px;
  font-weight: 600;
}

.recipe dl { margin: 0; }

.recipe dl div {
  display: flex;
  justify-content: space-between;
  gap: 16px;
  padding: 9px 0;
  border-bottom: 1px solid var(--line);
}

.recipe dl div:last-child { border-bottom: 0; padding-bottom: 0; }

.recipe dt { flex: none; }

.recipe dd {
  margin: 0;
  color: var(--muted);
  text-align: right;
}

.recipe dd i { font-size: 14px; }

.recipe > p:last-child {
  margin: 12px 0 0;
  color: var(--muted);
  font-size: 15px;
}

.grid .recipe { margin: 0; }

/* Example notifications: which ring and which stay quiet. */
.examples {
  list-style: none;
  padding: 0;
  margin: 20px 0 0;
  display: grid;
  gap: 8px;
}

.examples li {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 14px;
  padding: 10px 14px;
  border-radius: 14px;
  border: 1px solid var(--line);
  color: var(--muted);
  font-size: 15px;
}

.examples b {
  display: block;
  font-size: 14px;
}

.examples em {
  flex: none;
  font-style: normal;
  font-size: 13px;
  font-weight: 600;
}

.examples .rings {
  border-color: var(--brand);
  color: var(--text);
}

.examples .rings em {
  padding: 3px 10px;
  border-radius: 999px;
  background: var(--brand);
  color: var(--on-brand);
}

.tip {
  margin: 16px 0 0;
  color: var(--muted);
  font-size: 15px;
}

/* Prose pages */

.prose {
  max-width: 720px;
  padding-top: 56px;
  padding-bottom: 72px;
}

.prose h1 {
  font-size: clamp(34px, 5vw, 46px);
}

.prose h2 {
  font-size: 24px;
  margin: 40px 0 10px;
}

.prose h3 {
  font-size: 18px;
  margin: 28px 0 6px;
}

.prose p,
.prose li { color: var(--text); }

.prose .meta { color: var(--muted); }

.prose ol,
.prose ul { padding-left: 22px; }

.prose li { margin: 6px 0; }

details {
  border: 1px solid var(--line);
  border-radius: 14px;
  padding: 14px 18px;
  margin: 12px 0;
  background: var(--card);
}

summary {
  cursor: pointer;
  font-weight: 600;
}

details[open] summary { margin-bottom: 8px; }

/* Footer */

.site-footer {
  border-top: 1px solid var(--line);
  padding: 32px 0 48px;
  color: var(--muted);
  font-size: 14px;
}

.site-footer .wrap {
  display: flex;
  flex-wrap: wrap;
  justify-content: space-between;
  gap: 12px;
}

.site-footer nav {
  display: flex;
  gap: 18px;
}

.site-footer a { color: var(--muted); }

/* Small screens */

@media (max-width: 860px) {
  .hero {
    grid-template-columns: 1fr;
    padding-top: 48px;
    padding-bottom: 48px;
    gap: 40px;
  }

  .steps,
  .grid,
  .split { grid-template-columns: 1fr; }

  .case .split { gap: 32px; }

  .uses { grid-template-columns: 1fr 1fr; }

  .pricing { grid-template-columns: 1fr; }

  /* Swipe through the screenshots instead of stacking three tall images. */
  .shots {
    grid-template-columns: none;
    grid-auto-flow: column;
    grid-auto-columns: min(70%, 260px);
    overflow-x: auto;
    scroll-snap-type: x mandatory;
    padding-bottom: 8px;
  }

  .shots figure { scroll-snap-align: center; }
}

@media (max-width: 480px) {
  .nav { gap: 14px; white-space: nowrap; }

  .anchor { display: none; }

  .uses { grid-template-columns: 1fr; }

  section { padding: 48px 0; }
}

/* The narrowest phones: keep the name and the three links on one line. */
@media (max-width: 340px) {
  .logo { font-size: 17px; gap: 8px; }

  .nav { gap: 9px; font-size: 13px; }
}
