/* Home-page structure refresh: uses the existing Coconat and Geist families. */
body:not(.docs-page) {
  background-image: none;
}

.site-header .logo-svg { display: none; }
.site-header .logo-image { height: 46px; }
.site-header .logo { position: relative; top: 3px; }

.site-nav { padding: 12px 14px; }
.site-nav-toggle { display: none; }
.site-nav-links { display: flex; align-items: center; gap: 6px; }

.hero.hero-refresh {
  padding: clamp(116px, 10vw, 154px) var(--hero-pad) clamp(72px, 7vw, 104px);
}
.hero-refresh-copy {
  width: min(100%, 900px);
  margin: 0 auto;
  text-align: center;
  color: var(--ink);
}
.hero-refresh-kicker,
.library-intro p,
.hero-refresh-summary,
.availability p { font-family: var(--sans); }
.hero-refresh-kicker {
  margin: 0 0 24px;
  font-size: 11px;
  font-weight: 500;
  letter-spacing: .13em;
  text-transform: uppercase;
}
.hero-refresh h1 {
  margin: 0;
  font-family: var(--fat);
  font-size: clamp(46px, 5.6vw, 74px);
  font-weight: 400;
  line-height: .88;
  letter-spacing: -.035em;
  color: var(--ink);
}
.hero-refresh-summary {
  max-width: 590px;
  margin: 30px auto 0;
  font-size: clamp(17px, 1.7vw, 22px);
  line-height: 1.35;
}
.hero-refresh-actions {
  display: flex;
  justify-content: center;
  align-items: center;
  gap: 24px;
  margin-top: 30px;
}
.hero-refresh-primary,
.availability-cta {
  display: inline-flex;
  align-items: center;
  gap: 20px;
  padding: 14px 17px;
  border-radius: 7px;
  background: #0a0a0a;
  color: #fff;
  font: 500 14px/1 var(--sans);
  text-decoration: none;
}
.hero-refresh-primary span,
.availability-cta span { font-size: 18px; font-weight: 300; }
.hero-refresh-primary,
.btn-appstore,
.btn-guide { transition: background-color .2s ease, color .2s ease, box-shadow .2s ease; }
.hero-refresh-primary:hover { background: #303030; }
.btn-appstore:hover {
  background: rgba(10, 10, 10, .06);
  border-color: rgba(10, 10, 10, .18);
  color: var(--ink);
}

/* Hover feedback is visual only: controls never change position or scale. */
a:hover,
button:hover,
[role="button"]:hover {
  transform: none;
  translate: none;
  scale: 1;
}
.hero-refresh-media { margin-top: clamp(46px, 5vw, 68px); }

.library-intro {
  display: grid;
  grid-template-columns: minmax(0, 1.05fr) minmax(280px, .8fr);
  gap: clamp(42px, 10vw, 170px);
  align-items: center;
  max-width: var(--wrap);
  margin: 0 auto;
  padding: clamp(48px, 6vw, 80px) var(--gut) clamp(62px, 7vw, 100px);
}
.library-intro h2,
.availability h2 {
  margin: 0;
  font-family: var(--fat);
  font-size: clamp(41px, 5.1vw, 78px);
  font-weight: 400;
  line-height: .9;
  letter-spacing: -.04em;
  color: var(--ink);
}
.library-intro p {
  max-width: 480px;
  margin: 0;
  font-size: clamp(17px, 1.65vw, 22px);
  line-height: 1.38;
}

/* Two independent product stories: image beside its own copy, stacked. */
#browse .duo {
  display: grid;
  grid-template-columns: 1fr;
  gap: clamp(68px, 9vw, 120px);
}
#browse .duo-col,
#browse .duo-col:nth-child(n) {
  display: grid;
  grid-template-columns: minmax(0, 1.12fr) minmax(270px, .72fr);
  align-items: center;
  gap: clamp(42px, 7vw, 112px);
}
#browse .duo-col:nth-child(n) .product-demo {
  grid-column: 1;
  grid-row: 1;
}
#browse .duo-col:nth-child(n) .feat-head {
  grid-column: 2;
  grid-row: 1;
  margin: 0;
}
#browse .duo-col:nth-child(2) .feat-head {
  grid-column: 1;
}
#browse .duo-col:nth-child(2) {
  grid-template-columns: minmax(270px, .72fr) minmax(0, 1.12fr);
}
#browse .duo-col:nth-child(2) .product-demo {
  grid-column: 2;
}

#edit {
  --edit-pad: clamp(30px, 4vw, 58px);
  box-sizing: border-box;
  width: calc(100% - (2 * var(--gut)));
  margin-left: auto;
  margin-right: auto;
  display: grid;
  grid-template-columns: minmax(0, 1.25fr) minmax(290px, .75fr);
  column-gap: clamp(38px, 5vw, 82px);
  row-gap: 0;
  align-items: center;
  padding: var(--edit-pad);
  margin-bottom: clamp(64px, 8vw, 116px);
  border-radius: 30px;
  border: 1px solid rgba(255, 255, 255, .72);
  background-color: rgba(224, 226, 228, .30);
  background-image: none;
  box-shadow: 0 24px 58px rgba(18, 18, 18, .13), inset 0 1px 0 rgba(255, 255, 255, .55);
  -webkit-backdrop-filter: blur(26px) saturate(.78);
  backdrop-filter: blur(26px) saturate(.78);
  overflow: hidden;
}
#edit .feat-head.center {
  max-width: none;
  margin: 0;
  text-align: left;
}
#edit .editor-copy {
  grid-column: 2;
  display: flex;
  flex-direction: column;
  align-items: stretch;
}
#edit .feat-head.center .feat-label { display: inline-block; }
#edit .feat-shot.wide {
  grid-column: 1;
  width: calc(100% + var(--edit-pad));
  max-width: none;
  margin: 0 0 0 calc(-1 * var(--edit-pad));
  left: auto;
  transform: none;
  padding: 0;
  box-sizing: border-box;
  align-self: stretch;
  height: auto;
  overflow: hidden;
  background: transparent;
}
#edit .feat-shot.wide img {
  width: 145%;
  max-width: none;
  height: auto;
  min-height: 0;
  object-fit: initial;
  object-position: 50% 50%;
  transform: translateX(-31.03%);
  border-radius: 0;
  box-shadow: none;
}
#edit .text-features {
  display: grid;
  grid-template-columns: 1fr;
  gap: 18px;
  margin: 18px 0 0;
  padding-top: 0;
  border-top: 0;
}
#edit .text-feature,
#edit .text-feature:nth-child(n) {
  min-height: 0;
  padding: 0;
  align-items: flex-start;
  border: 0;
  border-top: 0;
  border-radius: 0;
  background: transparent;
  box-shadow: none;
  text-align: left;
  transform: none;
  animation: none;
}
#edit .text-feature::after { display: none; }
#edit .text-feature h3 {
  display: flex;
  align-items: center;
  gap: 7px;
  width: auto;
  max-width: none;
  margin: 0 0 3px;
  padding: 0;
  border: 0;
  border-radius: 0;
  background: transparent;
  box-shadow: none;
  font-size: 15px;
  text-align: left;
  -webkit-backdrop-filter: none;
  backdrop-filter: none;
}
#edit .editor-feature-icon {
  width: 16px;
  height: 16px;
  flex: none;
  color: #007aff;
  fill: none;
  stroke: currentColor;
  stroke-width: 1.45;
  stroke-linecap: round;
  stroke-linejoin: round;
}
#edit .text-feature p {
  max-width: 34ch;
  margin: 0;
  font-size: 12px;
  line-height: 1.38;
  text-align: left;
}

#share .share-facts {
  position: relative;
  z-index: 2;
  text-align: left;
  margin: 0;
}
#share {
  isolation: isolate;
  padding-bottom: 40px;
}
#share .feat-head {
  position: relative;
  z-index: 2;
  margin-bottom: 27px;
}
#share .share-showcase {
  z-index: 2;
  /* The supplied gallery capture carries transparent space above its window. */
  margin-top: -4px;
}
#share .share-tabs {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 0;
  width: 100%;
}
#share .share-tabs button {
  appearance: none;
  position: relative;
  display: grid;
  place-items: center;
  min-height: clamp(52px, 4.4vw, 60px);
  padding: 12px 10px;
  overflow: hidden;
  border: 0;
  border-radius: 0;
  margin: 0;
  background: rgba(255, 255, 255, .32);
  color: rgba(10, 10, 10, .22);
  cursor: pointer;
  font: 400 clamp(13px, 1.45vw, 17px)/1.1 var(--sans);
  letter-spacing: -.01em;
  text-align: center;
  transition: background-color .22s ease, color .22s ease;
}
#share .share-tabs button:first-child { border-radius: 18px 0 0; }
#share .share-tabs button:last-child { border-radius: 0 18px 0 0; }
#share .share-tabs button + button {
  border-left: 1px solid rgba(10, 10, 10, .08);
}
#share .share-tabs button::after {
  content: "";
  position: absolute;
  left: 0;
  bottom: 0;
  width: 100%;
  height: 1.5px;
  background: #007aff;
  transform: scaleX(0);
  transform-origin: left center;
}
#share .share-tabs button.is-progressing::after {
  animation: share-tab-progress var(--share-tab-duration, 4s) linear forwards;
}
#share .share-tabs button[aria-selected="true"] {
  background: #fff;
  color: var(--ink);
}
#share .share-tabs button:focus-visible {
  z-index: 1;
  outline: 2px solid #007aff;
  outline-offset: -3px;
}
#share .share-tab-panels {
  --share-copy-lift: clamp(8px, 1vw, 14px);
  position: relative;
  z-index: 1;
  display: grid;
  justify-items: center;
  min-height: 48px;
  padding-top: calc(clamp(40px, 4vw, 46px) - var(--share-copy-lift));
  padding-bottom: var(--share-copy-lift);
}
#share .share-tab-panels::before {
  content: "";
  position: absolute;
  z-index: -1;
  top: 0;
  left: calc(50% - 50vw);
  width: 100vw;
  height: clamp(280px, 28vw, 380px);
  pointer-events: none;
  background: linear-gradient(
    to bottom,
    #fff 0%,
    rgba(255, 255, 255, .96) 36%,
    rgba(255, 255, 255, .56) 72%,
    rgba(255, 255, 255, 0) 100%
  );
}
#share .share-tab-panels [role="tabpanel"] {
  position: relative;
  z-index: 1;
  max-width: 58ch;
  text-align: center;
}
#share .share-tab-panels p {
  margin: 0;
  font-size: clamp(17px, 1.7vw, 22px);
  line-height: 1.35;
}
@keyframes share-tab-progress {
  0% { transform: scaleX(0); }
  100% { transform: scaleX(1); }
}
@media (prefers-reduced-motion: reduce) {
  #share .share-tabs button[aria-selected="true"]::after { transform: scaleX(1); }
}

/* Keep the import/export section's white wash inside that section. */
#move::before {
  top: 0;
  height: calc(100% + var(--grid-fade-bottom));
}

.availability {
  max-width: var(--wrap);
  margin: 0 auto;
  display: grid;
  grid-template-columns: minmax(250px, .7fr) minmax(0, 1.3fr);
  column-gap: clamp(42px, 8vw, 130px);
  row-gap: 34px;
  align-items: start;
  padding: clamp(76px, 9vw, 118px) var(--gut);
  color: var(--ink);
}
.availability-head { max-width: 700px; }
.availability h2 {
  font-size: clamp(26px, 3.1vw, 38px);
  line-height: 1.1;
  letter-spacing: -.015em;
}
.availability-facts {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 26px;
  margin: 0;
}
.availability-facts article { border-top: 1px solid rgba(20,20,20,.8); padding-top: 16px; }
.availability h3 { margin: 0; font: 400 22px/1.1 var(--fat); letter-spacing: -.015em; }
.availability p { max-width: 220px; margin: 12px 0 0; font-size: 15.5px; line-height: 1.5; }
.availability-cta { width: fit-content; margin: 0; }

.facts-section { max-width: var(--wrap); margin: 0 auto; padding-bottom: clamp(90px, 10vw, 150px); }
.facts-section .faq-layout { display: block; }
.facts-section .faq-head { max-width: 700px; margin-bottom: 30px; }
.facts-section .faq-list { display: block; max-width: none; }
.facts-section .faq-item {
  width: 100%;
  padding: 0;
  border: 0;
  border-top: 1px solid rgba(10, 10, 10, .22);
  border-radius: 0;
  background: transparent;
  box-shadow: none;
}
.facts-section .faq-item:last-child { border-bottom: 1px solid rgba(10, 10, 10, .22); }
.facts-section .faq-item::after { display: none; }
.facts-section .faq-item summary { padding: 14px 0; font-size: clamp(19px, 1.8vw, 27px); }
.facts-section .faq-item summary > i::before,
.facts-section .faq-item summary > i::after { background: currentColor; }
.facts-section .faq-answer { max-width: 700px; padding: 0 0 16px; }

.site-footer-simple {
  max-width: var(--wrap);
  margin: 0 auto;
  padding: clamp(72px, 9vw, 118px) var(--gut) 30px;
  position: relative;
  isolation: isolate;
  /* Let the decorative wave extend above the footer without changing layout. */
  overflow: visible;
}
.site-footer-simple::before {
  display: none;
}
.site-footer-wave {
  position: absolute;
  z-index: -1;
  top: -80px;
  bottom: 0;
  left: 50%;
  width: calc(100vw + 120px);
  height: calc(100% + 80px);
  transform: translateX(-50%);
  pointer-events: none;
}
.site-footer-simple__main {
  display: grid;
  grid-template-columns: 1fr auto;
  gap: 32px;
  align-items: center;
  padding-bottom: 46px;
  border-bottom: 0;
}
.site-footer-simple__main p { margin: 0; font: 400 clamp(20px, 2vw, 28px)/1.1 var(--fat); letter-spacing: -.02em; }
.site-footer-simple .docs-footer { justify-content: center; padding: 22px 0 0; }
.site-footer-simple .docs-footer a,
.site-footer-simple .docs-footer a:hover { color: var(--bg); }
.footer-icon {
  position: absolute;
  left: var(--gut);
  bottom: 25px;
  width: 58px;
  height: auto;
}

.site-nav::before { display: none; }
.site-nav .btn-guide,
.site-nav .btn-guide[aria-current="page"] {
  border-color: transparent;
  background: #4b4b4b;
  box-shadow: none;
  color: #fff;
  -webkit-backdrop-filter: none;
  backdrop-filter: none;
}
.site-nav .btn-guide:hover { background: #626262; }

@media (max-width: 700px) {
  .site-header .logo-image { height: 32px; }
  .site-header .logo { top: 3px; }
  :root {
    --mobile-section-space: 60px;
    --mobile-content-space: 32px;
  }
  .hero.hero-refresh {
    padding-top: 112px;
    padding-bottom: 0;
  }
  .hero-refresh h1 { font-size: clamp(42px, 11vw, 56px); }
  .hero-refresh-actions { gap: 18px; flex-wrap: wrap; }
  .site-nav {
    overflow: visible;
    margin: 0;
    padding: 0;
    border: 0;
    border-radius: 0;
    background: transparent;
    box-shadow: none;
    -webkit-backdrop-filter: none;
    backdrop-filter: none;
  }
  .site-nav-toggle {
    position: relative;
    z-index: 3;
    display: grid;
    width: 32px;
    height: 32px;
    padding: 0;
    place-content: center;
    gap: 5px;
    border: 0;
    border-radius: 0;
    background: transparent;
    color: var(--ink);
    cursor: pointer;
  }
  .site-nav-toggle span {
    display: block;
    width: 22px;
    height: 2px;
    border-radius: 0;
    background: currentColor;
    transition: transform .18s ease, opacity .18s ease;
  }
  .site-nav.is-open .site-nav-toggle span:nth-child(1) { transform: translateY(7px) rotate(45deg); }
  .site-nav.is-open .site-nav-toggle span:nth-child(2) { opacity: 0; }
  .site-nav.is-open .site-nav-toggle span:nth-child(3) { transform: translateY(-7px) rotate(-45deg); }
  .site-nav-links {
    position: absolute;
    z-index: 2;
    top: calc(100% + 10px);
    right: 0;
    display: none;
    min-width: 180px;
    padding: 8px 0;
    flex-direction: column;
    align-items: stretch;
    gap: 4px;
    border: 1px solid rgba(255, 255, 255, .72);
    border-radius: 16px;
    background: rgba(224, 226, 228, .48);
    box-shadow: 0 14px 30px rgba(18, 18, 18, .14), inset 0 1px 0 rgba(255, 255, 255, .62);
    -webkit-backdrop-filter: blur(26px) saturate(.78);
    backdrop-filter: blur(26px) saturate(.78);
  }
  .site-nav.is-open .site-nav-links { display: flex; }
  .site-nav-links .btn-guide,
  .site-nav-links .btn-appstore {
    justify-content: flex-start;
    min-height: 48px;
    padding: 12px 18px;
    border: 0;
    border-radius: 0;
    background: transparent;
    box-shadow: none;
    color: var(--ink);
    font-size: 16px;
  }
  .site-nav-links .btn-guide svg,
  .site-nav-links .btn-appstore svg { display: none; }
  .site-nav-links .btn-guide:hover,
  .site-nav-links .btn-appstore:hover { background: rgba(10, 10, 10, .06); color: var(--ink); }
  /* Mobile sections share one visible handoff. Removing the old section
     padding prevents individual components from silently changing the gap. */
  .library-intro,
  #spotlight,
  #browse,
  #move,
  #share,
  #private,
  #faq {
    margin-top: var(--mobile-section-space);
    padding-top: 0;
    padding-bottom: 0;
  }
  /* The hero, introduction, spotlight, and browse examples are one
     continuous story on mobile, not separate sections. */
  .library-intro { margin-top: var(--mobile-section-space); }
  #spotlight { margin-top: var(--mobile-content-space); }
  #browse { margin-top: var(--mobile-section-space); }
  .library-intro { grid-template-columns: 1fr; gap: 22px; }
  #spotlight .spotlight-list {
    margin-block: 0;
    padding-block: 0;
  }
  #edit {
    margin-top: var(--mobile-section-space);
    margin-bottom: 0;
  }
  #browse .duo { gap: var(--mobile-section-space); }
  #browse .duo-col,
  #browse .duo-col:nth-child(n) { grid-template-columns: 1fr; gap: var(--mobile-content-space); }
  #browse .duo-col:nth-child(n) .product-demo,
  #browse .duo-col:nth-child(n) .feat-head { grid-column: auto; grid-row: auto; }
  #browse .duo-col:nth-child(n) .feat-head { order: 1; }
  #browse .duo-col:nth-child(n) .product-demo { order: 2; }
  #edit { grid-template-columns: 1fr; gap: 28px; padding: 24px; border-radius: 22px; }
  #edit .editor-copy { grid-column: auto; }
  #edit .feat-head.center,
  #edit .feat-shot.wide,
  #edit .text-features { grid-column: auto; grid-row: auto; }
  #edit .feat-shot.wide { order: 2; }
  #edit .text-features { order: 3; margin: 0; }
  #share .share-tabs { gap: 0; }
  #share .share-tabs button { min-height: 46px; padding: 9px 5px; font-size: 11px; }
  #share .share-tabs button:first-child { border-radius: 14px 0 0; }
  #share .share-tabs button:last-child { border-radius: 0 14px 0 0; }
  #share .share-tab-panels { padding: 32px 0 0; }
  #share .share-tab-panels::before { height: 250px; }
  #share .share-showcase { margin-top: 28px; }
  .site-footer-simple__main { grid-template-columns: 1fr; gap: 22px; }
  .site-footer-simple__main .btn-appstore { width: fit-content; justify-self: start; }
  .site-footer-simple .docs-footer { padding-bottom: 0; }
  .footer-icon {
    position: static;
    display: block;
    width: 46px;
    margin: 26px auto 0;
  }
  .availability { grid-template-columns: 1fr; gap: 34px; }
  .availability-facts { grid-template-columns: 1fr; gap: 30px; }
  .availability p { max-width: 300px; }
  .facts-section { padding-bottom: 0; }
  .site-footer-simple {
    margin-top: var(--mobile-section-space);
    padding-top: 0;
  }
}
