/* Apricity product pages (/apricity/, plus the tab bar on Help & Support,
   Privacy and Terms). Builds on the shared marketing sections (ms-*), the
   scroll story (story.css) and the device mockup; this file only adds the
   hero, the page tabs, the scene photos and the plan cards.
   Link it AFTER marketing-sections.css. */

/* --------------------------------------------------------------------------
   Page tabs: Help & Support / Privacy / Terms. The same capsule as the
   Features chapters; the current page is filled with ink.
   -------------------------------------------------------------------------- */
.apricity-tabs {
  display: flex;
  justify-content: center;
}

.apricity-tabs__list {
  display: inline-flex;
  align-items: center;
  gap: 4px;
  max-width: 100%;
  margin: 0;
  padding: 5px;
  list-style: none;
  border: 1px solid var(--hair-2, rgba(11, 11, 11, .14));
  border-radius: 999px;
  background: rgba(255, 255, 255, .9);
  box-shadow: 0 18px 44px -34px rgba(11, 11, 11, .38), 0 2px 10px rgba(11, 11, 11, .05);
}

.apricity-tabs__list li {
  min-width: 0;
}

.apricity-tabs a {
  display: flex;
  align-items: center;
  justify-content: center;
  min-height: 40px;
  padding: 8px 18px;
  border: 1px solid transparent;
  border-radius: 999px;
  font-family: var(--font-serif, var(--serif));
  font-size: 17px;
  line-height: 1.1;
  letter-spacing: -.01em;
  white-space: nowrap;
  color: var(--ink);
  text-decoration: none;
  transition: background-color .2s ease, color .2s ease;
}

@media (hover: hover) {
  .apricity-tabs a:hover {
    background: rgba(115, 124, 71, .08);
  }
}

.apricity-tabs a:focus-visible {
  outline: 2px solid var(--accent-olive, #737C47);
  outline-offset: 1px;
}

.apricity-tabs a[aria-current="page"],
.apricity-tabs a[aria-current="page"]:hover {
  border-color: var(--ink);
  background: var(--ink);
  color: var(--bg, #FAF9F7);
}

html[data-theme="dark"] .apricity-tabs__list {
  border-color: var(--hair-2, rgba(255, 255, 255, .16));
  background: rgba(27, 27, 27, .86);
  box-shadow: 0 22px 50px -34px rgba(0, 0, 0, .82);
}

@media (max-width: 420px) {
  .apricity-tabs a {
    padding-inline: 12px;
    font-size: 16px;
  }
}

/* On the document pages (always white, see terms-document.css) the tabs sit
   above the title. */
.terms-document .apricity-tabs {
  justify-content: flex-start;
  margin: 0 0 56px;
}

.terms-document .apricity-tabs__list {
  border-color: #e6e6e6;
  background: #fff;
  box-shadow: none;
}

.terms-document .apricity-tabs a {
  color: #1d1d1f;
}

.terms-document .apricity-tabs a[aria-current="page"],
.terms-document .apricity-tabs a[aria-current="page"]:hover {
  border-color: #1d1d1f;
  background: #1d1d1f;
  color: #fff;
}

/* --------------------------------------------------------------------------
   Hero
   -------------------------------------------------------------------------- */
.apricity-hero {
  padding-top: clamp(132px, 12vw, 168px);
  padding-bottom: clamp(40px, 5vw, 72px);
  text-align: center;
}

.apricity-hero__from {
  display: flex;
  justify-content: center;
  align-items: center;
  gap: 12px;
  margin: 0 0 clamp(22px, 3vw, 34px);
  color: var(--ms-eyebrow-color, #68713F);
  font-family: var(--sans);
  font-size: 12.5px;
  font-weight: 600;
  letter-spacing: .14em;
  text-transform: uppercase;
}

.apricity-hero__from::before,
.apricity-hero__from::after {
  content: "";
  width: 28px;
  height: 1px;
  background: currentColor;
  opacity: .5;
}

.apricity-hero h1 {
  max-width: 15ch;
  margin: 0 auto;
  font-family: var(--font-serif, var(--serif));
  font-size: clamp(54px, 8.2vw, 118px);
  font-weight: 400;
  line-height: .9;
  letter-spacing: -.045em;
  color: var(--ink);
}

.apricity-hero h1 em {
  display: block;
  font-style: normal;
  color: var(--accent-olive, #737C47);
}

.apricity-hero .ms-actions {
  justify-content: center;
  margin-top: clamp(32px, 4vw, 44px);
}

.apricity-store-badge {
  display: inline-block;
  line-height: 0;
  border-radius: 10px;
  transition: transform .2s ease;
}

.apricity-store-badge img {
  width: auto;
  height: 54px;
}

/* theme.css whitens SVG art in the dark theme; the badge keeps Apple's look,
   as the footer's badges do. */
html[data-theme="dark"] .apricity-store-badge img {
  filter: none;
}

.apricity-store-badge:hover {
  transform: translateY(-1px);
}

.apricity-store-badge:focus-visible {
  outline: 2px solid var(--accent-olive, #737C47);
  outline-offset: 3px;
}

/* The film's frame of every device on pure white (the film's warm drop
   shadows are taken out); it stays white in the dark theme, like a lit
   window. */
.apricity-devices {
  max-width: 1180px;
  margin: clamp(44px, 6vw, 76px) auto 0;
  padding: clamp(18px, 3vw, 44px) clamp(18px, 4vw, 64px) clamp(8px, 1.5vw, 20px);
  border: 1px solid var(--site-card-border, rgba(11, 11, 11, .08));
  border-radius: 34px;
  background: #fff;
}

.apricity-devices img {
  width: 100%;
  height: auto;
}

@media (max-width: 720px) {
  .apricity-devices {
    border-radius: 24px;
  }

  .apricity-store-badge img {
    height: 48px;
  }
}

/* --------------------------------------------------------------------------
   The name, beside the iPad in the Grasscloth Study
   -------------------------------------------------------------------------- */
.apricity-name .ms-definition__term {
  letter-spacing: .04em;
}

.apricity-name .ms-split__text > p:not(.ms-eyebrow) {
  margin-top: 28px;
}

/* Apple's iPad Pro 13 (silver) product bezel from the launch film over the
   screenshot: the bezel is 2300 x 3000 and its screen opening sits at
   (118, 124, 2064 x 2752), the size of the iPad captures. */
.apricity-ipad {
  position: relative;
  width: min(440px, 100%);
  aspect-ratio: 2300 / 3000;
  margin: 0 auto;
}

.apricity-ipad::after {
  content: "";
  position: absolute;
  inset: 0;
  background: url("/assets/devices/ipad-pro-13-silver.webp") center / 100% 100% no-repeat;
  filter: drop-shadow(0 22px 30px rgba(17, 17, 17, .18)) drop-shadow(0 5px 10px rgba(17, 17, 17, .09));
  pointer-events: none;
}

html[data-theme="dark"] .apricity-ipad::after {
  filter: drop-shadow(0 22px 34px rgba(0, 0, 0, .45)) drop-shadow(0 5px 10px rgba(0, 0, 0, .3));
}

.apricity-ipad img {
  position: absolute;
  left: 5.13%;
  top: 4.133%;
  width: 89.739%;
  height: 91.733%;
  border-radius: 2.18% / 1.635%;
  object-fit: cover;
}

/* --------------------------------------------------------------------------
   Scenes: where people read
   -------------------------------------------------------------------------- */
.apricity-scenes {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: clamp(16px, 2vw, 24px);
  margin: 0;
  padding: 0;
  list-style: none;
}

.apricity-scene {
  margin: 0;
}

.apricity-scene .ms-photo {
  --ms-photo-ratio: 4 / 5;
}

.apricity-scene figcaption {
  margin-top: 18px;
}

.apricity-scene h3 {
  font-family: var(--font-serif, var(--serif));
  font-size: var(--ms-title-4, 24px);
  font-weight: 400;
  line-height: 1.15;
  letter-spacing: -.02em;
  color: var(--ink);
}

.apricity-scene p {
  margin-top: 8px;
  max-width: 34ch;
  color: var(--ms-body-color, var(--ink-2));
  font-size: 15.5px;
  line-height: 1.6;
}

@media (max-width: 860px) {
  .apricity-scenes {
    grid-template-columns: minmax(0, 1fr);
    gap: 40px;
  }

  .apricity-scene .ms-photo {
    --ms-photo-ratio: 3 / 2;
  }
}

/* --------------------------------------------------------------------------
   Free and Premium: the Pricing page's plan cards (pricing.css), two across.
   The card titles are h3 here, under the section's h2.
   -------------------------------------------------------------------------- */
.apricity-plans .price-board {
  max-width: 780px;
}

.apricity-plans .plan-grid {
  grid-template-columns: repeat(2, minmax(0, 1fr));
}

.apricity-plans .plan-card h3 {
  margin: 0;
  font-family: var(--font-serif, var(--serif));
  font-size: clamp(24px, 2.4vw, 29px);
  font-weight: 400;
  line-height: 1.04;
  letter-spacing: -.025em;
  text-align: center;
  color: var(--ink);
}

.apricity-plans .price-note {
  max-width: 62em;
}

html[data-theme="dark"] .apricity-plans .plan-card--free .plan-cta {
  border-color: rgba(255, 255, 255, .28);
  background: transparent;
  color: #F2F2F2;
  box-shadow: none;
}

html[data-theme="dark"] .apricity-plans .plan-card--free .plan-cta:hover {
  border-color: #F2F2F2;
  background: #F2F2F2;
  color: #111111;
}

@media (max-width: 760px) {
  .apricity-plans .plan-grid {
    grid-template-columns: minmax(0, 1fr);
    max-width: 460px;
    margin-inline: auto;
  }
}

/* --------------------------------------------------------------------------
   Questions, then the page tabs, then the closing band
   -------------------------------------------------------------------------- */
.apricity-faq {
  display: block;
  max-width: 780px;
  margin-inline: auto;
}

.apricity-help .apricity-tabs {
  margin-top: clamp(40px, 5vw, 64px);
}

.apricity-cta.ms-cta::after {
  content: "Apricity";
  letter-spacing: .02em;
}

.apricity-cta .apricity-store-badge img {
  height: 56px;
}

.apricity-inline-link {
  color: var(--ink);
  text-decoration: underline;
  text-underline-offset: 2px;
}
