/* Sable marketing site. Tokens match apps/mobile/src/theme.ts (emerald). */
:root {
  --bg: #F0F1F3;
  --bg-raised: #FFFFFF;
  --bg-raised-high: #FAFBFC;
  --bg-sink: #E4E6EA;
  --line: rgba(15, 157, 88, 0.22);
  --line-strong: rgba(10, 122, 67, 0.55);
  --text: #15181C;
  --muted: #5C6570;
  --accent: #3deb87;
  --accent-text: #0A7A43;
  --accent-ink: #022614;
  --accent-soft: rgba(61, 235, 135, 0.22);
  --danger: #C44732;
  --danger-soft: rgba(196, 71, 50, 0.12);
  --gold: #e4c56b;
  --gold-text: #8F6B14;
  --gold-ink: #1a1406;
  --serif: Georgia, "Iowan Old Style", Palatino, "Palatino Linotype", serif;
  --sans: -apple-system, system-ui, "Segoe UI", Roboto, "Helvetica Neue", Arial, sans-serif;
  --content: 44rem;
  --wide: 60rem;
  --radius: 18px;
  --focus: 0 0 0 3px #F0F1F3, 0 0 0 5px #0A7A43;
}

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

html { scroll-behavior: smooth; }

body {
  margin: 0;
  background: var(--bg);
  color: var(--text);
  font: 16px/1.6 var(--sans);
  min-height: 100vh;
  display: flex;
  flex-direction: column;
}

@media (min-width: 40rem) {
  body { font-size: 17px; }
}

.skip {
  position: absolute;
  left: 12px;
  top: 12px;
  transform: translateY(-200%);
  background: var(--bg-raised);
  color: var(--accent-text);
  font-weight: 700;
  padding: 12px 16px;
  border-radius: 12px;
  z-index: 100;
  min-height: 44px;
}
.skip:focus { transform: none; outline: none; box-shadow: var(--focus); }

a { color: var(--accent-text); font-weight: 600; text-underline-offset: 0.15em; }
a:hover { text-decoration-thickness: 2px; }

:focus-visible {
  outline: none;
  box-shadow: var(--focus);
}

img { max-width: 100%; height: auto; }

.site-header {
  background: var(--bg-raised);
  border-bottom: 1px solid var(--line);
}
.header-inner {
  max-width: var(--wide);
  margin: 0 auto;
  padding: 12px 20px;
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 12px 20px;
}
.brand {
  display: flex;
  align-items: center;
  gap: 10px;
  text-decoration: none;
  color: var(--text);
  min-height: 44px;
  padding: 4px 4px 4px 0;
}
.brand img {
  width: 40px;
  height: 40px;
  border-radius: 10px;
  display: block;
}
.wordmark {
  font-family: var(--serif);
  font-size: 1.55rem;
  font-weight: 400;
  letter-spacing: 0.01em;
  line-height: 1;
  display: flex;
  flex-direction: column;
  gap: 5px;
}
.wordmark::after {
  content: "";
  display: block;
  width: 1.15em;
  height: 3px;
  border-radius: 2px;
  background: var(--gold);
}

.nav {
  display: flex;
  flex-wrap: wrap;
  gap: 4px;
  margin-left: auto;
}
.nav a {
  display: inline-flex;
  align-items: center;
  min-height: 44px;
  padding: 8px 12px;
  text-decoration: none;
  color: var(--accent-text);
  font-weight: 600;
  font-size: 0.95rem;
  border-radius: 12px;
}
.nav a:hover { background: var(--accent-soft); }
.nav a[aria-current="page"] {
  background: var(--bg-sink);
  color: var(--accent-ink);
}

main {
  flex: 1;
  width: 100%;
}

.wrap {
  max-width: var(--content);
  margin: 0 auto;
  padding: 28px 20px 56px;
}
.wrap.wide { max-width: var(--wide); }

.hero-banner {
  display: block;
  width: 100%;
  height: auto;
  background: #000;
  border-bottom: 1px solid var(--line);
}
.hero-banner img {
  display: block;
  width: 100%;
  height: auto;
  object-fit: contain;
  object-position: center;
  background: #000;
}

h1, h2, h3 {
  font-family: var(--serif);
  font-weight: 400;
  line-height: 1.25;
  letter-spacing: 0;
  color: var(--text);
}
h1 { font-size: clamp(1.9rem, 3.5vw, 2.6rem); margin: 0 0 12px; }
h2 { font-size: 1.45rem; margin: 2rem 0 0.7rem; }
h3 { font-size: 1.15rem; font-family: var(--sans); font-weight: 700; margin: 1.4rem 0 0.5rem; }

.lede {
  font-size: 1.15rem;
  margin: 0 0 1.2rem;
  color: var(--text);
}
.muted { color: var(--muted); }
.kicker {
  color: var(--accent-text);
  font-weight: 700;
  letter-spacing: 1.4px;
  text-transform: uppercase;
  font-size: 0.8rem;
  margin: 0 0 8px;
}

.card {
  background: var(--bg-raised);
  border: 1px solid var(--line);
  border-radius: var(--radius);
  padding: 24px;
  margin: 16px 0 0;
}
.card > :first-child { margin-top: 0; }
.card > :last-child { margin-bottom: 0; }

.grid {
  display: grid;
  gap: 16px;
  margin-top: 20px;
}
@media (min-width: 40rem) {
  .grid.three { grid-template-columns: repeat(3, 1fr); }
  .grid.two { grid-template-columns: repeat(2, 1fr); }
}

.cta-row {
  display: flex;
  flex-wrap: wrap;
  gap: 12px;
  margin: 24px 0 8px;
  align-items: center;
}
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 44px;
  padding: 12px 18px;
  border-radius: 14px;
  font-weight: 700;
  font-size: 1rem;
  text-decoration: none;
  border: 0;
}
.btn-primary {
  background: var(--accent);
  color: var(--accent-ink);
}
.btn-primary:hover { filter: brightness(0.97); }
.btn-soon {
  background: var(--bg-sink);
  color: var(--text);
  cursor: default;
  font-weight: 700;
}
.btn-ghost {
  background: transparent;
  color: var(--accent-text);
  border: 1px solid var(--line-strong);
}

.flag, .draft, .warn, .gap {
  border-radius: 12px;
  padding: 12px 14px;
  margin: 16px 0;
}
.draft {
  background: var(--bg-sink);
  color: var(--text);
}
.warn {
  background: var(--accent-soft);
}
.gap, .flag {
  background: var(--danger-soft);
  color: var(--text);
}
.gap strong, .flag strong { color: var(--danger); }

ul, ol { padding-left: 1.25rem; }
li { margin: 0.35rem 0; }

table {
  width: 100%;
  border-collapse: collapse;
  font-size: 0.95rem;
  margin: 1rem 0 1.4rem;
  background: var(--bg-raised);
  border: 1px solid var(--line);
  border-radius: 12px;
  overflow: hidden;
}
th, td {
  text-align: left;
  vertical-align: top;
  padding: 10px 12px;
  border-bottom: 1px solid var(--line);
}
th {
  background: var(--bg-sink);
  font-weight: 700;
}
tr:last-child th, tr:last-child td { border-bottom: 0; }
.table-wrap { overflow-x: auto; margin: 1rem 0; }

.site-footer {
  background: var(--bg-raised);
  border-top: 1px solid var(--line);
  margin-top: auto;
}
.footer-inner {
  max-width: var(--wide);
  margin: 0 auto;
  padding: 28px 20px 36px;
}
.footer-brand {
  font-family: var(--serif);
  font-size: 1.2rem;
  margin: 0 0 4px;
}
.footer-nav {
  display: flex;
  flex-wrap: wrap;
  gap: 8px 4px;
  margin: 12px 0 16px;
  padding: 0;
  list-style: none;
}
.footer-nav a {
  display: inline-flex;
  align-items: center;
  min-height: 44px;
  padding: 8px 12px;
  text-decoration: none;
}
.copyright { color: var(--muted); font-size: 0.9rem; margin: 0; }

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

.intro { max-width: var(--content); }

.hero-mobile { display: none; }

@media (max-width: 40rem) {
  .hero-banner { display: none; }
  .home-kicker { display: none; }
  .hero-mobile {
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    background: #000;
    padding: 28px 20px 32px;
    border-bottom: 1px solid var(--line);
    text-align: center;
  }
  .hero-mobile img {
    width: auto;
    height: auto;
    max-width: min(220px, 70vw);
    max-height: 220px;
    object-fit: contain;
    display: block;
  }
  .hero-mobile-name {
    font-family: var(--serif);
    font-size: 2rem;
    color: #f4efe6;
    margin: 12px 0 0;
    line-height: 1.1;
  }
  .hero-mobile-tag {
    color: #e4c56b;
    letter-spacing: 0.18em;
    text-transform: uppercase;
    font-size: 0.7rem;
    font-weight: 600;
    margin: 8px 0 0;
  }
}

code {
  font-family: ui-monospace, SFMono-Regular, Menlo, Consolas, monospace;
  font-size: 0.9em;
  background: var(--bg-sink);
  padding: 0.1em 0.35em;
  border-radius: 6px;
  word-break: break-word;
}

.nowrap { white-space: nowrap; }
