/* The kind-of-business pages (views/sw_group.templ), on the kit in swiss.css. The page's field (.swg's
   data-db-field) colours the title's key words, the cards' dots and the close. */

/* The first screen: eyebrow, title, Book a demo, 28px apart (40px before the call), over the kind's strip. A
   three-line title (schools, instructors) runs wider; the schools' starts higher. */
.swg .sw-hero {
  gap: 28px;
  padding-top: clamp(56px, 7.64vw, 110px);
}
.swg--schools .sw-hero {
  padding-top: clamp(48px, 6.67vw, 96px);
}
.swg--wide .sw-display {
  max-width: 1120px;
  text-wrap: pretty;
}
.swg .sw-hero .sw-demo {
  margin-top: 12px;
}
.swg-key {
  color: var(--db-field-text);
}

/* A section's label here is a name alone, in full ink. */
.swg-label {
  color: var(--db-fg);
}

/* What it needs: a faintly ruled row each, the number, the title and its words, and a small card on the right. */
.swg-need {
  display: flex;
  flex-wrap: wrap;
  align-items: start;
  gap: 24px;
  padding-block: 28px;
  border-top: 1px solid var(--db-edge-2);
}
.swg-need:last-child {
  border-bottom: 1px solid var(--db-edge-2);
}
.swg-need__n {
  flex-shrink: 0;
  width: 40px;
  font-family: var(--sw-sans);
  font-size: 14px;
  line-height: 30px;
  color: var(--db-fg-3);
}
.swg-need__words {
  display: flex;
  flex: 1 1 280px;
  flex-direction: column;
  gap: 8px;
  max-width: 460px;
}
.swg-need__t {
  font-size: clamp(22px, 1rem + 0.6vw, 26px);
  font-weight: 400;
  letter-spacing: -0.02em;
  line-height: 30px;
}
.swg-need__d {
  font-size: 16px;
  line-height: 23px;
  color: var(--db-fg-2);
}
.swg-card {
  display: flex;
  flex: 0 0 340px;
  flex-direction: column;
  gap: 4px;
  margin-left: auto;
  padding: 18px 20px;
  border: 1px solid var(--db-edge);
  border-radius: 14px;
  background: var(--db-raised);
}
.swg-card__head {
  font-size: 16px;
  line-height: 22px;
}
.swg-card__sub {
  font-size: 14px;
  line-height: 20px;
  color: var(--db-fg-3);
}
.swg-card__note {
  display: flex;
  align-items: center;
  gap: 6px;
  padding-top: 10px;
  font-family: var(--sw-sans);
  font-size: 14px;
  line-height: 16px;
}
.swg-card__dot {
  flex-shrink: 0;
  width: 7px;
  height: 7px;
  border-radius: 50%;
  background: var(--db-field);
}
@media (max-width: 1180px) {
  .swg-need__words {
    flex-basis: calc(100% - 64px);
    max-width: 640px;
  }
  .swg-card {
    flex: 0 1 340px;
    margin-left: 64px;
  }
}
@media (max-width: 820px) {
  .swg-need {
    gap: 16px;
  }
  .swg-need__n {
    width: 32px;
  }
  .swg-need__words {
    flex-basis: calc(100% - 48px);
    max-width: none;
  }
  .swg-card {
    flex: 1 1 auto;
    max-width: 340px;
    margin-left: 48px;
  }
}

/* Pricing: the title and its line, See pricing on the right; then the $99 in saffron beside four promises, each in
   its own field. */
.swg-price {
  gap: 48px;
}
.swg-price__head {
  display: flex;
  align-items: end;
  justify-content: space-between;
  gap: 24px 40px;
}
.swg-price__words {
  display: flex;
  flex-direction: column;
  gap: 18px;
}
.swg-price__title {
  max-width: 820px;
  line-height: 0.97;
}
.swg-price__say {
  font-size: clamp(17px, 1rem + 0.3vw, 20px);
  letter-spacing: -0.01em;
  line-height: 1.4;
  color: var(--db-fg-2);
}
.sw-page .swg-price__see {
  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;
}
.swg-tiles {
  display: flex;
  height: 400px;
}
.swg-tile {
  display: flex;
  flex-direction: column;
  justify-content: space-between;
  padding: 24px;
  background: var(--db-field);
  color: var(--db-field-ink);
}
.swg-tile--price {
  flex: 1 1 0;
  padding: 28px;
}
.swg-tile__per {
  font-family: var(--sw-sans);
  font-size: 14px;
  font-weight: 500;
  letter-spacing: -0.005em;
  line-height: 16px;
}
.swg-amount {
  display: flex;
  align-items: start;
  gap: 6px;
}
.swg-amount__cur {
  font-size: clamp(44px, 5vw, 72px);
  letter-spacing: -0.03em;
  line-height: 1.25;
}
.swg-amount__n {
  font-size: clamp(160px, 19.44vw, 280px);
  letter-spacing: -0.06em;
  line-height: 0.807;
}
.swg-amount__cur--after {
  margin-left: 0.12em;
}
.swg-tiles__four {
  display: grid;
  flex: 1 1 0;
  grid-template-columns: 1fr 1fr;
  grid-template-rows: 1fr 1fr;
}
.swg-tile__n {
  font-family: var(--sw-sans);
  font-size: 14px;
  font-weight: 500;
  letter-spacing: -0.005em;
  line-height: 16px;
}
.swg-tile__t {
  font-size: clamp(19px, 1rem + 0.45vw, 24px);
  letter-spacing: -0.02em;
  line-height: 1.08;
}
@media (max-width: 900px) {
  .swg-price__head {
    flex-direction: column;
    align-items: start;
  }
}
@media (max-width: 1180px) {
  .swg-tiles {
    flex-direction: column;
    height: auto;
  }
  .swg-tile--price {
    flex-basis: auto;
    min-height: 300px;
  }
  .swg-tiles__four {
    grid-auto-rows: minmax(150px, auto);
    grid-template-rows: none;
  }
}

/* The close's sentence breaks before "on unamotion.", as Paper sets it. */
.swg .sw-close__title {
  text-wrap: balance;
}
