/* Linkit's public site, in the brand's blue and Geist (see brand/README.md). */
@font-face {
  font-family: Geist;
  src: url("/fonts/geist.woff2") format("woff2");
  font-weight: 100 900;
  font-display: swap;
}
:root {
  --ink: #16294a;
  --muted: #4d5d78;
  --soft: #6b7994;
  --bg: #f5f8fd;
  --card: #ffffff;
  --line: #e0e7f2;
  --brand: #2457a8;
  --brand-hover: #2f66bf;
  --tint: #dbe7fa;
  --tint-soft: #edf3fc;
  --accent: #3d74c9;
  --sky: #5b8fe0;
  --radius: 14px;
  color-scheme: light;
}
* {
  box-sizing: border-box;
}
html {
  -webkit-text-size-adjust: 100%;
  scroll-behavior: smooth;
}
@media (prefers-reduced-motion: reduce) {
  html {
    scroll-behavior: auto;
  }
}
body {
  margin: 0;
  font-family:
    Geist,
    -apple-system,
    BlinkMacSystemFont,
    "Segoe UI",
    sans-serif;
  color: var(--ink);
  background: var(--bg);
  line-height: 1.6;
  font-size: 16px;
}
a {
  color: var(--brand);
}
img,
svg {
  display: block;
  max-width: 100%;
}
.wrap {
  width: min(1120px, 100% - 32px);
  margin-inline: auto;
}
.skip {
  position: absolute;
  left: -999px;
  top: 8px;
  background: var(--card);
  padding: 8px 14px;
  border-radius: 8px;
  z-index: 10;
}
.skip:focus {
  left: 16px;
}
:focus-visible {
  outline: 2px solid var(--brand);
  outline-offset: 3px;
}

/* Header */
.site-header {
  padding: 22px 0;
}
.site-header .wrap {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 20px;
}
.brand {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  font-size: 28px;
  font-weight: 700;
  letter-spacing: -0.04em;
  color: var(--ink);
  text-decoration: none;
}
.brand-mark {
  width: 34px;
  height: 34px;
}
.brand-dot {
  color: var(--sky);
  /* the header spaces its parts 10px apart; the dot sits right after "linkit" */
  margin-left: -10px;
}
.site-nav {
  display: flex;
  align-items: center;
  gap: 26px;
  font-size: 14px;
}
.site-nav a {
  color: var(--muted);
  text-decoration: none;
}
.site-nav a:hover {
  color: var(--ink);
}
.button {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  padding: 12px 20px;
  border-radius: 10px;
  font-size: 15px;
  font-weight: 600;
  text-decoration: none;
  white-space: nowrap;
  border: 1px solid transparent;
}
.button.primary {
  background: var(--brand);
  color: #fff;
}
.button.primary:hover {
  background: var(--brand-hover);
}
.button.secondary {
  background: var(--card);
  color: var(--brand);
  border-color: var(--line);
}
.button.secondary:hover {
  background: var(--tint-soft);
}
.site-nav .button {
  padding: 9px 16px;
  font-size: 14px;
  color: #fff;
}

/* Type */
.eyebrow {
  font-size: 11px;
  letter-spacing: 2px;
  font-weight: 650;
  color: var(--accent);
  text-transform: uppercase;
  margin: 0 0 18px;
}
h1,
h2,
h3 {
  margin: 0;
  font-weight: 650;
  letter-spacing: -0.03em;
  line-height: 1.08;
}
h1 {
  font-size: clamp(42px, 6.4vw, 78px);
}
h1 em,
h2 em {
  font-style: normal;
  color: var(--accent);
}
h2 {
  font-size: clamp(30px, 4vw, 46px);
}
h3 {
  font-size: 19px;
  letter-spacing: -0.01em;
  line-height: 1.3;
}
.lead {
  font-size: 18px;
  color: var(--muted);
  max-width: 34em;
  text-wrap: pretty;
}

/* Hero */
.hero {
  padding: 56px 0 90px;
}
.hero .wrap {
  display: grid;
  grid-template-columns: minmax(0, 1.05fr) minmax(0, 0.95fr);
  gap: 56px;
  align-items: center;
}
.hero .lead {
  margin: 26px 0 32px;
}
.actions {
  display: flex;
  flex-wrap: wrap;
  gap: 12px;
}
.hero-note {
  margin-top: 18px;
  font-size: 13px;
  color: var(--soft);
}

/* Sections */
.section {
  padding: 90px 0;
}
.section.tinted {
  background: var(--card);
  border-block: 1px solid var(--line);
}
.cta {
  text-align: center;
  padding: 100px 0;
}
.cta .lead {
  margin: 18px auto 30px;
}
.cta .actions {
  justify-content: center;
}

/* Footer */
.site-footer {
  border-top: 1px solid var(--line);
  padding: 34px 0 44px;
  font-size: 14px;
  color: var(--soft);
}
.site-footer .wrap {
  display: flex;
  flex-wrap: wrap;
  justify-content: space-between;
  gap: 16px;
}
.site-footer nav {
  display: flex;
  flex-wrap: wrap;
  gap: 22px;
}
.site-footer a {
  color: var(--muted);
  text-decoration: none;
}
.site-footer a:hover {
  color: var(--ink);
}

/* Long-form pages: privacy, terms, support. */
.doc {
  padding: 40px 0 90px;
}
.doc .wrap {
  max-width: 760px;
}
.doc h1 {
  font-size: clamp(36px, 5vw, 54px);
  margin-bottom: 12px;
}
.doc .updated {
  color: var(--soft);
  font-size: 14px;
  margin: 0 0 36px;
}
.doc h2 {
  font-size: 24px;
  letter-spacing: -0.02em;
  margin: 44px 0 12px;
}
.doc h3 {
  font-size: 17px;
  margin: 26px 0 8px;
}
.doc p,
.doc li {
  color: #33435e;
}
.doc ul {
  padding-left: 22px;
}
.doc li + li {
  margin-top: 6px;
}
.summary {
  background: var(--card);
  border: 1px solid var(--line);
  border-radius: var(--radius);
  padding: 22px 24px;
}
.summary h2 {
  margin-top: 0;
  font-size: 18px;
}
.summary ul {
  margin: 10px 0 0;
}
.faq details {
  border-bottom: 1px solid var(--line);
  padding: 16px 0;
}
.faq summary {
  cursor: pointer;
  font-weight: 550;
  font-size: 17px;
  list-style: none;
  display: flex;
  justify-content: space-between;
  gap: 16px;
}
.faq summary::-webkit-details-marker {
  display: none;
}
.faq summary::after {
  content: "+";
  color: var(--accent);
  font-size: 22px;
  line-height: 1;
}
.faq details[open] summary::after {
  content: "–";
}
.faq details p {
  margin: 10px 0 0;
}
.contact-card {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
  background: var(--card);
  border: 1px solid var(--line);
  border-radius: var(--radius);
  padding: 24px;
  margin-bottom: 40px;
}
.contact-card p {
  margin: 4px 0 0;
}

/* The waitlist form */
.join {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
  max-width: 480px;
}
.join input[type="email"] {
  flex: 1 1 220px;
  min-width: 0;
  min-height: 48px;
  padding: 12px 16px;
  border: 1px solid var(--line);
  border-radius: 10px;
  background: var(--card);
  color: var(--ink);
  font: inherit;
  font-size: 16px;
}
.join input[type="email"]:focus {
  outline: 3px solid var(--tint);
  border-color: var(--accent);
}
.join .button {
  min-height: 48px;
  border: 0;
  cursor: pointer;
  font: inherit;
  font-weight: 600;
}
.join .button:disabled {
  opacity: 0.6;
  cursor: default;
}
.join .hp {
  position: absolute;
  left: -10000px;
  width: 1px;
  height: 1px;
  opacity: 0;
}
.join-status {
  flex-basis: 100%;
  margin: 0;
  min-height: 1.5em;
  font-size: 14px;
  color: var(--brand);
}
.join.done input,
.join.done .button {
  display: none;
}
.join.done .join-status {
  font-size: 16px;
  font-weight: 600;
}
.cta .join {
  margin: 0 auto;
  justify-content: center;
}
.cta .hero-note a,
.hero-note a {
  color: var(--muted);
}
.visually-hidden {
  position: absolute;
  width: 1px;
  height: 1px;
  overflow: hidden;
  clip-path: inset(50%);
  white-space: nowrap;
}

/* The homepage: a centred top section, then the demo */
.hero.solo {
  padding: 64px 0 36px;
  text-align: center;
}
.hero.solo .wrap {
  display: block;
  max-width: 780px;
}
.hero.solo .lead {
  margin: 22px auto 30px;
}
.hero.solo .join {
  margin: 0 auto;
  justify-content: center;
}
.showcase {
  padding: 24px 0 72px;
  text-align: center;
}
.show-sub {
  margin: 12px auto 30px;
  color: var(--muted);
  font-size: 17px;
}
/* The demo: your chat on the left, what they open on the right. */
.demo-tabs {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: 8px;
  margin: 0 0 34px;
}
.demo-tabs[hidden] {
  display: none;
}
.demo-tabs button {
  min-height: 42px;
  padding: 8px 18px;
  border: 1px solid var(--line);
  border-radius: 999px;
  background: var(--card);
  color: var(--muted);
  font: inherit;
  font-size: 15px;
  font-weight: 600;
  cursor: pointer;
}
.demo-tabs button[aria-selected="true"] {
  background: var(--brand);
  border-color: var(--brand);
  color: #fff;
}
.demo {
  display: grid;
  grid-template-columns: minmax(0, 1fr) 270px;
  gap: 56px;
  align-items: center;
  max-width: 960px;
  margin: 0 auto;
  text-align: left;
}
.demo + .demo {
  margin-top: 72px;
}
.demo[hidden] {
  display: none;
}
.chat {
  padding: 22px;
  border: 1px solid var(--line);
  border-radius: 22px;
  background: var(--card);
  box-shadow: 0 18px 50px rgba(22, 41, 74, 0.08);
}
.chat-label {
  margin: 0 0 18px;
  font-size: 12px;
  font-weight: 600;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: var(--soft);
}
.msg {
  display: flex;
  flex-direction: column;
  gap: 8px;
}
.msg.you {
  align-items: flex-end;
  margin-left: 12%;
}
.msg.ai {
  align-items: flex-start;
  margin: 18px 10% 0 0;
}
.bubble {
  margin: 0;
  padding: 12px 16px;
  border-radius: 18px;
  font-size: 15.5px;
  line-height: 1.5;
}
.you .bubble {
  background: var(--brand);
  color: #fff;
  border-bottom-right-radius: 6px;
}
.ai .bubble {
  background: var(--tint-soft);
  border-bottom-left-radius: 6px;
}
.files {
  display: flex;
  flex-wrap: wrap;
  justify-content: flex-end;
  gap: 6px;
}
.file {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  padding: 6px 10px;
  border: 1px solid var(--line);
  border-radius: 10px;
  font-size: 13px;
  color: var(--muted);
}
.file svg {
  width: 16px;
  height: 16px;
  fill: none;
  stroke: var(--accent);
  stroke-width: 1.8;
  stroke-linecap: round;
  stroke-linejoin: round;
}
.link-card {
  display: block;
  width: min(100%, 340px);
  overflow: hidden;
  border: 1px solid var(--line);
  border-radius: 14px;
  background: var(--card);
  color: var(--ink);
  text-decoration: none;
}
.link-card:hover {
  border-color: var(--accent);
}
.link-card img {
  width: 100%;
  height: auto;
  border-bottom: 1px solid var(--line);
}
.link-title {
  display: block;
  padding: 10px 14px 0;
  font-size: 15px;
  font-weight: 600;
  line-height: 1.35;
}
.link-host {
  display: block;
  padding: 2px 14px 12px;
  font-size: 13px;
  color: var(--soft);
}
.typing {
  display: none;
  gap: 5px;
  width: fit-content;
  margin-top: 18px;
  padding: 14px 16px;
  border-radius: 18px;
  background: var(--tint-soft);
}
.typing i {
  width: 7px;
  height: 7px;
  border-radius: 50%;
  background: var(--accent);
  animation: typing 1s infinite;
}
.typing i:nth-child(2) {
  animation-delay: 0.15s;
}
.typing i:nth-child(3) {
  animation-delay: 0.3s;
}
@keyframes typing {
  0%,
  100% {
    opacity: 0.35;
  }
  50% {
    opacity: 1;
    transform: translateY(-2px);
  }
}
.phone-side {
  margin: 0;
  text-align: center;
}
.phone-side figcaption {
  margin-bottom: 12px;
  font-size: 14px;
  font-weight: 600;
}
.phone-side figcaption span {
  display: block;
  font-weight: 400;
  color: var(--soft);
}
.phone {
  display: block;
  padding: 9px;
  border-radius: 44px;
  background: #0f1729;
  box-shadow: 0 30px 60px rgba(22, 41, 74, 0.25);
}
.phone img {
  width: 100%;
  height: auto;
  border-radius: 35px;
}
/* Playing: each part arrives in turn (the script adds "in"). */
.demo.playing .beat {
  opacity: 0;
  transform: translateY(12px);
  transition:
    opacity 0.45s ease,
    transform 0.45s ease;
}
.demo.playing .beat.in {
  opacity: 1;
  transform: none;
}
.demo.playing .typing.in {
  display: flex;
}
@media (max-width: 800px) {
  .demo {
    grid-template-columns: minmax(0, 1fr);
    gap: 32px;
  }
  .phone-side {
    width: min(270px, 72vw);
    margin: 0 auto;
  }
  .msg.you {
    margin-left: 6%;
  }
  .msg.ai {
    margin-right: 0;
  }
}
/* Phones and narrow windows */
@media (max-width: 640px) {
  .hero.solo {
    padding: 36px 0 28px;
  }
  .site-nav a:not(.button) {
    display: none;
  }
  .chat {
    padding: 16px;
  }
  .section {
    padding: 64px 0;
  }
  .lead {
    font-size: 17px;
  }
}
