/* The welcome, privacy and terms pages (site/): plain pages that work without the app,
   in FiberKeep's colors (the same tokens and contrast as src/index.css). Light only. */
:root {
  --bg: #faf6f1;
  --surface: #ffffff;
  --surface-2: #f3ece4;
  --text: #2b2420;
  --muted: #70655e;
  --border: #e6ddd3;
  --accent: #9a5a66;
  --accent-hover: #864b57;
  --on-color: #ffffff;
  --accent-soft: #f7eef0;
  color-scheme: light;
}
* {
  box-sizing: border-box;
}
body {
  margin: 0;
  font-family: 'Nunito', ui-rounded, system-ui, -apple-system, 'Segoe UI', Roboto, sans-serif;
  font-size: 17px;
  line-height: 1.6;
  color: var(--text);
  background: var(--bg);
  -webkit-font-smoothing: antialiased;
}
a {
  color: var(--accent);
  text-underline-offset: 2px;
}
a:hover {
  color: var(--accent-hover);
}
a:focus-visible,
.btn:focus-visible {
  outline: 3px solid var(--accent);
  outline-offset: 2px;
}

.wrap {
  max-width: 960px;
  margin: 0 auto;
  padding: 0 16px;
}

/* Top bar */
.top {
  border-bottom: 1px solid var(--border);
  background: var(--surface);
}
.top .wrap {
  display: flex;
  align-items: center;
  gap: 16px;
  min-height: 64px;
  flex-wrap: wrap;
}
.brand {
  display: flex;
  align-items: center;
  gap: 8px;
  font-weight: 700;
  font-size: 1.25rem;
  color: var(--accent);
  text-decoration: none;
}
.brand svg {
  width: 30px;
  height: 30px;
}
.top nav {
  margin-left: auto;
  display: flex;
  align-items: center;
  gap: 16px;
  flex-wrap: wrap;
}
.top nav a:not(.btn) {
  color: var(--text);
  text-decoration: none;
}
.top nav a:not(.btn):hover,
.top nav a[aria-current='page'] {
  text-decoration: underline;
}
/* The page you're on: underlined, a little thicker (not bold). */
.top nav a[aria-current='page'],
footer a[aria-current='page'] {
  text-decoration-thickness: 2px;
}

/* Buttons */
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  padding: 10px 20px;
  border-radius: 999px;
  border: 2px solid var(--text);
  background: var(--surface);
  color: var(--text);
  font: inherit;
  font-weight: 700;
  text-decoration: none;
}
.btn-primary {
  background: var(--accent);
  border-color: var(--accent);
  color: var(--on-color);
}
.btn-primary:hover {
  background: var(--accent-hover);
  border-color: var(--accent-hover);
  color: var(--on-color);
}
.btn-lg {
  padding: 14px 28px;
  font-size: 1.1rem;
}

/* Welcome */
.hero {
  padding: 64px 0 40px;
}
.hero h1 {
  font-size: clamp(2rem, 5vw, 3rem);
  line-height: 1.15;
  margin: 0 0 16px;
  max-width: 18ch;
}
.hero p {
  font-size: 1.15rem;
  max-width: 60ch;
  margin: 0 0 24px;
}
.hero .note {
  font-size: 1rem;
  color: var(--muted);
  margin-top: 12px;
}
.features {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(260px, 1fr));
  gap: 16px;
  padding: 8px 0 32px;
}
.card {
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: 16px;
  padding: 20px;
}
.card h2,
.card h3 {
  margin: 0 0 8px;
  font-size: 1.15rem;
}
.card p {
  margin: 0;
}
.panel {
  background: var(--accent-soft);
  border-radius: 16px;
  padding: 24px;
  margin: 8px 0 40px;
}
.panel h2 {
  margin: 0 0 8px;
  font-size: 1.35rem;
}
.panel ul {
  margin: 8px 0 0;
  padding-left: 1.2em;
}

/* Policy pages: the same page width as the welcome page, with the text at a reading width
   (lined up with the logo). */
.doc {
  padding: 40px 16px 48px;
}
.doc > * {
  max-width: 760px;
}
.doc h1 {
  font-size: 2rem;
  margin: 0 0 4px;
}
.doc .updated {
  color: var(--muted);
  margin: 0 0 24px;
}
.doc h2 {
  font-size: 1.3rem;
  margin: 32px 0 8px;
}
.doc li {
  margin-bottom: 8px;
}

/* Footer */
footer {
  border-top: 1px solid var(--border);
  padding: 24px 0 32px;
  color: var(--muted);
  font-size: 0.95rem;
}
footer .wrap {
  display: flex;
  gap: 8px 24px;
  flex-wrap: wrap;
}
footer a {
  color: var(--muted);
}

/* Free vs Pro: one table per group, in a white card that scrolls sideways if it must. */
.doc .lead {
  font-size: 1.15rem;
  margin: 0 0 24px;
}
.table-scroll {
  max-width: none;
  overflow-x: auto;
  margin: 0 0 20px;
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: 16px;
}
.table-scroll:focus-visible {
  outline: 3px solid var(--accent);
  outline-offset: 2px;
}
.compare {
  width: 100%;
  border-collapse: collapse;
}
.compare th,
.compare td {
  padding: 10px 16px;
  text-align: left;
  vertical-align: top;
}
.compare thead th {
  border-bottom: 1px solid var(--border);
}
.compare thead th:not(:first-child),
.compare td {
  width: 7.5em;
  text-align: center;
}
.compare tbody th {
  font-weight: 400;
}
.compare tbody tr + tr > * {
  border-top: 1px solid var(--border);
}
.compare .note {
  display: block;
  color: var(--muted);
  font-size: 0.9rem;
}
.compare .yes {
  display: inline-flex;
  color: var(--accent);
}
.compare .yes svg {
  width: 20px;
  height: 20px;
}
.compare .no {
  color: var(--muted);
}
/* On a phone, the Free and Pro columns take only what their words need, so the table fits. */
@media (max-width: 560px) {
  .compare th,
  .compare td {
    padding: 8px 10px;
  }
  .compare thead th:not(:first-child),
  .compare td {
    width: auto;
  }
}

/* Words for screen readers only ("Included" behind a check). */
.sr-only {
  position: absolute;
  width: 1px;
  height: 1px;
  padding: 0;
  margin: -1px;
  overflow: hidden;
  clip: rect(0, 0, 0, 0);
  white-space: nowrap;
  border: 0;
}

/* Skip to content: the first thing Tab reaches, out of sight until then, at the top left (WCAG 2.4.1). */
.skip-link {
  position: absolute;
  top: 8px;
  left: 8px;
  z-index: 10;
  padding: 8px 16px;
  border-radius: 10px;
  background: var(--surface);
  color: var(--text);
  font-weight: 700;
  box-shadow: 0 4px 16px rgb(60 40 30 / 0.15);
  transform: translateY(-200%);
}
.skip-link:focus {
  transform: none;
  outline: 3px solid var(--accent);
  outline-offset: 2px;
}
/* The page area it moves to isn't a control: no ring around all of it. */
main:focus {
  outline: none;
}
