/*
 * JobBridge site. Colours are the app's tokens (lib/src/core/design/hh_colors.dart
 * in headhunter-app) under the same names, and the same two rules hold here:
 * turquoise is a surface, never text on white; one elevation level.
 */

@font-face {
  font-family: 'Golos Text';
  src: url('/fonts/GolosText-Variable.ttf') format('truetype');
  font-weight: 400 900;
  font-style: normal;
  font-display: swap;
}

:root {
  color-scheme: light;

  --brand-900: #0b2545;
  --brand-800: #123b6b;
  --brand-600: #16569d;
  --brand-50: #e9f1fa;
  --accent-700: #0a6f7a;
  --accent-500: #12b0be;
  --accent-50: #dff3f5;
  --accent-on-dark: #8fd3db;
  --sand-300: #e2d9c6;
  --sand-100: #efebe4;
  --sand-50: #f7f5f1;
  --white: #fff;
  --ink: #2a333d;
  --ink-muted: #5b6570;
  --border-subtle: #e2e6eb;

  --radius-card: 20px;
  --radius-control: 14px;
  --elevation-card:
    0 1px 2px rgb(11 37 69 / 6%), 0 12px 32px -18px rgb(11 37 69 / 28%);
  --page: min(1160px, 100% - 32px);
  --ease-out: cubic-bezier(0.2, 0.7, 0.2, 1);
}

*,
*::before,
*::after {
  box-sizing: border-box;
}

html {
  -webkit-text-size-adjust: 100%;
  text-size-adjust: 100%;
}

body {
  margin: 0;
  font-family: 'Golos Text', system-ui, sans-serif;
  font-size: 1.0625rem;
  line-height: 1.6;
  color: var(--ink);
  background: var(--sand-50);
}

img,
svg {
  display: block;
  max-width: 100%;
}

a {
  color: var(--brand-600);
  text-underline-offset: 3px;
  text-decoration-thickness: 1px;
}

:focus-visible {
  outline: 2px solid var(--brand-600);
  outline-offset: 2px;
  border-radius: 6px;
}

.wrap {
  width: var(--page);
  margin-inline: auto;
}

.skip {
  position: absolute;
  left: 16px;
  top: -80px;
  z-index: 10;
  padding: 12px 18px;
  border-radius: var(--radius-control);
  background: var(--white);
  color: var(--brand-900);
  font-weight: 600;
}

.skip:focus {
  top: 16px;
}

.kicker {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  margin: 0 0 14px;
  font-size: 0.8125rem;
  font-weight: 600;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: var(--accent-700);
}

.kicker::before {
  content: '';
  width: 28px;
  height: 2px;
  border-radius: 2px;
  background: currentColor;
}

h1,
h2,
h3 {
  font-weight: 650;
  color: var(--brand-900);
  text-wrap: balance;
}

h2 {
  margin: 0 0 16px;
  font-size: clamp(1.9rem, 1.3rem + 2.2vw, 2.9rem);
  line-height: 1.08;
  letter-spacing: -0.025em;
}

/* --- Hero ------------------------------------------------------------- */

.hero {
  position: relative;
  isolation: isolate;
  overflow: clip;
  padding-bottom: clamp(72px, 10vw, 140px);
  color: var(--white);
  background-color: var(--brand-900);
  background-image:
    radial-gradient(
      70rem 40rem at 90% -12%,
      rgb(22 86 157 / 72%),
      transparent 62%
    ),
    radial-gradient(
      40rem 28rem at -8% 108%,
      rgb(18 176 190 / 16%),
      transparent 60%
    );
}

.hero::before {
  content: '';
  position: absolute;
  inset: 0;
  z-index: -1;
  background: url('/img/girih.svg') 0 0 / 88px 88px repeat;
  -webkit-mask-image: linear-gradient(180deg, #000 0%, transparent 78%);
  mask-image: linear-gradient(180deg, #000 0%, transparent 78%);
  pointer-events: none;
}

.hero :focus-visible {
  outline-color: var(--accent-on-dark);
}

/* The hero ends in an arch: the opening under the span, the same negative
   space the two figures make in the mark. */
.hero__arch {
  position: absolute;
  inset-inline: 0;
  bottom: -1px;
  z-index: 1;
  width: 100%;
  height: clamp(48px, 8vw, 120px);
  color: var(--sand-50);
}

.topbar {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
  padding-block: 22px;
}

/* Horizontal lockup: the mark's height is the wordmark's cap height
   (24px x 18.08/23 = 18.9px tall, so 21.9px wide) and the gap is half the
   mark's width - the ratios hh_brand.dart reads off the design. */
.lockup {
  display: inline-flex;
  align-items: center;
  gap: 11px;
  color: var(--white);
  text-decoration: none;
}

.lockup svg {
  width: 22px;
  height: auto;
}

.lockup span {
  font-size: 24px;
  font-weight: 600;
  line-height: 1;
  letter-spacing: -0.015em;
}

.lang {
  display: flex;
  gap: 2px;
  padding: 4px;
  margin: 0;
  list-style: none;
  border: 1px solid rgb(255 255 255 / 18%);
  border-radius: 999px;
}

.lang a {
  display: block;
  min-width: 44px;
  padding: 6px 12px;
  border-radius: 999px;
  color: rgb(255 255 255 / 78%);
  font-size: 0.875rem;
  font-weight: 600;
  text-align: center;
  text-decoration: none;
}

.lang a:hover {
  color: var(--white);
}

.lang a[aria-current='page'] {
  background: rgb(255 255 255 / 14%);
  color: var(--white);
}

.hero__grid {
  display: grid;
  grid-template-columns: minmax(0, 1.05fr) minmax(0, 1fr);
  align-items: center;
  gap: clamp(32px, 5vw, 72px);
  padding-top: clamp(24px, 6vw, 72px);
}

.hero .kicker {
  color: var(--accent-on-dark);
}

.hero .kicker::before {
  background: var(--accent-500);
}

.hero h1 {
  margin: 0 0 22px;
  font-size: clamp(2.5rem, 1.5rem + 3.8vw, 4.4rem);
  line-height: 1.02;
  letter-spacing: -0.032em;
  color: var(--white);
}

.hero h1 em {
  font-style: normal;
  color: var(--accent-on-dark);
}

.lead {
  max-width: 34em;
  margin: 0 0 34px;
  font-size: clamp(1.05rem, 1rem + 0.3vw, 1.2rem);
  color: rgb(255 255 255 / 80%);
}

.cta {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 12px 16px;
}

.btn {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  min-height: 52px;
  padding: 0 22px;
  border-radius: var(--radius-control);
  font-size: 1rem;
  font-weight: 600;
  text-decoration: none;
  transition:
    background-color 0.2s,
    transform 0.2s var(--ease-out);
}

.btn svg {
  width: 20px;
  height: 20px;
}

.btn--primary {
  background: var(--accent-500);
  color: var(--brand-900);
}

.btn--primary:hover {
  background: var(--accent-on-dark);
  transform: translateY(-1px);
}

.soon {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  min-height: 52px;
  padding: 0 18px;
  border: 1px dashed rgb(255 255 255 / 30%);
  border-radius: var(--radius-control);
  color: rgb(255 255 255 / 74%);
  font-size: 0.9375rem;
}

/* Two phones leaning toward each other, tops nearly meeting: the mark,
   drawn with the product. Candidate on the left, employer on the right,
   the same sides the figures take. */
.bridge {
  position: relative;
  z-index: 2;
  display: flex;
  justify-content: center;
  align-items: flex-end;
  gap: clamp(10px, 2.4vw, 30px);
  margin: 0;
  padding-top: 40px;
}

.phone {
  position: relative;
  width: clamp(140px, 19vw, 244px);
  margin: 0;
}

.phone--candidate {
  transform: rotate(5deg) translateY(28px);
  transform-origin: 50% 100%;
}

.phone--employer {
  transform: rotate(-5deg);
  transform-origin: 50% 100%;
}

.phone__frame {
  padding: 7px;
  border-radius: 34px;
  background: linear-gradient(160deg, var(--brand-800), var(--brand-900));
  box-shadow:
    0 0 0 1px rgb(143 211 219 / 20%),
    0 40px 80px -30px rgb(0 0 0 / 65%);
}

.phone img {
  width: 100%;
  height: auto;
  aspect-ratio: 600 / 1067;
  border-radius: 27px;
}

.phone figcaption {
  position: absolute;
  top: -15px;
  left: 50%;
  translate: -50% 0;
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 6px 14px 6px 10px;
  border-radius: 999px;
  background: var(--white);
  color: var(--brand-900);
  font-size: 0.875rem;
  font-weight: 600;
  white-space: nowrap;
  box-shadow: var(--elevation-card);
}

.phone figcaption svg {
  width: 18px;
  height: 18px;
  color: var(--brand-600);
}

/* --- Sections --------------------------------------------------------- */

.section {
  padding-block: clamp(64px, 9vw, 112px);
}

.section-head {
  max-width: 42rem;
  margin-bottom: clamp(32px, 5vw, 56px);
}

.section-head p {
  margin: 0;
  color: var(--ink-muted);
}

.sides {
  padding-top: clamp(40px, 6vw, 72px);
}

.sides__grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: clamp(20px, 4vw, 48px);
}

.side {
  padding: clamp(24px, 3vw, 40px);
  border: 1px solid var(--border-subtle);
  border-radius: var(--radius-card);
  background: var(--white);
  box-shadow: var(--elevation-card);
}

.side__head {
  display: flex;
  align-items: center;
  gap: 16px;
  margin-bottom: 24px;
}

.side__icon {
  flex: none;
  display: grid;
  place-items: center;
  width: 52px;
  height: 52px;
  border-radius: 16px;
  background: var(--brand-50);
  color: var(--brand-600);
}

.side__icon svg {
  width: 26px;
  height: 26px;
}

.side--employer .side__icon {
  background: var(--brand-900);
  color: var(--accent-on-dark);
}

.side h3 {
  margin: 0;
  font-size: 1.375rem;
  line-height: 1.2;
  letter-spacing: -0.015em;
}

.side h3 small {
  display: block;
  margin-top: 4px;
  font-size: 0.9375rem;
  font-weight: 500;
  letter-spacing: 0;
  color: var(--ink-muted);
}

.ticks {
  display: grid;
  gap: 14px;
  margin: 0;
  padding: 0;
  list-style: none;
}

.ticks li {
  position: relative;
  padding-left: 34px;
}

.ticks li::before {
  content: '';
  position: absolute;
  left: 0;
  top: 0.2em;
  width: 22px;
  height: 22px;
  border-radius: 7px;
  background: var(--accent-50) url('/img/tick.svg') center / 13px no-repeat;
}

.cats {
  background: var(--white);
}

.cats__list {
  display: grid;
  grid-template-columns: repeat(5, minmax(0, 1fr));
  margin: 0;
  padding: 0;
  list-style: none;
  border-top: 2px solid var(--brand-900);
}

.cats__list li {
  padding: 20px 20px 8px;
  border-left: 1px solid var(--border-subtle);
}

.cats__list li:first-child {
  padding-left: 0;
  border-left: 0;
}

.cats__num {
  display: block;
  margin-bottom: 32px;
  font-size: 0.875rem;
  font-weight: 600;
  font-variant-numeric: tabular-nums;
  color: var(--accent-700);
}

.cats__name {
  font-size: 1.125rem;
  font-weight: 600;
  line-height: 1.3;
  color: var(--brand-900);
}

.trust {
  background: var(--brand-50);
}

.trust__grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: clamp(28px, 4vw, 48px) clamp(24px, 5vw, 72px);
  margin: 0;
  padding: 0;
  list-style: none;
}

.trust__grid li {
  display: grid;
  grid-template-columns: 48px minmax(0, 1fr);
  gap: 18px;
}

.trust__icon {
  display: grid;
  place-items: center;
  width: 48px;
  height: 48px;
  border-radius: var(--radius-control);
  background: var(--white);
  color: var(--brand-600);
}

.trust__icon svg {
  width: 24px;
  height: 24px;
}

.trust h3 {
  margin: 4px 0 6px;
  font-size: 1.125rem;
  line-height: 1.3;
}

.trust p {
  margin: 0;
  color: var(--ink-muted);
}

.company {
  background: var(--sand-100);
}

.company__grid {
  display: grid;
  grid-template-columns: minmax(0, 1fr) minmax(0, 1.15fr);
  align-items: start;
  gap: clamp(32px, 6vw, 96px);
}

.company__grid p {
  margin: 0 0 16px;
  color: var(--ink-muted);
}

.facts {
  margin: 0;
  padding: 6px 28px;
  border: 1px solid var(--sand-300);
  border-radius: var(--radius-card);
  background: var(--white);
}

.facts div {
  display: grid;
  grid-template-columns: 10.5rem minmax(0, 1fr);
  gap: 16px;
  padding: 18px 0;
  border-bottom: 1px solid var(--sand-100);
}

.facts div:last-child {
  border-bottom: 0;
}

.facts dt {
  font-size: 0.9375rem;
  color: var(--ink-muted);
}

.facts dd {
  margin: 0;
  font-weight: 600;
  color: var(--brand-900);
  overflow-wrap: anywhere;
}

.facts dd a + a {
  margin-left: 4px;
}

.footer {
  padding-block: 36px;
  background: var(--brand-900);
  color: rgb(255 255 255 / 72%);
  font-size: 0.9375rem;
}

.footer :focus-visible {
  outline-color: var(--accent-on-dark);
}

.footer__row {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: space-between;
  gap: 20px 32px;
}

.footer ul {
  display: flex;
  flex-wrap: wrap;
  gap: 8px 24px;
  margin: 0;
  padding: 0;
  list-style: none;
}

.footer a {
  color: var(--white);
  text-decoration: none;
}

.footer a:hover {
  text-decoration: underline;
}

.footer p {
  margin: 0;
}

/* --- Not found -------------------------------------------------------- */

.notfound {
  display: grid;
  min-height: 100vh;
  place-content: center;
  gap: 8px;
  padding: 32px 16px;
  text-align: center;
}

.notfound h1 {
  margin: 0;
  font-size: 2rem;
}

.notfound p {
  margin: 0;
  color: var(--ink-muted);
}

/* --- Motion ----------------------------------------------------------- */

@media (prefers-reduced-motion: no-preference) {
  .rise {
    animation: rise 0.8s var(--ease-out) both;
  }

  .rise--2 {
    animation-delay: 0.08s;
  }

  .rise--3 {
    animation-delay: 0.16s;
  }

  .rise--4 {
    animation-delay: 0.24s;
  }

  .phone--candidate {
    animation: lean-candidate 1.1s var(--ease-out) 0.2s both;
  }

  .phone--employer {
    animation: lean-employer 1.1s var(--ease-out) 0.3s both;
  }

  /* Movement only, never opacity: a page captured before the animation runs
     - a link preview, a reviewer's screenshot - must still show the words. */
  @keyframes rise {
    from {
      transform: translateY(16px);
    }
  }

  @keyframes lean-candidate {
    from {
      transform: rotate(0deg) translateY(64px);
    }
  }

  @keyframes lean-employer {
    from {
      transform: rotate(0deg) translateY(48px);
    }
  }
}

/* --- Narrow screens --------------------------------------------------- */

@media (max-width: 880px) {
  .hero__grid {
    grid-template-columns: minmax(0, 1fr);
  }

  .bridge {
    padding-top: 24px;
  }

  .phone {
    width: min(42vw, 210px);
  }

  .sides__grid,
  .trust__grid,
  .company__grid {
    grid-template-columns: minmax(0, 1fr);
  }

  .cats__list {
    grid-template-columns: minmax(0, 1fr);
  }

  .cats__list li,
  .cats__list li:first-child {
    display: flex;
    align-items: baseline;
    gap: 20px;
    padding: 16px 0;
    border-left: 0;
    border-bottom: 1px solid var(--border-subtle);
  }

  .cats__num {
    margin: 0;
  }
}

@media (max-width: 520px) {
  .facts {
    padding-inline: 20px;
  }

  .facts div {
    grid-template-columns: minmax(0, 1fr);
    gap: 2px;
  }

  .soon {
    font-size: 0.875rem;
  }
}
