/* ---------- Base Reset ---------- */
* {
  box-sizing: border-box;
  margin: 0;
  padding: 0;
}

:root {
  --ink: #0f172a;          /* slate-900 */
  --muted: #5f6368;        /* Medium gray for body text */
  --border: #e8eaed;       /* Light border */
  --bg-soft: #f8f9fa;      /* Very light gray background */
  --accent: #4285f4;       /* Bright blue - matches Charles */
  --success: #34a853;      /* Green for success states */
  --error: #ea4335;        /* Red for errors/warnings */
  --radius: 8px;           /* Standard border radius */
}

body {
  font-family: -apple-system, BlinkMacSystemFont, "Segoe UI",
               Roboto, Helvetica, Arial, sans-serif;
  color: var(--ink);
  background: #ffffff;
  line-height: 1.65;
}

/* ---------- Header / Nav ---------- */
header {
  border-bottom: 1px solid var(--border);
  background: #ffffff;
}

nav {
  max-width: 1120px;
  margin: 0 auto;
  padding: 18px 28px;
  display: flex;
  align-items: center;
  gap: 28px;
}

nav img {
  height: 56px;
}

.phone-number {
  font-weight: 600;
  color: #206646;
  font-size: 1rem;
}

nav > div {
  margin-left: auto;
}

nav a {
  margin-left: 28px;
  text-decoration: none;
  color: var(--ink);
  font-weight: 500;
}

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

/* ---------- Hero ---------- */
.hero {
  background: var(--bg-soft);
  border-bottom: 1px solid var(--border);
}

.hero-inner {
  max-width: 1120px;
  margin: 0 auto;
  padding: 120px 28px;
  display: flex;
  align-items: center;
  gap: 80px;
}

/* Platform page hero with minimal padding */
.platform-hero .hero-inner {
  padding: 12px 28px;
}

/* Platform page main with reduced margins */
.platform-main {
  margin-top: 40px;
  margin-bottom: 40px;
}

.platform-main h2 {
  margin-top: 32px;
  margin-bottom: 16px;
}

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

.platform-main .features {
  margin-top: 24px;
}

.hero-content {
  flex: 1;
}

.hero h1 {
  font-size: 3rem;
  line-height: 1.2;
  margin-bottom: 24px;
  font-weight: 700;
}

.hero p {
  font-size: 1.125rem;
  color: var(--muted);
  max-width: 720px;
  line-height: 1.6;
}

.hero-image {
  flex-shrink: 0;
}

.hero-image img {
  width: 480px;
  height: auto;
}

/* ---------- Main Content ---------- */
main {
  max-width: 900px;
  margin: 96px auto;
  padding: 0 28px;
}

h2 {
  font-size: 1.75rem;
  margin-top: 72px;
  margin-bottom: 24px;
  padding-bottom: 12px;
  border-bottom: 3px solid var(--accent);
  display: inline-block;
}

p {
  margin-bottom: 24px;
  max-width: 720px;
  color: var(--muted);
}

/* ---------- Feature Blocks ---------- */
.features {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(260px, 1fr));
  gap: 24px;
  margin-top: 56px;
}

.feature {
  padding: 32px;
  border: 1px solid var(--border);
  border-radius: var(--radius);
  background: #ffffff;
}

.feature h3 {
  font-size: 1.125rem;
  margin-bottom: 12px;
  font-weight: 600;
  color: var(--ink);
}

.feature p {
  font-size: 0.9375rem;
  color: var(--muted);
  line-height: 1.6;
}

/* ---------- Buttons ---------- */
.btn {
  display: inline-block;
  padding: 12px 24px;
  border-radius: var(--radius);
  font-weight: 500;
  text-decoration: none;
  cursor: pointer;
  border: none;
  font-size: 0.9375rem;
  transition: all 0.15s ease;
}

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

.btn-primary:hover {
  background: #3079ed;
  box-shadow: 0 1px 3px rgba(66, 133, 244, 0.3);
}

.btn-secondary {
  background: #ffffff;
  color: var(--ink);
  border: 1px solid var(--border);
}

.btn-secondary:hover {
  background: var(--bg-soft);
  border-color: var(--accent);
  color: var(--accent);
}

/* ---------- Document Pages (Privacy, Terms) ---------- */
.document-page {
  max-width: 800px;
  margin: 60px auto 96px;
  padding: 0 28px;
}

.document-page h1 {
  text-align: center;
  font-size: 2rem;
  font-weight: 600;
  margin-bottom: 8px;
  padding-bottom: 8px;
  border-bottom: 2px solid var(--ink);
  display: inline-block;
  width: 100%;
}

.document-page .last-updated {
  text-align: center;
  font-size: 0.875rem;
  color: var(--muted);
  margin-bottom: 48px;
}

.document-page h2 {
  font-size: 1.375rem;
  margin-top: 48px;
  margin-bottom: 16px;
  padding-bottom: 0;
  border-bottom: none;
  display: block;
  font-weight: 600;
}

.document-page h3 {
  font-size: 1.125rem;
  margin-top: 32px;
  margin-bottom: 12px;
  font-weight: 600;
  color: var(--ink);
}

.document-page ul {
  margin-left: 24px;
  margin-bottom: 24px;
  color: var(--muted);
}

.document-page li {
  margin-bottom: 8px;
}

/* ---------- Support Page (Getting Started Guide) ---------- */
.support-page {
  max-width: 900px;
  margin: 60px auto 96px;
  padding: 0 28px;
}

.support-page h1 {
  text-align: center;
  font-size: 2rem;
  font-weight: 600;
  margin-bottom: 8px;
  padding-bottom: 8px;
  border-bottom: 2px solid var(--ink);
}

.support-page .intro {
  text-align: center;
  font-size: 1rem;
  color: var(--muted);
  margin-bottom: 56px;
  max-width: 720px;
  margin-left: auto;
  margin-right: auto;
}

.step {
  display: flex;
  margin-bottom: 48px;
  gap: 24px;
}

.step-number {
  flex-shrink: 0;
  width: 40px;
  height: 40px;
  background: var(--accent);
  color: white;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 1.25rem;
  font-weight: 600;
}

.step-content {
  flex: 1;
}

.step-content h2 {
  font-size: 1.25rem;
  font-weight: 600;
  margin-bottom: 12px;
  margin-top: 0;
  border-bottom: none;
  padding-bottom: 0;
}

.step-content > p {
  color: var(--muted);
  margin-bottom: 16px;
}

.step-details {
  background: var(--bg-soft);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  padding: 24px;
  margin-top: 16px;
}

.step-details p {
  color: var(--muted);
  margin-bottom: 12px;
}

.step-details ul {
  margin-left: 24px;
  margin-bottom: 16px;
  color: var(--muted);
}

.step-details li {
  margin-bottom: 8px;
}

.step-details ul ul {
  margin-top: 8px;
  margin-bottom: 8px;
}

.callout {
  background: #fef9e7;
  border: 1px solid #f9e79f;
  border-radius: var(--radius);
  padding: 16px;
  margin-top: 16px;
  color: var(--ink);
  font-size: 0.9375rem;
}

.need-help {
  background: var(--bg-soft);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  padding: 32px;
  margin-top: 56px;
  text-align: center;
}

.need-help h2 {
  font-size: 1.5rem;
  font-weight: 600;
  margin-bottom: 12px;
  margin-top: 0;
  border-bottom: none;
  padding-bottom: 0;
}

.need-help p {
  color: var(--muted);
  margin-bottom: 16px;
}

/* ---------- Page Header (Our Apps page) ---------- */
.page-header {
  background: var(--bg-soft);
  padding: 12px 28px;
  border-bottom: 1px solid var(--border);
}

.page-header-inner {
  max-width: 1120px;
  margin: 0 auto;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 80px;
}

.page-header h1 {
  font-size: 2.5rem;
  font-weight: 600;
  color: #206646;
  margin: 0;
  text-align: left;
}

.page-header img {
  width: 300px;
  height: auto;
  flex-shrink: 0;
}

/* ---------- App Hero Section (Our Apps page) ---------- */
.app-hero {
  background: #ffffff;
  border-bottom: 1px solid var(--border);
  padding: 60px 28px;
}

.app-hero-inner {
  max-width: 1120px;
  margin: 0 auto;
  display: flex;
  align-items: center;
  gap: 80px;
}

.app-hero-content {
  flex: 1;
}

.app-hero-content h1 {
  font-size: 2.5rem;
  line-height: 1.2;
  margin-bottom: 24px;
  font-weight: 600;
  color: var(--ink);
}

.app-hero-content h2 {
  font-size: 1.375rem;
  margin-top: 0;
  margin-bottom: 16px;
  padding-bottom: 0;
  border-bottom: none;
  font-weight: 600;
  color: var(--ink);
}

.app-hero-content h3 {
  font-size: 1.125rem;
  margin-top: 24px;
  margin-bottom: 12px;
  padding-bottom: 0;
  border-bottom: none;
  font-weight: 600;
  color: var(--ink);
}

.app-hero-content > p {
  font-size: 1.125rem;
  color: var(--muted);
  margin-bottom: 32px;
  line-height: 1.6;
}

.app-hero-content ul {
  font-size: 1rem;
  color: var(--muted);
  margin-left: 24px;
  margin-bottom: 32px;
  line-height: 1.6;
}

.app-hero-content ul ul {
  margin-top: 8px;
  margin-bottom: 8px;
}

.app-hero-content li {
  margin-bottom: 8px;
}

.app-hero-buttons {
  display: flex;
  gap: 16px;
  margin-bottom: 24px;
}

.app-hero-tagline {
  font-size: 0.9375rem;
  color: var(--muted);
  margin-bottom: 0;
}

.app-hero-image {
  flex-shrink: 0;
}

.app-hero-image img {
  width: 280px;
  height: auto;
}

/* Larger size for Emily and Susan to match Charles's visual presence */
.app-hero-image img[src*="emily-logo"],
.app-hero-image img[src*="susan-logo"] {
  width: 350px;
}

/* Align Susan's logo to top since her content is longer */
.susan-section .app-hero-inner {
  align-items: flex-start;
}

/* ---------- App Section (Our Apps page) ---------- */
.app-section {
  border-bottom: 1px solid var(--border);
  padding: 80px 28px;
}

.app-section-inner {
  max-width: 1120px;
  margin: 0 auto;
}

.app-section h2 {
  font-size: 2rem;
  margin-bottom: 16px;
  border-bottom: none;
  padding-bottom: 0;
}

.app-section-content {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 24px;
}

.app-logo {
  width: 200px;
  height: auto;
}

/* ---------- Footer ---------- */
footer {
  border-top: 1px solid var(--border);
  margin-top: 120px;
  padding: 48px 28px;
  font-size: 0.875rem;
  color: var(--muted);
  max-width: 900px;
  margin-left: auto;
  margin-right: auto;
  text-align: center;
}

footer p {
  margin-bottom: 12px;
  color: var(--muted);
}

footer a {
  margin-left: 24px;
  text-decoration: none;
  color: var(--accent);
}

footer a:hover {
  text-decoration: underline;
}