/* The sign-up page (/get-started). Only that page links this file (ApplicationHelper#site_stylesheet_paths
   leaves out pages/). The page reuses the home page classes in toolkit.css (tk-) and the colour tokens on .bp-page:
   ink, ultramarine blue, coral, lilac and white. Every rule here starts with a gs- class.

   Screens: desktop first, like toolkit.css; tablet at 1100 px; phone at 900 px and 520 px. */

.gs-bar, .gs-page {
  --gs-muted: #575166;
  --gs-on-blue: #e8e6ff;
  --gs-blue-top: #5c59da;
  --gs-blue-side: #211d99;
  --gs-lilac-deep: #c1b5ef;
  --gs-line: #8a859c;
}
.gs-bar *, .gs-page * { box-sizing: border-box; }

/* Minimal top bar: the wordmark only. */
.gs-bar { background: #fff; }
.gs-bar__inner { display: flex; align-items: center; min-height: 96px; }

/* 1. Sign-up */
.gs-signup { position: relative; padding: 28px 0 112px; overflow: clip; }
.gs-signup__grid { display: grid; grid-template-columns: minmax(0, 1.05fr) minmax(0, .95fr); gap: clamp(48px, 7vw, 120px); align-items: center; }
.gs-signup__main { max-width: 600px; }
.gs-badge { display: inline-flex; align-items: center; gap: 9px; padding: 7px 13px 7px 11px; border-radius: 4px; background: var(--tk-lilac); color: var(--tk-blue); font-size: 15px; font-weight: 750; line-height: 1.2; letter-spacing: -.005em; }
.gs-badge::before { content: ""; width: 8px; height: 8px; border-radius: 2px; background: var(--tk-coral); flex-shrink: 0; }
.gs-signup h1 { margin-top: 26px; font-size: clamp(48px, 5vw, 76px); line-height: .98; }
.gs-signup h1 span { display: block; color: var(--tk-blue); }
.gs-lede { margin-top: 26px !important; font-size: clamp(19px, 1.5vw, 22px); line-height: 1.42; max-width: 560px; }
.gs-choose { font-size: 18px; font-weight: 750; line-height: 1.35; letter-spacing: -.01em; }
.gs-signup .gs-choose { margin-top: 38px; padding-top: 30px; border-top: 1px solid var(--tk-rule); }
.gs-code { margin-top: 22px !important; font-size: 16px; line-height: 1.5; color: var(--gs-muted); }
.gs-code a { color: var(--tk-blue); font-weight: 650; text-decoration-thickness: 1.5px; white-space: nowrap; }
.gs-code a:hover { color: var(--tk-blue-hover); }
.gs-terms { margin-top: 10px !important; color: var(--gs-muted); }
/* The reset removes link underlines. Without one, these two links look like plain text. */
.gs-terms a { text-decoration: underline; text-decoration-thickness: 1px; text-underline-offset: 2px; }
.gs-terms a:hover { color: var(--tk-ink); }

/* Provider buttons: white, 1.5px border, the unaltered provider mark, then the label. */
.gs-providers { display: grid; gap: 14px; margin-top: 18px; }
.gs-provider { display: grid; grid-template-columns: 30px minmax(0, 1fr) 22px; align-items: center; gap: 20px; min-height: 78px; padding: 14px 22px 14px 24px; background: #fff; border: 1.5px solid var(--gs-line); border-radius: 6px; color: var(--tk-ink); text-decoration: none; transition: border-color 160ms ease-out, box-shadow 160ms ease-out, transform 160ms ease-out; }
.gs-provider__mark { display: grid; place-items: center; width: 30px; height: 30px; }
.gs-provider__mark svg { display: block; width: 26px; height: 26px; }
.gs-provider__text { display: flex; flex-direction: column; gap: 2px; min-width: 0; padding-left: 20px; border-left: 1px solid var(--tk-rule); }
.gs-provider__label { font-size: 19px; font-weight: 750; line-height: 1.25; letter-spacing: -.015em; }
.gs-provider__sub { font-size: 15px; line-height: 1.35; color: var(--gs-muted); }
.gs-provider__arrow { display: grid; place-items: center; color: var(--tk-blue); }
.gs-provider__arrow .tk-icon { width: 22px; height: 22px; transition: transform 160ms ease-out; }
.gs-provider:hover { border-color: var(--tk-blue); box-shadow: 0 0 0 1px var(--tk-blue), 0 16px 30px -20px #3431bd99; transform: translateY(-1px); }
.gs-provider:hover .gs-provider__arrow .tk-icon { transform: translateX(3px); }
.gs-provider:active { transform: none; }
.gs-page .gs-provider:focus-visible { outline-offset: 4px; }

/* "What happens next": a blue block with a top face, a right face and a coral layer behind it,
   like the 3D blocks in the home page pictures. Built in HTML so the text stays exact. */
.gs-next { position: relative; padding: 18px 26px 26px 0; }
.gs-next::before { content: ""; position: absolute; inset: -12% -14% -14% -10%; z-index: -1; background: radial-gradient(closest-side, #e7e3fb 0%, #f3f1fd 58%, transparent 100%); }
.gs-next__block { position: relative; isolation: isolate; }
.gs-next__layer { position: absolute; inset: 0; z-index: -1; border-radius: 2px; background: var(--tk-coral); transform: translate(20px, 24px); }
.gs-next__face { position: relative; padding: 38px 38px 42px; color: #fff; background: var(--tk-blue); border-radius: 2px; box-shadow: 0 46px 70px -34px #2a24a8cc, 0 24px 34px -26px #191a2366; }
.gs-next__face::before { content: ""; position: absolute; left: 0; bottom: 100%; width: 100%; height: 18px; background: var(--gs-blue-top); transform-origin: bottom left; transform: skewX(-45deg); }
.gs-next__face::after { content: ""; position: absolute; top: 0; left: 100%; width: 18px; height: 100%; background: var(--gs-blue-side); transform-origin: top left; transform: skewY(-45deg); }
.gs-page .gs-next__title { font-size: clamp(28px, 2.4vw, 36px); line-height: 1.04; }
.gs-steps { list-style: none; padding: 0; margin: 30px 0 0; display: grid; gap: 12px; }
.gs-step { position: relative; display: grid; grid-template-columns: 50px minmax(0, 1fr); align-items: center; gap: 18px; padding: 16px 20px 16px 16px; color: var(--tk-ink); background: #fff; border-radius: 4px; box-shadow: 0 3px 0 #211d9940, 0 14px 26px -18px #0b085e; }
.gs-step__number { display: grid; place-items: center; width: 50px; height: 50px; border-radius: 4px; background: var(--tk-lilac); color: var(--tk-blue); font-size: 24px; font-weight: 900; line-height: 1; letter-spacing: -.03em; font-variant-numeric: tabular-nums; }
.gs-step:last-child .gs-step__number { background: var(--tk-coral); color: var(--tk-ink); }
.gs-step p { font-size: 18px; font-weight: 700; line-height: 1.3; letter-spacing: -.015em; }
@media (prefers-reduced-motion: no-preference) {
  .gs-step { animation: gs-rise 640ms cubic-bezier(.2, .7, .2, 1) both; }
  .gs-step:nth-child(1) { animation-delay: 200ms; }
  .gs-step:nth-child(2) { animation-delay: 340ms; }
  .gs-step:nth-child(3) { animation-delay: 480ms; }
  @keyframes gs-rise { from { opacity: 0; transform: translateY(14px); } }
}

/* 2. Security: a full-width blue band. The CASA card is the anchor; five short promises follow. */
.gs-security { background: var(--tk-blue); color: #fff; padding-block: 104px 96px; }
.gs-page .gs-security :focus-visible { outline-color: #fff; }
.gs-security__top { display: grid; grid-template-columns: minmax(0, .9fr) minmax(0, 1.1fr); gap: clamp(40px, 6vw, 104px); align-items: center; }
.gs-security h2 { font-size: clamp(40px, 4.4vw, 64px); max-width: 620px; }
.gs-security__lead { margin-top: 24px !important; max-width: 540px; font-size: 21px; line-height: 1.45; color: var(--gs-on-blue); }

.gs-casa { position: relative; isolation: isolate; margin-right: 20px; }
.gs-casa__layer { position: absolute; inset: 0; z-index: -1; border-radius: 6px; background: var(--tk-coral); transform: translate(16px, 18px); }
.gs-casa__card { display: grid; grid-template-columns: 150px minmax(0, 1fr); gap: 34px; align-items: center; padding: 38px 40px 38px 46px; border-radius: 6px; background: #fff; color: var(--tk-ink); box-shadow: 0 40px 60px -36px #0b085e; }
.gs-page .gs-casa h3 { font-size: clamp(28px, 2.5vw, 36px); line-height: 1.05; }
.gs-casa p { margin-top: 14px; font-size: 17px; line-height: 1.5; color: #3b3850; }

/* The CASA mark: a lilac block with a top face, a right face and a coral check. Not an official logo. */
.gs-seal { position: relative; width: 132px; margin: 14px 0 0; }
.gs-seal__face { position: relative; display: flex; flex-direction: column; align-items: center; justify-content: center; gap: 6px; aspect-ratio: 1; background: var(--tk-lilac); color: var(--tk-blue); border: 1px solid #cfc7f2; }
.gs-seal__face::before { content: ""; position: absolute; left: -1px; bottom: calc(100% + 1px); width: calc(100% + 2px); height: 14px; background: #efecfc; transform-origin: bottom left; transform: skewX(-45deg); }
.gs-seal__face::after { content: ""; position: absolute; top: -1px; left: calc(100% + 1px); width: 14px; height: calc(100% + 2px); background: var(--gs-lilac-deep); transform-origin: top left; transform: skewY(-45deg); }
.gs-seal__name { font-size: 38px; font-weight: 900; line-height: 1; letter-spacing: -.04em; }
.gs-seal__tier { padding: 4px 9px; border-radius: 3px; background: var(--tk-blue); color: #fff; font-size: 13px; font-weight: 800; line-height: 1.1; letter-spacing: .08em; text-transform: uppercase; }
.gs-seal__check { position: absolute; right: -20px; bottom: -14px; display: grid; place-items: center; width: 44px; height: 44px; border-radius: 50%; background: var(--tk-coral); color: var(--tk-ink); box-shadow: 0 0 0 4px #fff; }
.gs-seal__check .tk-icon { width: 24px; height: 24px; }

.gs-assurances { list-style: none; padding: 0; margin: 84px 0 0; display: grid; grid-template-columns: repeat(5, minmax(0, 1fr)); gap: 32px 0; }
.gs-assurance { padding: 0 28px; border-left: 1px solid #ffffff40; }
.gs-assurance:first-child { padding-left: 0; border-left: 0; }
.gs-assurance__icon { display: grid; place-items: center; width: 46px; height: 46px; border: 1px solid #ffffff4d; border-radius: 4px; color: var(--tk-lilac); }
.gs-assurance__icon .tk-icon { width: 25px; height: 25px; }
.gs-page .gs-assurance h3 { margin-top: 20px; font-size: 20px; font-weight: 800; line-height: 1.2; letter-spacing: -.02em; }
.gs-assurance p { margin-top: 10px; font-size: 16px; line-height: 1.5; color: var(--gs-on-blue); }
.gs-nowrap { white-space: nowrap; }

.gs-security__cta { display: flex; align-items: center; justify-content: space-between; gap: 24px 48px; margin-top: 72px; padding-top: 40px; border-top: 1px solid #ffffff40; }
.gs-security__cta .gs-choose { font-size: 24px; line-height: 1.25; max-width: 330px; }
.gs-providers--row { grid-template-columns: repeat(2, minmax(0, 380px)); gap: 16px; margin-top: 0; }
.gs-security .gs-provider { border-color: #fff; }
.gs-security .gs-provider:hover { border-color: #fff; box-shadow: 0 0 0 3px var(--tk-lilac), 0 18px 34px -18px #0b085e; }

/* Tablet */
@media (max-width: 1100px) {
  .gs-signup { padding-bottom: 88px; }
  .gs-signup__grid { gap: 56px; }
  .gs-next__face { padding: 32px 28px 34px; }
  .gs-step { grid-template-columns: 44px minmax(0, 1fr); gap: 14px; }
  .gs-step__number { width: 44px; height: 44px; font-size: 21px; }
  .gs-step p { font-size: 17px; }
  .gs-security { padding-block: 80px; }
  .gs-security__top { grid-template-columns: 1fr; gap: 56px; }
  .gs-casa { max-width: 760px; }
  .gs-assurances { grid-template-columns: repeat(3, minmax(0, 1fr)); margin-top: 72px; gap: 40px 0; }
  .gs-assurance:nth-child(4) { padding-left: 0; border-left: 0; }
  .gs-assurance:nth-child(5) { grid-column: span 2; max-width: 560px; }
  .gs-security__cta { flex-direction: column; align-items: stretch; }
  .gs-security__cta .gs-choose { max-width: none; }
}

/* Phone and small tablet: one column. */
@media (max-width: 900px) {
  .gs-bar__inner { min-height: 82px; }
  .gs-signup { padding: 12px 0 64px; }
  .gs-signup__grid { grid-template-columns: 1fr; gap: 56px; }
  .gs-signup__main { max-width: 600px; }
  .gs-signup h1 { margin-top: 20px; font-size: clamp(34px, 11vw, 64px); }
  .gs-lede { margin-top: 20px !important; font-size: 19px; }
  .gs-signup .gs-choose { margin-top: 30px; padding-top: 24px; }
  .gs-next { max-width: 600px; }
  .gs-security { padding-block: 64px; }
  .gs-assurances { grid-template-columns: repeat(2, minmax(0, 1fr)); margin-top: 56px; gap: 36px 0; }
  .gs-assurance:nth-child(n) { padding: 0 0 0 24px; border-left: 1px solid #ffffff40; }
  .gs-assurance:nth-child(odd) { padding-left: 0; padding-right: 24px; border-left: 0; }
  .gs-assurance:nth-child(5) { grid-column: span 2; max-width: 520px; }
  .gs-security__cta { margin-top: 56px; padding-top: 32px; }
  .gs-security__cta .gs-choose { font-size: 21px; }
  .gs-providers--row { grid-template-columns: 1fr; max-width: 600px; }
}

@media (max-width: 640px) {
  .gs-casa { margin-right: 12px; }
  .gs-casa__layer { transform: translate(10px, 12px); }
  .gs-casa__card { grid-template-columns: 1fr; gap: 26px; padding: 40px 24px 28px; }
  .gs-seal { width: 108px; }
  .gs-seal__name { font-size: 31px; }
  .gs-seal__tier { font-size: 11px; }
  .gs-seal__check { width: 38px; height: 38px; right: -18px; }
  .gs-assurances { grid-template-columns: 1fr; gap: 0; }
  .gs-assurance:nth-child(n) { display: grid; grid-template-columns: 46px minmax(0, 1fr); column-gap: 18px; padding: 22px 0; border-left: 0; border-top: 1px solid #ffffff33; }
  .gs-assurance:first-child { border-top: 0; padding-top: 0; }
  .gs-assurance:nth-child(5) { grid-column: auto; max-width: none; }
  .gs-assurance__icon { grid-row: span 2; }
  .gs-page .gs-assurance h3 { margin-top: 0; font-size: 19px; align-self: end; }
  .gs-assurance p { margin-top: 6px; }
}

@media (max-width: 520px) {
  .gs-next { padding: 14px 14px 16px 0; }
  .gs-next__layer { transform: translate(12px, 14px); }
  .gs-next__face { padding: 28px 20px 24px; }
  .gs-next__face::before { height: 12px; }
  .gs-next__face::after { width: 12px; }
  .gs-step { padding: 14px 14px 14px 12px; }
  .gs-step p { font-size: 16px; }
  .gs-provider { grid-template-columns: 26px minmax(0, 1fr) 20px; gap: 14px; min-height: 72px; padding: 12px 16px 12px 18px; }
  .gs-provider__mark { width: 26px; }
  .gs-provider__mark svg { width: 24px; height: 24px; }
  .gs-provider__text { padding-left: 14px; }
  .gs-provider__label { font-size: 17px; }
  .gs-provider__sub { font-size: 14px; }
  .gs-security h2 { font-size: 36px; }
  .gs-security__lead { font-size: 18px; }
}

/* Very narrow phones (360 px and less): keep each button label on one line. */
@media (max-width: 360px) {
  .gs-provider { gap: 12px; padding-inline: 14px 12px; }
  .gs-provider__text { padding-left: 12px; }
  .gs-provider__label { font-size: 16px; }
  .gs-provider__sub { font-size: 13px; }
  .gs-next__face { padding-inline: 16px; }
}

@media (prefers-reduced-motion: reduce) { .gs-page *, .gs-provider { transition: none; animation: none; } }
