/* DigitalHope HR landing page. Colours, type sizes, spacing and corners follow the app
   (tailwind.config.js and docs/layout.md), so the page looks like the product. */

@font-face {
  font-family: 'Plus Jakarta Sans';
  font-style: normal;
  font-weight: 400;
  font-display: swap;
  src: url('fonts/plus-jakarta-sans-latin-400-normal.woff2') format('woff2');
}
@font-face {
  font-family: 'Plus Jakarta Sans';
  font-style: normal;
  font-weight: 500;
  font-display: swap;
  src: url('fonts/plus-jakarta-sans-latin-500-normal.woff2') format('woff2');
}
@font-face {
  font-family: 'Plus Jakarta Sans';
  font-style: normal;
  font-weight: 600;
  font-display: swap;
  src: url('fonts/plus-jakarta-sans-latin-600-normal.woff2') format('woff2');
}
@font-face {
  font-family: 'Plus Jakarta Sans';
  font-style: normal;
  font-weight: 700;
  font-display: swap;
  src: url('fonts/plus-jakarta-sans-latin-700-normal.woff2') format('woff2');
}
@font-face {
  font-family: 'Plus Jakarta Sans';
  font-style: normal;
  font-weight: 800;
  font-display: swap;
  src: url('fonts/plus-jakarta-sans-latin-800-normal.woff2') format('woff2');
}

:root {
  color-scheme: light;
  --navy: #26377f;
  --navy-700: #192456;
  --navy-900: #0c122c;
  --pink: #f53d8d;
  --pink-600: #d42e76;
  --pink-700: #b41f60;
  --pink-50: #fff2f7;
  --lavender-50: #f3f1fb;
  --lavender-100: #e4e1f4;
  --canvas: #f6f7fb;
  --ink: #273047;
  --muted: #5e6c95;
  --line: #e4e7f2;
  --white: #ffffff;
  --radius-control: 10px;
  --radius-card: 16px;
  --gutter: 32px;
}

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

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

@media (prefers-reduced-motion: reduce) {
  html {
    scroll-behavior: auto;
  }
}

body {
  margin: 0;
  background: var(--white);
  color: var(--ink);
  font-family: 'Plus Jakarta Sans', ui-sans-serif, system-ui, -apple-system, 'Segoe UI', sans-serif;
  font-size: 16px;
  line-height: 1.6;
  font-synthesis: none;
  text-rendering: optimizeLegibility;
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
}

img {
  display: block;
  max-width: 100%;
  height: auto;
}

h1,
h2,
h3 {
  margin: 0;
  color: var(--navy-900);
  line-height: 1.2;
  letter-spacing: -0.02em;
}

h2 {
  font-size: 32px;
}

h3 {
  font-size: 18px;
}

p {
  margin: 0;
}

a {
  color: var(--navy);
}

a:focus-visible,
summary:focus-visible {
  outline: 3px solid var(--pink-600);
  outline-offset: 3px;
  border-radius: 4px;
}

.wrap {
  width: 100%;
  max-width: calc(1200px + 2 * var(--gutter));
  margin: 0 auto;
  padding: 0 var(--gutter);
}

.narrow {
  max-width: calc(760px + 2 * var(--gutter));
}

.centred {
  text-align: center;
}

.skip-link {
  position: absolute;
  left: 16px;
  top: -48px;
  z-index: 20;
  padding: 8px 16px;
  border-radius: var(--radius-control);
  background: var(--navy);
  color: var(--white);
  font-weight: 600;
  text-decoration: none;
}

.skip-link:focus {
  top: 16px;
}

/* Header */

.site-header {
  position: sticky;
  top: 0;
  z-index: 10;
  background: rgba(255, 255, 255, 0.92);
  border-bottom: 1px solid var(--line);
  backdrop-filter: saturate(1.4) blur(12px);
  -webkit-backdrop-filter: saturate(1.4) blur(12px);
}

.header-row {
  display: flex;
  align-items: center;
  gap: 32px;
  min-height: 68px;
}

.header-nav {
  display: flex;
  gap: 24px;
  margin-left: auto;
}

.header-nav a {
  color: var(--muted);
  font-size: 14px;
  font-weight: 600;
  text-decoration: none;
}

.header-nav a:hover {
  color: var(--navy);
}

/* Wordmark: "digitalhope" with a heart dotting the i, then an "HR" pill. Same build as
   src/components/branding/BrandWordmark.tsx. */

.wordmark {
  display: inline-flex;
  align-items: center;
  gap: 0.22em;
  color: var(--navy);
  font-size: 24px;
  font-weight: 700;
  line-height: 1;
  letter-spacing: -0.03em;
  text-decoration: none;
  white-space: nowrap;
}

.dotless {
  position: relative;
}

.heart {
  position: absolute;
  top: 0.2em;
  left: 50%;
  width: 0.27em;
  height: 0.27em;
  transform: translateX(-50%);
  fill: var(--pink);
}

.wordmark-pill {
  padding: 0.14em 0.34em;
  border-radius: 999px;
  background: var(--pink);
  color: var(--white);
  font-size: 0.74em;
  letter-spacing: normal;
}

/* Buttons */

.button {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 48px;
  padding: 0 24px;
  border-radius: var(--radius-control);
  font-size: 16px;
  font-weight: 700;
  text-decoration: none;
  white-space: nowrap;
  transition: background-color 0.15s ease, box-shadow 0.15s ease;
}

.button-small {
  min-height: 44px;
  padding: 0 16px;
  font-size: 14px;
}

.button-pink {
  background: var(--pink-600);
  color: var(--white);
  box-shadow: 0 8px 20px -8px rgba(212, 46, 118, 0.6);
}

.button-pink:hover {
  background: var(--pink-700);
}

.button-navy {
  background: var(--navy);
  color: var(--white);
}

.button-navy:hover {
  background: var(--navy-700);
}

.button-quiet {
  background: var(--white);
  color: var(--navy);
  box-shadow: inset 0 0 0 1px var(--line);
}

.button-quiet:hover {
  box-shadow: inset 0 0 0 1px var(--navy);
}

.button-row {
  display: flex;
  flex-wrap: wrap;
  gap: 12px;
}

/* Hero: on wide screens the artwork sits behind the words; narrower, it sits below them. */

.hero {
  position: relative;
  overflow: hidden;
  background: var(--lavender-50);
}

.hero-row {
  position: relative;
  z-index: 1;
  padding-top: 64px;
  padding-bottom: 32px;
}

.hero-copy {
  max-width: 560px;
}

.eyebrow {
  display: inline-block;
  margin-bottom: 24px;
  padding: 4px 12px;
  border-radius: 999px;
  background: var(--white);
  color: var(--navy);
  font-size: 14px;
  font-weight: 600;
  box-shadow: inset 0 0 0 1px var(--lavender-100);
}

.hero h1 {
  font-size: 56px;
  font-weight: 800;
  letter-spacing: -0.035em;
}

.lead {
  margin: 24px 0 32px;
  color: var(--ink);
  font-size: 18px;
}

.hero-note {
  margin-top: 16px;
  color: var(--muted);
  font-size: 14px;
  font-weight: 500;
}

.hero-art {
  width: calc(100% - 2 * var(--gutter));
  max-width: 1200px;
  margin: 0 auto 48px;
  aspect-ratio: 2 / 1;
  object-fit: cover;
  object-position: 88% 50%;
  border-radius: var(--radius-card);
}

@media (min-width: 1200px) {
  .hero {
    min-height: max(520px, 33.4vw);
    display: flex;
    align-items: center;
  }

  .hero-row {
    padding-top: 48px;
    padding-bottom: 48px;
  }

  .hero-copy {
    max-width: 500px;
  }

  .hero-art {
    position: absolute;
    inset: 0;
    width: 100%;
    max-width: none;
    height: 100%;
    margin: 0;
    aspect-ratio: auto;
    object-position: 100% 50%;
    border-radius: 0;
  }
}

/* The January change */

.law-band {
  background: var(--navy);
  color: var(--white);
}

.law-row {
  display: flex;
  align-items: center;
  gap: 32px;
  padding-top: 32px;
  padding-bottom: 32px;
}

.law-band h2 {
  color: var(--white);
  font-size: 24px;
  letter-spacing: -0.01em;
}

.law-band p {
  margin-top: 8px;
  color: var(--lavender-100);
}

.law-link {
  flex-shrink: 0;
  color: var(--white);
  font-weight: 700;
  text-underline-offset: 4px;
}

/* Sections */

.section {
  padding: 96px 0;
}

.section-tinted {
  background: var(--canvas);
}

.section-head {
  max-width: 640px;
  margin: 0 auto 48px;
  text-align: center;
}

.section-head p {
  margin-top: 12px;
  color: var(--muted);
  font-size: 18px;
}

.card {
  background: var(--white);
  border: 1px solid var(--line);
  border-radius: var(--radius-card);
  padding: 24px;
}

.ticks {
  margin: 16px 0 0;
  padding: 0;
  list-style: none;
}

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

.ticks li + li {
  margin-top: 12px;
}

.ticks li::before {
  content: '';
  position: absolute;
  left: 0;
  top: 3px;
  width: 20px;
  height: 20px;
  border-radius: 999px;
  background: var(--pink-50) url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 20 20'%3E%3Cpath d='M6 10.5l2.5 2.5L14 7.5' fill='none' stroke='%23d42e76' stroke-width='2' stroke-linecap='round' stroke-linejoin='round'/%3E%3C/svg%3E") center / 20px no-repeat;
}

/* Features */

.pillars {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 24px;
}

.pillar {
  padding: 32px;
}

.pillar img {
  width: 96px;
  height: 96px;
  margin: -8px 0 16px -8px;
}

.everyday {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 16px 24px;
  margin: 48px 0 0;
  padding: 0;
  list-style: none;
}

.everyday li {
  display: flex;
  align-items: center;
  gap: 12px;
  color: var(--muted);
}

.everyday img {
  flex-shrink: 0;
  width: 56px;
  height: 56px;
}

.everyday strong {
  color: var(--ink);
  font-weight: 700;
}

/* Your own system */

.private-row {
  display: grid;
  grid-template-columns: 1.15fr 1fr;
  align-items: center;
  gap: 48px;
}

.private-art {
  width: 100%;
  aspect-ratio: 4 / 3;
  object-fit: cover;
  object-position: 30% 60%;
  border-radius: var(--radius-card);
}

.private-copy p {
  margin-top: 16px;
  color: var(--muted);
  font-size: 18px;
}

.private-copy .ticks {
  margin-top: 24px;
}

/* Pilot steps */

.steps {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 24px;
  margin: 0;
  padding: 0;
  list-style: none;
}

.step-number {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 40px;
  height: 40px;
  margin-bottom: 16px;
  border-radius: 999px;
  background: var(--lavender-100);
  color: var(--navy);
  font-weight: 800;
}

.step p {
  margin-top: 8px;
  color: var(--muted);
}

/* Pricing */

.founding {
  max-width: 760px;
  margin: 0 auto 32px;
  padding: 16px 24px;
  border-radius: var(--radius-card);
  background: var(--pink-50);
  box-shadow: inset 0 0 0 1px #ffc1dc;
  text-align: center;
}

.founding strong {
  color: var(--pink-700);
}

.prices {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 24px;
}

.price h3 {
  color: var(--muted);
  font-size: 16px;
  font-weight: 600;
  letter-spacing: 0;
}

.amount {
  margin-top: 12px;
  color: var(--muted);
}

.amount span {
  color: var(--navy-900);
  font-size: 32px;
  font-weight: 800;
  letter-spacing: -0.02em;
}

.founding-price {
  margin-top: 12px;
  padding-top: 12px;
  border-top: 1px solid var(--line);
  color: var(--pink-700);
  font-size: 14px;
  font-weight: 600;
}

.small-print {
  margin-top: 24px;
  color: var(--muted);
  font-size: 14px;
  text-align: center;
}

/* Questions */

.faq {
  margin-top: 32px;
  border-top: 1px solid var(--line);
}

.faq details {
  border-bottom: 1px solid var(--line);
}

.faq summary {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
  min-height: 64px;
  padding: 16px 0;
  color: var(--navy-900);
  font-size: 18px;
  font-weight: 700;
  cursor: pointer;
  list-style: none;
}

.faq summary::-webkit-details-marker {
  display: none;
}

.faq summary::after {
  content: '';
  flex-shrink: 0;
  width: 24px;
  height: 24px;
  background: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24'%3E%3Cpath d='M12 5v14M5 12h14' fill='none' stroke='%2326377f' stroke-width='2' stroke-linecap='round'/%3E%3C/svg%3E") center / 24px no-repeat;
  transition: transform 0.15s ease;
}

.faq details[open] summary::after {
  transform: rotate(45deg);
}

.faq details p {
  padding-bottom: 24px;
  color: var(--muted);
}

/* Closing call to action */

.final-cta {
  background: var(--navy);
  color: var(--white);
}

.final-row {
  padding-top: 80px;
  padding-bottom: 80px;
  text-align: center;
}

.final-cta h2 {
  color: var(--white);
}

.final-cta p {
  margin: 12px 0 32px;
  color: var(--lavender-100);
  font-size: 18px;
}

/* Footer */

.site-footer {
  background: var(--navy-900);
  color: var(--lavender-100);
  font-size: 14px;
}

.footer-row {
  display: flex;
  flex-wrap: wrap;
  justify-content: space-between;
  gap: 12px 32px;
  padding-top: 32px;
  padding-bottom: 32px;
}

.site-footer a {
  color: var(--white);
}

/* Tablets */

@media (max-width: 1023px) {
  .pillars,
  .steps {
    grid-template-columns: 1fr;
    max-width: 640px;
    margin-left: auto;
    margin-right: auto;
  }

  .everyday {
    grid-template-columns: repeat(2, 1fr);
  }

  .private-row {
    grid-template-columns: 1fr;
    max-width: 640px;
    margin: 0 auto;
  }

  .prices {
    grid-template-columns: repeat(2, 1fr);
  }
}

/* Phones */

@media (max-width: 767px) {
  :root {
    --gutter: 16px;
  }

  h2 {
    font-size: 24px;
  }

  .header-nav {
    display: none;
  }

  .header-row {
    justify-content: space-between;
    gap: 16px;
    min-height: 60px;
  }

  .wordmark {
    font-size: 20px;
  }

  .hero-row {
    padding-top: 40px;
  }

  .eyebrow {
    font-size: 12px;
  }

  .hero h1 {
    font-size: 40px;
  }

  .lead {
    font-size: 16px;
  }

  .button-row .button {
    flex: 1 1 100%;
  }

  .hero-art {
    aspect-ratio: 4 / 3;
    object-position: 82% 50%;
  }

  .law-row {
    flex-direction: column;
    align-items: flex-start;
    gap: 16px;
  }

  .law-band h2 {
    font-size: 20px;
  }

  .section {
    padding: 64px 0;
  }

  .section-head {
    margin-bottom: 32px;
  }

  .section-head p,
  .private-copy p,
  .final-cta p {
    font-size: 16px;
  }

  .pillar {
    padding: 24px;
  }

  .card {
    padding: 16px;
  }

  .pillar.card {
    padding: 24px 16px;
  }

  .everyday,
  .prices {
    grid-template-columns: 1fr;
  }

  .faq summary {
    font-size: 16px;
  }

  .final-row {
    padding-top: 64px;
    padding-bottom: 64px;
  }
}
