:root {
  color-scheme: light;
  --paper: #f6f4ec;
  --white: #fffcf6;
  --ink: #251837;
  --muted: #60586b;
  --line: #ded8e2;
  --plum: #493067;
  --lime: #e5fa83;
  --sans: "Avenir Next", Avenir, "Segoe UI", sans-serif;
  --serif: "Iowan Old Style", "Palatino Linotype", Palatino, Georgia, serif;
}

*, *::before, *::after { box-sizing: border-box; }
html { scroll-behavior: smooth; }
body { margin: 0; background: var(--paper); color: var(--ink); font: 16px/1.5 var(--sans); }
button { color: inherit; font: inherit; cursor: pointer; }
a { color: inherit; }
button:focus-visible, a:focus-visible { outline: 3px solid #8c56ab; outline-offset: 4px; }
.frame { width: min(1180px, calc(100% - 92px)); margin-inline: auto; }
.topbar { background: var(--ink); color: var(--white); }
.topbar-inner { min-height: 70px; display: flex; align-items: center; justify-content: space-between; gap: 24px; }
.wordmark { display: inline-flex; align-items: center; gap: 10px; font-size: 21px; font-weight: 750; letter-spacing: -.045em; text-decoration: none; }
.brand-mark { display: inline-grid; place-items: center; width: 32px; height: 32px; isolation: isolate; position: relative; flex-shrink: 0; }
.brand-mark::before { content: ""; position: absolute; inset: 2px; background: var(--lime); clip-path: polygon(50% 0, 100% 17%, 96% 58%, 80% 80%, 50% 100%, 20% 80%, 4% 58%, 0 17%); z-index: -1; }
.brand-mark span { width: 12px; height: 7px; border: solid #261737; border-width: 0 0 2px 2px; transform: translateY(-1px) rotate(-45deg); }
.topbar nav { display: flex; flex-wrap: wrap; gap: 28px; font-size: 14px; font-weight: 650; color: #e8e0f0; }
.topbar nav a { text-decoration: none; }
.topbar nav a:hover { text-decoration: underline; text-underline-offset: 4px; }

.intro { display: grid; grid-template-columns: minmax(0, 1fr) minmax(240px, 340px); gap: 8px 50px; padding: 34px 0 29px; align-items: end; }
.eyebrow { display: flex; align-items: center; gap: 8px; grid-column: 1 / -1; margin: 0; font-size: 13px; font-weight: 750; letter-spacing: .14em; color: var(--plum); }
.eyebrow span { display: inline-block; width: 9px; height: 9px; background: #9a6abd; transform: rotate(45deg); border-radius: 1px; }
.intro h1, .roadmap h2 { margin: 0; font: 500 clamp(3.25rem, 6.2vw, 5.7rem)/.9 var(--serif); letter-spacing: -.065em; }
.intro h1 em { color: var(--plum); font-weight: inherit; }
.intro-copy { max-width: 31ch; margin: 0 0 5px; align-self: end; color: var(--muted); font-size: clamp(1rem, 1.6vw, 1.22rem); line-height: 1.5; }

.studio { display: grid; grid-template-columns: minmax(0, .91fr) minmax(0, 1fr); border: 1px solid var(--line); background: var(--white); border-radius: 25px; overflow: hidden; box-shadow: 0 17px 45px #3421420c; scroll-margin-top: 16px; }
.phone-stage { display: grid; place-items: center; align-content: space-between; gap: 14px; position: relative; isolation: isolate; padding: 22px 25px 15px; background: radial-gradient(ellipse at 49% 54%, #6a488a 0%, #43295b 50%, #2b1a43 100%); color: #f7efff; overflow: hidden; }
.phone-stage::before { content: ""; position: absolute; inset: 0; z-index: -2; background-image: radial-gradient(circle, #e5d3ff50 1px, transparent 1.6px); background-size: 19px 19px; mask-image: linear-gradient(140deg, #000, #0002 70%); }
.phone-stage::after { content: ""; position: absolute; z-index: -1; width: min(82%, 410px); aspect-ratio: 1; border-radius: 50%; border: 1px solid #f6e7ff50; box-shadow: 0 0 0 32px #e2baff14, 0 0 0 65px #e2baff10, 0 0 0 97px #e2baff0a; top: 51%; left: 50%; transform: translate(-50%, -50%); }
.stage-top { width: 100%; display: flex; align-items: center; justify-content: space-between; position: relative; font-size: 12px; font-weight: 750; letter-spacing: .15em; }
.simulation-note { border: 1px solid #d6b5ed77; border-radius: 50px; padding: 3px 9px; letter-spacing: 0; font-weight: 600; }
.stage-caption { margin: 0; color: #efe4fa; font-size: 13px; }
.phone { width: min(100%, 281px); border: 1px solid #b68ed0; background: #1b1228; border-radius: 35px; padding: 8px; box-shadow: 0 17px 44px #1b0e2d94, inset 0 0 0 1px #533974; }
.phone-screen { color: var(--ink); min-height: 447px; display: flex; flex-direction: column; overflow: hidden; position: relative; border-radius: 27px; background: #f9f5ff; }
.status-bar { height: 38px; position: relative; display: flex; justify-content: space-between; align-items: center; padding: 0 15px; background: #ede5f5; font-size: 11px; font-weight: 750; }
.camera { width: 57px; height: 15px; position: absolute; left: 50%; top: 10px; transform: translateX(-50%); border-radius: 50px; background: #20152e; }
.signal-bars { letter-spacing: .1em; font-size: 7px; }
.app-header { display: flex; align-items: center; gap: 7px; padding: 7px 13px 9px; border-bottom: 1px solid #ddd2ea; background: #ede5f5; font-size: 15px; font-weight: 790; letter-spacing: -.03em; }
.app-header .brand-mark { width: 22px; height: 22px; }
.app-header .brand-mark::before { background: var(--plum); }
.app-header .brand-mark span { width: 8px; height: 5px; border-color: var(--lime); }
.phone-content { padding: 15px 13px 14px; }
.phone-kicker { margin: 0; font-size: 12px; font-weight: 740; color: #6a577b; }
.phone-content h2 { margin: 1px 0 11px; font: 600 26px/1.1 var(--serif); letter-spacing: -.055em; }
.protection-card { background: #e8f0cd; border: 1px solid #d7e4b4; border-radius: 11px; padding: 6px 10px 7px; }
.protection-card:has(.switch[aria-pressed="false"]) { background: #ece5f3; border-color: #e0d4e9; }
.protection-top { display: flex; align-items: center; justify-content: space-between; gap: 4px; }
.protection-top p { margin: 0; font-size: 14px; font-weight: 750; }
#protection-detail { margin: 1px 0 0; font-size: 13px; line-height: 1.3; color: #46474a; }
.switch { position: relative; flex: 0 0 42px; width: 42px; height: 28px; border: 0; border-radius: 40px; padding: 0; background: #a397aa; }
.switch::before { content: ""; position: absolute; inset: -5px -2px; }
.switch[aria-pressed="true"] { background: #37214e; }
.switch span { display: block; width: 18px; height: 18px; margin: 5px; border-radius: 50%; background: white; transition: transform .15s ease; }
.switch[aria-pressed="true"] span { transform: translateX(14px); background: var(--lime); }
.setup-button { display: inline-block; border: 0; background: transparent; padding: 5px 1px; font-size: 13px; font-weight: 740; color: var(--plum); text-decoration: underline; text-underline-offset: 2px; }
.phone-content h3 { margin: 3px 0 5px; font-size: 13px; font-weight: 750; }
.message-card { border: 1px solid #e6daed; background: #fff; border-radius: 11px; padding: 9px; }
.sender-line { display: flex; align-items: center; gap: 7px; }
.sender-line p { margin: 0; font-size: 13px; font-weight: 780; }
.sender-line div > span { display: block; color: var(--muted); font-size: 11px; }
.message-icon { position: relative; display: inline-grid; flex: 0 0 28px; width: 28px; height: 28px; border-radius: 9px; place-items: center; background: #e9dff2; }
.message-icon::before { content: ""; width: 13px; height: 9px; border: 1.5px solid #573870; border-radius: 3px; }
.message-icon::after { content: ""; position: absolute; width: 5px; height: 3px; border: solid #573870; border-width: 0 0 1px 1px; bottom: 7px; left: 9px; transform: skewY(-30deg); background: #e9dff2; }
#message-body { margin: 6px 0 0; font-size: 13px; line-height: 1.4; overflow-wrap: anywhere; }
.phone-route { display: flex; align-items: center; gap: 6px; margin-top: 9px; padding: 7px 8px; border-radius: 8px; font-size: 12px; font-weight: 700; background: #eee7f6; }
.phone-route p { margin: 0; }
.route-dot { width: 6px; height: 6px; flex: 0 0 6px; background: currentColor; border-radius: 50%; }
.phone[data-outcome="spam"] .phone-route { background: #f8e1e4; color: #852942; }
.phone[data-outcome="inbox"] .phone-route { background: #e9f0d0; color: #344f19; }
.phone[data-outcome="review"] .phone-route { background: #f8eacb; color: #6d4314; }
.home-indicator { width: 75px; height: 4px; border-radius: 100px; background: #21152e; margin: auto auto 7px; }

.controls { padding: clamp(23px, 3.1vw, 43px); display: flex; flex-direction: column; min-width: 0; }
.controls-head { display: flex; align-items: center; justify-content: space-between; flex-wrap: wrap; gap: 12px 10px; }
.controls h2 { margin: 0; font: 600 clamp(1.7rem, 2.75vw, 2.7rem)/1.1 var(--serif); letter-spacing: -.065em; }
.device-options { display: inline-flex; background: #f0e9f4; border: 1px solid #e6dce8; border-radius: 50px; padding: 3px; }
.device-options button { padding: 6px 12px; border: 0; background: transparent; font-size: 13px; font-weight: 700; border-radius: 50px; }
.device-options button[aria-pressed="true"] { background: var(--ink); color: white; }
.device-options button[aria-pressed="false"]:hover { background: #e3d5ed; }
.controls-description { margin: 10px 0 17px; color: var(--muted); font-size: 15px; }
.scenario-grid { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 8px; }
.scenario-grid button { display: flex; flex-direction: column; align-items: flex-start; justify-content: center; gap: 6px; min-height: 76px; border: 1px solid var(--line); border-radius: 11px; background: #fffdf9; font-size: 14px; font-weight: 700; padding: 8px 9px; text-align: left; line-height: 1.23; }
.scenario-grid button:hover { border-color: #8058a0; }
.scenario-grid button[aria-pressed="true"] { border-color: #8458a3; box-shadow: inset 0 0 0 1px #8458a3; background: #f0e7f8; }
.scenario-icon { position: relative; height: 21px; width: 22px; color: #573870; }
.parcel::before { content: ""; position: absolute; inset: 3px 3px 2px 2px; border: 1.5px solid currentColor; border-radius: 3px; }
.parcel::after { content: ""; position: absolute; width: 5px; height: 7px; border: solid currentColor; border-width: 0 1.4px 1.4px; top: 3px; left: 8px; }
.key::before { content: ""; position: absolute; width: 10px; height: 10px; border: 1.6px solid currentColor; border-radius: 50%; top: 3px; left: 2px; }
.key::after { content: ""; position: absolute; top: 11px; left: 9px; width: 11px; height: 5px; background: currentColor; clip-path: polygon(0 0, 100% 0, 100% 100%, 75% 100%, 75% 50%, 62% 50%, 62% 100%, 38% 100%, 38% 35%, 0 35%); transform: rotate(28deg); transform-origin: left center; }
.chat::before { content: ""; position: absolute; inset: 3px 2px 4px; border: 1.5px solid currentColor; border-radius: 5px; }
.chat::after { content: ""; position: absolute; width: 5px; height: 5px; left: 6px; bottom: 2px; border: solid currentColor; border-width: 0 0 1.5px 1.5px; background: #fffdf9; transform: skewY(-32deg); }
[aria-pressed="true"] .chat::after { background: #f0e7f8; }
.mobile-message { display: none; }
.check-button { display: flex; align-items: center; justify-content: center; gap: 9px; width: 100%; min-height: 47px; margin: 13px 0 15px; border: 1px solid #282139; border-radius: 10px; background: var(--lime); color: #221836; font-weight: 800; box-shadow: 0 2px 0 #252035; }
.check-button:hover { background: #d8f365; }
.check-button:active { transform: translateY(1px); box-shadow: 0 1px 0 #252035; }
.scan-icon { display: inline-block; position: relative; width: 15px; height: 15px; background: linear-gradient(to bottom, transparent 44%, currentColor 44% 55%, transparent 55%) center/70% 100% no-repeat; }
.scan-icon::before, .scan-icon::after { content: ""; position: absolute; inset: 0; border: 1.6px solid currentColor; border-radius: 3px; clip-path: polygon(0 0, 36% 0, 36% 100%, 0 100%, 0 0, 100% 0, 100% 100%, 64% 100%, 64% 0, 100% 0); }
.result { min-height: 146px; padding: 15px 16px; border: 1px solid #e2d9e9; border-radius: 14px; background: #f3edf7; }
.result[data-outcome="spam"] { border-color: #e9c9d1; background: #f9ecef; }
.result[data-outcome="inbox"] { border-color: #d8e6b5; background: #eef4da; }
.result[data-outcome="review"] { border-color: #e6d6ab; background: #faf1dd; }
.result-top { display: flex; align-items: center; justify-content: space-between; gap: 6px 12px; flex-wrap: wrap; }
#result-status { color: #51316a; font-size: 12px; line-height: 1.3; font-weight: 800; letter-spacing: .09em; text-transform: uppercase; }
[data-outcome="spam"] #result-status { color: #852942; }
[data-outcome="inbox"] #result-status { color: #344f19; }
[data-outcome="review"] #result-status { color: #6d4314; }
#destination { font-size: 12px; font-weight: 700; }
.result h3 { margin: 7px 0 3px; font: 650 23px/1.09 var(--serif); letter-spacing: -.035em; }
.result p { margin: 0; color: #554c5b; font-size: 14px; line-height: 1.4; }
.signal-list { display: flex; gap: 4px 6px; flex-wrap: wrap; list-style: none; padding: 0; margin: 8px 0 0; }
.signal-list:empty { display: none; }
.signal-list li { background: #ffffffa6; border: 1px solid #36214321; border-radius: 30px; padding: 2px 7px; font-size: 12px; line-height: 1.35; font-weight: 650; }
.demo-note { display: flex; align-items: center; gap: 7px; margin: 12px 0 0; font-size: 13px; color: #62596b; }
.lock-icon { position: relative; display: inline-block; flex: 0 0 11px; width: 11px; height: 8px; margin-top: 4px; border: 1.3px solid currentColor; border-radius: 2px; }
.lock-icon::before { content: ""; position: absolute; width: 7px; height: 6px; left: 1px; bottom: 6px; border: solid currentColor; border-width: 1.3px 1.3px 0; border-radius: 5px 5px 0 0; }

.roadmap { padding: 56px 0; scroll-margin-top: 10px; }
.roadmap h2 { margin: 8px 0 24px; font-size: clamp(2.3rem, 4.4vw, 4rem); line-height: 1; }
.phases { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 10px; list-style: none; padding: 0; margin: 0; }
.phases li { border-top: 2px solid #9a6abd; padding: 12px 9px 0 0; }
.phase-step { font-size: 13px; font-weight: 800; color: var(--plum); }
.phases h3 { margin: 5px 0; font-size: 17px; line-height: 1.25; }
.phases p { margin: 0; color: var(--muted); font-size: 14px; }
footer { background: var(--ink); color: #f2e9f7; }
.footer-inner { min-height: 62px; display: flex; align-items: center; justify-content: space-between; gap: 10px; font-size: 14px; }
.footer-inner span:first-child { font-weight: 750; }
dialog { width: min(480px, calc(100% - 32px)); max-height: calc(100% - 32px); border: 1px solid var(--line); padding: 22px; border-radius: 18px; background: var(--white); color: var(--ink); box-shadow: 0 18px 55px #1d102e66; }
dialog::backdrop { background: #241632a8; }
.dialog-head { display: flex; align-items: flex-start; justify-content: space-between; gap: 14px; }
.dialog-head h2 { margin: 0; font: 600 clamp(1.6rem, 4vw, 2.2rem)/1.03 var(--serif); letter-spacing: -.04em; }
.dialog-head button { border: 1px solid var(--line); border-radius: 6px; padding: 5px 8px; background: #ede5f5; font-size: 14px; font-weight: 700; }
dialog ol { padding-inline-start: 22px; margin-block: 16px; }
dialog li + li { margin-top: 6px; }
.dialog-note { margin: 0; color: var(--muted); font-size: 14px; }

@media (max-width: 990px) {
  .frame { width: min(100% - 58px, 1180px); }
}
@media (max-width: 760px) {
  .frame { width: calc(100% - 32px); }
  .topbar-inner { min-height: 59px; }
  .topbar nav { gap: 12px; }
  .intro { grid-template-columns: 1fr; gap: 10px; padding: 26px 0 24px; }
  .intro-copy { max-width: 45ch; }
  .studio { grid-template-columns: 1fr; }
  .phone-stage { order: 1; }
  .mobile-message { display: block; margin-top: 10px; padding: 8px 10px; border: 1px solid var(--line); border-radius: 8px; background: #faf6fc; font-size: 14px; overflow-wrap: anywhere; }
  .mobile-message p { margin: 0; }
  #mobile-sender { font-weight: 750; }
  .phases { grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 18px 12px; }
}
@media (max-width: 420px) {
  .topbar nav { font-size: 12px; }
  .topbar-inner { gap: 8px; }
  .wordmark { font-size: 17px; gap: 5px; }
  .wordmark .brand-mark { width: 25px; height: 25px; }
  .controls { padding: 17px 13px; }
  .controls-head { gap: 10px 5px; }
  .device-options button { padding-inline: 8px; }
  .scenario-grid button { padding-inline: 7px; font-size: 13px; }
  .roadmap { padding: 39px 0; }
}
@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  .switch span { transition: none; }
}
