/* Linkoid site. Colours from brand/README.md. */
:root {
  color-scheme: light dark;
  --bg: #ffffff;
  --bg-soft: #f3f7f5;
  --card: #ffffff;
  --line: #dbe5e1;
  --text: #0d1117;
  --muted: #4a5560;
  --accent: #0a7f5f;          /* Text mint: 5:1 on white */
  --accent-strong: #097658;
  --accent-bg: #e3f6ef;
  --mint: #22d3a0;
  --sky: #2bb6f3;
  --tile-top: #10a880;
  --tile-bottom: #0a8066;
  --shadow: 0 1px 2px rgb(13 17 23 / 6%), 0 8px 24px rgb(13 17 23 / 8%);
  --radius: 18px;
  --max: 1120px;
  font-family: -apple-system, BlinkMacSystemFont, "SF Pro Text", "Segoe UI", Roboto, "Helvetica Neue", Arial, sans-serif;
}

@media (prefers-color-scheme: dark) {
  :root {
    --bg: #0b0f14;
    --bg-soft: #10171d;
    --card: #141c23;
    --line: #24313a;
    --text: #e8eef0;
    --muted: #a3b0b8;
    --accent: #22d3a0;        /* Link Mint: 9:1 on --bg */
    --accent-strong: #4be0b4;
    --accent-bg: #0e2a24;
    --tile-top: #0e2a24;
    --tile-bottom: #06130f;
    --shadow: 0 1px 2px rgb(0 0 0 / 40%), 0 8px 24px rgb(0 0 0 / 35%);
  }
}

*, *::before, *::after { 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;
  background: var(--bg);
  color: var(--text);
  font-size: 17px;
  line-height: 1.6;
  -webkit-font-smoothing: antialiased;
}
img, svg { max-width: 100%; }
a { color: var(--accent); text-underline-offset: 0.18em; }
a:hover { color: var(--accent-strong); }
:focus-visible { outline: 3px solid var(--sky); outline-offset: 2px; border-radius: 4px; }
h1, h2, h3 { line-height: 1.15; letter-spacing: -0.02em; margin: 0 0 0.5em; }
h1 { font-size: clamp(2.3rem, 5.4vw, 4rem); font-weight: 750; }
h2 { font-size: clamp(1.7rem, 3.4vw, 2.5rem); font-weight: 720; }
h3 { font-size: 1.15rem; font-weight: 650; letter-spacing: -0.01em; }
p { margin: 0 0 1em; }

.skip {
  position: absolute; left: 16px; top: -48px; z-index: 10;
  background: var(--card); padding: 8px 14px; border-radius: 8px;
}
.skip:focus { top: 12px; }

.wrap { max-width: var(--max); margin: 0 auto; padding: 0 24px; }
@media (max-width: 600px) { .wrap { padding: 0 16px; } }

/* Header */
.site-header {
  position: sticky; top: 0; z-index: 5;
  background: color-mix(in srgb, var(--bg) 86%, transparent);
  backdrop-filter: saturate(1.6) blur(14px);
  -webkit-backdrop-filter: saturate(1.6) blur(14px);
  border-bottom: 1px solid var(--line);
}
.site-header .wrap { display: flex; align-items: center; gap: 24px; height: 60px; }
.brand { display: flex; align-items: center; gap: 10px; color: var(--text); text-decoration: none; font-weight: 700; font-size: 1.1rem; }
.brand img { width: 30px; height: 30px; }
.site-nav { margin-left: auto; display: flex; gap: 22px; font-size: 0.95rem; }
.site-nav a { color: var(--muted); text-decoration: none; }
.site-nav a:hover, .site-nav a[aria-current="page"] { color: var(--text); }
@media (max-width: 720px) {
  .site-nav { gap: 14px; font-size: 0.9rem; }
  .site-nav .wide { display: none; }
}

/* Hero */
.hero { padding: 72px 0 56px; overflow: hidden; }
.hero .wrap { display: grid; grid-template-columns: 1.05fr 1fr; gap: 48px; align-items: center; }
.eyebrow {
  display: inline-flex; align-items: center; gap: 8px;
  font-size: 0.85rem; font-weight: 600; color: var(--accent-strong);
  background: var(--accent-bg); padding: 4px 12px; border-radius: 999px; margin-bottom: 18px;
}
.lede { font-size: 1.2rem; color: var(--muted); max-width: 34em; }
.actions { display: flex; flex-wrap: wrap; gap: 12px; margin-top: 28px; }
.button {
  display: inline-flex; align-items: center; gap: 8px;
  padding: 12px 22px; border-radius: 12px; font-weight: 600; text-decoration: none;
  border: 1px solid var(--line); color: var(--text); background: var(--card);
}
.button:hover { color: var(--text); border-color: var(--accent); }
.button.primary { background: #097658; border-color: #097658; color: #fff; }
.button.primary:hover { background: #07644b; color: #fff; }
@media (max-width: 860px) {
  .hero { padding: 48px 0 40px; }
  .hero .wrap { grid-template-columns: 1fr; gap: 40px; }
}

/* Hero illustration: a Mac screen with a banner, and a phone */
.scene { position: relative; aspect-ratio: 5 / 4; max-width: 560px; width: 100%; justify-self: center; }
.scene .mac {
  position: absolute; inset: 0 12% 18% 0;
  border-radius: 16px; border: 10px solid #1b232b;
  background: linear-gradient(160deg, #1f8f74 0%, #2bb6f3 55%, #7cc8f0 100%);
  box-shadow: var(--shadow);
  overflow: hidden;
}
.scene .menubar {
  height: 22px; background: rgb(255 255 255 / 55%); display: flex; align-items: center;
  justify-content: flex-end; gap: 10px; padding: 0 10px; font-size: 11px; color: #111;
}
.scene .menubar img { width: 14px; height: 14px; filter: brightness(0); opacity: 0.85; }
.banner {
  position: absolute; left: 4%; width: 64%;
  display: grid; grid-template-columns: 32px 1fr; gap: 10px;
  padding: 10px 12px; border-radius: 14px; font-size: 12.5px; line-height: 1.35;
  background: rgb(246 248 248 / 92%); color: #111; box-shadow: 0 6px 20px rgb(0 0 0 / 22%);
}
.banner .app { width: 32px; height: 32px; border-radius: 8px; display: grid; place-items: center; color: #fff; font-weight: 700; font-size: 14px; }
.banner b { display: block; font-size: 12.5px; }
.banner small { color: #4a5560; font-size: 11px; }
.banner .code { white-space: nowrap; font-family: ui-monospace, "SF Mono", Menlo, monospace; font-weight: 700; letter-spacing: 0.08em; }
.banner .chip { display: inline-block; margin-top: 4px; padding: 1px 8px; border-radius: 6px; background: #0a7f5f; color: #fff; font-size: 11px; font-weight: 600; }
.banner.one { top: 34px; }
.banner.two { top: 128px; }
.scene .phone {
  position: absolute; right: 0; bottom: 0; width: 28%; aspect-ratio: 9 / 19;
  border-radius: 22px; border: 6px solid #1b232b; background: #0d1117;
  box-shadow: var(--shadow); overflow: hidden;
}
.scene .phone::before { content: ""; position: absolute; top: 7px; left: 50%; width: 9px; height: 9px; margin-left: -4.5px; border-radius: 50%; background: #2b343d; }
.scene .phone .screen {
  position: absolute; inset: 0; display: grid; place-items: center;
  background: linear-gradient(180deg, var(--tile-top), var(--tile-bottom));
}
.scene .phone .screen img { width: 52%; }
@media (max-width: 600px) { .banner { font-size: 11.5px; padding: 8px 10px; } .banner small { display: none; } .banner.two { top: auto; bottom: 8%; } }

/* Sections */
section { padding: 72px 0; }
section.soft { background: var(--bg-soft); border-top: 1px solid var(--line); border-bottom: 1px solid var(--line); }
.section-head { max-width: 46em; margin-bottom: 40px; }
.section-head p { color: var(--muted); font-size: 1.1rem; }
@media (max-width: 600px) { section { padding: 52px 0; } }

.grid { display: grid; gap: 18px; grid-template-columns: repeat(auto-fill, minmax(260px, 1fr)); }
.card {
  background: var(--card); border: 1px solid var(--line); border-radius: var(--radius);
  padding: 24px; box-shadow: var(--shadow);
}
.card p { color: var(--muted); margin: 0; font-size: 0.98rem; }
.card .icon {
  width: 44px; height: 44px; border-radius: 12px; display: grid; place-items: center;
  background: var(--accent-bg); color: var(--accent); margin-bottom: 14px;
}
.card .icon svg { width: 24px; height: 24px; }
.card h3 { margin-bottom: 6px; }

/* Feature spotlights */
.spot { display: grid; grid-template-columns: 1fr 1fr; gap: 48px; align-items: center; padding: 28px 0; }
.spot + .spot { border-top: 1px solid var(--line); }
.spot ul { padding-left: 1.2em; color: var(--muted); margin: 0; }
.spot li { margin-bottom: 0.4em; }
.spot .visual { order: 2; }
.spot.flip .visual { order: 0; }
@media (max-width: 860px) {
  .spot { grid-template-columns: 1fr; gap: 24px; }
  .spot .visual, .spot.flip .visual { order: 0; }
}
.panel {
  background: var(--card); border: 1px solid var(--line); border-radius: var(--radius);
  box-shadow: var(--shadow); padding: 18px; font-size: 0.92rem;
}
.panel .row { display: grid; grid-template-columns: 34px 1fr auto; gap: 12px; align-items: center; padding: 10px 6px; }
.panel .row + .row { border-top: 1px solid var(--line); }
.panel .avatar { width: 34px; height: 34px; border-radius: 50%; display: grid; place-items: center; font-weight: 700; color: #fff; font-size: 0.85rem; }
.panel .row b { display: block; font-weight: 600; }
.panel .row span { color: var(--muted); }
.panel .row .avatar { color: #fff; }
.panel .row time { color: var(--muted); font-size: 0.8rem; }
.panel .pill { font-size: 0.78rem; font-weight: 600; padding: 3px 10px; border-radius: 8px; background: var(--accent-bg); color: var(--accent-strong); }
.panel .title { font-weight: 650; padding: 2px 6px 8px; display: flex; justify-content: space-between; }
.panel .title span { color: var(--muted); font-weight: 500; }
.kbd { font-family: ui-monospace, "SF Mono", Menlo, monospace; font-size: 0.85em; padding: 1px 6px; border-radius: 6px; border: 1px solid var(--line); background: var(--bg-soft); white-space: nowrap; }

/* Tablet */
.tablet-figure { position: relative; max-width: 520px; width: 100%; justify-self: center; }
.tablet {
  aspect-ratio: 16 / 10.5; border-radius: 22px; border: 12px solid #1b232b; background: #f2f4f5;
  box-shadow: var(--shadow); overflow: hidden; position: relative;
}
.tablet .bar { height: 7%; background: rgb(255 255 255 / 70%); border-bottom: 1px solid #d6dde0; }
.tablet .win { position: absolute; left: 8%; top: 16%; width: 60%; height: 70%; background: #fff; border-radius: 8px; box-shadow: 0 6px 20px rgb(0 0 0 / 15%); }
.tablet .win::before { content: ""; position: absolute; left: 10px; top: 9px; width: 34px; height: 8px; background: radial-gradient(circle, #ff5f57 3.5px, transparent 4px) 0 0 / 12px 8px repeat-x; }
.tablet .win svg { position: absolute; inset: 22% 8% 10% 8%; width: 84%; height: 68%; }
.tablet .win2 { position: absolute; right: 6%; top: 24%; width: 26%; height: 52%; background: #fff; border-radius: 8px; box-shadow: 0 6px 20px rgb(0 0 0 / 12%); }
.tablet .win2 i { display: block; height: 8px; margin: 14px 12px 0; border-radius: 4px; background: #dfe7e4; }
.tablet .win2 i:first-child { margin-top: 26px; background: #a7e9d4; width: 50%; }
.pen {
  position: absolute; width: 10px; height: 54%; right: 22%; bottom: -8%;
  background: linear-gradient(90deg, #2a3138, #4a545e 50%, #2a3138); border-radius: 5px 5px 2px 2px;
  transform: rotate(28deg); transform-origin: bottom center;
}
.pen::after { content: ""; position: absolute; bottom: -10px; left: 2px; border: 3px solid transparent; border-top: 10px solid #2a3138; }

/* Steps */
.steps { counter-reset: step; display: grid; gap: 18px; grid-template-columns: repeat(auto-fit, minmax(240px, 1fr)); padding: 0; margin: 0; list-style: none; }
.steps li { counter-increment: step; background: var(--card); border: 1px solid var(--line); border-radius: var(--radius); padding: 24px; }
.steps li::before {
  content: counter(step); display: grid; place-items: center; width: 34px; height: 34px; border-radius: 50%;
  background: #097658; color: #fff; font-weight: 700; margin-bottom: 12px;
}
.steps li p { color: var(--muted); margin: 0; }

.privacy-points { display: grid; gap: 18px; grid-template-columns: repeat(auto-fit, minmax(240px, 1fr)); margin-top: 36px; }
.privacy-points div { border-left: 3px solid var(--accent); padding: 4px 0 4px 18px; }
.privacy-points p { color: var(--muted); margin: 0; }

/* Coming soon */
.cta {
  text-align: center; border-radius: 28px; padding: 64px 24px; color: #fff;
  background: linear-gradient(180deg, #087a5e, #065f49);
}
.cta h2 { color: #fff; }
.cta p { max-width: 36em; margin: 0 auto 0.6em; font-size: 1.12rem; color: #f2fffa; }
.cta img { width: 72px; height: 72px; margin-bottom: 18px; }
@media (prefers-color-scheme: dark) { .cta { background: linear-gradient(180deg, #0e2a24, #06130f); border: 1px solid #1d4a3f; } }

/* FAQ */
.faq { max-width: 820px; }
.faq details { border-bottom: 1px solid var(--line); padding: 4px 0; }
.faq summary {
  cursor: pointer; list-style: none; font-weight: 620; font-size: 1.08rem; padding: 14px 36px 14px 0; position: relative;
}
.faq summary::-webkit-details-marker { display: none; }
.faq summary::after {
  content: "+"; position: absolute; right: 6px; top: 10px; font-size: 1.5rem; font-weight: 400; color: var(--accent);
}
.faq details[open] summary::after { content: "–"; }
.faq details > div { color: var(--muted); padding: 0 0 14px; }

/* Long-form pages */
.doc { max-width: 760px; padding: 56px 24px 72px; }
@media (max-width: 600px) { .doc { padding: 40px 16px 56px; } }
.doc h1 { font-size: clamp(2rem, 4.4vw, 2.8rem); }
.doc h2 { font-size: 1.45rem; margin-top: 2em; }
.doc h3 { margin-top: 1.4em; }
.doc .meta { color: var(--muted); }
.doc ul { padding-left: 1.2em; }
.doc li { margin-bottom: 0.45em; }
.doc table { width: 100%; border-collapse: collapse; font-size: 0.95rem; margin: 1em 0 1.6em; }
.doc th, .doc td { text-align: left; vertical-align: top; padding: 10px 12px 10px 0; border-bottom: 1px solid var(--line); }
.doc th { font-weight: 650; }
.doc td:first-child { width: 38%; font-weight: 550; }
@media (max-width: 600px) {
  .doc table, .doc tbody, .doc tr, .doc td { display: block; width: 100%; }
  .doc thead { display: none; }
  .doc td:first-child { width: 100%; padding-bottom: 0; border-bottom: 0; }
}
.note { background: var(--accent-bg); border-radius: 12px; padding: 14px 18px; }

/* Footer */
.site-footer { border-top: 1px solid var(--line); padding: 36px 0 44px; color: var(--muted); font-size: 0.9rem; }
.site-footer .wrap { display: flex; flex-wrap: wrap; gap: 12px 32px; justify-content: space-between; }
.site-footer nav { display: flex; gap: 18px; flex-wrap: wrap; }
.site-footer a { color: var(--muted); }
.site-footer p { margin: 0 0 4px; }
