/* ============================================================================
   Token of Trust — home page-local styles
   ----------------------------------------------------------------------------
   Base tokens, reset, layout, typography, buttons, header/nav, proof strip,
   footer, forms and the trust/social-proof slots live in the shared theme
   (tot-navy.css, concept v1.1) — this file holds ONLY rules unique to the
   home page's hero composition, animated compliance console, section
   layouts and page-scoped responsive/motion rules.
   Consumes the shared token layer; do not re-declare :root here. Do not
   minify — one rule per line, keep the section headers.
   ========================================================================== */

/* Hero ------------------------------------------------------------- */
.hero { position: relative; overflow: hidden; padding: var(--s5) 0; }
.hero .blob {
  position: absolute;
  border-radius: 55% 45% 60% 40% / 50% 60% 40% 50%;
  filter: blur(2px);
  opacity: .5;
  z-index: 0;
  animation: blobDrift 16s ease-in-out infinite alternate;
}
.hero .blob.b1 { width: 440px; height: 440px; background: #e7f4f1; top: -140px; right: -90px; }
.hero .blob.b2 {
  width: 300px; height: 300px; background: #fdeee9;
  bottom: -120px; left: -70px; animation-delay: -7s;
}
@keyframes blobDrift { to { transform: translate(26px, -16px) rotate(7deg); } }
.hero-grid {
  display: grid;
  grid-template-columns: 1.02fr .98fr;
  gap: var(--s5);
  align-items: center;
  position: relative;
  z-index: 1;
}
.hero-ctas { display: flex; gap: 14px; margin-top: var(--s3); flex-wrap: wrap; }
.hero-cues { display: flex; flex-wrap: wrap; gap: 18px; margin-top: 18px; }
.hero-cues span {
  font-size: .84rem; font-weight: 600; color: var(--muted);
  display: flex; align-items: center; gap: 7px;
}
.hero-cues svg {
  width: 15px; height: 15px; stroke: var(--green); stroke-width: 3; fill: none;
  stroke-linecap: round; stroke-linejoin: round; flex-shrink: 0;
}

/* Hero visual: shopper card + compliance console ------------------- */
.hero-stage { position: relative; min-height: 470px; z-index: 1; }
.console {
  position: absolute; right: 0; top: 34px; width: min(400px, 92%);
  background: var(--navy); border-radius: var(--r);
  box-shadow: 0 26px 60px rgba(16, 41, 75, .35); color: #dbe6f5; overflow: hidden;
}
.console-head {
  display: flex; justify-content: space-between; align-items: center;
  padding: 13px 18px; border-bottom: 1px solid var(--navy-soft); font-size: .78rem;
}
.console-head b { color: #fff; }
.console-head .live {
  font-family: var(--mono); font-size: .66rem; color: #7fe3b8;
  display: flex; align-items: center; gap: 6px;
}
.console-head .live i {
  width: 7px; height: 7px; border-radius: 50%; background: #7fe3b8;
  animation: pulse 1.8s infinite;
}
.console-body { padding: 14px 18px 18px; display: flex; flex-direction: column; gap: 8px; }
.c-row {
  display: flex; align-items: center; gap: 10px; background: var(--navy-2);
  border: 1px solid var(--navy-soft); border-radius: 10px; padding: 9px 12px;
  font-size: .76rem; opacity: .45; transition: opacity .4s, border-color .4s;
}
.c-row.on { opacity: 1; border-color: rgba(127, 227, 184, .5); }
.c-row .ic {
  width: 18px; height: 18px; border-radius: 50%; display: grid;
  place-items: center; flex-shrink: 0; background: rgba(127, 227, 184, .15);
}
.c-row .ic svg {
  width: 10px; height: 10px; stroke: #7fe3b8; stroke-width: 3; fill: none;
  stroke-linecap: round; stroke-linejoin: round;
}
.c-row.warn .ic { background: rgba(249, 115, 98, .18); }
.c-row.warn .ic svg { stroke: var(--coral); }
.c-row small {
  color: #8fa5c4; margin-left: auto; font-family: var(--mono);
  font-size: .62rem; white-space: nowrap;
}
.audit-line {
  font-family: var(--mono); font-size: .64rem; color: #8fa5c4;
  padding: 10px 4px 0; border-top: 1px dashed var(--navy-soft);
  margin-top: 6px; min-height: 2.1em;
}
.audit-line b { color: #7fe3b8; font-weight: 700; }
.shopper {
  position: absolute; left: 0; bottom: 22px; width: 260px; background: var(--card);
  border-radius: var(--r); box-shadow: var(--shadow); padding: 20px;
  text-align: center; animation: bob 6s ease-in-out infinite; z-index: 2;
}
@keyframes bob { 0%, 100% { transform: translateY(0); } 50% { transform: translateY(-11px); } }
.shopper .avatar {
  width: 64px; height: 64px; border-radius: 50%; background: #e7f4f1;
  display: grid; place-items: center; margin: 0 auto 10px;
}
.shopper h3 { font-size: .98rem; font-weight: 800; }
.shopper p { font-size: .76rem; color: var(--muted); }
.sh-progress {
  height: 7px; border-radius: 5px; background: #eef1ec;
  overflow: hidden; margin: 12px 0 8px;
}
.sh-progress i {
  display: block; height: 100%; width: 0; border-radius: 5px;
  background: var(--grad); transition: width 1.2s ease;
}
.shopper.checking .sh-progress i { width: 78%; }
.shopper.approved .sh-progress i { width: 100%; background: var(--green); }
.sh-status { font-size: .78rem; font-weight: 800; color: var(--muted); min-height: 1.4em; }
.shopper.approved .sh-status { color: var(--color-success); }
.cart-chip {
  position: absolute; left: 34px; top: 8px; background: #fff;
  border: 1px solid var(--line); border-radius: 999px; box-shadow: var(--shadow-soft);
  padding: 8px 16px; font-size: .76rem; font-weight: 700; color: var(--ink);
  display: flex; align-items: center; gap: 8px; opacity: 0;
  transform: translateY(8px); transition: opacity .5s, transform .5s; z-index: 3;
}
.cart-chip.show { opacity: 1; transform: none; }
.cart-chip .ok { color: var(--green); }

/* Before / After --------------------------------------------------- */
.ba-grid {
  display: grid; grid-template-columns: 1fr auto 1fr; gap: var(--s3);
  align-items: stretch; margin-top: var(--s4);
}
.ba-col {
  background: var(--card); border: 1px solid var(--line);
  border-radius: var(--r); padding: var(--s3);
}
.ba-col h3 {
  font-size: 1.02rem; font-weight: 800; margin-bottom: 14px;
  display: flex; align-items: center; gap: 9px;
}
.ba-col.before h3 { color: #b3452e; }
.ba-col.after h3 { color: var(--color-success); }
.mess { display: flex; flex-wrap: wrap; gap: 9px; }
.mess span {
  font-size: .78rem; font-weight: 700; background: #faf3ef;
  border: 1px dashed #e3c9bd; color: #8a5a48; border-radius: 9px;
  padding: 7px 12px; transform: rotate(var(--tilt, 0deg));
}
.mess span:nth-child(odd) { --tilt: -1.6deg; }
.mess span:nth-child(even) { --tilt: 1.4deg; }
.mess-note { font-size: .8rem; color: var(--muted); margin-top: 14px; font-style: italic; }
.ba-arrow { display: grid; place-items: center; color: var(--teal); }
.ba-arrow svg {
  width: 36px; height: 36px; stroke: currentColor; stroke-width: 2.4;
  fill: none; stroke-linecap: round; stroke-linejoin: round;
}
.after-stack { display: flex; flex-direction: column; gap: 9px; }
.after-stack .row {
  display: flex; align-items: center; gap: 10px; background: #f0f8f3;
  border: 1px solid #d3e9db; border-radius: 10px; padding: 9px 13px;
  font-size: .82rem; font-weight: 700; color: var(--ink);
}
.after-stack .row svg {
  width: 15px; height: 15px; stroke: var(--green); stroke-width: 3;
  fill: none; stroke-linecap: round; stroke-linejoin: round; flex-shrink: 0;
}
.after-note { font-size: .8rem; color: var(--muted); margin-top: 14px; }

/* Journey ---------------------------------------------------------- */
.journey-wrap {
  background: #fff; border: 1px solid var(--line); border-radius: 28px;
  padding: var(--s4); margin-top: var(--s4); position: relative; overflow: hidden;
}
.journey-wrap::before {
  content: ""; position: absolute; width: 300px; height: 300px;
  border-radius: 52% 48% 60% 40% / 55% 45% 55% 45%; background: #f3faf7;
  top: -130px; right: -90px;
}
.journey {
  display: grid; grid-template-columns: repeat(7, 1fr);
  gap: 10px; position: relative; z-index: 1;
}
.jstep {
  text-align: center; padding: 14px 6px; opacity: 0; transform: translateY(18px);
  transition: opacity .5s, transform .5s cubic-bezier(.34, 1.4, .64, 1);
}
.jstep.in { opacity: 1; transform: none; }
.jstep .jdot {
  width: 46px; height: 46px; border-radius: 50%; display: grid;
  place-items: center; margin: 0 auto 10px; background: #e7f4f1;
  font-size: 1.05rem; position: relative;
}
.jstep.flag .jdot { background: #fdeee9; }
.jstep h3 { font-size: .82rem; font-weight: 800; margin-bottom: 4px; color: var(--navy); }
.jstep p { font-size: .72rem; color: var(--muted); line-height: 1.5; }
.jline {
  position: absolute; top: 37px; left: 8%; right: 8%; height: 2px;
  background: repeating-linear-gradient(90deg, var(--line) 0 8px, transparent 8px 16px);
  z-index: 0;
}

/* Pillars ---------------------------------------------------------- */
.pillars {
  display: grid; grid-template-columns: repeat(2, 1fr);
  gap: var(--s3); margin-top: var(--s4);
}
.pillar {
  background: var(--card); border: 1px solid var(--line); border-radius: var(--r);
  padding: var(--s3); transition: transform .2s, box-shadow .2s;
  display: flex; gap: 18px; align-items: flex-start;
}
.pillar:hover { transform: translateY(-5px); box-shadow: var(--shadow); }
.pillar .icon {
  width: 48px; height: 48px; border-radius: 14px; background: #eaf5f2;
  display: grid; place-items: center; flex-shrink: 0;
}
.pillar.warm .icon { background: #fdeee9; }
.pillar .icon svg {
  width: 24px; height: 24px; stroke: var(--teal); fill: none;
  stroke-width: 1.9; stroke-linecap: round; stroke-linejoin: round;
}
.pillar.warm .icon svg { stroke: var(--coral); }
.pillar h3 { font-size: 1.08rem; font-weight: 800; margin-bottom: 6px; color: var(--navy); }
.pillar p { color: var(--muted); font-size: .92rem; }
.pillar .when {
  display: block; font-size: .76rem; font-weight: 700;
  color: var(--teal-ink); margin-top: 9px;
}
.second-row { display: flex; flex-wrap: wrap; gap: 12px; margin-top: var(--s3); }
.second-row span {
  font-size: .84rem; font-weight: 700; background: #fff;
  border: 1px solid var(--line); border-radius: 999px;
  padding: 10px 20px; color: var(--ink);
}
.second-row b { color: var(--teal-ink); }

/* Industries ------------------------------------------------------- */
.ind-section { background: var(--navy); color: #dbe6f5; }
.ind-section .kicker { color: #7fe3b8; }
.ind-section h2 { color: #fff; }
.ind-section .section-lede { color: #9fb2cb; }
.ind-grid {
  display: grid; grid-template-columns: repeat(3, 1fr);
  gap: var(--s2); margin-top: var(--s4);
}
.ind {
  background: var(--navy-2); border: 1px solid var(--navy-soft);
  border-radius: var(--r-sm); padding: 22px;
  transition: border-color .2s, transform .2s;
}
.ind:hover { border-color: #7fe3b8; transform: translateY(-4px); }
.ind h3 {
  font-size: 1rem; font-weight: 800; color: #fff; margin-bottom: 6px;
  display: flex; align-items: center; gap: 9px;
}
.ind h3 .em { font-size: 1.1rem; }
.ind p { font-size: .85rem; color: #9fb2cb; }

/* Integrations ----------------------------------------------------- */
.int-row {
  display: flex; flex-wrap: wrap; gap: 12px;
  justify-content: center; margin-top: var(--s4);
}
.int-badge {
  font-weight: 700; font-size: .92rem; background: #fff; border: 1px solid var(--line);
  border-radius: 12px; padding: 12px 24px; transition: transform .15s, border-color .15s;
}
.int-badge:hover { transform: translateY(-3px); border-color: var(--teal); }
.flow-note {
  display: flex; flex-wrap: wrap; gap: 10px;
  justify-content: center; margin-top: var(--s3);
}
.flow-note span {
  font-size: .8rem; font-weight: 600; color: var(--muted);
  background: #f1efe9; border-radius: 999px; padding: 7px 16px;
}
.api-card {
  max-width: 620px; margin: var(--s4) auto 0; background: var(--navy);
  border-radius: var(--r-sm); overflow: hidden; font-family: var(--mono);
  font-size: .8rem; box-shadow: var(--shadow);
}
.api-card .bar {
  display: flex; gap: 7px; padding: 11px 16px;
  border-bottom: 1px solid var(--navy-soft);
}
.api-card .bar i { width: 10px; height: 10px; border-radius: 50%; background: var(--navy-soft); }
.api-card pre { padding: 18px; color: #c9d8ef; line-height: 1.8; white-space: pre-wrap; }
.tok-k { color: #7fe3b8; }
.tok-s { color: #9db8e8; }
.tok-c { color: #8299b8; }

/* Privacy ---------------------------------------------------------- */
.privacy-band {
  background: linear-gradient(135deg, var(--navy), var(--navy-2)); border-radius: 28px;
  color: #fff; padding: var(--s5); display: grid; grid-template-columns: auto 1fr;
  gap: var(--s4); align-items: center; position: relative; overflow: hidden;
}
.privacy-band::after {
  content: ""; position: absolute; width: 340px; height: 340px;
  border-radius: 50% 50% 45% 55% / 55% 45% 55% 45%;
  background: rgba(127, 227, 184, .06); bottom: -160px; right: -110px;
}
.privacy-band .heart { width: 120px; height: 130px; flex-shrink: 0; }
.heartbeat { animation: heartbeat 2.6s ease-in-out infinite; transform-origin: center; }
@keyframes heartbeat {
  0%, 100% { transform: scale(1); }
  12% { transform: scale(1.1); }
  24% { transform: scale(1); }
  36% { transform: scale(1.06); }
  48% { transform: scale(1); }
}
.privacy-band h2 { color: #fff; margin-top: 6px; }
.privacy-band .kicker { color: #7fe3b8; }
.privacy-band p { color: #b8c8de; max-width: 60ch; }
.priv-points { display: flex; flex-wrap: wrap; gap: 10px; margin-top: var(--s2); }
.priv-points span {
  font-size: .78rem; font-weight: 700; border: 1.5px solid rgba(255, 255, 255, .28);
  border-radius: 999px; padding: 7px 15px; color: #dbe6f5;
}

/* Proof cards / quotes / ratings ----------------------------------- */
.quotes {
  display: grid; grid-template-columns: repeat(3, 1fr);
  gap: var(--s3); margin-top: var(--s4);
}
.quote {
  background: var(--card); border: 1px solid var(--line); border-radius: var(--r);
  padding: var(--s3); display: flex; flex-direction: column;
}
.quote .metric {
  font-size: 1.55rem; font-weight: 800; color: var(--teal-ink); letter-spacing: -.02em;
}
.quote .metric.warm { color: var(--coral); }
.quote .metric.deep { color: var(--navy); }
.quote p { margin: 10px 0 14px; font-size: .93rem; color: var(--ink); flex: 1; }
.quote footer { color: var(--muted); font-size: .8rem; font-weight: 600; }
.ratings-row {
  display: flex; gap: 14px; justify-content: center;
  margin-top: var(--s3); flex-wrap: wrap;
}
.rating-card {
  background: #fff; border: 1px solid var(--line); border-radius: 12px;
  padding: 11px 22px; font-weight: 800; color: var(--navy);
}
.rating-card small {
  display: block; font-size: .68rem; font-weight: 700; letter-spacing: .08em;
  text-transform: uppercase; color: var(--muted);
}

/* FAQ ------------------------------------------------------------- */
.faq { max-width: 780px; margin: var(--s4) auto 0; }
.faq details {
  border: 1px solid var(--line); border-radius: 14px;
  margin-bottom: 12px; background: #fff; overflow: hidden;
}
.faq summary {
  padding: 18px 22px; font-weight: 700; cursor: pointer; list-style: none;
  display: flex; justify-content: space-between; gap: 12px; color: var(--navy);
}
.faq summary::-webkit-details-marker { display: none; }
.faq summary::after {
  content: "+"; font-size: 1.35rem; color: var(--teal-ink);
  font-weight: 600; transition: transform .2s;
}
.faq details[open] summary::after { transform: rotate(45deg); }
.faq details p { padding: 0 22px 18px; color: var(--muted); }

/* Final CTA ------------------------------------------------------- */
.cta-band {
  background: #fff; border: 1px solid var(--line); border-radius: 28px;
  padding: var(--s5); text-align: center; position: relative; overflow: hidden;
}
.cta-band::before {
  content: ""; position: absolute; width: 380px; height: 380px;
  border-radius: 55% 45% 60% 40% / 50% 60% 40% 50%; background: #eaf5f2;
  top: -190px; left: -120px;
}
.cta-band::after {
  content: ""; position: absolute; width: 280px; height: 280px;
  border-radius: 45% 55% 40% 60% / 60% 45% 55% 40%; background: #fdeee9;
  bottom: -150px; right: -80px;
}
.cta-band > * { position: relative; z-index: 1; }
.cta-band p { color: var(--muted); max-width: 52ch; margin: 0 auto; }
.cta-band .hero-ctas { justify-content: center; }

/* Responsive (page compositions; base + nav handled by the theme) - */
@media (max-width: 980px) {
  .hero-grid { grid-template-columns: 1fr; }
  .hero-stage { min-height: 440px; }
  .journey { grid-template-columns: repeat(4, 1fr); }
  .jline { display: none; }
  .pillars { grid-template-columns: 1fr; }
  .ba-grid { grid-template-columns: 1fr; }
  .ba-arrow svg { transform: rotate(90deg); }
  .ind-grid { grid-template-columns: 1fr 1fr; }
  .quotes { grid-template-columns: 1fr; }
  .privacy-band { grid-template-columns: 1fr; text-align: center; }
  .privacy-band .heart { margin: 0 auto; }
  .priv-points { justify-content: center; }
}
@media (max-width: 600px) {
  .journey { grid-template-columns: repeat(2, 1fr); }
  .ind-grid { grid-template-columns: 1fr; }
  .console { position: relative; top: 0; width: 100%; }
  .shopper { position: relative; bottom: 0; margin: -30px auto 0; left: 0; }
  .cart-chip { position: relative; left: 0; top: 0; margin: 14px auto 0; width: fit-content; }
}
@media (prefers-reduced-motion: reduce) {
  .jstep, .c-row, .cart-chip { opacity: 1; transform: none; }
}

/* Dark theme — literal light surfaces + decorative tints */
@media (prefers-color-scheme: dark) {
  :root:not([data-theme="light"]) {
    .hero .blob.b1 { background: rgba(43, 179, 166, .12); }
    .hero .blob.b2 { background: rgba(255, 148, 120, .1); }
    .shopper .avatar, .jstep .jdot, .pillar .icon { background: rgba(43, 179, 166, .16); }
    .jstep.flag .jdot, .pillar.warm .icon { background: rgba(255, 148, 120, .14); }
    .sh-progress { background: #1c2a3f; }
    .cart-chip, .journey-wrap, .second-row span, .int-badge, .rating-card, .faq details, .cta-band { background: var(--card); }
    .journey-wrap::before { background: rgba(43, 179, 166, .08); }
    .flow-note span { background: #172137; }
    .cta-band::before { background: rgba(43, 179, 166, .1); }
    .cta-band::after { background: rgba(255, 148, 120, .1); }
    .mess span { background: #2a1c17; border-color: #4a3226; color: #ffb59e; }
    .after-stack .row { background: #0f2a1e; border-color: #1c4230; }
    .jstep h3, .pillar h3, .quote .metric.deep, .rating-card, .faq summary { color: var(--ink); }
  }
}
:root[data-theme="dark"] .hero .blob.b1 { background: rgba(43, 179, 166, .12); }
:root[data-theme="dark"] .hero .blob.b2 { background: rgba(255, 148, 120, .1); }
:root[data-theme="dark"] .shopper .avatar,
:root[data-theme="dark"] .jstep .jdot,
:root[data-theme="dark"] .pillar .icon { background: rgba(43, 179, 166, .16); }
:root[data-theme="dark"] .jstep.flag .jdot,
:root[data-theme="dark"] .pillar.warm .icon { background: rgba(255, 148, 120, .14); }
:root[data-theme="dark"] .sh-progress { background: #1c2a3f; }
:root[data-theme="dark"] .cart-chip,
:root[data-theme="dark"] .journey-wrap,
:root[data-theme="dark"] .second-row span,
:root[data-theme="dark"] .int-badge,
:root[data-theme="dark"] .rating-card,
:root[data-theme="dark"] .faq details,
:root[data-theme="dark"] .cta-band { background: var(--card); }
:root[data-theme="dark"] .journey-wrap::before { background: rgba(43, 179, 166, .08); }
:root[data-theme="dark"] .flow-note span { background: #172137; }
:root[data-theme="dark"] .cta-band::before { background: rgba(43, 179, 166, .1); }
:root[data-theme="dark"] .cta-band::after { background: rgba(255, 148, 120, .1); }
:root[data-theme="dark"] .mess span { background: #2a1c17; border-color: #4a3226; color: #ffb59e; }
:root[data-theme="dark"] .after-stack .row { background: #0f2a1e; border-color: #1c4230; }
:root[data-theme="dark"] .jstep h3,
:root[data-theme="dark"] .pillar h3,
:root[data-theme="dark"] .quote .metric.deep,
:root[data-theme="dark"] .rating-card,
:root[data-theme="dark"] .faq summary { color: var(--ink); }
