/* SortdAI marketing site: shared tokens, header, footer, buttons.
   Dark theme by design (matches the app). Type and accent follow the
   2026 brand guidelines: Inter for everything, Fraunces for big
   headlines, Sortd Green as the single accent. */

*, *::before, *::after { box-sizing: border-box; margin: 0; padding: 0; }

:root {
  --green:     #09c47a;
  --green-dk:  #07a368;
  --green-bg:  rgba(9, 196, 122, 0.10);
  --bg:        #111111;
  --surface:   #181818;
  --surface-2: #1f1f1f;
  --line:      rgba(255, 255, 255, 0.08);
  --line-2:    rgba(255, 255, 255, 0.14);
  --text:      #f5f5f3;
  --text-2:    #b4b4b0;
  --text-3:    #7c7c78;
  --amber:     #d97706;
  --radius:    14px;
  --wrap:      1120px;
  --sans:      'Inter', -apple-system, BlinkMacSystemFont, 'Segoe UI', sans-serif;
  --serif:     'Fraunces', Georgia, 'Times New Roman', serif;
}

html { font-size: 16px; scroll-behavior: smooth; scroll-padding-top: 80px; }
body {
  font-family: var(--sans);
  background: var(--bg);
  color: var(--text);
  line-height: 1.6;
  -webkit-font-smoothing: antialiased;
  min-height: 100vh;
}
img { max-width: 100%; display: block; }
a { color: inherit; }

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

/* ── Buttons ───────────────────────────────────────────── */
.btn {
  display: inline-flex; align-items: center; justify-content: center; gap: 8px;
  font-family: var(--sans); font-weight: 600; font-size: .95rem;
  padding: 12px 22px; border-radius: 10px; text-decoration: none;
  border: 1px solid transparent; cursor: pointer; white-space: nowrap;
  transition: background .15s, border-color .15s, color .15s;
}
.btn-primary { background: var(--green); color: #111; }
.btn-primary:hover { background: var(--green-dk); }
.btn-ghost { background: transparent; color: var(--text); border-color: var(--line-2); }
.btn-ghost:hover { border-color: var(--text-2); }
.btn-lg { padding: 15px 28px; font-size: 1rem; }
.btn:focus-visible, .site-header a:focus-visible, .site-footer a:focus-visible,
.sh-menu:focus-visible { outline: 2px solid var(--green); outline-offset: 3px; }

/* ── Logo ──────────────────────────────────────────────── */
.logo {
  font-family: var(--sans); font-weight: 700; font-size: 1.15rem;
  letter-spacing: -.02em; text-decoration: none; color: var(--text);
}
.logo .d  { color: var(--green); font-weight: 800; }
.logo .ai { color: var(--text-3); font-weight: 400; }

/* ── Header ────────────────────────────────────────────── */
.site-header {
  position: sticky; top: 0; z-index: 50;
  background: rgba(17, 17, 17, 0.88);
  backdrop-filter: saturate(140%) blur(10px);
  -webkit-backdrop-filter: saturate(140%) blur(10px);
  border-bottom: 1px solid var(--line);
}
.sh-inner { display: flex; align-items: center; gap: 32px; height: 64px; }
.sh-nav { display: flex; align-items: center; gap: 28px; margin-left: auto; }
.sh-nav a {
  font-size: .9rem; color: var(--text-2); text-decoration: none; transition: color .15s;
}
.sh-nav a:hover, .sh-nav a[aria-current="page"] { color: var(--text); }
.sh-cta { padding: 9px 18px; font-size: .9rem; }
.sh-menu {
  display: none; margin-left: auto; background: none; border: 1px solid var(--line-2);
  color: var(--text); border-radius: 8px; width: 40px; height: 38px; cursor: pointer;
  align-items: center; justify-content: center;
}
.sh-menu svg { width: 18px; height: 18px; }

@media (max-width: 820px) {
  .sh-inner { gap: 12px; }
  .sh-menu { display: inline-flex; }
  .sh-cta { order: 2; }
  .sh-nav {
    display: none; position: absolute; top: 64px; left: 0; right: 0;
    flex-direction: column; align-items: stretch; gap: 0;
    background: var(--bg); border-bottom: 1px solid var(--line); padding: 8px 24px 16px;
  }
  .sh-nav.open { display: flex; }
  .sh-nav a { padding: 12px 0; font-size: 1rem; border-bottom: 1px solid var(--line); }
  .sh-nav a:last-child { border-bottom: none; }
}

/* ── Footer ────────────────────────────────────────────── */
.site-footer { border-top: 1px solid var(--line); margin-top: 96px; padding: 56px 0 32px; }
.sf-grid { display: grid; grid-template-columns: 1.4fr 1fr 1fr 1fr; gap: 40px; }
.sf-brand p { color: var(--text-3); font-size: .88rem; margin-top: 12px; max-width: 30ch; line-height: 1.55; }
.sf-col h2 {
  font-size: .75rem; font-weight: 600; letter-spacing: .08em; text-transform: uppercase;
  color: var(--text-3); margin-bottom: 14px;
}
.sf-col ul { list-style: none; display: flex; flex-direction: column; gap: 10px; }
.sf-col a { color: var(--text-2); text-decoration: none; font-size: .9rem; cursor: pointer; }
.sf-col a:hover { color: var(--green); }
.sf-base {
  margin-top: 48px; padding-top: 24px; border-top: 1px solid var(--line);
  display: flex; justify-content: space-between; gap: 16px; flex-wrap: wrap;
  color: var(--text-3); font-size: .8rem;
}
@media (max-width: 820px) {
  .sf-grid { grid-template-columns: 1fr 1fr; }
  .sf-brand { grid-column: 1 / -1; }
}

/* ── Shared type helpers ───────────────────────────────── */
.eyebrow {
  font-size: .78rem; font-weight: 600; letter-spacing: .1em; text-transform: uppercase;
  color: var(--green);
}
.serif { font-family: var(--serif); font-weight: 400; letter-spacing: -.02em; }

.skip-link { position: absolute; left: -9999px; top: 8px; z-index: 100; background: var(--green); color: #111; padding: 8px 14px; border-radius: 8px; font-weight: 600; }
.skip-link:focus { left: 8px; }
