@font-face {
  font-family: "Polly Hand";
  src: url("/assets/BradleyHandBold.ttf") format("truetype");
  font-display: swap;
}

:root {
  color-scheme: light;
  --paper: #fbf8f0;
  --ink: #22211e;
  --muted: #747068;
  --coral: #b7432f;
  --phone-height: clamp(250px, calc(100svh - 440px), 620px);
  font-family: "Avenir Next", Avenir, "Trebuchet MS", sans-serif;
}

* { box-sizing: border-box; }
body { margin: 0; min-width: 280px; min-height: 100svh; display: flex; flex-direction: column; background: var(--paper); color: var(--ink); -webkit-font-smoothing: antialiased; }
a { color: inherit; }
button, summary, a { -webkit-tap-highlight-color: transparent; }
button { font: inherit; }
button, summary { cursor: pointer; }
button:focus-visible, summary:focus-visible, a:focus-visible { outline: 2px solid var(--coral); outline-offset: 5px; }
[hidden] { display: none !important; }
.sr-only { position: absolute; width: 1px; height: 1px; padding: 0; margin: -1px; overflow: hidden; clip-path: inset(50%); white-space: nowrap; border: 0; }
.skip-link { position: fixed; top: 10px; left: 10px; z-index: 20; padding: 12px 16px; background: var(--ink); color: var(--paper); transform: translateY(-160%); }
.skip-link:focus { transform: none; }

.site-header { position: absolute; inset: 24px 30px auto; z-index: 10; display: flex; align-items: start; justify-content: space-between; pointer-events: none; }
.site-header > * { pointer-events: auto; }
.home-mark { display: grid; width: 44px; height: 44px; place-items: center; border-radius: 12px; }
.home-mark img { display: block; border-radius: 10px; }
.more-menu { position: relative; }
.more-menu summary { list-style: none; display: grid; place-items: center; width: 44px; height: 44px; border: 1px solid #dcd8ce; border-radius: 50%; background: var(--paper); transition: background .2s, border-color .2s; }
.more-menu summary::-webkit-details-marker { display: none; }
.more-menu summary > span:first-child { font-family: sans-serif; font-size: 19px; letter-spacing: 2px; padding-left: 2px; transform: translateY(-2px); }
.more-menu summary:hover, .more-menu[open] summary { background: #efeadd; border-color: #c6c0b3; }
.more-menu > nav { position: absolute; top: 56px; right: 0; width: 228px; padding: 12px; background: var(--paper); border: 1px solid #ded8cb; border-radius: 16px; box-shadow: 0 14px 40px #30271c12; animation: menu-in .16s ease-out; }
.more-menu nav a { display: flex; align-items: center; justify-content: space-between; min-height: 44px; padding: 10px 12px; border-radius: 8px; text-decoration: none; font-size: 14px; }
.more-menu nav > a:first-child { font-weight: 700; }
.more-menu nav a:hover { background: #eee8db; }
.menu-legal { display: flex; border-top: 1px solid #e8e2d7; margin: 8px 8px 0; padding-top: 4px; color: var(--muted); }
.menu-legal a { padding-inline: 4px !important; margin-right: 20px; font-size: 12px !important; }

main { width: 100%; flex: 1; display: flex; flex-direction: column; align-items: center; justify-content: center; padding: 22px 24px 16px; text-align: center; }
.signature { display: flex; flex-direction: column; align-items: center; animation: arrive .55s both; }
.wordmark { font-family: "Polly Hand", "Bradley Hand", cursive; font-size: 84px; line-height: 1; letter-spacing: -5px; padding-right: 5px; transform: rotate(-4deg); }
.film-stripe { display: flex; width: 56px; height: 4px; overflow: hidden; margin-top: 9px; border-radius: 1px; }
.film-stripe i { flex: 1; }
.film-stripe i:nth-child(1) { background: #c14a37; }
.film-stripe i:nth-child(2) { background: #e68a3c; }
.film-stripe i:nth-child(3) { background: #eebd46; }
.film-stripe i:nth-child(4) { background: #63965e; }
.film-stripe i:nth-child(5) { background: #578eae; }
.product-demo { margin: 20px 0 0; animation: arrive .65s .08s both; }
.demo-stage { position: relative; }
.phone { position: relative; height: var(--phone-height); aspect-ratio: 664 / 1438; padding: 6px; border: 1px solid #48443c; border-radius: calc(var(--phone-height) * .074); background: #1b1916; box-shadow: 0 3px 2px #29231a15, 0 16px 36px -20px #4d382d50; }
.phone video { display: block; width: 100%; height: 100%; object-fit: cover; border-radius: calc(var(--phone-height) * .062); background: #e8e1d1; }
.scene-caption { position: absolute; top: 48%; left: calc(100% + 36px); display: flex; flex-direction: column; width: 160px; gap: 5px; text-align: left; transform: translateY(-50%); }
.scene-count { font-size: 10px; font-weight: 600; letter-spacing: .15em; color: var(--coral); margin-bottom: 7px; }
.scene-caption strong { font-size: 19px; font-weight: 650; letter-spacing: -.5px; }
.scene-caption > span:last-child { color: var(--muted); font-size: 12px; }
.demo-controls { display: flex; align-items: center; justify-content: center; gap: 8px; margin-top: 8px; }
.demo-controls button { width: 36px; height: 36px; border: 0; padding: 8px; display: grid; place-items: center; border-radius: 50%; background: transparent; color: #827b70; transition: color .18s, background .18s, transform .18s; }
.demo-controls button:hover { background: #eee8db; color: var(--ink); }
.demo-controls button:active { transform: scale(.92); }
.demo-controls svg { width: 19px; height: 19px; fill: none; stroke: currentColor; stroke-width: 1.7; stroke-linecap: round; stroke-linejoin: round; }
#toggleDemo { color: var(--ink); }
.demo-controls .play-icon { fill: currentColor; stroke: none; width: 16px; height: 16px; }
.pause-icon, .is-playing .play-icon { display: none; }
.is-playing .pause-icon { display: block; }
.video-error { max-width: 250px; font-size: 12px; line-height: 1.6; }

.invitation { margin-top: 12px; animation: arrive .65s .16s both; }
h1 { margin: 0; font-size: 25px; font-weight: 600; line-height: 1.25; letter-spacing: -.8px; }
.invitation p { margin: 5px 0 0; font-size: 13px; color: var(--muted); line-height: 1.6; }
.app-store { display: inline-flex; align-items: center; justify-content: center; gap: 10px; min-height: 49px; margin-top: 17px; padding: 8px 18px; background: var(--ink); color: var(--paper); border: 1px solid var(--ink); border-radius: 10px; text-decoration: none; transition: transform .2s, box-shadow .2s; }
.app-store:hover { transform: translateY(-2px); box-shadow: 0 5px 0 #dbb959; }
.app-store:active { transform: none; box-shadow: none; }
.app-store > svg { width: 23px; height: 28px; fill: currentColor; }
.app-store > span { display: flex; flex-direction: column; text-align: left; }
.app-store small { font-size: 9px; line-height: 1.15; letter-spacing: .04em; }
.app-store strong { font-size: 21px; line-height: 1.15; font-weight: 600; letter-spacing: -.6px; }
.purchase-note { display: block; margin-top: 9px; font-size: 10px; line-height: 1.5; color: var(--muted); }
footer { display: flex; align-items: center; justify-content: space-between; gap: 12px; padding: 10px 34px 16px; font-size: 10px; color: var(--muted); }
footer nav { display: flex; gap: 21px; }
footer a { min-height: 28px; display: flex; align-items: center; text-decoration: none; }
footer a:hover { color: var(--ink); text-decoration: underline; text-underline-offset: 4px; }

@keyframes arrive { from { opacity: 0; transform: translateY(8px); } to { opacity: 1; transform: translateY(0); } }
@keyframes menu-in { from { opacity: 0; transform: translateY(-5px); } to { opacity: 1; transform: translateY(0); } }

@media (max-width: 700px) {
  :root { --phone-height: clamp(250px, calc(100svh - 365px), 530px); }
  .site-header { inset: 16px 16px auto; }
  .home-mark { visibility: hidden; }
  main { padding: 16px 20px 10px; }
  .wordmark { font-size: 69px; }
  .film-stripe { margin-top: 7px; width: 45px; height: 3px; }
  .product-demo { margin-top: 16px; }
  .phone { padding: 5px; }
  .scene-caption { display: none; }
  .demo-controls { margin-top: 5px; gap: 12px; }
  .demo-controls button { width: 40px; height: 40px; }
  .invitation { margin-top: 7px; }
  h1 { font-size: 23px; }
  .invitation p { font-size: 12px; margin-top: 3px; }
  .app-store { margin-top: 13px; }
  .purchase-note { margin-top: 7px; }
  footer { justify-content: center; flex-wrap: wrap; column-gap: 20px; row-gap: 0; padding: 8px 18px 12px; font-size: 9px; }
  footer nav { gap: 14px; }
}
@media (max-width: 350px) {
  .site-header { inset: 12px 12px auto; }
  footer { flex-direction: column; }
}
@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after { animation: none !important; transition: none !important; }
}
