:root {
  --paper: #f0efed;
  --cream: #fffcf6;
  --cream-deep: #ffefd6;
  --orange: #fa824c;
  --orange-dark: #f16527;
  --yellow: #fcc96f;
  --ink: #333333;
  --muted: #666666;
  --line: #acacac;
  --font: "Figtree", "Avenir Next", "Helvetica Neue", Arial, sans-serif;
}

* {
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
}

body {
  min-width: 320px;
  margin: 0;
  color: var(--ink);
  font-family: var(--font);
  background: var(--cream);
  overflow-x: hidden;
}

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

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

.wrap {
  width: min(1066px, calc(100% - 40px));
  margin-inline: auto;
}

.home-nav {
  position: sticky;
  top: 0;
  z-index: 20;
  display: flex;
  align-items: center;
  justify-content: space-between;
  height: 62.667px;
  padding: 20px 130.667px;
  background: var(--paper);
  box-shadow: 0 6.667px 6.667px rgba(240, 239, 237, 0.5);
}

.brand,
.home-nav nav {
  display: flex;
  align-items: center;
}

.brand {
  gap: 17.333px;
  font-size: 16px;
  font-weight: 600;
  white-space: nowrap;
}

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

.brand em {
  color: var(--muted);
  font-style: normal;
}

.home-nav nav {
  gap: 38.667px;
  color: #666666;
  font-size: 16px;
  font-weight: 600;
}

.home-nav nav a {
  display: inline-flex;
  align-items: center;
  justify-content: center;
}

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

.project-back {
  position: fixed;
  top: 86px;
  left: 24px;
  z-index: 18;
  display: inline-flex;
  align-items: center;
  gap: 8px;
  min-height: 38px;
  padding: 8px 14px;
  border: 1px solid rgba(250, 130, 76, 0.22);
  border-radius: 999px;
  color: #a14c24;
  background: rgba(255, 241, 232, 0.88);
  box-shadow: 0 10px 28px rgba(250, 130, 76, 0.12);
  font-size: 14px;
  font-weight: 600;
  line-height: 1;
  backdrop-filter: blur(12px);
}

.project-back span {
  font-size: 16px;
  line-height: 1;
}

.hero {
  padding: 60px 0;
}

.hero-grid {
  display: grid;
  grid-template-columns: 456px 1fr;
  gap: 142px;
  align-items: start;
}

.hero-copy h1 {
  margin: 0 0 16px;
  color: #000000;
  font-size: 64px;
  font-weight: 700;
  line-height: 1.12;
}

.hero-copy p {
  width: 456px;
  margin: 0 0 21px;
  color: #000000;
  font-size: 21.333px;
  font-weight: 500;
  line-height: 1.27;
}

.hero-copy strong {
  color: var(--orange-dark);
  font-weight: 700;
}

.orange-button {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 10.667px;
  padding: 10.667px 21.333px;
  border-radius: 666px;
  color: #ffffff;
  background: var(--orange-dark);
  font-size: 16px;
  line-height: 1.2;
}

.icon-button {
  padding: 13.333px 17.778px;
}

.icon-button img {
  width: 13.867px;
  height: 12.018px;
}

.hero-phones {
  position: relative;
  height: 536px;
}

.hero-phone {
  position: absolute;
  margin: 0;
  filter: drop-shadow(0 33px 48px rgba(8, 8, 8, 0.16));
}

.hero-phone.left {
  left: 0;
  top: 76px;
  width: 200px;
  transform: rotate(-10deg);
}

.hero-phone.right {
  left: 205px;
  top: 0;
  width: 221px;
  transform: rotate(10deg);
}

.meta {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 48px;
  padding: 20px 0;
  font-size: 21.333px;
}

.meta div {
  display: flex;
  flex-direction: column;
  gap: 13.333px;
}

.meta span {
  color: var(--muted);
  font-weight: 400;
}

.meta strong {
  font-weight: 700;
}

.section {
  padding: 60px 0;
}

.section h2,
.features h2,
.other-section .section-kicker {
  width: 100%;
  margin: 0 0 23.333px;
  color: var(--ink);
  font-size: 35.556px;
  font-weight: 700;
  line-height: 1.18;
  text-align: center;
}

.overview {
  background: #ffffff;
}

.overview-grid {
  display: grid;
  grid-template-columns: 444px 364px;
  gap: 71px;
  justify-content: center;
  align-items: center;
}

.chart-card {
  position: relative;
  width: 444.444px;
  height: 298.16px;
  border: 0.466px solid var(--line);
  border-radius: 13.976px;
  background: #ffffff;
}

.chart-title {
  position: absolute;
  top: 14px;
  left: 97px;
  margin: 0;
  color: #000000;
  font-size: 11.181px;
  font-weight: 500;
  line-height: 1.18;
}

.chart-legend {
  position: absolute;
  top: 41px;
  left: 55px;
  display: flex;
  align-items: center;
  gap: 8px;
  color: #000000;
  font-size: 7.454px;
  font-weight: 500;
}

.chart-legend span {
  width: 9.783px;
  height: 9.783px;
}

.chart-legend .major {
  background: var(--yellow);
}

.chart-legend .stem {
  margin-left: 6px;
  background: var(--orange);
}

.chart-area {
  position: absolute;
  left: 55px;
  top: 62px;
  width: 335px;
  height: 196px;
}

.chart-area > span {
  position: absolute;
  left: -55px;
  color: #6c6c6c;
  font-size: 7.454px;
  line-height: 1;
}

.chart-area > span:nth-child(1) {
  top: -3px;
}

.chart-area > span:nth-child(2) {
  top: 34px;
}

.chart-area > span:nth-child(3) {
  top: 68px;
}

.chart-area > span:nth-child(4) {
  top: 102px;
}

.chart-area > span:nth-child(5) {
  top: 137px;
}

.grid-line {
  position: absolute;
  left: 0;
  width: 335px;
  height: 1px;
  background: #d8d8d8;
}

.l1 { top: 13px; }
.l2 { top: 48px; }
.l3 { top: 82px; }
.l4 { top: 116px; }
.l5 { top: 150px; }
.l6 { top: 184px; }

.bar {
  position: absolute;
  bottom: 12px;
  width: 59.166px;
  border-radius: 13.976px 13.976px 0 0;
}

.bar b {
  position: absolute;
  top: 24px;
  width: 100%;
  color: #ffffff;
  font-size: 14.908px;
  font-weight: 500;
  line-height: 1;
  text-align: center;
}

.bar-1 {
  left: 38px;
  height: 75px;
  background: var(--yellow);
}

.bar-2 {
  left: 97px;
  height: 109px;
  background: var(--orange);
}

.bar-3 {
  left: 198px;
  height: 149px;
  background: var(--yellow);
}

.bar-4 {
  left: 257px;
  height: 171px;
  background: var(--orange);
}

.chart-area .x {
  position: absolute;
  top: 190px;
  margin: 0;
  color: #000000;
  font-size: 11.181px;
  font-weight: 500;
  white-space: nowrap;
}

.x1 {
  left: 45px;
}

.x2 {
  left: 205px;
}

.chart-source {
  position: absolute;
  right: 51px;
  bottom: 11px;
  margin: 0;
  color: #656565;
  font-size: 7.454px;
  font-style: italic;
}

.overview-copy {
  margin: 0;
  font-size: 17.778px;
  line-height: 1.42;
}

.problem {
  background: var(--cream-deep);
}

.pain-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 30px;
  margin-bottom: 23.333px;
}

.pain-grid article {
  min-height: 177px;
  padding: 17.778px;
  border-radius: 17.778px;
  background: #ffffff;
  color: #161c2d;
}

.pain-grid span {
  display: block;
  margin-bottom: 17px;
  font-size: 26.667px;
  line-height: 1;
}

.pain-grid h3 {
  margin: 0 0 12px;
  font-size: 17.778px;
  opacity: 0.7;
}

.pain-grid p {
  margin: 0;
  font-size: 17.778px;
  line-height: 1.09;
  opacity: 0.7;
}

.challenge-card {
  padding: 26.667px 44.444px;
  border-radius: 26.667px;
  color: #ffffff;
  background: var(--orange);
}

.challenge-card p {
  margin: 0 0 12px;
  font-size: 17.778px;
  font-weight: 600;
  text-align: center;
  opacity: 0.7;
}

.challenge-card h3 {
  margin: 0;
  font-size: 35.556px;
  line-height: 1.15;
}

.impact {
  background: #ffffff;
}

.impact-metrics {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 28px;
  margin-bottom: 40px;
}

.impact-metrics div {
  display: flex;
  align-items: center;
  gap: 8.889px;
}

.impact-metrics strong {
  font-size: 38.4px;
  font-weight: 500;
  line-height: 1.2;
}

.impact-metrics span {
  width: 207px;
  color: rgba(22, 28, 45, 0.7);
  font-size: 13.6px;
  line-height: 1.7;
}

.phone-cluster {
  position: relative;
  width: 826px;
  height: 685px;
  margin: 0 auto;
}

.mock-phone {
  position: relative;
  margin: 0;
}

.hero-phones .mock-phone {
  position: absolute;
}

.mock-phone .frame {
  position: relative;
  z-index: 2;
  width: 100%;
  max-width: none;
}

.mock-phone .screen {
  position: absolute;
  z-index: 1;
  left: 8.4%;
  top: 4.25%;
  width: 83.2%;
  height: 91.5%;
  border-radius: 13px;
  object-fit: cover;
}

.phone-cluster .small {
  position: absolute;
  top: 40px;
  width: 291px;
}

.phone-cluster .left {
  left: 0;
}

.phone-cluster .right {
  right: 0;
  top: 55px;
}

.phone-cluster .large {
  position: absolute;
  left: 239px;
  top: 0;
  width: 348px;
}

.prototype-grid,
.deck-grid {
  display: grid;
  grid-template-columns: 336px 1fr;
  gap: 180px;
  align-items: center;
}

.section-copy h2 {
  margin: 0 0 44.444px;
  font-size: 35.556px;
  font-weight: 700;
  line-height: 1.18;
}

.section-copy p {
  margin: 0 0 26.667px;
  font-size: 18px;
  line-height: 1.42;
}

.prototype-phone {
  width: 348px;
  justify-self: center;
}

.features {
  width: min(1280px, 100%);
  margin: 0 auto;
  padding: 71.111px 0;
  border-radius: 53.333px;
  color: var(--cream);
  background: var(--orange);
}

.features h2 {
  color: var(--cream);
  font-weight: 800;
}

.feature-row {
  display: grid;
  grid-template-columns: 372px 271px;
  gap: 255px;
  align-items: center;
  justify-content: center;
  min-height: 533px;
}

.feature-row.reverse {
  grid-template-columns: 271px 372px;
}

.feature-row h3 {
  margin: 0 0 31.111px;
  font-size: 35.556px;
  font-weight: 800;
  line-height: 1.18;
}

.feature-row p {
  margin: 0 0 18px;
  font-size: 17.778px;
  font-weight: 600;
  line-height: 1.22;
}

.feature-phone {
  width: 271px;
}

.takeaways ul {
  margin: 0;
  padding-left: 27px;
  font-size: 17.778px;
  line-height: 1.45;
}

.takeaways li + li {
  margin-top: 22px;
}

.deck-preview {
  display: block;
  overflow: hidden;
  border-radius: 17.778px;
  box-shadow: 0 8.889px 44.444px #d9d9d9;
}

.deck-preview img {
  width: 585.778px;
  height: auto;
}

.other-section {
  text-align: center;
}

.other-grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 36px;
}

.work-card {
  padding: 13px;
  border-radius: 50px;
  text-align: left;
  background: #ffffff;
  box-shadow: 0 7px 17px rgba(217, 217, 217, 0.85);
}

.work-card img {
  width: 100%;
  height: 340px;
  border-radius: 40px;
  object-fit: cover;
}

.work-card h3 {
  margin: 20px 0 8px;
  font-size: 1.11rem;
}

.work-card p {
  min-height: 56px;
  margin: 0 0 8px;
  color: var(--muted);
  font-size: 0.9rem;
  line-height: 1.35;
}

.site-footer {
  padding: 44px 20px 18px;
  color: var(--muted);
  font-size: 18px;
  text-align: center;
}

.site-footer p {
  margin: 0;
}

@media (max-width: 1120px) {
  .home-nav {
    padding-inline: 40px;
  }

  .hero-grid,
  .overview-grid,
  .prototype-grid,
  .deck-grid {
    grid-template-columns: 1fr;
    gap: 42px;
  }

  .hero-copy,
  .hero-copy p {
    width: 100%;
  }

  .hero-phones {
    width: 520px;
    max-width: 100%;
    margin-inline: auto;
  }

  .overview-grid {
    justify-items: center;
  }

  .feature-row,
  .feature-row.reverse {
    grid-template-columns: 1fr 271px;
    gap: 80px;
  }
}

@media (max-width: 980px) {
  .home-nav {
    height: auto;
    padding: 12px 24px;
  }

  .project-back {
    top: 76px;
    left: 16px;
  }

  .brand {
    gap: 0;
  }

  .brand span {
    display: none;
  }

  .home-nav nav {
    display: flex;
    gap: 8px;
  }

  .home-nav nav a {
    width: 40px;
    height: 40px;
    border-radius: 50%;
    color: #666666;
    transition: background-color 180ms ease, color 180ms ease;
  }

  .home-nav nav a:hover,
  .home-nav nav a:focus-visible {
    background: rgba(0, 0, 0, 0.06);
    color: var(--ink);
  }

  .nav-label {
    display: none;
  }

  .nav-icon {
    display: block;
  }

  .hero-copy h1 {
    font-size: clamp(44px, 13vw, 64px);
  }

  .hero-copy {
    width: 100%;
    max-width: calc(100vw - 40px);
    min-width: 0;
  }

  .hero-copy p {
    width: 100% !important;
    inline-size: min(330px, calc(100vw - 40px)) !important;
    max-width: min(330px, calc(100vw - 40px));
    font-size: 18px;
    overflow-wrap: anywhere;
  }

  .hero-copy p strong {
    display: inline-block;
  }

  .hero-phones {
    height: 520px;
  }

  .hero-phone.left {
    left: -34px;
    top: 92px;
  }

  .hero-phone.right {
    right: -28px;
    left: auto;
    top: 6px;
  }

  .meta,
  .pain-grid,
  .impact-metrics,
  .other-grid {
    grid-template-columns: 1fr;
  }

  .phone-cluster {
    width: 100%;
    height: auto;
    display: grid;
    grid-template-columns: 1fr;
    justify-items: center;
    gap: 24px;
  }

  .phone-cluster .small,
  .phone-cluster .large {
    position: relative;
    inset: auto;
    width: min(290px, 82vw);
  }

  .prototype-grid,
  .deck-grid {
    justify-items: center;
  }

  .section-copy {
    width: 100%;
  }

  .features {
    border-radius: 36px;
  }

  .feature-row,
  .feature-row.reverse {
    grid-template-columns: 1fr;
    gap: 28px;
    min-height: auto;
    padding-block: 38px;
  }

  .feature-row.reverse .mock-phone {
    order: 2;
  }

  .feature-phone,
  .prototype-phone {
    width: min(271px, 78vw);
    justify-self: center;
  }

  .deck-preview img {
    width: 100%;
  }
}

@media (max-width: 480px) {
  .chart-card {
    transform: scale(0.86);
    transform-origin: top center;
    margin-block: -20px -22px;
  }
}

@media (max-width: 390px) {
  .chart-card {
    transform: scale(0.74);
    margin-block: -38px -42px;
  }
}
