/* Gary landing page */

:root {
  /* Brand tokens */
  --ink: #1B1F3B;
  --navy: #2E3566;
  --body-text: #3A3F63;
  --muted: #4A4F72;
  --ground: #F4F5FB;
  --line: #E3E5F2;
  --accent: #F5C451;

  /* Supporting colors from the approved design */
  --white: #FFFFFF;
  --link-hover: #151A3D;
  --bubble: #EEF0FA;
  --on-ink-border: #4A5290;
  --on-ink-text: #D6D9EE;
  --on-ink-muted: #A9AED0;

  --font-display: 'Bricolage Grotesque', sans-serif;
  --font-body: 'Figtree', system-ui, sans-serif;

  --page-width: 1160px;
  --gutter: 24px;
}

*,
*::before,
*::after {
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
}

@media (prefers-reduced-motion: reduce) {
  html {
    scroll-behavior: auto;
  }
}

body {
  margin: 0;
  background: var(--ground);
  color: var(--ink);
  font-family: var(--font-body);
}

img {
  display: block;
}

a {
  color: var(--navy);
}

a:hover {
  color: var(--link-hover);
}

h1,
h2,
h3,
p {
  margin: 0;
}

/* Hidden on screen, still read by screen readers */
.visually-hidden {
  position: absolute;
  width: 1px;
  height: 1px;
  margin: -1px;
  padding: 0;
  overflow: hidden;
  clip: rect(0 0 0 0);
  white-space: nowrap;
  border: 0;
}

.container {
  max-width: var(--page-width);
  margin: 0 auto;
  padding-left: var(--gutter);
  padding-right: var(--gutter);
}

.display-heading {
  font-family: var(--font-display);
  font-weight: 800;
  line-height: 1.05;
  letter-spacing: -1px;
}

.section-heading {
  font-size: clamp(34px, 4.4vw, 52px);
}

.section-heading--small {
  font-size: clamp(30px, 3.6vw, 44px);
}

/* Buttons */

.button {
  display: inline-flex;
  align-items: center;
  border-radius: 999px;
  font-weight: 700;
  text-decoration: none;
}

.button--dark {
  background: var(--ink);
  color: var(--white);
}

.button--dark:hover {
  color: var(--white);
}

.button--outline {
  border: 2px solid var(--ink);
  color: var(--ink);
}

.button--outline:hover {
  color: var(--ink);
}

.button--nav {
  min-height: 44px;
  padding: 0 20px;
}

.button--hero {
  min-height: 52px;
  padding: 0 28px;
  font-size: 17px;
}

.button--hero.button--outline {
  padding: 0 24px;
}

.button--cta {
  min-height: 56px;
  padding: 0 36px;
  font-size: 18px;
}

.pill {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  border-radius: 999px;
  background: var(--accent);
  color: var(--ink);
  font-weight: 700;
}

/* Header */

.site-header {
  display: flex;
  flex-wrap: wrap;
  gap: 16px 24px;
  align-items: center;
  padding-top: 20px;
  padding-bottom: 20px;
}

.brand {
  display: flex;
  align-items: center;
  gap: 10px;
  margin-right: auto;
  color: var(--ink);
  text-decoration: none;
}

.brand:hover {
  color: var(--ink);
}

.brand img {
  width: 44px;
  height: 44px;
  object-fit: contain;
}

.brand-name {
  font-family: var(--font-display);
  font-weight: 800;
  font-size: 26px;
  letter-spacing: -0.5px;
}

.site-nav {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 24px;
  font-size: 16px;
  font-weight: 500;
}

.site-nav a {
  text-decoration: none;
}

.site-header .button--nav {
  font-size: 16px;
}

/* Phones: only the logo and "Hire Gary" show in the header. The hero's
   "See how it works" button covers the first link. */
@media (max-width: 639px) {
  .site-nav {
    display: none;
  }
}

/* Hero */

.hero {
  display: flex;
  flex-wrap: wrap;
  gap: 48px;
  align-items: flex-start;
  padding-top: 48px;
  padding-bottom: 72px;
}

.hero-copy {
  flex: 999 1 520px;
  min-width: 0;
  display: flex;
  flex-direction: column;
  gap: 24px;
}

.hero-copy .pill {
  align-self: flex-start;
  padding: 8px 14px;
  font-size: 14px;
}

.hero-title {
  font-family: var(--font-display);
  font-weight: 800;
  font-size: clamp(44px, 6vw, 76px);
  line-height: 1;
  letter-spacing: -2px;
}

.hero-lede {
  max-width: 560px;
  font-size: 20px;
  line-height: 1.5;
  color: var(--body-text);
}

.hero-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 12px;
  align-items: center;
}

/* When the copy sits beside the video, drop it down so it
   doesn't start right under the header. They sit side by side from 986px of page width;
   1010px leaves room for a scrollbar. Below that, the video sits under the copy. */
@media (min-width: 1010px) {
  .hero-copy {
    margin-top: 80px;
  }
}

/* Phones: the two hero buttons share one row and split it evenly.
   On the narrowest phones they wrap and stack at full width. */
@media (max-width: 559px) {
  .hero-actions {
    gap: 10px;
  }

  .hero-actions .button--hero {
    flex: 1 1 auto;
    justify-content: center;
    min-height: 48px;
    padding: 0 16px;
    font-size: 15px;
  }
}

.hero-note {
  font-size: 15px;
  color: var(--muted);
}

/* Hero video */

.hero-video-wrap {
  flex: 1 1 370px;
  min-width: 0;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 20px;
}

.hero-video-frame {
  position: relative;
  width: 100%;
  max-width: 370px;
  aspect-ratio: 9 / 16;
  overflow: hidden;
  background: var(--ink);
  border: 3px solid var(--navy);
  border-radius: 28px;
  box-shadow: 0 24px 60px rgba(46, 53, 102, 0.18);
}

.hero-video {
  display: block;
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.hero-video-sound {
  position: absolute;
  right: 14px;
  bottom: 14px;
  width: 48px;
  height: 48px;
  display: flex;
  align-items: center;
  justify-content: center;
  border: none;
  border-radius: 50%;
  background: rgba(27, 31, 59, 0.75);
  cursor: pointer;
}

.hero-video-sound[hidden] {
  display: none;
}

.hero-video-sound:focus-visible {
  outline: 3px solid var(--accent);
  outline-offset: 3px;
}

.hero-video-sound-on,
.hero-video-sound[aria-pressed="true"] .hero-video-sound-off {
  display: none;
}

.hero-video-sound[aria-pressed="true"] .hero-video-sound-on {
  display: block;
}

/* Problem */

.problem {
  background: var(--ink);
  color: var(--white);
}

.problem-intro {
  display: flex;
  flex-wrap: wrap;
  gap: 48px;
  align-items: flex-start;
  padding-top: 88px;
  padding-bottom: 56px;
}

.problem-headline {
  flex: 1 1 420px;
  min-width: 0;
  display: flex;
  flex-direction: column;
  gap: 20px;
}

.calculator {
  background: var(--white);
  border-top: 2px solid var(--line);
  border-bottom: 2px solid var(--line);
}

.job-value {
  display: flex;
  flex-direction: column;
  gap: 28px;
  padding-top: 72px;
  padding-bottom: 72px;
}

.job-value-inputs {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(min(300px, 100%), 1fr));
  gap: 28px 48px;
}

.job-value-field {
  display: flex;
  flex-direction: column;
  gap: 10px;
}

.job-value-label {
  display: flex;
  flex-wrap: wrap;
  gap: 4px 16px;
  align-items: baseline;
  justify-content: space-between;
}

.job-value label {
  font-size: 17px;
  font-weight: 700;
  color: var(--ink);
}

.job-value output {
  font-family: var(--font-display);
  font-weight: 800;
  font-size: 24px;
  color: var(--navy);
}

.job-value input {
  width: 100%;
  height: 44px;
  margin: 0;
  accent-color: var(--navy);
  cursor: pointer;
}

.job-value input:focus-visible {
  outline: 3px solid var(--navy);
  outline-offset: 2px;
}

.job-value-result {
  max-width: 760px;
  font-size: 22px;
  font-weight: 700;
  line-height: 1.4;
  color: var(--ink);
}

.job-value-result strong {
  padding: 0 6px;
  border-radius: 6px;
  background: var(--accent);
}

.job-tags {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
  margin: 0;
  padding: 0;
  list-style: none;
}

.job-tags li {
  padding: 8px 14px;
  border-radius: 999px;
  border: 1.5px solid var(--on-ink-border);
  font-size: 15px;
  color: var(--white);
}

.problem-story {
  flex: 1 1 420px;
  min-width: 0;
  display: flex;
  flex-direction: column;
  gap: 18px;
  font-size: 19px;
  line-height: 1.6;
  color: var(--on-ink-text);
}

.problem-story .emphasis {
  color: var(--white);
  font-weight: 700;
}

.problem-stats {
  display: flex;
  flex-direction: column;
  gap: 20px;
  padding-bottom: 88px;
}

.stat-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(min(260px, 100%), 1fr));
  gap: 20px;
}

.stat {
  display: flex;
  flex-direction: column;
  gap: 8px;
  padding-top: 20px;
  border-top: 3px solid var(--accent);
}

.stat-value {
  font-family: var(--font-display);
  font-weight: 800;
  font-size: 64px;
  line-height: 1;
  color: var(--accent);
}

.stat-label {
  font-size: 17px;
  line-height: 1.5;
  color: var(--on-ink-text);
}

.sources {
  font-size: 13px;
  line-height: 1.5;
  color: var(--on-ink-muted);
}

/* How it works */

.how {
  display: flex;
  flex-direction: column;
  gap: 48px;
  padding-top: 96px;
  padding-bottom: 96px;
}

.how .section-heading {
  max-width: 720px;
}

.step-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(min(260px, 100%), 1fr));
  gap: 24px;
  margin: 0;
  padding: 0;
  list-style: none;
}

.step {
  display: flex;
  flex-direction: column;
  gap: 14px;
  padding: 32px;
  background: var(--white);
  border: 2px solid var(--navy);
  border-radius: 24px;
}

.step-number {
  font-family: var(--font-display);
  font-weight: 800;
  font-size: 48px;
  line-height: 1;
  color: var(--navy);
}

.step-title {
  font-size: 22px;
  font-weight: 700;
}

.step-text {
  font-size: 17px;
  line-height: 1.55;
  color: var(--body-text);
}

/* Handoff */

.handoff {
  padding-top: 96px;
  padding-bottom: 96px;
}

.handoff-card {
  display: flex;
  flex-wrap: wrap;
  gap: 40px;
  align-items: center;
  padding: 56px 40px;
  background: var(--accent);
  border-radius: 32px;
}

.handoff-card img {
  flex: 0 0 auto;
  width: 200px;
  height: 200px;
  object-fit: contain;
}

.handoff-copy {
  flex: 999 1 420px;
  min-width: 0;
  display: flex;
  flex-direction: column;
  gap: 16px;
}

.handoff-copy p {
  font-size: 19px;
  line-height: 1.55;
  color: var(--ink);
}

@media (max-width: 559px) {
  .handoff-card {
    gap: 28px;
    padding: 40px 24px;
  }
}

/* Features */

.features {
  background: var(--white);
  border-top: 2px solid var(--line);
  border-bottom: 2px solid var(--line);
}

.features-inner {
  display: flex;
  flex-direction: column;
  gap: 40px;
  padding-top: 88px;
  padding-bottom: 88px;
}

.feature-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(min(300px, 100%), 1fr));
  gap: 28px 40px;
  margin: 0;
  padding: 0;
  list-style: none;
}

.feature {
  display: flex;
  gap: 14px;
  align-items: flex-start;
}

.feature svg {
  flex: 0 0 auto;
}

.feature-text {
  display: flex;
  flex-direction: column;
  gap: 4px;
}

.feature-title {
  font-weight: 700;
  font-size: 18px;
}

.feature-detail {
  font-size: 16px;
  line-height: 1.5;
  color: var(--body-text);
}

/* Final call to action */

.cta {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 24px;
  padding-top: 104px;
  padding-bottom: 104px;
  text-align: center;
}

.cta-title {
  max-width: 820px;
  font-size: clamp(36px, 5vw, 60px);
  line-height: 1.02;
  letter-spacing: -1.5px;
}

.cta p {
  max-width: 600px;
  font-size: 20px;
  line-height: 1.5;
  color: var(--body-text);
}

/* Phones: tighter spacing for the whole home page. The desktop spacing above
   leaves too much empty space on a small screen, so every section gets less
   room above and below, and the hero's intro text is a little smaller. */
@media (max-width: 559px) {
  .hero {
    gap: 40px;
    padding-top: 24px;
    padding-bottom: 56px;
  }

  .hero-lede {
    font-size: 18px;
  }

  .job-value {
    padding-top: 48px;
    padding-bottom: 48px;
  }

  .how {
    padding-top: 64px;
    padding-bottom: 64px;
  }

  .problem-intro {
    gap: 32px;
    padding-top: 64px;
    padding-bottom: 40px;
  }

  .problem-stats {
    padding-bottom: 64px;
  }

  .handoff {
    padding-top: 64px;
    padding-bottom: 64px;
  }

  .handoff-card img {
    width: 140px;
    height: 140px;
  }

  .handoff-copy p {
    font-size: 17px;
  }

  .features-inner {
    gap: 32px;
    padding-top: 64px;
    padding-bottom: 64px;
  }

  .cta {
    padding-top: 72px;
    padding-bottom: 72px;
  }
}

/* Footer */

.site-footer {
  border-top: 2px solid var(--line);
}

.site-footer-inner {
  display: flex;
  flex-wrap: wrap;
  gap: 12px;
  justify-content: space-between;
  padding-top: 28px;
  padding-bottom: 28px;
  font-size: 14px;
  color: var(--muted);
}

.site-footer a {
  color: inherit;
}

/* Footer legal links */

.footer-links {
  display: flex;
  flex-wrap: wrap;
  gap: 8px 20px;
}

/* Legal pages: privacy, terms, SMS program */

.legal {
  max-width: 760px;
  padding-top: 24px;
  padding-bottom: 72px;
  font-size: 18px;
  line-height: 1.6;
  color: var(--body-text);
}

.legal-title {
  font-size: clamp(34px, 4.4vw, 52px);
  color: var(--ink);
}

.legal-date {
  margin-top: 12px;
  color: var(--muted);
}

/* Pages with no date, like the SMS disclosure, start their text right after the title */
.legal-title + p {
  margin-top: 12px;
}

.legal h2 {
  margin-top: 40px;
  margin-bottom: 8px;
  font-family: var(--font-display);
  font-weight: 800;
  font-size: 24px;
  line-height: 1.2;
  letter-spacing: -0.5px;
  color: var(--ink);
}

.legal p + p,
.legal p + ul {
  margin-top: 12px;
}

.legal ul {
  margin: 0;
  padding-left: 22px;
}

.legal li + li {
  margin-top: 6px;
}

.legal blockquote {
  margin: 12px 0;
  padding: 16px 20px;
  border-radius: 16px;
  background: var(--bubble);
  color: var(--ink);
}

.legal a {
  overflow-wrap: anywhere;
}

.text-demo a {
  white-space: nowrap;
}

.text-demo {
  text-align: center;
  text-wrap: balance;
  font-size: 18px;
  line-height: 1.5;
  color: var(--body-text);
}
