/* CFI Endorse Log website — matches the app's look (navy, orange, square cards). */
:root {
  --bg: #011a29;
  --surface: #12314f;
  --accent: #f86000;
  --text: #ffffff;
  --text-2: #a9b8c9;
  --divider: #1e3a57;
  --max: 1080px;
}

* { box-sizing: border-box; }

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

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

a { color: var(--accent); }
a:hover { text-decoration: none; }
img { max-width: 100%; height: auto; display: block; }

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

/* Header */
.site-header { border-bottom: 1px solid var(--divider); }
.site-header .wrap {
  display: flex; align-items: center; justify-content: space-between;
  gap: 16px; flex-wrap: wrap; padding-top: 14px; padding-bottom: 14px;
}
.brand { display: flex; align-items: center; gap: 10px; color: var(--text); text-decoration: none; font-weight: 700; }
.brand img { width: 36px; height: 36px; border-radius: 8px; }
.nav { display: flex; gap: 20px; flex-wrap: wrap; }
.nav a { color: var(--text-2); text-decoration: none; font-weight: 600; font-size: 15px; }
.nav a:hover, .nav a[aria-current="page"] { color: var(--accent); }

/* Sections */
section { padding: 56px 0; }
section + section { border-top: 1px solid var(--divider); }
h1 { font-size: clamp(30px, 5vw, 46px); line-height: 1.15; margin: 0 0 16px; }
h2 { font-size: clamp(24px, 3.5vw, 32px); line-height: 1.2; margin: 0 0 16px; }
h3 { font-size: 20px; margin: 0 0 8px; }
.lead { font-size: clamp(18px, 2.2vw, 21px); color: var(--text-2); margin: 0 0 28px; }
.muted { color: var(--text-2); }
.small { font-size: 14px; }

/* Hero */
.hero { display: grid; grid-template-columns: minmax(0, 1.1fr) minmax(0, 0.9fr); gap: 40px; align-items: center; }
.hero > *, .feature > * { min-width: 0; }
.hero-logo { width: 100%; max-width: 460px; margin-bottom: 24px; }
.hero-shot { max-width: 320px; justify-self: center; border: 1px solid var(--accent); }

/* Download badge */
.download { display: inline-flex; flex-direction: column; gap: 6px; }
.download img { height: 54px; width: auto; }
.download.soon img { opacity: 0.45; }
.download.soon span { color: var(--text-2); font-size: 14px; font-weight: 600; }

/* Cards (square corners, thin orange border — same as the app) */
.cards { display: grid; grid-template-columns: repeat(auto-fit, minmax(240px, 1fr)); gap: 16px; }
.card { background: var(--surface); border: 1px solid var(--accent); padding: 20px; }
.card p { margin: 0; color: var(--text-2); }

/* Features page */
.feature { display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 1fr); gap: 40px; align-items: center; }
.feature img { max-width: 300px; justify-self: center; border: 1px solid var(--accent); }
.feature.wide img { max-width: 100%; }
section:nth-of-type(odd) .feature .feature-text { order: 2; }

/* Screenshot strip */
.shots { display: grid; grid-template-columns: repeat(auto-fit, minmax(180px, 1fr)); gap: 16px; }
.shots img { border: 1px solid var(--accent); }

/* Pricing */
.plans { display: grid; grid-template-columns: repeat(auto-fit, minmax(280px, 1fr)); gap: 20px; }
.plan { background: var(--surface); border: 1px solid var(--divider); padding: 28px; }
.plan.pro { border-color: var(--accent); }
.plan .price { font-size: 36px; font-weight: 800; margin: 8px 0 4px; }
.plan ul { padding-left: 1.2em; margin: 16px 0 0; }
.plan li { margin: 6px 0; }

/* FAQ and long-form text */
.prose { max-width: 760px; }
.prose h2 { margin-top: 40px; }
.prose h3 { margin-top: 28px; }
.prose ul { padding-left: 1.3em; }
.faq details { background: var(--surface); border: 1px solid var(--divider); padding: 16px 20px; margin-bottom: 12px; }
.faq summary { cursor: pointer; font-weight: 700; }
.faq details[open] { border-color: var(--accent); }
.faq details p { color: var(--text-2); margin: 12px 0 0; }

/* Footer */
.site-footer { border-top: 1px solid var(--divider); padding: 32px 0 48px; color: var(--text-2); font-size: 14px; }
.site-footer nav { display: flex; gap: 20px; flex-wrap: wrap; margin-bottom: 12px; }
.site-footer a { color: var(--text-2); }
.site-footer a:hover { color: var(--accent); }

@media (max-width: 760px) {
  section { padding: 40px 0; }
  .hero, .feature { grid-template-columns: minmax(0, 1fr); gap: 28px; }
  section:nth-of-type(odd) .feature .feature-text { order: 0; }
  .hero-shot { max-width: 260px; }
  .nav { gap: 14px; }
}
