/* SendToSocial public site. Same tokens as the dashboard (src/sendtosocial/web/style.css):
   flat, neutral, true greys. No gradients, shadows, tinted pills or banners. */
:root {
  color-scheme: light dark;
  --bg: #ffffff;
  --bg-subtle: #fafafa;
  --bg-hover: #f4f4f4;
  --line: #ebebeb;
  --line-strong: #dcdcdc;
  --text: #111111;
  --text-2: #5c5c5c;
  --text-3: #8f8f8f;
  --accent: #111111;
  --accent-hover: #2e2e2e;
  --on-accent: #ffffff;
}
@media (prefers-color-scheme: dark) {
  :root {
    --bg: #0f0f0f;
    --bg-subtle: #151515;
    --bg-hover: #1e1e1e;
    --line: #242424;
    --line-strong: #363636;
    --text: #f2f2f2;
    --text-2: #a3a3a3;
    --text-3: #737373;
    --accent: #f2f2f2;
    --accent-hover: #d9d9d9;
    --on-accent: #111111;
  }
}

* { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; text-size-adjust: 100%; }
body {
  margin: 0; background: var(--bg); color: var(--text);
  font: 15px/1.6 -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, Helvetica, Arial, sans-serif;
  -webkit-font-smoothing: antialiased;
}
h1, h2, h3, p, ul, ol, dl, dd { margin: 0; }
a { color: inherit; text-decoration: underline; text-decoration-color: var(--line-strong); text-underline-offset: 2px; }
a:hover { text-decoration-color: currentColor; }
:focus-visible { outline: 2px solid var(--text); outline-offset: 2px; }
code { font-family: ui-monospace, SFMono-Regular, Menlo, monospace; font-size: .87em; padding: 1px 4px; border: 1px solid var(--line); border-radius: 4px; overflow-wrap: anywhere; }
code.block { display: block; padding: 8px 10px; border-radius: 6px; line-height: 1.5; }
.skip-link { position: absolute; left: -999px; }
.skip-link:focus { left: 8px; top: 8px; z-index: 50; background: var(--bg); padding: 6px 10px; }

.wrap { width: 100%; max-width: 1040px; margin: 0 auto; padding: 0 24px; }

/* Header and footer */
.site-header { border-bottom: 1px solid var(--line); }
.site-header .wrap { display: flex; align-items: center; gap: 16px; height: 60px; }
.brandmark { display: flex; align-items: center; gap: 8px; font-size: 15px; font-weight: 600; letter-spacing: -.01em; text-decoration: none; white-space: nowrap; }
.brandmark img { display: block; width: 26px; height: 23px; }
.site-nav { display: flex; align-items: center; gap: 24px; margin-left: auto; font-size: 14px; }
.site-nav a { color: var(--text-2); text-decoration: none; white-space: nowrap; }
.site-nav a:hover, .site-nav a[aria-current="page"] { color: var(--text); }
.site-nav .signin { color: var(--text); font-weight: 500; }

.site-footer { margin-top: 24px; border-top: 1px solid var(--line); font-size: 13px; color: var(--text-3); }
.site-footer .wrap { display: flex; align-items: center; gap: 8px 24px; flex-wrap: wrap; padding-top: 24px; padding-bottom: 40px; }
.site-footer nav { display: flex; gap: 20px; flex-wrap: wrap; margin-left: auto; }
.site-footer a { color: var(--text-2); text-decoration: none; }
.site-footer a:hover, .site-footer a[aria-current="page"] { color: var(--text); }

/* Buttons */
.button {
  display: inline-flex; align-items: center; justify-content: center; height: 40px; padding: 0 16px;
  border: 1px solid var(--line-strong); border-radius: 6px; background: var(--bg); color: var(--text);
  font-size: 14px; font-weight: 500; text-decoration: none; white-space: nowrap;
}
.button:hover { background: var(--bg-hover); }
.button.primary { background: var(--accent); border-color: var(--accent); color: var(--on-accent); }
.button.primary:hover { background: var(--accent-hover); border-color: var(--accent-hover); }
.actions { display: flex; flex-wrap: wrap; gap: 10px; margin-top: 28px; }

/* Landing */
.hero { padding: 96px 0 80px; }
.hero h1 { max-width: 15em; font-size: 46px; line-height: 1.1; font-weight: 600; letter-spacing: -.028em; }
.lede { max-width: 34em; margin-top: 20px; font-size: 18px; line-height: 1.55; color: var(--text-2); }
.note { margin-top: 14px; font-size: 13px; color: var(--text-3); }

.band { padding: 64px 0 72px; border-top: 1px solid var(--line); }
.band h2 { font-size: 22px; line-height: 1.3; font-weight: 600; letter-spacing: -.015em; }
.band .intro { max-width: 36em; margin-top: 8px; color: var(--text-2); }

.features { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 36px 40px; margin-top: 36px; padding: 0; list-style: none; }
.features li { padding-top: 16px; border-top: 1px solid var(--line); }
.features h3, .steps h3 { font-size: 15px; font-weight: 600; }
.features p, .steps p { margin-top: 6px; color: var(--text-2); }

.steps { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 36px 40px; margin-top: 36px; padding: 0; list-style: none; counter-reset: step; }
.steps li { counter-increment: step; }
.steps li::before { content: counter(step); display: block; margin-bottom: 10px; font-size: 13px; color: var(--text-3); font-variant-numeric: tabular-nums; }

/* Pricing */
.page-head { padding: 72px 0 40px; }
.page-head h1 { font-size: 36px; line-height: 1.15; font-weight: 600; letter-spacing: -.024em; }
.page-head .lede { margin-top: 12px; }
.plans { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 16px; max-width: 760px; }
.plan { display: flex; flex-direction: column; gap: 20px; padding: 24px; border: 1px solid var(--line-strong); border-radius: 8px; }
.plan h2 { font-size: 16px; font-weight: 600; }
.plan .for { margin-top: 2px; font-size: 14px; color: var(--text-2); }
.price { font-size: 40px; line-height: 1; font-weight: 600; letter-spacing: -.03em; font-variant-numeric: tabular-nums; }
.price span { font-size: 15px; font-weight: 400; letter-spacing: 0; color: var(--text-2); }
.yearly { margin-top: 8px; font-size: 14px; color: var(--text-2); }
.plan ul { padding: 0; list-style: none; border-top: 1px solid var(--line); }
.plan li { padding: 9px 0; border-bottom: 1px solid var(--line); font-size: 14px; }
.plan .button { margin-top: auto; width: 100%; }
.plans-note { max-width: 760px; margin: 16px 0 72px; font-size: 13px; color: var(--text-3); }

.faq { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 28px 40px; max-width: 760px; margin-top: 28px; }
.faq dt { font-weight: 600; }
.faq dd { margin-top: 4px; color: var(--text-2); }

/* Policy and support pages */
.doc { padding: 64px 0 72px; }
.prose { max-width: 680px; }
.prose h1 { font-size: 34px; line-height: 1.15; font-weight: 600; letter-spacing: -.024em; }
.prose .updated { margin-top: 10px; font-size: 14px; color: var(--text-3); }
.prose h2 { margin-top: 44px; font-size: 19px; line-height: 1.35; font-weight: 600; letter-spacing: -.01em; scroll-margin-top: 16px; }
.prose h3 { margin-top: 24px; font-size: 15px; font-weight: 600; }
.prose p, .prose ul, .prose ol, .prose dl, .prose table { margin-top: 12px; }
.prose ul, .prose ol { padding-left: 22px; }
.prose li + li { margin-top: 6px; }
.prose .lead { margin-top: 20px; font-size: 17px; color: var(--text-2); }
.prose dt { margin-top: 20px; font-weight: 600; }
.prose dd { margin-top: 4px; color: var(--text-2); }
.prose address { font-style: normal; }

.toc { margin-top: 28px; padding: 16px 0; border-top: 1px solid var(--line); border-bottom: 1px solid var(--line); }
.toc p { font-size: 13px; color: var(--text-3); }
.toc ol { margin-top: 8px; columns: 2; column-gap: 32px; font-size: 14px; }
.toc li { break-inside: avoid; }
.toc li + li { margin-top: 4px; }
.toc a { text-decoration: none; color: var(--text-2); }
.toc a:hover { color: var(--text); text-decoration: underline; }

.table-scroll { overflow-x: auto; }
table { width: 100%; border-collapse: collapse; font-size: 14px; }
th { padding: 8px 16px 8px 0; text-align: left; font-weight: 400; color: var(--text-3); border-bottom: 1px solid var(--line); }
td { padding: 10px 16px 10px 0; vertical-align: top; border-bottom: 1px solid var(--line); }
td:first-child { white-space: nowrap; font-weight: 500; }
th:last-child, td:last-child { padding-right: 0; }

@media (max-width: 860px) {
  .features, .steps { grid-template-columns: repeat(2, minmax(0, 1fr)); }
}
@media (max-width: 640px) {
  .wrap { padding: 0 16px; }
  .site-header .wrap { height: 56px; gap: 12px; }
  .site-nav { gap: 16px; }
  .hero { padding: 48px 0 48px; }
  .hero h1 { font-size: 32px; letter-spacing: -.022em; }
  .lede { font-size: 16px; }
  .band { padding: 44px 0 52px; }
  .band h2 { font-size: 20px; }
  .features, .steps, .plans, .faq { grid-template-columns: minmax(0, 1fr); }
  .features, .steps { gap: 24px; margin-top: 24px; }
  .page-head { padding: 44px 0 28px; }
  .page-head h1, .prose h1 { font-size: 28px; }
  .doc { padding: 40px 0 52px; }
  .toc ol { columns: 1; }
  .actions .button { flex: 1 1 auto; }
  .site-footer nav { margin-left: 0; }
}
@media (max-width: 360px) {
  .brandmark span { display: none; }
}
