/* Shared by Payments, Members and Marketing (views/sw_areas2.templ), on the kit in swiss.css. Paper draws their
   windows in "Host Grotesk" and their brand names in "Fraunces": here they take Daybook's sans (Inter Tight, so 700
   and 800 become its 600) and serif (Source Serif 4). Paper's white cards are Daybook's raised surface, its ink tiles
   the inverse, its pale yellow/red/teal tags each field's soft colour and text. */

/* The first screen: the words, then the drawn window (1100px at 1440) and its caption. */
.sw-hero:has(> .sx-fig) {
  gap: 28px;
}
.sw-hero:has(> .sx-fig) .sw-demo {
  margin-top: 12px;
}
.sx-title {
  max-width: 1200px;
}
.sx-sub {
  max-width: 760px;
  font-size: clamp(17px, 1rem + 0.3vw, 20px);
  line-height: 1.45;
  color: var(--db-fg-2);
}
.sw-page .sx-fig {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 28px;
  width: min(1100px, 100%);
  margin-top: 36px;
  margin-bottom: clamp(24px, 5.6vw, 80px);
  text-align: left;
}
.sx-cap {
  font-size: 17px;
  line-height: 24px;
  color: var(--db-fg-2);
  text-align: center;
}

/* A window: a white card with a soft edge, 14px corners, its field block on the left. */
.sx-win {
  display: flex;
  width: 100%;
  overflow: clip;
  background: var(--db-raised);
  border: 1px solid var(--db-edge-2);
  border-radius: 14px;
}
.sx-win__field {
  display: flex;
  flex-direction: column;
  justify-content: space-between;
  gap: 48px;
  flex-shrink: 0;
  padding: 44px 48px;
  background: var(--db-field);
  color: var(--db-field-ink);
}
.sx-brand {
  font-family: var(--font-db-serif), serif;
  font-size: 22px;
  line-height: 28px;
}
.sx-big {
  font-size: clamp(48px, 2rem + 2.6vw, 72px);
  letter-spacing: -0.035em;
  line-height: 1.03;
}
.sx-big + p {
  margin-top: 10px;
  font-size: 18px;
  line-height: 26px;
}
@media (max-width: 860px) {
  .sx-win {
    flex-direction: column;
  }
  .sx-win__field {
    width: auto;
    padding: 32px 28px;
  }
}

/* A numbered section: the ruled head (label, 48px heading), then the drawing across the whole column. */
.sx-sec {
  display: flex;
  flex-direction: column;
  gap: 56px;
  width: min(var(--sw-col), 100% - 2 * var(--sw-gutter));
  margin-inline: auto;
  scroll-margin-top: 24px;
}
.sx-sec--near {
  margin-top: calc(var(--sw-gap) * -0.25);
}
.sx-sec .sx-sec__head {
  width: 100%;
}
.sx-h2 {
  max-width: 940px;
  font-size: clamp(30px, 1.3rem + 1.9vw, 48px);
  font-weight: 400;
  letter-spacing: -0.03em;
  line-height: 1.04;
}
@media (max-width: 900px) {
  .sx-sec {
    gap: 40px;
  }
  .sx-h2 br {
    display: none;
  }
}

/* A drawing's words: a title, then a muted line. */
.sx-say {
  font-size: 16px;
  line-height: 23px;
  color: var(--db-fg-2);
}
.sx-say__t {
  font-size: 26px;
  font-weight: 400;
  letter-spacing: -0.025em;
  line-height: 34px;
  color: var(--db-fg);
}
.sx-say--sm .sx-say__t {
  font-size: 24px;
  line-height: 32px;
}
.sx-say--lg {
  font-size: 17px;
  line-height: 24px;
}
.sx-say--lg .sx-say__t {
  font-size: 28px;
  line-height: 36px;
}

/* Tiles: rows of white cards (an ink one leads), a drawing on top and the words at the foot. */
.sx-tiles {
  display: flex;
  flex-direction: column;
  gap: 24px;
}
.sx-row {
  display: flex;
  gap: 24px;
}
.sx-tile {
  display: flex;
  flex: 1 1 0;
  flex-direction: column;
  justify-content: space-between;
  gap: 36px;
  min-width: 0;
  min-height: 320px;
  padding: 28px;
  background: var(--db-raised);
  border: 1px solid var(--db-edge);
  border-radius: 14px;
}
.sx-tile--ink {
  background: var(--db-inverse);
  border-color: var(--db-inverse);
  color: var(--db-on-inverse);
}
.sx-tile--ink .sx-say {
  color: color-mix(in srgb, var(--db-on-inverse) 85%, transparent);
}
.sx-tile--ink .sx-say__t {
  color: var(--db-on-inverse);
}
@media (max-width: 1100px) {
  .sx-row {
    flex-wrap: wrap;
  }
  .sx-tile {
    flex-basis: 300px;
    min-height: 0;
  }
}

/* A strip: one white card cut into cells by soft rules, each a drawing over its words. */
.sx-strip {
  display: flex;
  overflow: clip;
  background: var(--db-raised);
  border: 1px solid var(--db-edge);
  border-radius: 14px;
}
.sx-strip > li {
  display: flex;
  flex: 1 1 0;
  flex-direction: column;
  gap: 28px;
  min-width: 0;
  padding: 28px;
  border-right: 1px solid var(--db-edge);
}
.sx-strip > li:last-child {
  border-right: 0;
}
@media (max-width: 900px) {
  .sx-strip {
    flex-direction: column;
  }
  .sx-strip > li {
    flex: none;
    border-right: 0;
    border-bottom: 1px solid var(--db-edge);
  }
  .sx-strip > li:last-child {
    border-bottom: 0;
  }
}

/* The coloured columns: three fields side by side, each a title, a small drawing, a line and its kinds of business. */
.sx-cols {
  display: flex;
}
.sx-col {
  display: flex;
  flex: 1 1 0;
  flex-direction: column;
  justify-content: space-between;
  gap: 48px;
  min-width: 0;
  min-height: 520px;
  padding: 36px;
  background: var(--db-field);
  color: var(--db-field-ink);
}
.sx-col__top {
  display: flex;
  flex-direction: column;
  gap: 36px;
}
.sx-col__t {
  font-size: clamp(36px, 1.6rem + 1.4vw, 48px);
  font-weight: 400;
  letter-spacing: -0.03em;
  line-height: 1.04;
}
.sx-col__say {
  font-size: 17px;
  line-height: 24px;
}
.sx-col__links li + li a {
  padding-bottom: 0;
}
.sx-col__links a {
  display: flex;
  justify-content: space-between;
  gap: 16px;
  padding-block: 12px;
  border-top: 1.5px solid currentColor;
  font-size: 22px;
  letter-spacing: -0.02em;
  line-height: 28px;
}
.sx-col__links a span:last-child {
  font-size: 20px;
  letter-spacing: 0;
}
.sx-col__links a:hover span:first-child {
  text-decoration: underline;
  text-decoration-thickness: 1px;
  text-underline-offset: 5px;
}
.sx-col .sx-muted {
  color: color-mix(in srgb, var(--db-field-ink) 80%, transparent);
}
@media (max-width: 1000px) {
  .sx-cols {
    flex-direction: column;
  }
  .sx-col {
    flex: none;
    min-height: 0;
  }
}

/* The pricing line: included, the price, See pricing at the end. */
.sx-price__body {
  flex-direction: row;
  align-items: end;
  justify-content: space-between;
  gap: 40px;
}
.sx-price__words {
  display: flex;
  flex-direction: column;
  gap: 18px;
}
.sx-price__say {
  font-size: clamp(17px, 1rem + 0.3vw, 20px);
  letter-spacing: -0.01em;
  line-height: 1.4;
  color: var(--db-fg-2);
}
.sx-more {
  flex-shrink: 0;
  font-size: 17px;
  font-weight: 500;
  line-height: 22px;
}
.sw-page .sx-more {
  text-decoration: underline 1px;
  text-underline-offset: 4px;
}
@media (max-width: 760px) {
  .sx-price__body {
    flex-direction: column;
    align-items: start;
    gap: 24px;
  }
}

/* The drawn windows' small parts. */
.sx-ui {
  font-size: 14px;
  line-height: 20px;
}
.sx-ui s {
  color: var(--db-fg-4);
  text-decoration-thickness: 1px;
}
.sx-ui strong,
.sx-ui b {
  font-weight: 600;
  color: var(--db-fg);
}
.sx-mute {
  color: var(--db-fg-3);
}
.sx-ok,
.sx-ui .sx-ok {
  color: var(--db-field-text);
}
/* A square tag in a field's soft colour: data-db-field on it picks the field. */
.sx-tag {
  display: inline-block;
  width: fit-content;
  padding: 4px 10px;
  background: var(--db-field-soft);
  color: var(--db-field-text);
  font-size: 12px;
  font-weight: 600;
  line-height: 16px;
}
.sx-tag--ink {
  color: var(--db-fg);
}
.sx-tag--md {
  padding: 5px 10px;
  font-size: 13px;
}
/* A square button in a field (or ink). */
.sx-btn {
  display: inline-block;
  width: fit-content;
  padding: 7px 12px;
  background: var(--db-field);
  color: var(--db-field-ink);
  font-size: 13px;
  font-weight: 600;
  line-height: 16px;
}
.sx-btn--ink {
  background: var(--db-inverse);
  color: var(--db-on-inverse);
}
/* A round button: ink, or outlined. */
.sx-pill {
  display: inline-block;
  width: fit-content;
  padding: 8px 16px;
  border: 1px solid var(--db-fg);
  border-radius: 999px;
  font-size: 14px;
  font-weight: 500;
  line-height: 18px;
}
.sx-pill--ink {
  background: var(--db-inverse);
  border-color: var(--db-inverse);
  color: var(--db-on-inverse);
}
/* A ruled line: words at both ends. */
.sx-line {
  display: flex;
  justify-content: space-between;
  gap: 12px;
  padding-block: 8px;
  border-top: 1px solid var(--db-edge-2);
}
.sx-lines > :last-child {
  border-bottom: 1px solid var(--db-edge-2);
}
.sx-line > :last-child {
  text-align: right;
}
/* A small bordered box inside a card. */
.sx-box {
  display: flex;
  flex-direction: column;
  gap: 10px;
  padding: 16px;
  border: 1px solid var(--db-edge-2);
  border-radius: 10px;
}
.sx-split {
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 12px;
}
/* A browser bar over a window: the address in a white pill. */
.sx-bar {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 16px;
  padding: 12px 20px;
  background: var(--db-card);
  border-bottom: 1px solid var(--db-edge-2);
}
.sx-bar__url {
  padding: 5px 18px;
  background: var(--db-raised);
  border-radius: 999px;
  color: var(--db-fg-2);
  font-size: 14px;
  line-height: 18px;
}
.sx-check {
  display: grid;
  place-items: center;
  width: 28px;
  height: 28px;
  flex-shrink: 0;
  border-radius: 999px;
  background: var(--db-field);
  color: var(--db-field-ink);
}
.sx-play {
  display: grid;
  place-items: center;
  width: 52px;
  height: 52px;
  border-radius: 999px;
}

/* Type steps inside the drawings. */
.sx-15 {
  font-size: 15px;
  line-height: 20px;
}
.sx-sm {
  font-size: 13px;
  line-height: 18px;
}
.sx-xs {
  font-size: 12px;
  line-height: 16px;
}
.sx-fg2 {
  color: var(--db-fg-2);
}
.sx-semi {
  font-weight: 600;
}
.sx-date {
  font-size: 14px;
  line-height: 18px;
  color: var(--db-fg-3);
}
/* Muted words on a field: its ink at 80%. */
.sx-soft,
.db-on-field .sx-date {
  color: color-mix(in srgb, var(--db-field-ink) 80%, transparent);
}

/* A gift card: the business, Gift card, the amount, on saffron with 10px corners (210 × 128). */
.sx-card {
  display: flex;
  flex-direction: column;
  justify-content: space-between;
  flex-shrink: 0;
  width: 210px;
  height: 128px;
  padding: 14px 16px;
  border-radius: 10px;
  background: var(--db-field);
  color: var(--db-field-ink);
  font-size: 12px;
  line-height: 16px;
}
.sx-card__name {
  font-weight: 600;
  letter-spacing: 0.01em;
}
.sx-card__sum {
  font-size: 34px;
  font-weight: 600;
  letter-spacing: -0.04em;
  line-height: 36px;
}
