:root {
  color-scheme: light;
  --ink: #17211d;
  --muted: #5d6b63;
  --paper: #f7f3ea;
  --paper-2: #fffaf0;
  --line: rgba(23, 33, 29, 0.16);
  --green: #2f6f5f;
  --blue: #3a6595;
  --amber: #d38b35;
  --white: #ffffff;
}

* {
  box-sizing: border-box;
}

html {
  background: var(--paper);
  color: var(--ink);
  font-family:
    Inter,
    ui-sans-serif,
    system-ui,
    -apple-system,
    BlinkMacSystemFont,
    "Segoe UI",
    sans-serif;
}

body {
  margin: 0;
  min-width: 320px;
}

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

.hero {
  min-height: 86vh;
  overflow: hidden;
  padding: 24px clamp(20px, 4vw, 64px) 72px;
  position: relative;
}

.hero.not-found {
  min-height: 100vh;
}

.hero::before {
  background:
    linear-gradient(90deg, rgba(247, 243, 234, 0.98) 0%, rgba(247, 243, 234, 0.86) 48%, rgba(247, 243, 234, 0.2) 100%),
    radial-gradient(circle at 68% 34%, rgba(211, 139, 53, 0.2), transparent 28%),
    linear-gradient(140deg, #f7f3ea 0%, #dfe8df 52%, #b6c6d5 100%);
  content: "";
  inset: 0;
  position: absolute;
}

.nav,
.hero-copy,
.section,
.tiles,
footer {
  position: relative;
  z-index: 2;
}

.nav {
  align-items: center;
  display: flex;
  justify-content: space-between;
}

.brand {
  align-items: center;
  display: inline-flex;
  font-size: 15px;
  font-weight: 800;
  gap: 10px;
}

.mark,
.tile-mark {
  background: conic-gradient(from 180deg, var(--amber), #f2cf83, var(--green), var(--blue), var(--amber));
  border: 1px solid rgba(255, 255, 255, 0.6);
  box-shadow: 0 10px 30px rgba(23, 33, 29, 0.14);
  display: inline-block;
}

.mark {
  border-radius: 9px;
  height: 28px;
  width: 28px;
}

.contact-link,
.primary {
  align-items: center;
  border-radius: 999px;
  display: inline-flex;
  font-size: 14px;
  font-weight: 800;
  justify-content: center;
  min-height: 42px;
  padding: 0 18px;
}

.contact-link {
  border: 1px solid var(--line);
  color: var(--ink);
}

.hero-copy {
  margin-top: clamp(92px, 16vh, 168px);
  max-width: 720px;
}

.eyebrow {
  color: var(--green);
  font-size: 13px;
  font-weight: 900;
  letter-spacing: 0;
  margin: 0 0 14px;
  text-transform: uppercase;
}

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

h1 {
  font-size: clamp(56px, 8vw, 112px);
  letter-spacing: 0;
  line-height: 0.9;
  margin-bottom: 24px;
  max-width: 760px;
}

.lede {
  color: #30433b;
  font-size: clamp(22px, 3vw, 34px);
  line-height: 1.18;
  margin-bottom: 32px;
  max-width: 620px;
}

.primary {
  background: var(--ink);
  color: var(--paper-2);
}

.hero-scene {
  bottom: -7%;
  height: 82%;
  max-height: 720px;
  position: absolute;
  right: clamp(-120px, -5vw, -20px);
  width: min(58vw, 760px);
  z-index: 1;
}

.phone {
  background: #18231f;
  border: 1px solid rgba(255, 255, 255, 0.22);
  border-radius: 34px;
  box-shadow: 0 40px 90px rgba(23, 33, 29, 0.34);
  padding: 18px;
  position: absolute;
}

.phone::after {
  background: var(--paper-2);
  border-radius: 24px;
  content: "";
  inset: 18px;
  position: absolute;
}

.phone > * {
  position: relative;
  z-index: 1;
}

.phone-a {
  height: 470px;
  right: 270px;
  top: 80px;
  transform: rotate(-9deg);
  width: 230px;
}

.phone-b {
  height: 540px;
  right: 80px;
  top: 24px;
  transform: rotate(8deg);
  width: 254px;
}

.phone-c {
  height: 410px;
  right: 20px;
  top: 260px;
  transform: rotate(14deg);
  width: 220px;
}

.phone-top {
  background: #24352f;
  border-radius: 999px;
  height: 10px;
  margin: 10px auto 28px;
  width: 72px;
}

.screen-row {
  background: #dce6dd;
  border-radius: 10px;
  height: 16px;
  margin: 14px 12px;
  width: 58%;
}

.screen-row.wide {
  background: #bfd1c5;
  height: 74px;
  width: auto;
}

.screen-grid {
  display: grid;
  gap: 10px;
  grid-template-columns: 1fr 1fr;
  margin: 22px 12px;
}

.screen-grid span,
.screen-list span {
  background: #eef2ec;
  border: 1px solid #dde6dc;
  border-radius: 14px;
  display: block;
}

.screen-grid span {
  height: 82px;
}

.screen-chart {
  align-items: end;
  background: #edf2ec;
  border-radius: 18px;
  display: flex;
  gap: 10px;
  height: 190px;
  margin: 18px 12px 24px;
  padding: 18px;
}

.screen-chart span {
  background: var(--green);
  border-radius: 999px 999px 8px 8px;
  flex: 1;
}

.screen-list {
  display: grid;
  gap: 14px;
  margin: 22px 12px;
}

.screen-list span {
  height: 54px;
}

.section,
.tiles {
  margin: 0 auto;
  max-width: 1120px;
  padding: 78px clamp(20px, 4vw, 40px);
}

.section-grid {
  border-top: 1px solid var(--line);
  display: grid;
  gap: clamp(32px, 8vw, 120px);
  grid-template-columns: minmax(260px, 0.8fr) minmax(280px, 1fr);
  padding-top: 46px;
}

h2 {
  font-size: clamp(34px, 5vw, 64px);
  letter-spacing: 0;
  line-height: 0.98;
}

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

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

.tiles article {
  background: rgba(255, 250, 240, 0.72);
  border: 1px solid var(--line);
  border-radius: 8px;
  min-height: 250px;
  padding: 24px;
}

.tile-mark {
  border-radius: 12px;
  height: 34px;
  margin-bottom: 30px;
  width: 34px;
}

.tile-mark.blue {
  background: linear-gradient(135deg, var(--blue), #9bb6d0);
}

.tile-mark.green {
  background: linear-gradient(135deg, var(--green), #a3c6ab);
}

.tile-mark.amber {
  background: linear-gradient(135deg, var(--amber), #f2cf83);
}

h3 {
  font-size: 22px;
  margin-bottom: 12px;
}

.tiles p {
  color: var(--muted);
  line-height: 1.55;
}

footer {
  align-items: center;
  border-top: 1px solid var(--line);
  color: var(--muted);
  display: flex;
  font-size: 14px;
  justify-content: space-between;
  margin: 0 auto;
  max-width: 1120px;
  padding: 28px clamp(20px, 4vw, 40px) 42px;
}

footer span {
  color: var(--ink);
  font-weight: 800;
}

@media (max-width: 840px) {
  .hero {
    min-height: 780px;
  }

  .hero::before {
    background:
      linear-gradient(180deg, rgba(247, 243, 234, 0.98) 0%, rgba(247, 243, 234, 0.82) 46%, rgba(247, 243, 234, 0.2) 100%),
      linear-gradient(140deg, #f7f3ea 0%, #dfe8df 52%, #b6c6d5 100%);
  }

  .hero-copy {
    margin-top: 82px;
  }

  .hero-scene {
    bottom: -30px;
    height: 370px;
    left: 50%;
    right: auto;
    transform: translateX(-50%);
    width: 520px;
  }

  .phone-a {
    height: 310px;
    right: 260px;
    top: 40px;
    width: 155px;
  }

  .phone-b {
    height: 350px;
    right: 120px;
    top: 4px;
    width: 172px;
  }

  .phone-c {
    height: 270px;
    right: 42px;
    top: 120px;
    width: 150px;
  }

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

  footer {
    align-items: flex-start;
    flex-direction: column;
    gap: 10px;
  }
}

@media (max-width: 520px) {
  .contact-link {
    display: none;
  }

  .hero {
    min-height: 740px;
  }

  .hero-copy {
    margin-top: 72px;
  }

  .hero-scene {
    transform: translateX(-46%) scale(0.82);
    transform-origin: center bottom;
  }
}
