:root {
  --paper: #fbfaf7;
  --paper-soft: #f2f6f2;
  --ink: #142334;
  --muted: #526170;
  --line: #d9ded8;
  --green: #6d8f62;
  --green-deep: #55734b;
  --green-soft: #e9f1e5;
  --violet: #8a88d9;
  --violet-deep: #6762b8;
  --violet-soft: #eeedfb;
  --white: #ffffff;
  --shadow: 0 24px 60px rgba(38, 52, 43, 0.14);
}

* {
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
}

body {
  margin: 0;
  min-width: 320px;
  color: var(--ink);
  background:
    linear-gradient(180deg, rgba(255, 255, 255, 0.82), rgba(242, 246, 242, 0.92)),
    var(--paper);
  font-family: "Inter", system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
}

body::before {
  position: fixed;
  inset: 0;
  z-index: -1;
  pointer-events: none;
  content: "";
  background-image:
    linear-gradient(115deg, rgba(109, 143, 98, 0.06) 0, rgba(109, 143, 98, 0) 36%),
    linear-gradient(245deg, rgba(138, 136, 217, 0.08) 0, rgba(138, 136, 217, 0) 34%);
}

a {
  color: inherit;
}

img,
svg {
  display: block;
}

.site-shell {
  width: min(100%, 1510px);
  margin: 0 auto;
  padding: 28px 64px 0;
}

.site-header {
  display: grid;
  grid-template-columns: minmax(260px, 1fr) auto minmax(190px, 1fr);
  align-items: center;
  gap: 24px;
}

.brand {
  width: fit-content;
  text-decoration: none;
  font-family: "Playfair Display", Georgia, serif;
  font-size: 32px;
  font-weight: 700;
  line-height: 1;
  color: var(--ink);
  white-space: nowrap;
}

.brand-respira {
  color: var(--green-deep);
}

.brand-separator {
  color: #778172;
}

.brand-dictee {
  color: var(--violet-deep);
}

.primary-nav {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 42px;
  font-size: 18px;
  font-weight: 700;
  color: #263445;
}

.primary-nav a {
  position: relative;
  padding: 10px 0;
  text-decoration: none;
}

.primary-nav a::after {
  position: absolute;
  right: 0;
  bottom: 0;
  left: 0;
  height: 2px;
  content: "";
  background: var(--green);
  transform: scaleX(0);
  transform-origin: center;
  transition: transform 180ms ease;
}

.primary-nav a:hover::after,
.primary-nav a:focus-visible::after,
.primary-nav a[aria-current="page"]::after {
  transform: scaleX(1);
}

.header-action {
  justify-self: end;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 10px;
  min-height: 52px;
  padding: 0 24px;
  color: var(--white);
  text-decoration: none;
  font-size: 18px;
  font-weight: 700;
  background: var(--green);
  border: 1px solid rgba(85, 115, 75, 0.18);
  border-radius: 999px;
  box-shadow: 0 12px 22px rgba(85, 115, 75, 0.18);
  transition: background 180ms ease, transform 180ms ease;
}

.header-action:hover,
.header-action:focus-visible {
  background: var(--green-deep);
  transform: translateY(-1px);
}

.header-action svg {
  width: 20px;
  height: 20px;
  fill: none;
  stroke: currentColor;
  stroke-width: 2;
  stroke-linecap: round;
  stroke-linejoin: round;
}

.hero {
  display: grid;
  grid-template-columns: minmax(440px, 0.9fr) minmax(520px, 1.1fr);
  align-items: center;
  gap: 56px;
  min-height: 640px;
  padding: 86px 4px 42px;
}

.hero-copy {
  max-width: 610px;
}

.eyebrow {
  margin: 0 0 18px;
  color: var(--green-deep);
  font-size: 15px;
  font-weight: 800;
  text-transform: uppercase;
}

.hero h1,
.section-heading h2 {
  margin: 0;
  color: #102033;
  font-family: "Playfair Display", Georgia, serif;
  font-weight: 700;
  letter-spacing: 0;
}

.hero h1 {
  max-width: 650px;
  font-size: 76px;
  line-height: 0.98;
}

.hero-lead {
  max-width: 610px;
  margin: 28px 0 0;
  color: var(--muted);
  font-size: 24px;
  line-height: 1.45;
}

.store-row {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 22px;
  margin-top: 34px;
}

.store-badge {
  display: inline-flex;
  min-height: 54px;
  text-decoration: none;
  transition: transform 180ms ease, filter 180ms ease;
}

.store-badge:hover,
.store-badge:focus-visible {
  transform: translateY(-1px);
  filter: drop-shadow(0 8px 14px rgba(20, 35, 52, 0.16));
}

.store-badge img {
  width: auto;
  height: 58px;
}

.hero-visual {
  position: relative;
  min-height: 450px;
}

.hero-visual::before,
.hero-visual::after {
  position: absolute;
  content: "";
  pointer-events: none;
  border: 1px solid transparent;
  border-top-color: rgba(109, 143, 98, 0.18);
  border-left-color: rgba(109, 143, 98, 0.14);
  transform: rotate(-19deg);
}

.hero-visual::before {
  top: 166px;
  left: 34px;
  width: 190px;
  height: 84px;
  border-radius: 50%;
}

.hero-visual::after {
  right: 44px;
  bottom: 128px;
  width: 228px;
  height: 98px;
  border-color: transparent;
  border-top-color: rgba(138, 136, 217, 0.18);
  border-left-color: rgba(138, 136, 217, 0.12);
  transform: rotate(22deg);
}

.app-tile {
  position: absolute;
  display: grid;
  place-items: center;
  width: 260px;
  min-height: 260px;
  padding: 34px 30px;
  background:
    linear-gradient(180deg, rgba(255, 255, 255, 0.98), rgba(248, 250, 246, 0.94));
  border: 1px solid rgba(255, 255, 255, 0.94);
  border-radius: 42px;
  box-shadow: var(--shadow);
  color: inherit;
  text-decoration: none;
}

.app-tile img {
  width: 138px;
  height: 138px;
  object-fit: contain;
  filter: drop-shadow(0 12px 20px rgba(20, 35, 52, 0.1));
}

.app-tile-respira {
  top: 34px;
  left: 82px;
}

.app-tile-dictee {
  right: 42px;
  bottom: 34px;
  background:
    linear-gradient(180deg, rgba(255, 255, 255, 0.98), rgba(247, 247, 253, 0.95));
}

.tile-caption {
  display: grid;
  justify-items: center;
  gap: 11px;
  margin-top: 20px;
  font-family: "Playfair Display", Georgia, serif;
  font-size: 24px;
  color: var(--green-deep);
}

.app-tile-dictee .tile-caption {
  color: var(--violet-deep);
}

.tile-caption span {
  position: relative;
  width: 104px;
  height: 1px;
  background: currentColor;
  opacity: 0.22;
}

.tile-caption span::after {
  position: absolute;
  top: -4px;
  left: calc(50% - 4px);
  width: 8px;
  height: 8px;
  content: "";
  background: currentColor;
  border-radius: 50%;
  opacity: 0.78;
}

.pillars {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 36px;
  padding: 22px 0 32px;
  color: var(--muted);
  border-bottom: 1px solid var(--line);
}

.pillar {
  display: flex;
  align-items: center;
  gap: 14px;
  min-width: 170px;
  font-size: 17px;
  font-weight: 500;
}

.pillar + .pillar {
  padding-left: 36px;
  border-left: 1px solid var(--line);
}

.pillar-icon {
  display: grid;
  place-items: center;
  width: 46px;
  height: 46px;
  color: var(--green-deep);
  background: var(--green-soft);
  border-radius: 50%;
}

.pillar-icon-purple {
  color: var(--violet-deep);
  background: var(--violet-soft);
}

.pillar-icon svg {
  width: 24px;
  height: 24px;
  fill: none;
  stroke: currentColor;
  stroke-width: 2;
  stroke-linecap: round;
  stroke-linejoin: round;
}

.apps-section {
  display: grid;
  grid-template-columns: minmax(260px, 0.78fr) minmax(520px, 1fr);
  gap: 42px;
  padding: 66px 0 70px;
}

.section-heading h2 {
  max-width: 470px;
  font-size: 42px;
  line-height: 1.12;
}

.apps-grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(220px, 1fr));
  gap: 18px;
}

.app-card {
  display: grid;
  grid-template-columns: auto 1fr;
  gap: 18px;
  min-height: 176px;
  padding: 22px;
  background: rgba(255, 255, 255, 0.72);
  border: 1px solid rgba(217, 222, 216, 0.9);
  border-radius: 8px;
  box-shadow: 0 16px 34px rgba(20, 35, 52, 0.07);
  color: inherit;
  text-decoration: none;
}

.app-card-icon {
  width: 64px;
  height: 64px;
  object-fit: contain;
}

.app-card h3 {
  margin: 0 0 10px;
  color: var(--ink);
  font-size: 22px;
  line-height: 1.2;
}

.app-card p {
  margin: 0;
  color: var(--muted);
  font-size: 16px;
  line-height: 1.55;
}

.site-footer {
  display: grid;
  grid-template-columns: minmax(260px, 1fr) minmax(500px, 1fr);
  gap: 42px;
  padding: 30px 0 42px;
  border-top: 1px solid var(--line);
}

.footer-brand p {
  margin: 34px 0 0;
  color: #7a858b;
  font-size: 14px;
}

.footer-links {
  display: grid;
  grid-template-columns: repeat(2, minmax(170px, 1fr));
  gap: 44px;
}

.footer-links div {
  display: grid;
  align-content: start;
  gap: 9px;
}

.footer-links h2 {
  margin: 0 0 6px;
  color: var(--ink);
  font-size: 15px;
  line-height: 1.2;
}

.footer-links a {
  width: fit-content;
  color: var(--muted);
  text-decoration: none;
  font-size: 15px;
  line-height: 1.35;
}

.footer-links a:hover,
.footer-links a:focus-visible {
  color: var(--ink);
  text-decoration: underline;
  text-underline-offset: 4px;
}

.app-detail-header {
  grid-template-columns: minmax(260px, 1fr) auto;
}

.app-detail {
  display: grid;
  grid-template-columns: minmax(420px, 0.95fr) minmax(360px, 1fr);
  align-items: center;
  gap: 72px;
  min-height: calc(100dvh - 104px);
  padding: 76px 4px;
}

.app-detail-copy {
  max-width: 620px;
}

.app-detail-copy h1 {
  margin: 0;
  color: #102033;
  font-family: "Playfair Display", Georgia, serif;
  font-size: 76px;
  font-weight: 700;
  line-height: 1;
  letter-spacing: 0;
}

.app-detail-copy p:not(.eyebrow) {
  max-width: 560px;
  margin: 26px 0 0;
  color: var(--muted);
  font-size: 22px;
  line-height: 1.5;
}

.app-detail-stores {
  margin-top: 36px;
}

.app-detail-visual {
  display: grid;
  place-items: center;
  justify-self: center;
  width: min(100%, 260px);
  aspect-ratio: 1 / 1;
  color: inherit;
  text-decoration: none;
}

.app-detail-visual img {
  width: 100%;
  max-width: 260px;
  height: auto;
  border-radius: 46px;
  box-shadow: var(--shadow);
}

@media (max-width: 1180px) {
  .site-shell {
    padding-right: 34px;
    padding-left: 34px;
  }

  .site-header {
    grid-template-columns: 1fr auto;
  }

  .primary-nav {
    order: 3;
    grid-column: 1 / -1;
  }

  .hero {
    grid-template-columns: 1fr;
    min-height: auto;
    padding-top: 66px;
  }

  .hero-copy {
    max-width: 760px;
  }

  .hero h1 {
    max-width: 780px;
    font-size: 66px;
  }

  .hero-visual {
    min-height: 390px;
  }

  .app-tile-respira {
    left: calc(50% - 300px);
  }

  .app-tile-dictee {
    right: calc(50% - 318px);
  }

  .apps-section {
    grid-template-columns: 1fr;
  }

  .app-detail {
    grid-template-columns: 1fr;
    min-height: auto;
  }

  .app-detail-visual {
    order: -1;
    width: min(100%, 320px);
  }
}

@media (max-width: 760px) {
  .site-shell {
    padding: 22px 18px 0;
  }

  .site-header {
    display: flex;
    flex-wrap: wrap;
    align-items: center;
    justify-content: space-between;
    gap: 18px;
  }

  .brand {
    font-size: 25px;
    white-space: normal;
  }

  .primary-nav {
    order: 3;
    width: 100%;
    justify-content: flex-start;
    gap: 24px;
    overflow-x: auto;
    padding-bottom: 2px;
    font-size: 16px;
  }

  .header-action {
    min-height: 44px;
    padding: 0 16px;
    font-size: 0;
  }

  .header-action svg {
    width: 21px;
    height: 21px;
  }

  .hero {
    gap: 34px;
    padding-top: 52px;
  }

  .eyebrow {
    font-size: 13px;
  }

  .hero h1 {
    font-size: 47px;
    line-height: 1.04;
  }

  .hero-lead {
    margin-top: 22px;
    font-size: 19px;
  }

  .store-row {
    gap: 14px;
  }

  .store-badge img {
    height: 50px;
  }

  .hero-visual {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 12px;
    min-height: 0;
  }

  .hero-visual::before,
  .hero-visual::after {
    display: none;
  }

  .app-tile {
    position: static;
    width: 100%;
    min-height: 198px;
    padding: 22px 14px;
    border-radius: 28px;
  }

  .app-tile img {
    width: 94px;
    height: 94px;
  }

  .tile-caption {
    gap: 9px;
    margin-top: 16px;
    font-size: 19px;
    text-align: center;
  }

  .tile-caption span {
    width: 80px;
  }

  .pillars {
    flex-direction: column;
    align-items: flex-start;
    gap: 16px;
    padding-top: 30px;
  }

  .pillar {
    min-width: 0;
  }

  .pillar + .pillar {
    padding-left: 0;
    border-left: 0;
  }

  .apps-section {
    padding-top: 46px;
  }

  .section-heading h2 {
    font-size: 32px;
  }

  .apps-grid,
  .site-footer,
  .footer-links {
    grid-template-columns: 1fr;
  }

  .site-footer {
    gap: 30px;
  }

  .app-detail-header {
    display: flex;
  }

  .app-detail {
    gap: 34px;
    padding: 52px 4px;
  }

  .app-detail-copy h1 {
    font-size: 48px;
  }

  .app-detail-copy p:not(.eyebrow) {
    font-size: 18px;
  }

  .app-detail-visual {
    border-radius: 32px;
  }
}

@media (max-width: 430px) {
  .hero h1 {
    font-size: 39px;
  }

  .hero-lead {
    font-size: 17px;
  }

  .store-row {
    align-items: flex-start;
    flex-direction: column;
  }

  .hero-visual {
    grid-template-columns: 1fr;
  }

  .app-card {
    grid-template-columns: 1fr;
  }
}
