/* The sign-up page (/get-started). Only that page links this file (ApplicationHelper#site_stylesheet_paths
   leaves out pages/). The page also links pages/email_assistant.css, the home page CSS. That file gives the
   tokens (--mail-*), the type, the footer, the text links and the late-afternoon close. This file holds the
   parts of this page only. Every rule here starts with a gs- class. Design: docs/brand/DESIGN.md,
   "Sign-up choice page".

   Sections: 1. the choice on the morning sky, 2. what happens next, 3. security, 4. the choice again. */

/* The top bar: the site header with the wordmark only, so nothing pulls the visitor away from the choice. */
.gs-bar { background: white; border-bottom: 1px solid var(--mail-line); }
.gs-bar .tk-shell { display: flex; align-items: center; min-height: 72px; }

/* 1. The choice. The morning sky of the home hero, with the same cream fade from the left. */
.gs-choice {
  position: relative;
  isolation: isolate;
  display: flex;
  align-items: center;
  min-height: clamp(34rem, 80vh, 48rem);
  padding-block: clamp(3rem, 6vw, 5rem);
  background: #fcfaf5 var(--gs-sky) 70% 35% / cover no-repeat;
}
.gs-choice::before {
  content: "";
  position: absolute;
  inset: 0;
  z-index: -1;
  background: linear-gradient(90deg, rgb(252 250 245 / .9) 0%, rgb(252 250 245 / .7) 38%, rgb(252 250 245 / 0) 72%);
}
.gs-choice .tk-shell { width: min(1200px, 89%); }
.gs-choice-copy { max-width: 33rem; }
.email-home .gs-choice h1 { font-size: clamp(2.6rem, 4.4vw, 4rem); line-height: 1.04; letter-spacing: -.05em; }
.gs-choice h1 span { display: block; }
.email-home .gs-lede { text-wrap: pretty; margin-top: 1.1rem; color: var(--mail-ink); font-size: clamp(1.1rem, 1.5vw, 1.3rem); line-height: 1.45; letter-spacing: -.01em; }

/* The provider buttons: two equal white buttons, one under the other. White, because Google requires the "G"
   on a white ground. The arrow is the one colour, as on the primary button. */
.gs-providers { display: grid; gap: .75rem; margin: 2rem 0 0; padding: 0; list-style: none; }
.gs-provider {
  display: flex;
  align-items: center;
  gap: 1rem;
  min-height: 4.75rem;
  padding: .9rem 1.25rem;
  border: 1px solid var(--mail-line);
  border-radius: .8rem;
  background: white;
  box-shadow: var(--mail-shadow);
  color: var(--mail-ink);
  text-align: left;
  text-decoration: none;
}
.gs-provider:hover { border-color: #b9b5ae; }
.gs-provider-mark { display: inline-flex; flex: none; }
.gs-provider-mark svg { width: 1.6rem; height: 1.6rem; }
.gs-provider-text { display: grid; gap: .1rem; min-width: 0; margin-right: auto; }
.gs-provider-label { font-size: 1.12rem; font-weight: 600; letter-spacing: -.02em; line-height: 1.3; }
.gs-provider-hint { color: var(--mail-muted); font-size: .92rem; line-height: 1.35; }
.gs-provider-arrow { width: 1.25rem; height: 1.25rem; flex: none; color: var(--mail-action); }

/* The price line and the small print under the buttons. The offer has the 3px bar of the home hero offer. */
.gs-offer { margin-top: 1.5rem; padding-left: 1rem; border-left: 3px solid #c98051; }
.email-home .gs-offer p { font-size: .98rem; line-height: 1.5; }
.email-home .gs-offer .gs-offer-price { color: var(--mail-ink); font-weight: 650; }
.email-home .gs-fine { margin-top: .9rem; max-width: 30rem; font-size: .875rem; line-height: 1.5; }
.gs-fine a { color: inherit; text-decoration: underline; text-decoration-color: #a3a7b2; text-underline-offset: .2em; text-decoration-thickness: 1px; }
.gs-fine a:hover { text-decoration-color: currentColor; }
.email-home .gs-security-link { margin-top: 1.1rem; }
.email-home .gs-security-link .mail-link { display: inline-flex; align-items: center; min-height: 44px; }

/* 2. What happens next. One panel with three rows, separated by rules. */
.gs-step-list { margin: 0; padding: 0; list-style: none; }
.gs-step { display: flex; gap: 1rem; padding: 1.15rem clamp(1rem, 2.2vw, 1.6rem) 1.25rem; }
.gs-step + .gs-step { border-top: 1px solid var(--mail-line); }
.gs-step-number {
  display: inline-grid; place-items: center; flex: none; width: 1.9rem; height: 1.9rem; margin-top: -.1rem;
  border-radius: 50%; background: var(--mail-diagram-step); color: var(--mail-ink); font-size: .9rem; font-weight: 650;
}
.gs-step-body { min-width: 0; }
.email-home .gs-step h3 { font-size: 1.12rem; letter-spacing: -.02em; line-height: 1.35; }
.email-home .gs-step p { margin-top: .25rem; font-size: .98rem; line-height: 1.5; text-wrap: pretty; }
.email-home .gs-step .gs-step-example {
  margin-top: .75rem; padding-left: 1rem; border-left: 3px solid #c98051; color: var(--mail-ink); text-indent: -.4em;
}
.email-home .gs-step .gs-step-result { display: flex; align-items: flex-start; gap: .45rem; margin-top: .75rem; color: var(--mail-ink); font-weight: 630; }
.gs-step-result svg { width: 1.05rem; height: 1.05rem; flex: none; margin-top: .2rem; color: var(--mail-action); }

/* 3. Security. A heading row, then six short points in a grid with a rule above each, then the Google text. */
.email-home > .gs-security { background: var(--mail-wash); }
.email-home .gs-security-head h2 { max-width: 22ch; }
.email-home .gs-security-head p { max-width: 46ch; margin-top: 1rem; font-size: 1.12rem; line-height: 1.55; }
.gs-points {
  display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 2.25rem clamp(2rem, 4vw, 3.5rem);
  margin: clamp(2.25rem, 4vw, 3.25rem) 0 0; padding: 0; list-style: none;
}
.gs-point { padding-top: 1.1rem; border-top: 1px solid var(--mail-line); }
.email-home .gs-point h3 { font-size: 1.15rem; letter-spacing: -.02em; line-height: 1.3; }
.email-home .gs-point p { margin-top: .45rem; font-size: 1rem; line-height: 1.55; }
.gs-security a { color: var(--mail-action); text-decoration: underline; text-underline-offset: .15em; }
.email-home .gs-policy {
  max-width: 64rem; margin-top: clamp(2.5rem, 4.5vw, 3.5rem); font-size: .9rem; line-height: 1.55;
}

/* 4. The choice again, on the late-afternoon sky of the home close. The buttons sit side by side. */
.gs-final-action { display: flex; flex-direction: column; align-items: center; width: 100%; }
.gs-providers--row { grid-template-columns: repeat(2, minmax(0, 1fr)); width: min(100%, 48rem); margin-top: 0; }
.email-home .gs-final-action .mail-small { margin-top: 1rem; color: #3d3b3f; }
.gs-page .mail-close--golden::after { content: none; }

@media (max-width: 960px) {
  .gs-points { grid-template-columns: repeat(2, minmax(0, 1fr)); }
}
@media (max-width: 800px) {
  .gs-choice { min-height: 0; background-position: 78% 30%; }
  .gs-choice::before { background: linear-gradient(180deg, rgb(252 250 245 / .8) 0%, rgb(252 250 245 / .72) 60%, rgb(252 250 245 / .5) 100%); }
  .gs-choice-copy { max-width: 34rem; }
  .gs-providers--row { grid-template-columns: minmax(0, 1fr); width: min(100%, 30rem); }
}
@media (max-width: 600px) {
  /* Phone: the clouds show in a strip at the top. The text sits below them on a cream fade, so the heading,
     both buttons and the price line stay on the first screen at 360 x 740 and 390 x 844. */
  .gs-choice { align-items: flex-end; padding-block: 7.5rem 2.5rem; background-position: 82% 0%; }
  .gs-choice::before { background: linear-gradient(180deg, rgb(252 250 245 / 0) 0%, rgb(252 250 245 / .55) 14rem, rgb(252 250 245 / .9) 19rem, rgb(252 250 245 / .94) 100%); }
  .email-home .gs-choice h1 { font-size: clamp(2.3rem, 10.5vw, 2.75rem); }
  .email-home .gs-lede { margin-top: .8rem; font-size: 1.08rem; }
  .gs-providers { margin-top: 1.5rem; gap: .65rem; }
  .gs-provider { min-height: 4.25rem; padding: .8rem 1rem; gap: .85rem; }
  .gs-provider-label { font-size: 1.05rem; }
  .gs-provider-hint { font-size: .875rem; }
  .gs-offer { margin-top: 1.1rem; }
  .gs-points { grid-template-columns: minmax(0, 1fr); gap: 1.6rem; }
  .gs-step { gap: .85rem; }
}
@media (max-width: 400px) {
  /* 360px: "Continue with Microsoft 365" stays on one line. */
  .gs-provider { padding-inline: .9rem; gap: .75rem; }
  .gs-provider-mark svg { width: 1.45rem; height: 1.45rem; }
  .gs-provider-label { font-size: 1rem; }
  .gs-provider-arrow { width: 1.1rem; height: 1.1rem; }
}

/* Motion (docs/brand/DESIGN.md, "Motion"). The choice block fades up in reading order, like the home hero.
   CSS only, so it also runs without JavaScript. A provider button lifts 2px on hover, and its arrow moves
   forward. Nothing else moves. With reduced motion, nothing moves. */
@media (prefers-reduced-motion: no-preference) {
  .gs-choice-copy > * { animation: mail-rise .8s var(--mail-ease) both; }
  .gs-choice-copy > :nth-child(2) { animation-delay: 90ms; }
  .gs-choice-copy > :nth-child(3) { animation-delay: 180ms; }
  .gs-choice-copy > :nth-child(n+4) { animation-delay: 270ms; }
  .gs-provider { transition: border-color .2s ease-out, box-shadow .2s ease-out, transform .25s var(--mail-ease); }
  .gs-provider-arrow { transition: transform .22s var(--mail-ease); }
  .gs-provider:active { transform: translateY(1px); }
}
@media (hover: hover) and (prefers-reduced-motion: no-preference) {
  .gs-provider:hover { transform: translateY(-2px); box-shadow: var(--mail-shadow-lift); }
  .gs-provider:hover .gs-provider-arrow { transform: translateX(3px); }
}
