:root {
  --bg: #faf8f4;
  --card: #ffffff;
  --text: #000000;
  --muted: #5c5c61;
  --line: #d1d1d6;
  --accent: #d9780e;
  --accent-ink: #ffffff;
  --radius: 14px;
  color-scheme: light;
}

* { box-sizing: border-box; touch-action: manipulation; }

html { scroll-behavior: smooth; }

body {
  margin: 0;
  background: var(--bg);
  color: var(--text);
  font: 17px/1.45 -apple-system, BlinkMacSystemFont, "SF Pro Text", system-ui, sans-serif;
  -webkit-font-smoothing: antialiased;
}

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

/* Faint bar doodles over the whole page, faded out in the centre so the text stays clear. */
body::before {
  content: "";
  position: fixed;
  inset: 0;
  z-index: -1;
  pointer-events: none;
  background-image: url("img/doodle-tile.svg");
  background-size: 160px 160px;
  opacity: 0.10;
  -webkit-mask-image: radial-gradient(ellipse at center, transparent 0%, transparent 28%, #000 80%);
  mask-image: radial-gradient(ellipse at center, transparent 0%, transparent 28%, #000 80%);
}
h1, h2, h3, p { margin: 0; }
a { color: var(--accent); }

.top, main, .foot {
  width: 100%;
  max-width: 1080px;
  margin: 0 auto;
  padding-left: 20px;
  padding-right: 20px;
}

.top {
  position: relative;
  z-index: 1;
  background: var(--bg);
  width: 100%;
  max-width: none;
  margin: 0;
  padding-left: max(20px, calc((100% - 1080px) / 2 + 20px));
  padding-right: max(20px, calc((100% - 1080px) / 2 + 20px));
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding-top: 16px;
  padding-bottom: 8px;
}
.brand { display: flex; align-items: center; gap: 10px; color: var(--text); text-decoration: none; font-weight: 700; }
.brand img { border-radius: 8px; }

.btn {
  appearance: none;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 46px;
  padding: 0 20px;
  border: 0;
  border-radius: 12px;
  background: var(--card);
  color: var(--accent);
  border: 2px solid var(--accent);
  font: inherit;
  font-weight: 600;
  text-decoration: none;
  cursor: pointer;
}
.btn.primary { background: var(--accent); color: var(--accent-ink); border-color: var(--accent); }
.btn.big { min-height: 54px; font-size: 18px; padding: 0 26px; }
.btn.small { min-height: 36px; font-size: 15px; padding: 0 14px; }
.btn:disabled { opacity: 0.5; cursor: default; }

.hero {
  display: grid;
  grid-template-columns: 1fr;
  gap: 40px;
  align-items: center;
  padding-top: 32px;
  padding-bottom: 48px;
}
h1 { font-size: clamp(32px, 6vw, 56px); line-height: 1.08; font-weight: 750; letter-spacing: -0.02em; }
.lede { margin-top: 18px; font-size: 19px; color: var(--muted); max-width: 34em; }
.cta-row { display: flex; flex-wrap: wrap; gap: 12px; margin-top: 26px; }
.fine { margin-top: 14px; font-size: 14px; color: var(--muted); }

/* Phone frame with the screenshots cross-fading (stand-in for demo videos). */
.phone {
  justify-self: center;
  width: min(300px, 80vw);
  aspect-ratio: 9 / 19.5;
  padding: 10px;
  border-radius: 44px;
  background: #1d1d1f;
  box-shadow: 0 24px 60px rgba(0, 0, 0, 0.22);
}
.screen-stack { position: relative; width: 100%; height: 100%; border-radius: 34px; overflow: hidden; background: var(--card); }
.screen-stack img {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
  opacity: 0;
  transition: opacity 0.8s ease;
}
.screen-stack img.on { opacity: 1; }

.steps, .pricing { padding-top: 40px; padding-bottom: 40px; }
h2 { font-size: 30px; font-weight: 700; letter-spacing: -0.01em; margin-bottom: 20px; }
.step-grid {
  list-style: none;
  padding: 0;
  margin: 0;
  display: grid;
  gap: 16px;
  grid-template-columns: 1fr;
}
.step-grid li { background: var(--card); border-radius: var(--radius); padding: 20px; }
.step-grid .num {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 32px;
  height: 32px;
  border-radius: 50%;
  background: var(--accent);
  color: var(--accent-ink);
  font-weight: 700;
}
.step-grid h3 { margin-top: 12px; font-size: 18px; font-weight: 650; }
.step-grid p { margin-top: 6px; color: var(--muted); font-size: 16px; }

.plan-grid { display: grid; gap: 16px; grid-template-columns: 1fr; }
.plan { background: var(--card); border-radius: var(--radius); padding: 24px; display: flex; flex-direction: column; gap: 10px; align-items: flex-start; }
.plan h3 { font-size: 20px; font-weight: 700; }
.plan p { color: var(--muted); }
.plan .price { font-size: 40px; font-weight: 750; color: var(--text); }
.plan .price span { font-size: 16px; font-weight: 500; color: var(--muted); }
.plan .price-alt { margin-top: -6px; font-size: 15px; }
.plan .btn { margin-top: 8px; }

.foot { display: flex; flex-wrap: wrap; justify-content: space-between; gap: 8px; padding-top: 24px; padding-bottom: 40px; color: var(--muted); font-size: 14px; }

/* Setup panel */
.setup {
  border: 0;
  border-radius: 18px;
  padding: 24px;
  width: min(420px, calc(100vw - 32px));
  background: var(--card);
  color: var(--text);
  box-shadow: 0 20px 60px rgba(0, 0, 0, 0.3);
}
.setup::backdrop { background: rgba(0, 0, 0, 0.4); }
.setup h2 { font-size: 22px; margin-bottom: 14px; }
.setup-close { position: absolute; top: 12px; right: 12px; margin: 0; }
.icon { appearance: none; border: 0; background: none; color: var(--muted); font-size: 28px; line-height: 1; cursor: pointer; }
.option {
  display: flex;
  flex-direction: column;
  gap: 4px;
  padding: 16px;
  margin-top: 10px;
  border-radius: 12px;
  background: var(--bg);
  color: var(--text);
  text-decoration: none;
}
.option strong { color: var(--accent); }
.option span { color: var(--muted); font-size: 15px; }
.option.disabled { opacity: 0.55; }

@media (min-width: 820px) {
  .hero { grid-template-columns: 1.1fr 0.9fr; padding-top: 56px; }
  .step-grid { grid-template-columns: repeat(4, 1fr); }
  .plan-grid { grid-template-columns: repeat(2, 1fr); max-width: 760px; }
}

@media (prefers-reduced-motion: reduce) {
  .screen-stack img { transition: none; }
  html { scroll-behavior: auto; }
}
