/* SafeFeed website — single shared stylesheet.
   Brand tokens are CSS custom properties so we can swap colors in one place.
   Mobile-first: all base styles assume <600px; media queries layer on for
   tablet (≥600px) and desktop (≥960px). */

:root {
  --teal:        #2A9D8F;
  --teal-dark:   #1F786E;
  --teal-light:  #E0F2EF;
  --coral:       #E76F51;
  --coral-dark:  #C25A40;
  --coral-light: #FBE4DD;
  --bg:          #FAFAF8;
  --text:        #2D2D2D;
  --text-light:  #6B6B6B;
  --text-dim:    #9C9C9C;
  --border:      #E5E2DD;
  --card:        #FFFFFF;

  --status-operational: #2A9D8F;
  --status-degraded:    #E9C46A;
  --status-outage:      #E76F51;

  --radius-sm: 6px;
  --radius-md: 12px;
  --radius-lg: 18px;
  --radius-xl: 24px;
  --radius-full: 999px;

  --shadow-sm: 0 1px 2px rgba(0, 0, 0, 0.04);
  --shadow-md: 0 4px 12px rgba(0, 0, 0, 0.06);
  --shadow-lg: 0 10px 32px rgba(0, 0, 0, 0.08);

  --font: -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, "Helvetica Neue", Arial, sans-serif;
  --font-mono: ui-monospace, SFMono-Regular, Menlo, Consolas, "Liberation Mono", monospace;
}

* { box-sizing: border-box; }

html {
  font-family: var(--font);
  font-size: 16px;
  line-height: 1.6;
  color: var(--text);
  background: var(--bg);
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
}

body { margin: 0; }

/* Typography */

h1, h2, h3, h4 {
  color: var(--text);
  font-weight: 800;
  letter-spacing: -0.02em;
  line-height: 1.2;
  margin: 0 0 0.6em;
}

h1 { font-size: 2.25rem; }
h2 { font-size: 1.6rem; }
h3 { font-size: 1.2rem; font-weight: 700; }
h4 { font-size: 1rem; font-weight: 700; }

p  { margin: 0 0 1em; }

a {
  color: var(--teal-dark);
  text-decoration: none;
  font-weight: 600;
}
a:hover { text-decoration: underline; }

ul, ol {
  margin: 0 0 1em;
  padding-left: 1.5em;
}
li { margin-bottom: 0.4em; }

code {
  font-family: var(--font-mono);
  font-size: 0.9em;
  background: var(--bg);
  border: 1px solid var(--border);
  border-radius: var(--radius-sm);
  padding: 0.1em 0.4em;
}

pre {
  font-family: var(--font-mono);
  font-size: 0.85rem;
  background: #1a1a1a;
  color: #f5f5f5;
  padding: 16px;
  border-radius: var(--radius-md);
  overflow-x: auto;
  line-height: 1.5;
}

@media (min-width: 600px) {
  h1 { font-size: 3rem; }
  h2 { font-size: 2rem; }
  h3 { font-size: 1.4rem; }
}

/* Layout */

.container {
  max-width: 1100px;
  margin: 0 auto;
  padding: 0 20px;
}

.container--narrow { max-width: 760px; }

section { padding: 48px 0; }
section:first-of-type { padding-top: 32px; }

@media (min-width: 600px) {
  section { padding: 72px 0; }
}

/* Header */

.site-header {
  background: var(--card);
  border-bottom: 1px solid var(--border);
  position: sticky;
  top: 0;
  z-index: 10;
  backdrop-filter: saturate(180%) blur(8px);
  -webkit-backdrop-filter: saturate(180%) blur(8px);
}

.site-header .container {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
  padding-top: 14px;
  padding-bottom: 14px;
}

.brand {
  display: flex;
  align-items: center;
  gap: 10px;
  font-weight: 800;
  font-size: 1.1rem;
  color: var(--text);
  text-decoration: none;
}
.brand:hover { text-decoration: none; }

.brand-mark {
  width: 28px;
  height: 28px;
  background: var(--teal);
  border-radius: 8px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  color: white;
  font-weight: 800;
  font-size: 0.9rem;
}

.nav {
  display: none;
  gap: 18px;
  font-size: 0.95rem;
}
.nav a {
  color: var(--text);
  font-weight: 600;
}
.nav a.cta {
  background: var(--coral);
  color: white;
  padding: 8px 14px;
  border-radius: var(--radius-full);
}
.nav a.cta:hover {
  background: var(--coral-dark);
  text-decoration: none;
}

@media (min-width: 760px) {
  .nav { display: flex; align-items: center; }
}

/* Hero */

.hero {
  padding: 64px 0 56px;
  text-align: center;
}
.hero h1 {
  font-size: 2.5rem;
  margin-bottom: 16px;
}
.hero .lede {
  font-size: 1.15rem;
  color: var(--text-light);
  max-width: 600px;
  margin: 0 auto 24px;
}
.hero .cta-row {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
  justify-content: center;
  margin-top: 28px;
}

.trial-pill {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  background: var(--teal-light);
  color: var(--teal-dark);
  padding: 6px 14px;
  border-radius: var(--radius-full);
  font-weight: 700;
  font-size: 0.9rem;
  margin-bottom: 18px;
}

@media (min-width: 600px) {
  .hero { padding: 96px 0 72px; }
  .hero h1 { font-size: 3.5rem; }
  .hero .lede { font-size: 1.25rem; }
}

/* Buttons */

.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  padding: 12px 22px;
  border-radius: var(--radius-full);
  font-weight: 700;
  text-decoration: none;
  border: none;
  cursor: pointer;
  font-size: 0.95rem;
  transition: transform 0.05s ease, background 0.15s ease;
}
.btn:active { transform: scale(0.98); }
.btn:hover { text-decoration: none; }

.btn--primary  { background: var(--coral); color: white; }
.btn--primary:hover { background: var(--coral-dark); }

.btn--secondary { background: var(--teal); color: white; }
.btn--secondary:hover { background: var(--teal-dark); }

.btn--outline {
  background: transparent;
  color: var(--text);
  border: 1.5px solid var(--border);
}
.btn--outline:hover { border-color: var(--text); }

/* Cards / sections */

.card {
  background: var(--card);
  border: 1px solid var(--border);
  border-radius: var(--radius-lg);
  padding: 24px;
  box-shadow: var(--shadow-sm);
}

.card + .card { margin-top: 16px; }

.feature-grid {
  display: grid;
  gap: 16px;
  grid-template-columns: 1fr;
  margin-top: 32px;
}
@media (min-width: 600px) {
  .feature-grid { grid-template-columns: repeat(2, 1fr); }
}
@media (min-width: 960px) {
  .feature-grid { grid-template-columns: repeat(3, 1fr); }
}

.feature-card h3 {
  margin-top: 0;
  margin-bottom: 8px;
  color: var(--teal-dark);
}
.feature-card p { margin: 0; color: var(--text-light); }

/* Quotable callout — designed to look extractable to AI summarisers */

.quotable {
  background: var(--card);
  border: 1px solid var(--border);
  border-left: 4px solid var(--teal);
  padding: 24px 28px;
  border-radius: var(--radius-md);
  margin: 32px 0;
  font-size: 1.05rem;
  line-height: 1.7;
  color: var(--text);
}
.quotable strong { color: var(--teal-dark); }

/* Comparison table */

.compare-table-wrap { overflow-x: auto; margin: 24px 0 32px; }
.compare-table {
  width: 100%;
  border-collapse: collapse;
  background: var(--card);
  border-radius: var(--radius-md);
  overflow: hidden;
  font-size: 0.95rem;
}
.compare-table th, .compare-table td {
  padding: 14px 16px;
  text-align: left;
  border-bottom: 1px solid var(--border);
  vertical-align: top;
}
.compare-table th {
  background: var(--bg);
  font-weight: 700;
  font-size: 0.85rem;
  text-transform: uppercase;
  letter-spacing: 0.05em;
  color: var(--text-light);
}
.compare-table tr:last-child td { border-bottom: none; }
.compare-table .yes { color: var(--teal-dark); font-weight: 700; }
.compare-table .no  { color: var(--text-dim); }

/* FAQ */

.faq-item {
  background: var(--card);
  border: 1px solid var(--border);
  border-radius: var(--radius-md);
  padding: 20px 24px;
  margin-bottom: 12px;
}
.faq-item h3 {
  margin-top: 0;
  margin-bottom: 8px;
  font-size: 1.1rem;
}
.faq-item p:last-child { margin-bottom: 0; }

/* Status page */

.status-card {
  background: var(--card);
  border: 1px solid var(--border);
  border-radius: var(--radius-md);
  padding: 14px 20px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  margin-bottom: 10px;
}
.status-name { font-weight: 600; }
.status-pill {
  font-size: 0.8rem;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.05em;
  padding: 4px 12px;
  border-radius: var(--radius-full);
  background: var(--status-operational);
  color: white;
}
.status-pill[data-status="degraded"] { background: var(--status-degraded); color: var(--text); }
.status-pill[data-status="outage"]   { background: var(--status-outage); }
.status-summary {
  font-size: 1rem;
  color: var(--text-light);
  margin-bottom: 24px;
}

/* Footer */

.site-footer {
  background: var(--text);
  color: #d5d5d5;
  padding: 48px 0 32px;
  margin-top: 64px;
  font-size: 0.92rem;
}
.site-footer a { color: white; }
.site-footer .container {
  display: grid;
  gap: 24px;
  grid-template-columns: 1fr;
}
@media (min-width: 600px) {
  .site-footer .container { grid-template-columns: 2fr 1fr 1fr 1fr; }
}
.site-footer h4 {
  color: white;
  font-size: 0.85rem;
  text-transform: uppercase;
  letter-spacing: 0.08em;
  margin-bottom: 12px;
}
.site-footer ul { list-style: none; padding: 0; }
.site-footer li { margin-bottom: 6px; }
.site-footer .copyright {
  color: #999;
  font-size: 0.85rem;
  border-top: 1px solid #444;
  padding-top: 24px;
  margin-top: 24px;
  text-align: center;
  grid-column: 1 / -1;
}
.site-footer .tagline {
  color: #b0b0b0;
  font-size: 0.92rem;
  line-height: 1.5;
  margin: 8px 0 0;
  max-width: 320px;
}

/* Page-title hero (smaller than home hero) */

.page-hero {
  text-align: center;
  padding: 48px 0 32px;
}
.page-hero h1 { font-size: 2rem; }
.page-hero .lede {
  color: var(--text-light);
  font-size: 1.05rem;
  max-width: 600px;
  margin: 0 auto;
}
@media (min-width: 600px) {
  .page-hero { padding: 72px 0 48px; }
  .page-hero h1 { font-size: 2.5rem; }
}

/* Step list (How It Works, Download) */

.steps {
  counter-reset: step;
  list-style: none;
  padding: 0;
  margin: 32px 0;
}
.steps li {
  position: relative;
  padding: 16px 16px 16px 56px;
  background: var(--card);
  border: 1px solid var(--border);
  border-radius: var(--radius-md);
  margin-bottom: 12px;
  counter-increment: step;
}
.steps li::before {
  content: counter(step);
  position: absolute;
  left: 14px;
  top: 14px;
  width: 28px;
  height: 28px;
  background: var(--teal);
  color: white;
  border-radius: var(--radius-full);
  display: inline-flex;
  align-items: center;
  justify-content: center;
  font-weight: 800;
  font-size: 0.9rem;
}
.steps h3 {
  margin: 0 0 4px;
  font-size: 1rem;
}
.steps p { margin: 0; color: var(--text-light); font-size: 0.95rem; }

/* Pricing */

.pricing-card {
  background: var(--card);
  border: 1px solid var(--border);
  border-radius: var(--radius-lg);
  padding: 32px;
  text-align: center;
  max-width: 420px;
  margin: 0 auto;
  box-shadow: var(--shadow-md);
}
.pricing-price {
  font-size: 2.5rem;
  font-weight: 800;
  color: var(--text);
  margin: 8px 0;
}
.pricing-price span { font-size: 1rem; font-weight: 600; color: var(--text-light); }
.pricing-trial {
  background: var(--coral);
  color: white;
  padding: 8px 16px;
  border-radius: var(--radius-full);
  display: inline-block;
  font-weight: 700;
  font-size: 0.85rem;
  margin-bottom: 8px;
}

/* Legal page typography (Privacy / Terms) */

.legal h2 { margin-top: 40px; font-size: 1.4rem; }
.legal h3 { margin-top: 24px; font-size: 1.05rem; }
.legal p, .legal li { font-size: 0.97rem; }
.legal .meta { color: var(--text-light); font-size: 0.9rem; }

/* Share-page placeholder */

.share-placeholder {
  text-align: center;
  padding: 64px 0;
}
.share-placeholder .icon {
  font-size: 3rem;
  margin-bottom: 12px;
}

/* Skip-link for accessibility */

.skip-link {
  position: absolute;
  left: -1000px;
  top: 0;
  padding: 8px 12px;
  background: var(--text);
  color: white;
  border-radius: 0 0 var(--radius-md) 0;
}
.skip-link:focus { left: 0; outline: 3px solid var(--coral); }
