.home {
  --paper: #faf8f4;
  --warm-white: #fffdf9;
  --home-gutter: clamp(20px, 5.3vw, 80px);
  --home-radius: clamp(22px, 2.6vw, 38px);
  --home-rule: #ded7cc;
  background: var(--paper);
  overflow-x: clip;
}

.home :focus-visible {
  outline: 2px solid #a54122;
  outline-offset: 5px;
}

.home [id] {
  scroll-margin-top: 72px;
}

.home .hero {
  background: var(--bg);
}

.home .hero-media img {
  will-change: auto;
  transform: translateY(var(--hero-shift, 0px)) scale(var(--hero-zoom, 1));
  transition: none;
}

.home .hero .scroll-hint {
  z-index: 2;
}

.home-shell {
  width: min(100%, 1224px);
  margin-inline: auto;
}

.home-band {
  padding: clamp(68px, 8.4vw, 124px) var(--home-gutter);
}

.home-band h2 {
  font-size: clamp(36px, 4.35vw, 65px);
  line-height: 1.13;
  letter-spacing: -.045em;
  word-break: normal;
}

.feature-copy {
  min-width: 0;
  max-width: 440px;
}

.feature-label {
  margin-bottom: 16px;
  color: #9c462d;
  font-size: 15px;
  font-weight: 650;
  letter-spacing: .03em;
}

.feature-lead {
  max-width: 28em;
  margin-top: 20px;
  color: #534d44;
  font-size: clamp(16px, 1.5vw, 19px);
  line-height: 1.8;
}

.text-link {
  display: inline-flex;
  width: fit-content;
  align-items: center;
  gap: 12px;
  padding-block: 6px;
  border-bottom: 1px solid #b9aa98;
  font-size: 15px;
  font-weight: 600;
}

.text-link span {
  font-size: 17px;
  line-height: 1;
  transition: transform .25s var(--ease);
}

.text-link:hover span {
  transform: translate(2px, -2px);
}

.app-showcase {
  background: var(--warm-white);
}

.has-scroll-demo .showcase-layout {
  position: sticky;
  top: var(--showcase-top);
}

.has-scroll-demo::after {
  display: block;
  height: var(--showcase-travel);
  content: "";
}

.showcase-layout {
  display: grid;
  grid-template-columns: minmax(0, .83fr) minmax(0, 1.4fr);
  align-items: center;
  gap: clamp(30px, 5vw, 80px);
}

.showcase-actions {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 12px 20px;
  margin-top: 29px;
}

.demo-tabs {
  display: inline-flex;
  max-width: 100%;
  gap: 2px;
  padding: 4px;
  background: #f0ece5;
  border: 1px solid #ebe4da;
  border-radius: 999px;
}

.demo-tabs button {
  display: block;
  padding: 9px clamp(13px, 1.5vw, 21px);
  min-height: 42px;
  border: 0;
  border-radius: 999px;
  background: transparent;
  color: #5a5147;
  font: 600 14px/1.3 var(--font);
  white-space: nowrap;
  cursor: pointer;
  transition: color .25s, background .25s, box-shadow .25s;
}

.demo-tabs button:hover {
  color: var(--ink);
}

.demo-tabs button[aria-selected="true"] {
  background: #fff;
  color: var(--ink);
  box-shadow: 0 1px 4px #33271917;
}

.app-stage {
  --handset-width: clamp(216px, 19.5vw, 276px);
  position: relative;
  isolation: isolate;
  display: grid;
  place-items: center;
  min-height: clamp(533px, 51vw, 682px);
  overflow: hidden;
  overflow: clip;
  border: 1px solid #e8ded1;
  border-radius: var(--home-radius);
  background:
    radial-gradient(ellipse at 24% 12%, #fff8eae0, transparent 60%),
    linear-gradient(145deg, #e9ded0 4%, #e5d5c1 55%, #cdb396 100%);
}

.app-stage::before {
  position: absolute;
  z-index: -1;
  inset: 56% -32% -70%;
  transform: rotate(-13deg);
  transform-origin: left top;
  background: linear-gradient(105deg, #e4d1bb, #ede2d2 40%, #bda184);
  box-shadow: 0 -1px 1px #fff5e3a8;
  content: "";
}

.handset {
  position: relative;
  width: var(--handset-width);
  aspect-ratio: .465;
  padding: 7px;
  border-radius: calc(var(--handset-width) * .143);
  background: linear-gradient(120deg, #d0c6b7 0%, #665f59 16%, #211f1d 36%, #27211d 70%, #b6a591 100%);
  box-shadow: inset 0 0 0 1px #ffffff68, 0 0 0 1px #53483b, 3px 6px 2px #4031232c, 19px 32px 45px -13px #4d332b74, 0 8px 17px #4d332b40;
}

.handset-screen {
  position: absolute;
  inset: 5px;
  overflow: hidden;
  background: #fff;
  border: 2px solid #171615;
  border-radius: calc(var(--handset-width) * .143 - 5px);
}

.handset-screen::after {
  position: absolute;
  inset: 0;
  pointer-events: none;
  border-radius: inherit;
  box-shadow: inset 0 0 0 1px #09070526;
  background: linear-gradient(136deg, #ffffff1a, transparent 35%);
  content: "";
}

.handset-screen img,
.demo-panel {
  width: 100%;
  height: 100%;
}

.handset-screen img {
  object-fit: fill;
}

.demo-panel {
  position: relative;
}

.demo-panel:not([hidden]) {
  animation: screen-in .3s ease both;
}

@keyframes screen-in {
  from { opacity: .42; transform: scale(1.025); }
  to { opacity: 1; transform: scale(1); }
}

.voice-recording {
  position: absolute;
  inset: auto 3% 3.1%;
  display: grid;
  justify-items: center;
  gap: 5px;
  padding: 8px 4px;
  border: 1px solid #e4d5ca;
  border-radius: 15px;
  background: #fff9f3;
  box-shadow: 0 0 0 4px #fff, 0 3px 14px #42302922;
  color: #7a4438;
  font-size: clamp(9px, .8vw, 11px);
}

.voice-wave {
  display: flex;
  height: 20px;
  align-items: center;
  gap: 3px;
  color: #ad5032;
}

.voice-wave i {
  width: 2px;
  height: 8px;
  border-radius: 9px;
  background: currentColor;
  animation: voice-pulse .8s ease-in-out 8 alternate;
}

.voice-wave i:nth-child(3n + 2) { height: 16px; animation-delay: -.2s; }
.voice-wave i:nth-child(3n) { height: 12px; animation-delay: -.45s; }

.call-ripple {
  position: absolute;
  top: 24%;
  left: 50%;
  width: 38%;
  aspect-ratio: 1;
  border: 1px solid #f595a164;
  border-radius: 50%;
  opacity: 0;
  transform: translate(-50%, -50%);
  pointer-events: none;
}

.demo-panel:not([hidden]) .call-ripple {
  animation: call-ripple 2.4s .35s ease-out 3;
}

@keyframes call-ripple {
  from { opacity: .7; scale: .92; }
  to { opacity: 0; scale: 1.42; }
}

@keyframes voice-pulse {
  from { scale: 1 .55; }
  to { scale: 1 1.25; }
}

.handset-front {
  z-index: 1;
  transform: translate(12%, calc(1.5% + var(--phone-drift, 0px))) rotate(5deg);
  transition: transform .55s var(--ease);
}

.app-stage[data-scene="voice"] .handset-front {
  transform: translate(12%, calc(1% + var(--phone-drift, 0px))) rotate(3deg);
}

.app-stage[data-scene="file"] .handset-front {
  transform: translate(16%, calc(1% + var(--phone-drift, 0px))) rotate(4deg);
}

.app-stage[data-scene="call"] .handset-front {
  transform: translate(12%, calc(1.5% + var(--phone-drift, 0px))) rotate(1deg);
}

.handset-behind {
  position: absolute;
  transform: translate(-32%, calc(-5% - var(--phone-drift, 0px))) rotate(-12deg) scale(.87);
  opacity: .94;
}

.handset-buttons::before,
.handset-buttons::after {
  position: absolute;
  width: 3px;
  border-radius: 2px;
  background: linear-gradient(90deg, #726459, #b7a997 62%, #4d4139);
  content: "";
}

.handset-buttons::before {
  left: -2px;
  top: 18%;
  height: 7%;
  box-shadow: 0 calc(var(--handset-width) * .19) 0 #827365;
}

.handset-buttons::after {
  right: -2px;
  top: 24%;
  height: 10%;
}

.teamwork {
  background: #f2eee7;
}

.section-intro {
  display: grid;
  grid-template-columns: minmax(0, 1.25fr) minmax(0, .8fr);
  align-items: end;
  gap: clamp(24px, 6vw, 88px);
  margin-bottom: clamp(28px, 4.2vw, 58px);
}

.section-intro .feature-lead {
  margin: 0 0 4px;
}

.teamwork-panels {
  display: grid;
  grid-template-columns: minmax(0, 1fr) minmax(0, 1fr);
  gap: clamp(14px, 2vw, 26px);
}

.team-panel {
  display: grid;
  grid-template-rows: auto 1fr;
  min-height: clamp(510px, 47vw, 580px);
  overflow: hidden;
  border-radius: var(--home-radius);
}

.panel-copy {
  padding: clamp(27px, 3.3vw, 47px);
}

.panel-copy h3 {
  font-size: clamp(23px, 2.4vw, 34px);
  line-height: 1.3;
  letter-spacing: -.035em;
}

.panel-copy p {
  max-width: 32em;
  margin-top: 12px;
  color: #554a40;
  font-size: clamp(15px, 1.3vw, 17px);
  line-height: 1.75;
}

.updates {
  background: radial-gradient(ellipse at 77% 95%, #594034, #282321 72%);
  color: #fff9ef;
}

.updates .panel-copy p {
  color: #e2d0bd;
}

.updates-preview {
  width: min(72%, 338px);
  margin: 12px auto 0;
  align-self: center;
  padding: 5px;
  border-radius: 23px;
  background: #cabcaa35;
  box-shadow: 12px 24px 46px #160e0a62, inset 0 0 0 1px #c8ad9141;
  transform: rotate(-4deg);
}

.updates-screen {
  position: relative;
  overflow: hidden;
  border-radius: 19px;
  background: #f5f5f5;
}

.updates-screen img {
  width: 100%;
  height: auto;
}

.update-notices {
  display: none;
}

.project {
  background: radial-gradient(ellipse at 100% 12%, #faf2e4, #e5d1b8 100%);
  border: 1px solid #e2d2bf;
}

.project-preview {
  position: relative;
  width: min(65%, 326px);
  height: 100%;
  max-height: 382px;
  min-height: 270px;
  margin-inline: auto;
  align-self: end;
}

.project-screen {
  position: absolute;
  top: 7px;
  width: 100%;
  height: auto;
  border: 6px solid #b7a492;
  border-radius: 30px 30px 0 0;
  background: #fff;
  box-shadow: 8px 14px 28px #745a4147, 0 0 0 1px #917a67;
}

.project-members {
  position: absolute;
  inset: 5% -8% auto auto;
  display: flex;
  padding: 5px;
  border: 1px solid #ffffffd1;
  border-radius: 999px;
  background: #fffaf1ed;
  box-shadow: 0 6px 16px #6b4d3926;
}

.project-members img {
  width: clamp(26px, 3.3vw, 39px);
  height: auto;
  border-radius: 50%;
}

.marketplace {
  background: var(--warm-white);
}

.marketplace-layout {
  display: grid;
  grid-template-columns: minmax(0, .85fr) minmax(0, 1.2fr);
  align-items: center;
  gap: clamp(24px, 7vw, 104px);
}

.market-apps {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  align-items: center;
  gap: 28px 12px;
  padding: clamp(24px, 4.2vw, 54px);
  border: 1px solid #e9e0d6;
  border-radius: var(--home-radius);
  background: radial-gradient(ellipse at 14% 0%, #fcf9f4, #f2e9dd);
  list-style: none;
}

.market-apps li {
  display: grid;
  justify-items: center;
  gap: 12px;
  text-align: center;
  font-size: 15px;
  color: #41372e;
}

.market-apps img {
  width: clamp(58px, 6.5vw, 91px);
  height: auto;
  border-radius: 23%;
  box-shadow: 0 10px 16px -9px #5843325c;
}

.equipment {
  background: #f3ede5;
}

.windows-photo {
  overflow: hidden;
  border-radius: var(--home-radius);
  background: #e5dbcd;
}

.windows-photo img {
  width: 100%;
  height: clamp(310px, 43vw, 565px);
  object-fit: cover;
  object-position: center 52%;
}

.ownership {
  background: var(--warm-white);
}

.ownership-layout {
  display: grid;
  grid-template-columns: minmax(0, 1.13fr) minmax(0, .85fr);
  align-items: center;
  gap: clamp(28px, 7vw, 100px);
}

.detail-photo {
  overflow: hidden;
  border-radius: var(--home-radius);
  background: #e9d8c3;
}

.detail-photo img {
  width: 100%;
  height: clamp(360px, 39vw, 570px);
  object-fit: cover;
  object-position: 69% center;
}

.ownership-list {
  margin-top: 30px;
  border-top: 1px solid var(--home-rule);
}

.ownership-list > div {
  display: grid;
  gap: 4px;
  padding-block: 14px;
  border-bottom: 1px solid var(--home-rule);
}

.ownership-list dt {
  font-weight: 650;
}

.ownership-list dd {
  color: #534d44;
  font-size: 15px;
}

.setup {
  background: #f0e7db;
}

.setup-intro {
  grid-template-columns: 1fr auto;
  align-items: end;
}

.setup-steps {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: clamp(18px, 4vw, 50px);
  list-style: none;
}

.setup-steps li {
  padding-top: 18px;
  border-top: 1px solid #cfc0ad;
}

.setup-steps span {
  display: block;
  margin-bottom: 14px;
  color: #9c462d;
  font-size: 14px;
  font-variant-numeric: tabular-nums;
}

.setup-steps h3 {
  font-size: clamp(21px, 2.2vw, 28px);
}

.setup-steps p {
  margin-top: 7px;
  color: #534d44;
  font-size: 16px;
}

.questions {
  background: var(--warm-white);
}

.questions-layout {
  display: grid;
  grid-template-columns: minmax(0, .77fr) minmax(0, 1.25fr);
  align-items: start;
  gap: clamp(24px, 5vw, 80px);
}

.questions details {
  border-color: var(--home-rule);
  padding: 0;
}

.questions summary {
  gap: 12px;
  padding: 19px 2px;
}

.questions details p {
  max-width: 36em;
  margin: -3px 32px 20px 2px;
  color: #534d44;
  font-size: 16px;
  line-height: 1.75;
}

.closing {
  padding-top: clamp(22px, 3vw, 42px);
  background: var(--warm-white);
}

.closing-inner {
  position: relative;
  display: grid;
  align-items: center;
  min-height: clamp(350px, 41vw, 515px);
  isolation: isolate;
  overflow: hidden;
  background: #ebe4db;
  border-radius: var(--home-radius);
}

.closing-inner > img {
  position: absolute;
  z-index: -2;
  inset: 0 0 0 auto;
  width: 74%;
  height: 100%;
  object-fit: contain;
  object-position: right center;
}

.closing-inner::after {
  position: absolute;
  z-index: -1;
  inset: 0;
  background: linear-gradient(90deg, #eee8df 24%, #eee8dfdc 38%, #eee8df00 66%);
  content: "";
}

.closing-copy {
  padding: clamp(24px, 6.8vw, 92px);
}

.home-footer {
  padding: 34px var(--home-gutter);
  background: var(--paper);
}

.home-footer .legal {
  margin-top: 20px;
}

@media (prefers-reduced-motion: no-preference) {
  .hero-intro .hero-media img {
    animation: hero-photo-in 1.45s var(--ease) both;
  }

  .home .hero-text {
    opacity: var(--copy-opacity, 1);
    transform: translateY(var(--copy-shift, 0px));
  }

  .home .hero-text:focus-within {
    opacity: 1;
  }

  .hero-intro .hero-text > * {
    animation: content-in .85s var(--ease) both;
  }

  .hero-intro .hero-text > :nth-child(2) { animation-delay: .1s; }
  .hero-intro .hero-text > :nth-child(3) { animation-delay: .21s; }
  .hero-intro .hero-text > :nth-child(4) { animation-delay: .33s; }

  .motion-ready .handset,
  .motion-ready .updates-preview,
  .motion-ready .project-screen,
  .motion-ready .project-members,
  .motion-ready .market-apps li {
    opacity: 0;
  }

  .motion-ready .entered .handset,
  .motion-ready .updates-preview.entered,
  .motion-ready .entered .project-screen,
  .motion-ready .entered .project-members,
  .motion-ready .entered li {
    opacity: 1;
  }

  .entered .handset-front { animation: phone-front-in 1s var(--ease) both; }
  .entered .handset-behind { animation: phone-back-in 1.15s .06s var(--ease) both; }
  .updates-preview.entered { animation: content-in .75s var(--ease) both; }
  .entered .project-screen { animation: content-in .82s var(--ease) both; }
  .entered .project-members { animation: content-in .65s .25s var(--ease) both; }
  .entered .project-members img { animation: member-in .75s .3s var(--ease) both; }
  .entered .project-members img:first-child { --member-from: -34px; }
  .entered .project-members img:last-child { --member-from: 34px; }

  .motion-ready .updates-screen > img {
    clip-path: inset(0 0 66% 0);
  }

  .motion-ready .update-notices {
    position: absolute;
    inset: 0;
    display: block;
  }

  .update-notices span {
    position: absolute;
    inset: 0;
    clip-path: inset(var(--notice-top) 0 var(--notice-bottom) 0);
    background: url("img/app-updates.webp") center / 100% 100%;
    opacity: 0;
  }

  .update-notices span:nth-child(1) { --notice-top: 34%; --notice-bottom: 46.65%; --delay: .20s; }
  .update-notices span:nth-child(2) { --notice-top: 53.35%; --notice-bottom: 27.3%; --delay: .37s; }
  .update-notices span:nth-child(3) { --notice-top: 72.7%; --notice-bottom: 8.2%; --delay: .54s; }
  .update-notices span:nth-child(4) { --notice-top: 91.8%; --notice-bottom: 0%; --delay: .71s; }
  .entered .update-notices span { animation: notice-in .50s var(--delay) var(--ease) both; }

  .market-apps.entered li {
    animation: content-in .65s var(--delay, 0s) var(--ease) both;
  }

  .market-apps li:nth-child(2) { --delay: .06s; }
  .market-apps li:nth-child(3) { --delay: .12s; }
  .market-apps li:nth-child(4) { --delay: .18s; }
  .market-apps li:nth-child(5) { --delay: .24s; }
  .market-apps li:nth-child(6) { --delay: .30s; }
  .market-apps img { transition: transform .35s var(--ease); }
  .market-apps li:hover img { transform: translateY(-5px) rotate(-3deg); }

  .windows-photo,
  .detail-photo {
    clip-path: inset(calc((1 - var(--photo-open, 1)) * 5%) calc((1 - var(--photo-open, 1)) * 3%) round var(--home-radius));
  }

  .windows-photo img,
  .detail-photo img {
    transform: scale(calc(1 + (1 - var(--photo-open, 1)) * .075));
  }

  .motion-ready .setup-steps li {
    position: relative;
  }

  .motion-ready .setup-steps li::before {
    position: absolute;
    inset: -1px 0 auto;
    height: 1px;
    background: #ad5a3e;
    transform: scaleX(0);
    transform-origin: left center;
    transition: transform .55s var(--ease);
    content: "";
  }

  .setup-steps li.step-on::before {
    transform: scaleX(1);
  }

  .motion-ready .setup-steps li span {
    transition: color .28s, translate .4s var(--ease);
  }

  .setup-steps li.step-on span {
    color: #723822;
    translate: 3px 0;
  }

  .motion-ready .closing-inner.entered > img {
    animation: hero-photo-in 1.25s var(--ease) both;
  }
}

@keyframes hero-photo-in {
  from { opacity: .08; scale: 1.055; }
  to { opacity: 1; scale: 1; }
}

@keyframes content-in {
  from { opacity: 0; translate: 0 20px; }
  to { opacity: 1; translate: 0 0; }
}

@keyframes phone-front-in {
  from { opacity: 0; translate: 22px 54px; rotate: 3deg; }
  to { opacity: 1; translate: 0 0; rotate: 0deg; }
}

@keyframes phone-back-in {
  from { opacity: 0; translate: 76px 45px; rotate: 13deg; }
  to { opacity: .94; translate: 0 0; rotate: 0deg; }
}

@keyframes member-in {
  from { opacity: 0; translate: var(--member-from, 0px) 15px; scale: .76; }
  to { opacity: 1; translate: 0 0; scale: 1; }
}

@keyframes notice-in {
  from { opacity: 0; translate: 0 -9px; }
  to { opacity: 1; translate: 0 0; }
}

@media (max-width: 1020px) and (min-width: 861px) {
  .showcase-layout {
    grid-template-columns: minmax(0, .95fr) minmax(0, 1.1fr);
    gap: 28px;
  }
}

@media (max-width: 860px) {
  .showcase-layout,
  .teamwork-panels,
  .marketplace-layout,
  .ownership-layout,
  .section-intro,
  .questions-layout {
    grid-template-columns: minmax(0, 1fr);
  }

  .feature-copy {
    max-width: 540px;
  }

  .section-intro {
    gap: 16px;
  }

  .feature-lead {
    margin-top: 14px;
  }

  .app-stage {
    --handset-width: clamp(180px, 39vw, 260px);
    min-height: clamp(460px, 90vw, 610px);
  }

  .team-panel {
    min-height: clamp(450px, 68vw, 545px);
  }

  .windows-photo img {
    height: clamp(305px, 67vw, 510px);
    object-position: 74% center;
  }

  .detail-photo {
    grid-row: 2;
  }

  .detail-photo img {
    height: clamp(286px, 62vw, 460px);
  }

  .setup-intro .text-link {
    margin-top: 2px;
  }

}

@media (max-width: 540px) {
  .home .hero {
    min-height: max(725px, 100svh);
  }

  .home .hero-text .lead {
    font-size: 16px;
  }

  .home .hero-text .cta {
    margin-top: 22px;
  }

  .home .nav nav {
    gap: 16px;
  }

  .app-stage {
    min-height: clamp(414px, 112vw, 500px);
  }

  .showcase-actions {
    gap: 12px 15px;
  }

  .team-panel {
    min-height: 430px;
  }

  .updates-preview {
    width: min(74%, 290px);
    margin: 0 auto 24px;
  }

  .project-preview {
    min-height: 252px;
  }

  .setup-steps {
    grid-template-columns: 1fr;
    gap: 19px;
  }

  .setup-steps li {
    display: grid;
    grid-template-columns: 34px 1fr;
    align-items: baseline;
    gap: 2px 10px;
  }

  .setup-steps span {
    margin: 0;
  }

  .setup-steps p {
    grid-column: 2;
    margin-top: 2px;
  }

  .closing-inner {
    min-height: 483px;
    align-items: end;
  }

  .closing-inner > img {
    width: 100%;
    height: 63%;
    object-fit: cover;
    object-position: 77% center;
  }

  .closing-inner::after {
    background: linear-gradient(0deg, #eee8df 39%, #eee8df00 64%);
  }

  .closing-copy .cta {
    margin-top: 21px;
    gap: 8px;
  }

  .closing-copy .btn {
    height: 44px;
    padding-inline: 14px;
    font-size: 14px;
  }
}

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