/* ==========================================================================
   Jarga Commerce — Inner Pages
   Shared stylesheet for About, Plans, Platform.
   Inherits design tokens from cinematic-home.css.
   ========================================================================== */

/* ── Page shell ──────────────────────────────────────────────────────────── */

body.inner-page {
  /* Disable the snap-scroll that the homepage uses */
  scroll-snap-type: none;
  overflow-y: auto;
}

/* Push content below the fixed nav */
.inner-main {
  padding-top: 0;
}

/* ── Nav adjustments for inner pages ─────────────────────────────────────── */

/* Nav gets a very subtle backdrop as you scroll on inner pages */
.inner-page .cinematic-nav {
  background: rgba(9, 11, 12, 0.85);
  backdrop-filter: blur(12px);
  -webkit-backdrop-filter: blur(12px);
  border-bottom: 1px solid rgba(247, 246, 243, 0.07);
}

/* Inner pages: ensure backdrop on nav so it's always readable */

/* ── Page hero ───────────────────────────────────────────────────────────── */

.inner-hero {
  min-height: 52vh;
  display: flex;
  align-items: flex-end;
  /* top padding clears the fixed nav (~84px at desktop) */
  padding: 100px 7vw 8vh;
  /* Dark gradient — same palette as the homepage body */
  background: radial-gradient(circle at 50% -20%, #1e2c32 0%, #111517 48%, #090b0c 100%);
  position: relative;
}

/* Subtle texture line at bottom of hero */
.inner-hero::after {
  content: "";
  position: absolute;
  bottom: 0;
  left: 7vw;
  right: 7vw;
  height: 1px;
  background: var(--line);
}

.inner-hero-content {
  max-width: 760px;
}

.inner-hero-title {
  font-family: "Noto Serif Display", Georgia, serif;
  font-size: clamp(2.8rem, 6vw, 5rem);
  font-weight: 600;
  line-height: 1.0;
  letter-spacing: 0.01em;
  color: var(--ink);
  text-shadow: 0 2px 24px rgba(0, 0, 0, 0.3);
  margin: 12px 0 20px;
  text-wrap: balance;
}

.inner-hero-sub {
  font-family: "Manrope", sans-serif;
  font-size: clamp(0.95rem, 1.4vw, 1.1rem);
  font-weight: 400;
  line-height: 1.75;
  color: var(--mist);
  max-width: 560px;
}

/* ── Section shell ───────────────────────────────────────────────────────── */

.content-section {
  padding: 7vh 0 9vh;
}

.content-section--light {
  background: #f3efea;
  color: #181512;
}

.content-section--dark {
  background: #0e1214;
  color: var(--ink);
}

.content-shell {
  max-width: 1040px;
  margin: 0 auto;
  padding: 0 7vw;
}

.content-divider {
  width: 100%;
  height: 1px;
  background: rgba(24, 21, 18, 0.12);
  margin: 4rem 0;
}

/* ── About page ──────────────────────────────────────────────────────────── */

.founder-intro {
  max-width: 680px;
  margin: 0 auto 3rem;
  text-align: center;
}

.founder-lead {
  font-family: "Noto Serif Display", Georgia, serif;
  font-size: clamp(1.5rem, 3vw, 2.2rem);
  font-weight: 600;
  line-height: 1.65;
  color: #3a3028;
}

.about-pillars {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 3rem;
}

.pillar {
  display: flex;
  flex-direction: column;
  gap: 10px;
}

.pillar-number {
  font-family: "Montserrat", sans-serif;
  font-size: 11px;
  font-weight: 700;
  letter-spacing: 0.22em;
  color: rgba(24, 21, 18, 0.38);
}

.pillar-title {
  font-family: "Montserrat", sans-serif;
  font-size: 13px;
  font-weight: 700;
  letter-spacing: 0.16em;
  text-transform: uppercase;
  color: #181512;
  margin: 0;
}

.pillar p {
  font-family: "Manrope", sans-serif;
  font-size: 0.95rem;
  line-height: 1.75;
  color: #4a4035;
  margin: 0;
}

/* ── CTA strip ───────────────────────────────────────────────────────────── */

.about-cta-strip {
  display: flex;
  align-items: center;
  justify-content: space-between;
  flex-wrap: wrap;
  gap: 1.5rem;
}

.about-cta-strip > p {
  font-family: "Noto Serif Display", Georgia, serif;
  font-size: clamp(1.2rem, 2.5vw, 1.8rem);
  font-weight: 600;
  color: #181512;
  margin: 0;
}

.cta-group {
  display: flex;
  gap: 1rem;
  flex-wrap: wrap;
  align-items: center;
}

.btn-ghost {
  font-family: "Montserrat", sans-serif;
  font-size: 11px;
  font-weight: 700;
  letter-spacing: 0.18em;
  text-transform: uppercase;
  color: #181512;
  border: 1px solid rgba(24, 21, 18, 0.3);
  padding: 12px 20px;
  transition: background 180ms ease, color 180ms ease;
}

.btn-ghost:hover {
  background: #181512;
  color: var(--ink);
}

.btn-solid {
  font-family: "Montserrat", sans-serif;
  font-size: 11px;
  font-weight: 700;
  letter-spacing: 0.18em;
  text-transform: uppercase;
  color: var(--ink);
  background: #181512;
  padding: 12px 20px;
  transition: background 180ms ease;
}

.btn-solid:hover {
  background: #3a3028;
}

/* ── Plans page ──────────────────────────────────────────────────────────── */

.plans-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 1.5rem;
  margin-bottom: 2rem;
}

.plan-card {
  background: #fff;
  border: 1px solid rgba(24, 21, 18, 0.10);
  border-radius: 4px;
  display: flex;
  flex-direction: column;
  position: relative;
  padding: 2rem 1.75rem;
  transition: box-shadow 200ms ease;
}

.plan-card:hover {
  box-shadow: 0 8px 40px rgba(0, 0, 0, 0.08);
}

.plan-card--featured {
  border-color: #181512;
  box-shadow: 0 4px 28px rgba(0, 0, 0, 0.10);
}

.plan-featured-badge {
  position: absolute;
  top: -1px;
  left: 1.75rem;
  font-family: "Montserrat", sans-serif;
  font-size: 9px;
  font-weight: 700;
  letter-spacing: 0.2em;
  text-transform: uppercase;
  background: #181512;
  color: var(--ink);
  padding: 4px 10px;
  border-radius: 0 0 3px 3px;
}

.plan-card-top {
  margin-bottom: 1.5rem;
}

.plan-tier {
  font-family: "Montserrat", sans-serif;
  font-size: 11px;
  font-weight: 700;
  letter-spacing: 0.22em;
  text-transform: uppercase;
  color: rgba(24, 21, 18, 0.45);
  margin: 0 0 12px;
}

.plan-price-block {
  display: flex;
  align-items: baseline;
  gap: 8px;
  margin-bottom: 10px;
}

.plan-price {
  font-family: "Noto Serif Display", Georgia, serif;
  font-size: clamp(2rem, 3.5vw, 2.8rem);
  font-weight: 600;
  color: #181512;
  line-height: 1;
}

.plan-cadence {
  font-family: "Manrope", sans-serif;
  font-size: 0.85rem;
  color: rgba(24, 21, 18, 0.5);
}

.plan-hook {
  font-family: "Manrope", sans-serif;
  font-size: 0.88rem;
  line-height: 1.6;
  color: #4a4035;
  margin: 0;
}

.plan-features {
  list-style: none;
  margin: 0 0 auto;
  padding: 0;
  display: flex;
  flex-direction: column;
  gap: 8px;
  flex: 1;
}

.plan-features li {
  font-family: "Manrope", sans-serif;
  font-size: 0.875rem;
  color: #3a3028;
  display: flex;
  gap: 8px;
  align-items: flex-start;
  line-height: 1.5;
}

.feat-check {
  color: #181512;
  font-size: 0.8rem;
  flex-shrink: 0;
  margin-top: 2px;
}

.plan-card-bottom {
  margin-top: 1.75rem;
}

.btn-plan {
  display: block;
  width: 100%;
  text-align: center;
  font-family: "Montserrat", sans-serif;
  font-size: 11px;
  font-weight: 700;
  letter-spacing: 0.18em;
  text-transform: uppercase;
  padding: 13px 16px;
  transition: background 180ms ease, color 180ms ease;
}

.btn-plan--ghost {
  border: 1px solid rgba(24, 21, 18, 0.28);
  color: #181512;
}

.btn-plan--ghost:hover {
  background: #181512;
  color: var(--ink);
}

.btn-plan--solid {
  background: #181512;
  color: var(--ink);
}

.btn-plan--solid:hover {
  background: #3a3028;
}

.btn-plan--added,
.btn-plan--added:hover {
  background: #2d5a3d;
  border-color: #2d5a3d;
  color: var(--ink);
  cursor: default;
}

.plans-footnote {
  text-align: center;
  font-family: "Manrope", sans-serif;
  font-size: 0.85rem;
  color: rgba(24, 21, 18, 0.5);
  margin-top: 1rem;
}

/* ── FAQ ─────────────────────────────────────────────────────────────────── */

.faq-strip {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 2rem 3rem;
}

.faq-item h4 {
  font-family: "Montserrat", sans-serif;
  font-size: 12px;
  font-weight: 700;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: #181512;
  margin: 0 0 8px;
}

.faq-item p {
  font-family: "Manrope", sans-serif;
  font-size: 0.9rem;
  line-height: 1.75;
  color: #4a4035;
  margin: 0;
}

/* ── Legal pages (Terms, Privacy) ───────────────────────────────────────── */

.legal-shell {
  display: grid;
  grid-template-columns: 200px 1fr;
  gap: 5rem;
  align-items: start;
}

/* Sticky table of contents */
.legal-toc {
  position: sticky;
  top: 110px;
  display: flex;
  flex-direction: column;
  gap: 0.5rem;
}

.legal-toc-label {
  font-family: "Manrope", sans-serif;
  font-size: 0.7rem;
  font-weight: 600;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: #9a8e82;
  margin-bottom: 0.5rem;
}

.legal-toc a {
  font-family: "Manrope", sans-serif;
  font-size: 0.82rem;
  color: #7a6e65;
  text-decoration: none;
  line-height: 1.5;
  transition: color 150ms ease;
}

.legal-toc a:hover {
  color: #181512;
}

/* Legal body */
.legal-body {
  display: flex;
  flex-direction: column;
  gap: 0;
}

.legal-section {
  padding: 2.5rem 0;
  border-bottom: 1px solid #e0d9d1;
}

.legal-section:first-child {
  padding-top: 0;
}

.legal-section:last-child {
  border-bottom: none;
}

.legal-heading {
  font-family: "Noto Serif Display", Georgia, serif;
  font-size: clamp(1.1rem, 2vw, 1.4rem);
  font-weight: 600;
  color: #181512;
  margin: 0 0 1rem;
  line-height: 1.2;
}

.legal-body p {
  font-family: "Manrope", sans-serif;
  font-size: 0.95rem;
  line-height: 1.8;
  color: #4a4035;
  margin: 0 0 0.85rem;
}

.legal-body p:last-child {
  margin-bottom: 0;
}

.legal-body a {
  color: #3a3028;
  text-decoration: underline;
  text-underline-offset: 3px;
}

.legal-body a:hover {
  color: #181512;
}

.legal-list {
  font-family: "Manrope", sans-serif;
  font-size: 0.95rem;
  line-height: 1.8;
  color: #4a4035;
  padding-left: 1.25rem;
  margin: 0.5rem 0 0.85rem;
  display: flex;
  flex-direction: column;
  gap: 0.35rem;
}

.legal-list li::marker {
  color: #9a8e82;
}

/* ── Contact page ────────────────────────────────────────────────────────── */

.contact-layout {
  display: grid;
  grid-template-columns: 1fr 2fr;
  gap: 5rem;
  align-items: start;
}

.contact-section-title {
  font-family: "Manrope", sans-serif;
  font-size: 0.7rem;
  font-weight: 600;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: #9a8e82;
  margin: 0 0 1.75rem;
}

.contact-details {
  display: flex;
  flex-direction: column;
  gap: 1.5rem;
}

.contact-detail {
  display: flex;
  flex-direction: column;
  gap: 4px;
}

.contact-detail-label {
  font-family: "Manrope", sans-serif;
  font-size: 0.7rem;
  font-weight: 600;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  color: #9a8e82;
}

.contact-detail a {
  font-family: "Manrope", sans-serif;
  font-size: 0.95rem;
  color: #3a3028;
  text-decoration: none;
  transition: color 150ms ease;
}

.contact-detail a:hover {
  color: #181512;
}

/* Form */
.contact-form {
  display: flex;
  flex-direction: column;
  gap: 1.25rem;
}

.form-group {
  display: flex;
  flex-direction: column;
  gap: 6px;
}

.form-label {
  font-family: "Manrope", sans-serif;
  font-size: 0.78rem;
  font-weight: 600;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  color: #5a5048;
}

.form-required {
  color: #9a3f2a;
}

.form-input {
  font-family: "Manrope", sans-serif;
  font-size: 0.95rem;
  color: #181512;
  background: #fff;
  border: 1px solid #d6cfc7;
  border-radius: 4px;
  padding: 10px 14px;
  outline: none;
  transition: border-color 150ms ease, box-shadow 150ms ease;
  appearance: none;
  -webkit-appearance: none;
}

.form-input:focus {
  border-color: #8a7a6a;
  box-shadow: 0 0 0 3px rgba(138, 122, 106, 0.15);
}

.form-textarea {
  resize: vertical;
  min-height: 140px;
}

.form-success {
  font-family: "Manrope", sans-serif;
  font-size: 0.9rem;
  color: #3a6645;
  margin: 0.5rem 0 0;
}

/* ── Platform page ───────────────────────────────────────────────────────── */

/* Module index bar — inline strip at top of light section */
.module-index {
  display: flex;
  gap: 0;
  overflow-x: auto;
  scrollbar-width: none;
  -ms-overflow-style: none;
  border-bottom: 1px solid rgba(24, 21, 18, 0.12);
  margin-bottom: 5vh;
  margin-left: -7vw;
  margin-right: -7vw;
  padding-left: 7vw;
}

.module-index::-webkit-scrollbar {
  display: none;
}

.module-index-link {
  font-family: "Montserrat", sans-serif;
  font-size: 10px;
  font-weight: 700;
  letter-spacing: 0.2em;
  text-transform: uppercase;
  color: #181512;
  opacity: 0.38;
  padding: 14px 20px 14px 0;
  margin-right: 20px;
  white-space: nowrap;
  transition: opacity 180ms ease;
  border-bottom: 2px solid transparent;
  margin-bottom: -1px;
}

.module-index-link:hover,
.module-index-link.is-active {
  opacity: 1;
  border-bottom-color: #181512;
}

/* Module blocks */
.modules-shell {
  padding-top: 3vh;
}

.module-block {
  padding: 4rem 0;
  /* Offset anchor scroll: clear the fixed nav (≈84px) + breathing room */
  scroll-margin-top: 110px;
}

.module-header {
  display: flex;
  align-items: flex-start;
  gap: 2rem;
  margin-bottom: 2.5rem;
}

.module-number {
  font-family: "Montserrat", sans-serif;
  font-size: 11px;
  font-weight: 700;
  letter-spacing: 0.2em;
  color: rgba(24, 21, 18, 0.3);
  padding-top: 6px;
  flex-shrink: 0;
  width: 3rem;
}

.module-title {
  font-family: "Noto Serif Display", Georgia, serif;
  font-size: clamp(1.5rem, 3vw, 2.2rem);
  font-weight: 600;
  color: #181512;
  margin: 0 0 6px;
  line-height: 1.1;
}

.module-subtitle {
  font-family: "Manrope", sans-serif;
  font-size: 0.95rem;
  color: #5a5048;
  margin: 0;
  line-height: 1.6;
}

.module-body {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 3rem;
  padding-left: 5rem; /* Align with title (past the number) */
}

.module-desc p {
  font-family: "Manrope", sans-serif;
  font-size: 0.95rem;
  line-height: 1.8;
  color: #3a3028;
  margin: 0 0 1.5rem;
}

/* Mini chat examples inside module blocks */
.module-chat-example {
  display: flex;
  flex-direction: column;
  gap: 8px;
  padding: 1.25rem;
  background: #ede9e3;
  border-radius: 8px;
}

.mini-bubble {
  font-family: "Manrope", sans-serif;
  font-size: 0.82rem;
  line-height: 1.55;
  padding: 10px 14px;
  border-radius: 14px;
  max-width: 90%;
}

.mini-bubble--user {
  align-self: flex-end;
  background: rgba(24, 21, 18, 0.82);
  color: var(--ink);
  border-bottom-right-radius: 3px;
}

.mini-bubble--agent {
  align-self: flex-start;
  background: #fff;
  color: #181512;
  border: 1px solid rgba(24, 21, 18, 0.08);
  border-bottom-left-radius: 3px;
}

.module-capabilities {
  list-style: none;
  margin: 0;
  padding: 0;
  display: flex;
  flex-direction: column;
  gap: 10px;
}

.module-capabilities li {
  font-family: "Manrope", sans-serif;
  font-size: 0.875rem;
  line-height: 1.5;
  color: #3a3028;
  padding-left: 1.2rem;
  position: relative;
}

.module-capabilities li::before {
  content: "–";
  position: absolute;
  left: 0;
  color: rgba(24, 21, 18, 0.35);
}

.module-divider {
  width: 100%;
  height: 1px;
  background: rgba(24, 21, 18, 0.09);
}

/* ── Footer ──────────────────────────────────────────────────────────────── */

.inner-footer {
  background: #090b0c;
  padding: 4vh 0;
  border-top: 1px solid rgba(247, 246, 243, 0.07);
}

.inner-footer-inner {
  max-width: 1040px;
  margin: 0 auto;
  padding: 0 7vw;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1.5rem;
  flex-wrap: wrap;
}

.footer-brand {
  font-family: "Montserrat", sans-serif;
  font-size: 18px;
  font-weight: 700;
  letter-spacing: 8px;
  color: var(--ink);
  opacity: 0.9;
}

.footer-nav {
  display: flex;
  gap: 24px;
  flex-wrap: wrap;
}

.footer-nav a {
  font-family: "Montserrat", sans-serif;
  font-size: 10px;
  font-weight: 700;
  letter-spacing: 0.2em;
  text-transform: uppercase;
  color: var(--ink);
  opacity: 0.4;
  transition: opacity 180ms ease;
}

.footer-nav a:hover {
  opacity: 1;
}

.footer-copy {
  font-family: "Manrope", sans-serif;
  font-size: 0.8rem;
  color: var(--ink);
  opacity: 0.3;
}

/* ── Responsive ──────────────────────────────────────────────────────────── */

@media (max-width: 860px) {

  .inner-hero {
    min-height: 44vh;
    /* top padding clears the fixed nav (~66px at mobile) */
    padding: 82px 18px 6vh;
  }

  .about-pillars {
    grid-template-columns: 1fr;
    gap: 2rem;
  }

  .plans-grid {
    grid-template-columns: 1fr;
    max-width: 440px;
    margin-left: auto;
    margin-right: auto;
  }

  .faq-strip {
    grid-template-columns: 1fr;
  }

  .contact-layout {
    grid-template-columns: 1fr;
    gap: 3rem;
  }

  .legal-shell {
    grid-template-columns: 1fr;
    gap: 2rem;
  }

  .legal-toc {
    position: static;
    flex-direction: row;
    flex-wrap: wrap;
    gap: 0.4rem 1rem;
    padding-bottom: 1.5rem;
    border-bottom: 1px solid #e0d9d1;
  }

  .module-body {
    grid-template-columns: 1fr;
    gap: 1.5rem;
    padding-left: 0;
  }

  .module-header {
    flex-direction: row;
    gap: 1rem;
  }

  .module-number {
    display: none;
  }

  .about-cta-strip {
    flex-direction: column;
    align-items: flex-start;
    gap: 1rem;
  }

  .inner-footer-inner {
    flex-direction: column;
    align-items: flex-start;
    gap: 1rem;
  }

  .footer-nav {
    gap: 16px;
  }
}

@media (max-width: 480px) {
  .module-index-link {
    padding: 12px 14px;
    font-size: 9px;
  }
}
