/*
 * hy.contact marketing site. Hand-authored from the 1a direction of the
 * "hy.contact Website" design canvas. The phone and card mockups inside
 * .mock are lifted from that canvas verbatim and keep their inline styles;
 * everything else is laid out here so it reflows down to a 320px phone.
 */

@font-face {
  font-family: 'Inter';
  font-style: normal;
  font-weight: 100 900;
  font-display: swap;
  src: url('/assets/inter-latin.woff2') format('woff2');
  unicode-range:
    U+0000-00FF, U+0131, U+0152-0153, U+02BB-02BC, U+02C6, U+02DA, U+02DC,
    U+0304, U+0308, U+0329, U+2000-206F, U+20AC, U+2122, U+2191, U+2193, U+2212,
    U+2215, U+FEFF, U+FFFD;
}
@font-face {
  font-family: 'Inter';
  font-style: normal;
  font-weight: 100 900;
  font-display: swap;
  src: url('/assets/inter-latin-ext.woff2') format('woff2');
  unicode-range:
    U+0100-02BA, U+02BD-02C5, U+02C7-02CC, U+02CE-02D7, U+02DD-02FF, U+0304,
    U+0308, U+0329, U+1D00-1DBF, U+1E00-1E9F, U+1EF2-1EFF, U+2020, U+20A0-20AB,
    U+20AD-20C0, U+2113, U+2C60-2C7F, U+A720-A7FF;
}
@font-face {
  font-family: 'Inter';
  font-style: normal;
  font-weight: 100 900;
  font-display: swap;
  src: url('/assets/inter-cyrillic.woff2') format('woff2');
  unicode-range: U+0301, U+0400-045F, U+0490-0491, U+04B0-04B1, U+2116;
}
@font-face {
  font-family: 'Inter';
  font-style: normal;
  font-weight: 100 900;
  font-display: swap;
  src: url('/assets/inter-cyrillic-ext.woff2') format('woff2');
  unicode-range:
    U+0460-052F, U+1C80-1C8A, U+20B4, U+2DE0-2DFF, U+A640-A69F, U+FE2E-FE2F;
}

:root {
  --font-sans:
    'Inter', -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto,
    'Helvetica Neue', Arial, sans-serif;
  --color-neutral-100: #000;
  /* The app's secondary text. Used by the mockups only - at 0.4 it is too
     faint for page copy, which uses --muted. */
  --text-secondary: rgba(22, 29, 53, 0.4);
  --muted: rgba(22, 29, 53, 0.62);
  --lime: #c4ee8b;
  --green: #7dc023;
  --green-dark: #5b7735;
  --mist: #f5f6f9;
  --line: rgba(0, 0, 0, 0.1);
  --gutter: clamp(16px, 8.33vw, 120px);
  --section-y: clamp(64px, 8.33vw, 120px);
  --max: 1440px;
}

*,
*::before,
*::after {
  box-sizing: border-box;
}
html {
  -webkit-text-size-adjust: 100%;
  scroll-behavior: smooth;
}
body {
  margin: 0;
  background: #fff;
  color: #000;
  font-family: var(--font-sans);
  -webkit-font-smoothing: antialiased;
  overflow-x: hidden;
}
img {
  max-width: 100%;
}
a {
  color: inherit;
  text-decoration: none;
}
:focus-visible {
  outline: 2px solid var(--green);
  outline-offset: 3px;
  border-radius: 8px;
}
.skip {
  position: absolute;
  left: 16px;
  top: -64px;
  padding: 12px 16px;
  background: #000;
  color: #fff;
  border-radius: 12px;
  font: 700 14px/20px var(--font-sans);
  z-index: 20;
}
.skip:focus {
  top: 16px;
}

/* Inline icons from /assets/icons.svg. Single-colour glyphs paint with
   currentColor. */
.i {
  display: block;
  flex-shrink: 0;
}

/* iOS status bar inside the phone mockups. */
.sb {
  display: flex;
  align-items: center;
  justify-content: space-between;
  height: 44px;
  padding: 0 24px;
  color: #000;
  font: 600 16px/24px var(--font-sans);
}
.sb span:last-child {
  display: flex;
  gap: 6px;
}
.sb i {
  width: 18px;
  height: 11px;
  border: 1.5px solid currentColor;
  border-radius: 3px;
  opacity: 0.9;
}
.sb i + i {
  width: 17px;
}

.wrap {
  max-width: var(--max);
  margin: 0 auto;
  padding-left: var(--gutter);
  padding-right: var(--gutter);
}

/* ---------- Header ---------- */

.site-header {
  position: sticky;
  top: 0;
  z-index: 10;
  background: rgba(255, 255, 255, 0.9);
  -webkit-backdrop-filter: saturate(1.4) blur(12px);
  backdrop-filter: saturate(1.4) blur(12px);
  border-bottom: 1px solid var(--line);
}
.site-header .wrap {
  height: 80px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 24px;
}
.brand {
  display: flex;
  align-items: center;
  gap: 10px;
  font: 800 20px/24px var(--font-sans);
  letter-spacing: -0.5px;
}
.brand img {
  width: 23px;
  height: 24px;
}
.nav {
  display: flex;
  gap: 32px;
}
.nav a {
  font: 600 15px/20px var(--font-sans);
  color: var(--muted);
}
.nav a:hover,
.nav a[aria-current='page'] {
  color: #000;
}
.actions {
  display: flex;
  align-items: center;
  gap: 16px;
}
.login {
  font: 700 14px/24px var(--font-sans);
}
.login:hover {
  color: var(--green-dark);
}

/* ---------- Buttons ---------- */

.btn {
  height: 48px;
  padding: 0 24px;
  border-radius: 16px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  font: 700 14px/24px var(--font-sans);
  white-space: nowrap;
  background: var(--lime);
  color: #000;
  transition: background-color 0.15s;
}
.btn:hover {
  background: #b4e46f;
}
.btn.sm {
  height: 44px;
}
.btn.lg {
  height: 56px;
  padding: 0 32px;
  font-size: 16px;
}
.btn.quiet {
  background: var(--mist);
}
.btn.quiet:hover {
  background: #e9ebf0;
}
.btn.dark {
  background: #000;
  color: #fff;
}
.btn.dark:hover {
  background: #222;
}
.btn.light {
  background: #fff;
}
.btn.light:hover {
  background: #f5f6f9;
}
.btn-row {
  display: flex;
  flex-wrap: wrap;
  gap: 12px;
}

/* ---------- Type ---------- */

.eyebrow {
  font: 700 11px/16px var(--font-sans);
  letter-spacing: 2px;
  text-transform: uppercase;
  color: var(--muted);
}
.h1 {
  margin: 0;
  font: 800 clamp(44px, 6.1vw, 88px) / 1.045 var(--font-sans);
  letter-spacing: -0.028em;
  text-wrap: balance;
}
.h1.page {
  font-size: clamp(40px, 5vw, 72px);
}
.h2 {
  margin: 0;
  font: 800 clamp(28px, 2.5vw, 36px) / 1.11 var(--font-sans);
  letter-spacing: -0.5px;
  text-wrap: balance;
}
.lede {
  margin: 0;
  font: 500 18px/28px var(--font-sans);
  color: var(--muted);
  max-width: 540px;
  text-wrap: pretty;
}
.fine {
  font: 500 13px/18px var(--font-sans);
  color: var(--muted);
}
.stack {
  display: flex;
  flex-direction: column;
  gap: 20px;
}

/* ---------- Layout ---------- */

.section {
  padding-top: var(--section-y);
  padding-bottom: var(--section-y);
}
.mist {
  background: var(--mist);
}
.split {
  display: grid;
  grid-template-columns: minmax(0, 1fr) minmax(0, 1fr);
  gap: clamp(48px, 6.7vw, 96px);
  align-items: center;
}
.center {
  display: flex;
  justify-content: center;
}

/* Fixed-size mockups scale down as a unit rather than reflowing. */
.mock {
  flex-shrink: 0;
}

/* ---------- Landing hero ---------- */

.hero {
  padding-top: clamp(48px, 5.6vw, 80px);
}
.hero .wrap {
  display: grid;
  grid-template-columns: minmax(0, 1fr) 560px;
  gap: 48px;
  align-items: end;
}
.hero-copy {
  display: flex;
  flex-direction: column;
  gap: 28px;
  padding-bottom: 96px;
}
.pill {
  display: inline-flex;
  align-self: flex-start;
  align-items: center;
  gap: 8px;
  min-height: 32px;
  padding: 0 12px;
  border-radius: 44px;
  background: var(--mist);
  font: 600 13px/18px var(--font-sans);
}
.pill .i {
  color: var(--green);
}
.hero-mock {
  width: 560px;
}

/* ---------- Built for strip ---------- */

.strip {
  border-top: 1px solid var(--line);
  border-bottom: 1px solid var(--line);
}
.strip .wrap {
  padding-top: 32px;
  padding-bottom: 32px;
  display: flex;
  align-items: center;
  gap: 24px;
}
.chips {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  margin: 0;
  padding: 0;
  list-style: none;
}
.chips li {
  height: 36px;
  padding: 0 14px;
  border-radius: 40px;
  display: flex;
  align-items: center;
  gap: 6px;
  font: 600 14px/20px var(--font-sans);
  white-space: nowrap;
  background: var(--mist);
}
.chips li.on {
  background: #f2fbe6;
}
.chips li.on .i {
  color: var(--green);
}

/* ---------- Numbered steps and check lists ---------- */

.steps {
  margin: 0;
  padding: 8px 0 0;
  list-style: none;
}
.steps li {
  display: flex;
  gap: 16px;
  padding: 14px 0;
}
.steps li + li {
  border-top: 1px solid var(--line);
}
.steps .n {
  width: 28px;
  height: 28px;
  border-radius: 999px;
  background: #000;
  color: #fff;
  display: flex;
  align-items: center;
  justify-content: center;
  font: 700 13px/1 var(--font-sans);
  flex-shrink: 0;
}
.steps b {
  display: block;
  font: 700 16px/24px var(--font-sans);
}
.steps span:not(.n) {
  display: block;
  font: 500 14px/20px var(--font-sans);
  color: var(--muted);
}

.checks {
  margin: 0;
  padding: 8px 0 0;
  list-style: none;
  display: flex;
  flex-direction: column;
  gap: 14px;
}
.checks li {
  display: flex;
  gap: 12px;
  align-items: flex-start;
  font: 500 16px/24px var(--font-sans);
  text-wrap: pretty;
}
.checks .tick {
  width: 24px;
  height: 24px;
  border-radius: 999px;
  background: #f2fbe6;
  color: var(--green);
  display: flex;
  align-items: center;
  justify-content: center;
  flex-shrink: 0;
}

/* ---------- Photo compositions ---------- */

.lobby {
  min-height: 480px;
}
.meeting {
  width: 560px;
  max-width: 100%;
}

/* ---------- Audience cards ---------- */

.cards {
  display: grid;
  grid-template-columns: repeat(5, minmax(0, 1fr));
  gap: 16px;
  margin: 0;
  padding: 0;
  list-style: none;
}
.cards li {
  display: flex;
  flex-direction: column;
  gap: 16px;
  padding: 24px;
  border-radius: 16px;
  background: var(--mist);
}
.cards .ico {
  width: 44px;
  height: 44px;
  border-radius: 12px;
  background: #fff;
  display: flex;
  align-items: center;
  justify-content: center;
}
.cards .ico.on {
  color: var(--green);
}
.cards b {
  font: 800 18px/24px var(--font-sans);
  letter-spacing: -0.5px;
}
.cards span:last-child {
  font: 500 14px/20px var(--font-sans);
  color: var(--muted);
}

/* Three-up feature cards on the subpages. */
.features {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 16px;
  margin: 0;
  padding: 0;
  list-style: none;
}
.features li {
  padding: 32px;
  border-radius: 16px;
  background: #fff;
  display: flex;
  flex-direction: column;
  gap: 16px;
}
.features .ico {
  width: 48px;
  height: 48px;
  border-radius: 12px;
  background: var(--lime);
  display: flex;
  align-items: center;
  justify-content: center;
}
.features b {
  font: 800 24px/28px var(--font-sans);
  letter-spacing: -0.5px;
}
.features span:last-child {
  font: 500 16px/24px var(--font-sans);
  color: var(--muted);
  text-wrap: pretty;
}

/* Large numbered steps on the subpages. */
.join {
  display: grid;
  grid-template-columns: 400px minmax(0, 1fr);
  gap: clamp(32px, 6.7vw, 96px);
}
.join ol {
  margin: 0;
  padding: 0;
  list-style: none;
}
.join li {
  display: grid;
  grid-template-columns: 64px minmax(0, 1fr);
  gap: 24px;
  padding: 28px 0;
  border-top: 1px solid var(--line);
}
.join .n {
  font: 800 36px/40px var(--font-sans);
  letter-spacing: -1px;
  color: var(--green);
}
.join b {
  display: block;
  font: 800 20px/28px var(--font-sans);
  letter-spacing: -0.3px;
}
.join span:not(.n) {
  display: block;
  margin-top: 6px;
  font: 500 16px/24px var(--font-sans);
  color: var(--muted);
}

/* Subpage hero: copy plus a phone on a grey panel. */
.page-hero .wrap {
  display: grid;
  grid-template-columns: minmax(0, 1fr) 480px;
  gap: clamp(40px, 5.6vw, 80px);
  align-items: center;
}
.panel {
  display: flex;
  justify-content: center;
  padding: 40px 0;
  border-radius: 24px;
  background: var(--mist);
}

/* ---------- Call to action ---------- */

.cta {
  padding: clamp(40px, 5.6vw, 80px);
  border-radius: 24px;
  background: var(--lime);
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 48px;
}
.cta .lede {
  color: rgba(0, 0, 0, 0.62);
  max-width: 480px;
}
.cta-side {
  display: flex;
  flex-direction: column;
  gap: 12px;
}
.cta-side .fine {
  color: rgba(0, 0, 0, 0.62);
}
.cta-side .fine a {
  font-weight: 700;
  color: #000;
  text-decoration: underline;
  text-underline-offset: 2px;
}

/* ---------- Footer ---------- */

.site-footer {
  border-top: 1px solid var(--line);
}
.site-footer .wrap {
  padding-top: 64px;
  padding-bottom: 40px;
  display: flex;
  flex-direction: column;
  gap: 48px;
}
.foot-top {
  display: flex;
  justify-content: space-between;
  gap: 48px;
}
.foot-about {
  display: flex;
  flex-direction: column;
  gap: 12px;
  max-width: 320px;
}
.foot-about p {
  margin: 0;
  font: 500 14px/20px var(--font-sans);
  color: var(--muted);
}
.foot-cols {
  display: flex;
  gap: 80px;
}
.foot-cols ul {
  margin: 0;
  padding: 0;
  list-style: none;
  display: flex;
  flex-direction: column;
  gap: 12px;
  font: 500 14px/20px var(--font-sans);
}
.foot-cols a:hover {
  color: var(--green-dark);
}
.foot-cols .soon {
  color: var(--muted);
}
.foot-bottom {
  padding-top: 24px;
  border-top: 1px solid var(--line);
  font: 500 13px/18px var(--font-sans);
  color: var(--muted);
}

/* ---------- Responsive ---------- */

@media (max-width: 1180px) {
  .hero .wrap {
    grid-template-columns: minmax(0, 1fr);
    align-items: start;
  }
  .hero-copy {
    padding-bottom: 0;
  }
  .hero-mock {
    justify-self: center;
  }
  .cards {
    grid-template-columns: repeat(3, minmax(0, 1fr));
  }
  .page-hero .wrap {
    grid-template-columns: minmax(0, 1fr) 400px;
  }
}

@media (max-width: 960px) {
  .nav {
    display: none;
  }
  .split,
  .page-hero .wrap,
  .join {
    grid-template-columns: minmax(0, 1fr);
  }
  /* Keep the copy above the picture whichever side the picture was on. */
  .split > .mock-side {
    order: 2;
  }
  .features {
    grid-template-columns: minmax(0, 1fr);
  }
  .cta {
    flex-direction: column;
    align-items: flex-start;
  }
  .foot-top {
    flex-direction: column;
  }
  .strip .wrap {
    flex-direction: column;
    align-items: flex-start;
    gap: 16px;
  }
}

/* A second row so the section links stay reachable without a menu. */
.subnav {
  display: none;
}
@media (max-width: 960px) {
  .subnav {
    display: flex;
    gap: 24px;
    overflow-x: auto;
    padding: 0 var(--gutter) 14px;
    margin-top: -8px;
    scrollbar-width: none;
  }
  .subnav a {
    font: 600 14px/20px var(--font-sans);
    color: var(--muted);
    white-space: nowrap;
  }
  .subnav a[aria-current='page'] {
    color: #000;
  }
  .site-header .wrap {
    height: 68px;
  }
}

@media (max-width: 720px) {
  .cards {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }
  .foot-cols {
    gap: 40px;
    flex-wrap: wrap;
  }
}

/*
 * The 560px compositions scale as a unit. `zoom` (rather than a transform)
 * shrinks the layout box too, so nothing below is left with a gap.
 */
@media (max-width: 640px) {
  .hero-mock,
  .meeting {
    zoom: 0.6;
  }
  .lobby {
    min-height: 0;
    zoom: 0.72;
  }
}
@media (max-width: 380px) {
  .hero-mock,
  .meeting {
    zoom: 0.52;
  }
  .phone {
    zoom: 0.9;
  }
  .actions {
    gap: 12px;
  }
}

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

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