:root {
  color-scheme: light;

  /* Mirrors PrettyPlease/UI/StyleGuide/Colors.swift */
  --sage-mist: #a8c5b5;
  --canopy-green: #6b9b7f;
  --fresh-shoot: #5fa876;
  --morning-dew: #7bd0c5;
  --earth: #7b6155;
  --karaoke-highlight: #ffb84d;
  --text-primary: #ffffff;
  --text-secondary: #4a5f57;
  --text-on-accent: #2d3e35;
  --warm-panel: #f4efe7;
  --card-background: rgba(255, 255, 255, 0.38);
  --card-border: rgba(255, 255, 255, 0.42);
  --line: rgba(45, 62, 53, 0.16);
  --shadow-md:
    0 0 8px rgba(107, 155, 127, 0.12),
    0 4px 12px rgba(107, 155, 127, 0.16);
  --soft-botanical-shadow: 0 6px 12px rgba(107, 155, 127, 0.2);

  --radius-small: 16px;
  --radius-medium: 20px;
  --radius-button: 24px;
  --radius-card: 32px;

  --font-rounded: ui-rounded, "SF Pro Rounded", "Arial Rounded MT Bold", -apple-system,
    BlinkMacSystemFont, "Segoe UI", sans-serif;
  --font-system: -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
}

*,
*::before,
*::after {
  box-sizing: border-box;
}

html {
  background: var(--sage-mist);
  color: var(--text-on-accent);
  font-family: var(--font-rounded);
  scroll-behavior: smooth;
  -webkit-font-smoothing: antialiased;
  text-rendering: optimizeLegibility;
}

body {
  margin: 0;
  min-height: 100dvh;
  background: var(--sage-mist);
}

a {
  color: inherit;
}

img {
  display: block;
}

h1,
h2,
h3,
p {
  margin: 0;
}

::selection {
  background: var(--text-on-accent);
  color: var(--text-primary);
}

.wrap {
  width: min(1120px, 100%);
  margin-inline: auto;
  padding-inline: 28px;
}

.site-header {
  position: absolute;
  inset: 0 0 auto;
  z-index: 10;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 24px;
  width: min(1120px, calc(100% - 56px));
  margin-inline: auto;
  padding-block: 24px;
  color: var(--text-on-accent);
}

.brand,
.site-header nav {
  display: inline-flex;
  align-items: center;
}

.brand {
  gap: 10px;
  color: var(--text-primary);
  font-size: 17px;
  font-weight: 800;
  text-decoration: none;
}

.brand img {
  width: 34px;
  height: 34px;
  border-radius: 9px;
  box-shadow: var(--soft-botanical-shadow);
}

.site-header nav {
  gap: 18px;
  color: var(--text-secondary);
  font-family: var(--font-system);
  font-size: 15px;
  font-weight: 700;
}

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

.site-header nav a:hover {
  color: var(--text-on-accent);
}

.hero {
  position: relative;
  min-height: min(860px, 86svh);
  overflow: hidden;
  display: grid;
  align-items: center;
  padding-block: 104px 54px;
}

.hero::after {
  content: "";
  position: absolute;
  inset: 0;
  background: linear-gradient(
    90deg,
    rgba(168, 197, 181, 0.98) 0%,
    rgba(168, 197, 181, 0.9) 43%,
    rgba(168, 197, 181, 0.2) 100%
  );
  pointer-events: none;
}

.hero__glow {
  position: absolute;
  right: -110px;
  bottom: -180px;
  width: 620px;
  height: 620px;
  border-radius: 999px;
  background:
    radial-gradient(circle at 40% 38%, rgba(255, 184, 77, 0.52), transparent 34%),
    radial-gradient(circle at 54% 52%, rgba(123, 208, 197, 0.58), transparent 44%);
  filter: blur(10px);
  opacity: 0.75;
}

.hero__content {
  position: relative;
  z-index: 2;
}

.eyebrow {
  margin-bottom: 12px;
  color: var(--text-secondary);
  font-family: var(--font-system);
  font-size: 14px;
  font-weight: 800;
  letter-spacing: 0;
  text-transform: uppercase;
}

h1 {
  color: var(--text-primary);
  font-size: 64px;
  line-height: 1;
  font-weight: 900;
  letter-spacing: 0;
}

.lede {
  max-width: 600px;
  margin-top: 24px;
  color: var(--text-on-accent);
  font-size: 36px;
  line-height: 1.08;
  font-weight: 900;
  letter-spacing: 0;
}

.support {
  max-width: 560px;
  margin-top: 20px;
  color: var(--text-secondary);
  font-family: var(--font-system);
  font-size: 18px;
  line-height: 1.55;
  font-weight: 700;
}

.actions {
  display: flex;
  flex-wrap: wrap;
  gap: 16px;
  margin-top: 32px;
}

.store-button,
.button {
  min-height: 56px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  border-radius: var(--radius-button);
  text-decoration: none;
  transition:
    transform 180ms ease,
    box-shadow 180ms ease,
    background 180ms ease;
}

.store-button {
  flex-direction: column;
  align-items: flex-start;
  min-width: 190px;
  padding: 8px 22px 9px;
  background: linear-gradient(135deg, var(--morning-dew), var(--fresh-shoot));
  color: var(--text-primary);
  box-shadow: var(--soft-botanical-shadow);
}

.store-button span {
  font-family: var(--font-system);
  font-size: 12px;
  line-height: 1;
  font-weight: 700;
}

.store-button strong {
  margin-top: 3px;
  font-size: 22px;
  line-height: 1;
  font-weight: 900;
}

.store-button:hover,
.button:hover {
  transform: translateY(-1px);
}

.button--secondary {
  border: 2px solid var(--fresh-shoot);
  padding-inline: 24px;
  color: var(--fresh-shoot);
  background: rgba(255, 255, 255, 0.3);
  font-size: 17px;
  font-weight: 800;
}

.phone-scene {
  position: absolute;
  z-index: 1;
  right: max(28px, calc((100vw - 1120px) / 2));
  bottom: -34px;
  width: 360px;
  transform: rotate(5deg);
}

.phone {
  border-radius: 46px;
  padding: 12px;
  background: rgba(255, 255, 255, 0.42);
  box-shadow:
    0 26px 60px rgba(45, 62, 53, 0.18),
    var(--shadow-md);
}

.phone__screen {
  min-height: 650px;
  display: flex;
  flex-direction: column;
  overflow: hidden;
  border: 1px solid rgba(255, 255, 255, 0.34);
  border-radius: 34px;
  padding: 24px;
  background:
    linear-gradient(180deg, rgba(255, 255, 255, 0.16), transparent 34%),
    var(--sage-mist);
}

.phone__status {
  display: flex;
  justify-content: space-between;
  color: var(--text-secondary);
  font-family: var(--font-system);
  font-size: 14px;
  font-weight: 800;
}

.phone__status strong {
  color: var(--text-primary);
}

.phone__icon {
  width: 118px;
  height: 118px;
  display: grid;
  place-items: center;
  margin: 76px auto 24px;
  border-radius: 999px;
  background:
    linear-gradient(135deg, rgba(123, 208, 197, 0.86), rgba(95, 168, 118, 0.95));
  box-shadow:
    0 0 0 18px rgba(95, 168, 118, 0.14),
    var(--soft-botanical-shadow);
}

.phone__icon img {
  width: 74px;
  height: 74px;
  border-radius: 20px;
}

.phone__title {
  color: var(--text-primary);
  font-size: 32px;
  line-height: 1.04;
  font-weight: 900;
  text-align: center;
}

.phrase-card {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: 8px;
  margin-top: 24px;
  border: 1px solid var(--card-border);
  border-radius: var(--radius-card);
  padding: 18px;
  background: rgba(255, 255, 255, 0.22);
}

.phrase-card span {
  border-radius: var(--radius-medium);
  padding: 8px 12px;
  background: rgba(255, 255, 255, 0.34);
  color: var(--text-secondary);
  font-size: 15px;
  font-weight: 800;
}

.phrase-card span:nth-child(-n + 3) {
  background: var(--karaoke-highlight);
  color: var(--text-on-accent);
}

.voice-meter {
  display: flex;
  align-items: end;
  justify-content: center;
  gap: 8px;
  height: 58px;
  margin-top: 28px;
}

.voice-meter span {
  width: 10px;
  border-radius: 999px;
  background: linear-gradient(180deg, var(--morning-dew), var(--fresh-shoot));
}

.voice-meter span:nth-child(1),
.voice-meter span:nth-child(5) {
  height: 20px;
}

.voice-meter span:nth-child(2),
.voice-meter span:nth-child(4) {
  height: 42px;
}

.voice-meter span:nth-child(3) {
  height: 58px;
  background: var(--karaoke-highlight);
}

.phone__caption {
  margin-top: auto;
  color: var(--text-secondary);
  font-size: 17px;
  font-weight: 800;
  text-align: center;
}

.section {
  padding-block: 78px;
}

.section .wrap {
  border-top: 1px solid var(--line);
  padding-top: 64px;
}

.section--cream {
  background: var(--warm-panel);
}

.section--cream .wrap {
  border-top-color: rgba(123, 97, 85, 0.16);
}

.section__heading {
  max-width: 820px;
  margin-bottom: 32px;
}

h2 {
  color: var(--text-primary);
  font-size: 48px;
  line-height: 1.06;
  font-weight: 900;
  letter-spacing: 0;
}

.section--cream h2 {
  color: var(--text-on-accent);
}

.steps {
  display: grid;
}

.step {
  display: grid;
  grid-template-columns: 80px minmax(0, 1fr);
  gap: 24px;
  border-bottom: 1px solid var(--line);
  padding-block: 20px;
}

.step:first-child {
  border-top: 1px solid var(--line);
}

.step > span {
  color: rgba(255, 255, 255, 0.78);
  font-family: var(--font-system);
  font-size: 14px;
  font-weight: 800;
}

h3 {
  color: var(--text-on-accent);
  font-size: 18px;
  font-weight: 900;
  letter-spacing: 0;
}

.step p,
.feature p {
  max-width: 620px;
  margin-top: 6px;
  color: var(--text-secondary);
  font-family: var(--font-system);
  font-size: 16px;
  line-height: 1.55;
  font-weight: 650;
}

.feature-grid {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 16px;
}

.feature {
  min-height: 186px;
  border: 1px solid rgba(255, 255, 255, 0.58);
  border-radius: var(--radius-card);
  padding: 24px;
  background: rgba(255, 255, 255, 0.52);
  box-shadow: 0 10px 24px rgba(123, 97, 85, 0.08);
}

.download {
  padding-block: 76px 92px;
  background:
    linear-gradient(135deg, rgba(123, 208, 197, 0.24), rgba(255, 184, 77, 0.2)),
    var(--sage-mist);
}

.download__inner {
  display: flex;
  justify-content: center;
  align-items: center;
  border-top: 1px solid var(--line);
  padding-top: 64px;
}

.store-button--large {
  min-height: 70px;
  min-width: 220px;
  opacity: 0.72;
}

.store-button--large[aria-disabled="true"] {
  cursor: not-allowed;
}

@media (max-width: 900px) {
  .site-header {
    width: calc(100% - 40px);
  }

  .wrap {
    padding-inline: 20px;
  }

  .hero {
    min-height: min(860px, 86svh);
  }

  .phone-scene {
    right: -90px;
    bottom: -88px;
    width: 315px;
    opacity: 0.72;
  }

  .phone__screen {
    min-height: 560px;
  }

  h1 {
    font-size: 52px;
  }

  .lede {
    max-width: 520px;
    font-size: 32px;
  }

  h2 {
    font-size: 40px;
  }

  .feature-grid {
    grid-template-columns: 1fr;
  }

}

@media (max-width: 620px) {
  .site-header {
    align-items: flex-start;
    padding-block: 18px;
  }

  .site-header nav {
    display: none;
  }

  .hero {
    min-height: min(760px, 88svh);
    align-items: end;
    padding-block: 112px 42px;
  }

  .hero::after {
    background: linear-gradient(
      90deg,
      rgba(168, 197, 181, 0.99) 0%,
      rgba(168, 197, 181, 0.91) 62%,
      rgba(168, 197, 181, 0.34) 100%
    );
  }

  .phone-scene {
    right: -170px;
    bottom: 8px;
    width: 300px;
    opacity: 0.56;
  }

  .phone__screen {
    min-height: 520px;
  }

  .hero__content {
    width: 100%;
    max-width: none;
    margin-inline: 0;
  }

  h1 {
    font-size: 44px;
  }

  .lede {
    max-width: 320px;
    font-size: 28px;
  }

  .support {
    max-width: 330px;
    font-size: 16px;
  }

  .actions {
    flex-direction: column;
    align-items: stretch;
    max-width: 336px;
  }

  .store-button,
  .button {
    min-width: 0;
    width: 100%;
  }

  h2 {
    font-size: 34px;
  }

  .section {
    padding-block: 58px;
  }

  .section .wrap,
  .download__inner {
    padding-top: 48px;
  }

  .step {
    grid-template-columns: 1fr;
    gap: 8px;
  }
}
