/* ═══════════════════════════════════════════════════════════════════════════
   Chat2Evidence — Homepage Component Styles
   Mobile-first. Every component designed for phone first, expanded for desktop.
   ═══════════════════════════════════════════════════════════════════════════ */

/* ── SUBNAV ─────────────────────────────────────────────────────────────── */
.c2e-subnav {
  background: white;
  border-bottom: 1px solid var(--gray-200);
  padding: 0 20px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  height: 48px;
  position: sticky;
  top: 64px;
  z-index: 50;
}
.c2e-subnav__links {
  display: flex;
  gap: 24px;
}
.c2e-subnav__links a {
  font-size: .82rem;
  font-weight: 500;
  color: var(--gray-600);
  text-decoration: none;
  transition: color .15s;
}
.c2e-subnav__links a:hover { color: var(--teal); }
.c2e-subnav__cta {
  background: var(--teal);
  color: white;
  border: none;
  border-radius: 7px;
  padding: 8px 18px;
  font-size: .82rem;
  font-weight: 700;
  cursor: pointer;
  font-family: var(--font-sans);
}
@media (max-width: 480px) {
  .c2e-subnav__links { display: none; }
}

/* ── HERO ────────────────────────────────────────────────────────────────── */
.c2e-hero {
  max-width: 1100px;
  margin: 0 auto;
  padding: 48px 20px 52px;
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 52px;
  align-items: center;
}
@media (max-width: 800px) {
  .c2e-hero {
    grid-template-columns: 1fr;
    gap: 40px;
    padding: 36px 20px 44px;
  }
}

/* Badge */
.c2e-badge {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  background: var(--teal-bg);
  border: 1px solid var(--teal-border);
  color: var(--teal-dark);
  font-size: .72rem;
  font-weight: 700;
  padding: 5px 12px;
  border-radius: 999px;
  margin-bottom: 16px;
}

/* Headline */
.c2e-hero__h1 {
  font-size: clamp(1.75rem, 5vw, 2.6rem);
  font-family: var(--font-sans);
  font-weight: 800;
  color: var(--navy);
  line-height: 1.15;
  margin: 0 0 14px;
}
.c2e-hero__sub {
  font-size: .97rem;
  color: var(--gray-500);
  line-height: 1.7;
  margin: 0 0 22px;
  max-width: 460px;
}

/* Trust chips */
.c2e-trust-chips {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
  margin-bottom: 26px;
}
.c2e-trust-chips span {
  display: flex;
  align-items: center;
  gap: 5px;
  font-size: .78rem;
  font-weight: 600;
  color: var(--gray-600);
}
.c2e-trust-chips svg { color: var(--teal); flex-shrink: 0; }

/* Upload zone */
.c2e-upload {
  border: 2px dashed var(--teal) !important;
  border-radius: 12px !important;
  padding: 20px 20px !important;
  cursor: pointer;
  background: white;
  text-align: center;
  transition: border-color .2s, background .2s;
  max-width: 440px;
}
.c2e-upload:hover { background: var(--teal-bg); }
.c2e-upload__btn {
  background: var(--teal);
  color: white;
  border: none;
  border-radius: 9px;
  padding: 13px 24px;
  font-size: .97rem;
  font-weight: 700;
  cursor: pointer;
  font-family: var(--font-sans);
  display: flex;
  align-items: center;
  gap: 9px;
  margin: 0 auto 8px;
  width: 100%;
  justify-content: center;
}
.c2e-upload__btn:hover { background: var(--teal-dark); }
.c2e-upload__hint {
  font-size: .75rem;
  color: var(--gray-400);
}
.c2e-privacy-note {
  display: flex;
  align-items: center;
  gap: 5px;
  font-size: .75rem;
  color: var(--gray-400);
  margin-top: 9px;
  max-width: 440px;
  justify-content: center;
}

/* ── 3D DOCUMENT ILLUSTRATION ─────────────────────────────────────────────── */
.c2e-hero__visual {
  display: flex;
  align-items: center;
  justify-content: center;
}

.c2e-docs-scene {
  position: relative;
  width: 340px;
  height: 420px;
  margin: 0 auto;
}
@media (max-width: 800px) {
  .c2e-docs-scene {
    width: 300px;
    height: 360px;
  }
}
@media (max-width: 480px) {
  .c2e-docs-scene {
    width: 260px;
    height: 320px;
  }
}

/* Individual document pages */
.c2e-doc {
  position: absolute;
  background: white;
  border-radius: 4px;
  box-shadow: 0 8px 40px rgba(0,0,0,.18), 0 2px 8px rgba(0,0,0,.08);
  overflow: hidden;
  display: flex;
  flex-direction: column;
  font-family: var(--font-sans);
}

/* Back page: Evidence Record — tilted left, behind */
.c2e-doc--back {
  width: 200px;
  height: 280px;
  top: 20px;
  left: 10px;
  transform: rotate(-6deg) translateX(-12px);
  z-index: 1;
  opacity: .92;
}
/* Mid page: Certificate — slight right tilt */
.c2e-doc--mid {
  width: 210px;
  height: 295px;
  top: 10px;
  left: 60px;
  transform: rotate(2.5deg);
  z-index: 2;
}
/* Front page: Chat table — straight on, on top */
.c2e-doc--front {
  width: 220px;
  height: 300px;
  top: 30px;
  right: 0;
  transform: rotate(-1.5deg);
  z-index: 3;
  box-shadow: 0 12px 48px rgba(0,0,0,.22), 0 2px 8px rgba(0,0,0,.1);
}
@media (max-width: 480px) {
  .c2e-doc--back  { width: 160px; height: 220px; left: 4px; }
  .c2e-doc--mid   { width: 168px; height: 238px; left: 44px; }
  .c2e-doc--front { width: 178px; height: 248px; }
}

.c2e-doc__header {
  background: #0c1f3f;
  color: white;
  font-size: .42rem;
  font-weight: 700;
  padding: 5px 7px;
  text-align: center;
  letter-spacing: .04em;
  flex-shrink: 0;
}
.c2e-doc__header--cert {
  font-size: .46rem;
}
.c2e-doc__body {
  flex: 1;
  padding: 7px 7px 5px;
  overflow: hidden;
}
.c2e-doc__footer {
  background: #0c1f3f;
  color: rgba(255,255,255,.6);
  font-size: .36rem;
  padding: 3px 6px;
  text-align: right;
  flex-shrink: 0;
}
.c2e-doc__label {
  font-size: .4rem;
  color: #475569;
  margin-bottom: 4px;
  font-weight: 500;
}
.c2e-doc__divider {
  height: 1px;
  background: #e2e8f0;
  margin: 4px 0;
}
.c2e-doc__row {
  display: flex;
  justify-content: space-between;
  font-size: .38rem;
  color: #334155;
  padding: 2px 0;
  border-bottom: 1px solid #f1f5f9;
}
.c2e-doc__key { font-weight: 700; color: #0c1f3f; flex-shrink: 0; margin-right: 4px; }
.c2e-doc__val { color: #475569; text-align: right; }
.c2e-doc__hash-label {
  font-size: .35rem;
  font-weight: 700;
  color: #0c1f3f;
  margin-top: 5px;
  background: #0c1f3f;
  color: white;
  padding: 2px 4px;
}
.c2e-doc__hash {
  font-size: .33rem;
  font-family: monospace;
  background: white;
  border: 1px dashed #94a3b8;
  padding: 3px 4px;
  color: #334155;
  letter-spacing: .02em;
  margin-top: 2px;
  line-height: 1.5;
}
/* Certificate page styles */
.c2e-doc__cert-sub {
  font-size: .38rem;
  color: #475569;
  text-align: center;
  margin-bottom: 4px;
}
.c2e-doc__part-bar {
  background: #0c1f3f;
  color: white;
  font-size: .35rem;
  font-weight: 700;
  padding: 2px 4px;
  margin-bottom: 4px;
}
.c2e-doc__clause {
  font-size: .35rem;
  color: #334155;
  line-height: 1.5;
  margin-bottom: 3px;
  padding-left: 4px;
  border-left: 1.5px solid #e2e8f0;
}
.c2e-doc__sig-block {
  border: 1px solid #e2e8f0;
  border-radius: 2px;
  padding: 3px 5px;
  margin-top: 5px;
}
.c2e-doc__sig-row {
  display: flex;
  justify-content: space-between;
  font-size: .35rem;
  color: #334155;
  padding: 2px 0;
  border-bottom: 1px solid #f1f5f9;
}
.c2e-doc__sig-row span:first-child { font-weight: 700; color: #0c1f3f; }

/* Chat table page styles */
.c2e-doc__body--table { padding: 5px 5px 4px; }
.c2e-doc__table {
  width: 100%;
  border-collapse: collapse;
  font-size: .33rem;
}
.c2e-doc__table th {
  background: #0c1f3f;
  color: white;
  padding: 2px 3px;
  text-align: left;
  font-weight: 700;
}
.c2e-doc__table td {
  padding: 2px 3px;
  border: 1px solid #e2e8f0;
  color: #334155;
}
.c2e-doc__table tr:nth-child(even) td { background: #f8fafc; }
.c2e-doc__total {
  font-size: .34rem;
  font-weight: 700;
  color: #0c1f3f;
  text-align: center;
  margin-top: 4px;
  background: #f8fafc;
  padding: 2px 4px;
  border: 1px solid #e2e8f0;
}

/* Shadow + badge */
.c2e-docs-shadow {
  position: absolute;
  bottom: -10px;
  left: 10%;
  width: 80%;
  height: 20px;
  background: radial-gradient(ellipse, rgba(0,0,0,.2) 0%, transparent 70%);
  z-index: 0;
}
.c2e-docs-badge {
  position: absolute;
  bottom: -4px;
  left: 50%;
  transform: translateX(-50%);
  background: #0c1f3f;
  color: white;
  font-size: .7rem;
  font-weight: 700;
  padding: 4px 14px;
  border-radius: 999px;
  white-space: nowrap;
  z-index: 10;
  box-shadow: 0 2px 10px rgba(12,31,63,.3);
}

/* ── SHARED SECTION WRAPPER ──────────────────────────────────────────────── */
.c2e-section {
  padding: 56px 20px;
}
.c2e-section--gray { background: var(--gray-50); }
.c2e-section__eyebrow {
  font-size: .72rem;
  font-weight: 700;
  color: var(--teal);
  letter-spacing: .1em;
  text-transform: uppercase;
  margin-bottom: 8px;
  text-align: center;
}
.c2e-section__title {
  font-family: var(--font-sans);
  font-weight: 800;
  color: var(--navy);
  font-size: clamp(1.4rem, 4vw, 1.9rem);
  text-align: center;
  margin: 0 auto 40px;
  max-width: 600px;
}

/* ── HOW IT WORKS ────────────────────────────────────────────────────────── */
.c2e-steps {
  max-width: 760px;
  margin: 0 auto;
  display: flex;
  align-items: flex-start;
  gap: 8px;
}
.c2e-step {
  flex: 1;
  text-align: center;
  padding: 20px 12px;
}
.c2e-step__icon {
  width: 60px;
  height: 60px;
  background: white;
  border: 2px solid var(--teal);
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  margin: 0 auto 10px;
  color: var(--teal);
  box-shadow: 0 2px 12px rgba(13,148,136,.15);
}
.c2e-step__num {
  font-size: .72rem;
  font-weight: 800;
  color: var(--teal);
  margin-bottom: 6px;
  letter-spacing: .05em;
}
.c2e-step__title {
  font-size: 1rem;
  font-weight: 700;
  color: var(--navy);
  margin-bottom: 6px;
}
.c2e-step__desc {
  font-size: .8rem;
  color: var(--gray-500);
  line-height: 1.6;
  margin: 0;
}
.c2e-step__arrow {
  flex-shrink: 0;
  color: var(--gray-300);
  padding-top: 30px;
}
@media (max-width: 640px) {
  .c2e-steps {
    flex-direction: column;
    align-items: center;
    gap: 0;
  }
  .c2e-step { max-width: 320px; width: 100%; }
  .c2e-step__arrow { transform: rotate(90deg); padding: 0; }
}

/* ── FEATURES ────────────────────────────────────────────────────────────── */
.c2e-features {
  max-width: 960px;
  margin: 0 auto;
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 48px;
  align-items: center;
}
.c2e-features__list {
  display: flex;
  flex-direction: column;
  gap: 22px;
}
.c2e-feature {
  display: flex;
  gap: 14px;
  align-items: flex-start;
}
.c2e-feature__icon {
  width: 38px;
  height: 38px;
  background: var(--teal-bg);
  border-radius: 9px;
  display: flex;
  align-items: center;
  justify-content: center;
  flex-shrink: 0;
  color: var(--teal);
}
.c2e-feature__title {
  font-weight: 700;
  color: var(--navy);
  margin-bottom: 3px;
  font-size: .95rem;
}
.c2e-feature__desc {
  font-size: .82rem;
  color: var(--gray-500);
  line-height: 1.6;
  margin: 0;
}
@media (max-width: 720px) {
  .c2e-features { grid-template-columns: 1fr; gap: 32px; }
}

/* Page thumbnail stack */
.c2e-page-thumbs {
  position: relative;
  display: flex;
  flex-direction: column;
  gap: 10px;
  align-items: center;
}
.c2e-thumb {
  background: white;
  border-radius: 5px;
  box-shadow: 0 2px 14px rgba(0,0,0,.1);
  overflow: hidden;
  width: 100%;
  max-width: 220px;
}
.c2e-thumb__hdr {
  background: #0c1f3f;
  color: white;
  font-size: .52rem;
  font-weight: 700;
  padding: 4px 6px;
  text-align: center;
}
.c2e-thumb__lines { padding: 6px 8px; }
.c2e-thumb__line {
  height: 3px;
  background: var(--gray-200);
  border-radius: 2px;
  margin-bottom: 3px;
}
.c2e-thumb__block {
  height: 16px;
  background: var(--gray-50);
  border: 1px solid var(--gray-200);
  border-radius: 2px;
  margin-top: 4px;
}
.c2e-thumb__pg {
  font-size: .44rem;
  color: var(--gray-400);
  text-align: center;
  padding: 3px;
  border-top: 1px solid var(--gray-100);
}
.c2e-thumb__tbl {
  width: 100%;
  border-collapse: collapse;
  font-size: .45rem;
}
.c2e-thumb__tbl th {
  background: #0c1f3f;
  color: white;
  padding: 2px 3px;
  text-align: left;
}
.c2e-thumb__tbl td {
  padding: 2px 3px;
  border: 1px solid #e2e8f0;
  color: #334155;
}
.c2e-page-badge {
  background: #0c1f3f;
  color: white;
  font-size: .72rem;
  font-weight: 700;
  padding: 5px 16px;
  border-radius: 999px;
  margin-top: 4px;
}

/* ── PRICING ─────────────────────────────────────────────────────────────── */
.c2e-pricing {
  max-width: 700px;
  margin: 0 auto;
  background: white;
  border-radius: 16px;
  box-shadow: 0 4px 28px rgba(0,0,0,.09);
  padding: 36px;
  display: grid;
  grid-template-columns: 1fr auto;
  gap: 32px;
  align-items: center;
}
.c2e-pricing__title {
  font-size: 1.25rem;
  font-weight: 800;
  color: var(--navy);
  margin-bottom: 8px;
}
.c2e-pricing__desc {
  font-size: .88rem;
  color: var(--gray-500);
  line-height: 1.6;
  margin: 0 0 14px;
}
.c2e-pricing__perks {
  list-style: none;
  padding: 0;
  margin: 0;
  display: flex;
  flex-direction: column;
  gap: 5px;
}
.c2e-pricing__perks li {
  font-size: .83rem;
  color: var(--teal-dark);
  font-weight: 600;
}
.c2e-pricing__right {
  text-align: center;
  flex-shrink: 0;
}
.c2e-pricing__amount {
  font-size: 2.6rem;
  font-weight: 900;
  color: var(--navy);
  line-height: 1;
}
.c2e-pricing__period {
  font-size: .72rem;
  color: var(--gray-400);
  margin-top: 2px;
  margin-bottom: 16px;
}
.c2e-pricing__btn {
  background: var(--teal);
  color: white;
  border: none;
  border-radius: 10px;
  padding: 13px 26px;
  font-size: .95rem;
  font-weight: 700;
  cursor: pointer;
  font-family: var(--font-sans);
  width: 100%;
  display: block;
}
.c2e-pricing__btn:hover { background: var(--teal-dark); }
.c2e-pricing__note {
  font-size: .68rem;
  color: var(--gray-400);
  margin-top: 7px;
}
@media (max-width: 640px) {
  .c2e-pricing {
    grid-template-columns: 1fr;
    padding: 24px 20px;
    gap: 24px;
    text-align: center;
  }
  .c2e-pricing__right { border-top: 1px solid var(--gray-200); padding-top: 20px; }
  .c2e-pricing__perks { align-items: center; }
}

/* ── TRUST STATS ─────────────────────────────────────────────────────────── */
.c2e-trust {
  text-align: center;
}
.c2e-trust__label {
  font-size: .82rem;
  color: var(--gray-400);
  font-weight: 500;
  margin-bottom: 28px;
}
.c2e-trust__grid {
  max-width: 800px;
  margin: 0 auto;
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 16px;
}
.c2e-trust__item {
  padding: 16px 8px;
  border-radius: 12px;
  background: var(--gray-50);
}
.c2e-trust__num {
  font-size: 1.5rem;
  font-weight: 900;
  color: var(--navy);
  line-height: 1;
}
.c2e-trust__desc {
  font-size: .78rem;
  font-weight: 700;
  color: var(--gray-700);
  margin-top: 4px;
}
.c2e-trust__sub {
  font-size: .68rem;
  color: var(--gray-400);
  line-height: 1.4;
  margin-top: 3px;
}
@media (max-width: 600px) {
  .c2e-trust__grid {
    grid-template-columns: repeat(2, 1fr);
    gap: 12px;
  }
}

/* Certificate illustration — additional elements */
.c2e-doc__opener {
  font-size: .33rem;
  color: #334155;
  line-height: 1.6;
  margin-bottom: 4px;
  padding: 2px 0;
}
.c2e-doc__opener strong {
  color: #0c1f3f;
  font-weight: 700;
}
.c2e-doc__declare {
  font-size: .32rem;
  color: #475569;
  font-style: italic;
  margin: 3px 0;
  line-height: 1.5;
}
