/* Reference-aligned homepage skin */
:root {
  --max: 1240px;
  --teal: #075954;
  --orange: #ff7416;
  --cream: #fff8f1;
  --ink: #26201e
}

body {
  background: #fff;
  color: var(--ink)
}

header {
  height: 64px;
  border-bottom: 1px solid #eee;
  background: rgba(255, 255, 255, .96)
}

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

.brand b {
  font-size: 22px
}

.nav-btn {
  padding: 9px 24px;
  background: linear-gradient(135deg, #ff8c22, #ff6710);
  box-shadow: 0 8px 18px rgba(255, 116, 22, .23)
}

/* Wide illustrated banner */
.hero {
  position: relative;
  display: block;
  max-width: 1240px;
  min-height: 0;
  height: 575px;
  margin: 0 auto;
  padding: 0;
  overflow: hidden;
  background: linear-gradient(100deg, #fff9f2 0%, #f9e8dd 46%, #f5e3dc 100%)
}

.hero:after {
  content: "";
  position: absolute;
  inset: 0;
  z-index: 2;
  pointer-events: none;
  background: linear-gradient(90deg, rgba(255, 250, 245, .98) 0%, rgba(255, 250, 245, .94) 27%, rgba(255, 250, 245, .44) 44%, transparent 65%)
}

.hero-copy {
  position: absolute;
  z-index: 5;
  left: 42px;
  top: 45px;
  width: 42%;
  padding-top: 116px;
  text-align: left
}

.hero-copy:before {
  content: "";
  position: absolute;
  left: -16px;
  top: -18px;
  width: 168px;
  height: 168px;
  background: url("images/logo-transparent.png") center/contain no-repeat
}

.hero .eyebrow {
  display: none
}

.hero h1 {
  max-width: 480px;
  margin: 0 0 12px;
  color: #2b211f;
  font-size: clamp(38px, 4.1vw, 58px);
  line-height: 1.12;
  letter-spacing: -.045em
}

.hero h1 .accent {
  color: inherit
}

.hero .lead {
  max-width: 390px;
  margin: 0 0 22px;
  color: #675853;
  font-size: 17px;
  line-height: 1.75
}

.hero .actions {
  justify-content: flex-start;
  gap: 10px
}

.hero .primary {
  min-width: 294px;
  min-height: 61px;
  border-radius: 30px;
  background: linear-gradient(135deg, #ff8c21, #ff6710);
  box-shadow: 0 15px 28px rgba(255, 116, 22, .24);
  font-size: 18px
}

.hero .primary b:before {
  /* content: "↓"; */
  display: inline-block;
  margin-right: 10px;
  font-size: 24px
}

.hero .secondary {
  display: none
}

.hero .trust {
  margin-top: 14px;
  justify-content: flex-start;
  gap: 8px
}

.hero .trust span {
    display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 10px 20px;
  background: linear-gradient(135deg, #FFF3EC, #FFE8DA);
  border: 1px solid rgba(232, 138, 84, 0.35);
  border-radius: 999px;
  font-size: 14px;
  font-weight: 700;
  color: #C75B3E;
  box-shadow: 0 4px 12px rgba(232, 138, 84, 0.12);
  transition: all 0.3s;
}

.hero .trust span:before {
  color: #111
}
.hero .trust span:hover {
  transform: translateY(-2px);
  background: linear-gradient(135deg, #FFE8DA, #FFD9C4);
  box-shadow: 0 8px 20px rgba(232, 138, 84, 0.22);
}
.hero-art {
  position: absolute;
  z-index: 1;
  right: 0;
  top: 0;
  width: 76%;
  height: 100%;
  margin: 0
}

.hero-art figure {
  border: 0;
  border-radius: 0;
  box-shadow: none
}

.hero-main {
  left: 0;
  right: auto;
  top: 0;
  width: 74%;
  height: 100%
}

.hero-main img {
  object-position: center 34%
}

.hero-side {
  left: auto;
  right: -1%;
  bottom: 0;
  width: 41%;
  height: 68%;
  background: #f4e3da
}

.hero-side img {
  object-position: center 12%
}

.chat-bubble {
  display: none
}

/* Reference starts cards immediately below the banner */
.value-grid {
  display: none
}

.roles {
  max-width: 1240px;
  padding: 22px 28px 42px
}

.section-head {
  margin-bottom: 18px
}

.section-head .eyebrow {
  display: none
}

.section-head h2 {
  font-size: 28px
}

.roles .section-head h2:before {
  content: "🔥";
  margin-right: 8px
}

.section-head>p:last-child {
  display: none
}

.role-grid {
  grid-template-columns: repeat(5, minmax(0, 1fr));
  gap: 12px
}

.role-card {
  height: 318px;
  border: 1px solid #e9e5e1;
  border-radius: 10px;
  background: #fff;
  box-shadow: 0 7px 21px rgba(35, 28, 22, .09)
}

.role-card:after {
  display: none
}

.role-card img {
  height: 242px;
  object-position: center 22%
}

.role-card div {
  left: 0;
  right: 0;
  bottom: 0;
  height: 76px;
  padding: 9px 13px;
  color: #292321;
  background: #fff
}

.role-card h3 {
  font-size: 16px;
  line-height: 1.4
}

.role-card p {
  margin-top: 2px;
  color: #8a827d;
  font-size: 12px
}

.role-card div:after {
  content: "♡";
  position: absolute;
  right: 12px;
  top: 7px;
  color: #ff6c51;
  font-size: 24px
}

/* Dual-device feature stage */
.feature {
  position: relative;
  max-width: 1240px;
  min-height: 520px;
  padding: 28px 34px 40px;
  grid-template-columns: 1.25fr .75fr;
  gap: 34px;
  overflow: hidden;
  background: radial-gradient(circle at 50% 50%, #fff 0, #f7f4ef 58%, #eeeae5 100%)
}

.feature:before {
  content: "沉浸式对话";
  position: absolute;
  left: 34px;
  top: 88px;
  color: #27221f;
  font-size: 27px;
  font-weight: 900
}

.feature:after {
  content: "分享每一次心动 · 走进专属剧情";
  position: absolute;
  left: 34px;
  top: 135px;
  width: 210px;
  color: #807872;
  font-size: 16px;
  line-height: 1.8
}

.phones {
  height: 470px;
  margin-left: 145px
}

.phone {
  border: 4px solid #161817;
  border-radius: 26px
}

.phone.front {
  right: 10%;
  top: 4px;
  width: 245px;
  height: 445px;
  transform: rotate(6deg)
}

.phone.back {
  left: 5%;
  bottom: 0;
  width: 235px;
  height: 425px;
  transform: rotate(-7deg);
  opacity: 1
}

.feature-copy {
  position: relative;
  z-index: 3;
  padding: 25px 0
}

.feature-copy .eyebrow {
  display: none
}

.feature-copy h2 {
  font-size: 31px
}

.feature-copy h2:before {
  content: "▶";
  display: inline-grid;
  place-items: center;
  width: 44px;
  height: 44px;
  margin-right: 10px;
  border-radius: 12px;
  background: var(--orange);
  color: #fff;
  font-size: 20px;
  vertical-align: middle
}

.feature-copy>p {
  font-size: 15px
}

.feature-copy li {
  padding: 10px 0
}

.feature-copy li b {
  color: var(--orange)
}

/* Four story cards */
.stories {
  max-width: none;
  padding: 30px 24px 48px;
  background: #fff;
  color: var(--ink)
}

.stories>* {
  max-width: 1172px
}

.stories .section-head {
  margin-bottom: 16px;
  text-align: left
}

.stories .section-head h2 {
  font-size: 28px
}

.stories .section-head h2:before {
  content: "📖";
  margin-right: 8px
}

.story-tabs {
  justify-content: flex-end;
  margin: -52px auto 18px
}

.story-tabs button {
  border-color: #e4ded8;
  background: #fff;
  color: #655e58
}

.story-tabs button:hover,
.story-tabs button.active {
  background: var(--orange);
  border-color: var(--orange);
  color: #fff
}

.story-grid {
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 10px
}

.story-grid article {
  position: relative;
  min-height: 180px;
  padding: 0;
  overflow: hidden;
  border: 0;
  border-radius: 10px;
  background: #222
}

.story-grid article:hover {
  background: #222
}

.story-grid article:after {
  content: "";
  position: absolute;
  inset: 30% 0 0;
  background: linear-gradient(transparent, rgba(0, 0, 0, .78))
}

.story-grid img {
  height: 180px;
  aspect-ratio: auto;
  border-radius: 0
}

.story-grid h3,
.story-grid p {
  position: absolute;
  z-index: 2;
  left: 14px;
  color: #fff
}

.story-grid h3 {
  bottom: 26px;
  margin: 0
}

.story-grid p {
  bottom: 7px;
  margin: 0;
  color: #eee
}

.custom,
.download {
  display: none
}

.faq {
  padding-top: 55px
}

.faq .section-head h2:before {
  content: "?";
  display: inline-grid;
  place-items: center;
  width: 34px;
  height: 34px;
  margin-right: 10px;
  border-radius: 50%;
  background: var(--orange);
  color: #fff;
  font-size: 23px;
  vertical-align: 4px
}

footer {
  padding-bottom: 70px
}

@media(max-width:1000px) {
  header {
    padding-left: 20px;
    padding-right: 20px
  }

  .hero {
    height: 555px
  }

  .hero-copy {
    left: 30px;
    width: 48%
  }

  .hero-art {
    width: 73%
  }

  .hero-main {
    width: 82%
  }

  .hero-side {
    width: 43%
  }

  .role-grid {
    grid-template-columns: repeat(5, 220px);
    overflow-x: auto;
    padding: 2px 2px 18px;
    scroll-snap-type: x mandatory;
    scrollbar-width: none
  }

  .role-grid::-webkit-scrollbar {
    display: none
  }

  .role-card {
    scroll-snap-align: start
  }

  .feature {
    grid-template-columns: 1fr 1fr
  }

  .phones {
    margin-left: 90px
  }

  .phone.front {
    right: 2%
  }

  .phone.back {
    left: 0
  }

  .story-grid {
    grid-template-columns: repeat(4, 260px);
    overflow-x: auto;
    padding-bottom: 12px;
    scroll-snap-type: x mandatory;
    scrollbar-width: none
  }

  .story-grid::-webkit-scrollbar {
    display: none
  }

  .story-grid article {
    scroll-snap-align: start
  }
}

@media(max-width:760px) {
  header {
    height: 60px
  }

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

  .brand b {
    font-size: 20px
  }

  .hero {
    height: auto;
    min-height: 680px;
    padding: 0
  }

  .hero:after {
    background: linear-gradient(180deg, rgba(255, 250, 245, .96) 0%, rgba(255, 250, 245, .88) 42%, rgba(255, 250, 245, .12) 67%, rgba(255, 250, 245, .1) 100%)
  }

  .hero-copy {
    position: relative;
    left: auto;
    top: auto;
    width: auto;
    padding: 122px 20px 0;
    text-align: center
  }

  .hero-copy:before {
    left: 50%;
    top: -5px;
    width: 140px;
    height: 140px;
    transform: translateX(-50%)
  }

  .hero h1 {
    max-width: none;
    font-size: 38px
  }

  .hero .lead {
    max-width: 520px;
    margin-left: auto;
    margin-right: auto;
    font-size: 15px
  }

  .hero .actions,
  .hero .trust {
    justify-content: center
  }

  .hero-art {
    position: absolute;
    left: 0;
    right: 0;
    top: 310px;
    width: 100%;
    height: 370px
  }

  .hero-main {
    left: 0;
    width: 78%;
    height: 100%
  }

  .hero-main img {
    object-position: center 25%
  }

  .hero-side {
    right: 0;
    width: 42%;
    height: 66%
  }

  .roles {
    padding: 28px 16px 40px
  }

  .feature {
    min-height: auto;
    padding: 65px 16px 36px;
    display: flex;
    flex-direction: column
  }

  .feature:before {
    left: 18px;
    top: 22px;
    font-size: 24px
  }

  .feature:after {
    display: none
  }

  .phones {
    order: 1;
    width: 100%;
    height: 430px;
    margin: 0
  }

  .feature-copy {
    order: 2;
    padding: 0
  }

  .phone.front {
    right: 8%;
    width: 225px;
    height: 405px
  }

  .phone.back {
    left: 7%;
    width: 215px;
    height: 390px
  }

  .stories {
    padding: 30px 16px 44px
  }

  .story-tabs {
    justify-content: flex-start;
    margin: 0 0 18px;
    overflow-x: auto;
    flex-wrap: nowrap
  }

  .faq {
    padding: 55px 17px 65px
  }
}

@media(max-width:460px) {
  .brand b {
    display: none
  }

  .hero {
    min-height: 630px
  }

  .hero-copy {
    padding-top: 105px
  }

  .hero-copy:before {
    width: 120px;
    height: 120px
  }

  .hero h1 {
    font-size: 32px
  }

  .hero .lead {
    margin-bottom: 16px;
    line-height: 1.6
  }

  .hero .primary {
    width: 100%;
    min-width: 0
  }

  .hero .trust {
    gap: 6px
  }

  .hero .trust span {
    min-width: 0;
    flex: 1;
    padding: 6px 5px
  }

  .hero-art {
    top: 300px;
    height: 330px
  }

  .hero-main {
    width: 83%
  }

  .hero-side {
    width: 44%;
    height: 62%
  }

  .section-head h2,
  .stories .section-head h2 {
    font-size: 24px
  }

  .role-grid {
    grid-template-columns: repeat(5, 190px)
  }

  .role-card {
    height: 286px
  }

  .role-card img {
    height: 215px
  }

  .role-card div {
    height: 71px
  }

  .phones {
    height: 380px
  }

  .phone.front {
    right: 1%;
    width: 195px;
    height: 355px
  }

  .phone.back {
    left: 1%;
    width: 190px;
    height: 345px
  }

  .feature-copy h2 {
    font-size: 26px
  }

  .story-grid {
    grid-template-columns: repeat(4, 235px)
  }

  .mobile-download {
    background: linear-gradient(135deg, #ff8c21, #ff6710);
    box-shadow: 0 14px 36px rgba(255, 116, 22, .33)
  }
}

/* v2 — tighter reconstruction of the supplied reference */
.hero {
  height: 575px;
  isolation: isolate;
  background: #f6e9df
}

.hero:before {
  content: "";
  position: absolute;
  inset: 0;
  z-index: 0;
  background: radial-gradient(circle at 58% 42%, rgba(255, 255, 255, .22), transparent 38%), linear-gradient(105deg, #fffaf5 0 32%, #f4e5dc 58%, #ead9d3 100%)
}

.hero:after {
  z-index: 3;
  background: linear-gradient(90deg, #fffaf5 0%, rgba(255, 250, 245, .98) 25%, rgba(255, 250, 245, .71) 36%, rgba(255, 250, 245, .12) 55%, transparent 73%)
}

.hero-copy {
  z-index: 6;
  left: 42px;
  top: 34px;
  width: 43%;
  padding-top: 150px
}

.hero-copy:before {
  left: -9px;
  top: -6px;
  width: 182px;
  height: 182px
}

.hero h1 {
  max-width: 510px;
  font-size: 47px;
  line-height: 1.16;
  white-space: nowrap
}

.hero .lead {
  font-family: "KaiTi", "STKaiti", serif;
  font-size: 24px;
  color: #725e58;
  letter-spacing: .08em
}

.hero-art {
  z-index: 1;
  right: 0;
  width: 76%;
  overflow: hidden
}

.hero-art:before {
  content: "更真实的陪伴\A更心动的体验 ♡";
white-space: pre;
position: absolute;
z-index: 4;
right: 72px;
top: 33px;
font-family: "KaiTi", "STKaiti", "Kaiti SC", serif;
font-size: 26px;
font-weight: 700;
line-height: 1.5;
letter-spacing: 2px;
text-align: center;
color: #d66f68;
transform: rotate(-5deg);
-webkit-text-stroke: 3px #fff;
paint-order: stroke fill;

text-shadow:
  0 2px 0 rgba(255, 255, 255, 0.9),
  0 6px 14px rgba(0, 0, 0, 0.18),
  0 0 24px rgba(214, 111, 104, 0.35);
}

.hero-art:after {
  content: "";
  position: absolute;
  z-index: 3;
  inset: 0;
  background: linear-gradient(90deg, rgba(248, 237, 229, .72), transparent 28%), linear-gradient(180deg, transparent 75%, rgba(248, 238, 231, .23))
}

.hero-main {
  z-index: 1;
  left: 4%;
  width: 100%;
  height: 100%
}

.hero-main img {
  object-position: 49% 32%;
  filter: saturate(.9) contrast(.98)
}

.hero-side {
  z-index: 2;
  right: -2%;
  bottom: 0;
  width: 39%;
  height: 72%;
  background: transparent
}

.hero-side img {
  object-position: center 8%;
  filter: saturate(.93)
}

.roles {
  padding-top: 22px
}

.roles .section-head {
  margin-bottom: 12px
}

.roles .section-head h2 {
  font-size: 27px
}

.role-card {
  height: 318px
}

.role-card img {
  height: 242px;
  object-fit: cover
}

.role-cool img {
  width: 200%;
  max-width: none;
  object-position: 18% 18%;
  transform: none
}

.role-sunny img {
  width: 200%;
  max-width: none;
  margin-left: -100%;
  object-position: 82% 18%;
  transform: none
}

.role-gentle img {
  object-position: center 28%
}

.role-saint img {
  object-position: center 12%
}

.role-youth img {
  object-position: center 24%
}

.role-card:hover img {
  transform: scale(1.025)
}

.role-cool:hover img {
  transform: scale(1.025);
  transform-origin: 25% center
}

.role-sunny:hover img {
  transform: scale(1.025);
  transform-origin: 75% center
}

.feature {
  display: grid;
  grid-template-columns: 1fr 1.65fr 1fr;
  align-items: center;
  gap: 20px;
  min-height: 500px;
  padding: 28px 34px 24px;
  background: radial-gradient(ellipse at center, #fff 0, #f7f4ef 55%, #eeebe6 100%)
}

.feature:before,
.feature:after {
  display: none
}

.feature-note {
  position: relative;
  z-index: 3
}

.feature-note h2 {
  margin: 0 0 10px;
  font-size: 28px;
  line-height: 1.2
}

.feature-note p {
  margin: 0;
  color: #78716c;
  font-size: 17px;
  line-height: 1.75
}

.feature-note>span {
  display: inline-grid;
  place-items: center;
  width: 46px;
  height: 46px;
  margin-bottom: 14px;
  border-radius: 14px;
  background: linear-gradient(145deg, #ff8c22, #ff6710);
  color: #fff;
  font-size: 19px;
  font-weight: 900
}

.feature-note-left {
  text-align: left
}

.feature-note-left>span {
  font-size: 23px;
  letter-spacing: -2px
}

.feature-copy {
  padding: 0;
  text-align: right
}

.feature-copy>span {
  margin-left: auto
}

.feature-copy h2:before {
  display: none
}

.feature-copy ul {
  margin: 21px 0 0;
  padding: 0;
  list-style: none
}

.feature-copy li {
  display: block;
  border-top: 1px solid #ddd5cd;
  padding: 9px 0
}

.feature-copy li b,
.feature-copy li span {
  display: block
}

.feature-copy li b {
  font-size: 14px
}

.feature-copy li span {
  font-size: 12px;
  color: #8a827d
}

.phones {
  width: 100%;
  height: 460px;
  margin: 0
}

.phone.front {
  right: 7%;
  top: 8px;
  width: 245px;
  height: 438px;
  transform: rotate(6deg)
}

.phone.back {
  left: 7%;
  bottom: 2px;
  width: 235px;
  height: 422px;
  transform: rotate(-7deg)
}

@media(max-width:1000px) {
  .hero h1 {
    font-size: 42px
  }

  .hero-art:before {
    right: 28px
  }

  .feature {
    grid-template-columns: .8fr 1.7fr .8fr;
    padding-left: 24px;
    padding-right: 24px
  }

  .feature-note h2 {
    font-size: 23px
  }

  .feature-note p {
    font-size: 15px
  }

  .phone.front {
    right: 1%
  }

  .phone.back {
    left: 1%
  }
}

@media(max-width:760px) {
  .hero {
    min-height: 690px;
    height: auto
  }

  .hero:after {
    background: linear-gradient(180deg, #fffaf5 0%, rgba(255, 250, 245, .95) 39%, rgba(255, 250, 245, .18) 60%, rgba(255, 250, 245, .04) 100%)
  }

  .hero-copy {
    left: auto;
    top: auto;
    width: auto;
    padding: 127px 18px 0
  }

  .hero-copy:before {
    left: 50%;
    top: -7px;
    width: 145px;
    height: 145px
  }

  .hero h1 {
    font-size: 36px;
    white-space: normal
  }

  .hero .lead {
    font-size: 19px
  }

  .hero-art {
    top: 315px;
    width: 100%;
    height: 375px
  }

  .hero-art:before {
    right: 16px;
    top: 18px;
    font-size: 16px
  }

  .hero-main {
    left: 0;
    width: 80%
  }

  .hero-side {
    width: 42%;
    height: 66%
  }

  .feature {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 18px;
    padding: 30px 16px 34px
  }

  .feature-note-left {
    grid-column: 1
  }

  .feature-copy {
    grid-column: 2;
    text-align: right
  }

  .feature-copy>span {
    margin-left: auto
  }

  .phones {
    grid-column: 1/-1;
    grid-row: 2;
    order: initial;
    height: 430px;
    max-width: 520px
  }

  .feature-note h2 {
    font-size: 22px
  }

  .feature-note p {
    font-size: 14px
  }

  .feature-copy ul {
    display: none
  }

  .phone.front {
    right: 8%;
    width: 225px;
    height: 405px
  }

  .phone.back {
    left: 8%;
    width: 215px;
    height: 390px
  }
}

@media(max-width:460px) {
  .hero {
    min-height: 640px
  }

  .hero-copy {
    padding-top: 110px
  }

  .hero h1 {
    font-size: 31px
  }

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

  .hero-art {
    top: 300px;
    height: 340px
  }

  .hero-art:before {
    display: none
  }

  .hero-main {
    width: 84%
  }

  .hero-side {
    width: 45%;
    height: 62%
  }

  .role-grid {
    grid-template-columns: repeat(5, 190px)
  }

  .role-card {
    height: 286px
  }

  .role-card img {
    height: 215px
  }

  .feature {
    padding-left: 12px;
    padding-right: 12px
  }

  .feature-note>span {
    width: 39px;
    height: 39px;
    margin-bottom: 9px
  }

  .feature-note h2 {
    font-size: 20px
  }

  .feature-note p {
    font-size: 13px
  }

  .phones {
    height: 375px
  }

  .phone.front {
    right: 0;
    width: 195px;
    height: 355px
  }

  .phone.back {
    left: 0;
    width: 190px;
    height: 345px
  }
}

/* v3 — complete desktop / tablet / mobile / small-screen adaptation */
html,
body {
  width: 100%;
  max-width: 100%;
  overflow-x: hidden
}

header,
.hero,
.roles,
.feature,
.faq,
footer {
  width: 100%
}

.hero-art,
.hero-art figure,
.phones,
.phone,
.role-card,
.story-grid article {
  min-width: 0
}

/* Large desktop: preserve the reference proportions without over-stretching */
@media(min-width:1280px) {
  header {
    padding-left: max(32px, calc((100% - 1240px)/2));
    padding-right: max(32px, calc((100% - 1240px)/2))
  }

  .hero {
    border-radius: 0 0 18px 18px
  }

  .roles {
    padding-left: 28px;
    padding-right: 28px
  }

  .feature {
    border-radius: 18px
  }
}

/* Laptop and landscape tablet */
@media(min-width:761px) and (max-width:1100px) {
  header {
    gap: 22px
  }

  nav {
    gap: 18px
  }

  .hero {
    height: 520px
  }

  .hero-copy {
    left: 28px;
    top: 24px;
    width: 49%;
    padding-top: 136px
  }

  .hero-copy:before {
    width: 164px;
    height: 164px
  }

  .hero h1 {
    font-size: 38px;
    white-space: normal
  }

  .hero .lead {
    font-size: 20px
  }

  .hero .primary {
    min-width: 250px
  }

  .hero-art {
    width: 72%
  }

  .hero-main {
    left: 0;
    width: 80%
  }

  .hero-side {
    width: 43%;
    height: 68%
  }

  .hero-art:before {
    right: 20px;
    top: 24px;
    font-size: 16px
  }

  .roles {
    padding-left: 22px;
    padding-right: 22px
  }

  .role-grid {
    grid-template-columns: repeat(3, minmax(0, 1fr));
    overflow: visible
  }

  .role-card {
    height: 310px
  }

  .role-card:nth-child(4),
  .role-card:nth-child(5) {
    height: 300px
  }

  .role-card img {
    height: 234px
  }

  .role-card:nth-child(4) img,
  .role-card:nth-child(5) img {
    height: 224px
  }

  .feature {
    grid-template-columns: .86fr 1.45fr .86fr;
    gap: 12px;
    min-height: 470px
  }

  .phones {
    height: 430px
  }

  .phone.front {
    width: 220px;
    height: 400px
  }

  .phone.back {
    width: 210px;
    height: 380px
  }

  .feature-note h2 {
    font-size: 22px
  }

  .feature-note p {
    font-size: 14px
  }

  .story-grid {
    grid-template-columns: repeat(2, minmax(0, 1fr));
    overflow: visible
  }

  .story-grid article,
  .story-grid img {
    height: 220px
  }

  .story-grid article {
    min-height: 220px
  }
}

/* Portrait tablet */
@media(min-width:601px) and (max-width:760px) {
  header {
    padding-left: 18px;
    padding-right: 18px
  }

  .hero {
    min-height: 700px
  }

  .hero-copy {
    padding-left: 28px;
    padding-right: 28px
  }

  .hero-art {
    top: 320px;
    height: 380px
  }

  .hero-main {
    width: 78%
  }

  .hero-side {
    width: 43%
  }

  .roles {
    padding-left: 22px;
    padding-right: 22px
  }

  .role-grid {
    grid-template-columns: repeat(2, minmax(0, 1fr));
    overflow: visible
  }

  .role-card {
    height: 330px
  }

  .role-card:last-child {
    grid-column: 1/-1;
    max-width: calc(50% - 6px);
    width: 100%;
    justify-self: center
  }

  .role-card img {
    height: 252px
  }

  .role-card div {
    height: 78px
  }

  .feature {
    grid-template-columns: 1fr 1fr;
    padding-left: 22px;
    padding-right: 22px
  }

  .phones {
    height: 440px
  }

  .phone.front {
    right: 10%;
    width: 230px;
    height: 415px
  }

  .phone.back {
    left: 10%;
    width: 220px;
    height: 400px
  }

  .story-grid {
    grid-template-columns: repeat(2, minmax(0, 1fr));
    overflow: visible
  }

  .story-grid article,
  .story-grid img {
    height: 210px
  }

  .story-grid article {
    min-height: 210px
  }
}

/* Phones: no clipped horizontal cards; two-column content */
@media(max-width:600px) {
  body {
    padding-bottom: 78px
  }

  header {
    padding: 0 14px
  }

  .hero {
    min-height: 630px
  }

  .hero-copy {
    padding-left: 16px;
    padding-right: 16px
  }

  .hero h1 {
    font-size: clamp(29px, 8.5vw, 36px)
  }

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

  .hero .trust {
    width: 100%;
    max-width: 420px;
    margin-left: auto;
    margin-right: auto
  }

  .hero-art {
    top: 295px;
    height: 335px
  }

  .hero-main {
    /* left: -4%; */
    width: 100%
  }

  .hero-side {
    right: -5%;
    width: 49%;
    height: 63%
  }

  .roles {
    padding: 28px 14px 38px
  }

  .role-grid {
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 10px;
    overflow: visible;
    padding: 0
  }

  .role-card,
  .role-card:last-child {
    width: auto;
    height: 280px;
    grid-column: auto
  }

  .role-card:last-child {
    grid-column: 1/-1;
    width: calc(50% - 5px);
    justify-self: center
  }

  .role-card img {
    height: 210px
  }

  .role-card div {
    height: 70px;
    padding: 8px 10px
  }

  .role-card h3 {
    font-size: 15px
  }

  .role-card p {
    padding-right: 18px;
    overflow: hidden;
    text-overflow: ellipsis;
    white-space: nowrap
  }

  .feature {
    padding: 27px 14px 34px
  }

  .feature-note h2 {
    font-size: 20px
  }

  .feature-note p {
    font-size: 13px;
    line-height: 1.6
  }

  .phones {
    height: 365px
  }

  .phone.front {
    right: 1%;
    width: 190px;
    height: 345px
  }

  .phone.back {
    left: 1%;
    width: 185px;
    height: 335px
  }

  .stories {
    padding-left: 14px;
    padding-right: 14px
  }

  .story-grid {
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 10px;
    overflow: visible
  }

  .story-grid article,
  .story-grid img {
    height: 170px
  }

  .story-grid article {
    min-height: 170px
  }

  .story-grid h3 {
    font-size: 15px
  }

  .story-grid p {
    font-size: 12px
  }

  .faq {
    padding-left: 16px;
    padding-right: 16px
  }

  summary {
    min-height: 56px;
    align-items: center;
    padding: 17px 2px
  }

  .mobile-download {
    left: 10px;
    right: 10px;
    bottom: max(8px, env(safe-area-inset-bottom))
  }
}

/* Narrow phones */
@media(max-width:390px) {
  .hero {
    min-height: 600px
  }

  .hero-copy {
    padding-top: 100px
  }

  .hero-copy:before {
    width: 112px;
    height: 112px
  }

  .hero h1 {
    font-size: 28px
  }

  .hero .lead {
    font-size: 16px
  }

  .hero .trust span {
    font-size: 11px
  }

  .hero-art {
    top: 285px;
    height: 315px
  }

  .hero-main {
    left: -8%;
    width: 94%
  }

  .hero-side {
    right: -8%;
    width: 52%;
    height: 60%
  }

  .roles {
    padding-left: 12px;
    padding-right: 12px
  }

  .role-card,
  .role-card:last-child {
    height: 255px
  }

  .role-card img {
    height: 187px
  }

  .role-card div {
    height: 68px
  }

  .role-card h3 {
    font-size: 14px
  }

  .role-card p {
    font-size: 11px
  }

  .feature {
    padding-left: 10px;
    padding-right: 10px
  }

  .feature-note>span {
    width: 36px;
    height: 36px
  }

  .feature-note h2 {
    font-size: 18px
  }

  .feature-note p {
    font-size: 12px
  }

  .phones {
    height: 330px
  }

  .phone.front {
    width: 170px;
    height: 312px
  }

  .phone.back {
    width: 165px;
    height: 300px
  }

  .story-grid {
    grid-template-columns: 1fr
  }

  .story-grid article,
  .story-grid img {
    height: 190px
  }

  .story-grid article {
    min-height: 190px
  }
}

/* Very small devices */
@media(max-width:340px) {
  .hero {
    min-height: 580px
  }

  .hero h1 {
    font-size: 25px
  }

  .hero .lead {
    font-size: 15px
  }

  .hero .trust {
    display: none
  }

  .hero-art {
    top: 260px;
    height: 320px
  }

  .role-grid {
    grid-template-columns: 1fr
  }

  .role-card,
  .role-card:last-child {
    grid-column: auto;
    width: 100%;
    height: 330px
  }

  .role-card img {
    height: 255px
  }

  .role-card div {
    height: 75px
  }

  .feature {
    display: block
  }

  .feature-note {
    margin-bottom: 18px
  }

  .feature-copy {
    text-align: left
  }

  .feature-copy>span {
    margin-left: 0
  }

  .phones {
    height: 300px
  }

  .phone.front {
    right: 0;
    width: 155px;
    height: 285px
  }

  .phone.back {
    left: 0;
    width: 150px;
    height: 275px
  }
}

.capabilities,
.install {
  max-width: 1240px;
  margin: 0 auto;
  padding: 52px 28px 72px
}

.capabilities .section-head,
.install .section-head {
  margin-bottom: 26px
}

.capabilities .section-head>p:last-child,
.install .section-head>p:last-child {
  display: block
}

.capability-grid {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 14px
}

.capability-card {
  position: relative;
  min-height: 210px;
  padding: 26px 22px;
  border: 1px solid #ece4dc;
  border-radius: 16px;
  background: linear-gradient(145deg, #fff, #fff8f1);
  box-shadow: 0 10px 28px rgba(58, 42, 30, .06);
  overflow: hidden
}

.capability-card:after {
  content: "";
  position: absolute;
  right: -28px;
  bottom: -38px;
  width: 112px;
  height: 112px;
  border-radius: 50%;
  background: rgba(255, 116, 22, .08)
}

.capability-card>span {
  display: inline-grid;
  place-items: center;
  width: 42px;
  height: 42px;
  margin-bottom: 20px;
  border-radius: 12px;
  background: #075954;
  color: #fff;
  font-size: 13px;
  font-weight: 900
}

.capability-card h3 {
  position: relative;
  z-index: 1;
  margin: 0 0 9px;
  font-size: 19px;
  line-height: 1.4
}

.capability-card p {
  position: relative;
  z-index: 1;
  margin: 0;
  color: #756e68;
  font-size: 14px;
  line-height: 1.75
}

@media(max-width:600px) {
  .capability-grid {
    grid-template-columns: 1fr
  }

  .capability-card {
    min-height: 0;
    padding: 22px 20px
  }

  .capability-card>span {
    margin-bottom: 14px
  }

  .install-download {
    width: 100%;
    min-width: 0
  }
}
.install {
  max-width: none;
  padding-top: 68px;
  padding-bottom: 74px;
  background: linear-gradient(135deg, #075954, #0b6a63);
  color: #fff
}

.install>* {
  max-width: 1184px;
  margin-left: auto;
  margin-right: auto
}

.install .section-head>p:last-child {
  color: #c9ddda
}

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

.install-step {
  display: flex;
  align-items: flex-start;
  gap: 16px;
  min-height: 150px;
  padding: 25px 23px;
  border: 1px solid rgba(255, 255, 255, .16);
  border-radius: 16px;
  background: rgba(255, 255, 255, .08);
  box-shadow: 0 14px 34px rgba(0, 0, 0, .08)
}

.install-step>span {
  display: grid;
  place-items: center;
  flex: 0 0 42px;
  width: 42px;
  height: 42px;
  border-radius: 50%;
  background: #ff7416;
  color: #fff;
  font-size: 18px;
  font-weight: 900
}

.install-step h3 {
  margin: 1px 0 7px;
  font-size: 19px
}

.install-step p {
  margin: 0;
  color: #d5e4e2;
  font-size: 14px;
  line-height: 1.7
}

.install-download {
  width: max-content;
  min-width: 250px;
  margin: 26px auto 0;
  background: linear-gradient(135deg, #ff8c21, #ff6710);
  box-shadow: 0 14px 30px rgba(0, 0, 0, .16)
}

@media(max-width:1100px) {
  .capability-grid {
    grid-template-columns: repeat(2, minmax(0, 1fr))
  }

  .capability-card {
    min-height: 190px
  }

  .install {
    padding-left: 22px;
    padding-right: 22px
  }
}

@media(max-width:760px) {
  .capabilities {
    padding: 44px 18px 58px
  }

  .install {
    padding: 56px 18px 64px
  }

  .install-grid {
    grid-template-columns: 1fr;
    gap: 12px
  }

  .install-step {
    min-height: 0
  }
}

@media(max-width:600px) {
  .capability-grid {
    grid-template-columns: 1fr
  }

  .capability-card {
    min-height: 0;
    padding: 22px 20px
  }

  .capability-card>span {
    margin-bottom: 14px
  }

  .install-download {
    width: 100%;
    min-width: 0
  }
}

@media(max-width:390px) {
  .capabilities {
    padding-left: 14px;
    padding-right: 14px
  }

  .install {
    padding-left: 14px;
    padding-right: 14px
  }

  .install-step {
    padding: 20px 16px
  }

  .install-step>span {
    flex-basis: 38px;
    width: 38px;
    height: 38px
  }

  .install-step h3 {
    font-size: 17px
  }
}