/* ============================================================
   ShopConnect.live — inner page components
   Builds on styles.css tokens. Used by all pages except home.
   ============================================================ */

/* nav active state */
.nav-links a.active { opacity: 1; }
.nav-links a.active::after {
  content: ""; display: block; height: 2px; border-radius: 2px;
  background: var(--butter-deep); margin-top: 3px;
}

/* ── page shell ── */
.page { padding-top: 150px; }
.container { max-width: var(--maxw); margin: 0 auto; padding: 0 40px; }
.container-narrow { max-width: 880px; margin: 0 auto; padding: 0 40px; }

/* ── page hero ── */
.phero { text-align: center; padding: 18px 0 64px; }
.phero.left { text-align: left; }
.phero-eyebrow {
  display: inline-flex; align-items: center; gap: 9px;
  font-size: 13px; font-weight: 800; letter-spacing: .16em; text-transform: uppercase;
  color: var(--green-soft); margin-bottom: 22px;
}
.phero-eyebrow .pip { width: 7px; height: 7px; border-radius: 50%; background: var(--green-bright); }
.phero h1 {
  font-family: var(--serif); font-weight: 400;
  font-size: clamp(44px, 6.4vw, 96px); line-height: 0.98; letter-spacing: -0.025em;
  padding-bottom: 0.04em;
}
.phero h1 .em { font-style: italic; color: var(--green); }
.phero h1 .mark { color: var(--butter-deep); font-style: italic; }
.phero-sub {
  margin: 26px auto 0; max-width: 620px;
  font-size: 21px; line-height: 1.5; color: var(--ink-soft); font-weight: 500; text-wrap: pretty;
}
.phero.left .phero-sub { margin-left: 0; }
.phero-cta { margin-top: 38px; display: flex; gap: 12px; justify-content: center; flex-wrap: wrap; }
.phero.left .phero-cta { justify-content: flex-start; }

/* ── generic section heading ── */
.sec { padding: 80px 0; }
.sec-head { max-width: 720px; margin: 0 auto 56px; text-align: center; }
.sec-head.left { margin-left: 0; text-align: left; }
.sec-kicker { font-size: 13px; font-weight: 800; letter-spacing: .16em; text-transform: uppercase; color: var(--green-soft); }
.sec-title { font-family: var(--serif); font-weight: 400; font-size: clamp(34px, 4.4vw, 62px); line-height: 1.02; letter-spacing: -0.02em; margin-top: 14px; padding-bottom: 0.03em; }
.sec-sub { margin: 18px auto 0; max-width: 560px; font-size: 19px; color: var(--ink-soft); }
.sec-head.left .sec-sub { margin-left: 0; }

/* ── trust strip ── */
.trust { display: flex; flex-wrap: wrap; justify-content: center; gap: 14px 40px; padding: 8px 0 0; }
.trust .ti { display: inline-flex; align-items: baseline; gap: 10px; }
.trust .tnum { font-family: var(--serif); font-size: 30px; color: var(--ink); }
.trust .tlbl { font-size: 15px; color: var(--ink-soft); font-weight: 600; }

/* ── feature grid ── */
.feat-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 22px; }
.feat-grid.two { grid-template-columns: repeat(2, 1fr); }
.feat-card {
  background: var(--paper-2); border: 1px solid var(--line); border-radius: var(--r-lg);
  padding: 34px 30px; display: flex; flex-direction: column; gap: 12px;
}
.feat-ico {
  width: 52px; height: 52px; border-radius: 15px; display: grid; place-items: center;
  background: var(--green-deep); color: var(--green-bright); margin-bottom: 8px;
}
.feat-ico svg { width: 26px; height: 26px; }
.feat-card h3 { font-family: var(--serif); font-size: 25px; font-weight: 500; line-height: 1.12; }
.feat-card p { font-size: 16px; color: var(--ink-soft); line-height: 1.55; }
.feat-card.dark { background: var(--panel); color: var(--paper); border-color: var(--panel-line); }
.feat-card.dark p { color: rgba(246,241,225,.7); }
.feat-card.dark .feat-ico { background: rgba(69,176,125,.18); }
.feat-card.butter { background: var(--butter); border-color: transparent; }
.feat-card.butter .feat-ico { background: rgba(27,23,18,.1); color: var(--ink); }
.feat-card.butter p { color: rgba(27,23,18,.72); }

@media (max-width: 960px) { .feat-grid, .feat-grid.two { grid-template-columns: 1fr; } }

/* ── ROI calculator ── */
.roi {
  background: var(--panel); color: var(--paper); border-radius: 44px; overflow: hidden;
  display: grid; grid-template-columns: 1fr 1.05fr;
  background-image: radial-gradient(80% 90% at 100% 0%, rgba(69,176,125,.16), transparent 60%);
}
.roi-in { padding: 50px 46px; border-right: 1px solid var(--panel-line); }
.roi-in h3 { font-family: var(--serif); font-size: 34px; font-weight: 500; line-height: 1.05; }
.roi-in p { margin-top: 12px; color: rgba(246,241,225,.65); font-size: 16px; }
.roi-field { margin-top: 28px; }
.roi-field label { display: flex; justify-content: space-between; align-items: baseline; font-weight: 700; font-size: 15px; margin-bottom: 12px; }
.roi-field .val { font-family: var(--serif); font-size: 22px; color: var(--butter); }
.roi-field input[type=range] {
  -webkit-appearance: none; appearance: none; width: 100%; height: 6px; border-radius: 100px;
  background: rgba(246,241,225,.16); outline: none;
}
.roi-field input[type=range]::-webkit-slider-thumb {
  -webkit-appearance: none; appearance: none; width: 24px; height: 24px; border-radius: 50%;
  background: var(--butter); cursor: pointer; border: 4px solid var(--panel);
  box-shadow: 0 2px 8px rgba(0,0,0,.4);
}
.roi-field input[type=range]::-moz-range-thumb {
  width: 22px; height: 22px; border-radius: 50%; background: var(--butter); cursor: pointer; border: 4px solid var(--panel);
}
.roi-out { padding: 50px 46px; display: flex; flex-direction: column; justify-content: center; gap: 26px; }
.roi-stat .roi-k { font-size: 14px; font-weight: 700; letter-spacing: .08em; text-transform: uppercase; color: rgba(246,241,225,.55); }
.roi-stat .roi-v { font-family: var(--serif); font-size: clamp(44px, 5vw, 72px); line-height: 1; margin-top: 6px; color: var(--green-bright); }
.roi-stat.hl .roi-v { color: var(--butter); }
.roi-note { font-size: 14px; color: rgba(246,241,225,.5); border-top: 1px solid var(--panel-line); padding-top: 20px; }
.roi-cta { margin-top: 6px; }
@media (max-width: 900px) { .roi { grid-template-columns: 1fr; } .roi-in { border-right: none; border-bottom: 1px solid var(--panel-line); } }

/* ── steps ── */
.steps { display: grid; grid-template-columns: repeat(3, 1fr); gap: 22px; counter-reset: s; }
.step { background: var(--paper-2); border: 1px solid var(--line); border-radius: var(--r-lg); padding: 34px 30px; position: relative; }
.step::before {
  counter-increment: s; content: counter(s, decimal-leading-zero);
  font-family: var(--serif); font-size: 40px; color: var(--butter-deep); display: block; margin-bottom: 14px;
}
.step h3 { font-family: var(--serif); font-size: 24px; font-weight: 500; }
.step p { margin-top: 10px; font-size: 16px; color: var(--ink-soft); }
@media (max-width: 900px) { .steps { grid-template-columns: 1fr; } }

/* ── pricing tiers ── */
.tiers { display: grid; grid-template-columns: repeat(3, 1fr); gap: 22px; align-items: stretch; }
.tier {
  background: var(--paper-2); border: 1px solid var(--line); border-radius: var(--r-lg);
  padding: 38px 32px; display: flex; flex-direction: column;
}
.tier.feature { background: var(--panel); color: var(--paper); border-color: var(--panel); position: relative; box-shadow: 0 30px 60px rgba(27,23,18,.18); }
.tier-badge {
  position: absolute; top: -13px; left: 50%; transform: translateX(-50%);
  background: var(--butter); color: var(--ink); font-weight: 800; font-size: 12px; letter-spacing: .1em; text-transform: uppercase;
  padding: 7px 16px; border-radius: 100px; white-space: nowrap;
}
.tier-name { font-family: var(--serif); font-size: 28px; font-weight: 500; }
.tier-desc { margin-top: 8px; font-size: 15px; color: var(--ink-soft); min-height: 44px; }
.tier.feature .tier-desc { color: rgba(246,241,225,.65); }
.tier-price { margin-top: 22px; display: flex; align-items: baseline; gap: 6px; }
.tier-price .amt { font-family: var(--serif); font-size: 56px; line-height: 1; }
.tier-price .per { font-size: 15px; color: var(--ink-soft); font-weight: 600; }
.tier.feature .tier-price .per { color: rgba(246,241,225,.6); }
.tier .btn { margin-top: 26px; justify-content: center; }
.tier-list { margin-top: 28px; display: flex; flex-direction: column; gap: 13px; }
.tier-list li { list-style: none; display: flex; gap: 11px; font-size: 15.5px; line-height: 1.4; }
.tier-list .ck { flex-shrink: 0; width: 20px; height: 20px; border-radius: 50%; background: var(--green-bright); display: grid; place-items: center; margin-top: 1px; }
.tier.feature .tier-list .ck { background: var(--butter); }
.tier-list .ck svg { width: 12px; height: 12px; }
.tier-list .muted { color: var(--ink-faint); }
.tier.feature .tier-list .muted { color: rgba(246,241,225,.45); }
@media (max-width: 960px) { .tiers { grid-template-columns: 1fr; } }

/* ── comparison table ── */
.cmp-table { width: 100%; border-collapse: collapse; background: var(--paper-2); border-radius: var(--r-md); overflow: hidden; border: 1px solid var(--line); }
.cmp-table th, .cmp-table td { padding: 18px 22px; text-align: left; border-bottom: 1px solid var(--line); font-size: 16px; }
.cmp-table thead th { font-family: var(--serif); font-size: 19px; font-weight: 500; background: var(--paper-sunk); }
.cmp-table tbody th { font-weight: 600; color: var(--ink-soft); }
.cmp-table td { text-align: center; }
.cmp-table td.yes { color: var(--green-soft); font-weight: 800; }
.cmp-table td.no { color: var(--ink-faint); }
.cmp-table tr:last-child td, .cmp-table tr:last-child th { border-bottom: none; }

/* ── FAQ ── */
.faq { max-width: 800px; margin: 0 auto; }
.faq details { border-bottom: 1px solid var(--line); padding: 4px 0; }
.faq summary { list-style: none; cursor: pointer; padding: 22px 0; font-family: var(--serif); font-size: 22px; display: flex; justify-content: space-between; align-items: center; gap: 20px; }
.faq summary::-webkit-details-marker { display: none; }
.faq summary .pl { flex-shrink: 0; width: 26px; height: 26px; position: relative; transition: transform .3s; }
.faq summary .pl::before, .faq summary .pl::after { content: ""; position: absolute; background: var(--ink); border-radius: 2px; }
.faq summary .pl::before { left: 0; right: 0; top: 12px; height: 2px; }
.faq summary .pl::after { top: 0; bottom: 0; left: 12px; width: 2px; transition: opacity .3s; }
.faq details[open] summary .pl::after { opacity: 0; }
.faq details[open] summary .pl { transform: rotate(90deg); }
.faq p { padding: 0 0 24px; color: var(--ink-soft); font-size: 17px; line-height: 1.6; max-width: 680px; }

/* ── blog grid ── */
.blog-feature {
  display: grid; grid-template-columns: 1.1fr 1fr; gap: 0; border-radius: var(--r-lg); overflow: hidden;
  border: 1px solid var(--line); background: var(--paper-2); margin-bottom: 40px;
}
.blog-feature .bf-img { background-size: cover; background-position: center; min-height: 360px; }
.blog-feature .bf-body { padding: 46px 44px; display: flex; flex-direction: column; justify-content: center; }
.cat { display: inline-flex; align-items: center; gap: 7px; font-size: 12px; font-weight: 800; letter-spacing: .1em; text-transform: uppercase; color: var(--clay); }
.blog-feature h2 { font-family: var(--serif); font-weight: 400; font-size: clamp(30px, 3.4vw, 46px); line-height: 1.05; margin: 16px 0 14px; letter-spacing: -0.01em; }
.blog-feature p { color: var(--ink-soft); font-size: 17px; line-height: 1.55; }
.blog-meta { margin-top: 22px; display: flex; align-items: center; gap: 12px; font-size: 14px; color: var(--ink-faint); font-weight: 600; }
.blog-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 26px; }
.post { display: flex; flex-direction: column; cursor: pointer; }
.post .p-img { border-radius: var(--r-md); overflow: hidden; aspect-ratio: 16/10; background-size: cover; background-position: center; margin-bottom: 18px; transition: transform .4s cubic-bezier(.2,.7,.3,1); }
.post:hover .p-img { transform: translateY(-4px); }
.post h3 { font-family: var(--serif); font-weight: 500; font-size: 24px; line-height: 1.15; margin: 12px 0 8px; }
.post p { font-size: 15.5px; color: var(--ink-soft); line-height: 1.5; }
.post .blog-meta { margin-top: 16px; }
@media (max-width: 960px) { .blog-grid { grid-template-columns: 1fr 1fr; } .blog-feature { grid-template-columns: 1fr; } .blog-feature .bf-img { min-height: 240px; } }
@media (max-width: 640px) { .blog-grid { grid-template-columns: 1fr; } }

/* category filter chips */
.cat-bar { display: flex; flex-wrap: wrap; gap: 10px; justify-content: center; margin-bottom: 46px; }
.cat-chip { padding: 10px 20px; border-radius: 100px; border: 1.5px solid var(--line-2); font-weight: 700; font-size: 15px; cursor: pointer; transition: all .2s; }
.cat-chip:hover { border-color: var(--ink); }
.cat-chip.active { background: var(--ink); color: var(--paper); border-color: var(--ink); }

/* ── about: values + timeline + team ── */
.about-lead { font-family: var(--serif); font-size: clamp(26px, 3.2vw, 40px); line-height: 1.3; letter-spacing: -0.01em; max-width: 900px; }
.about-lead .em { font-style: italic; color: var(--green); }
.timeline { max-width: 760px; margin: 0 auto; }
.tl-item { display: grid; grid-template-columns: 130px 1fr; gap: 30px; padding: 28px 0; border-top: 1px solid var(--line); }
.tl-year { font-family: var(--serif); font-size: 30px; color: var(--butter-deep); }
.tl-item h3 { font-size: 21px; font-weight: 700; }
.tl-item p { margin-top: 8px; color: var(--ink-soft); font-size: 16px; }
.team-grid { display: grid; grid-template-columns: repeat(4, 1fr); gap: 24px; }
.tm { text-align: center; }
.tm .ava { width: 100%; aspect-ratio: 1; border-radius: var(--r-md); background: var(--paper-sunk); display: grid; place-items: center; margin-bottom: 14px; overflow: hidden; }
.tm .ava .mono { font-family: var(--serif); font-size: 44px; color: var(--green); }
.tm h3 { font-size: 18px; font-weight: 700; }
.tm p { font-size: 14px; color: var(--ink-soft); }
@media (max-width: 900px) { .team-grid { grid-template-columns: repeat(2, 1fr); } .tl-item { grid-template-columns: 80px 1fr; gap: 18px; } }

/* ── press ── */
.press-grid { display: grid; grid-template-columns: repeat(2, 1fr); gap: 20px; }
.press-card { background: var(--paper-2); border: 1px solid var(--line); border-radius: var(--r-md); padding: 30px; display: flex; flex-direction: column; gap: 12px; }
.press-card .src { font-weight: 800; font-size: 13px; letter-spacing: .08em; text-transform: uppercase; color: var(--clay); }
.press-card h3 { font-family: var(--serif); font-size: 23px; font-weight: 500; line-height: 1.2; }
.press-card .date { font-size: 14px; color: var(--ink-faint); margin-top: auto; }
.kit { background: var(--panel); color: var(--paper); border-radius: var(--r-lg); padding: 46px; display: flex; justify-content: space-between; align-items: center; gap: 30px; flex-wrap: wrap; }
.kit h3 { font-family: var(--serif); font-size: 30px; font-weight: 500; }
.kit p { color: rgba(246,241,225,.65); margin-top: 8px; max-width: 460px; }
@media (max-width: 720px) { .press-grid { grid-template-columns: 1fr; } }

/* ── careers ── */
.perks { display: grid; grid-template-columns: repeat(3, 1fr); gap: 20px; }
.perk { padding: 26px; border-radius: var(--r-md); background: var(--paper-2); border: 1px solid var(--line); }
.perk .feat-ico { margin-bottom: 14px; }
.perk h3 { font-size: 19px; font-weight: 700; }
.perk p { margin-top: 6px; font-size: 15px; color: var(--ink-soft); }
.jobs { max-width: 880px; margin: 0 auto; }
.job { display: flex; align-items: center; justify-content: space-between; gap: 20px; padding: 26px 30px; border: 1px solid var(--line); border-radius: var(--r-md); background: var(--paper-2); margin-bottom: 14px; transition: transform .2s, box-shadow .2s; }
.job:hover { transform: translateY(-2px); box-shadow: 0 12px 28px rgba(27,23,18,.08); }
.job-info h3 { font-size: 20px; font-weight: 700; }
.job-info .meta { font-size: 14px; color: var(--ink-soft); margin-top: 4px; display: flex; gap: 16px; flex-wrap: wrap; }
.job .arrow { width: 44px; height: 44px; border-radius: 50%; border: 1.5px solid var(--line-2); display: grid; place-items: center; flex-shrink: 0; }
.job .arrow svg { width: 20px; height: 20px; }
@media (max-width: 900px) { .perks { grid-template-columns: 1fr; } }

/* ── legal ── */
.legal-wrap {
  display: grid;
  grid-template-columns: 220px 1fr;
  gap: 48px;
  align-items: start;
}
.legal-toc {
  position: sticky;
  top: 130px;
  /* Prevent TOC links from overflowing their column */
  min-width: 0;
  overflow: hidden;
}
.legal-toc h4 {
  font-size: 12px; font-weight: 800; letter-spacing: .12em;
  text-transform: uppercase; color: var(--ink-faint); margin-bottom: 14px;
}
.legal-toc a {
  display: block;
  padding: 7px 0;
  font-size: 14px; font-weight: 600;
  color: var(--ink-soft); transition: color .2s;
  /* Prevent long section names from overflowing the 220px column */
  white-space: nowrap; overflow: hidden; text-overflow: ellipsis;
}
.legal-toc a:hover { color: var(--ink); }
.legal-toc a.active { color: var(--green-soft); }

/* Ensure body column doesn't create implicit overflow */
.legal-body { min-width: 0; }
.legal-body h2 {
  font-family: var(--serif); font-weight: 400;
  font-size: clamp(24px, 3vw, 34px);
  margin: 48px 0 10px; padding-top: 20px; letter-spacing: -0.01em;
}
.legal-body h2:first-child { margin-top: 0; padding-top: 0; }
/* TOC anchor offset — when a "On this page" chip/link jumps to a section,
   land the heading below the fixed header instead of hidden underneath it. */
.legal-body h2[id] { scroll-margin-top: 100px; }
.legal-body h3 { font-size: 18px; font-weight: 700; margin: 26px 0 8px; }
.legal-body p, .legal-body li { font-size: 16px; line-height: 1.75; color: var(--ink-soft); }
.legal-body p { margin-bottom: 14px; }
.legal-body ul { margin: 0 0 16px 22px; }
.legal-body li { margin-bottom: 8px; }
/* Table inside legal body */
.legal-body .cmp-table { font-size: 15px; }
.legal-meta { font-size: 15px; color: var(--ink-faint); margin-bottom: 40px; }

/* Tablet: hide sidebar TOC, single column */
@media (max-width: 900px) {
  .legal-wrap { grid-template-columns: 1fr; gap: 0; }
  .legal-toc {
    position: static;
    /* On tablet/mobile show TOC as a compact pill-row above the content */
    display: flex;
    flex-wrap: wrap;
    gap: 6px 14px;
    padding: 16px 0 24px;
    border-bottom: 1px solid var(--line);
    margin-bottom: 32px;
    overflow: visible;
  }
  .legal-toc h4 { width: 100%; margin-bottom: 10px; }
  .legal-toc a {
    white-space: nowrap; overflow: visible; text-overflow: clip;
    font-size: 13px; padding: 5px 12px;
    background: var(--paper-sunk); border-radius: 100px;
  }
  .legal-toc a:hover { background: var(--paper-2); color: var(--ink); }
}

/* Mobile: tighter content */
@media (max-width: 480px) {
  .legal-body h2 { font-size: 22px; margin: 36px 0 8px; }
  .legal-body h3 { font-size: 16px; }
  .legal-body p, .legal-body li { font-size: 15px; }
  .legal-toc { padding: 12px 0 20px; }
  .legal-toc a { font-size: 12px; padding: 4px 10px; }
}

/* Comparison tables: scroll horizontally on phones instead of being clipped
   by the page's overflow-x:hidden. Scoped to mobile so the table still fills
   100% width on larger screens. */
@media (max-width: 600px) {
  .cmp-table {
    display: block;
    overflow-x: auto;
    -webkit-overflow-scrolling: touch;
  }
  .cmp-table th, .cmp-table td { padding: 12px 14px; font-size: 14px; white-space: nowrap; }
}

/* ── CTA band ── */
.cta-band { background: var(--green); color: var(--paper); border-radius: 56px; padding: 72px 56px; text-align: center; position: relative; overflow: hidden; margin: 0 16px;
  background-image: radial-gradient(110% 90% at 50% -20%, rgba(69,176,125,.3), transparent 60%); }
.cta-band h2 { font-family: var(--serif); font-weight: 400; font-size: clamp(38px, 5vw, 76px); line-height: 1; letter-spacing: -0.02em; }
.cta-band p { margin: 20px auto 0; max-width: 520px; font-size: 19px; color: rgba(246,241,225,.78); }
.cta-band .phero-cta { justify-content: center; margin-top: 34px; }

/* spacing helpers */
.mt-s { margin-top: 40px; } .mt-m { margin-top: 64px; } .mt-l { margin-top: 90px; }
.center { text-align: center; }

/* one-off helpers (replace inline styles) */
.sec.pt-tight { padding-top: 10px; }
.blog-meta.center { justify-content: center; }

/* ── Small phones (≤480px) — inner page container padding ─────────────────── */
@media (max-width: 480px) {
  .container, .container-narrow { padding: 0 16px; }
  .page { padding-top: 120px; }
  .phero { padding-bottom: 40px; }
  .phero-sub { font-size: 17px; }
  /* Reduce sec padding on small phones */
  .sec { padding: 56px 0; }
  .sec-head { margin-bottom: 36px; }
}
