:root {
  --ink: #25241f;
  --muted: #69665e;
  --paper: #fbf7f1;
  --paper-deep: #f1eadf;
  --line: rgba(37, 36, 31, 0.16);
  --leaf: #3e6958;
  --leaf-dark: #2d5043;
  --coral: #d96951;
  --rose: #ead2d0;
  --sage: #cddbc9;
  --honey: #efd899;
  --max-width: 1180px;
}

* {
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
}

body {
  margin: 0;
  color: var(--ink);
  background: var(--paper);
  font-family: Inter, ui-sans-serif, -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
  line-height: 1.6;
  -webkit-font-smoothing: antialiased;
}

a {
  color: inherit;
}

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

.skip-link {
  position: fixed;
  z-index: 20;
  top: 12px;
  left: 12px;
  padding: 10px 14px;
  color: white;
  background: var(--ink);
  transform: translateY(-160%);
}

.skip-link:focus {
  transform: translateY(0);
}

.site-header {
  width: min(calc(100% - 48px), var(--max-width));
  min-height: 92px;
  margin: 0 auto;
  display: flex;
  align-items: center;
  justify-content: space-between;
  border-bottom: 1px solid var(--line);
}

.brand {
  display: inline-flex;
  align-items: center;
  gap: 12px;
  font-size: 0.92rem;
  font-weight: 750;
  letter-spacing: 0.015em;
  text-decoration: none;
}

.brand-mark {
  width: 38px;
  height: 38px;
  display: grid;
  place-items: center;
  color: white;
  background: var(--leaf);
  border-radius: 50%;
  font-family: Georgia, "Times New Roman", serif;
  font-size: 0.82rem;
  letter-spacing: 0.02em;
}

nav {
  display: flex;
  gap: clamp(20px, 4vw, 44px);
}

nav a,
footer a {
  color: var(--muted);
  font-size: 0.88rem;
  font-weight: 650;
  text-decoration: none;
}

nav a:hover,
nav a:focus-visible,
footer a:hover,
footer a:focus-visible {
  color: var(--ink);
}

.hero {
  width: min(calc(100% - 48px), var(--max-width));
  min-height: 690px;
  margin: 0 auto;
  display: grid;
  grid-template-columns: minmax(0, 0.9fr) minmax(440px, 1.1fr);
  gap: clamp(48px, 7vw, 104px);
  align-items: center;
  overflow: hidden;
}

.hero-copy {
  position: relative;
  z-index: 2;
  padding: 70px 0 84px;
}

.eyebrow,
.section-label,
.app-number {
  margin: 0 0 22px;
  color: var(--leaf);
  font-size: 0.72rem;
  font-weight: 800;
  letter-spacing: 0.18em;
  text-transform: uppercase;
}

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

h1,
h2 {
  font-family: Georgia, "Times New Roman", serif;
  font-weight: 500;
  line-height: 0.98;
  letter-spacing: -0.045em;
}

h1 {
  max-width: 680px;
  margin-bottom: 28px;
  font-size: clamp(4.25rem, 8.1vw, 7.1rem);
}

h2 {
  margin-bottom: 0;
  font-size: clamp(2.7rem, 5.6vw, 5.2rem);
}

h3 {
  margin-bottom: 12px;
  font-size: 1.55rem;
  line-height: 1.2;
}

.hero-intro {
  max-width: 510px;
  margin-bottom: 34px;
  color: var(--muted);
  font-size: 1.06rem;
}

.hero-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 12px;
}

.button {
  min-height: 48px;
  padding: 12px 20px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  border: 1px solid var(--leaf);
  border-radius: 999px;
  font-size: 0.86rem;
  font-weight: 750;
  text-decoration: none;
}

.button-primary {
  color: white;
  background: var(--leaf);
}

.button-primary:hover,
.button-primary:focus-visible {
  background: var(--leaf-dark);
}

.button-secondary {
  color: var(--leaf-dark);
  background: transparent;
}

.button-secondary:hover,
.button-secondary:focus-visible {
  background: rgba(62, 105, 88, 0.08);
}

.app-showcase {
  position: relative;
  min-height: 610px;
  display: grid;
  place-items: center;
}

.app-showcase::before {
  content: "";
  position: absolute;
  width: 530px;
  aspect-ratio: 1;
  background: var(--sage);
  border-radius: 50%;
}

.app-showcase::after {
  content: "";
  position: absolute;
  right: 2%;
  bottom: 10%;
  width: 112px;
  aspect-ratio: 1;
  background: var(--honey);
  border-radius: 52% 48% 60% 40%;
  transform: rotate(18deg);
}

.phone {
  position: absolute;
  z-index: 1;
  width: 184px;
  margin: 0;
  padding: 7px;
  background: #1e1e1b;
  border: 1px solid rgba(255, 255, 255, 0.4);
  border-radius: 28px;
  box-shadow: 0 24px 60px rgba(42, 54, 45, 0.22);
  overflow: hidden;
}

.phone img {
  width: 100%;
  border-radius: 21px;
}

.phone-peony {
  z-index: 2;
  transform: translate(-128px, 14px) rotate(-7deg);
}

.phone-rabbit {
  z-index: 3;
  transform: translate(20px, -34px) rotate(2deg);
}

.phone-paws {
  transform: translate(162px, 39px) rotate(8deg);
}

.section {
  width: min(calc(100% - 48px), var(--max-width));
  margin: 0 auto;
  padding: 118px 0;
}

.about {
  border-top: 1px solid var(--line);
}

.about-grid {
  display: grid;
  grid-template-columns: minmax(0, 1.22fr) minmax(300px, 0.78fr);
  gap: clamp(48px, 8vw, 120px);
  align-items: end;
}

.about-copy {
  color: var(--muted);
  font-size: 1rem;
}

.about-copy p:last-child {
  margin-bottom: 0;
}

.apps {
  width: 100%;
  max-width: none;
  padding-right: max(24px, calc((100% - var(--max-width)) / 2));
  padding-left: max(24px, calc((100% - var(--max-width)) / 2));
  background: var(--paper-deep);
}

.section-heading {
  margin-bottom: 54px;
  display: flex;
  align-items: end;
  justify-content: space-between;
  gap: 32px;
}

.section-heading > p {
  margin-bottom: 4px;
  color: var(--muted);
}

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

.app-card {
  min-height: 460px;
  padding: 32px;
  display: flex;
  flex-direction: column;
  justify-content: space-between;
  border-radius: 3px;
}

.card-peony {
  background: var(--rose);
}

.card-rabbit {
  background: var(--sage);
}

.card-paws {
  background: var(--honey);
}

.app-icon {
  width: 118px;
  height: 118px;
  border-radius: 25px;
  box-shadow: 0 16px 34px rgba(37, 36, 31, 0.13);
}

.app-card-copy > p:not(.app-number) {
  min-height: 76px;
  margin-bottom: 24px;
  color: rgba(37, 36, 31, 0.72);
}

.app-number {
  margin-bottom: 14px;
  color: rgba(37, 36, 31, 0.5);
}

.text-link {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  font-size: 0.86rem;
  font-weight: 800;
  text-decoration: none;
}

.text-link:hover,
.text-link:focus-visible {
  text-decoration: underline;
  text-underline-offset: 5px;
}

.contact {
  text-align: center;
}

.contact h2 {
  max-width: 780px;
  margin-right: auto;
  margin-bottom: 46px;
  margin-left: auto;
}

.contact-link {
  display: inline-block;
  color: var(--leaf-dark);
  font-size: clamp(1rem, 2.1vw, 1.5rem);
  font-weight: 750;
  text-underline-offset: 8px;
}

footer {
  width: min(calc(100% - 48px), var(--max-width));
  min-height: 112px;
  margin: 0 auto;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 24px;
  border-top: 1px solid var(--line);
  color: var(--muted);
  font-size: 0.82rem;
}

footer p {
  margin: 0;
}

footer div {
  display: flex;
  gap: 28px;
}

:focus-visible {
  outline: 3px solid var(--coral);
  outline-offset: 4px;
}

@media (max-width: 900px) {
  .hero {
    grid-template-columns: 1fr;
    gap: 0;
  }

  .hero-copy {
    padding-bottom: 30px;
  }

  .app-showcase {
    min-height: 590px;
  }

  .app-showcase::before {
    width: min(78vw, 520px);
  }

  .about-grid {
    grid-template-columns: 1fr;
    gap: 42px;
  }

  .about-grid h2 {
    max-width: 720px;
  }

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

  .app-card {
    min-height: 260px;
    display: grid;
    grid-template-columns: 128px 1fr;
    gap: 28px;
    align-items: center;
  }
}

@media (max-width: 620px) {
  .site-header,
  .hero,
  .section,
  footer {
    width: min(calc(100% - 32px), var(--max-width));
  }

  .site-header {
    min-height: 76px;
  }

  .brand > span:last-child,
  nav a:first-child {
    display: none;
  }

  nav {
    gap: 22px;
  }

  .hero-copy {
    padding-top: 56px;
  }

  h1 {
    font-size: clamp(3.4rem, 17vw, 4.9rem);
  }

  .app-showcase {
    min-height: 460px;
    margin: 0 -16px;
  }

  .phone {
    width: 135px;
    padding: 5px;
    border-radius: 21px;
  }

  .phone img {
    border-radius: 16px;
  }

  .phone-peony {
    transform: translate(-91px, 10px) rotate(-7deg);
  }

  .phone-rabbit {
    transform: translate(4px, -25px) rotate(2deg);
  }

  .phone-paws {
    transform: translate(96px, 28px) rotate(8deg);
  }

  .section {
    padding: 88px 0;
  }

  .apps {
    width: 100%;
    padding-right: 16px;
    padding-left: 16px;
  }

  .section-heading {
    align-items: start;
    flex-direction: column;
    gap: 18px;
  }

  .app-card {
    min-height: 430px;
    padding: 28px;
    display: flex;
    align-items: stretch;
  }

  .app-card-copy > p:not(.app-number) {
    min-height: auto;
  }

  footer {
    padding: 28px 0;
    align-items: start;
    flex-direction: column;
  }
}

@media (prefers-reduced-motion: reduce) {
  html {
    scroll-behavior: auto;
  }
}
