/* Interlude — landing page styles.
 *
 * No framework and no build step. The page is one HTML file and this one CSS file,
 * which means it can be read, edited and deployed by anyone who can read HTML —
 * and a landing page for a $9.99 app does not need a bundler.
 *
 * Deliberately dark, matching the app's overlay, so the screenshots and the page
 * do not look like two different products.
 */

:root {
  --bg: #0b0c0f;
  --bg-raised: #14161b;
  --border: #23262e;
  --text: #e8eaee;
  --text-dim: #9aa0ac;
  --text-faint: #6a7080;
  --accent: #7aa2f7;
  --accent-dim: #3d5a8f;
  --radius: 10px;
  --measure: 46rem;
}

@media (prefers-color-scheme: light) {
  :root {
    --bg: #fbfbfd;
    --bg-raised: #ffffff;
    --border: #e4e6ea;
    --text: #16181d;
    --text-dim: #575d6a;
    --text-faint: #838a97;
    --accent: #2f5fb3;
    --accent-dim: #a8bde0;
  }
}

* { box-sizing: border-box; }

html {
  -webkit-text-size-adjust: 100%;
  scroll-behavior: smooth;
}

/* Respecting reduced motion is not a nicety: the page has a smooth scroll and
 * hover transitions, and for some people those are the difference between reading
 * a page and not reading it. */
@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  * { transition: none !important; animation: none !important; }
}

body {
  margin: 0;
  background: var(--bg);
  color: var(--text);
  font: 16px/1.65 -apple-system, BlinkMacSystemFont, "SF Pro Text", "Helvetica Neue", sans-serif;
  -webkit-font-smoothing: antialiased;
}

header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1rem;
  max-width: var(--measure);
  margin: 0 auto;
  padding: 1.5rem 1.25rem;
}

.wordmark {
  font-weight: 600;
  letter-spacing: -0.01em;
  color: var(--text);
  text-decoration: none;
}

header nav {
  display: flex;
  gap: 1.25rem;
  font-size: 0.9rem;
}

header nav a {
  color: var(--text-dim);
  text-decoration: none;
  transition: color 0.15s;
}

header nav a:hover { color: var(--text); }

main {
  max-width: var(--measure);
  margin: 0 auto;
  padding: 0 1.25rem 4rem;
}

section { margin: 4.5rem 0; }

h1 {
  font-size: clamp(2rem, 5vw, 3rem);
  line-height: 1.15;
  letter-spacing: -0.02em;
  margin: 0 0 1rem;
}

h2 {
  font-size: 1.5rem;
  letter-spacing: -0.01em;
  margin: 0 0 1.25rem;
}

h3 {
  font-size: 1rem;
  margin: 0 0 0.5rem;
}

p { margin: 0 0 1rem; }

a { color: var(--accent); }

code {
  font: 0.9em ui-monospace, "SF Mono", Menlo, monospace;
  background: var(--bg-raised);
  border: 1px solid var(--border);
  border-radius: 4px;
  padding: 0.1em 0.35em;
}

/* --- Hero --- */

.hero { margin-top: 3rem; }

.lede {
  font-size: 1.15rem;
  color: var(--text-dim);
  max-width: 38rem;
}

.cta {
  display: flex;
  align-items: center;
  gap: 1rem;
  flex-wrap: wrap;
  margin: 2rem 0 1rem;
}

.button {
  display: inline-block;
  background: var(--accent);
  color: #fff;
  text-decoration: none;
  font-weight: 600;
  padding: 0.7rem 1.4rem;
  border-radius: var(--radius);
  transition: filter 0.15s;
}

.button:hover { filter: brightness(1.1); }

@media (prefers-color-scheme: light) {
  .button { color: #fff; }
}

.cta-note {
  color: var(--text-dim);
  font-size: 0.9rem;
}

.requirements {
  color: var(--text-faint);
  font-size: 0.85rem;
}

/* --- Problem --- */

.problem blockquote {
  margin: 0 0 1rem;
  padding: 1.25rem 1.5rem;
  background: var(--bg-raised);
  border-left: 3px solid var(--accent-dim);
  border-radius: 0 var(--radius) var(--radius) 0;
  color: var(--text-dim);
  font-size: 1.05rem;
}

.problem blockquote strong { color: var(--text); }

/* --- Cards --- */

.cards {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(15rem, 1fr));
  gap: 1rem;
}

.cards article {
  background: var(--bg-raised);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  padding: 1.25rem;
}

.cards p {
  color: var(--text-dim);
  font-size: 0.92rem;
  margin: 0;
}

/* --- Privacy --- */

.privacy {
  background: var(--bg-raised);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  padding: 1.75rem;
}

.privacy p { color: var(--text-dim); }

.privacy-footnote {
  font-size: 0.85rem;
  color: var(--text-faint) !important;
  margin-bottom: 0 !important;
}

/* --- Table ---
 * Scrolls rather than squashing on a phone. A comparison table cut to three
 * columns is worse than one you have to swipe.
 */

table {
  width: 100%;
  border-collapse: collapse;
  font-size: 0.92rem;
  display: block;
  overflow-x: auto;
  white-space: nowrap;
}

thead th {
  text-align: left;
  font-weight: 600;
  padding: 0.6rem 0.9rem;
  border-bottom: 1px solid var(--border);
}

tbody td {
  padding: 0.6rem 0.9rem;
  border-bottom: 1px solid var(--border);
  color: var(--text-dim);
}

tbody td:first-child { color: var(--text); }

tbody strong { color: var(--text); }

.compare-note {
  color: var(--text-faint);
  font-size: 0.85rem;
  margin-top: 1rem;
}

/* --- Price --- */

.price-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(14rem, 1fr));
  gap: 1.5rem;
  margin-bottom: 1rem;
}

.price-grid ul {
  margin: 0;
  padding-left: 1.1rem;
  color: var(--text-dim);
  font-size: 0.92rem;
}

.price-grid li { margin-bottom: 0.35rem; }

/* --- FAQ --- */

details {
  border-bottom: 1px solid var(--border);
  padding: 0.9rem 0;
}

summary {
  cursor: pointer;
  font-weight: 500;
  list-style: none;
}

summary::-webkit-details-marker { display: none; }

summary::before {
  content: "+";
  display: inline-block;
  width: 1.2em;
  color: var(--text-faint);
}

details[open] summary::before { content: "−"; }

details p {
  color: var(--text-dim);
  font-size: 0.92rem;
  margin: 0.75rem 0 0;
}

/* --- Final --- */

.final {
  text-align: center;
  padding: 3rem 0;
  border-top: 1px solid var(--border);
}

/* --- Footer --- */

footer {
  max-width: var(--measure);
  margin: 0 auto;
  padding: 2rem 1.25rem 3rem;
  border-top: 1px solid var(--border);
  color: var(--text-dim);
  font-size: 0.85rem;
}

footer a { color: var(--text-dim); }

.footer-note { color: var(--text-faint); }
