/*
 * Content Sections — Apple-Inspired Design
 * ==========================================
 * Comprehensive content redesign for all 17 pages.
 * Covers: calculator content, prose, tables, FAQs,
 * callout boxes, about/contact/privacy/terms pages.
 *
 * Design language: Apple editorial + iOS Human Interface Guidelines
 *  – SF-style large display headings
 *  – Generous white space with purposeful density
 *  – Subtle color coding without noise
 *  – Fluid micro-animations on scroll
 */

/* ═══════════════════════════════════════════════════════════
   READING PROGRESS BAR — thin iOS-style top stripe
   ═══════════════════════════════════════════════════════════ */

#reading-progress {
  position: fixed;
  top: 0;
  left: 0;
  width: 0%;
  height: 3px;
  background: linear-gradient(90deg, #007AFF 0%, #34C3FF 100%);
  z-index: 9999;
  transition: width 0.1s linear;
  pointer-events: none;
  border-radius: 0 2px 2px 0;
}

/* ═══════════════════════════════════════════════════════════
   CONTENT SECTION RHYTHM
   ═══════════════════════════════════════════════════════════ */

.content-section {
  padding: 72px 0;
}

.content-section + .content-section {
  padding-top: 0;
}

.content-section--alt {
  background: #F7F9FC;
  padding: 72px 0;
}

.content-section--alt + .content-section--alt {
  border-top: 1px solid rgba(0,0,0,0.05);
}

/* ═══════════════════════════════════════════════════════════
   SECTION HEADINGS — Apple editorial style
   ═══════════════════════════════════════════════════════════ */

.content-section h2,
.prose h2 {
  font-size: clamp(1.5rem, 3vw, 2rem);
  font-weight: 700;
  letter-spacing: -0.03em;
  line-height: 1.15;
  color: #1C1C1E;
  margin-bottom: 18px;
  margin-top: 56px;
  padding-bottom: 14px;
  border-bottom: 1px solid rgba(0,0,0,0.07);
  position: relative;
}

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

/* Accent line on h2 */
.content-section h2::after,
.prose h2::after {
  content: '';
  position: absolute;
  bottom: -1px;
  left: 0;
  width: 48px;
  height: 2px;
  background: #007AFF;
  border-radius: 2px;
}

.content-section h3,
.prose h3 {
  font-size: clamp(1.1rem, 2vw, 1.3125rem);
  font-weight: 600;
  letter-spacing: -0.02em;
  line-height: 1.3;
  color: #1C1C1E;
  margin-bottom: 12px;
  margin-top: 44px;
}

.content-section h4,
.prose h4 {
  font-size: 1rem;
  font-weight: 600;
  color: #1C1C1E;
  margin-bottom: 8px;
  margin-top: 28px;
}

/* ═══════════════════════════════════════════════════════════
   BODY TYPOGRAPHY
   ═══════════════════════════════════════════════════════════ */

.content-section p,
.prose p {
  font-size: 1rem;
  line-height: 1.8;
  color: #3C3C43;
  margin-bottom: 18px;
}

.content-section p:last-child,
.prose p:last-child {
  margin-bottom: 0;
}

/* Opening paragraph — slightly larger */
.content-section > .container > p:first-of-type,
.content-section > .container > .container--narrow > p:first-of-type {
  font-size: 1.0625rem;
  color: #3C3C43;
}

/* Bold inline */
.content-section strong,
.prose strong {
  font-weight: 700;
  color: #1C1C1E;
}

/* Links in content */
.content-section a,
.prose a {
  color: #007AFF;
  font-weight: 500;
  text-decoration: none;
  border-bottom: 1px solid rgba(0,122,255,0.3);
  transition: border-color 0.2s ease, color 0.2s ease;
}

.content-section a:hover,
.prose a:hover {
  color: #0056CC;
  border-bottom-color: rgba(0,86,204,0.6);
}

/* ═══════════════════════════════════════════════════════════
   KEY STAT CALLOUT — auto-detect lead sentences in bold
   Applied to first <strong> that opens a <p>
   ═══════════════════════════════════════════════════════════ */

/* Paragraphs with bold — bold stays inline, never block */
.content-section p > strong,
.prose p > strong {
  display: inline;
  font-weight: 700;
  color: #1C1C1E;
}

/* ═══════════════════════════════════════════════════════════
   HIGHLIGHT BOX — Apple "blue callout" style
   ═══════════════════════════════════════════════════════════ */

.highlight-box {
  background: rgba(0,122,255,0.05);
  border: 1px solid rgba(0,122,255,0.15);
  border-left: 3px solid #007AFF;
  border-radius: 0 14px 14px 0;
  padding: 18px 22px;
  margin: 28px 0;
}

.highlight-box p {
  font-size: 0.9375rem;
  color: #1C1C1E;
  margin: 0;
  line-height: 1.65;
}

.highlight-box strong {
  color: #007AFF;
}

/* Warning / caution variant */
.highlight-box--warning {
  background: rgba(255,149,0,0.05);
  border-color: rgba(255,149,0,0.2);
  border-left-color: #FF9500;
}

.highlight-box--warning strong { color: #C07000; }

/* ═══════════════════════════════════════════════════════════
   STAT CALLOUT CARDS — inline with content flow
   Added by JS to paragraphs that contain numbers + "%" or "×"
   ═══════════════════════════════════════════════════════════ */

.stat-callout {
  display: flex;
  align-items: center;
  gap: 20px;
  background: #FFFFFF;
  border: 1px solid rgba(0,0,0,0.07);
  border-radius: 16px;
  padding: 20px 24px;
  margin: 28px 0;
  box-shadow: 0 2px 12px rgba(0,0,0,0.05);
}

.stat-callout-number {
  font-size: 2.5rem;
  font-weight: 800;
  color: #007AFF;
  letter-spacing: -0.04em;
  line-height: 1;
  flex-shrink: 0;
  min-width: 80px;
  text-align: center;
}

.stat-callout-text {
  font-size: 0.9375rem;
  line-height: 1.6;
  color: #3C3C43;
}

.stat-callout-text strong { color: #1C1C1E; }

/* ═══════════════════════════════════════════════════════════
   DATA TABLES — Apple comparison table aesthetic
   ═══════════════════════════════════════════════════════════ */

.table-wrap {
  border-radius: 16px;
  border: 1px solid rgba(0,0,0,0.08);
  overflow: hidden;
  box-shadow:
    0 1px 0 rgba(255,255,255,0.8) inset,
    0 2px 16px rgba(0,0,0,0.05);
  margin: 28px 0;
}

.table-annotation {
  font-size: 0.8125rem;
  color: rgba(60,60,67,0.5);
  font-style: normal;
  font-weight: 500;
  margin-bottom: 0;
  padding: 12px 18px 10px;
  background: #F8FAFD;
  border-bottom: 1px solid rgba(0,0,0,0.06);
  letter-spacing: 0.01em;
}

.data-table {
  width: 100%;
  border-collapse: collapse;
}

.data-table thead tr {
  background: #F2F5FA;
}

.data-table th {
  padding: 13px 18px;
  font-size: 0.78rem;
  font-weight: 700;
  color: #6C6C70;
  text-transform: uppercase;
  letter-spacing: 0.06em;
  border-bottom: 1px solid rgba(0,0,0,0.08);
  text-align: left;
  white-space: nowrap;
}

.data-table th:first-child { padding-left: 20px; }

.data-table td {
  padding: 13px 18px;
  font-size: 0.9375rem;
  color: #3C3C43;
  border-bottom: 1px solid rgba(0,0,0,0.045);
  vertical-align: middle;
}

.data-table td:first-child {
  font-weight: 600;
  color: #1C1C1E;
  padding-left: 20px;
}

.data-table tr:last-child td { border-bottom: none; }

.data-table tbody tr:nth-child(even) td {
  background: rgba(0,0,0,0.013);
}

.data-table tbody tr {
  transition: background 0.15s ease;
}

.data-table tbody tr:hover td {
  background: rgba(0,122,255,0.04) !important;
}

/* Highlighted row variant */
.data-table tr.highlight-row td {
  background: rgba(0,122,255,0.07) !important;
  font-weight: 600;
  color: #007AFF;
}

/* Responsive table scroll */
@media (max-width: 680px) {
  .table-wrap { border-radius: 12px; }
  .data-table th,
  .data-table td { padding: 11px 14px; font-size: 0.875rem; }
  .data-table td:first-child { padding-left: 14px; }
  .data-table th:first-child { padding-left: 14px; }
}

/* ═══════════════════════════════════════════════════════════
   CONTENT HEADER — centred section intros
   ═══════════════════════════════════════════════════════════ */

.content-header {
  text-align: center;
  max-width: 600px;
  margin: 0 auto 52px;
}

.content-header h2 {
  border-bottom: none;
  margin-top: 0;
  padding-bottom: 0;
}

.content-header h2::after { display: none; }

.content-header p {
  font-size: 1.0625rem;
  color: #6C6C70;
  line-height: 1.7;
  margin-top: 12px;
}

/* ═══════════════════════════════════════════════════════════
   FAQ — expanded iOS disclosure style
   ═══════════════════════════════════════════════════════════ */

.faq-list {
  background: #FFFFFF;
  border-radius: 18px;
  overflow: hidden;
  box-shadow:
    0 0 0 1px rgba(0,0,0,0.07),
    0 4px 20px rgba(0,0,0,0.05);
  max-width: 760px;
  margin: 0 auto;
}

.faq-item {
  border-bottom: 1px solid rgba(0,0,0,0.06);
  overflow: hidden;
}

.faq-item:last-child { border-bottom: none; }

/* FAQ open state — highlight */
.faq-item:has(details[open]) {
  background: rgba(0,122,255,0.02);
}

.faq-question {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 20px 22px;
  cursor: pointer;
  font-size: 0.9625rem;
  font-weight: 600;
  color: #1C1C1E;
  gap: 16px;
  user-select: none;
  list-style: none;
  transition: background 0.15s ease;
  -webkit-tap-highlight-color: transparent;
}

.faq-question:hover { background: rgba(0,0,0,0.02); }
.faq-question::-webkit-details-marker { display: none; }

.faq-icon {
  width: 26px;
  height: 26px;
  border-radius: 50%;
  background: rgba(0,122,255,0.1);
  color: #007AFF;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 1.125rem;
  font-weight: 300;
  flex-shrink: 0;
  transition: transform 0.28s cubic-bezier(0.34,1.4,0.64,1), background 0.2s ease;
  line-height: 1;
}

details[open] .faq-icon {
  transform: rotate(45deg);
  background: rgba(0,122,255,0.18);
  color: #007AFF;
}

.faq-answer {
  padding: 0 22px 20px 22px;
  animation: faq-slide-down 0.28s cubic-bezier(0.22,1,0.36,1) both;
}

@keyframes faq-slide-down {
  from { opacity: 0; transform: translateY(-6px); }
  to   { opacity: 1; transform: translateY(0); }
}

.faq-answer p {
  font-size: 0.9375rem;
  line-height: 1.75;
  color: #3C3C43;
  margin: 0;
}

.faq-answer p strong {
  color: #1C1C1E;
  display: inline; /* override the block display for inline bold in answers */
}

/* Source citation chip at end of FAQ answer */
.faq-source {
  display: inline-flex;
  align-items: center;
  gap: 4px;
  font-size: 0.74rem;
  font-weight: 600;
  color: rgba(60,60,67,0.5);
  background: rgba(0,0,0,0.04);
  border: 1px solid rgba(0,0,0,0.07);
  border-radius: 100px;
  padding: 2px 8px;
  margin-top: 10px;
  margin-left: 4px;
}

/* ═══════════════════════════════════════════════════════════
   INFO CARDS — Apple Health card aesthetic
   ═══════════════════════════════════════════════════════════ */

.info-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(240px, 1fr));
  gap: 18px;
}

.info-card {
  background: #FFFFFF;
  border: 1px solid rgba(0,0,0,0.07);
  border-radius: 20px;
  padding: 26px 24px;
  box-shadow:
    0 1px 0 rgba(255,255,255,0.9) inset,
    0 2px 12px rgba(0,0,0,0.05);
  transition:
    transform 0.28s cubic-bezier(0.34,1.3,0.64,1),
    box-shadow 0.25s ease;
  position: relative;
  overflow: hidden;
}

/* Colour strip top */
.info-card::before {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  height: 3px;
}

.info-card:nth-child(1)::before { background: #007AFF; }
.info-card:nth-child(2)::before { background: #FF9500; }
.info-card:nth-child(3)::before { background: #FF3B30; }
.info-card:nth-child(4)::before { background: #34C759; }

.info-card:hover {
  transform: translateY(-5px);
  box-shadow:
    0 0 0 1px rgba(0,122,255,0.08),
    0 8px 32px rgba(0,0,0,0.1);
}

.info-card-icon {
  font-size: 2.25rem;
  margin-bottom: 14px;
  line-height: 1;
}

.info-card h3 {
  font-size: 1rem;
  font-weight: 700;
  color: #1C1C1E;
  margin: 0 0 8px 0 !important; /* override mt-32 */
  letter-spacing: -0.01em;
}

.info-card p {
  font-size: 0.875rem;
  line-height: 1.65;
  color: #6C6C70;
  margin: 0;
}

/* ═══════════════════════════════════════════════════════════
   PROSE — long-form editorial content (about/privacy/terms)
   ═══════════════════════════════════════════════════════════ */

.prose {
  max-width: 680px;
}

.prose h2 {
  font-size: clamp(1.25rem, 2.5vw, 1.625rem);
  font-weight: 700;
  letter-spacing: -0.025em;
  color: #1C1C1E;
  margin-top: 52px;
  margin-bottom: 14px;
  padding-bottom: 12px;
  border-bottom: 1px solid rgba(0,0,0,0.07);
  position: relative;
}

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

.prose h2::after {
  content: '';
  position: absolute;
  bottom: -1px;
  left: 0;
  width: 36px;
  height: 2px;
  background: #007AFF;
  border-radius: 2px;
}

.prose h3 {
  font-size: 1.0625rem;
  font-weight: 600;
  letter-spacing: -0.015em;
  color: #1C1C1E;
  margin-top: 32px;
  margin-bottom: 10px;
}

.prose ul,
.prose ol {
  padding-left: 0;
  margin: 20px 0 24px;
  list-style: none;
}

.prose ul li,
.prose ol li {
  position: relative;
  padding: 10px 16px 10px 44px;
  font-size: 0.9375rem;
  line-height: 1.65;
  color: #3C3C43;
  background: rgba(0,0,0,0.015);
  border-radius: 10px;
  margin-bottom: 6px;
  border: 1px solid rgba(0,0,0,0.05);
}

/* Custom bullet */
.prose ul li::before {
  content: '';
  position: absolute;
  left: 18px;
  top: 50%;
  transform: translateY(-50%);
  width: 6px;
  height: 6px;
  background: #007AFF;
  border-radius: 50%;
}

/* Numbered list */
.prose ol {
  counter-reset: prose-counter;
}

.prose ol li {
  counter-increment: prose-counter;
}

.prose ol li::before {
  content: counter(prose-counter);
  position: absolute;
  left: 14px;
  top: 10px;
  width: 20px;
  height: 20px;
  background: #007AFF;
  color: white;
  border-radius: 50%;
  font-size: 0.72rem;
  font-weight: 700;
  display: flex;
  align-items: center;
  justify-content: center;
  line-height: 1;
}

/* ═══════════════════════════════════════════════════════════
   PAGE HERO — corporate pages
   ═══════════════════════════════════════════════════════════ */

.page-hero {
  background:
    radial-gradient(ellipse 100% 60% at 70% -10%, rgba(0,122,255,0.06) 0%, transparent 55%),
    linear-gradient(160deg, #EEF6FF 0%, #F5FAFF 100%);
  padding: 48px 0 56px;
  border-bottom: 1px solid rgba(0,0,0,0.06);
}

.page-hero h1 {
  font-size: clamp(1.875rem, 4vw, 2.75rem);
  font-weight: 700;
  letter-spacing: -0.03em;
  color: #1C1C1E;
  margin-bottom: 10px;
  line-height: 1.1;
}

.page-hero .meta-desc {
  font-size: 1.0625rem;
  color: #6C6C70;
  max-width: 560px;
  line-height: 1.65;
  margin-top: 8px;
}

/* ═══════════════════════════════════════════════════════════
   ABOUT PAGE — mission strip + formula reference cards
   ═══════════════════════════════════════════════════════════ */

/* Mission stat strip */
.about-stats {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(160px, 1fr));
  gap: 1px;
  background: rgba(0,0,0,0.07);
  border: 1px solid rgba(0,0,0,0.07);
  border-radius: 18px;
  overflow: hidden;
  margin: 40px 0 52px;
}

.about-stat {
  background: #FFFFFF;
  padding: 24px 20px;
  text-align: center;
  transition: background 0.2s ease;
}

.about-stat:hover { background: #F8FAFD; }

.about-stat-num {
  font-size: 2.125rem;
  font-weight: 800;
  color: #007AFF;
  letter-spacing: -0.04em;
  line-height: 1;
  margin-bottom: 4px;
}

.about-stat-label {
  font-size: 0.8rem;
  font-weight: 600;
  color: #6C6C70;
  letter-spacing: 0.01em;
}

/* Formula reference list — styled like App Store app info rows */
.formula-list {
  list-style: none;
  padding: 0;
  margin: 0;
  border: 1px solid rgba(0,0,0,0.08);
  border-radius: 16px;
  overflow: hidden;
  background: #FFFFFF;
  box-shadow: 0 2px 12px rgba(0,0,0,0.05);
}

.formula-list li {
  display: flex;
  align-items: flex-start;
  gap: 12px;
  padding: 14px 18px;
  border-bottom: 1px solid rgba(0,0,0,0.05);
  font-size: 0.9rem;
  color: #3C3C43;
  line-height: 1.5;
  background: none;
  border-radius: 0;
  position: static;
  margin: 0;
}

.formula-list li::before { display: none; }

.formula-list li:last-child { border-bottom: none; }

.formula-list li:hover { background: rgba(0,122,255,0.025); }

.formula-list strong {
  color: #1C1C1E;
  font-weight: 600;
  min-width: 160px;
  flex-shrink: 0;
  font-size: 0.875rem;
}

/* ═══════════════════════════════════════════════════════════
   CONTACT PAGE — enhanced form + info layout
   ═══════════════════════════════════════════════════════════ */

.contact-form-wrap {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 60px;
  align-items: start;
}

.contact-form-card {
  background: #FFFFFF;
  border: 1px solid rgba(0,0,0,0.07);
  border-radius: 20px;
  padding: 32px;
  box-shadow: 0 4px 20px rgba(0,0,0,0.06);
}

.contact-section-title {
  font-size: 0.75rem;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.08em;
  color: #007AFF;
  margin-bottom: 6px;
}

.contact-form h2 {
  font-size: 1.5rem;
  font-weight: 700;
  letter-spacing: -0.025em;
  color: #1C1C1E;
  margin: 0 0 6px;
  border: none;
  padding: 0;
}

.contact-form h2::after { display: none; }

.contact-form .form-group { margin-bottom: 18px; }

.contact-form select.form-input {
  background: #F8FAFC;
  cursor: pointer;
}

.btn-submit {
  display: block;
  width: 100%;
  padding: 16px 24px;
  background: #007AFF;
  background-image: linear-gradient(180deg, rgba(255,255,255,0.12) 0%, transparent 100%);
  color: white;
  font-weight: 700;
  font-size: 1rem;
  border: none;
  border-radius: 12px;
  cursor: pointer;
  letter-spacing: -0.01em;
  box-shadow: 0 4px 16px rgba(0,122,255,0.4);
  transition: transform 0.18s cubic-bezier(0.34,1.56,0.64,1), box-shadow 0.2s ease;
}

.btn-submit:hover {
  transform: translateY(-2px);
  box-shadow: 0 8px 24px rgba(0,122,255,0.45);
}

.btn-submit:active {
  transform: scale(0.98);
  transition-duration: 0.08s;
}

/* Contact info cards */
.contact-info-grid {
  display: flex;
  flex-direction: column;
  gap: 14px;
}

.contact-info-card {
  display: flex;
  align-items: flex-start;
  gap: 16px;
  background: #F8FAFD;
  border: 1px solid rgba(0,0,0,0.07);
  border-radius: 16px;
  padding: 18px 20px;
  transition: background 0.2s ease;
}

.contact-info-card:hover { background: #EFF5FF; }

.contact-info-icon {
  font-size: 1.5rem;
  flex-shrink: 0;
  width: 40px;
  height: 40px;
  background: rgba(0,122,255,0.1);
  border-radius: 10px;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 1.125rem;
}

.contact-info-content h3 {
  font-size: 0.9rem;
  font-weight: 700;
  color: #1C1C1E;
  margin: 0 0 3px;
}

.contact-info-content p {
  font-size: 0.875rem;
  color: #6C6C70;
  margin: 0;
  line-height: 1.5;
}

/* ═══════════════════════════════════════════════════════════
   PRIVACY / TERMS — document page layout with TOC
   ═══════════════════════════════════════════════════════════ */

.legal-layout {
  display: grid;
  grid-template-columns: 220px 1fr;
  gap: 60px;
  align-items: start;
}

/* Sticky table of contents */
.legal-toc {
  position: sticky;
  top: 84px; /* below 64px header */
}

.legal-toc-title {
  font-size: 0.72rem;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.08em;
  color: rgba(60,60,67,0.45);
  margin-bottom: 10px;
}

.legal-toc-list {
  list-style: none;
  padding: 0;
  margin: 0;
  background: #F8FAFD;
  border: 1px solid rgba(0,0,0,0.07);
  border-radius: 14px;
  overflow: hidden;
}

.legal-toc-list li { border-bottom: none; margin: 0; padding: 0; background: none; }
.legal-toc-list li::before { display: none; }

.legal-toc-list a {
  display: block;
  padding: 10px 14px;
  font-size: 0.8375rem;
  font-weight: 500;
  color: #3C3C43;
  text-decoration: none;
  border: none;
  border-bottom: 1px solid rgba(0,0,0,0.05);
  transition: background 0.15s ease, color 0.15s ease;
  line-height: 1.4;
}

.legal-toc-list a:hover {
  background: rgba(0,122,255,0.06);
  color: #007AFF;
}

.legal-toc-list a.active {
  background: rgba(0,122,255,0.08);
  color: #007AFF;
  font-weight: 600;
}

.legal-toc-list li:last-child a { border-bottom: none; }

/* Section anchor targets */
.prose h2[id] {
  scroll-margin-top: 84px; /* header offset */
}

/* ═══════════════════════════════════════════════════════════
   BACK-TO-CALCULATOR FLOATING CHIP
   ═══════════════════════════════════════════════════════════ */

#back-to-calc {
  position: fixed;
  bottom: 24px;
  right: 24px;
  z-index: 100;
  display: none; /* shown by JS after scroll */
  align-items: center;
  gap: 8px;
  background: rgba(0,0,0,0.78);
  backdrop-filter: blur(16px);
  -webkit-backdrop-filter: blur(16px);
  color: #FFFFFF;
  font-size: 0.8375rem;
  font-weight: 600;
  padding: 10px 16px;
  border-radius: 100px;
  cursor: pointer;
  border: 1px solid rgba(255,255,255,0.12);
  box-shadow: 0 4px 20px rgba(0,0,0,0.25);
  text-decoration: none;
  animation: pill-appear 0.35s cubic-bezier(0.34,1.4,0.64,1) both;
  transition: transform 0.2s ease, background 0.2s ease;
}

#back-to-calc:hover {
  background: rgba(0,0,0,0.88);
  transform: translateY(-2px);
  border-color: rgba(255,255,255,0.2);
}

#back-to-calc.visible { display: flex; }

@keyframes pill-appear {
  from { opacity: 0; transform: translateY(12px) scale(0.9); }
  to   { opacity: 1; transform: translateY(0) scale(1); }
}

/* ═══════════════════════════════════════════════════════════
   KEY TAKEAWAY BOXES — auto-injected by JS before h3 sections
   ═══════════════════════════════════════════════════════════ */

.key-takeaway {
  background: linear-gradient(135deg, rgba(0,122,255,0.05) 0%, rgba(52,199,89,0.04) 100%);
  border: 1px solid rgba(0,122,255,0.12);
  border-radius: 14px;
  padding: 18px 20px;
  margin: 24px 0;
  display: flex;
  gap: 14px;
  align-items: flex-start;
}

.key-takeaway-icon {
  font-size: 1.25rem;
  flex-shrink: 0;
  margin-top: 1px;
}

.key-takeaway-text {
  font-size: 0.9375rem;
  line-height: 1.65;
  color: #1C1C1E;
  font-weight: 500;
}

/* ═══════════════════════════════════════════════════════════
   SECTION — general utility section on corporate pages
   ═══════════════════════════════════════════════════════════ */

.section {
  padding: 64px 0 72px;
}

/* ═══════════════════════════════════════════════════════════
   MOBILE RESPONSIVE
   ═══════════════════════════════════════════════════════════ */

@media (max-width: 900px) {
  .legal-layout { grid-template-columns: 1fr; }
  .legal-toc { display: none; } /* hidden on mobile — TOC in JS becomes accordion */
  .contact-form-wrap { grid-template-columns: 1fr; gap: 40px; }
}

@media (max-width: 680px) {
  .content-section { padding: 52px 0; }
  .content-section h2,
  .prose h2 { font-size: 1.375rem; }
  .content-section h3,
  .prose h3 { font-size: 1.125rem; }
  .info-grid { grid-template-columns: 1fr; gap: 14px; }
  .about-stats { grid-template-columns: 1fr 1fr; }
  .contact-form-card { padding: 24px 20px; }
  .faq-question { padding: 16px 18px; }
  .faq-answer { padding: 0 18px 16px; }
  #back-to-calc { bottom: 80px; right: 16px; }
  .formula-list strong { min-width: 120px; }
}

@media (max-width: 440px) {
  .about-stats { grid-template-columns: 1fr; }
  .stat-callout { flex-direction: column; gap: 10px; text-align: center; }
}
