@font-face {
  font-family: Nunito;
  font-style: normal;
  font-weight: 700;
  font-display: swap;
  src: url("assets/nunito_700.ttf") format("truetype");
}

@font-face {
  font-family: Nunito;
  font-style: normal;
  font-weight: 800;
  font-display: swap;
  src: url("assets/nunito_800.ttf") format("truetype");
}

@font-face {
  font-family: Nunito;
  font-style: normal;
  font-weight: 900;
  font-display: swap;
  src: url("assets/nunito_900.ttf") format("truetype");
}

:root {
  color-scheme: light;
  --ink: #1b1b1f;
  --white: #fff;
  --yellow: #f6c445;
  --blue: #2563a8;
  --sky: #dceefb;
  --sky-soft: #eaf4fd;
  --cream: #fff6e3;
  --green: #d7f0df;
  --muted: #4a4a55;
  --radius: 32px;
  --gutter: clamp(20px, 5vw, 64px);
  font: 700 100%/1.5 Nunito, system-ui, sans-serif;
  color: var(--ink);
}

* { box-sizing: border-box; }
body { margin: 0; }
figure, h1, h2, h3, p { margin: 0; }
img { display: block; max-width: 100%; }
a { color: inherit; text-decoration: none; }
button { color: inherit; font: inherit; }
a:focus-visible, button:focus-visible { outline: 3px solid var(--blue); outline-offset: 5px; }

.shell {
  width: min(100% - var(--gutter) * 2, 1240px);
  margin-inline: auto;
}

.masthead { background: var(--sky); }

.site-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
  min-height: 88px;
  border-bottom: 1px solid #1b1b1f1c;
}

.brand {
  display: inline-flex;
  align-items: center;
  gap: 9px;
  min-height: 44px;
  font-size: clamp(1.35rem, 3vw, 1.68rem);
  font-weight: 900;
  line-height: 1.12;
  letter-spacing: -.055em;
}

.brand img { border-radius: 28%; flex: 0 0 auto; }
.brand span { margin-left: -8px; color: var(--blue); }

nav { display: flex; align-items: center; gap: clamp(12px, 3vw, 30px); font-weight: 800; }
nav a { display: inline-flex; align-items: center; min-height: 44px; }
.how-link:hover { text-decoration: underline; text-underline-offset: 5px; }
.top-download { padding: 8px 19px; border: 1.5px solid var(--ink); border-radius: 999px; }
.top-download:hover { background: var(--white); }

.hero {
  display: grid;
  grid-template-columns: minmax(0, 1fr) minmax(0, 1.08fr);
  gap: clamp(28px, 5vw, 84px);
  align-items: center;
  padding-block: clamp(48px, 7vw, 100px) clamp(68px, 8vw, 110px);
}

.grade-label {
  display: inline-block;
  padding: 7px 14px;
  background: var(--white);
  border-radius: 999px;
  font-size: .9rem;
  font-weight: 900;
}

h1, h2 { letter-spacing: -.055em; line-height: 1.02; font-weight: 900; }

h1 {
  margin-top: 21px;
  font-size: clamp(3rem, 5.2vw, 4.8rem);
}

h1 span {
  display: block;
  width: fit-content;
  background: linear-gradient(transparent 62%, var(--yellow) 62% 92%, transparent 92%);
}

.hero-description {
  margin-top: 22px;
  max-width: 33rem;
  color: var(--muted);
  font-size: clamp(1.06rem, 1.8vw, 1.29rem);
  line-height: 1.52;
}

.store-buttons {
  display: flex;
  flex-wrap: wrap;
  gap: 11px;
  margin-top: 29px;
  scroll-margin-top: 24px;
}

.store-button {
  min-height: 62px;
  min-width: 158px;
  display: inline-flex;
  align-items: center;
  gap: 10px;
  justify-content: flex-start;
  padding: 8px 14px;
  border: 1.5px solid var(--ink);
  border-radius: 18px;
  background: var(--ink);
  color: var(--white);
  cursor: pointer;
  text-align: left;
  transition: background-color .16s;
}

.store-button:hover { background: #35353e; }
.store-icon { flex: 0 0 auto; }
.store-button span { display: grid; line-height: 1.13; }
.store-button small { font-size: .77rem; }
.store-button strong { font-size: 1.17rem; font-weight: 900; }

.hero-art {
  width: min(100%, 510px);
  justify-self: center;
}

.hero-art img {
  width: 100%;
  height: auto;
  filter: drop-shadow(0 12px 14px #2563a823);
}

.showcase { background: var(--white); padding-block: clamp(52px, 7vw, 96px); }

.showcase-inner {
  display: grid;
  grid-template-columns: minmax(0, 1.12fr) minmax(0, 1fr);
  align-items: center;
  gap: clamp(34px, 7vw, 112px);
}

.phone-stage {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: clamp(10px, 3vw, 32px);
  align-items: center;
  padding: clamp(24px, 5vw, 62px) clamp(20px, 5vw, 71px);
  border-radius: var(--radius);
  background-color: var(--cream);
  background-image: repeating-linear-gradient(to bottom, transparent 0 26px, #2563a81a 26px 27px);
}

.phone {
  position: relative;
  max-width: 230px;
  width: 100%;
  margin-inline: auto;
  border: clamp(4px, .65vw, 8px) solid var(--ink);
  border-radius: clamp(18px, 3vw, 35px);
  overflow: hidden;
  background: var(--ink);
  box-shadow: 0 12px 26px #1b1b1f36;
}

.phone img { width: 100%; height: auto; }
.phone-dictation { transform: translateY(-3%) rotate(-7deg); }
.phone-result { transform: translateY(3%) rotate(7deg); }

h2 { font-size: clamp(2.45rem, 4.4vw, 4rem); }
.steps { display: grid; gap: 19px; padding: 0; margin: 28px 0 0; list-style: none; }
.steps li { display: grid; grid-template-columns: 50px 1fr; gap: 15px; align-items: start; }

.step-icon {
  width: 50px;
  height: 50px;
  display: grid;
  place-items: center;
  border-radius: 16px;
}

.step-icon svg { width: 25px; fill: none; stroke: currentColor; stroke-width: 1.8; stroke-linecap: round; stroke-linejoin: round; }
.step-listen { background: var(--sky); color: var(--blue); }
.step-write { background: var(--cream); }
.step-check { background: var(--green); color: #1e7a46; }
.steps h3 { font-size: 1.25rem; font-weight: 900; }
.steps p { color: var(--muted); }

.site-footer {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
  padding-block: 20px;
  border-top: 1px solid #1b1b1f1c;
}
.site-footer p { color: var(--muted); text-align: end; }

.store-dialog {
  width: min(100% - 40px, 425px);
  padding: 28px;
  border: none;
  border-radius: 28px;
  color: var(--ink);
  background: var(--sky-soft);
}
.store-dialog::backdrop { background: #1b1b1f73; }
.store-dialog h2 { font-size: 1.8rem; }
.store-dialog p { margin-top: 12px; }
.close-dialog {
  min-height: 44px;
  margin-top: 20px;
  padding-inline: 22px;
  background: var(--ink);
  color: var(--white);
  border: 0;
  border-radius: 22px;
  cursor: pointer;
}

@media (max-width: 900px) {
  .hero { gap: 29px; }
  h1 { font-size: clamp(2.5rem, 5.8vw, 3.3rem); }
}

@media (max-width: 700px) {
  .site-header { min-height: 70px; }
  .site-header .brand img { width: 38px; height: 38px; }
  .how-link { display: none; }
  .top-download { padding-inline: 13px; font-size: .92rem; }
  .hero, .showcase-inner { grid-template-columns: 1fr; }
  .hero { padding-block: 32px 61px; gap: 34px; }
  h1 { font-size: clamp(2.4rem, 10.5vw, 3.25rem); }
  .hero-art { width: min(95%, 420px); }
  .showcase-copy { grid-row: 1; }
  .phone-stage { padding-inline: clamp(24px, 11vw, 76px); }
}

@media (max-width: 370px) {
  :root { --gutter: 16px; }
  .store-buttons { gap: 8px; }
  .store-button { min-width: 0; flex: 1; padding-inline: 9px; gap: 6px; }
  .store-button strong { font-size: 1.04rem; }
  .store-icon { width: 22px; }
  .site-footer { align-items: flex-start; flex-direction: column; gap: 4px; }
}
