:root {
  --paper: #FBF8F3;
  --tint: #F3EEE6;
  --card: #FFFFFF;
  --ink: #1C1B2E;
  --body: #3D3B4F;
  --muted: #6B687C;
  --line: #E6DFD4;
  --indigo: #2B37A8;
  --indigo-hover: #222C8C;
  --coral: #F0567E;
  --amber: #FFB05C;
  --gem: linear-gradient(135deg, #FFC45E 0%, #F0567E 45%, #6A55D6 75%, #2839B0 100%);
  --serif: 'Fraunces', Georgia, 'Times New Roman', serif;
  --sans: 'Instrument Sans', system-ui, -apple-system, 'Segoe UI', Roboto, sans-serif;
  --radius: 14px;
}

*, *::before, *::after { box-sizing: border-box; }

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

body {
  margin: 0;
  background: var(--paper);
  color: var(--body);
  font-family: var(--sans);
  font-size: 17px;
  line-height: 1.6;
  -webkit-font-smoothing: antialiased;
}

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

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

h1, h2, h3 {
  font-family: var(--serif);
  font-weight: 500;
  color: var(--ink);
  letter-spacing: -0.01em;
  margin: 0;
  text-wrap: balance;
}

h1 { font-size: clamp(2.3rem, 6.4vw, 3.9rem); line-height: 1.06; }
h1 em { display: block; font-style: italic; color: var(--muted); }
h2 { font-size: clamp(1.8rem, 4.2vw, 2.6rem); line-height: 1.12; }
h3 { font-size: 1.25rem; line-height: 1.25; font-weight: 600; }

p { margin: 0; text-wrap: pretty; }

.wrap { width: 100%; max-width: 1120px; margin: 0 auto; padding: 0 20px; }
.narrow { max-width: 760px; }

.eyebrow {
  font-size: 0.8rem;
  font-weight: 600;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: var(--muted);
  margin-bottom: 14px;
}

/* Buttons */
.btn {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  background: var(--indigo);
  color: #fff;
  font-weight: 600;
  font-size: 1rem;
  text-decoration: none;
  padding: 15px 22px;
  border-radius: 999px;
  transition: background 0.15s ease, transform 0.15s ease;
}
.btn:hover { background: var(--indigo-hover); }
.btn:active { transform: translateY(1px); }
.btn:focus-visible, .link:focus-visible { outline: 3px solid var(--amber); outline-offset: 3px; }
.btn--small { padding: 9px 16px; font-size: 0.9rem; }
.btn--light { background: #fff; color: var(--ink); }
.btn--light:hover { background: #F1EEFF; }
.wa { width: 20px; height: 20px; fill: currentColor; flex-shrink: 0; }

.link { color: var(--ink); font-weight: 600; text-decoration: none; border-bottom: 1.5px solid var(--line); padding-bottom: 2px; }
.link:hover { border-color: var(--ink); }

/* Header */
.top {
  position: sticky;
  top: 0;
  z-index: 10;
  background: rgba(251, 248, 243, 0.9);
  backdrop-filter: saturate(1.4) blur(10px);
  -webkit-backdrop-filter: saturate(1.4) blur(10px);
  border-bottom: 1px solid transparent;
}
.top__row { display: flex; align-items: center; justify-content: space-between; height: 64px; }
.brand { display: inline-flex; align-items: center; gap: 10px; text-decoration: none; color: var(--ink); font-family: var(--serif); font-weight: 600; font-size: 1.15rem; }
.brand img { width: 26px; height: auto; }

/* Hero */
.hero { padding: 28px 0 56px; }
.hero__grid { display: grid; gap: 40px; align-items: center; }
.lede { font-size: 1.12rem; margin-top: 22px; max-width: 34em; }
.cta-row { display: flex; flex-wrap: wrap; align-items: center; gap: 14px 24px; margin-top: 30px; }

/* Phone frame */
.phone { margin: 0; position: relative; }
.play {
  position: absolute;
  left: 50%;
  top: 50%;
  width: 68px;
  height: 68px;
  transform: translate(-50%, -50%);
  border: 0;
  border-radius: 50%;
  cursor: pointer;
  background: rgba(255, 255, 255, 0.92) url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24'%3E%3Cpath d='M8 5.5v13l10.5-6.5z' fill='%231C1B2E'/%3E%3C/svg%3E") 55% 50% / 30px no-repeat;
  box-shadow: 0 8px 24px rgba(28, 27, 46, 0.3);
  transition: transform 0.15s ease;
}
.play:hover { transform: translate(-50%, -50%) scale(1.06); }
.play:focus-visible { outline: 3px solid var(--amber); outline-offset: 3px; }
.phone.is-playing .play { display: none; }
.phone video {
  width: 100%;
  aspect-ratio: 9 / 16;
  object-fit: cover;
  background: #D9D2C6;
  border-radius: 26px;
  border: 7px solid var(--ink);
  box-shadow: 0 24px 50px -24px rgba(28, 27, 46, 0.45);
}
.phone figcaption { font-size: 0.88rem; color: var(--muted); margin-top: 12px; line-height: 1.4; }
.hero__phone { width: min(300px, 78vw); justify-self: center; position: relative; }
.hero__phone::before {
  content: '';
  position: absolute;
  inset: 8% -14% 18% -14%;
  background: var(--gem);
  filter: blur(60px);
  opacity: 0.28;
  z-index: -1;
  border-radius: 50%;
}

/* Proof */
.proof { border-top: 1px solid var(--line); border-bottom: 1px solid var(--line); padding: 30px 0; }
.proof__label { font-size: 0.85rem; color: var(--muted); margin-bottom: 18px; }
.proof__stats { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 16px; margin: 0; }
.proof__stats dt { font-family: var(--serif); font-size: clamp(1.6rem, 5vw, 2.4rem); line-height: 1.1; color: var(--ink); font-weight: 600; }
.proof__stats dd { margin: 6px 0 0; font-size: 0.9rem; line-height: 1.4; color: var(--muted); }

/* Sections */
.section { padding: 72px 0; }
.section--tint { background: var(--tint); }
.section h2 { margin-bottom: 14px; }
.section__intro { max-width: 40em; color: var(--muted); }

/* Services: four numbered steps joined by a line */
.services { list-style: none; margin: 34px 0 0; padding: 0; display: grid; gap: 14px; counter-reset: step; }
.service { counter-increment: step; position: relative; background: var(--card); border: 1px solid var(--line); border-radius: var(--radius); padding: 24px 24px 24px 80px; }
.service::before {
  content: counter(step);
  position: absolute;
  left: 24px;
  top: 22px;
  width: 38px;
  height: 38px;
  border-radius: 50%;
  display: grid;
  place-items: center;
  font-family: var(--serif);
  font-weight: 600;
  color: #fff;
  background: var(--gem);
}
.service:not(:last-child)::after {
  content: '';
  position: absolute;
  left: 42px;
  bottom: -15px;
  width: 2px;
  height: 16px;
  background: var(--line);
}
.service h3 { margin-bottom: 6px; }
.service p { font-size: 0.98rem; }

/* Samples */
.reel {
  display: grid;
  grid-auto-flow: column;
  grid-auto-columns: min(62vw, 260px);
  gap: 18px;
  overflow-x: auto;
  scroll-snap-type: x mandatory;
  margin: 34px -20px 0;
  padding: 0 20px 12px;
  scroll-padding-inline: 20px;
  scrollbar-width: thin;
}
.reel .phone { scroll-snap-align: start; }

.grid-demo { margin-top: 56px; display: grid; gap: 22px; }
.grid-demo__title { font-family: var(--serif); font-size: 1.45rem; color: var(--ink); margin-bottom: 6px; }
.grid-demo__head p:last-child { color: var(--muted); max-width: 30em; }
.grid-demo__tiles { list-style: none; margin: 0; padding: 0; display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 4px; border-radius: 12px; overflow: hidden; }
.grid-demo__tiles img { width: 100%; height: auto; aspect-ratio: 3 / 4; object-fit: cover; }

/* Closing */
.closing { background: var(--ink); color: #D6D4E4; padding: 80px 0; text-align: center; }
.closing__inner { display: flex; flex-direction: column; align-items: center; }
.closing__inner img { width: 44px; height: auto; margin-bottom: 22px; }
.closing h2 { color: #fff; margin-bottom: 14px; }
.closing p { max-width: 30em; }
.closing .btn { margin-top: 30px; }
.closing__alt { margin-top: 18px; font-size: 0.95rem; }
.closing__alt a { color: #fff; }

/* Footer */
.foot { background: var(--ink); border-top: 1px solid rgba(255, 255, 255, 0.1); color: #9E9BB3; font-size: 0.85rem; padding: 22px 0 28px; }
.foot__row { display: flex; flex-wrap: wrap; gap: 6px 24px; justify-content: space-between; }
.foot a { color: #C9C7D9; }

@media (min-width: 720px) {
  .reel { grid-auto-flow: row; grid-template-columns: repeat(3, minmax(0, 1fr)); grid-auto-columns: auto; overflow: visible; margin: 34px 0 0; padding: 0; gap: 28px; }
  .grid-demo__tiles { grid-template-columns: repeat(6, minmax(0, 1fr)); }
}

@media (min-width: 960px) {
  body { font-size: 18px; }
  .hero { padding: 56px 0 88px; }
  .hero__grid { grid-template-columns: minmax(0, 1.25fr) minmax(0, 0.75fr); gap: 64px; }
  .hero__phone { width: 320px; justify-self: end; }
  .section { padding: 104px 0; }
  .services { grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 18px; }
  .service { padding: 80px 24px 26px; }
  .service:not(:last-child)::after { left: auto; right: -19px; top: 40px; bottom: auto; width: 20px; height: 2px; }
  .grid-demo { grid-template-columns: minmax(0, 0.8fr) minmax(0, 2.2fr); align-items: center; gap: 48px; }
  .grid-demo__tiles { grid-template-columns: repeat(6, minmax(0, 1fr)); }
  .reel { max-width: 900px; }
}

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