/* The pricing page. A sibling of static/advertise/advertise.css: the same dark
   hero, light wash, flat white cards with a soft shadow, and the site's type
   tokens. No card carries a rule on one side only. */
@layer components {
  .pr-page {
    --pr-card-shadow: 0 2px 6px rgb(27 26 32 / 3%), 0 10px 28px rgb(27 26 32 / 6%);
    --pr-accent: #5142ad;
    width: 100vw; margin-left: calc(50% - 50vw); color: #25212e; background: #fff;
  }
  .pr-container { max-width: 1200px; margin-inline: auto; padding-inline: 32px; }
  .pr-page :is(h1, h2, h3) { font-family: var(--font-display); text-wrap: balance; overflow-wrap: anywhere; hyphens: auto; }
    .pr-note { margin-top: 14px; font-size: var(--text-compact); line-height: 1.6; color: #756d80; }
  .pr-note a, .pr-section-lead a { color: var(--pr-accent); text-decoration: underline; text-underline-offset: 4px; }

  /* Hero */
  .pr-hero { background: #0f0d1f; color: #fff; padding-block: 56px 48px; }
  .pr-hero h1 { max-width: 820px; font-size: clamp(40px, 4.6vw, 64px); font-weight: 500; line-height: 1.05; letter-spacing: -.05em; }
  .pr-lead { margin-top: 24px; max-width: 600px; font-size: var(--text-intro); line-height: 1.6; color: #d4cfdf; }

  /* Currency switch: two radios styled as one segmented control. */
  .pr-plans { background: #f8f7f4; padding-block: 56px 72px; scroll-margin-top: 84px; }
  .pr-plans-head { display: flex; flex-wrap: wrap; align-items: center; gap: 12px 20px; margin-bottom: 28px; }
  .pr-plans-head .pr-note { margin-top: 0; }
  .pr-currency { display: inline-flex; padding: 3px; background: #fff; box-shadow: inset 0 0 0 1px #ddd7e6; }
  .pr-currency label { position: relative; cursor: pointer; }
  .pr-currency input { position: absolute; opacity: 0; inset: 0; margin: 0; cursor: pointer; }
  .pr-currency span { display: block; min-width: 56px; padding: 6px 14px; text-align: center; font-size: var(--text-compact); font-weight: 500; color: #5e5769; }
  .pr-currency input:checked + span { background: #0f0d1f; color: #fff; }
  .pr-currency input:focus-visible + span { outline: 2px solid #7362d4; outline-offset: 2px; }
  .pr-page [data-currency="eur"] { display: none; }
  .pr-page:has(input[name="pr-currency"][value="eur"]:checked) [data-currency="eur"] { display: inline; }
  .pr-page:has(input[name="pr-currency"][value="eur"]:checked) [data-currency="chf"] { display: none; }

  /* Plan cards */
  .pr-grid { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 20px; }
  .pr-plan { display: flex; flex-direction: column; padding: 28px 24px; background: #fff; box-shadow: var(--pr-card-shadow); }
  .pr-plan:is(.is-current, .is-recommended) { box-shadow: 0 0 0 2px var(--pr-accent), var(--pr-card-shadow); }
  .pr-plan.is-recommended .pr-badge { background: var(--pr-accent); color: #fff; }
  .pr-plan-top { display: flex; align-items: center; justify-content: space-between; gap: 8px; min-height: 28px; }
  .pr-plan h3 { font-size: var(--text-subheading); font-weight: 500; line-height: 1.3; }
  .pr-badge { padding: 2px 8px; background: #ece8f7; color: var(--pr-accent); font-size: var(--text-label); font-weight: 500; white-space: nowrap; }
  .pr-price { margin-top: 18px; display: flex; flex-wrap: wrap; align-items: baseline; gap: 4px 8px; }
  .pr-price > span:not(.pr-per) { font-family: var(--font-display); font-size: clamp(32px, 2.8vw, 40px); font-weight: 500; letter-spacing: -.04em; line-height: 1.05; font-variant-numeric: tabular-nums; }
  .pr-per { font-size: var(--text-compact); color: #756d80; }
  .pr-allowance { margin-top: 14px; font-size: var(--text-read); line-height: 1.5; color: #4b4557; }
  .pr-lists { margin-top: 2px; }
  .pr-allowance strong { font-weight: 600; color: #25212e; }
  .pr-fit { margin-top: 10px; font-size: var(--text-compact); line-height: 1.6; color: #6c657a; }
  .pr-action { margin-top: auto; padding-top: 24px; }
  .pr-page .pr-button { width: 100%; min-height: 44px; justify-content: center; font-size: var(--text-read); font-weight: 500; line-height: 1.4; text-decoration: none; }
  .pr-page .pr-button-quiet { background: #fff; color: #25212e; box-shadow: inset 0 0 0 1px #25212e; }
  .pr-page .pr-button-quiet:hover { background: #25212e; color: #fff; }

  .pr-enterprise-band { margin-top: 20px; display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between; gap: 16px 40px; padding: 24px; background: #0f0d1f; color: #fff; }
  .pr-enterprise-band h3 { font-size: var(--text-subheading); font-weight: 500; line-height: 1.3; }
  .pr-enterprise-band p { margin-top: 6px; max-width: 620px; font-size: var(--text-read); line-height: 1.55; color: #d4cfdf; }
  .pr-enterprise-band .pr-button { width: auto; min-width: 200px; }

  /* Sections */
  .pr-section { padding-block: 80px; }
  .pr-section-wash { background: #f8f7f4; }
  .pr-section h2 { font-size: clamp(30px, 3.2vw, 44px); font-weight: 500; line-height: 1.1; letter-spacing: -.04em; }
  .pr-section-lead { margin-top: 16px; max-width: 640px; font-size: var(--text-detail); line-height: 1.65; color: #696471; }

  /* Comparison table: hairlines under each row, no boxes. */
  .pr-table-wrap { margin-top: 32px; }
  .pr-table { width: 100%; min-width: 640px; table-layout: fixed; border-collapse: collapse; font-variant-numeric: tabular-nums; }
  .pr-table thead > tr > :first-child { width: 30%; }
  .pr-table :is(th, td) { padding: 14px 16px 14px 0; text-align: left; vertical-align: baseline; border-bottom: 1px solid #e9e5ef; font-size: var(--text-read); line-height: 1.5; }
  /* The plan names stay in view below the site header while the rows scroll. */
  .pr-table thead :is(th, td) { position: sticky; top: var(--header-height, 64px); z-index: 1; background: #fff; box-shadow: 0 1px 0 #e9e5ef; }
  .pr-table thead th { font-family: var(--font-display); font-size: var(--text-subheading); font-weight: 500; color: #25212e; }
  /* height: 1px lets each button fill its cell, so a label that wraps in one
     column makes every button in the row as tall as it. */
  .pr-table tfoot td { height: 1px; padding-top: 24px; border-bottom: 0; vertical-align: top; }
  .pr-table tfoot td > form, .pr-table tfoot .pr-button { height: 100%; }
  .pr-table tfoot .pr-button { min-height: 44px; padding-inline: 8px; text-align: center; white-space: normal; }
  .pr-table tbody th { font-weight: 400; color: #6c657a; }
  .pr-table tbody td { color: #25212e; }

  /* Feature rows: a check for each plan that has the feature. */
  .pr-table .pr-group th { padding-top: 36px; font-family: var(--font-display); font-size: var(--text-subheading); font-weight: 500; color: #25212e; }
  .pr-table .pr-check { width: 20px; height: 20px; vertical-align: -4px; color: var(--pr-accent); }
  .pr-table .pr-partial { font-size: var(--text-compact); color: #6c657a; }
  .pr-table .pr-none { color: #b3acbd; }

  /* FAQ */
  .pr-faq-grid { display: grid; grid-template-columns: minmax(0, .8fr) minmax(0, 1.4fr); gap: 72px; }
  .pr-faq details { border-bottom: 1px solid #e9e5ef; }
  .pr-faq summary { cursor: pointer; padding: 18px 0; font-size: var(--text-heading); font-weight: 500; line-height: 1.5; }
  .pr-faq details:first-child summary { padding-top: 0; }
  .pr-faq details > p { padding-bottom: 18px; color: #696471; line-height: 1.7; font-size: var(--text-read); }
  .pr-faq summary:focus-visible { outline: 2px solid #7362d4; outline-offset: 5px; }

  /* Enterprise form */
  .pr-enterprise-grid { display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 1fr); gap: 64px; align-items: start; scroll-margin-top: 84px; }
  #enterprise { scroll-margin-top: 64px; }
  .pr-form { display: grid; gap: 18px; padding: 32px; background: #fff; box-shadow: var(--pr-card-shadow); }
  .pr-form label > span:first-child { display: block; margin-bottom: 6px; font-size: var(--text-label); font-weight: 500; color: #4b4557; }
  .pr-form :is(input, textarea) { width: 100%; padding: 9px 12px; background: #fff; border: 1px solid #d6d0de; font-size: var(--text-read); line-height: 1.5; color: #25212e; }
  .pr-form :is(input, textarea):focus { outline: none; border-color: #25212e; box-shadow: 0 0 0 1px #25212e; }
  .pr-form [aria-invalid="true"] { border-color: #b4234a; }
  .pr-error { display: block; margin-top: 4px; font-size: var(--text-compact); color: #b4234a; }
  .pr-thanks { margin-bottom: 18px; padding: 16px 20px; background: #ece8f7; color: #25212e; font-size: var(--text-read); line-height: 1.55; }

  @media (max-width: 767px) {
    /* The table scrolls sideways in its frame, so the header stays put. */
    .pr-table-wrap { position: relative; overflow-x: auto; -webkit-overflow-scrolling: touch; }
    .pr-table thead :is(th, td) { position: static; }
  }

  @media (max-width: 1023px) {
    .pr-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); }
    .pr-faq-grid, .pr-enterprise-grid { grid-template-columns: minmax(0, 1fr); gap: 32px; }
  }

  @media (max-width: 639px) {
    .pr-container { padding-inline: 16px; }
    .pr-hero { padding-block: 56px 48px; }
    .pr-plans { padding-block: 40px 56px; }
    .pr-section { padding-block: 56px; }
    .pr-grid { grid-template-columns: minmax(0, 1fr); }
    .pr-form { padding: 20px; }
    .pr-enterprise-band .pr-button { width: 100%; }
  }
}
