/* Pricing (views/sw_pricing.templ), on the kit in swiss.css, as Paper's "Pricing · Swiss" draws it at 1440: the tabs
   and the price tiles in the first screen, then 01 included, 02 what a payment costs, 03 questions. */

/* The first screen: the words 110px under the bar, then the tiles 72px under the tabs. */
.swp .sw-hero {
  gap: clamp(48px, 5vw, 72px);
  padding-top: clamp(64px, 7.64vw, 110px);
}
.swp-pitch {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 28px;
}
.swp-sub {
  max-width: 720px;
  font-size: clamp(17px, 1rem + 0.3vw, 20px);
  letter-spacing: 0;
  line-height: 1.45;
}

/* The tabs: an ink outline, the shown one an ink pill; each a link to its state. */
.swp-tabs {
  display: flex;
  gap: 4px;
  padding: 4px;
  border: 1px solid var(--db-fg);
  border-radius: 999px;
}
.swp-tab {
  padding: 10px 22px;
  border-radius: 999px;
  font-size: 16px;
  font-weight: 500;
  line-height: 20px;
  color: var(--db-fg-2);
}
.sw-page .swp-tab--on {
  background: var(--db-fg);
  color: var(--db-bg);
}
.swp-tab:not(.swp-tab--on):hover {
  color: var(--db-fg);
  background: var(--db-hover);
}

/* The price: the big tile in the tab's field beside four promises in four fields, then two notes. */
.swp-price {
  display: flex;
  flex-direction: column;
  gap: 20px;
  width: min(var(--sw-col), 100%);
  text-align: left;
}
.swp-tiles {
  display: flex;
  height: 440px;
}
.swp-big,
.swp-tile {
  display: flex;
  flex-direction: column;
  justify-content: space-between;
  background: var(--db-field);
  color: var(--db-field-ink);
}
.swp-big {
  flex: 1 1 0;
  min-width: 0;
  padding: 28px;
}
.swp-big__per {
  font-family: var(--sw-sans);
  font-size: 14px;
  font-weight: 500;
  letter-spacing: -0.005em;
  line-height: 16px;
}
.swp-big__amount {
  display: flex;
  align-items: flex-start;
  gap: 6px;
}
.swp-cur {
  font-size: clamp(44px, 5vw, 72px);
  letter-spacing: -0.03em;
  line-height: 1.25;
}
.swp-num {
  font-size: clamp(160px, 22.2vw, 320px);
  letter-spacing: -0.06em;
  line-height: 0.8;
}
.swp-four {
  display: grid;
  flex: 1 1 0;
  grid-template-columns: 1fr 1fr;
  min-width: 0;
}
.swp-tile {
  gap: 16px;
  padding: 24px;
}
.swp-tile__n {
  font-family: var(--sw-sans);
  font-size: 14px;
  font-weight: 500;
  letter-spacing: -0.005em;
  line-height: 16px;
}
.swp-tile__t {
  font-size: clamp(22px, 1rem + 1.1vw, 32px);
  letter-spacing: -0.025em;
  line-height: 1.0625;
}
.swp-small {
  display: flex;
  flex-wrap: wrap;
  justify-content: space-between;
  gap: 8px 24px;
  font-size: 16px;
  line-height: 22px;
  color: var(--db-fg-2);
}
.swp-small a {
  color: var(--db-fg);
  text-decoration: underline;
  text-decoration-thickness: 1px;
  text-underline-offset: 3px;
}
@media (max-width: 900px) {
  .swp-tiles {
    flex-direction: column;
    height: auto;
  }
  .swp-big {
    gap: 48px;
  }
  .swp-tile {
    min-height: 168px;
  }
}
@media (max-width: 480px) {
  .swp-big {
    padding: 20px;
  }
  .swp-tile {
    min-height: 150px;
    padding: 16px;
  }
  .swp-tabs {
    width: 100%;
  }
  .swp-tab {
    flex: 1;
    padding-inline: 12px;
    text-align: center;
  }
  .swp-sub br {
    display: none;
  }
}

/* Section headings: 48/50 at 1440. */
.swp-h2 {
  font-size: clamp(30px, 1.2rem + 1.95vw, 48px);
  font-weight: 400;
  letter-spacing: -0.03em;
  line-height: 1.04;
  text-wrap: balance;
}

/* 01 Included: the ruled head (title, then See every feature at its foot), then the six areas across the whole
   column, each a field tile over its features. */
.swp-wide {
  display: flex;
  flex-direction: column;
  gap: 56px;
  width: min(var(--sw-col), 100% - 2 * var(--sw-gutter));
  margin-inline: auto;
}
.swp-wide > .sw-sec {
  width: 100%;
}
.sw-sec__body.swp-inc {
  flex-direction: row;
  align-items: flex-end;
  justify-content: space-between;
  gap: 24px 40px;
}
.swp-inc .swp-h2 {
  max-width: 760px;
}
.swp-all {
  flex-shrink: 0;
  font-size: 17px;
  font-weight: 500;
  line-height: 22px;
  white-space: nowrap;
  text-decoration: underline;
  text-decoration-thickness: 1px;
  text-underline-offset: 4px;
}
.swp-all:hover {
  text-decoration-thickness: 2px;
}
.swp-areas {
  display: grid;
  grid-template-columns: repeat(6, minmax(0, 1fr));
}
.swp-area {
  --swp-tick: var(--db-field);
  display: flex;
  flex-direction: column;
  min-width: 0;
}
.swp-area[data-db-field="lagoon"] {
  --swp-tick: var(--db-field-text);
}
.swp-area[data-db-field="saffron"],
.swp-area:not([data-db-field]) {
  --swp-tick: var(--db-fg);
}
.swp-area__head {
  display: flex;
  flex-direction: column;
  justify-content: space-between;
  height: 200px;
  padding: 24px;
  background: var(--db-field);
}
.sw-page .swp-area__head {
  color: var(--db-field-ink);
}
.sw-page .swp-area:not([data-db-field]) .swp-area__head {
  background: var(--db-inverse);
  color: var(--db-on-inverse);
}
.swp-area__name {
  font-size: clamp(24px, 1rem + 1vw, 32px);
  font-weight: 400;
  letter-spacing: -0.025em;
  line-height: 1.0625;
}
.swp-area__head:hover .swp-area__name {
  text-decoration: underline;
  text-decoration-thickness: 1px;
  text-underline-offset: 5px;
}
.swp .swp-area__list {
  flex: 1;
  padding: 8px 20px 0 24px;
  border-right: 1px solid var(--db-edge-2);
}
.swp-area:last-child .swp-area__list {
  border-right: 0;
}
.swp-area__list li {
  display: flex;
  align-items: center;
  gap: 10px;
  min-height: 64px;
  padding-block: 8px;
  border-bottom: 1px solid var(--db-edge-2);
  font-size: 16px;
  line-height: 20px;
}
.swp-area__list li:last-child {
  border-bottom: 0;
}
.swp-tick {
  flex-shrink: 0;
  fill: none;
  stroke: var(--swp-tick, var(--db-field));
  stroke-width: 1.8;
  stroke-linecap: round;
  stroke-linejoin: round;
}
@media (max-width: 1180px) {
  .swp-areas {
    grid-template-columns: repeat(3, minmax(0, 1fr));
    row-gap: 40px;
  }
  .swp-area:nth-child(3n) .swp-area__list {
    border-right: 0;
  }
}
@media (max-width: 900px) {
  .sw-sec__body.swp-inc {
    flex-direction: column;
    align-items: flex-start;
  }
}
@media (max-width: 640px) {
  .swp-areas {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }
  .swp-area:nth-child(3n) .swp-area__list {
    border-right: 1px solid var(--db-edge-2);
  }
  .swp-area:nth-child(2n) .swp-area__list {
    border-right: 0;
  }
  .swp-area__head {
    height: 120px;
    padding: 16px;
  }
  .swp .swp-area__list {
    padding: 4px 12px 0 16px;
  }
  .swp-area__list li {
    align-items: flex-start;
    gap: 8px;
    min-height: 52px;
    padding-block: 12px;
    font-size: 15px;
  }
  .swp-area__list .swp-tick {
    margin-top: 3px;
  }
}

/* 02 what a payment costs: the head, three figures under ink rules, and what the 0.7% pays for on a white card. */
.swp-pay {
  display: flex;
  flex-direction: column;
  gap: 48px;
}
.swp-head {
  display: flex;
  flex-direction: column;
  gap: 18px;
}
.swp-pay .swp-h2 {
  max-width: 860px;
}
.swp-lead {
  max-width: 760px;
  font-size: clamp(17px, 1rem + 0.3vw, 20px);
  letter-spacing: -0.01em;
  line-height: 1.4;
  color: var(--db-fg-2);
}
.swp-figs {
  display: flex;
  gap: 24px;
  container-type: inline-size;
}
.swp-fig {
  display: flex;
  flex: 1 1 0;
  flex-direction: column;
  gap: 16px;
  min-width: 0;
  padding-top: 20px;
  border-top: 1.5px solid var(--db-fg);
}
.swp-fig__v {
  font-size: clamp(44px, 9.8cqi, 96px);
  letter-spacing: -0.05em;
  line-height: 0.96;
  white-space: nowrap;
}
.swp-fig__small {
  font-size: 0.458em;
  letter-spacing: -0.03em;
  color: var(--db-fg-2);
}
.swp-fig__t {
  font-size: 18px;
  line-height: 24px;
}
.swp-covers {
  display: flex;
  flex-direction: column;
  gap: 20px;
  padding: 28px 32px;
  border: 1px solid var(--db-edge-2);
  background: var(--db-raised);
}
.swp-covers__t {
  font-size: 20px;
  font-weight: 400;
  letter-spacing: -0.01em;
  line-height: 26px;
}
.swp-covers__list {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 16px 24px;
}
.swp-covers__list li {
  display: flex;
  align-items: center;
  gap: 10px;
  padding-top: 16px;
  border-top: 1px solid var(--db-edge-2);
  font-size: 16px;
  line-height: 20px;
}
@media (max-width: 1100px) {
  .swp-covers__list {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }
}
@media (max-width: 640px) {
  .swp-figs {
    flex-direction: column;
    gap: 32px;
  }
  .swp-fig__v {
    font-size: clamp(56px, 18cqi, 96px);
  }
  .swp-covers {
    padding: 24px 20px;
  }
  .swp-covers__list {
    grid-template-columns: 1fr;
  }
}

/* 03 questions: a ruled row each, the question beside its answer. */
.swp-asks {
  display: flex;
  flex-direction: column;
  gap: 40px;
}
.swp-q {
  display: flex;
  gap: 40px;
  padding-block: 28px;
  border-bottom: 1px solid var(--db-edge-2);
}
.swp-q__q {
  flex-shrink: 0;
  width: min(400px, 42%);
  font-size: clamp(20px, 1rem + 0.5vw, 24px);
  font-weight: 400;
  letter-spacing: -0.02em;
  line-height: 1.25;
}
.swp-q__a {
  flex: 1;
  font-size: 17px;
  line-height: 26px;
  color: var(--db-fg-2);
}
@media (max-width: 640px) {
  .swp-q {
    flex-direction: column;
    gap: 10px;
    padding-block: 22px;
  }
  .swp-q__q {
    width: auto;
  }
}
