@font-face {
  font-family: "DM Sans";
  src: url("assets/dm-sans.woff2") format("woff2");
  font-style: normal;
  font-weight: 100 1000;
  font-display: swap;
}

:root {
  --paper: #faf8f3;
  --ink: #24241f;
  --muted: #54544e;
  --line: #dcdad2;
  --orange: #c84224;
  --radius: 1.65rem;
  color-scheme: light;
  font-family: "DM Sans", system-ui, sans-serif;
  color: var(--ink);
  background: var(--paper);
}
*, *::before, *::after { box-sizing: border-box; }
html { scroll-behavior: smooth; scroll-padding-top: 1.5rem; }
body, h1, h2, h3, p, figure { margin: 0; }
body { line-height: 1.5; }
button, a { -webkit-tap-highlight-color: transparent; }
button { font: inherit; color: inherit; cursor: pointer; }
a { color: inherit; text-decoration: none; }
a:focus-visible, button:focus-visible { outline: 3px solid #3053b8; outline-offset: 4px; }
img { display: block; max-width: 100%; }
.wrap { width: min(calc(100% - clamp(2.5rem, 9vw, 10rem)), 83rem); margin-inline: auto; }
.skip { position: fixed; top: .5rem; left: .5rem; z-index: 5; padding: .65rem 1rem; background: white; transform: translateY(-160%); }
.skip:focus { transform: none; }
.masthead { border-bottom: 1px solid var(--line); }
.nav-row, .footer-row { display: flex; align-items: center; justify-content: space-between; gap: 1.25rem; }
.nav-row { min-height: 5.25rem; }
.brand { display: inline-flex; align-items: center; gap: .55rem; font-size: 1.37rem; font-weight: 760; letter-spacing: -.065em; line-height: 1; white-space: nowrap; }
.brand img { width: 2.3rem; height: auto; }
nav { display: flex; gap: clamp(1.25rem, 2.6vw, 2.75rem); align-items: center; }
nav a, .store-nav, .text-link, .button, footer a:last-child { font-weight: 650; font-size: .94rem; }
nav a { padding-block: .7rem; }
nav a:hover, footer a:hover { color: var(--orange); }
.store-nav, .button { border-radius: 3rem; display: inline-flex; align-items: center; justify-content: center; gap: .7rem; }
.store-nav { padding: .62rem 1.05rem; border: 1px solid #97978d; }
.store-nav:hover { background: #eeebe3; }
.play { flex: none; display: inline-block; width: .88rem; height: 1.05rem; background: currentColor; clip-path: polygon(3% 0,100% 50%,3% 100%); }
.play.multicolor { width: 1.17rem; height: 1.33rem; background: conic-gradient(from 48deg at 46% 50%, #ffcc4c 0deg 86deg, #fc6467 86deg 177deg, #74d6f4 177deg 271deg, #63d29d 271deg); }

.hero { display: grid; grid-template-columns: 1fr 1.12fr; gap: clamp(1.8rem, 5vw, 5.9rem); align-items: center; padding-block: clamp(2rem, 3.8vw, 4.2rem) clamp(3rem, 5.4vw, 5.3rem); }
.feature-label { display: inline-flex; align-items: center; gap: .64rem; margin-bottom: clamp(1.4rem, 2.3vw, 2.3rem); font-size: .82rem; color: var(--muted); }
.feature-label img { width: 1.85rem; height: 1.85rem; border-radius: .5rem; }
.feature-label b { color: var(--ink); font-weight: 740; font-size: .94rem; }
.feature-label span { width: 1.1rem; height: 1px; background: #aaa89e; }
h1, h2, h3 { text-wrap: balance; }
h1 { font-size: clamp(3.45rem, 6.15vw, 6rem); letter-spacing: -.083em; font-weight: 730; line-height: .98; }
h1 em { color: var(--orange); font-style: normal; }
.hero-copy > p { color: var(--muted); max-width: 26rem; font-size: clamp(1rem, 1.36vw, 1.16rem); margin-top: 1.55rem; line-height: 1.65; }
.hero-actions, .support-links { display: flex; flex-wrap: wrap; align-items: center; gap: 1.6rem; }
.hero-actions { margin-top: 1.9rem; }
.primary { padding: .96rem 1.4rem; color: white; background: var(--ink); transition: background .16s, transform .16s; }
.primary:hover { background: #383832; transform: translateY(-2px); }
.text-link { border-bottom: 1px solid currentColor; padding-bottom: .1rem; }
.text-link:hover { color: var(--orange); }
.hero-art { aspect-ratio: 1.25; overflow: hidden; border-radius: var(--radius); background: #f35d2a; }
.hero-art img { width: 100%; height: 100%; object-fit: cover; }

.app-section { border-block: 1px solid var(--line); padding-block: clamp(2.8rem, 5.2vw, 5.3rem); background: #fffdf9; }
.section-heading { display: flex; align-items: baseline; justify-content: space-between; gap: 1.5rem; margin-bottom: 1.9rem; }
.section-heading h2, .detail h2 { font-size: clamp(2.35rem, 4.1vw, 4rem); letter-spacing: -.075em; line-height: 1.04; font-weight: 700; }
.section-heading h2 span, .detail h2 span { color: var(--orange); }
.section-heading p, .feature-card p, .detail p { color: var(--muted); }
.feature-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 1.3rem; }
.feature-card { border-radius: var(--radius); min-height: 22.5rem; padding: clamp(1.5rem, 3vw, 3.25rem); position: relative; isolation: isolate; overflow: hidden; }
.feature-card h3 { font-size: clamp(1.78rem, 2.6vw, 2.7rem); line-height: 1.06; letter-spacing: -.064em; font-weight: 680; }
.feature-card p { margin-top: .8rem; font-size: 1rem; line-height: 1.55; max-width: 26rem; }
.picker-card { background: #eae4f5; display: flex; flex-direction: column; justify-content: space-between; }
.picker { margin-top: 2.2rem; text-align: center; }
.faces { display: flex; gap: clamp(.5rem, 1vw, 1rem); justify-content: center; align-items: center; padding: .5rem 0; }
.mood { position: relative; border: 0; border-radius: 50%; width: clamp(2.5rem, 5.6vw, 5.1rem); aspect-ratio: 1; background: var(--face); transition: transform .17s ease; }
.mood:hover { transform: translateY(-.3rem) rotate(-4deg); }
.mood[aria-pressed="true"] { box-shadow: 0 0 0 3px #eae4f5, 0 0 0 5px var(--ink); }
.mood .eye { position: absolute; top: 31%; width: 8%; height: 13%; border-radius: 75%; background: var(--ink); }
.mood .l { left: 29%; } .mood .r { right: 29%; }
.mood .mouth { position: absolute; top: 55%; left: 32%; width: 36%; height: 20%; border: solid var(--ink); border-width: 0 0 3px; border-radius: 0 0 70% 70%; }
.low { --face: #ec8c9b; } .down { --face: #f0ad78; } .okay { --face: #ffce4b; } .good { --face: #9ddac0; } .great { --face: #a8c7f4; }
.low .mouth, .down .mouth { transform: rotate(180deg); top: 59%; height: 17%; }
.low .l { transform: rotate(-22deg); } .low .r { transform: rotate(22deg); }
.okay .mouth { height: 0; border-radius: 2px; top: 64%; width: 25%; left: 37.5%; }
.great .mouth { background: var(--ink); height: 19%; }
.feature-card .picker-status { font-weight: 650; font-size: .88rem; min-height: 1.4rem; margin: .55rem auto 0; color: #484053; }
.gallery-card { background: #dcebe0; }
.gallery-card .card-copy { position: relative; z-index: 2; width: 59%; }
.gallery-card .text-link { display: inline-block; margin-top: 1.4rem; }
.phone-art { position: absolute; inset: 0; pointer-events: none; }
.screen { position: absolute; width: 28%; height: auto; top: 32%; border-radius: 13% / 6%; box-shadow: 0 0 0 3px #242621, .3rem 1rem 1.5rem #15261e38; background: #242621; }
.screen.front { right: 3%; transform: rotate(9deg); }
.screen.back { right: 10%; top: 58%; transform: rotate(-7deg); }

.details { display: grid; grid-template-columns: 1fr 1fr; gap: 0; padding-block: clamp(3rem, 6vw, 6.2rem); }
.detail { padding-right: clamp(1.5rem,6vw,7rem); }
.detail + .detail { padding: 0 0 0 clamp(1.5rem,6vw,7rem); border-left: 1px solid var(--line); }
.label { display: flex; align-items: center; gap: .65rem; margin-bottom: 1.4rem; font-weight: 660; font-size: .94rem; }
.ring-mark { width: .85rem; height: .85rem; border: 3px solid var(--orange); border-radius: 50%; }
.green { border-color: #426e54; }
.detail h2 { font-size: clamp(2.1rem, 3vw, 3.3rem); }
.detail p { margin: 1rem 0 1.3rem; max-width: 29rem; }
footer { background: #22241f; color: #faf8f3; }
.footer-row { min-height: 6rem; }
.footer-row .brand { font-size: 1.13rem; }
.footer-row .brand img { width: 1.9rem; }
footer a:last-child { color: #e2e0d7; }
dialog { background: var(--paper); color: var(--ink); border: 0; padding: 1.25rem; border-radius: 1.5rem; width: min(25rem, calc(100% - 2rem)); max-height: 94dvh; }
dialog::backdrop { background: #181812b8; }
.dialog-head, .gallery-tabs { display: flex; align-items: center; gap: .5rem; }
.dialog-head { justify-content: space-between; margin-bottom: .75rem; }
.dialog-head h2 { font-size: 1.35rem; letter-spacing: -.05em; }
.close { width: 2.5rem; height: 2.5rem; border: 1px solid var(--line); border-radius: 50%; background: transparent; font-size: 1.45rem; }
.gallery-body { border-radius: .8rem; background: #dcebe0; padding: .7rem; }
.gallery-body img { width: auto; height: min(57dvh, 33rem); margin-inline: auto; border-radius: .8rem; }
.gallery-tabs { justify-content: center; margin-top: .8rem; }
.gallery-tabs button { padding: .6rem .8rem; font-size: .9rem; font-weight: 650; border: 0; border-radius: 1.2rem; background: transparent; }
.gallery-tabs button[aria-pressed="true"] { background: var(--ink); color: white; }
@media (max-width: 950px) {
  .hero { grid-template-columns: 1fr 1fr; gap: 1.8rem; }
  .hero-actions { gap: 1rem; }
  .feature-card { min-height: 21rem; }
  .section-heading { align-items: start; flex-direction: column; gap: .6rem; }
}
@media (max-width: 720px) {
  .wrap { width: calc(100% - 2.5rem); }
  .nav-row { min-height: 4rem; flex-wrap: wrap; gap: 0; padding-top: .8rem; }
  .nav-row .brand { font-size: 1.28rem; }
  nav { width: 100%; order: 3; gap: 1.6rem; padding: .24rem 0 .16rem; }
  nav a { font-size: .88rem; }
  .store-nav { margin-left: auto; font-size: .84rem; padding: .45rem .8rem; }
  .hero { grid-template-columns: 1fr; gap: 1.65rem; padding-block: 2rem 2.2rem; }
  h1 { font-size: clamp(3.15rem, 10.5vw, 4.8rem); }
  .hero-copy > p { margin-top: 1rem; }
  .feature-label { margin-bottom: 1rem; }
  .hero-actions { margin-top: 1.25rem; }
  .hero-art { max-height: 25rem; width: 100%; }
  .feature-grid, .details { grid-template-columns: 1fr; }
  .feature-grid { gap: 1rem; }
  .section-heading { margin-bottom: 1.4rem; }
  .feature-card { min-height: 17rem; }
  .mood { width: clamp(2.35rem,11vw,4.2rem); }
  .picker { margin-top: 1.25rem; }
  .gallery-card { min-height: 19rem; }
  .detail, .detail + .detail { padding: 0; border: 0; }
  .detail + .detail { margin-top: 2rem; padding-top: 2rem; border-top: 1px solid var(--line); }
}
@media (max-width: 390px) {
  .wrap { width: calc(100% - 2rem); }
  .button, .text-link { font-size: .875rem; }
  .feature-card { padding: 1.25rem; }
  .gallery-card .card-copy { width: 63%; }
  .screen.front { right: 1%; }
}
@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  *, *::before, *::after { transition: none !important; }
}
