@font-face {
  font-family: Alexandria;
  src: url("assets/fonts/alexandria-400.woff2") format("woff2");
  font-weight: 400;
  font-display: swap;
}

@font-face {
  font-family: Alexandria;
  src: url("assets/fonts/alexandria-500.woff2") format("woff2");
  font-weight: 500;
  font-display: swap;
}

@font-face {
  font-family: Alexandria;
  src: url("assets/fonts/alexandria-700.woff2") format("woff2");
  font-weight: 700;
  font-display: swap;
}

:root {
  color-scheme: light;
  --text: #242128;
  --secondary: #625d66;
  --purple: #AF52DE;
  --purple-ink: #8131a4;
  --hero-purple: #E4A9FF;
  --deep-purple: #47354F;
  --line: #e9e6eb;
}

* { box-sizing: border-box; }
html { scroll-behavior: smooth; }
body { margin: 0; color: var(--text); background: white; font-family: Alexandria, system-ui, sans-serif; }
img { display: block; max-width: 100%; }
picture { display: block; }
a { color: inherit; }
:focus-visible { outline: 3px solid var(--purple); outline-offset: 4px; }
.wrap { width: min(1040px, calc(100% - 48px)); margin-inline: auto; }
.skip-link { position: absolute; top: -100px; left: 20px; z-index: 10; padding: 10px 14px; background: var(--text); color: white; }
.skip-link:focus { top: 10px; }

.site-header { border-bottom: 1px solid var(--line); }
.header-inner { min-height: 76px; display: flex; align-items: center; justify-content: space-between; gap: 30px; }
.brand { display: inline-flex; align-items: center; gap: 10px; font-size: 19px; font-weight: 700; letter-spacing: -.04em; text-decoration: none; }
.brand img { width: 38px; height: 38px; border-radius: 9px; }
.site-header nav { display: flex; align-items: center; gap: 28px; font-size: 13px; }
.site-header nav a, .site-footer a { text-decoration: none; }
.site-header nav a:hover, .site-footer a:hover { color: var(--purple-ink); text-decoration: underline; text-underline-offset: 4px; }
.site-header nav .nav-download { padding: 10px 17px; border-radius: 999px; background: var(--hero-purple); color: #160a1c; font-weight: 700; }
.site-header nav .nav-download:hover { background: #d999f1; color: #160a1c; text-decoration: none; }

.hero-section { background: var(--hero-purple); }
.hero { min-height: 690px; display: grid; grid-template-columns: 1.1fr .9fr; align-items: center; gap: 70px; padding-block: 60px; }
.hero-copy { padding-bottom: 0; }
h1, h2, p { margin-top: 0; }
h1, h2 { letter-spacing: -.055em; }
h1 { max-width: 590px; margin-bottom: 22px; font-size: clamp(46px, 5.3vw, 70px); line-height: 1.08; }
h1 span { color: white; }
.hero-copy p { max-width: 500px; margin-bottom: 28px; color: var(--deep-purple); font-size: 16px; line-height: 1.75; }
.hero-copy .hero-pricing { margin: 10px 0 0; font-size: 12px; line-height: 1.5; }
.store-link { display: inline-block; border-radius: 9px; }
.store-link img { width: 165px; height: auto; }
.hero-visual { display: grid; place-items: center; }
.hero-visual picture { width: 100%; }
.hero-image { width: 100%; height: auto; max-height: 570px; object-fit: contain; filter: drop-shadow(0 15px 18px #4d255b30); }

.app-section { display: grid; grid-template-columns: .75fr 1.25fr; align-items: center; gap: 45px; padding-block: 115px 110px; }
.app-intro { align-self: center; }
.app-intro h2 { max-width: 370px; }
.app-intro p { max-width: 370px; margin-bottom: 0; color: var(--secondary); font-size: 15px; line-height: 1.75; }
.app-screens { display: flex; align-items: flex-end; justify-content: center; gap: 16px; }
.app-image { display: block; min-width: 0; }
.app-image-detail { flex: 0 1 205px; }
.app-image-progress { flex: 0 1 260px; }
.app-image img { width: 100%; height: auto; filter: drop-shadow(0 9px 13px #241a2920); }
h2 { margin-bottom: 17px; font-size: clamp(32px, 3.5vw, 47px); line-height: 1.15; }
.duo-copy p { margin-bottom: 0; color: var(--secondary); font-size: 15px; line-height: 1.75; }

.asset-slot { position: relative; }
.asset-slot img { display: block; }
.asset-placeholder { display: grid; place-items: center; width: 100%; height: 100%; padding: 20px; border: 1px solid currentColor; color: inherit; font-size: 12px; line-height: 1.5; text-align: center; }

.usage-section { background: #f3e7f8; }
.usage-inner { padding-block: 95px 105px; }
.usage-intro { max-width: 650px; margin: 0 auto 48px; text-align: center; }
.usage-intro p { margin-bottom: 0; color: var(--secondary); font-size: 15px; line-height: 1.75; }
.usage-visuals { display: flex; align-items: center; justify-content: center; gap: 36px; }
.usage-visuals figure { flex: none; margin: 0; }
.usage-detail { width: 235px; }
.usage-games { width: 255px; }
.usage-detail img, .usage-games img { width: 100%; height: auto; filter: drop-shadow(0 9px 13px #241a2920); }
.usage-arrow { flex: none; width: 46px; height: 24px; color: var(--purple-ink); }

.scan-section { background: white; }
.scan-inner { min-height: 490px; display: grid; grid-template-columns: 1fr 350px; align-items: center; gap: 85px; padding-block: 70px; }
.scan-copy { max-width: 540px; }
.scan-copy h2 { max-width: 520px; }
.scan-copy p { max-width: 480px; margin-bottom: 0; color: var(--secondary); font-size: 15px; line-height: 1.75; }
.scan-visual { width: 350px; height: 350px; display: grid; place-items: center; color: var(--purple-ink); }
.scan-visual img { width: 100%; height: 100%; object-fit: contain; }

.duo-section { background: var(--deep-purple); color: white; }
.duo-inner { width: min(1180px, calc(100% - 48px)); min-height: 610px; display: grid; grid-template-columns: .82fr 1.18fr; align-items: center; gap: 52px; padding-block: 72px; }
.duo-copy { max-width: 390px; }
.duo-copy h2 { color: white; }
.duo-copy p { color: #f0def5; }
.duo-switch { display: inline-flex; gap: 3px; margin-top: 26px; padding: 4px; border: 1px solid #ffffff55; border-radius: 999px; background: #ffffff20; }
.duo-switch button { min-width: 90px; padding: 9px 14px; border: 0; border-radius: 999px; background: transparent; color: #f6e7fb; cursor: pointer; font: inherit; font-size: 12px; font-weight: 700; }
.duo-switch button[aria-pressed="true"] { background: var(--hero-purple); color: #160a1c; box-shadow: 0 1px 5px #32103830; }
.duo-switch button:hover:not([aria-pressed="true"]) { background: #ffffff2c; }
.duo-figure { margin: 0; }
.duo-preview { --duo-open-height: min(445px, 70.93cqw); --duo-folded-height: min(415px, 66cqw); min-height: 465px; position: relative; display: grid; place-items: center; container-type: inline-size; }
.duo-spread { width: 100%; min-height: 445px; display: grid; place-items: center; max-width: 630px; transition: opacity .45s ease-in-out; }
.duo-spread img { max-width: 100%; width: auto; height: var(--duo-open-height); object-fit: contain; }
.duo-closed { position: absolute; height: var(--duo-folded-height); width: 315px; display: grid; place-items: center; opacity: 0; pointer-events: none; transition: opacity .45s ease-in-out; }
.duo-closed img { max-width: 100%; width: auto; height: var(--duo-folded-height); object-fit: contain; }
.duo-spread .asset-placeholder, .duo-closed .asset-placeholder { height: 320px; border-color: #f0def580; color: #f0def5; }
.duo-preview[data-layout="closed"] .duo-spread { opacity: 0; pointer-events: none; }
.duo-preview[data-layout="closed"] .duo-closed { opacity: 1; }

.more-section { padding-block: 90px 100px; }
.more-heading { margin-bottom: 34px; }
.more-heading h2 { margin-bottom: 10px; }
.more-heading p { margin-bottom: 0; color: var(--secondary); font-size: 15px; line-height: 1.7; }
.more-grid { max-width: 940px; margin-inline: auto; display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 25px; }
.more-grid figure { display: flex; flex-direction: column; margin: 0; }
.widgets-image { width: min(100%, 340px); aspect-ratio: 1; margin: auto; display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); grid-template-rows: repeat(2, minmax(0, 1fr)); gap: 10px; }
.widget-wide, .widget-small { width: 100%; height: 100%; overflow: hidden; border-radius: 20px; }
.widget-wide { grid-column: 1 / -1; }
.widgets-image .asset-placeholder { border-color: #d9cce1; color: var(--purple-ink); }
.widgets-image img { width: 100%; height: 100%; object-fit: contain; }
.stickers-image img { width: min(100%, 290px); height: auto; margin-inline: auto; }

.closing-section { background: #f3e7f8; }
.closing-inner { min-height: 235px; display: flex; align-items: center; justify-content: space-between; gap: 40px; padding-block: 55px; }
.closing-inner h2 { margin-bottom: 9px; font-size: clamp(28px, 3vw, 38px); }
.closing-inner p { max-width: 630px; margin-bottom: 0; color: var(--secondary); font-size: 14px; line-height: 1.7; }
.closing-inner .store-link { flex: none; }

.site-footer { border-top: 1px solid var(--line); }
.footer-inner { min-height: 88px; display: flex; align-items: center; justify-content: space-between; gap: 25px; color: #77717c; font-size: 12px; }
.footer-inner > div { display: flex; flex-wrap: wrap; gap: 25px; }
.privacy-page { padding-block: 80px 110px; }
.privacy-page h1 { margin-bottom: 20px; }
.privacy-intro { max-width: 710px; margin-bottom: 58px; color: var(--secondary); font-size: 17px; line-height: 1.7; }
.privacy-page section { max-width: 710px; padding-block: 25px; border-top: 1px solid var(--line); }
.privacy-page section h2 { margin-bottom: 10px; font-size: 24px; }
.privacy-page section p { margin-bottom: 0; color: var(--secondary); font-size: 15px; line-height: 1.75; }
.privacy-page section a { color: var(--purple-ink); text-underline-offset: 3px; }
.site-footer [aria-current="page"] { color: var(--text); font-weight: 700; }

@media (max-width: 760px) {
  .wrap { width: min(100% - 32px, 540px); }
  .header-inner { min-height: 68px; }
  .site-header nav { gap: 16px; }
  .site-header nav a:first-child { display: none; }
  .hero { display: flex; flex-direction: column; align-items: stretch; gap: 25px; min-height: 0; padding-block: 60px 45px; }
  .hero-copy { padding: 0; }
  h1 { font-size: clamp(43px, 10vw, 58px); }
  .app-section { display: block; padding-block: 75px; }
  .app-intro { margin-bottom: 38px; }
  .app-intro h2 { margin-bottom: 15px; }
  .app-screens { gap: 16px; }
  .app-image-detail { flex-basis: 190px; }
  .app-image-progress { flex-basis: 235px; }
  .usage-inner { padding-block: 75px 80px; }
  .usage-intro { margin-bottom: 36px; }
  .usage-visuals { gap: 12px; }
  .usage-detail { width: min(43%, 235px); }
  .usage-games { width: min(47%, 255px); }
  .usage-arrow { width: 24px; }
  .scan-inner { min-height: 0; grid-template-columns: 1fr 210px; gap: 30px; padding-block: 65px; }
  .scan-visual { width: 210px; height: 210px; }
  .duo-inner { display: block; min-height: 0; padding-block: 60px; }
  .duo-copy { max-width: 520px; margin-bottom: 35px; }
  .duo-preview { min-height: 405px; }
  .duo-spread { min-height: 385px; max-width: 630px; margin-inline: auto; }
  .more-section { padding-block: 70px; }
  .more-grid { grid-template-columns: 1fr; max-width: 500px; }
  .closing-inner { min-height: 0; }
  .privacy-page { padding-block: 65px 85px; }
}

@media (max-width: 500px) {
  .brand { font-size: 17px; }
  .brand img { width: 34px; height: 34px; }
  .site-header nav { font-size: 12px; }
  .site-header nav a:nth-child(2) { display: none; }
  .app-screens { gap: 12px; }
  .app-image-detail { flex-basis: 145px; }
  .app-image-progress { flex-basis: 185px; }
  .usage-visuals { gap: 8px; }
  .usage-detail { width: min(40%, 200px); }
  .usage-games { width: min(43%, 215px); }
  .scan-inner { display: block; padding-block: 65px; }
  .scan-visual { width: min(100%, 350px); height: auto; aspect-ratio: 1; margin: 35px auto 0; }
  .closing-inner { align-items: flex-start; flex-direction: column; gap: 25px; }
  .duo-preview { --duo-open-height: min(300px, 70.93cqw); --duo-folded-height: min(280px, 66cqw); min-height: 320px; }
  .duo-spread { min-height: 300px; }
  .duo-closed { width: 220px; }
  .duo-spread .asset-placeholder, .duo-closed .asset-placeholder { height: 220px; }
  .more-grid { gap: 27px; }
  .footer-inner { padding-block: 27px; align-items: flex-start; flex-direction: column; gap: 15px; }
}

@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  .duo-spread, .duo-closed { transition: none; }
}
