@font-face {
  font-family: "EarShots Wordmark";
  src: url("EarshotsWordmark-Black.ttf") format("truetype");
  font-weight: 900;
  font-display: swap;
}

@font-face {
  font-family: "EarShots Rounded";
  src: url("rounded-headings.woff2") format("woff2");
  font-weight: 900;
  font-display: swap;
}

:root {
  color-scheme: light;
  --paper: #f5f0f0;
  --porcelain: #fbf8f8;
  --ink: #342d2d;
  --muted: #645759;
  --brand: #a17efa;
  --violet: #7851b6;
  --lilac: #efe6fc;
  --display: "EarShots Rounded", "Hiragino Maru Gothic ProN", "Hiragino Sans", "Yu Gothic", sans-serif;
  background: var(--paper);
  color: var(--ink);
  font-family: "Hiragino Sans", "Yu Gothic", Meiryo, sans-serif;
}

*, *::before, *::after { box-sizing: border-box; }
html { scroll-behavior: smooth; }
body, p, h1, h2, h3, figure { margin: 0; }
img { display: block; max-width: 100%; height: auto; }
a { color: inherit; }
section[id], details[id], #how { scroll-margin-top: 5rem; }
[hidden] { display: none !important; }
:focus-visible { outline: 3px solid var(--violet); outline-offset: 5px; }
.icon-library { position: absolute; width: 0; height: 0; }

.skip-link {
  position: fixed;
  top: .75rem;
  left: .75rem;
  z-index: 10;
  background: white;
  border-radius: 1rem;
  padding: .75rem 1rem;
  transform: translateY(-200%);
}

.skip-link:focus { transform: none; }

.masthead {
  position: fixed;
  top: 0;
  inset-inline: 0;
  z-index: 5;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1.25rem;
  padding: max(1.2rem, env(safe-area-inset-top)) 3.25vw 1.25rem;
  background: linear-gradient(#f7f2f2e8, #f7f2f200);
}

.brand {
  position: relative;
  display: inline-flex;
  gap: .08em;
  align-items: flex-start;
  color: var(--brand);
  font: 900 clamp(1.75rem, 3.2vw, 3rem)/1 "EarShots Wordmark", sans-serif;
  letter-spacing: -.015em;
  text-decoration: none;
}

.brand svg {
  width: .48em;
  height: .48em;
  margin-top: -.12em;
  fill: currentColor;
}

.masthead nav a {
  display: block;
  padding-block: .4rem;
  font: 900 clamp(.95rem, 1.75vw, 1.65rem)/1.4 var(--display);
  text-decoration: none;
}

.masthead nav a:hover, .site-footer nav a:hover { color: var(--violet); }

.opening {
  --opening: 0;
  position: relative;
  isolation: isolate;
}

.aperture-runway {
  position: absolute;
  inset: 0;
  z-index: 0;
  pointer-events: none;
}

.has-iris .aperture-runway { z-index: 2; }

.aperture {
  position: absolute;
  inset-block-start: 0;
  width: 100%;
  height: 100svh;
  overflow: hidden;
  opacity: clamp(0, calc((1 - var(--opening)) * 8), 1);
}

.is-enhanced .aperture { position: sticky; top: 0; }

.aperture-surface {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  --opening: 0;
  contain: strict;
}

.aperture-cover {
  position: absolute;
  inset: 0 0 auto;
  height: 100svh;
  background: radial-gradient(ellipse at 47% 55%, #f6efef, #f0e9e9 64%, #f9f3f2);
  opacity: max(0, calc(1 - var(--opening) * 4.5));
  pointer-events: none;
}

.hero {
  position: relative;
  z-index: 3;
  display: grid;
  grid-template-rows: auto 1fr auto;
  justify-items: center;
  align-items: center;
  min-height: max(38.5rem, 94svh);
  padding: max(6.65rem, 10.75svh) 1.1rem clamp(2.3rem, 5.45svh, 4.25rem);
  text-align: center;
}

.hero h1 {
  position: relative;
  display: inline-block;
  font: 900 clamp(3rem, 6.75vw, 6.8rem)/1.02 var(--display);
  letter-spacing: -.086em;
  font-feature-settings: "palt";
}

.hero-sparkle {
  position: absolute;
  top: -.3em;
  right: -.34em;
  width: .61em;
  height: .61em;
  fill: #b092e2;
}

.hero-copy p {
  margin-top: .55em;
  font: 900 clamp(1rem, 2.15vw, 2.1rem)/1.4 var(--display);
  letter-spacing: -.025em;
}

.hero-product {
  position: relative;
  width: min(58vw, 44.75svh, 30rem);
  margin-block: -1.1rem -.75rem;
  transform: translateY(-1.15rem);
}

.has-iris :is(.hero-copy, .hero-product) {
  opacity: clamp(0, calc((.7 - var(--opening)) * 3.1), 1);
}

.has-iris .store-status { opacity: clamp(0, calc((.55 - var(--opening)) * 4), 1); }

.has-iris .hero-product:focus-within { opacity: 1; }

.hero-product img {
  width: 100%;
  filter: drop-shadow(-1.35rem 1.65rem 1.3rem #54405b45);
  transition: transform 140ms ease-out;
}

.hero-product.is-pressed img { transform: scale(.965); }

.demo-button {
  position: absolute;
  top: 23%;
  left: 18.2%;
  width: max(2.75rem, 22%);
  aspect-ratio: 1;
  border: 0;
  border-radius: 50%;
  background: transparent;
  cursor: pointer;
  -webkit-tap-highlight-color: transparent;
}

.demo-feedback {
  position: absolute;
  z-index: 1;
  top: 41%;
  left: 55%;
  font: 900 clamp(1rem, 3vw, 2.5rem)/1 var(--display);
  color: var(--ink);
  white-space: nowrap;
  text-shadow: 0 1px 6px white;
  pointer-events: none;
}

.hero-flash {
  position: absolute;
  inset: 0;
  z-index: 2;
  background: white;
  opacity: 0;
  pointer-events: none;
}

.store-status, .purchase-label {
  border-radius: 999px;
  background: linear-gradient(162deg, #a98adf, #9b76d5);
  box-shadow: inset 0 2px 3px #fff8, inset 0 -3px 4px #5c318246, 0 .55rem 1.3rem #573c672d;
  color: white;
  font: 900 clamp(1.25rem, 2.35vw, 2.25rem)/1.35 var(--display);
  padding: .53em 1.65em .62em;
}

.section-shell {
  width: min(calc(100% - 3rem), 68rem);
  margin-inline: auto;
}

.how {
  position: relative;
  z-index: 1;
  margin-block-start: clamp(2rem, 6svh, 4.5rem);
  margin-inline: 1.45vw;
  border-radius: clamp(1.75rem, 4.2vw, 4.25rem) clamp(1.75rem, 4.2vw, 4.25rem) 0 0;
  background: linear-gradient(#fffdfd 0%, var(--paper) 100%);
  padding-block: clamp(2.75rem, 5.7vw, 5.5rem) clamp(3.5rem, 7vw, 6.5rem);
  text-align: center;
}

.is-enhanced .how {
  background: transparent;
}

.section-heading h2 {
  font: 900 clamp(2.35rem, 6.35vw, 5.15rem)/1.1 var(--display);
  letter-spacing: -.055em;
  font-feature-settings: "palt";
}

.section-heading p {
  margin-top: .65em;
  color: var(--muted);
  font: 900 clamp(.9rem, 2.1vw, 1.5rem)/1.6 var(--display);
  letter-spacing: -.015em;
}

.steps {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  align-items: start;
  gap: clamp(.5rem, 4vw, 4rem);
  width: min(100%, 58rem);
  margin: clamp(.35rem, 1.25vw, 1rem) auto 0;
  padding: 0;
  list-style: none;
}

.steps li { position: relative; }

.steps li:not(:last-child)::after {
  position: absolute;
  top: clamp(2rem, 10vw, 8.4rem);
  right: calc(-.5 * clamp(.5rem, 4vw, 4rem));
  width: 1.15em;
  transform: translate(50%, -50%);
  color: #b08de5;
  content: "→";
  font: 900 clamp(1rem, 3.2vw, 2.8rem)/1 var(--display);
}

.step-visual {
  position: relative;
  width: min(100%, 16rem);
  aspect-ratio: 1;
  max-height: clamp(9rem, 13vw, 13rem);
  margin: 0 auto .5rem;
}

.step-visual img {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  object-fit: contain;
  filter: drop-shadow(-.35rem .55rem .6rem #5d436129);
}

.steps h3, .pro-features li {
  font: 900 clamp(1rem, 2.55vw, 2rem)/1.3 var(--display);
  letter-spacing: -.04em;
}

.steps p {
  margin: .55rem auto 0;
  color: var(--muted);
  font-size: clamp(.75rem, 1.15vw, .95rem);
  line-height: 1.7;
  text-wrap: pretty;
}

.pro {
  padding: clamp(2rem, 6vw, 5.25rem) clamp(2rem, 6vw, 5rem) clamp(2rem, 4.8vw, 4rem);
  border-radius: clamp(2rem, 8vw, 6rem);
  background: linear-gradient(160deg, #ffffffce, #faf6f6);
  box-shadow: inset 0 2px 0 #fff, 0 1.2rem 3.2rem #6c566010;
}

.pro .section-heading { text-align: center; }

.pro h2 { display: inline-block; position: relative; letter-spacing: -.045em; }

.pro h2 svg {
  position: absolute;
  top: -.22em;
  right: -.48em;
  width: .55em;
  height: .55em;
  fill: #b092e2;
}

.pro-content {
  display: grid;
  grid-template-columns: .9fr 1.1fr;
  gap: 1.5rem;
  align-items: center;
  margin-top: .7rem;
}

.pro-features {
  display: grid;
  gap: clamp(.9rem, 2vw, 1.7rem);
  margin: 0;
  padding: 0;
  list-style: none;
}

.pro-features li {
  display: flex;
  align-items: center;
  gap: clamp(.6rem, 2vw, 1.35rem);
}

.feature-icon {
  display: grid;
  place-items: center;
  flex: 0 0 auto;
  width: clamp(2.65rem, 7.1vw, 5.35rem);
  aspect-ratio: 1;
  border-radius: 27%;
  background: var(--lilac);
  color: var(--violet);
}

.feature-icon svg { width: 61%; }

.pro-art { position: relative; min-width: 0; }

.pro-art img {
  width: 100%;
  filter: drop-shadow(-.65rem .85rem .8rem #5d43612a);
}

.purchase-label {
  position: absolute;
  bottom: 17%;
  right: 6%;
  background: linear-gradient(160deg, #926bc9, #815db8);
  font-size: clamp(.9rem, 2.05vw, 1.55rem);
  padding-inline: 1.1em;
}

.faq {
  width: min(calc(100% - 3rem), 48rem);
  margin-block: clamp(2.1rem, 4.4vw, 4rem) 0;
  color: var(--muted);
  font-size: .95rem;
  line-height: 1.7;
}

.faq summary { cursor: pointer; text-align: center; font-weight: 700; }
.faq dl { padding: 1rem clamp(1rem, 4vw, 2.5rem); }
.faq dt { margin-top: 1rem; color: var(--ink); font-weight: 700; }
.faq dd { margin: .25rem 0 0; }

.site-footer {
  display: grid;
  justify-items: center;
  gap: 1.5rem;
  padding: clamp(2.5rem, 5vw, 4.75rem) 1.5rem 3rem;
  text-align: center;
}

.site-footer nav {
  display: flex;
  justify-content: center;
  flex-wrap: wrap;
  gap: .75rem 2rem;
  font-size: .9rem;
}

.site-footer nav a { text-decoration: none; }

@media (max-width: 720px) {
  .masthead { padding-inline: 1.25rem; }

  .hero {
    min-height: max(38rem, 94svh);
    padding-top: max(7rem, 15svh);
  }

  .hero h1 { font-size: clamp(2.1rem, 9vw, 3.7rem); }
  .hero-product {
    width: min(62vw, 35svh, 18.5rem);
    margin-block: 0;
    transform: none;
  }
  .has-iris .hero-product { opacity: clamp(0, calc((.49 - var(--opening)) * 5.1), 1); }

  .aperture-surface {
    left: -21%;
    width: 142%;
  }

  .how { margin-inline: .65rem; }
  .section-shell { width: calc(100% - 2rem); }
  .steps { gap: .6rem; }
  .steps li:not(:last-child)::after { right: -.3rem; }
  .pro { padding-inline: 1.35rem; }
  .pro-content { grid-template-columns: 1fr; gap: 0; margin-top: 1.25rem; }
  .pro-features { grid-template-columns: 1fr 1fr; }
  .pro-art { width: min(92%, 22rem); margin: -.25rem auto -1rem; }
}

@media (max-width: 540px) {
  .steps {
    grid-template-columns: minmax(0, 1fr);
    gap: .75rem;
    width: min(100%, 25rem);
    margin-top: 1.35rem;
    text-align: left;
  }

  .steps li {
    display: grid;
    grid-template-columns: 5.75rem minmax(0, 1fr);
    align-items: center;
    gap: .85rem;
  }

  .steps li:not(:last-child)::after { display: none; }
  .step-visual { margin: 0; }
  .steps h3 { font-size: 1.15rem; }
  .steps p { margin: .3rem 0 0; font-size: .875rem; }
}

@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  .opening.is-enhanced { --opening: 0 !important; }
  .is-enhanced .aperture-runway { z-index: 0; }
  .is-enhanced .aperture { position: absolute; }
  .hero-product img { transition: none; }
}
