:root {
  color-scheme: light;
  --bg: #eef3fb;
  --bg-soft: #f6f9fe;
  --paper: #ffffff;
  --ink: #07182b;
  --muted: #627086;
  --faint: #9ba8bb;
  --line: #dfe7f2;
  --blue: #3478f6;
  --cyan: #3fc9cf;
  --green: #35d07f;
  --pink: #ff5ca8;
  --red: #f2444b;
  --shadow: 0 26px 70px rgba(31, 58, 102, 0.16);
  --max: 1160px;
}

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

html {
  scroll-behavior: smooth;
}

body {
  margin: 0;
  overflow-x: hidden;
  color: var(--ink);
  background: var(--bg);
  font-family: Inter, ui-sans-serif, system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
  font-size: 16px;
  line-height: 1.55;
  -webkit-font-smoothing: antialiased;
  text-rendering: optimizeLegibility;
}

img,
svg {
  display: block;
  max-width: 100%;
}

a {
  color: inherit;
  text-decoration: none;
}

.container {
  width: calc(100% - 40px);
  max-width: var(--max);
  margin: 0 auto;
}

.site-nav {
  position: sticky;
  top: 0;
  z-index: 20;
  background: rgba(238, 243, 251, 0.84);
  border-bottom: 1px solid rgba(155, 168, 187, 0.22);
  backdrop-filter: blur(18px);
  -webkit-backdrop-filter: blur(18px);
}

.nav-inner {
  min-height: 72px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 24px;
}

.brand {
  display: inline-flex;
  align-items: center;
  gap: 12px;
  font-size: 17px;
  font-weight: 850;
}

.brand img {
  width: 42px;
  height: 42px;
  border-radius: 12px;
  box-shadow: 0 12px 30px rgba(52, 120, 246, 0.24);
}

.nav-links {
  display: flex;
  align-items: center;
  gap: 28px;
  color: var(--muted);
  font-size: 14px;
  font-weight: 750;
}

.nav-links a:hover {
  color: var(--blue);
}

h1,
h2,
h3,
p,
figure {
  margin-top: 0;
}

h1 {
  max-width: 780px;
  margin-bottom: 24px;
  font-size: clamp(52px, 7.4vw, 92px);
  font-weight: 900;
  line-height: 0.96;
  letter-spacing: -0.03em;
}

h2 {
  margin-bottom: 18px;
  font-size: clamp(34px, 4.6vw, 58px);
  font-weight: 900;
  line-height: 1.04;
  letter-spacing: -0.025em;
}

h3 {
  margin-bottom: 10px;
  font-size: 21px;
  line-height: 1.18;
}

.hero {
  position: relative;
  min-height: calc(100vh - 72px);
  padding: 74px 0 86px;
  overflow: hidden;
}

.hero-bg {
  position: absolute;
  inset: auto -18vw -230px -18vw;
  height: 650px;
  background: url("assets/splash.jpg") center bottom / cover no-repeat;
  opacity: 0.72;
  pointer-events: none;
}

.hero::before {
  content: "";
  position: absolute;
  inset: 0;
  background:
    radial-gradient(circle at 20% 16%, rgba(53, 208, 127, 0.16), transparent 34%),
    radial-gradient(circle at 82% 12%, rgba(52, 120, 246, 0.16), transparent 32%);
  pointer-events: none;
}

.hero-grid {
  position: relative;
  z-index: 1;
  display: grid;
  grid-template-columns: minmax(0, 1fr) minmax(320px, 0.62fr);
  gap: 76px;
  align-items: center;
}

.hero-copy {
  min-width: 0;
}

.eyebrow,
.section-kicker {
  margin: 0 0 18px;
  color: var(--blue);
  font-size: 12px;
  font-weight: 900;
  letter-spacing: 0.18em;
  text-transform: uppercase;
}

.lead {
  max-width: 660px;
  margin-bottom: 32px;
  color: var(--muted);
  font-size: clamp(19px, 2.2vw, 24px);
  line-height: 1.48;
}

.hero-actions,
.store-row {
  display: flex;
  flex-wrap: wrap;
  gap: 14px;
  align-items: center;
}

.button {
  min-height: 54px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  border-radius: 18px;
  padding: 0 24px;
  font-size: 15px;
  font-weight: 850;
  transition: transform 160ms ease, box-shadow 160ms ease, background 160ms ease;
}

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

.button-primary {
  color: #fff;
  background: var(--blue);
  box-shadow: 0 20px 34px rgba(52, 120, 246, 0.28);
}

.button-secondary {
  color: var(--ink);
  background: rgba(255, 255, 255, 0.76);
  border: 1px solid var(--line);
}

.cost-examples {
  width: min(100%, 760px);
  margin-top: 42px;
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 14px;
}

.cost-examples div {
  min-height: 112px;
  border: 1px solid rgba(223, 231, 242, 0.9);
  border-radius: 28px;
  padding: 22px;
  background: rgba(255, 255, 255, 0.78);
  box-shadow: 0 18px 40px rgba(31, 58, 102, 0.08);
}

.cost-examples span,
.cost-examples strong {
  display: block;
}

.cost-examples span {
  margin-bottom: 8px;
  color: var(--muted);
  font-size: 13px;
  font-weight: 800;
}

.cost-examples strong {
  color: var(--blue);
  font-size: 22px;
  line-height: 1.1;
}

.hero-device {
  width: min(100%, 360px);
  justify-self: center;
  border-radius: 48px;
  padding: 10px;
  background: linear-gradient(180deg, #ffffff, #e8eef8);
  box-shadow: var(--shadow);
  transform: rotate(3deg);
}

.hero-device img {
  width: 100%;
  border-radius: 38px;
}

.section {
  padding: 96px 0;
}

.idea-section {
  background: var(--paper);
}

.idea-grid {
  display: grid;
  grid-template-columns: 0.95fr 1.05fr;
  gap: 76px;
  align-items: start;
}

.idea-copy {
  color: var(--muted);
  font-size: 20px;
  line-height: 1.6;
}

.idea-copy p {
  margin-bottom: 22px;
}

.metric-section {
  background: linear-gradient(135deg, #09213d, #123b6e 58%, #1d8fd4);
  color: #fff;
}

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

.metric-grid article {
  min-height: 260px;
  border: 1px solid rgba(255, 255, 255, 0.16);
  border-radius: 34px;
  padding: 30px;
  background: rgba(255, 255, 255, 0.08);
}

.metric-grid span,
.metric-grid strong {
  display: block;
}

.metric-grid span {
  margin-bottom: 40px;
  color: rgba(255, 255, 255, 0.72);
  font-size: 13px;
  font-weight: 850;
  letter-spacing: 0.12em;
  text-transform: uppercase;
}

.metric-grid strong {
  margin-bottom: 14px;
  font-size: clamp(44px, 5vw, 64px);
  line-height: 0.95;
}

.metric-grid p {
  margin: 0;
  color: rgba(255, 255, 255, 0.74);
}

.screens-section {
  background: var(--bg);
}

.section-heading {
  max-width: 760px;
  margin-bottom: 42px;
}

.section-heading.centered {
  margin-right: auto;
  margin-left: auto;
  text-align: center;
}

.section-heading p:not(.section-kicker) {
  color: var(--muted);
  font-size: 18px;
}

.screen-gallery {
  display: grid;
  grid-template-columns: 1.1fr 0.9fr 0.9fr 0.9fr;
  gap: 18px;
  align-items: end;
}

.screen-card {
  margin: 0;
  border-radius: 36px;
  padding: 10px;
  background: linear-gradient(180deg, #ffffff, #e8eef8);
  box-shadow: 0 22px 60px rgba(31, 58, 102, 0.14);
}

.screen-card img {
  width: 100%;
  border-radius: 28px;
}

.screen-card figcaption {
  padding: 14px 10px 4px;
  color: var(--muted);
  font-size: 14px;
  font-weight: 850;
  text-align: center;
}

.screen-card.is-primary {
  transform: translateY(-24px);
}

.screen-card:nth-child(2) {
  transform: rotate(-2deg);
}

.screen-card:nth-child(3) {
  transform: translateY(20px) rotate(1.5deg);
}

.screen-card:nth-child(4) {
  transform: rotate(2deg);
}

.how-section {
  background: var(--paper);
}

.mode-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 16px;
}

.mode-grid article {
  min-height: 270px;
  border: 1px solid var(--line);
  border-radius: 32px;
  padding: 26px;
  background: var(--paper);
  box-shadow: 0 18px 42px rgba(31, 58, 102, 0.08);
}

.mode-icon {
  width: 58px;
  height: 58px;
  display: block;
  margin-bottom: 48px;
  border-radius: 20px;
  background: #e9f2ff;
  position: relative;
}

.mode-icon::after {
  content: "";
  position: absolute;
  inset: 16px;
  border-radius: 50%;
  background: var(--blue);
}

.mode-icon.direct {
  background: #eaf7ff;
}

.mode-icon.direct::after {
  background: var(--cyan);
}

.mode-icon.subscription {
  background: #eef8f4;
}

.mode-icon.subscription::after {
  background: var(--green);
}

.mode-icon.recurring {
  background: #fff1f8;
}

.mode-icon.recurring::after {
  background: var(--pink);
}

.mode-icon.lifespan {
  background: #edf3ff;
}

.mode-grid p {
  margin-bottom: 0;
  color: var(--muted);
  font-size: 15px;
}

.details-section {
  background: var(--bg);
}

.details-grid {
  display: grid;
  grid-template-columns: 0.85fr 1.15fr;
  gap: 64px;
  align-items: start;
}

.detail-panel {
  position: sticky;
  top: 104px;
}

.detail-panel p:not(.section-kicker) {
  color: var(--muted);
  font-size: 18px;
}

.detail-list {
  display: grid;
  gap: 14px;
}

.detail-list div {
  display: grid;
  grid-template-columns: 230px 1fr;
  gap: 24px;
  align-items: start;
  border: 1px solid var(--line);
  border-radius: 28px;
  padding: 24px;
  background: rgba(255, 255, 255, 0.76);
}

.detail-list strong {
  font-size: 17px;
}

.detail-list span {
  color: var(--muted);
}

.download-section {
  padding: 96px 0;
  background: var(--paper);
}

.download-panel {
  min-height: 560px;
  display: flex;
  align-items: flex-start;
  border-radius: 44px;
  padding: clamp(34px, 6vw, 72px);
  background:
    linear-gradient(90deg, rgba(255, 255, 255, 0.96), rgba(255, 255, 255, 0.7)),
    url("assets/splash.jpg") center bottom / cover no-repeat;
  box-shadow: var(--shadow);
}

.download-panel > div {
  max-width: 640px;
}

.download-panel img {
  width: 72px;
  height: 72px;
  margin-bottom: 26px;
  border-radius: 20px;
  box-shadow: 0 18px 36px rgba(52, 120, 246, 0.25);
}

.download-panel p:not(.section-kicker) {
  max-width: 600px;
  margin-bottom: 28px;
  color: var(--muted);
  font-size: 18px;
}

.store-button {
  width: 184px;
  min-height: 66px;
  display: flex;
  flex-direction: column;
  justify-content: center;
  border-radius: 20px;
  padding: 12px 18px;
  background: #07182b;
  color: #fff;
  box-shadow: 0 20px 36px rgba(7, 24, 43, 0.18);
  transition: transform 160ms ease;
}

.store-button span {
  color: rgba(255, 255, 255, 0.66);
  font-size: 11px;
  font-weight: 800;
}

.store-button strong {
  font-size: 20px;
  line-height: 1.15;
}

.site-footer {
  padding: 34px 0;
  background: var(--paper);
  color: var(--muted);
  font-size: 14px;
}

.footer-inner {
  display: flex;
  flex-wrap: wrap;
  justify-content: space-between;
  gap: 16px;
}

.footer-inner div {
  display: flex;
  flex-wrap: wrap;
  gap: 18px;
}

.footer-inner a:hover {
  color: var(--blue);
}

.legal {
  width: min(760px, calc(100% - 40px));
  margin: 0 auto;
  padding: 64px 0 96px;
}

.legal h1 {
  margin-bottom: 8px;
  font-size: clamp(38px, 6vw, 58px);
  line-height: 1;
}

.legal .updated {
  margin-bottom: 32px;
  color: var(--muted);
  font-size: 14px;
}

.legal h2 {
  margin: 38px 0 10px;
  font-size: 24px;
}

.legal h3 {
  margin: 24px 0 8px;
  font-size: 18px;
}

.legal p,
.legal li {
  color: #27374b;
}

.legal ul {
  padding-left: 22px;
}

.legal a {
  color: var(--blue);
  text-decoration: underline;
  text-underline-offset: 3px;
}

@media (max-width: 1020px) {
  .hero-grid,
  .idea-grid,
  .details-grid {
    grid-template-columns: 1fr;
  }

  .hero-grid {
    gap: 54px;
  }

  .hero-device {
    transform: none;
  }

  .screen-gallery {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }

  .screen-card,
  .screen-card.is-primary,
  .screen-card:nth-child(2),
  .screen-card:nth-child(3),
  .screen-card:nth-child(4) {
    transform: none;
  }

  .mode-grid,
  .metric-grid {
    grid-template-columns: repeat(2, 1fr);
  }

  .detail-panel {
    position: static;
  }
}

@media (max-width: 700px) {
  .container {
    width: calc(100% - 28px);
    max-width: var(--max);
  }

  .site-nav {
    position: static;
  }

  .nav-inner {
    min-height: 66px;
  }

  .brand img {
    width: 38px;
    height: 38px;
  }

  .nav-links {
    display: none;
  }

  .hero {
    min-height: 0;
    padding: 54px 0 68px;
  }

  .hero-bg {
    inset: auto -54vw -180px -54vw;
    height: 420px;
  }

  h1 {
    max-width: 370px;
    font-size: clamp(44px, 13vw, 58px);
    line-height: 1.02;
  }

  h2 {
    font-size: clamp(32px, 10vw, 44px);
  }

  .lead {
    max-width: 100%;
    font-size: 19px;
  }

  .hero-actions,
  .store-row {
    align-items: stretch;
    flex-direction: column;
  }

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

  .cost-examples,
  .mode-grid,
  .metric-grid,
  .screen-gallery {
    grid-template-columns: 1fr;
  }

  .cost-examples div {
    min-height: 0;
  }

  .hero-device {
    width: min(100%, 350px);
  }

  .section {
    padding: 68px 0;
  }

  .metric-grid article,
  .mode-grid article {
    min-height: auto;
  }

  .metric-grid span,
  .mode-icon {
    margin-bottom: 28px;
  }

  .detail-list div {
    grid-template-columns: 1fr;
    gap: 6px;
  }

  .download-section {
    padding: 68px 0;
  }

  .download-panel {
    min-height: 520px;
    border-radius: 34px;
  }
}

@media (max-width: 420px) {
  .hero-device {
    width: min(100%, 322px);
    border-radius: 40px;
  }

  .hero-device img {
    border-radius: 32px;
  }

  .screen-card {
    border-radius: 32px;
  }
}
