/* 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.

   The page has one job: a click on a Register button. The two buttons are the strongest colour on the page.
   Sections: 1. sign-up (offer, buttons, check marks), 2. FAQ, 3. final call to action.
   Screens: desktop first, like toolkit.css; tablet at 1100 px; phone at 900 px, 520 px and 360 px. */

.gs-bar, .gs-page {
  --gs-muted: #575166;
  --gs-on-blue: #e8e6ff;
  --gs-blue-top: #5c59da;
  --gs-blue-side: #211d99;
  --gs-lilac-soft: #f3f1fd;
}
.gs-bar *, .gs-page * { box-sizing: border-box; }

/* Minimal top bar: the wordmark only. No navigation, so the page has no exits. */
.gs-bar { background: #fff; }
.gs-bar__inner { display: flex; align-items: center; min-height: 84px; }

/* 1. Sign-up */
.gs-signup { position: relative; padding: 20px 0 104px; 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-signup h1 { font-size: clamp(48px, 4.9vw, 74px); line-height: .98; text-wrap: balance; }
.gs-signup h1 span { display: block; color: var(--tk-blue); }
/* The risk line: no credit card. Second only to the headline. */
.gs-risk { display: flex; align-items: center; gap: 12px; margin-top: 22px !important; font-size: clamp(21px, 1.7vw, 25px); font-weight: 800; line-height: 1.25; letter-spacing: -.02em; }
.gs-risk::before { content: ""; width: 10px; height: 10px; border-radius: 2px; background: var(--tk-coral); flex-shrink: 0; }
.gs-lede { margin-top: 14px !important; font-size: 19px; line-height: 1.45; max-width: 540px; color: #3b3850; }

/* Register buttons: solid ultramarine, the unaltered provider mark on a white tile, then the label. */
.gs-providers { display: grid; gap: 12px; margin-top: 30px; }
.gs-provider { display: grid; grid-template-columns: 46px minmax(0, 1fr) 22px; align-items: center; gap: 18px; min-height: 80px; padding: 12px 22px 12px 14px; background: var(--tk-blue); border-radius: 6px; color: #fff; text-decoration: none; box-shadow: 0 3px 0 var(--gs-blue-side), 0 18px 30px -22px #2a24a8; transition: background-color 160ms ease-out, box-shadow 160ms ease-out, transform 160ms ease-out; }
.gs-provider__mark { display: grid; place-items: center; width: 46px; height: 46px; border-radius: 4px; background: #fff; }
.gs-provider__mark svg { display: block; width: 24px; height: 24px; }
.gs-provider__text { display: flex; flex-direction: column; gap: 2px; min-width: 0; }
.gs-provider__label { font-size: 20px; font-weight: 800; line-height: 1.2; letter-spacing: -.015em; }
.gs-provider__sub { font-size: 15px; line-height: 1.35; color: var(--gs-on-blue); }
.gs-provider__arrow { display: grid; place-items: center; }
.gs-provider__arrow .tk-icon { width: 22px; height: 22px; transition: transform 160ms ease-out; }
.gs-provider:hover { background: var(--tk-blue-hover); box-shadow: 0 3px 0 #16136b, 0 22px 34px -20px #2a24a8; transform: translateY(-1px); }
.gs-provider:hover .gs-provider__arrow .tk-icon { transform: translateX(3px); }
.gs-provider:active { transform: translateY(2px); box-shadow: 0 1px 0 #16136b; }
.gs-page .gs-provider:focus-visible { outline: 3px solid var(--tk-coral); outline-offset: 3px; }

/* The check marks right under the buttons: two per line. */
.gs-reassure { list-style: none; padding: 0; margin: 20px 0 0; display: grid; grid-template-columns: repeat(2, minmax(0, max-content)); gap: 10px 32px; }
.gs-reassure li { display: flex; align-items: flex-start; gap: 8px; font-size: 16px; font-weight: 700; line-height: 1.3; letter-spacing: -.005em; }
.gs-reassure .tk-icon { margin-top: 1px; }
.gs-reassure .tk-icon, .gs-points .tk-icon { width: 18px; height: 18px; padding: 2px; border-radius: 50%; background: var(--tk-lilac); color: var(--tk-blue); }

/* Returning users and the one-time code link. */
.gs-code { margin-top: 6px !important; font-size: 15px; line-height: 1.5; color: var(--gs-muted); }
.gs-reassure + .gs-code { margin-top: 22px !important; }
.gs-code a { color: var(--tk-blue); font-weight: 650; text-decoration: underline; text-decoration-thickness: 1.5px; white-space: nowrap; }
/* Translations of the link are longer ("Inicia sesión con un código de un solo uso."). The link still
   moves to a new line as one piece, but it may wrap inside itself on a narrow phone. */
.gs-code a:not(:lang(en)) { display: inline-block; white-space: normal; }
.gs-code a:hover { color: var(--tk-blue-hover); }

/* The CASA Tier 2 trust mark: small, links to the security answer in the FAQ. */
.gs-trust { display: inline-flex; align-items: center; gap: 12px; margin-top: 18px; padding: 8px 14px 8px 8px; border: 1px solid var(--tk-rule); border-radius: 6px; color: var(--tk-ink); text-decoration: none; font-size: 14px; line-height: 1.3; transition: border-color 160ms ease-out; }
.gs-trust__icon { display: grid; place-items: center; width: 34px; height: 34px; border-radius: 4px; background: var(--tk-lilac); color: var(--tk-blue); flex-shrink: 0; }
.gs-trust__icon .tk-icon { width: 21px; height: 21px; }
.gs-trust__text { display: flex; flex-wrap: wrap; gap: 0 10px; }
.gs-trust strong { font-weight: 800; }
.gs-trust__link { color: var(--tk-blue); font-weight: 650; text-decoration: underline; text-decoration-thickness: 1px; text-underline-offset: 2px; }
.gs-trust:hover { border-color: var(--tk-blue); }

.gs-plan { margin-top: 18px !important; color: var(--gs-muted); }
.gs-terms { margin-top: 12px !important; color: var(--gs-muted); }
.gs-trust + .gs-terms { margin-top: 18px !important; }
/* 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); }

/* "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. FAQ: the heading on the left, the questions on the right (toolkit .tk-faq accordion). */
.gs-faq { padding-block: 96px; border-top: 1px solid var(--tk-rule); }
.gs-faq__grid { display: grid; grid-template-columns: minmax(0, .75fr) minmax(0, 1.25fr); gap: 40px clamp(48px, 7vw, 120px); align-items: start; }
.gs-page .gs-faq h2 { margin: 0; font-size: clamp(36px, 3.6vw, 52px); max-width: 420px; }
.gs-faq__list { border-top: 1px solid var(--tk-rule); }
.gs-page .gs-faq summary { font-size: 20px; padding-block: 20px; }
.gs-faq .tk-faq__answer { font-size: 17px; color: #3b3850; }
.gs-points { list-style: none; padding: 0; margin: 14px 0 0; display: grid; gap: 10px; }
.gs-points li { display: grid; grid-template-columns: 18px minmax(0, 1fr); gap: 12px; align-items: start; }
.gs-points .tk-icon { margin-top: 4px; }
.gs-nowrap { white-space: nowrap; }

/* 3. Final call to action: a pale lilac band, the offer again and the two buttons side by side. */
.gs-final { padding-block: 0 104px; }
.gs-final__panel { display: grid; justify-items: center; text-align: center; padding: 72px 48px 64px; border-radius: 6px; background: var(--gs-lilac-soft); }
.gs-page .gs-final h2 { font-size: clamp(36px, 3.6vw, 52px); max-width: 760px; }
/* Centred, so the coral square sits inline: it stays next to the first word when a translation wraps. */
.gs-final .gs-risk { display: block; margin-top: 16px !important; text-wrap: balance; }
.gs-final .gs-risk::before { display: inline-block; margin-right: 10px; vertical-align: .12em; }
.gs-providers--row { grid-template-columns: repeat(2, minmax(0, 400px)); gap: 16px; margin-top: 34px; text-align: left; }
.gs-final .gs-code { margin-top: 6px !important; }
.gs-final .gs-providers + .gs-code { margin-top: 22px !important; }

/* Tablet */
@media (max-width: 1100px) {
  .gs-signup { padding-bottom: 80px; }
  .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-faq { padding-block: 72px; }
  .gs-faq__grid { grid-template-columns: 1fr; }
  .gs-page .gs-faq h2 { max-width: none; }
  .gs-final { padding-bottom: 80px; }
}

/* Phone and small tablet: one column. The headline, the risk line and both buttons fit in a 375 x 667 screen. */
@media (max-width: 900px) {
  .gs-bar__inner { min-height: 64px; }
  .gs-bar .tk-wordmark { font-size: 28px; }
  .gs-signup { padding: 8px 0 56px; }
  .gs-signup__grid { grid-template-columns: 1fr; gap: 56px; }
  .gs-signup__main { max-width: 600px; }
  .gs-signup h1 { font-size: clamp(34px, 10vw, 60px); line-height: 1; }
  .gs-risk { margin-top: 14px !important; font-size: 20px; gap: 10px; }
  .gs-risk::before { width: 9px; height: 9px; }
  .gs-lede { margin-top: 10px !important; font-size: 17px; line-height: 1.42; }
  .gs-providers { margin-top: 20px; gap: 10px; }
  .gs-next { max-width: 600px; }
  .gs-faq { padding-block: 56px; }
  .gs-page .gs-faq summary { font-size: 18px; padding-block: 18px; }
  .gs-final { padding-bottom: 56px; }
  .gs-final__panel { padding: 48px 24px 40px; }
  .gs-providers--row { grid-template-columns: 1fr; width: 100%; max-width: 480px; }
}

@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: 40px minmax(0, 1fr) 18px; gap: 12px; min-height: 70px; padding: 10px 14px 10px 10px; }
  .gs-provider__mark { width: 40px; height: 40px; }
  .gs-provider__mark svg { width: 22px; height: 22px; }
  .gs-provider__label { font-size: 18px; }
  /* Translations are longer ("Cadastre-se com o Google"). Keep them on one line at 375 px. */
  .gs-provider__label:not(:lang(en)) { font-size: 17px; letter-spacing: -.02em; }
  .gs-provider__sub { font-size: 14px; }
  .gs-reassure { grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 10px 12px; margin-top: 16px; }
  .gs-reassure li { font-size: 15px; }
  .gs-trust { display: flex; }
  .gs-final__panel { padding: 40px 12px 32px; margin-inline: -8px; }
}

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

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