.detail-page {
  min-height: 100vh;
  background:
    radial-gradient(circle at 6% 12%, rgba(255, 190, 202, .34), transparent 24rem),
    radial-gradient(circle at 94% 9%, rgba(142, 200, 243, .28), transparent 28rem),
    var(--paper);
}

.detail-page .desktop-nav a[aria-current="page"] {
  color: var(--ink);
}

.detail-page .desktop-nav a[aria-current="page"]::after {
  content: "";
  display: block;
  width: 20px;
  height: 3px;
  margin: 4px auto 0;
  border-radius: 999px;
  background: var(--coral);
}

.detail-main {
  padding-top: 52px;
}

.detail-hero {
  position: relative;
  width: min(1240px, calc(100% - 36px));
  min-height: 610px;
  margin: 0 auto 34px;
  padding: 72px 76px;
  display: grid;
  grid-template-columns: 1fr .82fr;
  align-items: center;
  gap: 64px;
  overflow: hidden;
  border: 1px solid rgba(255, 255, 255, .78);
  border-radius: 54px;
  box-shadow: var(--shadow);
}

.detail-hero::before,
.detail-hero::after {
  content: "";
  position: absolute;
  border-radius: 50%;
  pointer-events: none;
}

.detail-hero::before {
  width: 310px;
  height: 310px;
  right: -80px;
  top: -95px;
  background: rgba(255, 255, 255, .38);
}

.detail-hero::after {
  width: 190px;
  height: 190px;
  left: 45%;
  bottom: -105px;
  background: rgba(255, 255, 255, .28);
}

.detail-hero-features { background: linear-gradient(135deg, #fff0e8, #ffe8ed 48%, #e7f4ff); }
.detail-hero-ai { background: linear-gradient(135deg, #1c294d, #27335d 52%, #4b3767); color: #fff; }
.detail-hero-family { background: linear-gradient(135deg, #fff1e8, #fff4dc 48%, #e4f5ee); }
.detail-hero-privacy { background: linear-gradient(135deg, #eafaf4, #e8f5f4 48%, #edf1ff); }

.detail-hero-copy,
.detail-stage {
  position: relative;
  z-index: 2;
}

.detail-hero h1 {
  max-width: 710px;
  margin-bottom: 24px;
  font-size: clamp(3.6rem, 6vw, 6.5rem);
}

.detail-hero-copy > p:not(.eyebrow) {
  max-width: 610px;
  color: var(--ink-soft);
  font-size: 1.08rem;
}

.detail-hero-ai .detail-hero-copy > p:not(.eyebrow) { color: #cbd3e8; }
.detail-hero-ai .eyebrow { color: #ffb5c4; }

.detail-actions {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 12px;
  margin-top: 30px;
}

.detail-stage {
  min-height: 455px;
  display: grid;
  place-items: center;
}

.detail-device {
  position: relative;
  z-index: 2;
  width: min(310px, 80%);
  padding: 8px;
  overflow: hidden;
  border: 3px solid #20243b;
  border-radius: 39px;
  background: #20243b;
  box-shadow: 0 34px 65px rgba(23, 35, 71, .25);
  transform: rotate(3deg);
}

.detail-device img {
  width: 100%;
  border-radius: 29px;
}

.detail-stage-card {
  position: absolute;
  z-index: 3;
  min-width: 175px;
  padding: 15px 18px;
  border: 1px solid rgba(255, 255, 255, .8);
  border-radius: 20px;
  background: rgba(255, 255, 255, .9);
  color: var(--ink);
  box-shadow: 0 20px 42px rgba(23, 35, 71, .16);
  backdrop-filter: blur(14px);
}

.detail-stage-card strong,
.detail-stage-card small { display: block; }
.detail-stage-card strong { font-size: .88rem; }
.detail-stage-card small { margin-top: 3px; color: var(--ink-soft); font-size: .68rem; }
.detail-stage-card { left: -14px; top: 76px; transform: rotate(-4deg); }
.detail-stage-card:last-of-type { right: -10px; bottom: 72px; left: auto; top: auto; transform: rotate(4deg); }

.detail-summary {
  width: min(1160px, calc(100% - 36px));
  margin: 0 auto 100px;
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 14px;
}

.summary-card {
  min-height: 160px;
  padding: 25px;
  border: 1px solid var(--line);
  border-radius: 28px;
  background: rgba(255, 255, 255, .72);
  box-shadow: 0 14px 36px rgba(55, 48, 104, .07);
}

.summary-card span {
  display: grid;
  width: 38px;
  height: 38px;
  margin-bottom: 18px;
  place-items: center;
  border-radius: 13px;
  background: var(--cream);
  color: var(--coral-deep);
  font-family: var(--serif);
  font-weight: 700;
}

.summary-card strong,
.summary-card small { display: block; }
.summary-card strong { margin-bottom: 7px; font-size: .94rem; }
.summary-card small { color: var(--ink-soft); line-height: 1.5; }

.detail-section {
  width: min(1160px, calc(100% - 36px));
  margin: 0 auto 115px;
}

.detail-section-heading {
  max-width: 760px;
  margin-bottom: 44px;
}

.detail-section-heading h2 {
  font-size: clamp(3rem, 5vw, 5rem);
}

.detail-section-heading > p:last-child { color: var(--ink-soft); }

.detail-rows {
  display: grid;
  gap: 22px;
}

.detail-row {
  min-height: 410px;
  padding: 46px 54px;
  display: grid;
  grid-template-columns: 1fr .8fr;
  align-items: center;
  gap: 55px;
  overflow: hidden;
  border: 1px solid rgba(255, 255, 255, .8);
  border-radius: 42px;
  box-shadow: 0 22px 55px rgba(55, 48, 104, .09);
}

.detail-row:nth-child(even) { grid-template-columns: .8fr 1fr; }
.detail-row:nth-child(even) .detail-row-copy { order: 2; }
.detail-row-coral { background: linear-gradient(135deg, #fff5ed, #ffe7ec); }
.detail-row-mint { background: linear-gradient(135deg, #effbf6, #e3f4f0); }
.detail-row-blue { background: linear-gradient(135deg, #f1f7ff, #e8edff); }

.detail-row-copy h3 {
  margin: 0 0 13px;
  font-family: var(--serif);
  font-size: clamp(2.3rem, 4vw, 4rem);
  font-weight: 500;
  letter-spacing: -.04em;
  line-height: 1;
}

.detail-row-copy p { color: var(--ink-soft); }

.detail-row-media {
  max-height: 330px;
  overflow: hidden;
  border-radius: 29px;
  background: #fff;
  box-shadow: 0 18px 44px rgba(23, 35, 71, .14);
}

.detail-row-media img {
  width: 100%;
  object-fit: cover;
  object-position: top;
}

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

.assistant-card {
  position: relative;
  min-height: 355px;
  padding: 31px;
  overflow: hidden;
  border-radius: 34px;
  background: #fff;
  color: var(--ink);
  box-shadow: 0 20px 50px rgba(14, 21, 43, .13);
}

.assistant-card::after {
  content: "";
  position: absolute;
  width: 170px;
  height: 170px;
  right: -70px;
  bottom: -75px;
  border-radius: 50%;
  background: rgba(129, 117, 232, .12);
}

.assistant-card .card-index { color: var(--violet); font-family: var(--serif); font-size: 2rem; }
.assistant-card h3 { margin: 62px 0 12px; font-family: var(--serif); font-size: 2.15rem; font-weight: 500; line-height: 1; }
.assistant-card p { color: var(--ink-soft); }

.family-showcase {
  display: grid;
  grid-template-columns: .86fr 1.14fr;
  gap: 30px;
  align-items: stretch;
}

.family-showcase-photo,
.family-showcase-copy {
  min-height: 570px;
  overflow: hidden;
  border-radius: 44px;
  box-shadow: var(--shadow);
}

.family-showcase-photo img { width: 100%; height: 100%; object-fit: cover; }
.family-showcase-copy { padding: 58px; background: linear-gradient(145deg, #fff, #edf8f4); }
.family-showcase-copy h2 { font-size: clamp(3rem, 5vw, 5rem); }
.family-showcase-copy > p:not(.eyebrow) { color: var(--ink-soft); }

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

.privacy-card {
  min-height: 270px;
  padding: 34px;
  border: 1px solid rgba(44, 143, 126, .18);
  border-radius: 34px;
  background: rgba(255, 255, 255, .78);
}

.privacy-card:first-child { grid-column: 1 / -1; background: linear-gradient(135deg, #e9faf4, #edf5ff); }
.privacy-card h3 { margin-bottom: 10px; font-family: var(--serif); font-size: 2rem; font-weight: 500; }
.privacy-card p { color: var(--ink-soft); }

.detail-links {
  width: min(1160px, calc(100% - 36px));
  margin: 0 auto 80px;
  padding: 42px;
  border-radius: 38px;
  background: var(--ink);
  color: white;
}

.detail-links h2 { margin-bottom: 25px; font-size: clamp(2.4rem, 4vw, 4rem); }
.detail-link-grid { display: grid; grid-template-columns: repeat(4, 1fr); gap: 10px; }
.detail-link-grid a {
  padding: 19px;
  border: 1px solid rgba(255, 255, 255, .16);
  border-radius: 20px;
  color: #dbe1f2;
  font-weight: 800;
  text-decoration: none;
  transition: transform .2s ease, background .2s ease;
}
.detail-link-grid a:hover { transform: translateY(-2px); background: rgba(255, 255, 255, .1); }
.detail-link-grid a[aria-current="page"] { background: var(--coral); color: white; }

@media (max-width: 1000px) {
  .detail-page .site-header { flex-wrap: wrap; }
  .detail-page .desktop-nav {
    order: 3;
    width: 100%;
    display: flex;
    justify-content: center;
    gap: 22px;
    overflow-x: auto;
    padding: 5px 3px 1px;
  }
  .detail-main { padding-top: 30px; }
  .detail-hero { grid-template-columns: 1fr; padding: 60px 55px; text-align: center; }
  .detail-hero-copy > p:not(.eyebrow) { margin-left: auto; margin-right: auto; }
  .detail-actions { justify-content: center; }
  .detail-stage { width: min(560px, 100%); margin: auto; }
  .detail-summary { grid-template-columns: 1fr; }
  .summary-card { min-height: auto; }
  .detail-row, .detail-row:nth-child(even) { grid-template-columns: 1fr; }
  .detail-row:nth-child(even) .detail-row-copy { order: initial; }
  .assistant-grid { grid-template-columns: 1fr; }
  .assistant-card { min-height: 260px; }
  .assistant-card h3 { margin-top: 35px; }
  .family-showcase { grid-template-columns: 1fr; }
  .family-showcase-photo { min-height: 500px; }
}

@media (max-width: 720px) {
  .detail-page .site-header { padding-bottom: 8px; }
  .detail-page .desktop-nav { justify-content: flex-start; gap: 20px; }
  .detail-page .desktop-nav a { flex: 0 0 auto; }
  .detail-main { padding-top: 20px; }
  .detail-hero { width: calc(100% - 20px); min-height: auto; padding: 50px 21px 38px; gap: 25px; border-radius: 36px; }
  .detail-hero h1 { font-size: clamp(3.15rem, 15vw, 4.5rem); }
  .detail-hero-copy > p:not(.eyebrow) { font-size: .96rem; }
  .detail-stage { min-height: 400px; }
  .detail-device { width: 245px; }
  .detail-stage-card { min-width: 145px; padding: 12px 14px; }
  .detail-stage-card:first-of-type { left: -5px; top: 44px; }
  .detail-stage-card:last-of-type { right: -4px; bottom: 40px; }
  .detail-summary { width: calc(100% - 28px); margin-bottom: 82px; }
  .detail-section { width: calc(100% - 28px); margin-bottom: 88px; }
  .detail-row { min-height: auto; padding: 34px 23px; gap: 28px; border-radius: 31px; }
  .detail-row-media { max-height: 260px; }
  .assistant-card { padding: 26px; border-radius: 28px; }
  .family-showcase-photo, .family-showcase-copy { min-height: auto; border-radius: 32px; }
  .family-showcase-photo { aspect-ratio: 4 / 5; }
  .family-showcase-copy { padding: 38px 25px; }
  .privacy-grid { grid-template-columns: 1fr; }
  .privacy-card:first-child { grid-column: auto; }
  .privacy-card { min-height: auto; padding: 27px; border-radius: 28px; }
  .detail-links { width: calc(100% - 20px); padding: 34px 22px; border-radius: 32px; }
  .detail-link-grid { grid-template-columns: 1fr 1fr; }
}
