:root {
  --wall: #f3ecf5;
  --plum: #34203a;
  --plum-soft: #6d5572;
  --rose: #e6a3b4;
  --rose-deep: #b24e6b;
  --alarm: #d4403a;
  --mint: #d3eadc;
  --leaf: #1f5e3c;
  --card: #fffafd;
  --serif: "Young Serif", Georgia, serif;
  --sans: "Figtree", -apple-system, "Segoe UI", sans-serif;
}

* { box-sizing: border-box; margin: 0; }
body {
  color: var(--plum); font-family: var(--sans); -webkit-font-smoothing: antialiased;
  background-color: var(--wall);
  background-image:
    radial-gradient(circle at 12px 12px, rgba(178, 78, 107, .16) 2.5px, transparent 3px),
    radial-gradient(circle at 36px 36px, rgba(178, 78, 107, .09) 2.5px, transparent 3px);
  background-size: 48px 48px;
}
button { font: inherit; cursor: pointer; }
:focus-visible { outline: 3px solid var(--rose-deep); outline-offset: 3px; }
main, .top, .foot { max-width: 1140px; margin: 0 auto; padding-left: 24px; padding-right: 24px; }

.top { display: flex; align-items: center; gap: 16px; padding-top: 22px; padding-bottom: 22px; }
.brand { display: flex; align-items: center; gap: 9px; font-family: var(--serif); font-size: 26px; color: inherit; text-decoration: none; }
.brand svg { width: 30px; height: 30px; fill: var(--rose-deep); color: var(--rose-deep); }
.tagline { font-size: 14px; color: var(--plum-soft); padding-left: 16px; border-left: 2px dotted var(--rose); }
.built { margin-left: auto; font-size: 13px; font-weight: 600; color: inherit; text-decoration: none; background: var(--card); padding: 7px 12px; border-radius: 999px; }

/* What Mabel is, in one breath */

.hero { max-width: 800px; padding: 28px 0 8px; }
h1 { font-family: var(--serif); font-weight: 400; font-size: clamp(42px, 6vw, 78px); line-height: 1.02; letter-spacing: -0.015em; text-wrap: balance; }
.hero > p { font-size: 20px; line-height: 1.55; max-width: 54ch; margin-top: 18px; color: var(--plum-soft); }
.actions { display: flex; flex-wrap: wrap; gap: 12px; margin-top: 28px; }
.play {
  display: inline-flex; align-items: center; gap: 10px;
  background: var(--rose-deep); color: #fff; border: 2px solid var(--rose-deep); border-radius: 999px;
  padding: 13px 26px 13px 20px; font-size: 17px; font-weight: 700;
  box-shadow: 0 10px 24px -12px rgba(178, 78, 107, .8); transition: transform .15s, background-color .15s;
}
.play:hover { background: #9c3f5a; border-color: #9c3f5a; }
.play:active { transform: scale(.97); }
.play svg { width: 20px; height: 20px; fill: currentColor; }
.play.quiet { background: var(--card); color: var(--plum); border-color: var(--rose); box-shadow: none; }
.play.quiet:hover { border-color: var(--rose-deep); background: #fff; }
.hero .note { font-size: 14px; margin-top: 14px; color: var(--plum-soft); }

/* The call: Mabel's phone on the left, what was said on the right */

.demo {
  display: grid; grid-template-columns: .85fr 1.15fr; gap: 32px 44px; align-items: start;
  padding: 44px 0 20px; scroll-margin-top: 8px;
}

.phone { background: var(--card); border-radius: 30px; padding: 26px 26px 28px; box-shadow: 0 2px 0 rgba(52, 32, 58, .08), 0 30px 50px -30px rgba(52, 32, 58, .45); }
.incoming { font-size: 14px; font-weight: 600; color: var(--plum-soft); }
.number { font-family: var(--serif); font-size: clamp(28px, 3vw, 36px); margin-top: 4px; font-variant-numeric: tabular-nums; }
.flag { display: inline-block; margin-top: 12px; background: rgba(52, 32, 58, .08); color: var(--plum); font-size: 13px; font-weight: 700; padding: 6px 12px; border-radius: 999px; transition: background-color .3s, color .3s; }
.flag.scam { background: var(--alarm); color: #fff; }
.flag.safe { background: var(--mint); color: var(--leaf); }
[data-state="ringing"] .phone { animation: ring .5s ease-in-out infinite; }

.meters { display: grid; grid-template-columns: 1fr 1fr; gap: 16px; margin-top: 24px; padding-top: 20px; border-top: 2px dotted var(--rose); }
.meters dt { font-size: 13px; font-weight: 600; color: var(--plum-soft); }
.meters dd { font-family: var(--serif); font-size: clamp(30px, 3.4vw, 40px); line-height: 1.1; margin-top: 2px; font-variant-numeric: tabular-nums; }

.patience { margin-top: 20px; }
[data-scenario="real"] .patience { display: none; }
.patience p { font-size: 13px; font-weight: 600; color: var(--plum-soft); }
.bar { height: 14px; margin-top: 8px; background: rgba(52, 32, 58, .08); border-radius: 999px; overflow: hidden; }
.bar i { display: block; height: 100%; width: 100%; background: var(--alarm); border-radius: 999px; transition: width 1.2s cubic-bezier(.3, .7, .3, 1); }

/* The text you get afterwards, as it would land on your phone */

.notice {
  display: grid; grid-template-columns: auto 1fr; gap: 12px; align-items: start;
  margin-top: 22px; background: #fff; border-radius: 18px; padding: 13px 15px 14px;
  box-shadow: 0 12px 28px -14px rgba(52, 32, 58, .5); animation: drop .45s cubic-bezier(.2, .8, .2, 1);
}
.notice[hidden] { display: none; }
.notice-icon { width: 34px; height: 34px; padding: 6px; border-radius: 9px; background: var(--plum); fill: var(--rose); color: var(--rose); }
.notice-head { display: flex; justify-content: space-between; font-size: 13px; }
.notice-head span { color: var(--plum-soft); }
.notice-body { font-size: 14.5px; line-height: 1.45; margin-top: 2px; }

.transcript { list-style: none; padding: 0; display: grid; gap: 10px; align-content: start; max-height: calc(100vh - 24px); overflow-y: auto; scroll-behavior: smooth; }
.transcript:empty::before { content: "Press play above, and the call will appear here as it happens."; color: var(--plum-soft); font-size: 15px; padding: 18px 0; }
.turn { max-width: 88%; padding: 12px 16px 13px; border-radius: 20px; font-size: 16px; line-height: 1.45; animation: arrive .3s ease-out; }
.turn .who { display: block; font-size: 12px; font-weight: 700; margin-bottom: 3px; }
.turn.caller { justify-self: start; background: #fff; border-bottom-left-radius: 6px; }
.turn.caller .who { color: var(--alarm); }
[data-scenario="real"] .turn.caller .who { color: var(--leaf); }
.turn.mabel { justify-self: end; background: var(--plum); color: #f6eef7; border-bottom-right-radius: 6px; }
.turn.mabel .who { color: var(--rose); }
.word { opacity: .3; transition: opacity .12s; }
.word.said { opacity: 1; }

/* How it works, in the order it happens */

.how { padding: 56px 0 24px; }
.how h2 { font-family: var(--serif); font-weight: 400; font-size: clamp(30px, 3.6vw, 44px); }
.steps { list-style: none; padding: 0; margin-top: 24px; display: grid; grid-template-columns: repeat(3, 1fr); gap: 16px; counter-reset: step; }
.steps li { background: var(--card); border-radius: 22px; padding: 22px 22px 24px; counter-increment: step; display: flex; flex-direction: column; gap: 6px; }
.steps li::before { content: counter(step); font-family: var(--serif); font-size: 28px; color: var(--rose-deep); line-height: 1; margin-bottom: 8px; }
.steps b { font-size: 17px; }
.steps span { font-size: 15px; line-height: 1.5; color: var(--plum-soft); }
.price { margin-top: 22px; font-size: 17px; color: var(--plum-soft); }
.price strong { font-family: var(--serif); font-weight: 400; font-size: 24px; color: var(--plum); margin-right: 6px; }

.foot { display: flex; flex-wrap: wrap; justify-content: space-between; gap: 8px 24px; padding-top: 28px; padding-bottom: 40px; font-size: 13px; color: var(--plum-soft); }
.foot a { color: var(--rose-deep); font-weight: 700; text-decoration: none; }

@keyframes arrive { from { opacity: 0; transform: translateY(6px); } }
@keyframes drop { from { opacity: 0; transform: translateY(-10px) scale(.98); } }
@keyframes ring { 25% { transform: rotate(-1deg); } 75% { transform: rotate(1deg); } }

@media (max-width: 860px) {
  .tagline { display: none; }
  .demo { grid-template-columns: 1fr; gap: 24px; padding-top: 32px; }
  .transcript { max-height: 46vh; }
  .steps { grid-template-columns: 1fr; }
}

@media (prefers-reduced-motion: reduce) {
  *, *::before { animation: none !important; transition: none !important; }
  .transcript { scroll-behavior: auto; }
}
