: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(38px, 6vw, 60px);
  line-height: 1.05;
  letter-spacing: -0.02em;
  margin: 0 0 20px;
}

.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;
}

.button[aria-disabled="true"] {
  opacity: 0.75;
  cursor: default;
}

.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: linear-gradient(180deg, #3a0d12 0%, #140607 70%);
  color: #fff;
  display: flex;
  flex-direction: column;
  align-items: center;
  padding: 56px 20px 28px;
  text-align: center;
}

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

.screen .time {
  font-size: 64px;
  font-weight: 700;
  letter-spacing: -0.02em;
  line-height: 1;
  margin-top: 8px;
}

.screen .date {
  opacity: 0.7;
  font-size: 14px;
}

.alarm {
  margin-top: auto;
  width: 100%;
}

.alarm .ring {
  width: 64px;
  height: 64px;
  margin: 0 auto 12px;
  border-radius: 50%;
  background: var(--brand);
  display: grid;
  place-items: center;
  animation: pulse 1.6s ease-out infinite;
}

.alarm .ring img {
  width: 40px;
  height: 40px;
  border-radius: 10px;
}

.alarm .channel {
  font-size: 13px;
  text-transform: uppercase;
  letter-spacing: 0.08em;
  opacity: 0.75;
}

.alarm .title {
  font-size: 22px;
  font-weight: 700;
  margin: 2px 0 18px;
}

.alarm .buttons {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 10px;
}

.alarm .buttons span {
  padding: 12px 0;
  border-radius: 999px;
  font-weight: 600;
  font-size: 15px;
  background: rgb(255 255 255 / 0.16);
}

.alarm .buttons .stop { background: var(--brand); }

@keyframes pulse {
  0% { box-shadow: 0 0 0 0 rgb(224 24 45 / 0.6); }
  100% { box-shadow: 0 0 0 22px rgb(224 24 45 / 0); }
}

@media (prefers-reduced-motion: reduce) {
  .alarm .ring { animation: 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;
}

.preview {
  background: var(--card);
  border: 1px solid var(--line);
  border-radius: var(--radius);
  overflow: hidden;
  box-shadow: 0 20px 50px -30px rgb(0 0 0 / 0.35);
}

.preview-head,
.preview-row {
  display: flex;
  align-items: center;
  gap: 14px;
  padding: 14px 18px;
}

.preview-head {
  background: var(--bg-alt);
  border-bottom: 1px solid var(--line);
}

.preview-head .dot {
  width: 12px;
  height: 12px;
  border-radius: 50%;
  background: var(--brand);
  flex: none;
}

.preview-row + .preview-row { border-top: 1px solid var(--line); }

.preview strong { display: block; font-size: 15px; }

.preview span { color: var(--muted); font-size: 13px; }

.preview-row > div { flex: 1; min-width: 0; }

.preview-row time { color: var(--muted); font-size: 13px; }

.preview .mark {
  display: grid;
  place-items: center;
  width: 26px;
  height: 26px;
  border-radius: 50%;
  flex: none;
  font-size: 13px;
  color: #fff;
}

.preview-row.yes .mark { background: #2e9d52; }
.preview-row.no .mark { background: var(--muted); }
.preview-row.hold .mark { background: #d98a00; }

/* 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; }

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

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

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

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

  section { padding: 48px 0; }
}
