/* Toka Health holding page. Design: "Signpost", Toka Health brand canvas. */

@font-face {
  font-family: 'Familjen Grotesk';
  src: url('/fonts/familjen-grotesk-latin.woff2') format('woff2');
  font-weight: 400 700;
  font-style: normal;
  font-display: swap;
}
@font-face {
  font-family: 'IBM Plex Mono';
  src: url('/fonts/ibm-plex-mono-400-latin.woff2') format('woff2');
  font-weight: 400;
  font-style: normal;
  font-display: swap;
}
@font-face {
  font-family: 'IBM Plex Mono';
  src: url('/fonts/ibm-plex-mono-500-latin.woff2') format('woff2');
  font-weight: 500;
  font-style: normal;
  font-display: swap;
}

:root {
  --midnight: #101935;
  --coral: #FF5D73;
  --coral-deep: #E0405A;
  --haze: #F7F7FA;
  --white: #FFFFFF;
  --ink-soft: #3B4160;
  --ink-foot: #4A4F68;
  --gut: clamp(20px, 4.19vw + 3.6px, 64px);
  --sans: 'Familjen Grotesk', system-ui, -apple-system, 'Segoe UI', sans-serif;
  --mono: 'IBM Plex Mono', ui-monospace, Menlo, Consolas, monospace;
}

*, *::before, *::after { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; text-size-adjust: 100%; }
body {
  margin: 0;
  background: var(--haze);
  color: var(--midnight);
  font-family: var(--sans);
  -webkit-font-smoothing: antialiased;
}
h1, h2, p, ul { margin: 0; }
ul { list-style: none; padding: 0; }
img { display: block; }
a:focus-visible { outline: 3px solid currentColor; outline-offset: 3px; border-radius: 2px; }

.wrap { width: 100%; max-width: 1440px; margin: 0 auto; padding-left: var(--gut); padding-right: var(--gut); }
.sr {
  position: absolute; width: 1px; height: 1px; padding: 0; margin: -1px;
  overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; border: 0;
}

/* Safety banner */
.safe { background: var(--midnight); color: var(--white); }
.safe p {
  display: flex; align-items: flex-start; gap: 12px;
  padding-top: 12px; padding-bottom: 12px;
  font-size: 14px; line-height: 1.4;
}
.safe p::before {
  content: ""; flex: none; width: 8px; height: 8px; margin-top: 6px;
  border-radius: 50%; background: var(--coral);
}
.safe a { color: var(--coral); font-weight: 700; text-underline-offset: 3px; }

/* Logo */
.top { padding-top: 24px; }
.top img { height: 30px; width: auto; }

/* Hero */
.hero {
  display: grid; grid-template-columns: minmax(0, 1fr); gap: 8px;
  padding-top: 40px; padding-bottom: 56px;
}
.hero h1 {
  font-size: clamp(40px, 2.29vw + 31.1px, 64px);
  line-height: 1.04; letter-spacing: -.03em; font-weight: 700;
}
.hl { color: var(--coral-deep); }
.lead {
  margin-top: 24px;
  font-size: clamp(18px, .29vw + 16.9px, 21px);
  line-height: 1.55; color: var(--ink-soft); max-width: 36em;
}

/* Signpost: phone and tablet, one pole on the left, every plate points right */
.sign { position: relative; padding: 84px 0 48px; }
.pole { position: absolute; left: 22px; top: 52px; bottom: 0; width: 12px; background: var(--midnight); }
.base { position: absolute; left: 0; bottom: 0; width: 56px; height: 6px; background: var(--midnight); }
.fin { position: absolute; left: 28px; top: 0; width: 56px; height: 56px; transform: translateX(-50%); }
.plates { position: relative; display: flex; flex-direction: column; gap: 12px; }
.plates li { align-self: flex-start; margin-left: 10px; }
.plate {
  display: inline-flex; align-items: center; gap: 10px;
  height: 52px; padding: 0 44px 0 24px;
  font-size: 17px; font-weight: 700; letter-spacing: -.01em; white-space: nowrap;
  background: var(--midnight); color: var(--white);
  clip-path: polygon(0 0, calc(100% - 24px) 0, 100% 50%, calc(100% - 24px) 100%, 0 100%);
  cursor: default; user-select: none;
}
.plate.em { background: var(--coral); color: var(--midnight); text-decoration: none; cursor: pointer; user-select: auto; }
.plate.em:hover { text-decoration: underline; text-decoration-thickness: 2px; text-underline-offset: 5px; }
.plate.em:focus-visible { outline: none; background: var(--midnight); color: var(--white); }
.call { width: .95em; height: .95em; flex: none; fill: currentColor; }

/* Partner band */
.partner { background: var(--midnight); color: var(--white); }
.partner .wrap {
  display: grid; grid-template-columns: minmax(0, 1fr); gap: 40px;
  padding-top: 56px; padding-bottom: 56px;
}
.label {
  display: block; margin-bottom: 20px;
  font-family: var(--mono); font-size: 12px; letter-spacing: .12em; text-transform: uppercase;
  color: var(--coral);
}
.partner h2 { font-size: 28px; line-height: 1.12; letter-spacing: -.02em; font-weight: 700; }
.partner p { margin-top: 18px; font-size: 17px; line-height: 1.5; color: rgba(255, 255, 255, .82); }
.cta {
  display: inline-flex; align-items: center;
  height: 56px; margin-top: 16px; padding: 0 48px 0 22px;
  background: var(--coral); color: var(--midnight);
  font-size: 18px; font-weight: 700; letter-spacing: -.01em; text-decoration: none;
  clip-path: polygon(0 0, calc(100% - 24px) 0, 100% 50%, calc(100% - 24px) 100%, 0 100%);
}
.cta:hover { text-decoration: underline; text-decoration-thickness: 2px; text-underline-offset: 5px; }
.cta:focus-visible { outline: none; background: var(--white); }
.buyers li {
  display: grid; grid-template-columns: minmax(0, 1fr); gap: 8px; align-items: baseline;
  padding: 20px 0; border-bottom: 1px solid rgba(255, 255, 255, .16);
}
.buyers li:first-child { border-top: 1px solid rgba(255, 255, 255, .16); }
.buyer {
  font-family: var(--mono); font-size: 12px; letter-spacing: .12em; text-transform: uppercase;
  color: rgba(255, 255, 255, .72);
}
.line { font-size: 19px; line-height: 1.35; font-weight: 500; letter-spacing: -.01em; }

/* Footer */
.foot {
  display: flex; flex-direction: column; gap: 4px;
  padding-top: 32px; padding-bottom: 44px;
  font-size: 14px; line-height: 1.5; color: var(--ink-foot);
}
.foot a { color: inherit; text-underline-offset: 3px; }
.foot .dot { display: none; }

/* 404 */
.lost { padding-top: 64px; padding-bottom: 96px; }
.lost h1 { font-size: clamp(40px, 2.29vw + 31.1px, 64px); line-height: 1.04; letter-spacing: -.03em; font-weight: 700; }
.lost p { margin-top: 24px; font-size: clamp(18px, .29vw + 16.9px, 21px); line-height: 1.55; color: var(--ink-soft); }
.lost a { color: var(--midnight); font-weight: 700; text-decoration-color: var(--coral-deep); text-decoration-thickness: 2px; text-underline-offset: 5px; }

@media (max-width: 359px) {
  .plate { font-size: 15px; padding-right: 38px; padding-left: 18px; }
}

@media (min-width: 600px) {
  .foot { flex-direction: row; flex-wrap: wrap; gap: 6px 10px; }
  .foot .dot { display: inline; }
}

@media (min-width: 640px) {
  .safe p { align-items: center; font-size: 15px; padding-top: 13px; padding-bottom: 13px; }
  .safe p::before { margin-top: 0; }
  .plates { gap: 18px; }
  .plate {
    height: 64px; padding: 0 54px 0 30px; font-size: 21px;
    clip-path: polygon(0 0, calc(100% - 30px) 0, 100% 50%, calc(100% - 30px) 100%, 0 100%);
  }
  .fin { width: 72px; height: 72px; left: 28px; }
  .sign { padding-top: 104px; }
  .pole { top: 64px; }
}

@media (min-width: 900px) {
  .partner .wrap {
    grid-template-columns: minmax(0, 5fr) minmax(0, 6fr);
    gap: clamp(56px, 7vw, 96px); align-items: start;
    padding-top: 96px; padding-bottom: 96px;
  }
  .partner h2 { font-size: 40px; }
  .partner p { margin-top: 24px; font-size: 19px; }
  .cta {
    height: 64px; padding: 0 60px 0 28px; font-size: 22px;
    clip-path: polygon(0 0, calc(100% - 30px) 0, 100% 50%, calc(100% - 30px) 100%, 0 100%);
  }
  .buyers li { grid-template-columns: 180px minmax(0, 1fr); gap: 24px; padding: 26px 0; }
  .line { font-size: 23px; }
}

/* Desktop: text and signpost side by side, plates alternate left and right */
@media (min-width: 1200px) {
  .top { padding-top: 36px; }
  .top img { height: 40px; }
  .hero {
    grid-template-columns: minmax(0, 1fr) 560px; gap: 56px; align-items: end;
    padding-top: 40px; padding-bottom: 104px;
  }
  .hero h1 { line-height: 1.02; }
  .lead { margin-top: 36px; }
  .sign { padding: 100px 0 22px; }
  .pole { left: 304px; top: 64px; }
  .base { left: 260px; width: 100px; }
  .fin { left: 310px; }
  .plates li { margin-left: 0; }
  .plates .r { align-self: flex-start; margin-left: 292px; }
  .plates .l { align-self: flex-end; margin-right: 232px; }
  .plates .l .plate {
    padding: 0 30px 0 54px;
    clip-path: polygon(30px 0, 100% 0, 100% 100%, 30px 100%, 0 50%);
  }
}
