:root {
  color-scheme: light;
  --cream: #fff8ea;
  --paper: #fffdf8;
  --ink: #201b36;
  --muted: #6d6577;
  --line: #e8ddd0;
  --coral: #f4564d;
  --pink: #e82c70;
  --red: #d61f34;
  --teal: #08a4a5;
  --blue: #1737d1;
  --yellow: #ffc400;
  --purple: #7c30c9;
}

* { box-sizing: border-box; }
html { font-size: 16px; scroll-behavior: smooth; }
body { margin: 0; background: var(--paper); color: var(--ink); font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif; line-height: 1.65; }
a { color: var(--red); }
a:hover { color: var(--pink); }

.site-header { position: relative; z-index: 20; border-bottom: 1px solid rgba(32, 27, 54, .12); background: rgba(255, 248, 234, .93); backdrop-filter: blur(16px); }
.header-inner, main.page, .footer-inner, .home-inner { width: min(100% - 40px, 1120px); margin-inline: auto; }
.header-inner { min-height: 78px; display: flex; align-items: center; justify-content: space-between; gap: 24px; }
.brand { display: flex; align-items: center; gap: 10px; color: var(--ink); font-weight: 900; text-decoration: none; letter-spacing: -.04em; font-size: 1.15rem; }
.brand-mark { width: 28px; aspect-ratio: 1; display: inline-block; background: conic-gradient(from 20deg, var(--yellow), var(--coral), var(--pink), var(--purple), var(--blue), var(--teal), var(--yellow)); clip-path: polygon(50% 0, 61% 34%, 98% 20%, 70% 50%, 100% 68%, 62% 65%, 50% 100%, 39% 65%, 0 79%, 29% 50%, 1% 20%, 40% 34%); }
.nav-wrap, nav { display: flex; align-items: center; gap: 20px; }
nav a { color: var(--muted); font-size: .875rem; text-decoration: none; font-weight: 650; }
nav a[aria-current="page"] { color: var(--red); }
.store-button { display: inline-flex; align-items: center; gap: 8px; padding: 10px 15px; border-radius: 999px; background: var(--ink); color: white; font-size: .83rem; font-weight: 800; text-decoration: none; white-space: nowrap; box-shadow: 0 5px 0 var(--coral); }
.store-button:hover { color: white; transform: translateY(-1px); }
.apple { font-size: 1.2rem; line-height: 1; }

main.page { max-width: 760px; padding: 68px 0 88px; }
main.page::before { content: ""; display: block; width: 84px; height: 9px; margin-bottom: 25px; background: repeating-linear-gradient(90deg, var(--red) 0 10px, transparent 10px 14px, var(--teal) 14px 24px, transparent 24px 28px, var(--yellow) 28px 38px, transparent 38px 42px); transform: skewX(-20deg); }
.eyebrow { margin: 0 0 8px; color: var(--red); font-size: .78rem; font-weight: 900; letter-spacing: .13em; text-transform: uppercase; }
h1, h2, h3 { letter-spacing: -.04em; line-height: 1.12; }
h1 { margin: 0; font-size: clamp(2.7rem, 7vw, 4.5rem); }
h2 { margin: 46px 0 12px; font-size: 1.5rem; }
.lede { margin: 18px 0 0; color: var(--muted); font-size: 1.15rem; max-width: 650px; }
.updated { margin: 13px 0 38px; color: var(--muted); font-size: .88rem; }
.note { margin: 32px 0; padding: 20px 22px; border-left: 7px solid var(--coral); background: #fff0e7; }
table { width: 100%; border-collapse: collapse; margin: 22px 0; }
th, td { padding: 15px 11px; border-bottom: 1px solid var(--line); text-align: left; vertical-align: top; }
th { font-size: .82rem; text-transform: uppercase; letter-spacing: .05em; }
form { margin-top: 34px; }
label { display: block; margin: 18px 0 6px; font-weight: 750; }
input, textarea { width: 100%; padding: 13px 14px; border: 2px solid #cfc4ba; border-radius: 3px; background: #fff; color: var(--ink); font: inherit; }
textarea { min-height: 170px; resize: vertical; }
input:focus, textarea:focus { outline: 4px solid #ffd4ca; border-color: var(--coral); }
button { margin-top: 20px; padding: 13px 20px; border: 0; border-radius: 2px; background: var(--ink); color: white; font: inherit; font-weight: 800; cursor: pointer; box-shadow: 6px 6px 0 var(--coral); }
button:hover { background: var(--blue); }
.form-help { color: var(--muted); font-size: .88rem; }

.hero { position: relative; overflow: hidden; min-height: 680px; display: grid; align-items: center; background: var(--cream); border-bottom: 12px solid var(--ink); }
.hero::before { content: ""; position: absolute; inset: 0 42% 0 0; background: repeating-linear-gradient(135deg, transparent 0 25px, rgba(232,44,112,.14) 25px 40px, transparent 40px 62px); }
.hero-art { position: absolute; inset: 0 0 0 52%; overflow: hidden; background: var(--teal); clip-path: polygon(15% 0, 100% 0, 100% 100%, 0 100%, 17% 56%); }
.sunburst { position: absolute; width: 630px; aspect-ratio: 1; left: -60px; top: -60px; background: repeating-conic-gradient(from -15deg, var(--pink) 0 8deg, var(--coral) 8deg 16deg, var(--yellow) 16deg 24deg, var(--blue) 24deg 32deg, var(--teal) 32deg 40deg); border-radius: 50%; }
.star-field { position: absolute; inset: 12% 4% 35% 30%; background-image: radial-gradient(var(--red) 0 20%, transparent 22%); background-size: 27px 27px; transform: rotate(12deg); }
.saw { position: absolute; left: 2%; right: -5%; bottom: -15%; height: 48%; background: var(--ink); clip-path: polygon(0 80%, 8% 25%, 16% 70%, 25% 12%, 34% 74%, 45% 2%, 55% 65%, 66% 15%, 76% 70%, 87% 5%, 100% 60%, 100% 100%, 0 100%); }
.home-inner { position: relative; z-index: 2; }
.hero-copy { width: 50%; max-width: 610px; padding: 100px 0; }
.hero h1 { font-size: clamp(4rem, 8vw, 7rem); line-height: .87; text-transform: uppercase; }
.hero h1 span { display: block; color: var(--coral); }
.hero .lede { max-width: 540px; font-size: 1.25rem; }
.hero-actions { display: flex; align-items: center; gap: 18px; margin-top: 32px; flex-wrap: wrap; }
.hero-actions .store-button { padding: 14px 20px; font-size: .95rem; border-radius: 2px; }
.text-link { font-weight: 800; text-underline-offset: 5px; }

.showcase { padding: 95px 0 105px; background: var(--pink); overflow: hidden; }
.section-heading { max-width: 700px; margin-bottom: 52px; }
.section-heading .eyebrow { color: var(--ink); }
.section-heading h2 { margin: 0; color: white; font-size: clamp(2.5rem, 6vw, 4.5rem); }
.phones { display: grid; grid-template-columns: repeat(3, 1fr); gap: 34px; align-items: start; }
.phone-card:nth-child(2) { transform: translateY(42px) rotate(1.5deg); }
.phone-card:nth-child(3) { transform: rotate(-1.5deg); }
.phone { max-width: 280px; margin: auto; padding: 10px; border: 5px solid var(--ink); border-radius: 42px; background: var(--ink); box-shadow: 14px 15px 0 rgba(32,27,54,.28); }
.screen { min-height: 515px; padding: 25px 18px 20px; border-radius: 30px; overflow: hidden; background: var(--cream); }
.phone-bar { width: 36%; height: 6px; margin: -11px auto 24px; border-radius: 5px; background: var(--ink); }
.screen-label { margin: 0; font-size: .72rem; font-weight: 800; color: var(--muted); text-transform: uppercase; letter-spacing: .08em; }
.screen h3 { margin: 3px 0 22px; font-size: 1.8rem; }
.mood-score { display: grid; place-items: center; width: 145px; aspect-ratio: 1; margin: 20px auto; border-radius: 50%; color: white; background: conic-gradient(var(--yellow) 0 28%, var(--coral) 28% 58%, var(--pink) 58% 78%, var(--blue) 78%); box-shadow: inset 0 0 0 18px var(--cream); font-weight: 900; font-size: 2.8rem; }
.mini-row { display: flex; justify-content: space-between; padding: 11px 0; border-bottom: 1px solid var(--line); font-size: .82rem; }
.mini-row strong { color: var(--blue); }
.bar-chart { height: 185px; margin: 30px 0 15px; display: flex; align-items: flex-end; gap: 8px; }
.bar-chart i { flex: 1; display: block; background: var(--teal); border-radius: 4px 4px 0 0; }
.bar-chart i:nth-child(2n) { background: var(--coral); }
.bar-chart i:nth-child(3n) { background: var(--blue); }
.insight { margin: 14px 0; padding: 16px; background: white; border: 2px solid var(--ink); box-shadow: 5px 5px 0 var(--yellow); font-size: .82rem; }
.insight b { display: block; font-size: .95rem; }
.phone-caption { max-width: 280px; margin: 28px auto 0; color: white; }
.phone-caption b { display: block; font-size: 1.1rem; }
.phone-caption span { opacity: .85; font-size: .9rem; }

.screenshot-gallery { display: grid; grid-template-columns: repeat(3, 1fr); gap: 64px 38px; align-items: start; }
.product-shot { margin: 0; min-width: 0; }
.product-shot:nth-child(2), .product-shot:nth-child(5) { transform: translateY(42px); }
.iphone-frame { position: relative; max-width: 310px; margin-inline: auto; padding: 8px; border: 5px solid #16131e; border-radius: 52px; background: #16131e; box-shadow: 16px 18px 0 rgba(32,27,54,.3), 0 28px 65px rgba(32,27,54,.25); }
.iphone-frame::before { content: ""; position: absolute; z-index: 3; left: -8px; top: 23%; width: 4px; height: 74px; border-radius: 4px 0 0 4px; background: #16131e; box-shadow: 0 88px 0 #16131e; }
.iphone-frame::after { content: ""; position: absolute; z-index: 3; right: -8px; top: 29%; width: 4px; height: 112px; border-radius: 0 4px 4px 0; background: #16131e; }
.iphone-frame img { display: block; width: 100%; height: auto; border-radius: 39px; background: #f4f4fa; }
.product-shot figcaption { max-width: 310px; margin: 30px auto 0; color: white; }
.product-shot figcaption b { display: block; font-size: 1.08rem; }
.product-shot figcaption span { display: block; margin-top: 4px; opacity: .86; font-size: .9rem; line-height: 1.5; }

.info-strip { padding: 75px 0; background: var(--yellow); }
.info-grid { display: grid; grid-template-columns: 1.2fr 1fr; gap: 70px; align-items: center; }
.info-grid h2 { margin: 0 0 15px; font-size: clamp(2.2rem, 5vw, 4rem); }
.legal-links { display: grid; grid-template-columns: 1fr 1fr; gap: 12px; }
.legal-links a { padding: 18px; border: 3px solid var(--ink); color: var(--ink); background: var(--cream); text-decoration: none; font-weight: 800; box-shadow: 5px 5px 0 var(--coral); }
.legal-links a:hover { background: white; transform: translate(-2px, -2px); }

.site-footer { border-top: 1px solid var(--line); background: var(--ink); }
.footer-inner { padding: 30px 0 42px; color: #d8d0df; font-size: .82rem; }
.footer-inner a { color: white; }

@media (max-width: 860px) {
  .header-inner { padding: 15px 0; align-items: flex-start; }
  .nav-wrap { align-items: flex-end; flex-direction: column-reverse; gap: 10px; }
  nav { gap: 9px 14px; flex-wrap: wrap; justify-content: flex-end; }
  .hero { min-height: 760px; align-items: start; }
  .hero-copy { width: 78%; padding: 72px 0 330px; }
  .hero-art { inset: auto 0 0 30%; height: 390px; clip-path: polygon(17% 0, 100% 0, 100% 100%, 0 100%); }
  .phones { gap: 18px; }
  .screenshot-gallery { gap: 52px 22px; }
  .iphone-frame { border-radius: 38px; padding: 6px; }
  .iphone-frame img { border-radius: 29px; }
  .phone { border-radius: 32px; }
  .screen { min-height: 450px; border-radius: 23px; padding-inline: 13px; }
  .info-grid { grid-template-columns: 1fr; gap: 35px; }
}

@media (max-width: 650px) {
  .header-inner { flex-direction: column; }
  .nav-wrap { width: 100%; align-items: flex-start; }
  nav { justify-content: flex-start; }
  main.page { padding-top: 48px; }
  .hero-copy { width: 100%; padding-top: 56px; }
  .hero h1 { font-size: clamp(3.4rem, 20vw, 5rem); }
  .hero-art { left: 8%; }
  .phones { grid-template-columns: 1fr; gap: 60px; }
  .screenshot-gallery { grid-template-columns: 1fr; gap: 64px; }
  .product-shot:nth-child(2), .product-shot:nth-child(5) { transform: none; }
  .iphone-frame { max-width: 320px; border-radius: 52px; padding: 8px; }
  .iphone-frame img { border-radius: 39px; }
  .phone-card:nth-child(2), .phone-card:nth-child(3) { transform: none; }
  .phone { max-width: 300px; }
  .screen { min-height: 520px; }
  .legal-links { grid-template-columns: 1fr; }
  table, thead, tbody, tr, th, td { display: block; }
  thead { position: absolute; left: -9999px; }
  td { padding: 10px 0; }
  td:first-child { padding-top: 18px; font-weight: 800; border-bottom: 0; }
}
