/* Cradle marketing site — shared styles. Matches the in-app palette
   (sage CTA, coral hero accent, calm cool surfaces). */

:root {
  --bg: #DDE7F0;
  --surface: #FFFFFF;
  --surface-alt: #EEF3F8;
  --text-primary: #1F3247;
  --text-secondary: #4A5C72;
  --text-muted: #8B97A8;
  --border: #C8D2DD;
  --accent: #3D7AAB;
  --accent-deep: #2F5F86;
  --cta: #3E9C7A;
  --cta-deep: #2E7A5E;
  --hero: #FF6B57;
  --hero-bg: #FFE0DA;
  --warning: #B8772E;
  --success: #3E9C7A;

  --radius-sm: 8px;
  --radius-md: 14px;
  --radius-lg: 20px;
  --radius-pill: 999px;
  --shadow-sm: 0 2px 8px rgba(31, 50, 71, 0.06);
  --shadow-md: 0 6px 18px rgba(31, 50, 71, 0.08);
  --shadow-lg: 0 14px 32px rgba(31, 50, 71, 0.10);
  --content-max: 1100px;
}

* { box-sizing: border-box; }

html, body {
  margin: 0;
  padding: 0;
  font-family: -apple-system, BlinkMacSystemFont, "SF Pro Text", "Segoe UI", Roboto, sans-serif;
  color: var(--text-primary);
  background: var(--bg);
  line-height: 1.55;
  -webkit-font-smoothing: antialiased;
}

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

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

h1, h2, h3, h4 {
  margin: 0 0 0.5em 0;
  font-weight: 800;
  letter-spacing: -0.02em;
  color: var(--text-primary);
}
h1 { font-size: clamp(2.4rem, 5vw, 3.6rem); line-height: 1.1; }
h2 { font-size: clamp(1.6rem, 3vw, 2.2rem); line-height: 1.2; }
h3 { font-size: 1.2rem; line-height: 1.3; }

p { margin: 0 0 1em 0; }

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

/* Header / nav */
header.site {
  padding: 22px 0;
  background: transparent;
  position: sticky; top: 0; z-index: 10;
  backdrop-filter: blur(8px);
  background: rgba(221, 231, 240, 0.8);
}
.nav {
  display: flex; align-items: center; justify-content: space-between;
}
.brand {
  font-weight: 900;
  font-size: 22px;
  letter-spacing: -0.02em;
  color: var(--text-primary);
}
.brand-mark {
  display: inline-block; width: 28px; height: 28px;
  background: var(--cta); border-radius: 8px; vertical-align: -7px;
  margin-right: 8px;
  position: relative;
}
.brand-mark::after {
  content: ''; position: absolute; inset: 6px;
  background: var(--surface); border-radius: 4px;
}
.nav-links { display: flex; gap: 28px; }
.nav-links a { color: var(--text-secondary); font-weight: 600; }
.nav-cta {
  background: var(--cta);
  color: var(--surface) !important;
  padding: 10px 18px;
  border-radius: var(--radius-pill);
  font-weight: 700;
  text-decoration: none !important;
}
.nav-cta:hover { background: var(--cta-deep); }

/* Hero */
.hero {
  padding: 80px 0 60px;
  text-align: left;
}
.hero-grid {
  display: grid;
  grid-template-columns: 1.1fr 0.9fr;
  gap: 56px;
  align-items: center;
}
.hero-eyebrow {
  display: inline-block;
  padding: 6px 12px;
  background: var(--hero-bg);
  color: var(--hero);
  font-weight: 800;
  font-size: 12px;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  border-radius: var(--radius-pill);
  margin-bottom: 22px;
}
.hero h1 { color: var(--text-primary); }
.hero p.lede {
  font-size: 1.2rem;
  color: var(--text-secondary);
  margin-top: 22px;
  margin-bottom: 32px;
  max-width: 540px;
  line-height: 1.5;
}
.cta-row {
  display: flex;
  flex-wrap: wrap;
  gap: 14px;
  align-items: center;
}
.btn-primary {
  display: inline-flex; align-items: center; gap: 10px;
  background: var(--text-primary);
  color: var(--surface);
  padding: 14px 22px;
  border-radius: var(--radius-pill);
  font-weight: 700;
  font-size: 16px;
}
.btn-primary:hover { background: #0d1726; text-decoration: none; }
.btn-secondary {
  display: inline-flex; align-items: center; gap: 10px;
  background: var(--surface);
  color: var(--text-primary);
  padding: 14px 22px;
  border-radius: var(--radius-pill);
  border: 1.5px solid var(--border);
  font-weight: 700;
  font-size: 16px;
}
.btn-secondary:hover { border-color: var(--accent); text-decoration: none; }

/* Phone mockup */
.phone-frame {
  width: 320px;
  height: 660px;
  background: var(--text-primary);
  border-radius: 44px;
  padding: 14px;
  box-shadow: var(--shadow-lg);
  margin: 0 auto;
  position: relative;
}
.phone-screen {
  width: 100%; height: 100%;
  background: linear-gradient(180deg, var(--bg) 0%, var(--surface-alt) 100%);
  border-radius: 32px;
  padding: 22px 18px;
  display: flex; flex-direction: column;
  gap: 14px;
  overflow: hidden;
}
.phone-notch {
  position: absolute; top: 14px; left: 50%;
  transform: translateX(-50%);
  width: 110px; height: 28px;
  background: var(--text-primary);
  border-radius: 18px;
  z-index: 2;
}
.phone-stat-row {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 6px;
}
.phone-stat {
  background: var(--surface);
  border-radius: 10px;
  padding: 10px 8px;
  border: 1px solid var(--border);
}
.phone-stat-label {
  font-size: 9px; font-weight: 800; letter-spacing: 0.08em;
  color: var(--text-muted); text-transform: uppercase;
}
.phone-stat-value {
  font-size: 18px; font-weight: 800; color: var(--text-primary);
  margin-top: 2px;
}
.phone-stat-sub { font-size: 10px; color: var(--text-muted); }
.phone-card {
  background: var(--surface); border: 1px solid var(--border);
  border-left: 4px solid var(--hero);
  border-radius: 10px; padding: 12px;
}
.phone-card-label { font-size: 10px; font-weight: 800; color: var(--hero); letter-spacing: 0.08em; text-transform: uppercase; }
.phone-card-text { font-size: 13px; color: var(--text-primary); margin-top: 4px; }
.phone-pattern {
  background: var(--surface); border: 1px solid var(--border);
  border-radius: 10px; padding: 10px;
  display: flex; gap: 3px; align-items: flex-end;
  height: 92px;
}
.phone-pattern .col {
  flex: 1; background: var(--surface-alt); border-radius: 2px;
  display: flex; align-items: flex-end;
}
.phone-pattern .col .fill { width: 100%; background: var(--accent); border-radius: 2px; }

/* Sections */
section { padding: 70px 0; }
section.alt { background: var(--surface); }

.section-head { text-align: center; max-width: 720px; margin: 0 auto 48px; }
.section-head .eyebrow {
  display: inline-block;
  font-size: 12px; font-weight: 800; letter-spacing: 0.1em;
  color: var(--text-muted); text-transform: uppercase;
  margin-bottom: 12px;
}

/* Feature grid */
.feature-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 24px;
}
.feature-card {
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: var(--radius-md);
  padding: 28px;
  display: flex; flex-direction: column;
  gap: 10px;
}
.feature-icon {
  width: 44px; height: 44px;
  background: var(--surface-alt);
  border-radius: 12px;
  display: flex; align-items: center; justify-content: center;
  font-size: 22px;
  margin-bottom: 4px;
}
.feature-card h3 { color: var(--text-primary); }
.feature-card p { color: var(--text-secondary); margin: 0; font-size: 0.95rem; line-height: 1.6; }

/* Pillar (alternating row) */
.pillar {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 56px;
  align-items: center;
  padding: 48px 0;
}
.pillar.reverse > div:first-child { order: 2; }
.pillar h2 { margin-bottom: 18px; }
.pillar p.body {
  font-size: 1.1rem;
  color: var(--text-secondary);
  line-height: 1.7;
}
.pillar-illustration {
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: var(--radius-lg);
  padding: 32px;
  min-height: 280px;
  display: flex; align-items: center; justify-content: center;
  text-align: center;
  color: var(--text-muted);
  box-shadow: var(--shadow-sm);
}
.illust-pattern { display: flex; gap: 4px; align-items: flex-end; height: 200px; }
.illust-pattern .col { width: 18px; background: var(--surface-alt); border-radius: 3px; display: flex; align-items: flex-end; }
.illust-pattern .col .night { width: 100%; background: var(--accent); border-radius: 3px; }

/* Pricing */
.pricing-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 20px;
  max-width: 900px;
  margin: 0 auto;
}
.price-card {
  background: var(--surface);
  border: 1.5px solid var(--border);
  border-radius: var(--radius-md);
  padding: 28px 24px;
}
.price-card.featured {
  border-color: var(--cta);
  box-shadow: var(--shadow-md);
  transform: scale(1.02);
}
.price-card h4 {
  font-size: 14px; font-weight: 800; color: var(--text-muted); text-transform: uppercase; letter-spacing: 0.08em;
  margin-bottom: 8px;
}
.price-card .price { font-size: 2.4rem; font-weight: 900; letter-spacing: -0.02em; }
.price-card .price small { font-size: 0.9rem; font-weight: 600; color: var(--text-muted); }
.price-card ul { padding-left: 18px; margin: 16px 0; color: var(--text-secondary); font-size: 0.95rem; }
.price-card li { margin: 6px 0; }
.price-tag {
  display: inline-block; background: var(--hero-bg); color: var(--hero);
  padding: 4px 10px; border-radius: var(--radius-pill);
  font-size: 11px; font-weight: 800; letter-spacing: 0.04em;
  margin-bottom: 8px;
}

/* CTA strip */
.cta-strip {
  background: var(--text-primary);
  color: var(--surface);
  padding: 80px 0;
  text-align: center;
}
.cta-strip h2 { color: var(--surface); }
.cta-strip p { color: rgba(255,255,255,0.8); font-size: 1.15rem; max-width: 560px; margin: 0 auto 24px; }
.cta-strip .btn-primary {
  background: var(--cta);
  color: var(--surface);
}
.cta-strip .btn-primary:hover { background: var(--cta-deep); }

/* Footer */
footer.site {
  padding: 60px 0 40px;
  background: var(--surface-alt);
  color: var(--text-muted);
  font-size: 14px;
}
.footer-grid { display: grid; grid-template-columns: 2fr 1fr 1fr 1fr; gap: 40px; }
.footer-grid h5 { font-size: 12px; font-weight: 800; color: var(--text-primary); text-transform: uppercase; letter-spacing: 0.08em; margin: 0 0 12px; }
.footer-grid ul { list-style: none; padding: 0; margin: 0; }
.footer-grid li { margin: 6px 0; }
.footer-grid a { color: var(--text-secondary); }
.footer-bottom { margin-top: 48px; padding-top: 24px; border-top: 1px solid var(--border); display: flex; justify-content: space-between; flex-wrap: wrap; gap: 12px; }

/* Legal pages */
.legal {
  background: var(--surface);
  padding: 80px 0;
}
.legal .container { max-width: 760px; }
.legal h1 { font-size: 2.2rem; margin-bottom: 8px; }
.legal .updated { color: var(--text-muted); font-size: 14px; margin-bottom: 40px; }
.legal h2 { font-size: 1.4rem; margin-top: 36px; margin-bottom: 12px; }
.legal h3 { font-size: 1.1rem; margin-top: 22px; margin-bottom: 8px; }
.legal p, .legal li { color: var(--text-secondary); line-height: 1.7; }
.legal ul { padding-left: 22px; }
.legal li { margin: 6px 0; }
.legal strong { color: var(--text-primary); }

/* Hero bullet list */
.hero-bullets {
  list-style: none;
  padding: 0;
  margin: 0 0 28px 0;
  display: grid;
  gap: 8px;
}
.hero-bullets li {
  font-size: 0.97rem;
  color: var(--text-secondary);
  padding-left: 28px;
  position: relative;
  line-height: 1.5;
}
.hero-bullets li::before {
  content: '✓';
  position: absolute; left: 0; top: 0;
  width: 20px; height: 20px;
  background: var(--cta);
  color: var(--surface);
  border-radius: 50%;
  font-size: 11px;
  font-weight: 800;
  display: flex; align-items: center; justify-content: center;
}
.hero-trust {
  font-size: 13px;
  color: var(--text-muted);
  margin-top: 18px;
}

/* Hero phones — two overlapping mockups */
.hero-phones {
  position: relative;
  height: 720px;
  display: flex;
  align-items: center;
  justify-content: center;
}
.phone-back {
  position: absolute;
  top: 30px;
  left: -20px;
  transform: rotate(-6deg);
  opacity: 0.85;
}
.phone-front {
  position: absolute;
  top: 80px;
  right: -20px;
  transform: rotate(4deg);
  z-index: 2;
}

/* Trust bar */
.trust-bar {
  background: var(--surface);
  padding: 32px 0;
  border-top: 1px solid var(--border);
  border-bottom: 1px solid var(--border);
  text-align: center;
}
.trust-bar p {
  font-size: 14px;
  color: var(--text-muted);
  font-weight: 600;
  margin-bottom: 16px;
  text-transform: uppercase;
  letter-spacing: 0.06em;
}
.trust-row {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: 12px;
}
.trust-pill {
  background: var(--surface-alt);
  border: 1px solid var(--border);
  border-radius: var(--radius-pill);
  padding: 8px 16px;
  font-size: 13px;
  font-weight: 600;
  color: var(--text-secondary);
}

/* Section sub */
.section-sub {
  color: var(--text-secondary);
  font-size: 1.05rem;
  line-height: 1.6;
  margin-top: 8px;
}

/* Feature stat tag */
.feature-stat {
  margin-top: 8px;
  font-size: 12px;
  font-weight: 700;
  color: var(--accent-deep);
  background: var(--surface-alt);
  padding: 6px 12px;
  border-radius: var(--radius-pill);
  align-self: flex-start;
}

/* Use-case grid */
.use-grid {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 24px;
  max-width: 980px;
  margin: 0 auto;
}
.use-card {
  background: var(--surface);
  border: 1px solid var(--border);
  border-left: 4px solid var(--hero);
  border-radius: var(--radius-md);
  padding: 28px;
}
.use-tag {
  display: inline-block;
  background: var(--hero-bg);
  color: var(--hero);
  font-size: 11px;
  font-weight: 800;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  padding: 4px 10px;
  border-radius: var(--radius-pill);
  margin-bottom: 14px;
}
.use-card h3 {
  font-size: 1.2rem;
  margin-bottom: 8px;
  line-height: 1.3;
}
.use-card p {
  color: var(--text-secondary);
  margin: 0;
  font-size: 0.97rem;
  line-height: 1.6;
}

/* Comparison table */
.compare-table-wrap { overflow-x: auto; margin-top: 32px; }
.compare-table {
  width: 100%;
  border-collapse: separate;
  border-spacing: 0;
  background: var(--surface);
  border-radius: var(--radius-md);
  overflow: hidden;
  box-shadow: var(--shadow-sm);
}
.compare-table th, .compare-table td {
  padding: 16px 18px;
  border-bottom: 1px solid var(--border);
  text-align: left;
}
.compare-table thead th {
  background: var(--surface-alt);
  font-weight: 800;
  font-size: 14px;
  color: var(--text-secondary);
  letter-spacing: 0.02em;
}
.compare-table thead th.us {
  background: var(--cta);
  color: var(--surface);
  display: flex; align-items: center; gap: 8px;
}
.compare-table thead th.us .brand-mark {
  background: var(--surface);
}
.compare-table thead th.us .brand-mark::after {
  background: var(--cta);
}
.compare-table tbody tr:last-child td { border-bottom: none; }
.compare-table tbody td {
  font-size: 14px;
  color: var(--text-primary);
}
.compare-table tbody td.yes {
  color: var(--cta-deep);
  font-weight: 800;
  font-size: 18px;
}
.compare-table tbody td.no {
  color: var(--text-muted);
  font-weight: 600;
}
.compare-table tbody td.meh {
  color: var(--warning);
  font-weight: 700;
  font-size: 13px;
}
.table-foot {
  margin-top: 16px;
  text-align: center;
  font-size: 13px;
  color: var(--text-muted);
  font-style: italic;
}

/* Quote / testimonial cards */
.quote-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 24px;
}
.quote-card {
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: var(--radius-md);
  padding: 28px;
  display: flex;
  flex-direction: column;
  gap: 14px;
}
.quote-stars { color: #E8B644; font-size: 16px; letter-spacing: 0.1em; }
.quote-card p {
  font-size: 1rem;
  line-height: 1.6;
  color: var(--text-primary);
  font-style: italic;
  margin: 0;
}
.quote-by {
  display: flex;
  align-items: center;
  gap: 12px;
  margin-top: auto;
  padding-top: 8px;
}
.quote-avatar {
  width: 40px; height: 40px;
  border-radius: 50%;
  display: flex; align-items: center; justify-content: center;
  color: white;
  font-weight: 800;
}
.quote-name { font-weight: 700; color: var(--text-primary); font-size: 14px; }
.quote-role { font-size: 12px; color: var(--text-muted); }

/* Pricing extras */
.price-card .price-sub {
  font-size: 13px;
  color: var(--text-muted);
  margin-bottom: 12px;
}
.btn-block {
  display: block;
  text-align: center;
  margin-top: 16px;
}
.pricing-foot {
  text-align: center;
  font-size: 13px;
  color: var(--text-muted);
  margin-top: 32px;
  max-width: 640px;
  margin-left: auto;
  margin-right: auto;
}

/* FAQ */
.faq-list {
  max-width: 760px;
  margin: 0 auto;
  display: grid;
  gap: 10px;
}
.faq-list details {
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: var(--radius-md);
  padding: 20px 24px;
}
.faq-list details[open] { border-color: var(--accent); }
.faq-list summary {
  font-weight: 700;
  font-size: 1rem;
  cursor: pointer;
  color: var(--text-primary);
  list-style: none;
  display: flex;
  justify-content: space-between;
  align-items: center;
}
.faq-list summary::-webkit-details-marker { display: none; }
.faq-list summary::after {
  content: '+';
  font-size: 22px;
  color: var(--accent);
  font-weight: 400;
  transition: transform 0.15s ease;
}
.faq-list details[open] summary::after { content: '−'; }
.faq-list details p {
  margin: 12px 0 0 0;
  color: var(--text-secondary);
  line-height: 1.6;
  font-size: 0.97rem;
}

/* CTA form */
.cta-form {
  display: flex;
  gap: 8px;
  max-width: 520px;
  margin: 0 auto 12px;
  flex-wrap: wrap;
  justify-content: center;
}
.cta-form input {
  flex: 1;
  min-width: 220px;
  padding: 14px 18px;
  background: rgba(255,255,255,0.1);
  border: 1.5px solid rgba(255,255,255,0.25);
  color: var(--surface);
  border-radius: var(--radius-pill);
  font-size: 16px;
  outline: none;
}
.cta-form input::placeholder { color: rgba(255,255,255,0.55); }
.cta-form input:focus { border-color: var(--cta); }
.cta-foot { font-size: 12px; color: rgba(255,255,255,0.55); margin: 0; }

.footer-tagline { margin-top: 12px; color: var(--text-muted); max-width: 320px; font-size: 14px; line-height: 1.6; }

/* Responsive */
@media (max-width: 900px) {
  .hero-grid { grid-template-columns: 1fr; }
  .hero-phones { height: auto; min-height: 560px; padding-top: 24px; }
  .phone-frame { width: 240px; height: 500px; }
  .phone-back { position: relative; top: 0; left: 0; transform: rotate(-3deg); margin-bottom: -120px; }
  .phone-front { position: relative; top: 0; right: 0; transform: rotate(2deg); }
  .feature-grid { grid-template-columns: 1fr; }
  .pillar { grid-template-columns: 1fr; gap: 28px; }
  .pillar.reverse > div:first-child { order: 0; }
  .pricing-grid { grid-template-columns: 1fr; }
  .price-card.featured { transform: none; }
  .footer-grid { grid-template-columns: 1fr 1fr; gap: 24px; }
  .nav-links { display: none; }
  .use-grid { grid-template-columns: 1fr; }
  .quote-grid { grid-template-columns: 1fr; }
  .compare-table { font-size: 13px; }
  .compare-table th, .compare-table td { padding: 12px 10px; }
}
