/* ============================================================
   INNER PAGES — shared components
   ============================================================ */

/* Page hero banner (small, for non-home pages) */
.page-hero {
  padding: var(--space-6) 0 var(--space-5);
  background: var(--color-bg-alt);
  border-bottom: 1px solid var(--color-border);
}
.page-hero .container { max-width: 760px; text-align: center; }
.page-hero h1 {
  font-size: var(--fs-3xl);
  font-weight: 800;
  letter-spacing: -0.02em;
  line-height: 1.15;
  margin: var(--space-2) 0 var(--space-2);
}
.page-hero p {
  font-size: var(--fs-md);
  color: var(--color-text-secondary);
  max-width: 560px;
  margin: 0 auto;
}
.page-hero .eyebrow { margin-left: auto; margin-right: auto; }
.breadcrumb {
  display: flex;
  justify-content: center;
  gap: 8px;
  font-size: var(--fs-xs);
  color: var(--color-text-secondary);
  margin-bottom: var(--space-2);
}
.breadcrumb a:hover { color: var(--color-primary); }

/* Two-column content row: text + visual, alternating */
.content-row {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: var(--space-6);
  align-items: center;
}
.content-row.reverse .content-visual { order: -1; }
.content-row + .content-row { margin-top: var(--space-7); }
.content-eyebrow { margin-bottom: var(--space-2); }
.content-row h2 { font-size: var(--fs-2xl); font-weight: 800; letter-spacing: -0.02em; margin-bottom: var(--space-2); }
.content-row p { font-size: var(--fs-md); color: var(--color-text-secondary); line-height: 1.7; }
.content-row p + p { margin-top: var(--space-2); }

.content-visual {
  border-radius: var(--radius-lg);
  overflow: hidden;
  aspect-ratio: 4/3;
  display: flex;
  align-items: center;
  justify-content: center;
}

@media (max-width: 900px) {
  .content-row, .content-row.reverse { grid-template-columns: 1fr; }
  .content-row.reverse .content-visual { order: 0; }
}

/* Generic icon-card grid (values, why-different, why-choose-us, safety) */
.icon-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: var(--space-3);
}
.icon-grid.cols-2 { grid-template-columns: repeat(2, 1fr); }
.icon-card {
  background: #fff;
  border: 1px solid var(--color-border);
  border-radius: var(--radius-md);
  padding: var(--space-4);
}
.icon-card .icon-circle {
  width: 52px; height: 52px;
  border-radius: 14px;
  background: rgba(15, 118, 110, 0.08);
  display: flex; align-items: center; justify-content: center;
  margin-bottom: var(--space-2);
}
.icon-card h3 { font-size: var(--fs-md); font-weight: 700; margin-bottom: 8px; }
.icon-card p { font-size: var(--fs-sm); color: var(--color-text-secondary); line-height: 1.65; }

@media (max-width: 900px) { .icon-grid { grid-template-columns: 1fr 1fr; } }
@media (max-width: 560px) { .icon-grid, .icon-grid.cols-2 { grid-template-columns: 1fr; } }

/* Team grid */
.team-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: var(--space-3);
}
.team-card { text-align: center; }
.team-avatar {
  width: 100%;
  aspect-ratio: 1;
  border-radius: var(--radius-md);
  background: linear-gradient(150deg, var(--color-primary), var(--color-secondary));
  margin-bottom: var(--space-2);
  position: relative;
  overflow: hidden;
}
.team-avatar span {
  position: absolute; inset: 0;
  display: flex; align-items: center; justify-content: center;
  font-size: var(--fs-xl); font-weight: 800; color: #fff;
}
.team-card h4 { font-size: var(--fs-sm); font-weight: 700; }
.team-card span.role { font-size: var(--fs-xs); color: var(--color-text-secondary); }

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

/* Stat strip (reused) */
.mini-stats {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: var(--space-3);
  padding: var(--space-4);
  background: var(--color-bg-alt);
  border-radius: var(--radius-lg);
}
.mini-stats div { text-align: center; }
.mini-stats strong { display: block; font-size: var(--fs-xl); font-weight: 800; color: var(--color-primary); }
.mini-stats span { font-size: var(--fs-xs); color: var(--color-text-secondary); }

@media (max-width: 700px) { .mini-stats { grid-template-columns: 1fr 1fr; } }

/* Vertical timeline (detailed how-it-works) */
.timeline { display: flex; flex-direction: column; }
.timeline-item {
  display: grid;
  grid-template-columns: 60px 1fr;
  gap: var(--space-3);
}
.timeline-marker { display: flex; flex-direction: column; align-items: center; }
.timeline-dot {
  width: 44px; height: 44px;
  border-radius: 50%;
  background: var(--color-primary);
  color: #fff;
  font-weight: 800;
  display: flex; align-items: center; justify-content: center;
  flex-shrink: 0;
}
.timeline-line { width: 2px; flex: 1; background: var(--color-border); margin: 6px 0; min-height: 40px; }
.timeline-item:last-child .timeline-line { display: none; }
.timeline-content { padding-bottom: var(--space-5); }
.timeline-content h3 { font-size: var(--fs-lg); font-weight: 700; margin-bottom: 6px; }
.timeline-content p { font-size: var(--fs-sm); color: var(--color-text-secondary); max-width: 520px; line-height: 1.65; }

/* Simple CTA band (reused across inner pages) */
.simple-cta {
  background: linear-gradient(135deg, var(--color-primary), var(--color-primary-dark));
  border-radius: var(--radius-lg);
  padding: var(--space-5);
  text-align: center;
  color: #fff;
}
.simple-cta h2 { font-size: var(--fs-xl); font-weight: 800; margin-bottom: 10px; }
.simple-cta p { font-size: var(--fs-md); opacity: 0.85; margin-bottom: var(--space-3); }
.simple-cta .store-badges { justify-content: center; }

/* Contact page */
.contact-grid {
  display: grid;
  grid-template-columns: 0.9fr 1.1fr;
  gap: var(--space-6);
}
.contact-card {
  background: #fff;
  border: 1px solid var(--color-border);
  border-radius: var(--radius-md);
  padding: var(--space-3);
  display: flex;
  gap: var(--space-2);
  align-items: flex-start;
}
.contact-card + .contact-card { margin-top: var(--space-2); }
.contact-icon {
  width: 44px; height: 44px;
  border-radius: 12px;
  background: rgba(15, 118, 110, 0.08);
  display: flex; align-items: center; justify-content: center;
  flex-shrink: 0;
}
.contact-card h4 { font-size: var(--fs-sm); font-weight: 700; margin-bottom: 4px; }
.contact-card p, .contact-card a { font-size: var(--fs-sm); color: var(--color-text-secondary); }
.contact-card a:hover { color: var(--color-primary); }

.form-field { margin-bottom: var(--space-2); }
.form-field label {
  display: block;
  font-size: var(--fs-xs);
  font-weight: 700;
  margin-bottom: 6px;
  color: var(--color-text);
}
.form-field input, .form-field textarea, .form-field select {
  width: 100%;
  padding: 12px 14px;
  border-radius: 10px;
  border: 1.5px solid var(--color-border);
  font-family: var(--font-base);
  font-size: var(--fs-sm);
  color: var(--color-text);
  background: #fff;
}
.form-field select {
  appearance: none;
  -webkit-appearance: none;
  -moz-appearance: none;
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='%2364748B' stroke-width='2' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpolyline points='6 9 12 15 18 9'%3E%3C/polyline%3E%3C/svg%3E");
  background-repeat: no-repeat;
  background-position: right 14px center;
  background-size: 16px;
  padding-right: 40px;
  cursor: pointer;
}
.form-field .required-mark { color: var(--color-accent); }
.form-field input:focus, .form-field textarea:focus, .form-field select:focus {
  outline: none;
  border-color: var(--color-primary);
}
.form-row { display: grid; grid-template-columns: 1fr 1fr; gap: var(--space-2); }
.contact-form { background: #fff; border: 1px solid var(--color-border); border-radius: var(--radius-lg); padding: var(--space-4); }

@media (max-width: 900px) {
  .contact-grid { grid-template-columns: 1fr; }
  .form-row { grid-template-columns: 1fr; }
}

/* Help Center */
.help-search {
  max-width: 560px;
  margin: 0 auto var(--space-5);
  position: relative;
}
.help-search input {
  width: 100%;
  padding: 16px 20px 16px 48px;
  border-radius: 100px;
  border: 1.5px solid var(--color-border);
  font-family: var(--font-base);
  font-size: var(--fs-sm);
}
.help-search input:focus { outline: none; border-color: var(--color-primary); }
.help-search svg { position: absolute; left: 18px; top: 50%; transform: translateY(-50%); }

.help-topics {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: var(--space-3);
}
.help-topic {
  background: #fff;
  border: 1px solid var(--color-border);
  border-radius: var(--radius-md);
  padding: var(--space-3);
  transition: border-color 0.15s ease, transform 0.15s ease;
}
.help-topic:hover { border-color: var(--color-primary); transform: translateY(-2px); }
.help-topic .icon-circle { width: 44px; height: 44px; border-radius: 12px; background: rgba(15,118,110,0.08); display: flex; align-items: center; justify-content: center; margin-bottom: var(--space-2); }
.help-topic h3 { font-size: var(--fs-md); font-weight: 700; margin-bottom: 6px; }
.help-topic p { font-size: var(--fs-sm); color: var(--color-text-secondary); margin-bottom: 10px; }
.help-topic span.link { font-size: var(--fs-xs); font-weight: 700; color: var(--color-primary); }

@media (max-width: 900px) { .help-topics { grid-template-columns: 1fr 1fr; } }
@media (max-width: 560px) { .help-topics { grid-template-columns: 1fr; } }

/* FAQ accordion (shared — used on Home and the FAQ page) */
.faq-list { display: flex; flex-direction: column; gap: 14px; max-width: 780px; margin: 0 auto; }
.faq-item {
  background: #fff;
  border: 1.5px solid var(--color-border);
  border-radius: var(--radius-md);
  padding: 22px 26px;
  transition: border-color 0.2s ease, box-shadow 0.2s ease;
}
.faq-item:hover { border-color: rgba(15,118,110,0.4); box-shadow: var(--shadow-sm); }
.faq-item[open] { border-color: var(--color-primary); box-shadow: var(--shadow-md); }
.faq-item summary {
  cursor: pointer;
  font-weight: 800;
  font-size: var(--fs-lg);
  letter-spacing: -0.01em;
  list-style: none;
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: var(--space-3);
}
.faq-item summary::-webkit-details-marker { display: none; }
.faq-item summary::after {
  content: '+';
  flex-shrink: 0;
  width: 34px; height: 34px;
  border-radius: 50%;
  background: var(--color-bg-alt);
  color: var(--color-primary);
  font-size: 22px;
  font-weight: 600;
  line-height: 1;
  display: flex; align-items: center; justify-content: center;
  transition: background 0.25s ease, color 0.25s ease, transform 0.25s ease;
}
.faq-item[open] summary::after { content: '−'; background: var(--color-primary); color: #fff; transform: rotate(180deg); }
.faq-item p {
  display: block !important;
  overflow: hidden;
  max-height: 0;
  opacity: 0;
  margin-top: 0;
  font-size: var(--fs-md);
  color: var(--color-text-secondary);
  line-height: 1.75;
  transition: max-height 0.35s ease, opacity 0.3s ease, margin-top 0.3s ease;
}
.faq-item[open] p { max-height: 400px; opacity: 1; margin-top: 16px; }
.faq-item p a { color: var(--color-primary); font-weight: 600; }
.faq-item p a:hover { text-decoration: underline; }

.faq-category-label {
  font-size: var(--fs-xs);
  font-weight: 800;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  color: var(--color-text-secondary);
  margin: var(--space-4) 0 var(--space-2);
}
.faq-category-label:first-child { margin-top: 0; }
.faq-tabs {
  display: flex;
  gap: 10px;
  flex-wrap: wrap;
  justify-content: center;
  margin-bottom: var(--space-4);
}
.faq-tab {
  padding: 9px 18px;
  border-radius: 100px;
  border: 1.5px solid var(--color-border);
  font-size: var(--fs-xs);
  font-weight: 700;
  color: var(--color-text-secondary);
  background: #fff;
  cursor: pointer;
}
.faq-tab.active { background: var(--color-primary); color: #fff; border-color: var(--color-primary); }
.faq-category { margin-bottom: var(--space-5); }
.faq-category h3 { font-size: var(--fs-lg); font-weight: 800; margin-bottom: var(--space-2); }

/* Blog */
.blog-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: var(--space-3);
}
.blog-card-feature { grid-column: span 3; display: grid; grid-template-columns: 1fr 1fr; }
.blog-card {
  background: #fff;
  border: 1px solid var(--color-border);
  border-radius: var(--radius-md);
  overflow: hidden;
  transition: transform 0.15s ease, box-shadow 0.15s ease;
}
.blog-card:hover { transform: translateY(-3px); box-shadow: var(--shadow-md); }
.blog-thumb { aspect-ratio: 16/10; display: flex; align-items: center; justify-content: center; }
.blog-card-feature .blog-thumb { aspect-ratio: auto; height: 100%; }
.blog-card-body { padding: var(--space-3); }
.blog-tag {
  display: inline-block;
  font-size: 11px;
  font-weight: 700;
  letter-spacing: 0.04em;
  text-transform: uppercase;
  color: var(--color-primary);
  margin-bottom: 8px;
}
.blog-card-body h2, .blog-card-body h3 {
  font-weight: 800;
  letter-spacing: -0.01em;
  margin-bottom: 8px;
  color: var(--color-text);
}
.blog-card-body h2 { font-size: var(--fs-xl); line-height: 1.3; }
.blog-card-body h3 { font-size: var(--fs-md); line-height: 1.35; }
.blog-card-body p { font-size: var(--fs-sm); color: var(--color-text-secondary); line-height: 1.6; margin-bottom: 10px; }
.blog-meta { font-size: var(--fs-xs); color: var(--color-text-secondary); font-weight: 600; }

@media (max-width: 900px) {
  .blog-grid { grid-template-columns: 1fr 1fr; }
  .blog-card-feature { grid-column: span 2; grid-template-columns: 1fr; }
}
@media (max-width: 600px) {
  .blog-grid { grid-template-columns: 1fr; }
  .blog-card-feature { grid-column: span 1; }
}

/* Blog article page */
.article-hero {
  padding: var(--space-6) 0 var(--space-4);
  border-bottom: 1px solid var(--color-border);
}
.article-hero .container { max-width: 720px; }
.article-hero h1 { font-size: var(--fs-2xl); font-weight: 800; letter-spacing: -0.02em; line-height: 1.25; margin: var(--space-2) 0; }
.article-meta { display: flex; gap: 14px; align-items: center; font-size: var(--fs-sm); color: var(--color-text-secondary); }
.article-body {
  max-width: 720px;
  margin: 0 auto;
}
.article-body p { font-size: var(--fs-md); color: var(--color-text); line-height: 1.8; margin-bottom: var(--space-3); }
.article-body h2 { font-size: var(--fs-xl); font-weight: 800; margin: var(--space-5) 0 var(--space-2); }
.article-body ul { padding-left: 20px; list-style: disc; margin-bottom: var(--space-3); }
.article-body li { font-size: var(--fs-md); color: var(--color-text); line-height: 1.8; margin-bottom: 8px; }
.article-cover {
  aspect-ratio: 21/9;
  border-radius: var(--radius-lg);
  margin: var(--space-4) 0;
  display: flex; align-items: center; justify-content: center;
}
.legal-body {
  max-width: 760px;
  margin: 0 auto;
}
.legal-updated {
  font-size: var(--fs-xs);
  color: var(--color-text-secondary);
  margin-bottom: var(--space-4);
  padding-bottom: var(--space-3);
  border-bottom: 1px solid var(--color-border);
}
.legal-body h2 {
  font-size: var(--fs-lg);
  font-weight: 800;
  margin: var(--space-5) 0 var(--space-2);
}
.legal-body h2:first-of-type { margin-top: 0; }
.legal-body h3 { font-size: var(--fs-md); font-weight: 700; margin: var(--space-3) 0 8px; }
.legal-body p { font-size: var(--fs-sm); color: var(--color-text-secondary); line-height: 1.75; margin-bottom: var(--space-2); }
.legal-body ul { margin: var(--space-2) 0; padding-left: 20px; list-style: disc; }
.legal-body li { font-size: var(--fs-sm); color: var(--color-text-secondary); line-height: 1.75; margin-bottom: 8px; }
.legal-toc {
  background: var(--color-bg-alt);
  border-radius: var(--radius-md);
  padding: var(--space-3);
  margin-bottom: var(--space-5);
}
.legal-toc h4 { font-size: var(--fs-sm); font-weight: 700; margin-bottom: 10px; }
.legal-toc ol { padding-left: 18px; }
.legal-toc li { font-size: var(--fs-sm); margin-bottom: 6px; }
.legal-toc a { color: var(--color-primary); font-weight: 600; }
.legal-toc a:hover { text-decoration: underline; }
