:root {
  --ink: #202027;
  --muted: #605d69;
  --paper: #f7f1e8;
  --mist: #e8e0d7;
  --lavender: #7a5bc6;
  --coral: #e96770;
  --rose: #b6425d;
  --line: rgba(32, 32, 39, 0.16);
  --display: "Iowan Old Style", "Palatino Linotype", "Book Antiqua", Georgia, serif;
  --body: "Avenir Next", "Trebuchet MS", "Gill Sans", sans-serif;
}

* { box-sizing: border-box; }

html { scroll-behavior: smooth; }

body {
  margin: 0;
  color: var(--ink);
  background:
    radial-gradient(circle at 5% 4%, rgba(122, 91, 198, 0.12), transparent 24rem),
    radial-gradient(circle at 96% 20%, rgba(233, 103, 112, 0.16), transparent 29rem),
    var(--paper);
  font-family: var(--body);
  line-height: 1.5;
}

a { color: inherit; }

.site-header, .page-shell, .site-footer { width: min(1160px, calc(100% - 40px)); margin: 0 auto; }

.site-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  min-height: 94px;
  gap: 24px;
}

.brand { display: inline-flex; align-items: center; gap: 11px; text-decoration: none; font-weight: 800; font-size: 1.22rem; letter-spacing: -0.04em; }
.brand-mark { width: 40px; height: 40px; padding: 4px; object-fit: contain; border: 1px solid var(--ink); border-radius: 12px; background: #fff; }
.brand-word { font-family: var(--display); font-size: 1.55rem; }

.site-nav { display: flex; align-items: center; gap: 19px; font-size: 0.92rem; font-weight: 700; }
.site-nav a { text-decoration: none; color: var(--muted); }
.site-nav .play-link { color: #fff; }
.site-nav a:hover, .site-nav a:focus-visible { color: var(--ink); text-decoration: underline; text-underline-offset: 5px; }
.site-nav .play-link:hover, .site-nav .play-link:focus-visible { color: #fff; text-decoration: none; }

.play-link, .button-main {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 9px;
  min-height: 46px;
  padding: 0 18px;
  border: 1px solid var(--ink);
  border-radius: 999px;
  background: var(--ink);
  color: #fff;
  font-weight: 800;
  text-decoration: none;
  box-shadow: 3px 3px 0 var(--lavender);
  transition: transform 180ms ease, box-shadow 180ms ease;
}
.play-link:hover, .button-main:hover { transform: translate(-2px, -2px); box-shadow: 5px 5px 0 var(--lavender); }
.play-link:focus-visible, .button-main:focus-visible, a:focus-visible { outline: 3px solid var(--coral); outline-offset: 4px; }

.hero {
  position: relative;
  display: grid;
  grid-template-columns: minmax(0, 1.08fr) minmax(320px, 0.92fr);
  gap: 28px;
  overflow: hidden;
  padding: clamp(42px, 7vw, 88px);
  border: 1px solid var(--ink);
  border-radius: 34px;
  background: var(--ink);
  color: #fff;
  box-shadow: 10px 10px 0 var(--coral);
}
.hero::before { content: ""; position: absolute; width: 560px; height: 560px; right: -220px; top: -220px; border-radius: 50%; background: radial-gradient(circle, rgba(233, 103, 112, 0.95), rgba(122, 91, 198, 0.55) 44%, transparent 68%); filter: blur(3px); }
.hero-copy, .screen-stage { position: relative; z-index: 1; }
.eyebrow { margin: 0 0 15px; color: #f8a6a8; font-size: 0.76rem; font-weight: 900; letter-spacing: 0.13em; text-transform: uppercase; }
h1, h2, h3 { font-family: var(--display); letter-spacing: -0.055em; line-height: 0.97; }
h1 { max-width: 690px; margin: 0; font-size: clamp(3.6rem, 7.8vw, 7.3rem); font-weight: 700; }
.hero p:not(.eyebrow) { max-width: 530px; margin: 25px 0 30px; color: #e3dce3; font-size: clamp(1.04rem, 1.7vw, 1.28rem); }
.hero .button-main { background: var(--coral); color: var(--ink); box-shadow: 3px 3px 0 #fff; }

.screen-stage { min-height: 395px; }
.phone { position: absolute; width: min(245px, 47%); overflow: hidden; border: 7px solid #111015; border-radius: 28px; background: #111015; box-shadow: 0 26px 35px rgba(0, 0, 0, 0.33); transform: rotate(7deg); }
.phone img { display: block; width: 100%; height: auto; }
.phone-one { left: 3%; top: 24px; }
.phone-two { right: 2%; top: 83px; transform: rotate(-8deg); }
.ribbon { position: absolute; right: 8%; top: 20px; padding: 9px 13px; border-radius: 999px; background: #f9e5a4; color: var(--ink); font-size: 0.76rem; font-weight: 900; transform: rotate(5deg); }

.feature-band { display: grid; grid-template-columns: repeat(3, 1fr); gap: 1px; margin: 78px 0; border: 1px solid var(--line); background: var(--line); }
.feature { min-height: 230px; padding: 29px; background: var(--paper); }
.feature-number { color: var(--lavender); font-size: 0.79rem; font-weight: 900; letter-spacing: 0.09em; }
.feature h2 { margin: 21px 0 13px; font-size: clamp(2rem, 3vw, 2.8rem); }
.feature p { margin: 0; color: var(--muted); }

.how { display: grid; grid-template-columns: minmax(0, 0.9fr) minmax(0, 1.1fr); gap: 56px; align-items: start; padding: 74px 0; border-top: 1px solid var(--line); }
.how h2 { margin: 0; font-size: clamp(3rem, 5vw, 5.2rem); }
.steps { display: grid; gap: 18px; }
.step { display: grid; grid-template-columns: 42px 1fr; gap: 17px; padding: 20px 0; border-bottom: 1px solid var(--line); }
.step-count { display: grid; place-items: center; width: 34px; height: 34px; border-radius: 50%; background: var(--lavender); color: #fff; font-size: 0.82rem; font-weight: 900; }
.step h3 { margin: 0 0 6px; font-family: var(--body); font-size: 1.15rem; letter-spacing: -0.03em; line-height: 1.2; }
.step p { margin: 0; color: var(--muted); }

.closing { margin: 5px 0 78px; padding: clamp(32px, 6vw, 62px); border-radius: 29px; background: linear-gradient(115deg, var(--lavender), var(--rose)); color: #fff; }
.closing h2 { max-width: 680px; margin: 0 0 25px; font-size: clamp(2.8rem, 5vw, 5.1rem); }
.closing .play-link { background: #fff; color: var(--ink); box-shadow: 3px 3px 0 var(--ink); }

.site-footer { display: flex; justify-content: space-between; gap: 20px; padding: 27px 0 38px; border-top: 1px solid var(--line); color: var(--muted); font-size: 0.86rem; }
.footer-links { display: flex; gap: 17px; }
.footer-links a { text-underline-offset: 4px; }

.legal-hero { max-width: 770px; padding: 64px 0 46px; }
.legal-hero h1 { font-size: clamp(3.7rem, 8vw, 6.4rem); }
.legal-hero p { max-width: 590px; color: var(--muted); font-size: 1.1rem; }
.legal-card { max-width: 850px; margin-bottom: 72px; padding: clamp(26px, 5vw, 56px); border: 1px solid var(--ink); border-radius: 24px; background: #fffdf8; box-shadow: 8px 8px 0 var(--mist); }
.legal-card section + section { margin-top: 36px; padding-top: 34px; border-top: 1px solid var(--line); }
.legal-card h2 { margin: 0 0 11px; font-size: 2rem; }
.legal-card p, .legal-card li { color: #4f4b55; }
.legal-card ul { padding-left: 21px; }

@media (max-width: 760px) {
  .site-header, .page-shell, .site-footer { width: min(100% - 28px, 1160px); }
  .site-header { min-height: 78px; }
  .site-nav { gap: 10px; }
  .site-nav a:not(.play-link):not(.about-link) { display: none; }
  .play-link { min-height: 39px; padding: 0 13px; font-size: 0.81rem; }
  .hero { grid-template-columns: 1fr; padding: 35px 25px 30px; border-radius: 24px; box-shadow: 6px 6px 0 var(--coral); }
  .screen-stage { min-height: 335px; }
  .phone { width: min(196px, 49%); border-width: 5px; border-radius: 22px; }
  .phone-one { left: 5%; top: 7px; }
  .phone-two { right: 3%; top: 54px; }
  .ribbon { right: 1%; top: 0; font-size: 0.64rem; }
  .feature-band { grid-template-columns: 1fr; margin: 52px 0; }
  .feature { min-height: unset; }
  .how { grid-template-columns: 1fr; gap: 31px; padding: 52px 0; }
  .closing { margin-bottom: 52px; border-radius: 23px; }
  .site-footer { flex-direction: column; padding-top: 21px; }
}

@media (prefers-reduced-motion: no-preference) {
  .hero { animation: rise 650ms ease-out both; }
  .phone-one { animation: settle-left 900ms 180ms cubic-bezier(.2,.8,.2,1) both; }
  .phone-two { animation: settle-right 900ms 260ms cubic-bezier(.2,.8,.2,1) both; }
}

@keyframes rise { from { opacity: 0; transform: translateY(18px); } to { opacity: 1; transform: translateY(0); } }
@keyframes settle-left { from { opacity: 0; transform: translate(28px, 25px) rotate(14deg); } to { opacity: 1; transform: rotate(7deg); } }
@keyframes settle-right { from { opacity: 0; transform: translate(-28px, 25px) rotate(-15deg); } to { opacity: 1; transform: rotate(-8deg); } }
