/* RehearSmart marketing site
   Plain CSS, no build step. Light mode by default, dark mode via prefers-color-scheme. */

:root {
  --bg: #ffffff;
  --surface: #f5f5f7;
  --border: #e2e2e6;
  --text: #1a1a1e;
  --text-secondary: #55555c;
  --accent: #0062cc;
  --accent-text: #ffffff;
  --focus-ring: #0062cc;
  --max-width: 720px;
  --radius: 14px;
}

@media (prefers-color-scheme: dark) {
  :root {
    --bg: #0b0b0d;
    --surface: #18181b;
    --border: #2c2c30;
    --text: #f2f2f5;
    --text-secondary: #a8a8af;
    --accent: #3399ff;
    --accent-text: #0b0b0d;
    --focus-ring: #3399ff;
  }
}

* {
  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;
  -webkit-font-smoothing: antialiased;
}

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

a:focus-visible,
button:focus-visible,
summary:focus-visible {
  outline: 3px solid var(--focus-ring);
  outline-offset: 2px;
}

img {
  max-width: 100%;
  display: block;
}

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

/* Header */

.site-header {
  border-bottom: 1px solid var(--border);
}

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

.wordmark {
  font-size: 19px;
  font-weight: 700;
  color: var(--text);
  text-decoration: none;
  display: flex;
  align-items: center;
  gap: 8px;
}

.wordmark img {
  width: 28px;
  height: 28px;
  border-radius: 7px;
}

.site-nav {
  display: flex;
  gap: 20px;
  flex-wrap: wrap;
}

.site-nav a {
  color: var(--text-secondary);
  text-decoration: none;
  font-size: 15px;
}

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

/* Hero */

.hero {
  padding: 64px 0 48px;
}

.eyebrow {
  color: var(--accent);
  font-weight: 600;
  font-size: 14px;
  letter-spacing: 0.02em;
  text-transform: uppercase;
  margin: 0 0 14px;
}

h1 {
  font-size: 40px;
  line-height: 1.15;
  margin: 0 0 20px;
  letter-spacing: -0.01em;
}

.lede {
  font-size: 19px;
  color: var(--text-secondary);
  max-width: 56ch;
  margin: 0 0 32px;
}

@media (max-width: 480px) {
  h1 {
    font-size: 32px;
  }
  .lede {
    font-size: 17px;
  }
}

/* Buttons */

.btn {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 13px 22px;
  border-radius: 999px;
  font-size: 16px;
  font-weight: 600;
  text-decoration: none;
  border: 1px solid transparent;
}

.btn-primary {
  background: var(--accent);
  color: var(--accent-text);
}

.btn-secondary {
  background: transparent;
  color: var(--text);
  border-color: var(--border);
}

.btn-secondary:hover,
.btn-secondary:focus-visible {
  border-color: var(--accent);
}

.cta-row {
  display: flex;
  align-items: center;
  gap: 16px;
  flex-wrap: wrap;
}

/* App Store placeholder badge */

.app-store-cta {
  margin-top: 8px;
}

.app-badge-placeholder {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  padding: 12px 20px;
  border-radius: 12px;
  border: 1px solid var(--border);
  background: var(--surface);
  color: var(--text-secondary);
  font-size: 15px;
  font-weight: 600;
}

.app-badge-dot {
  width: 8px;
  height: 8px;
  border-radius: 50%;
  background: var(--accent);
  flex-shrink: 0;
}

.cta-note {
  margin-top: 10px;
  font-size: 14px;
  color: var(--text-secondary);
}

/* Sections */

section {
  padding: 40px 0;
}

.section-title {
  font-size: 26px;
  margin: 0 0 8px;
}

.section-intro {
  color: var(--text-secondary);
  margin: 0 0 32px;
  max-width: 56ch;
}

/* Steps */

.steps {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 20px;
  list-style: none;
  margin: 0;
  padding: 0;
}

@media (max-width: 640px) {
  .steps {
    grid-template-columns: 1fr;
  }
}

.step {
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  padding: 22px;
}

.step-number {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 28px;
  height: 28px;
  border-radius: 50%;
  background: var(--accent);
  color: var(--accent-text);
  font-size: 14px;
  font-weight: 700;
  margin-bottom: 14px;
}

.step h3 {
  margin: 0 0 8px;
  font-size: 18px;
}

.step p {
  margin: 0;
  color: var(--text-secondary);
  font-size: 15px;
}

/* Trust / credibility cards */

.trust-list {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 20px;
  list-style: none;
  margin: 0;
  padding: 0;
}

@media (max-width: 640px) {
  .trust-list {
    grid-template-columns: 1fr;
  }
}

.trust-item h3 {
  font-size: 16px;
  margin: 0 0 6px;
}

.trust-item p {
  margin: 0;
  color: var(--text-secondary);
  font-size: 15px;
}

/* Legal / long-form content pages */

.page-header {
  padding: 48px 0 8px;
}

.page-header h1 {
  font-size: 32px;
}

.updated {
  color: var(--text-secondary);
  font-size: 14px;
  margin: 0 0 32px;
}

.summary-box {
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  padding: 24px;
  margin: 0 0 40px;
}

.summary-box p {
  margin: 0 0 10px;
  font-size: 15px;
}

.summary-box p:last-child {
  margin-bottom: 0;
}

.prose h2 {
  font-size: 21px;
  margin: 36px 0 12px;
}

.prose h2:first-child {
  margin-top: 0;
}

.prose p,
.prose li {
  color: var(--text);
  font-size: 16px;
}

.prose ul {
  padding-left: 22px;
}

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

/* FAQ */

.faq-item {
  border: 1px solid var(--border);
  border-radius: 12px;
  padding: 4px 20px;
  margin-bottom: 12px;
  background: var(--surface);
}

.faq-item summary {
  cursor: pointer;
  padding: 16px 0;
  font-weight: 600;
  font-size: 16px;
  list-style: none;
}

.faq-item summary::-webkit-details-marker {
  display: none;
}

.faq-item summary::before {
  content: "+";
  display: inline-block;
  width: 18px;
  color: var(--accent);
  font-weight: 700;
}

.faq-item[open] summary::before {
  content: "\2212";
}

.faq-item p {
  margin: 0 0 18px;
  color: var(--text-secondary);
  font-size: 15px;
}

.contact-box {
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  padding: 24px;
  margin-bottom: 40px;
}

.contact-box p {
  margin: 0 0 12px;
}

.contact-box p:last-child {
  margin-bottom: 0;
}

.contact-box a {
  font-weight: 600;
}

/* Footer */

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

.site-footer .wrap {
  padding: 28px 24px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  flex-wrap: wrap;
  gap: 12px;
}

.site-footer p {
  margin: 0;
  color: var(--text-secondary);
  font-size: 14px;
}

.footer-links {
  display: flex;
  gap: 18px;
}

.footer-links a {
  color: var(--text-secondary);
  text-decoration: none;
  font-size: 14px;
}

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

.visually-hidden {
  position: absolute;
  width: 1px;
  height: 1px;
  padding: 0;
  margin: -1px;
  overflow: hidden;
  clip: rect(0, 0, 0, 0);
  white-space: nowrap;
  border: 0;
}
