/* LinkListo site — Direction C tokens (light default + dark toggle)
   with Direction A's menu-bar navigation. System type throughout:
   the site borrows the Mac's own materials, and loads nothing external. */

/* ---------- Tokens ---------- */

:root {
  --bg: #F7F7F8;
  --ink: #1B1B1F;
  --sec: #52525A;
  --mut: #6E6E76;
  --card: #FFFFFF;
  --line: rgba(20, 20, 30, 0.10);
  --navbg: rgba(247, 247, 248, 0.82);
  --accent: #0A84FF;
  --accent-ink: #FFFFFF;           /* text on accent */
  --kbd-bg: #FFFFFF;
  --kbd-line: rgba(20, 20, 30, 0.18);
  --kbd-ink: #3A3A40;
  --shot-shadow: 0 0 0 1px rgba(20, 20, 30, 0.08), 0 24px 60px rgba(30, 40, 70, 0.22), 0 0 90px rgba(10, 132, 255, 0.10);
  --shot-shadow-hover: 0 0 0 1px rgba(20, 20, 30, 0.12), 0 24px 60px rgba(30, 40, 70, 0.22), 0 0 110px rgba(10, 132, 255, 0.20);
}

[data-theme="dark"] {
  --bg: #17171A;
  --ink: #F2F2F5;
  --sec: #A9A9B2;
  --mut: #8B8B95;
  --card: #1F1F24;
  --line: rgba(255, 255, 255, 0.08);
  --navbg: rgba(23, 23, 26, 0.82);
  --accent: #339CFF;
  --accent-ink: #08131F;
  --kbd-bg: #232327;
  --kbd-line: rgba(255, 255, 255, 0.14);
  --kbd-ink: #C9C9D2;
  --shot-shadow: 0 0 0 1px rgba(255, 255, 255, 0.08), 0 24px 60px rgba(0, 0, 0, 0.55), 0 0 90px rgba(51, 156, 255, 0.14);
  --shot-shadow-hover: 0 0 0 1px rgba(255, 255, 255, 0.12), 0 24px 60px rgba(0, 0, 0, 0.55), 0 0 110px rgba(51, 156, 255, 0.25);
}

/* ---------- Base ---------- */

* { box-sizing: border-box; }

html { color-scheme: light; }
html[data-theme="dark"] { color-scheme: dark; }

body {
  margin: 0;
  background: var(--bg);
  color: var(--ink);
  font: 16px/1.6 -apple-system, BlinkMacSystemFont, "SF Pro Text", system-ui, "Segoe UI", sans-serif;
  -webkit-font-smoothing: antialiased;
  min-height: 100vh;
  display: flex;
  flex-direction: column;
}

a { color: var(--accent); text-decoration: none; }
a:hover { text-decoration: underline; }

h1, h2, h3 { line-height: 1.15; letter-spacing: -0.02em; margin: 0 0 0.5em; }
h1 { font-size: 2.5rem; font-weight: 700; }
h2 { font-size: 1.6rem; font-weight: 700; }
h3 { font-size: 1.15rem; font-weight: 600; }

p { margin: 0 0 1em; }

kbd {
  font-family: ui-monospace, "SF Mono", Menlo, monospace;
  font-size: 0.8em;
  background: var(--kbd-bg);
  border: 1px solid var(--kbd-line);
  border-bottom-width: 2.5px;
  color: var(--kbd-ink);
  border-radius: 6px;
  padding: 2px 7px;
}

:focus-visible {
  outline: 2px solid var(--accent);
  outline-offset: 2px;
  border-radius: 4px;
}

@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after { transition: none !important; animation: none !important; }
}

/* ---------- Menu bar nav ---------- */

.menubar {
  position: sticky;
  top: 0;
  z-index: 10;
  background: var(--navbg);
  -webkit-backdrop-filter: blur(12px);
  backdrop-filter: blur(12px);
  border-bottom: 1px solid var(--line);
}

.menubar-inner {
  max-width: 960px;
  margin: 0 auto;
  padding: 0 20px;
  height: 44px;
  display: flex;
  align-items: center;
  gap: 4px;
}

.brand {
  display: flex;
  align-items: center;
  gap: 8px;
  font-size: 0.9375rem;
  font-weight: 700;
  color: var(--ink);
  margin-right: 12px;
  white-space: nowrap;
}

.brand:hover { text-decoration: none; }

.brand img { border-radius: 5px; }

/* Pages as menu titles; the current page looks like an open menu. */
.menus {
  display: flex;
  align-items: center;
  gap: 2px;
  list-style: none;
  margin: 0;
  padding: 0;
}

.menus a {
  display: inline-block;
  padding: 4px 11px;
  border-radius: 6px;
  font-size: 0.875rem;
  font-weight: 500;
  color: var(--sec);
  transition: background 0.12s ease, color 0.12s ease;
}

.menus a:hover {
  background: color-mix(in srgb, var(--ink) 7%, transparent);
  color: var(--ink);
  text-decoration: none;
}

.menus a.open {
  background: var(--accent);
  color: var(--accent-ink);
}

.extras {
  margin-left: auto;
  display: flex;
  align-items: center;
  gap: 10px;
}

/* Styled like the app's selected tag pill — inverted, distinct from the
   accent pill that marks the current page. */
.get-link {
  font-size: 0.8125rem;
  font-weight: 600;
  color: var(--bg);
  background: var(--ink);
  padding: 5px 13px;
  border-radius: 14px;
  white-space: nowrap;
  transition: opacity 0.12s ease;
}

.get-link:hover { text-decoration: none; opacity: 0.85; }

/* Theme toggle, styled like a menu bar extra. */
.modebtn {
  width: 28px;
  height: 28px;
  border-radius: 7px;
  display: grid;
  place-items: center;
  background: var(--card);
  border: 1px solid var(--line);
  cursor: pointer;
  font-size: 14px;
  line-height: 1;
  color: var(--sec);
  padding: 0;
  transition: border-color 0.12s ease, color 0.12s ease;
}

.modebtn:hover { border-color: var(--accent); color: var(--ink); }

/* ---------- Page scaffold ---------- */

main {
  flex: 1;
  width: 100%;
  max-width: 960px;
  margin: 0 auto;
  padding: 48px 20px 64px;
}

.card {
  background: var(--card);
  border: 1px solid var(--line);
  border-radius: 12px;
  padding: 20px 24px;
}

.muted { color: var(--mut); }

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

.site-footer {
  border-top: 1px solid var(--line);
  font-size: 0.8125rem;
  color: var(--mut);
}

.footer-inner {
  max-width: 960px;
  margin: 0 auto;
  padding: 20px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
}

.footer-inner p { margin: 0; }

.footer-inner nav { display: flex; gap: 16px; }

.footer-inner a { color: var(--sec); }

/* ---------- App Store badge ---------- */

.badge-appstore {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  background: #0B0B0E;
  color: #FFFFFF;
  border: 1px solid transparent;
  border-radius: 10px;
  padding: 9px 18px;
  transition: transform 0.12s ease;
}

.badge-appstore:hover { text-decoration: none; transform: translateY(-1px); }

.badge-appstore .apple { font-size: 24px; line-height: 1; }

.badge-appstore .badge-text { display: flex; flex-direction: column; line-height: 1.25; }

.badge-appstore .t1 { font-size: 0.6875rem; }

.badge-appstore .t2 { font-size: 1.0625rem; font-weight: 600; letter-spacing: -0.01em; }

[data-theme="dark"] .badge-appstore {
  background: #232327;
  border-color: rgba(255, 255, 255, 0.16);
}

.fineprint {
  font-size: 0.8125rem;
  color: var(--mut);
  margin: 10px 0 0;
}

/* ---------- Homepage ---------- */

.home { padding-top: 56px; }

.home section + section { margin-top: 88px; }

.home h2 {
  text-align: center;
  margin-bottom: 12px;
}

/* Hero */

.hero {
  display: grid;
  grid-template-columns: 1.05fr 0.95fr;
  gap: 40px;
  align-items: center;
}

.hero h1 { margin-bottom: 14px; }

.hero-sub {
  font-size: 1.1875rem;
  color: var(--sec);
  max-width: 34ch;
  margin-bottom: 28px;
}

/* The screenshot follows the site theme: light capture by day, dark on toggle. */
.hero-shot img {
  display: block;
  width: 100%;
  max-width: 380px;
  height: auto;
  margin: 0 auto;
  border-radius: 14px;
  box-shadow: var(--shot-shadow);
  transition: box-shadow 0.25s ease;
}

.hero-shot img:hover { box-shadow: var(--shot-shadow-hover); }

/* Scoped under .hero-shot so these outrank `.hero-shot img` above. */
.hero-shot .shot-dark { display: none; }

[data-theme="dark"] .hero-shot .shot-light { display: none; }

[data-theme="dark"] .hero-shot .shot-dark { display: block; }

/* Why not bookmarks */

.why .lead {
  text-align: center;
  color: var(--sec);
  max-width: 58ch;
  margin: 0 auto 32px;
}

.scenario-grid {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 14px;
}

.scenario h3 { margin-bottom: 6px; }

.scenario p { margin: 0; color: var(--sec); font-size: 0.9375rem; }

/* Feature grid */

.features h2 { margin-bottom: 32px; }

.feature-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 14px;
}

.feature { transition: transform 0.15s ease, border-color 0.15s ease, box-shadow 0.15s ease; }

.feature:hover {
  transform: translateY(-2px);
  border-color: color-mix(in srgb, var(--accent) 50%, transparent);
  box-shadow: 0 5px 14px rgba(10, 20, 40, 0.10);
}

.feature .ico { font-size: 22px; display: block; margin-bottom: 10px; }

.feature h3 { font-size: 1rem; margin-bottom: 6px; }

.feature p { margin: 0; color: var(--sec); font-size: 0.875rem; }

/* Screenshot strip */

.closer-look h2 { margin-bottom: 32px; }

.strip {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 24px;
}

.strip figure { margin: 0; }

.strip img {
  display: block;
  width: 100%;
  height: auto;
  border-radius: 12px;
  box-shadow: 0 0 0 1px var(--line), 0 12px 32px rgba(20, 20, 40, 0.14);
}

.strip figcaption {
  text-align: center;
  font-size: 0.8125rem;
  color: var(--mut);
  margin-top: 12px;
}

/* Paired captures swap with the theme, same as the hero. Scoped per container
   so they outrank the plain `.strip img` / `.guide-shot img` rules. Figures
   with a single unpaired image (no class) are untouched. */
.strip .shot-dark,
.guide-shot .shot-dark { display: none; }

[data-theme="dark"] .strip .shot-light,
[data-theme="dark"] .guide-shot .shot-light { display: none; }

[data-theme="dark"] .strip .shot-dark,
[data-theme="dark"] .guide-shot .shot-dark { display: block; }

/* Closing CTA */

.cta { text-align: center; }

.cta h2 { margin-bottom: 20px; }

/* ---------- Page headers (guide, faq, contact) ---------- */

.guide-intro { text-align: center; margin-bottom: 24px; padding-top: 12px; }

/* The app's tag palette as a page mark. */
.tag-dots {
  display: flex;
  justify-content: center;
  gap: 8px;
  margin-bottom: 18px;
}

.tag-dots i {
  width: 9px;
  height: 9px;
  border-radius: 50%;
}

.tag-dots i:nth-child(1) { background: #0A84FF; }
.tag-dots i:nth-child(2) { background: #30D158; }
.tag-dots i:nth-child(3) { background: #BF5AF2; }
.tag-dots i:nth-child(4) { background: #FF9F0A; }

.guide-intro h1 {
  font-size: 3rem;
  letter-spacing: -0.03em;
  margin-bottom: 10px;
}

.guide-intro .lead { color: var(--sec); font-size: 1.0625rem; margin-bottom: 20px; }

/* The table of contents borrows the app's own tag-pill styling. */
.toc {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: 8px;
}

.toc a {
  padding: 5px 14px;
  border-radius: 14px;
  background: color-mix(in srgb, var(--ink) 5%, transparent);
  color: var(--sec);
  font-size: 0.8125rem;
  transition: background 0.12s ease, color 0.12s ease;
}

.toc a:hover {
  background: var(--accent);
  color: var(--accent-ink);
  text-decoration: none;
}

.guide section {
  margin-top: 56px;
  /* Anchor jumps land clear of the sticky menu bar. */
  scroll-margin-top: 64px;
}

.guide h2 { margin-bottom: 14px; }

.guide p, .guide li { color: var(--sec); }

.guide strong, .guide kbd { color: var(--ink); }

.guide .aside { font-size: 0.875rem; color: var(--mut); }

.steps { padding-left: 22px; margin: 0 0 1em; }

.steps li { margin-bottom: 6px; }

ul.plain { list-style: none; padding: 0; margin: 0 0 1em; }

ul.plain li { margin-bottom: 10px; }

.split {
  display: grid;
  grid-template-columns: 1.15fr 0.85fr;
  gap: 32px;
  align-items: start;
}

.guide-shot { margin: 0; }

.guide-shot img {
  display: block;
  width: 100%;
  max-width: 320px;
  height: auto;
  margin: 0 auto;
  border-radius: 12px;
  box-shadow: 0 0 0 1px var(--line), 0 12px 32px rgba(20, 20, 40, 0.14);
}

.guide-shot figcaption {
  text-align: center;
  font-size: 0.8125rem;
  color: var(--mut);
  margin-top: 10px;
}

.recipe { margin-top: 20px; }

.recipe h3 { margin-bottom: 10px; }

.recipe .steps { margin-bottom: 0; }

.shortcut-table { padding: 6px 20px; margin-bottom: 1em; }

.shortcut {
  display: grid;
  grid-template-columns: 110px 1fr;
  gap: 16px;
  align-items: center;
  padding: 11px 0;
  color: var(--sec);
}

.shortcut + .shortcut { border-top: 1px solid var(--line); }

.shortcut .keys { white-space: nowrap; }

.guide .cta { text-align: center; margin-top: 72px; }

/* ---------- FAQ ---------- */

.faq section { margin-top: 44px; }

.faq h2 {
  font-size: 0.8125rem;
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 0.06em;
  color: var(--mut);
  margin-bottom: 4px;
}

.qa { padding: 16px 0; }

.qa + .qa { border-top: 1px solid var(--line); }

.qa h3 { margin-bottom: 6px; }

.qa p { margin: 0; color: var(--sec); }

.faq-more { text-align: center; color: var(--sec); }

/* ---------- Contact ---------- */

.contact { max-width: 620px; }

.contact-body p { color: var(--sec); }

.contact-card {
  text-align: center;
  padding: 28px 24px;
  margin: 24px 0;
}

.email-link {
  font-size: 1.25rem;
  font-weight: 600;
}

.contact-card .aside {
  font-size: 0.875rem;
  color: var(--mut);
  margin: 12px 0 0;
}

/* ---------- Legal pages ---------- */

.legal { max-width: 680px; }

.legal section { margin-top: 36px; }

.legal h2 { font-size: 1.25rem; margin-bottom: 8px; }

.legal p, .legal li { color: var(--sec); }

.legal ul { padding-left: 22px; margin: 0; }

.legal li { margin-bottom: 6px; }

.legal .shortversion { padding: 20px 24px; }

.legal .shortversion p { margin: 0; }

/* ---------- Small screens ---------- */

@media (max-width: 760px) {
  .hero { grid-template-columns: 1fr; text-align: center; }
  .split { grid-template-columns: 1fr; }
  .guide section { margin-top: 44px; }
  .hero-sub { margin-left: auto; margin-right: auto; }
  .scenario-grid { grid-template-columns: 1fr; }
  .feature-grid { grid-template-columns: 1fr 1fr; }
  .strip { grid-template-columns: 1fr; max-width: 380px; margin: 0 auto; }
  .home section + section { margin-top: 64px; }
}

@media (max-width: 560px) {
  .menubar-inner { flex-wrap: wrap; height: auto; padding: 8px 12px; row-gap: 2px; }
  .get-link { display: none; }
  h1 { font-size: 2rem; }
  main { padding: 32px 16px 48px; }
  .feature-grid { grid-template-columns: 1fr; }
}
