/* My AI Notes — shared stylesheet for the public website.
   Mobile-first, light/dark aware, no external fonts/CDNs/JS. */

:root {
  --bg: #ffffff;
  --fg: #1a1a1a;
  --muted: #5f6368;
  --accent: #2563eb;
  --border: #e2e2e5;
  --card: #f6f7f9;
}

@media (prefers-color-scheme: dark) {
  :root {
    --bg: #121214;
    --fg: #f1f1f3;
    --muted: #a3a3aa;
    --accent: #7aa7ff;
    --border: #2e2e33;
    --card: #1c1c1f;
  }
}

* {
  box-sizing: border-box;
}

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

body {
  margin: 0;
  background: var(--bg);
  color: var(--fg);
  font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, Helvetica, Arial, sans-serif;
  line-height: 1.6;
  font-size: 17px;
}

a {
  color: var(--accent);
  text-decoration: none;
}

a:hover,
a:focus {
  text-decoration: underline;
}

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

h1 {
  font-size: 1.9rem;
  line-height: 1.25;
  margin: 0 0 0.75rem;
}

h2 {
  font-size: 1.35rem;
  line-height: 1.3;
  margin: 2rem 0 0.75rem;
}

p {
  margin: 0 0 1rem;
}

ul {
  margin: 0 0 1rem;
  padding-left: 1.25rem;
}

/* Top navigation */

.site-nav {
  border-bottom: 1px solid var(--border);
  background: var(--bg);
}

.site-nav .nav-inner {
  max-width: 720px;
  margin: 0 auto;
  padding: 1rem 1.25rem;
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: space-between;
  gap: 0.75rem 1.5rem;
}

.site-nav .brand {
  font-weight: 600;
  font-size: 1.05rem;
  color: var(--fg);
}

.site-nav .brand:hover,
.site-nav .brand:focus {
  text-decoration: none;
  color: var(--accent);
}

.site-nav .nav-links {
  display: flex;
  flex-wrap: wrap;
  gap: 0.5rem 1.25rem;
}

.site-nav .nav-links a {
  color: var(--fg);
}

.site-nav .nav-links a:hover,
.site-nav .nav-links a:focus {
  color: var(--accent);
}

/* Main content column */

.content {
  max-width: 720px;
  margin: 0 auto;
  padding: 2.5rem 1.25rem 3rem;
}

/* Footer */

.site-footer {
  border-top: 1px solid var(--border);
  margin-top: 2rem;
}

.site-footer .footer-inner {
  max-width: 720px;
  margin: 0 auto;
  padding: 1.5rem 1.25rem 2.5rem;
  color: var(--muted);
  font-size: 0.9rem;
}

.site-footer .footer-links {
  display: flex;
  flex-wrap: wrap;
  gap: 0.5rem 1.25rem;
  margin-bottom: 0.75rem;
}

.site-footer a {
  color: var(--muted);
}

.site-footer a:hover,
.site-footer a:focus {
  color: var(--accent);
}

/* Reused by the content pages (TASK-290/291/292) for boxed sections; unused on the placeholder pages. */
.card {
  background: var(--card);
  border: 1px solid var(--border);
  border-radius: 10px;
  padding: 1.25rem 1.5rem;
  margin: 1.25rem 0;
}

/* Draft marker for policy pages pending owner review (TASK-290). */
.draft-banner {
  border: 1px solid var(--accent);
  border-radius: 10px;
  padding: 0.75rem 1rem;
  margin: 0 0 1.5rem;
  font-size: 0.9rem;
  color: var(--muted);
  background: var(--card);
}

.draft-banner strong {
  color: var(--fg);
}

/* Sub-processor table on the privacy page (TASK-290). */
.data-table {
  width: 100%;
  border-collapse: collapse;
  margin: 1.25rem 0;
  font-size: 0.95rem;
}

.data-table th,
.data-table td {
  border: 1px solid var(--border);
  padding: 0.6rem 0.75rem;
  text-align: left;
  vertical-align: top;
}

.data-table th {
  background: var(--card);
  font-weight: 600;
}

.table-scroll {
  overflow-x: auto;
}

/* Landing page (TASK-289) */

.hero {
  background: var(--card);
  border-bottom: 1px solid var(--border);
}

.hero-inner {
  max-width: 720px;
  margin: 0 auto;
  padding: 2.5rem 1.25rem 3rem;
  text-align: center;
}

.hero-eyebrow {
  margin: 0;
  font-weight: 600;
  font-size: 1.1rem;
  color: var(--fg);
}

.hero-tagline {
  margin: 0.25rem 0 1.25rem;
  color: var(--muted);
  font-size: 0.95rem;
  text-transform: uppercase;
  letter-spacing: 0.04em;
}

.hero h1 {
  font-size: 2rem;
  max-width: 30rem;
  margin: 0 auto 0.9rem;
}

.hero-lead {
  max-width: 34rem;
  margin: 0 auto 1.5rem;
  color: var(--muted);
  font-size: 1.05rem;
}

.btn-store {
  display: inline-block;
  background: var(--accent);
  color: #fff;
  font-weight: 600;
  padding: 0.85rem 1.5rem;
  border-radius: 10px;
  margin-bottom: 2rem;
}

.btn-store:hover,
.btn-store:focus {
  text-decoration: none;
  opacity: 0.9;
}

/* Dark mode: --accent is a light blue, so pin the CTA to an accessible
   blue (white text ≈ 5.2:1) instead of white-on-light-blue. */
@media (prefers-color-scheme: dark) {
  .btn-store {
    background: #2563eb;
  }
}

.hero-shots {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: 1.25rem;
}

.hero-shots img {
  width: 240px;
  max-width: 45vw;
  height: auto;
  border-radius: 16px;
  border: 1px solid var(--border);
  box-shadow: 0 8px 24px rgba(0, 0, 0, 0.12);
}

.hero-shots--secondary {
  margin-top: 1.5rem;
}

.section {
  margin: 2.5rem 0;
}

.feature-list li {
  margin-bottom: 0.4rem;
}

.feature-grid {
  display: grid;
  grid-template-columns: 1fr;
  gap: 0.85rem;
}

@media (min-width: 640px) {
  .feature-grid {
    grid-template-columns: repeat(2, 1fr);
  }
}

.feature-card {
  background: var(--card);
  border: 1px solid var(--border);
  border-radius: 10px;
  padding: 1rem 1.15rem;
}

.pricing-card ul {
  margin-bottom: 1rem;
}

.pricing-disclosure {
  color: var(--muted);
  font-size: 0.85rem;
  margin-bottom: 0;
}
