/* The Arrive Plus + page (_layouts/plus.liquid). The plan card follows the app's Get Arrive Plus + dialog. */

.plus-page {
  --plus-card-bg: linear-gradient(180deg, #2c1a2c, #22172a);
  --plus-section-space: 112px;
}

.plus-page .section {
  padding-top: var(--plus-section-space);
}

.plus-section-title {
  margin-bottom: 32px;
}

/* Hero: the pitch on the left, the plan card on the right, over a faint field of server dots. */

.plus-hero {
  position: relative;
  display: grid;
  grid-template-columns: minmax(0, 1.1fr) minmax(0, 0.9fr);
  align-items: center;
  gap: 48px 72px;
  padding-top: 64px;
}

.plus-hero::before {
  position: absolute;
  z-index: -1;
  inset: -40px 0 -80px 40%;
  background:
    radial-gradient(closest-side, rgba(254, 45, 118, 0.16), transparent),
    radial-gradient(circle, rgba(255, 255, 255, 0.09) 1.5px, transparent 2px) 0 0 / 28px 28px;
  content: '';
  mask-image: radial-gradient(closest-side, #000 40%, transparent);
  pointer-events: none;
}

.plus-hero-copy {
  display: grid;
  gap: 20px;
}

.plus-hero h1 {
  font-size: clamp(2.75rem, 6vw, 4.5rem);
  line-height: 1;
}

.plus-hero .lead {
  max-width: 34ch;
}

.plus-hero-note {
  margin-top: -8px;
  color: var(--light);
  font-weight: 700;
}

/* The plan card, as the app draws it: Catamaran for the heading, Karla for everything else. */

.plus-card {
  display: grid;
  gap: 20px;
  padding: 36px;
  border: 1px solid var(--glass-border);
  border-radius: var(--radius-xl);
  background: var(--plus-card-bg);
  box-shadow: var(--shadow-float), 0 0 80px rgba(254, 45, 118, 0.12);
}

.plus-card-heading {
  font-size: clamp(1.625rem, 3vw, 2rem);
  font-weight: 800;
  letter-spacing: 0.02em;
  text-transform: uppercase;
}

.plus-card-sub {
  margin-top: -12px;
  color: var(--text);
  font-size: var(--text-lead);
}

.plus-card-plan {
  display: grid;
  gap: 20px;
  padding: 24px 28px;
  border: 1px solid var(--brand);
  border-radius: var(--radius);
  background: var(--brand-soft);
  box-shadow: 0 0 24px rgba(254, 45, 118, 0.12);
}

.plus-card-price {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  padding-bottom: 20px;
  border-bottom: 1px solid var(--brand-border);
  color: var(--gray);
  font-size: var(--text-lead);
  font-weight: 700;
}

.plus-card-price p {
  white-space: nowrap;
}

.plus-card-price strong {
  color: var(--light);
  font-size: 2rem;
  font-weight: 800;
}

/* USD or CAD, like a two-way switch in the app. */
.plus-currency {
  display: flex;
  flex: none;
  padding: 2px;
  border: 1px solid var(--brand-border);
  border-radius: var(--radius-pill);
  background: rgba(0, 0, 0, 0.2);
}

.plus-currency button {
  min-height: 30px;
  padding: 0 10px;
  border: 0;
  border-radius: var(--radius-pill);
  background: none;
  color: var(--gray);
  font: 700 0.8125rem / 1 var(--font-body);
  letter-spacing: 0.04em;
  cursor: pointer;
  transition: color var(--ease), background-color var(--ease);
}

.plus-currency button:hover {
  color: var(--light);
}

.plus-currency button[aria-pressed='true'] {
  background: var(--brand);
  color: #fff;
}

.plus-card-features {
  display: grid;
  gap: 14px;
  margin: 0;
  padding: 0;
  list-style: none;
  color: var(--contrast);
  font-size: var(--text-small);
}

.plus-card-features li {
  display: flex;
  align-items: flex-start;
  gap: 14px;
}

.plus-card-features strong {
  color: var(--light);
}

.plus-card .icon-check,
.ad-free .icon-check {
  flex: none;
  width: 18px;
  height: 18px;
  margin-top: 3px;
  fill: none;
  stroke: var(--brand);
  stroke-width: 2;
  stroke-linecap: round;
  stroke-linejoin: round;
}

.plus-card-button {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 12px;
  min-height: 64px;
  margin-top: 8px;
  padding: 0 24px;
  border-radius: var(--radius-pill);
  background: var(--brand);
  box-shadow: 0 8px 24px rgba(254, 45, 118, 0.3);
  color: #fff;
  font: 800 1.25rem / 1 var(--font-body);
  letter-spacing: 0.03em;
  text-transform: uppercase;
  white-space: nowrap;
  transition: filter var(--ease), box-shadow var(--ease);
}

.plus-card-button:hover {
  filter: brightness(1.08);
  box-shadow: 0 8px 32px rgba(254, 45, 118, 0.45);
}

.plus-card-button svg {
  width: 20px;
  height: 20px;
  fill: currentColor;
}

.plus-card-note,
.plus-card-upgrade {
  color: var(--gray);
  font-size: var(--text-small);
  text-align: center;
}

.plus-card-note {
  margin-top: -4px;
}

.plus-card-upgrade {
  margin-top: -14px;
}

/* Under the hero's intro: where people who already have Plus + learn to use it. */

.plus-members {
  display: grid;
  justify-items: start;
  max-width: 440px;
  margin-top: 8px;
  padding-top: 20px;
  border-top: 1px solid var(--hairline);
}

.plus-members p {
  margin-bottom: 4px;
  color: var(--gray);
  font-size: var(--text-small);
}

.plus-members .text-arrow {
  margin-top: 0;
  color: var(--light);
  transition: color var(--ease);
}

.plus-members .text-arrow:hover {
  color: #fff;
}

/* What you get: one card per feature, each with a small visual. */

.plus-features {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 24px;
}

.plus-feature {
  display: flex;
  flex-direction: column;
  gap: 14px;
  padding: 24px 24px 20px;
  border: 1px solid var(--hairline);
  border-radius: var(--radius-lg);
  background: var(--tile-bg);
}

.plus-feature h3 {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 10px;
  margin-top: 6px;
}

.plus-feature p {
  flex: 1;
  color: var(--text);
  font-size: var(--text-small);
}

.plus-feature-visual {
  display: grid;
  place-items: center;
  height: 176px;
  padding: 20px 24px;
  border: 1px solid var(--hairline-faint);
  border-radius: var(--radius-md);
  background: var(--fill-subtle);
}

.plus-badge {
  padding: 3px 10px;
  border: 1px solid var(--brand-border);
  border-radius: var(--radius-pill);
  background: var(--brand-bg);
  color: var(--brand);
  font: 700 var(--text-meta) / 1.2 var(--font-body);
  letter-spacing: 0.06em;
  text-transform: uppercase;
}

.plus-feature-visual .jitter-chart {
  max-height: 96px;
}

/* Server dots, with a few pink "+" among them. */

.plus-servers {
  --dot: 8px;
  display: grid;
  grid-template-columns: repeat(8, minmax(0, 1fr));
  justify-items: center;
  gap: 18px 0;
  width: min(100%, 300px);
}

.plus-servers i {
  position: relative;
  display: block;
  width: 16px;
  height: 16px;
}

.plus-servers i::before {
  position: absolute;
  inset: calc(50% - var(--dot) / 2);
  border-radius: 50%;
  background: var(--light);
  content: '';
  opacity: 0.55;
}

.plus-servers i.is-plus::before,
.plus-servers i.is-plus::after {
  inset: 50% 0 auto;
  height: 3px;
  margin-top: -1.5px;
  border-radius: 2px;
  background: var(--brand);
  box-shadow: var(--brand-glow);
  opacity: 1;
}

.plus-servers i.is-plus::after {
  position: absolute;
  content: '';
  transform: rotate(90deg);
}

/* An empty ad slot and a pink check. */

.ad-free {
  display: grid;
  justify-items: center;
  gap: 16px;
}

.ad-free-slot {
  width: 148px;
  height: 56px;
  border: 1px dashed rgba(255, 255, 255, 0.18);
  border-radius: var(--radius-xs);
}

.ad-free-label {
  display: flex;
  align-items: center;
  gap: 8px;
  color: var(--light);
  font: 800 1.375rem / 1 var(--font-display);
}

.ad-free-label .icon-check {
  margin-top: 0;
}

/* Arrive is still free. */

.plus-free {
  display: grid;
  justify-items: center;
  gap: 16px;
  max-width: var(--measure-wide);
  margin: 0 auto;
  padding: 56px 40px;
  border: 1px solid var(--hairline);
  border-radius: var(--radius-xl);
  background: var(--panel-bg);
  text-align: center;
}

.plus-free mark {
  background: none;
  color: var(--brand);
}

.plus-free p {
  max-width: 60ch;
  color: var(--text);
}

.plus-faq {
  max-width: var(--measure-wide);
}

@media (max-width: 960px) {
  .plus-page {
    --plus-section-space: 88px;
  }

  .plus-hero {
    grid-template-columns: minmax(0, 1fr);
  }

  .plus-hero::before {
    inset: 30% 0 -40px;
  }

  .plus-features {
    grid-template-columns: minmax(0, 1fr);
  }
}

@media (max-width: 560px) {
  .plus-page {
    --plus-section-space: 72px;
  }

  .plus-card {
    padding: 24px 20px;
  }

  .plus-card-plan {
    padding: 20px;
  }

  .plus-free {
    padding: 40px 24px;
  }

  .plus-card-price strong {
    font-size: 1.75rem;
  }

  .plus-card-button {
    min-height: 56px;
    font-size: 1.0625rem;
  }

}
