/* Three product chapters, each with its own scale and a shared editorial rhythm. */
.home-section {
  background: #101713;
  color: #f4f2e9;
  padding: 138px 0 66px;
  overflow: clip;
}

.home-composition {
  grid-template-columns: .95fr 1.4fr;
  align-items: center;
  perspective: none;
}

.home-copy { padding: 12px 48px 18px 0; }
.integration-label { color: #b6c2b7; margin-bottom: 34px; }
.integration-label img { width: 38px; height: 38px; }
.home-copy h2 {
  color: #e1ef9c;
  font-size: clamp(58px, 6.1vw, 84px);
  font-weight: 580;
  line-height: .99;
  letter-spacing: -.055em;
}
.home-section .section-description {
  margin-top: 30px;
  font-size: 21px;
  line-height: 1.5;
  color: #eceee4;
}
.home-section .supporting-copy {
  font-size: 15px;
  line-height: 1.7;
  color: #9eaea1;
  max-width: 320px;
}
.home-section .dark-link { color: #dceaa3; font-size: 12px; margin-top: 32px; }
.home-detail {
  width: calc(100% + max(var(--gutter), (100vw - 1184px) / 2));
  aspect-ratio: 2360 / 1640;
  border: 0;
  border-radius: 8.3% 0 0 8.3% / 12% 0 0 12%;
  background: #f6f5fa;
  box-shadow: none;
  transform-origin: center;
}
.home-detail img { width: 100%; left: 0; top: 0; clip-path: none; }
.home-detail figcaption {
  padding: 19px 28px;
  font-size: 11px;
  color: #77747e;
  background: #f6f5fa;
}
.motion-ready .home-detail { transform: translate3d(0, var(--home-y, 0px), 0); }
.home-capabilities {
  grid-template-columns: 1fr;
  gap: 0;
  margin-top: 90px;
  padding-top: 0;
  border-color: #344138;
}
.home-capabilities > div {
  display: grid;
  grid-template-columns: 1fr 1.45fr;
  gap: 52px;
  padding: 21px 0;
  border-bottom: 1px solid #344138;
}
.home-capabilities h3 { font-size: 16px; font-weight: 500; color: #e2e8d9; }
.home-capabilities p {
  margin: 0;
  max-width: 580px;
  font-size: 14px;
  line-height: 1.6;
  color: #a4b0a5;
}
.home-section > .wrap > .fine-print { margin-top: 25px; color: #8a9b8c; font-size: 11px; }

/* The app index stays still while the selected interface takes the stage. */
.apps-section {
  background: #f1eee7;
  color: #282c24;
  padding: 124px 0 77px;
}
.apps-section .chapter-heading { grid-template-columns: 1.1fr 1fr; gap: 80px; align-items: end; }
.chapter-heading h2 {
  font-size: clamp(48px, 5.1vw, 70px);
  font-weight: 580;
  line-height: 1.03;
  letter-spacing: -.05em;
}
.apps-section .chapter-heading > p { font-size: 18px; color: #77766c; max-width: 410px; }
.apps-section .chapter-heading strong { color: #30382b; font-weight: 550; }
.app-demo {
  display: grid;
  grid-template-columns: 210px minmax(0, 1fr);
  align-items: start;
  gap: 54px;
  margin-top: 64px;
}
.app-tabs {
  display: flex;
  flex-direction: column;
  width: 100%;
  max-width: none;
  gap: 0;
  margin: 0;
  padding: 0;
  background: none;
  border-radius: 0;
  border-top: 1px solid #cbcbbf;
}
.app-tabs::before { content: none; }
.app-tabs button,
.app-tabs button.active {
  position: relative;
  display: grid;
  grid-template-columns: 26px 1fr;
  column-gap: 8px;
  row-gap: 7px;
  width: 100%;
  min-width: 0;
  padding: 20px 0 22px;
  border: 0;
  border-bottom: 1px solid #cbcbbf;
  border-radius: 0;
  background: transparent;
  color: #848579;
  text-align: left;
  transition: color .25s ease;
}
.app-tabs button::after {
  content: "";
  position: absolute;
  left: 0;
  right: 0;
  bottom: -1px;
  height: 2px;
  background: #34432a;
  transform: scaleX(0);
  transform-origin: left;
  transition: transform .35s cubic-bezier(.2,.7,.2,1);
}
.app-tabs button.active { color: #263620; }
.app-tabs button.active::after { transform: scaleX(1); }
.app-tabs button:hover { color: #263620; }
.app-index { padding-top: 6px; font-size: 10px; font-weight: 500; letter-spacing: .03em; }
.app-name { font-size: 27px; line-height: 1.1; letter-spacing: -.035em; font-weight: 500; }
.app-purpose {
  grid-column: 2;
  max-width: 165px;
  font-size: 11px;
  line-height: 1.5;
  font-weight: 400;
  color: #818477;
}
.app-tabs button.active .app-purpose { color: #67705d; }
.app-scene { min-width: 0; padding: 0; perspective: none; }
.app-stage, .motion-ready .app-stage {
  width: 100%;
  max-width: none;
  margin: 0;
  transform: none;
  perspective: none;
}
.app-panel > .device {
  padding: 10px;
  border-color: #64665c;
  box-shadow: 0 2px 0 #42463b, 0 22px 34px -24px #292c285c;
}
.app-panel.active { animation: app-editorial-in .55s cubic-bezier(.22,.8,.2,1) both; }
.app-panel > p {
  text-align: left;
  max-width: 540px;
  margin: 27px 0 0;
  padding: 0;
  font-size: 13px;
  line-height: 1.65;
  color: #777c6c;
}
.app-panel > p strong { color: #35422d; font-weight: 550; }
.app-service-note {
  margin: 50px 0 0 264px;
  padding-top: 22px;
  border-top: 1px solid #cecec1;
  color: #777c6c;
  font-size: 11px;
  max-width: 760px;
  line-height: 1.7;
}
@keyframes app-editorial-in {
  from { opacity: .45; transform: translateX(calc(var(--app-direction, 1) * 22px)); }
  to { opacity: 1; transform: translateX(0); }
}

/* A quieter object against a much richer, changing room. */
.faces-section {
  --face-bg: #123d2c;
  --face-ink: #f0f1df;
  --face-muted: #b2c8ac;
  padding: 132px 0 104px;
  overflow: clip;
}
.faces-section[data-personality="photo"] {
  --face-bg: #30251b;
  --face-ink: #f4edde;
  --face-muted: #c8b99f;
}
.faces-section[data-personality="day"] {
  --face-bg: #102c4b;
  --face-ink: #e9f0ef;
  --face-muted: #a9c0d0;
}
.faces-layout { grid-template-columns: 36% 64%; min-height: 510px; perspective: none; }
.faces-copy { padding: 0 42px 12px 0; }
.faces-eyebrow { font-size: 12px; margin-bottom: 29px; }
.faces-copy h2 {
  font-size: clamp(48px, 5.2vw, 72px);
  font-weight: 550;
  line-height: 1.02;
  letter-spacing: -.05em;
}
.personality-description { font-size: 15px; margin-top: 27px; max-width: 280px; }
.personality-picker { gap: 24px; margin-top: 32px; }
.personality-picker button { font-size: 11px; color: var(--face-muted); }
.personality-swatch { width: 49px; height: 49px; padding: 4px; }
.personality-product {
  width: calc(100% + 65px);
  padding-left: 0;
  transform-style: flat;
}
.personality-tilt { perspective: none; transform-style: flat; }
.personality-product .device {
  padding: 11px;
  border-color: #7f89776b;
  box-shadow: 0 2px 0 #7c89714a, 0 36px 50px -35px #0009;
}
.personality-caption { text-align: left; margin: 26px 0 0 26px; font-size: 11px; }
.motion-ready .personality-product { transform: translate3d(0, var(--face-y, 0px), 0); }
.motion-ready .personality-tilt { transform: none; }

/* Carry the palette through the quieter closing chapters. */
.why-section, .faq-section { background: #f1eee7; }
.why-layout h2 { font-weight: 580; }
.download-section { background: #dfeaa6; color: #26331f; }
.download-layout p { color: #6b7750; }
.download-pending { border-color: #89965c; color: #46532c; }
.download-note { color: #6c794c; }

@media (min-width: 1500px) {
  .faces-layout { grid-template-columns: 36% 64%; }
  .personality-product { width: calc(100% + 100px); }
}

@media (max-width: 1050px) and (min-width: 761px) {
  .home-copy { padding-right: 30px; }
  .home-copy h2 { font-size: 60px; }
  .home-section .section-description { font-size: 19px; }
  .home-section .supporting-copy { font-size: 14px; }
  .apps-section .chapter-heading { gap: 45px; }
  .chapter-heading h2 { font-size: 52px; }
  .apps-section .chapter-heading > p { font-size: 16px; }
  .app-demo { grid-template-columns: 180px minmax(0, 1fr); gap: 36px; }
  .app-tabs button, .app-tabs button.active { padding-top: 16px; padding-bottom: 18px; }
  .app-name { font-size: 24px; }
  .app-purpose { font-size: 10px; }
  .app-service-note { margin-left: 216px; }
  .faces-copy { padding-right: 27px; }
  .faces-copy h2 { font-size: 50px; }
  .personality-product { width: calc(100% + 40px); }
}

@media (max-width: 760px) {
  .home-section { padding: 76px 0 44px; }
  .home-composition { grid-template-columns: 1fr; gap: 42px; }
  .home-copy { padding: 0; }
  .integration-label { margin-bottom: 29px; }
  .home-copy h2 { font-size: clamp(57px, 14.8vw, 76px); }
  .home-section .section-description { font-size: 20px; margin-top: 26px; }
  .home-section .supporting-copy { font-size: 15px; max-width: 390px; }
  .home-section .dark-link { font-size: 12px; margin-top: 25px; }
  .home-detail { width: calc(100% + var(--gutter)); max-width: none; border-radius: 20px 0 0 20px; }
  .home-detail figcaption { font-size: 10px; padding: 8px 20px; }
  .home-capabilities { margin-top: 48px; }
  .home-capabilities > div { grid-template-columns: 1fr; gap: 8px; padding: 20px 0; }
  .home-capabilities h3 { font-size: 16px; }
  .home-capabilities p { font-size: 13px; max-width: 400px; }
  .home-section > .wrap > .fine-print { font-size: 10px; }
  .apps-section { padding: 74px 0 46px; }
  .apps-section .chapter-heading { grid-template-columns: 1fr; gap: 24px; }
  .chapter-heading h2 { font-size: clamp(43px, 11.2vw, 59px); }
  .apps-section .chapter-heading > p { font-size: 16px; max-width: 470px; }
  .app-demo { grid-template-columns: 1fr; gap: 29px; margin-top: 36px; }
  .app-tabs {
    display: grid;
    grid-template-columns: repeat(4, minmax(0, 1fr));
    gap: 10px;
    border-top: 0;
    margin: 0;
    padding: 0;
  }
  .app-tabs button, .app-tabs button.active {
    display: flex;
    flex-direction: column;
    align-items: flex-start;
    gap: 10px;
    padding: 0 0 15px;
    min-height: 62px;
    white-space: normal;
  }
  .app-index { font-size: 9px; padding: 0; }
  .app-name { font-size: 15px; letter-spacing: -.025em; white-space: nowrap; }
  .app-purpose { display: none; }
  .app-stage { width: 100%; }
  .app-panel > .device { padding: 7px; }
  .app-panel > p { font-size: 12px; margin-top: 24px; padding: 0 3px; }
  .app-panel > p strong { display: block; margin-bottom: 4px; }
  .app-service-note { margin: 29px 0 0; padding-top: 23px; font-size: 10px; max-width: 470px; }
  .faces-section { padding: 77px 0 51px; }
  .faces-layout { grid-template-columns: 1fr; gap: 35px; min-height: 0; }
  .faces-copy { padding: 0; }
  .faces-eyebrow { margin-bottom: 25px; }
  .faces-copy h2 { font-size: clamp(53px, 13.7vw, 72px); line-height: 1.02; }
  .personality-description { margin-top: 25px; font-size: 15px; max-width: 450px; }
  .personality-picker { gap: 25px; margin-top: 27px; }
  .personality-swatch { width: 45px; height: 45px; }
  .personality-product { width: 100%; padding: 0; }
  .personality-product .device { padding: 7px; }
  .personality-caption { margin: 23px 0 0; text-align: center; font-size: 10px; }
}

@media (prefers-reduced-motion: reduce) {
  .app-panel.active { animation: none; }
  .app-tabs button::after { transition: none; }
  .motion-ready .home-detail, .motion-ready .personality-product { transform: none; }
}

/* Expanded app catalogue: six equally visible built-in tools. */
.app-tabs button, .app-tabs button.active{padding:14px 0 16px;row-gap:5px}
.app-name{font-size:25px}
.app-connections{display:grid;grid-template-columns:210px minmax(0,1fr);gap:54px;margin-top:42px;padding-top:27px;border-top:1px solid #d1d1cd}
.app-connections-label{font-size:13px;line-height:1.6;color:#777}
.app-connections-content ul{display:flex;flex-wrap:wrap;gap:13px 27px;list-style:none;margin:0;padding:0}
.app-connections-content li{font-size:19px;line-height:1.5;letter-spacing:-.025em;color:#303030}
.app-connections-content a{display:inline-flex;gap:7px;align-items:center}
.app-connections-content a span{font-size:12px;color:#777}
.app-connections-content a:hover{text-decoration:underline;text-underline-offset:5px}
.app-connections .app-service-note{margin:17px 0 0;padding:0;border:0;color:#777;font-size:11px}

/* Neutral canvas. Color belongs to the product, not to section decoration. */
:root{--paper:#f4f4f2;--ink:#202020;--muted:#777;--line:#d7d7d3;background:#101010;color:#202020}
.hero{background:#111}
.hero h1 span{color:#a0a0a0}
.hero .intro-label,.hero-description{color:#aaa}
.hero-explore{color:#ddd}
.hero-depth-word{color:#fff;opacity:.025}
.app-icon,.app-icon.large{background:#e8e8e8}
.app-icon:before{background:#8b8b8b}
button:focus-visible,a:focus-visible,summary:focus-visible{outline-color:currentColor}
.home-section{background:#111;color:#f4f4f4}
.home-copy h2{color:#f4f4f4}
.integration-label{color:#aaa}
.home-section .section-description{color:#e5e5e5}
.home-section .supporting-copy{color:#999}
.home-section .dark-link{color:#ddd}
.home-capabilities,.home-capabilities>div{border-color:#333}
.home-capabilities h3{color:#ddd}
.home-capabilities p{color:#999}
.home-section>.wrap>.fine-print{color:#858585}
.apps-section,.why-section,.faq-section{background:#f4f4f2;color:#202020}
.apps-section .chapter-heading>p{color:#6e6e6e}
.apps-section .chapter-heading strong{color:#262626}
.app-tabs,.app-tabs button,.app-tabs button.active{border-color:#cdcdca}
.app-tabs button{color:#909090}
.app-tabs button.active,.app-tabs button:hover{color:#202020}
.app-tabs button::after{background:#222}
.app-purpose{color:#8a8a8a}
.app-tabs button.active .app-purpose{color:#666}
.app-panel>.device{border-color:#606060;box-shadow:0 2px 0 #333,0 22px 34px -24px #0005}
.app-panel>p{color:#777}
.app-panel>p strong{color:#333}
.faces-section{--face-bg:#181818;--face-ink:#f3f3f1;--face-muted:#aaa}
.faces-section[data-personality="photo"]{--face-bg:#101010;--face-ink:#f3f3f1;--face-muted:#aaa}
.faces-section[data-personality="day"]{--face-bg:#202020;--face-ink:#f3f3f1;--face-muted:#aaa}
.personality-product .device{border-color:#555;box-shadow:0 2px 0 #5558,0 36px 50px -35px #0009}
.why-copy p,.faq-list details p{color:#737373}
.download-section{background:#e6e6e3;color:#252525}
.download-layout p,.download-note{color:#777}
.download-pending{border-color:#aaa;color:#555}
@media(max-width:1050px) and (min-width:761px){
 .app-tabs button,.app-tabs button.active{padding:12px 0 14px}
 .app-name{font-size:23px}
 .app-connections{grid-template-columns:180px minmax(0,1fr);gap:36px}
}
@media(max-width:760px){
 .app-tabs{grid-template-columns:repeat(3,minmax(0,1fr));column-gap:16px;row-gap:18px}
 .app-tabs button,.app-tabs button.active{padding:0 0 13px;gap:7px;min-height:54px}
 .app-name{font-size:16px}
 .app-connections{grid-template-columns:1fr;gap:15px;margin-top:29px;padding-top:23px}
 .app-connections-label{font-size:12px}
 .app-connections-content ul{gap:10px 22px}
 .app-connections-content li{font-size:17px}
 .app-connections .app-service-note{font-size:10px;margin-top:16px}
}

/* Apple Home carries its own orange accent within the neutral page. */
.home-section{--home-accent:#ff9f0a;background:#0c0c0c}
.home-copy h2 span{color:var(--home-accent)}
.home-section .dark-link span{color:var(--home-accent)}
