/* LinkBridge site. Liquid Glass look to match the Apple apps. */
:root {
  color-scheme: light;
  --bg: #eef2fb;
  --bg-2: #dfe6f8;
  --ink: #141a2e;
  --muted: #545d7a;
  --accent: #3657d9;
  --accent-ink: #ffffff;
  --signal: #1fa463;
  --glass: rgba(255, 255, 255, 0.58);
  --glass-strong: rgba(255, 255, 255, 0.78);
  --edge: rgba(255, 255, 255, 0.9);
  --line: rgba(20, 26, 46, 0.1);
  --shadow: 0 1px 1px rgba(20, 26, 46, 0.04), 0 12px 32px -12px rgba(30, 45, 110, 0.22);
  --blob-a: #9fb4ff;
  --blob-b: #8fe0c6;
  --radius-lg: 28px;
  --radius-md: 18px;
  --radius-pill: 999px;
  --sans: -apple-system, BlinkMacSystemFont, "SF Pro Text", system-ui, "Segoe UI", Roboto, sans-serif;
  --rounded: ui-rounded, "SF Pro Rounded", -apple-system, system-ui, sans-serif;
}
*, *::before, *::after { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; scroll-behavior: smooth; }
body {
  margin: 0;
  font-family: var(--sans);
  font-size: 1.0625rem;
  line-height: 1.55;
  color: var(--ink);
  background: var(--bg);
  overflow-x: hidden;
}
/* The soft backdrop that the glass refracts. Fixed, so panels change as you scroll. */
body::before {
  content: "";
  position: fixed;
  inset: -20vmax;
  z-index: -1;
  background:
    radial-gradient(40vmax 30vmax at 18% 12%, var(--blob-a), transparent 70%),
    radial-gradient(36vmax 28vmax at 88% 38%, var(--blob-b), transparent 70%),
    radial-gradient(44vmax 30vmax at 30% 92%, var(--bg-2), transparent 70%),
    var(--bg);
  opacity: 0.85;
}
img { max-width: 100%; height: auto; display: block; }
a { color: var(--accent); text-underline-offset: 0.18em; }
:focus-visible { outline: 3px solid var(--accent); outline-offset: 3px; border-radius: 8px; }

.wrap { width: min(1120px, 100% - 32px); margin-inline: auto; }
.prose { max-width: 66ch; }

.glass {
  background: var(--glass);
  -webkit-backdrop-filter: blur(22px) saturate(1.7);
  backdrop-filter: blur(22px) saturate(1.7);
  border: 1px solid var(--edge);
  box-shadow: var(--shadow), inset 0 1px 0 var(--edge);
}
@media (prefers-reduced-transparency: reduce) {
  .glass { background: var(--glass-strong); -webkit-backdrop-filter: none; backdrop-filter: none; }
}

/* Header */
.site-head { position: sticky; top: 12px; z-index: 10; margin-top: 12px; }
.site-head .bar {
  display: flex; align-items: center; justify-content: space-between; gap: 16px;
  padding: 8px 8px 8px 18px; border-radius: var(--radius-pill);
}
.brand { display: inline-flex; align-items: center; gap: 10px; font-weight: 650; color: var(--ink); text-decoration: none; letter-spacing: -0.01em; }
.brand svg { width: 26px; height: 26px; }
.site-head nav { display: flex; align-items: center; gap: 4px; }
.site-head nav a { color: var(--ink); text-decoration: none; padding: 8px 12px; border-radius: var(--radius-pill); font-size: 0.95rem; }
.site-head nav a:hover { background: var(--glass-strong); }
.site-head nav a.btn { padding: 8px 16px; color: var(--accent-ink); }
.site-head nav a.btn:hover { background: var(--accent); }
@media (max-width: 640px) { .site-head nav a:not(.btn) { display: none; } }

/* Buttons */
.btn {
  display: inline-flex; flex-direction: column; justify-content: center;
  min-height: 48px; padding: 10px 22px; border-radius: var(--radius-pill);
  background: var(--accent); color: var(--accent-ink); text-decoration: none;
  font-weight: 600; line-height: 1.2;
  box-shadow: 0 8px 20px -10px var(--accent), inset 0 1px 0 rgba(255,255,255,.35);
}
.btn small { font-weight: 450; font-size: 0.8rem; opacity: 0.85; }
.btn:hover { filter: brightness(1.06); }
.btn.secondary { background: var(--glass-strong); color: var(--ink); box-shadow: var(--shadow), inset 0 1px 0 var(--edge); border: 1px solid var(--edge); }

/* Hero */
.hero { padding: clamp(48px, 9vw, 112px) 0 clamp(40px, 6vw, 72px); display: grid; gap: 48px; align-items: center; grid-template-columns: 1fr 1.05fr; }
@media (max-width: 900px) { .hero { grid-template-columns: 1fr; } }
.hero h1 {
  font-size: clamp(2.4rem, 5.6vw, 4.1rem); line-height: 1.03; letter-spacing: -0.035em;
  font-weight: 700; margin: 0 0 20px; max-width: 14ch;
}
.lede { font-size: clamp(1.1rem, 1.6vw, 1.3rem); color: var(--muted); max-width: 40ch; margin: 0 0 28px; }
.ctas { display: flex; flex-wrap: wrap; gap: 12px; }
.fine { color: var(--muted); font-size: 0.9rem; margin-top: 16px; }

/* The pairing code: the one bold moment on the page */
.pairing { margin: 0; position: relative; display: grid; grid-template-columns: 1.35fr 1fr; gap: 16px; align-items: end; }
.pane { border-radius: var(--radius-lg); padding: 22px 22px 26px; }
.pane .who { display: flex; align-items: center; gap: 8px; font-size: 0.9rem; color: var(--muted); margin-bottom: 18px; }
.pane .who::before { content: ""; width: 8px; height: 8px; border-radius: 50%; background: var(--signal); }
.pane h2 { font-size: 1.05rem; margin: 0 0 4px; letter-spacing: -0.01em; }
.pane p { margin: 0; color: var(--muted); font-size: 0.92rem; }
.code {
  display: flex; gap: 6px; margin: 18px 0 20px;
  font-family: var(--rounded); font-variant-numeric: tabular-nums; font-weight: 650;
}
.code span {
  flex: 1 1 0; min-width: 0; display: grid; place-items: center; padding: 0.32em 0;
  font-size: clamp(1.5rem, 3.2vw, 2.3rem); border-radius: 12px;
  background: var(--glass-strong); border: 1px solid var(--edge);
}
.code span:nth-child(3) { margin-right: 8px; }
.pane.phone { border-radius: 34px; padding: 26px 18px 22px; }
.pane.phone .code { gap: 4px; }
.pane.phone .code span { font-size: clamp(1.1rem, 2.3vw, 1.6rem); border-radius: 9px; }
.pane.phone .code span:nth-child(3) { margin-right: 5px; }
.pane .actions { display: flex; gap: 8px; }
.pill { flex: 1; text-align: center; font-size: 0.85rem; font-weight: 600; padding: 9px 10px; border-radius: var(--radius-pill); background: var(--glass-strong); border: 1px solid var(--edge); }
.pill.primary { background: var(--accent); color: var(--accent-ink); border-color: transparent; }
.pairing figcaption { grid-column: 1 / -1; color: var(--muted); font-size: 0.92rem; text-align: center; margin-top: 6px; }
@media (max-width: 520px) { .pairing { grid-template-columns: 1fr; } .pane.phone { max-width: 300px; justify-self: end; margin-top: -8px; } }

@media (prefers-reduced-motion: no-preference) {
  .code span { animation: digit 520ms cubic-bezier(.2,.8,.2,1) both; }
  .code span:nth-child(1) { animation-delay: 200ms; } .code span:nth-child(2) { animation-delay: 260ms; }
  .code span:nth-child(3) { animation-delay: 320ms; } .code span:nth-child(4) { animation-delay: 380ms; }
  .code span:nth-child(5) { animation-delay: 440ms; } .code span:nth-child(6) { animation-delay: 500ms; }
  @keyframes digit { from { opacity: 0; transform: translateY(10px) scale(.96); } }
}

/* Sections */
section { padding: clamp(56px, 8vw, 104px) 0 0; }
h2.title { font-size: clamp(1.8rem, 3.4vw, 2.6rem); line-height: 1.1; letter-spacing: -0.03em; margin: 0 0 14px; max-width: 22ch; }
.intro { color: var(--muted); margin: 0 0 32px; max-width: 58ch; }

/* How it works: a real sequence, so numbered */
.steps { list-style: none; margin: 0; padding: 0; display: grid; gap: 16px; grid-template-columns: repeat(3, 1fr); counter-reset: step; }
@media (max-width: 820px) { .steps { grid-template-columns: 1fr; } }
.steps li { counter-increment: step; padding: 24px; border-radius: var(--radius-md); }
.steps li::before {
  content: counter(step); display: grid; place-items: center; width: 34px; height: 34px; margin-bottom: 14px;
  border-radius: 50%; background: var(--accent); color: var(--accent-ink); font-family: var(--rounded); font-weight: 700;
}
.steps h3 { margin: 0 0 6px; font-size: 1.1rem; }
.steps p { margin: 0; color: var(--muted); }

/* Screens */
.screens { display: grid; grid-template-columns: 1fr 1fr; gap: clamp(16px, 4vw, 48px); align-items: start; }
@media (max-width: 720px) { .screens { grid-template-columns: 1fr; justify-items: center; } }
.shot { margin: 0; max-width: 360px; justify-self: center; }
.shot .frame { padding: 10px; border-radius: 40px; }
.shot img { border-radius: 30px; }
.shot figcaption { text-align: center; color: var(--muted); font-size: 0.92rem; margin-top: 12px; }

/* What works today */
.matrix-wrap { border-radius: var(--radius-md); overflow-x: auto; }
table.matrix { width: 100%; border-collapse: collapse; min-width: 560px; }
.matrix th, .matrix td { text-align: left; padding: 14px 18px; border-bottom: 1px solid var(--line); vertical-align: top; }
.matrix thead th { font-size: 0.95rem; color: var(--muted); font-weight: 600; }
.matrix tbody th { font-weight: 600; }
.matrix tr:last-child th, .matrix tr:last-child td { border-bottom: 0; }
.yes { color: var(--signal); font-weight: 650; }
.no { color: var(--muted); }

/* Privacy */
.facts { display: grid; grid-template-columns: repeat(2, 1fr); gap: 0; border-radius: var(--radius-lg); overflow: hidden; }
@media (max-width: 720px) { .facts { grid-template-columns: 1fr; } }
.facts div { padding: 26px 28px; border-bottom: 1px solid var(--line); }
.facts div:nth-child(odd) { border-right: 1px solid var(--line); }
@media (max-width: 720px) { .facts div:nth-child(odd) { border-right: 0; } }
.facts h3 { margin: 0 0 6px; font-size: 1.1rem; }
.facts p { margin: 0; color: var(--muted); }

/* Coming */
.coming { display: grid; gap: 16px; grid-template-columns: 1fr 1fr; }
@media (max-width: 720px) { .coming { grid-template-columns: 1fr; } }
.coming article { padding: 24px; border-radius: var(--radius-md); border: 1.5px dashed var(--line); background: transparent; }
.tag { display: inline-block; font-size: 0.8rem; font-weight: 600; padding: 3px 10px; border-radius: var(--radius-pill); background: var(--glass-strong); border: 1px solid var(--edge); margin-bottom: 12px; }
.coming h3 { margin: 0 0 6px; font-size: 1.1rem; }
.coming p { margin: 0; color: var(--muted); }

/* Install */
.install { display: grid; grid-template-columns: 1fr 1fr; gap: 16px; }
@media (max-width: 820px) { .install { grid-template-columns: 1fr; } }
.install article { padding: 28px; border-radius: var(--radius-lg); }
.install h3 { margin: 0 0 4px; font-size: 1.3rem; letter-spacing: -0.015em; }
.install .req { color: var(--muted); margin: 0 0 18px; font-size: 0.95rem; }
.install ol { margin: 0 0 20px; padding-left: 1.3em; }
.install li { margin-bottom: 10px; }
.install li::marker { font-family: var(--rounded); font-weight: 700; color: var(--accent); }
.install .note { font-size: 0.92rem; color: var(--muted); margin: 0 0 20px; }
.ui { font-weight: 600; }

/* Testers */
.testers { padding: clamp(28px, 5vw, 48px); border-radius: var(--radius-lg); display: grid; grid-template-columns: 1.4fr auto; gap: 24px; align-items: center; }
@media (max-width: 720px) { .testers { grid-template-columns: 1fr; } }
.testers h2.title { margin-bottom: 10px; }
.testers p { margin: 0; color: var(--muted); max-width: 56ch; }

/* FAQ */
.faq { max-width: 760px; }
.faq details { border-bottom: 1px solid var(--line); }
.faq summary { cursor: pointer; padding: 18px 4px; font-weight: 600; list-style: none; display: flex; justify-content: space-between; gap: 16px; }
.faq summary::-webkit-details-marker { display: none; }
.faq summary::after { content: "+"; font-family: var(--rounded); font-size: 1.3rem; line-height: 1; color: var(--accent); }
.faq details[open] summary::after { content: "−"; }
.faq details p { margin: 0 4px 18px; color: var(--muted); }

/* Footer */
.site-foot { margin-top: clamp(64px, 9vw, 120px); padding: 28px 0 40px; border-top: 1px solid var(--line); color: var(--muted); font-size: 0.92rem; }
.site-foot .wrap { display: flex; flex-wrap: wrap; justify-content: space-between; gap: 16px; }
.site-foot a { color: var(--muted); }
.site-foot nav { display: flex; gap: 20px; flex-wrap: wrap; }

/* Privacy policy page */
.doc { padding: clamp(40px, 7vw, 80px) 0 0; }
.doc article { padding: clamp(24px, 5vw, 48px); border-radius: var(--radius-lg); max-width: 760px; }
.doc h1 { font-size: clamp(2rem, 4vw, 2.8rem); letter-spacing: -0.03em; margin: 0 0 6px; line-height: 1.1; }
.doc h2 { font-size: 1.25rem; margin: 32px 0 8px; letter-spacing: -0.01em; }
.doc p, .doc li { color: var(--ink); }
.doc .updated { color: var(--muted); margin: 0 0 24px; }
