/* ═══════════════════════════════════════════════════════════════
   agentic-commerce.css — /agentic-commerce page
   Extends base sidratnam design with Cormorant Garamond serif
   and agentic commerce–specific layout patterns.
═══════════════════════════════════════════════════════════════ */

/* ── Local design tokens ── */
.ac-page {
  --serif:     'Cormorant Garamond', Georgia, serif;
  --sans:      'Inter', system-ui, sans-serif;
  --bg:        #0a0a0a;
  --bg-e:      #131313;
  --bg-card:   #161616;
  --ink:       #FAF6EE;
  --ink-dim:   #C8C0B4;
  --ink-faint: #7A7268;
  --gold:      #D4A017;
  --gold-soft: rgba(212,160,23,0.12);
  --rule:      #2A2823;
  --rule-s:    #3A3730;

  background: var(--bg);
  color: var(--ink);
  font-family: var(--sans);
  font-weight: 300;
  line-height: 1.6;
  -webkit-font-smoothing: antialiased;
  padding-bottom: 80px; /* for sticky bar */
  padding-top: 80px;   /* for nav */
}

/* ── Page wrapper ── */
.ac-page .page {
  max-width: 1280px;
  margin: 0 auto;
  padding: 0 40px;
}

/* ── Breadcrumb ── */
.ac-page .breadcrumb {
  padding: 32px 0 0;
  font-family: var(--font-mono);
  font-size: 0.65rem;
  letter-spacing: 0.08em;
  color: var(--ink-faint);
}
.ac-page .breadcrumb a { color: var(--ink-faint); text-decoration: none; }
.ac-page .breadcrumb a:hover { color: var(--gold); }
.ac-page .breadcrumb span { margin: 0 6px; }

/* ── Section label ── */
.ac-page .section-label {
  font-family: var(--font-mono);
  font-size: 11px;
  letter-spacing: 0.22em;
  text-transform: uppercase;
  color: var(--gold);
  display: flex;
  align-items: center;
  gap: 16px;
  margin-bottom: 32px;
}
.ac-page .section-label::before {
  content: "";
  width: 32px;
  height: 1px;
  background: var(--gold);
}

/* ── Section base ── */
.ac-page .section {
  padding: 100px 0;
  border-bottom: 1px solid var(--rule);
}
.ac-page .section h2 {
  font-family: var(--serif);
  font-size: clamp(40px, 5vw, 64px);
  font-weight: 400;
  line-height: 1.1;
  letter-spacing: -0.015em;
  margin-bottom: 56px;
  max-width: 900px;
}
.ac-page .section h2 em { font-style: italic; color: var(--gold); font-weight: 500; }

/* ── Hero ── */
.ac-page .hero {
  padding: 80px 0 100px;
  border-bottom: 1px solid var(--rule);
}
.ac-page .hero-meta {
  font-family: var(--font-mono);
  font-size: 11px;
  letter-spacing: 0.18em;
  text-transform: uppercase;
  color: var(--ink-faint);
  margin-bottom: 48px;
}
.ac-page .hero-meta span { color: var(--gold); }
.ac-page .hero h1 {
  font-family: var(--serif);
  font-size: clamp(48px, 7vw, 88px);
  font-weight: 400;
  line-height: 1.05;
  letter-spacing: -0.02em;
  margin-bottom: 40px;
  max-width: 1100px;
}
.ac-page .hero h1 em { font-style: italic; color: var(--gold); font-weight: 500; }
.ac-page .hero-sub {
  font-family: var(--serif);
  font-size: 26px;
  line-height: 1.55;
  color: var(--ink-dim);
  max-width: 760px;
  margin-bottom: 48px;
}
.ac-page .hero-tag {
  font-family: var(--font-mono);
  font-size: 11px;
  letter-spacing: 0.18em;
  text-transform: uppercase;
  color: var(--ink-faint);
  padding-top: 32px;
  border-top: 1px solid var(--rule);
  display: flex;
  gap: 32px;
  flex-wrap: wrap;
}
.ac-page .hero-tag span { color: var(--gold); }

/* ── Hero CTA block (just under hero, above proof) ── */
.ac-page .hero-cta-block {
  padding: 80px 0 80px;
  border-bottom: 1px solid var(--rule);
}
.ac-page .hero-cta-block h2 {
  font-family: var(--serif);
  font-size: clamp(36px, 4.5vw, 58px);
  font-weight: 400;
  line-height: 1.1;
  letter-spacing: -0.015em;
  margin-bottom: 28px;
  max-width: 800px;
}
.ac-page .hero-cta-block h2 em { font-style: italic; color: var(--gold); font-weight: 500; }
.ac-page .hero-cta-lede {
  font-family: var(--serif);
  font-size: 22px;
  line-height: 1.7;
  color: var(--ink-dim);
  max-width: 720px;
  margin-bottom: 28px;
}
.ac-page .hero-cta-sub {
  font-family: var(--serif);
  font-size: 18px;
  line-height: 1.65;
  color: var(--ink-faint);
  max-width: 680px;
  margin-bottom: 40px;
}
.ac-page .hero-cta-guarantee {
  font-family: var(--font-mono);
  font-size: 9px;
  letter-spacing: 0.18em;
  text-transform: uppercase;
  color: var(--ink-faint);
  margin-top: 20px;
  opacity: 0.7;
}

/* ── Portfolio cards ── */
.ac-page .cards {
  display: flex;
  flex-direction: row;
  gap: 24px;
}

/* Screenshot flip card */
.ac-page .card {
  flex: 1;
  display: block;
  text-decoration: none;
  position: relative;
  border: 1px solid var(--rule);
  overflow: hidden;
  aspect-ratio: 16/9;
  cursor: pointer;
  transition: border-color 0.3s, box-shadow 0.3s;
}
.ac-page .card:hover {
  border-color: var(--gold);
  box-shadow: 0 0 40px -10px rgba(212,160,23,0.35);
}
/* Hero screenshot — always visible */
.ac-page .card-hero-img {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: top;
  transition: opacity 0.45s ease;
  z-index: 1;
}
/* Agent screenshot — fades in on hover */
.ac-page .card-agent-img {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: top;
  opacity: 0;
  transition: opacity 0.45s ease;
  z-index: 2;
}
.ac-page .card:hover .card-hero-img { opacity: 0; }
.ac-page .card:hover .card-agent-img { opacity: 1; }

/* Label bar at bottom */
.ac-page .card-label {
  position: absolute;
  bottom: 0;
  left: 0;
  right: 0;
  z-index: 3;
  background: linear-gradient(to top, rgba(10,10,10,0.92) 0%, transparent 100%);
  padding: 48px 28px 22px;
  display: flex;
  justify-content: space-between;
  align-items: flex-end;
  transition: background 0.3s;
}
.ac-page .card-label-name {
  font-family: var(--font-mono);
  font-size: 11px;
  letter-spacing: 0.2em;
  text-transform: uppercase;
  color: var(--gold);
}
.ac-page .card-label-status {
  font-family: var(--font-mono);
  font-size: 10px;
  letter-spacing: 0.15em;
  text-transform: uppercase;
  color: var(--ink-faint);
}
.ac-page .card-label-cta {
  font-family: var(--font-mono);
  font-size: 11px;
  letter-spacing: 0.2em;
  text-transform: uppercase;
  color: var(--ink);
  opacity: 0;
  transition: opacity 0.3s;
  white-space: nowrap;
}
.ac-page .card:hover .card-label-cta { opacity: 1; }
.ac-page .card:hover .card-label-status { opacity: 0; }
.ac-page .portfolio-note {
  margin-top: 56px;
  padding: 24px 32px;
  border: 1px dashed var(--rule-s);
  font-family: var(--font-mono);
  font-size: 11px;
  letter-spacing: 0.15em;
  text-transform: uppercase;
  color: var(--ink-faint);
  text-align: center;
}
.ac-page .portfolio-note span { color: var(--gold); }

/* ── Hub and spoke ── */
.ac-page .hub-spoke {
  display: grid;
  grid-template-columns: 1fr 1.4fr 1fr;
  grid-template-rows: auto auto auto;
  gap: 32px;
  position: relative;
}
/* Flat grid positioning — each spoke is a direct grid child */
.ac-page .spoke--1 { grid-column: 1; grid-row: 1; }
.ac-page .spoke--2 { grid-column: 1; grid-row: 2; }
.ac-page .spoke--3 { grid-column: 3; grid-row: 1; }
.ac-page .spoke--4 { grid-column: 3; grid-row: 2; }
.ac-page .hub-center {
  grid-column: 2;
  grid-row: 1 / span 2;
  background: var(--bg-e);
  border: 1px solid var(--gold);
  padding: 18px;
  box-shadow: 0 0 80px -20px rgba(212,160,23,0.35);
}
.ac-page .hub-label {
  font-family: var(--font-mono);
  font-size: 10px;
  letter-spacing: 0.22em;
  text-transform: uppercase;
  color: var(--gold);
  margin-bottom: 14px;
  display: flex;
  justify-content: space-between;
}
.ac-page .hub-center img { width: 100%; height: auto; display: block; }
.ac-page .hub-divider {
  height: 1px;
  background: linear-gradient(to right, transparent, var(--gold), transparent);
  margin: 14px 0;
  opacity: 0.5;
}

/* SVG connector lines overlay */
.ac-page .hub-lines {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  pointer-events: none;
  z-index: 2;
  overflow: visible;
}

/* Spoke cards with full-card image backgrounds */
.ac-page .spoke {
  background: var(--bg-card);
  border: 1px solid var(--rule);
  padding: 28px 24px;
  position: relative;
  overflow: hidden;
}
.ac-page .spoke-bg {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
  opacity: 0.14;
  z-index: 0;
  pointer-events: none;
  filter: saturate(1.4) brightness(1.1);
}
.ac-page .spoke > *:not(.spoke-bg) {
  position: relative;
  z-index: 1;
}
.ac-page .spoke-num {
  font-family: var(--serif);
  font-size: 28px;
  font-style: italic;
  color: var(--gold);
  margin-bottom: 10px;
}
.ac-page .spoke h3 {
  font-family: var(--serif);
  font-size: 22px;
  font-weight: 500;
  color: var(--ink);
  margin-bottom: 10px;
}
.ac-page .spoke p { font-size: 16px; color: var(--ink-dim); line-height: 1.7; }
.ac-page .hub-seal {
  grid-column: 1 / span 3;
  grid-row: 3;
  padding: 40px;
  border: 1px solid var(--rule-s);
  background: var(--bg-e);
}
.ac-page .hub-seal p {
  font-family: var(--serif);
  font-size: 22px;
  line-height: 1.65;
  color: var(--ink-dim);
  margin-bottom: 20px;
  max-width: 900px;
}
.ac-page .hub-seal p:last-child { margin-bottom: 0; }
.ac-page .hub-seal strong { color: var(--ink); font-weight: 500; }
.ac-page .hub-seal em { font-style: italic; color: var(--gold); }
.ac-page .guarantee {
  margin-top: 48px;
  padding: 32px 40px;
  border: 1px solid var(--gold);
  background: var(--gold-soft);
  display: flex;
  align-items: center;
  gap: 28px;
}
.ac-page .guarantee-icon {
  font-family: var(--serif);
  font-size: 48px;
  font-style: italic;
  color: var(--gold);
  line-height: 1;
  flex-shrink: 0;
}
.ac-page .guarantee p {
  font-family: var(--serif);
  font-size: 19px;
  line-height: 1.5;
  color: var(--ink);
}
.ac-page .guarantee strong { color: var(--gold); font-weight: 500; }

/* ── JARVIS section ── */
.ac-page .jarvis-layout {
  display: grid;
  grid-template-columns: 1.1fr 1fr;
  gap: 80px;
  align-items: start;
}
.ac-page .jarvis-img-wrap {
  background: var(--bg-e);
  border: 1px solid var(--rule-s);
  padding: 20px;
}
.ac-page .jarvis-img-wrap img { width: 100%; height: auto; display: block; }
.ac-page .jarvis-copy p {
  font-family: var(--serif);
  font-size: 21px;
  line-height: 1.65;
  color: var(--ink-dim);
  margin-bottom: 20px;
}
.ac-page .jarvis-copy strong { color: var(--ink); font-weight: 500; }
.ac-page .cost-callout {
  margin: 32px 0;
  padding: 28px 32px;
  border-left: 3px solid var(--gold);
  background: var(--gold-soft);
}
.ac-page .cost-callout p {
  font-family: var(--serif);
  font-size: 21px;
  line-height: 1.6;
  color: var(--ink);
}
.ac-page .jarvis-bullets {
  margin-top: 28px;
  list-style: none;
  display: flex;
  flex-direction: column;
  gap: 12px;
}
.ac-page .jarvis-bullets li {
  font-family: var(--serif);
  font-size: 19px;
  color: var(--ink-dim);
  padding-left: 24px;
  position: relative;
  line-height: 1.5;
}
.ac-page .jarvis-bullets li::before {
  content: "–";
  position: absolute;
  left: 0;
  color: var(--gold);
}

/* ── Pricing ── */
.ac-page .pricing-grid {
  display: grid;
  grid-template-columns: 1fr 1fr 1fr;
  gap: 0;
  border: 1px solid var(--rule);
}
.ac-page .pricing-card {
  padding: 56px 48px;
  border-right: 1px solid var(--rule);
  background: var(--bg-e);
}
.ac-page .pricing-card:last-child { border-right: none; background: var(--bg-card); }
.ac-page .pricing-card.featured { background: var(--bg-card); border-right: 1px solid var(--rule); }
.ac-page .price-tag {
  font-family: var(--font-mono);
  font-size: 11px;
  letter-spacing: 0.22em;
  text-transform: uppercase;
  color: var(--gold);
  margin-bottom: 24px;
  display: flex;
  align-items: center;
  gap: 12px;
}
.ac-page .price-best {
  background: var(--gold);
  color: var(--bg);
  font-size: 9px;
  padding: 3px 8px;
  letter-spacing: 0.12em;
}
.ac-page .price-amount {
  font-family: var(--serif);
  font-size: 72px;
  font-weight: 400;
  line-height: 1;
  color: var(--ink);
  margin-bottom: 8px;
}
.ac-page .price-amount .currency { font-size: 32px; vertical-align: top; color: var(--gold); }
.ac-page .price-cycle {
  font-family: var(--font-mono);
  font-size: 11px;
  letter-spacing: 0.18em;
  text-transform: uppercase;
  color: var(--ink-faint);
  margin-bottom: 28px;
}
.ac-page .pricing-card h3 {
  font-family: var(--serif);
  font-size: 26px;
  font-weight: 500;
  color: var(--ink);
  margin-bottom: 16px;
  line-height: 1.2;
}
.ac-page .pricing-card h3 em { font-style: italic; color: var(--gold); }
.ac-page .pricing-card p {
  font-family: var(--serif);
  font-size: 18px;
  line-height: 1.7;
  color: var(--ink-dim);
  margin-bottom: 16px;
}
.ac-page .pricing-card p strong { color: var(--ink); font-weight: 500; }
.ac-page .price-bullets {
  list-style: none;
  display: flex;
  flex-direction: column;
  gap: 10px;
  margin-top: 20px;
  margin-bottom: 8px;
}
.ac-page .price-bullets li {
  font-family: var(--serif);
  font-size: 18px;
  color: var(--ink-dim);
  padding-left: 20px;
  position: relative;
  line-height: 1.4;
}
.ac-page .price-bullets li::before {
  content: "–";
  position: absolute;
  left: 0;
  color: var(--gold);
}
.ac-page .price-note {
  font-family: var(--font-mono);
  font-size: 10px;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: var(--ink-faint);
  margin-top: 24px;
  padding-top: 16px;
  border-top: 1px solid var(--rule);
}
.ac-page .pricing-card--link {
  display: block;
  text-decoration: none;
  color: inherit;
  cursor: pointer;
  transition: background 0.2s, box-shadow 0.2s;
}
.ac-page .pricing-card--link:hover {
  background: #1c1a16;
  box-shadow: inset 0 0 0 1px var(--gold);
}
.ac-page .price-apply {
  font-family: var(--font-mono);
  font-size: 11px;
  letter-spacing: 0.18em;
  text-transform: uppercase;
  color: var(--gold);
  margin-top: 20px;
  opacity: 0;
  transition: opacity 0.2s;
}
.ac-page .pricing-card--link:hover .price-apply { opacity: 1; }
.ac-page .pricing-rel {
  margin-top: 56px;
  padding: 40px;
  border: 1px solid var(--rule-s);
  background: var(--bg-e);
}
.ac-page .pricing-rel p {
  font-family: var(--serif);
  font-size: 22px;
  line-height: 1.65;
  color: var(--ink-dim);
  margin-bottom: 20px;
  max-width: 900px;
}
.ac-page .pricing-rel p:last-child { margin-bottom: 0; }
.ac-page .pricing-rel strong { color: var(--ink); font-weight: 500; }
.ac-page .pricing-rel em { font-style: italic; color: var(--gold); }

/* ── Filter (who this is for) ── */
.ac-page .filter-block {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 80px;
}
.ac-page .filter-col h3 {
  font-family: var(--font-mono);
  font-size: 11px;
  letter-spacing: 0.22em;
  text-transform: uppercase;
  margin-bottom: 28px;
  padding-bottom: 16px;
  border-bottom: 1px solid var(--rule);
}
.ac-page .filter-col.yes h3 { color: var(--gold); }
.ac-page .filter-col.no h3  { color: var(--ink-faint); }
.ac-page .filter-col ul { list-style: none; }
.ac-page .filter-col li {
  font-family: var(--serif);
  font-size: 21px;
  line-height: 1.5;
  padding: 14px 0;
  border-bottom: 1px solid var(--rule);
  color: var(--ink-dim);
}
.ac-page .filter-col.yes li { color: var(--ink); }
.ac-page .filter-col li::before {
  font-family: var(--font-mono);
  font-size: 12px;
  margin-right: 14px;
  display: inline-block;
  width: 20px;
}
.ac-page .filter-col.yes li::before { content: "+"; color: var(--gold); }
.ac-page .filter-col.no li::before  { content: "−"; color: var(--ink-faint); }

/* ── FAQ ── */
.ac-page .faq { max-width: 920px; }
.ac-page .faq-item {
  padding: 32px 0;
  border-bottom: 1px solid var(--rule);
  display: grid;
  grid-template-columns: 72px 1fr;
  gap: 28px;
}
.ac-page .faq-item:first-child { border-top: 1px solid var(--rule); }
.ac-page .faq-num {
  font-family: var(--serif);
  font-size: 28px;
  font-style: italic;
  color: var(--gold);
}
.ac-page .faq-q {
  font-family: var(--serif);
  font-size: 24px;
  font-weight: 500;
  color: var(--ink);
  margin-bottom: 12px;
  line-height: 1.4;
}
.ac-page .faq-a { font-size: 18px; line-height: 1.75; color: var(--ink-dim); }
.ac-page .faq-a strong { color: var(--ink); font-weight: 500; }

/* ── Sticky CTA bar ── */
.ac-sticky {
  position: fixed;
  bottom: 0; left: 0; right: 0;
  z-index: 40;
  background: rgba(10,10,10,0.96);
  backdrop-filter: blur(16px);
  border-top: 1px solid #3A3730;
  padding: 16px 40px;
}
.ac-sticky-inner {
  max-width: 1280px;
  margin: 0 auto;
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 24px;
}
.ac-sticky-tags {
  display: flex;
  gap: 24px;
  flex-wrap: wrap;
  font-family: 'JetBrains Mono', monospace;
  font-size: 14px;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: #D4A017;
  align-items: center;
}
.ac-sticky-tags .div { color: #5C564E; }
.ac-sticky-btn {
  background: #D4A017;
  color: #0a0a0a;
  border: none;
  font-family: 'JetBrains Mono', monospace;
  font-size: 14px;
  font-weight: 500;
  letter-spacing: 0.18em;
  text-transform: uppercase;
  padding: 16px 32px;
  cursor: pointer;
  text-decoration: none;
  display: inline-flex;
  align-items: center;
  gap: 10px;
  transition: background 0.2s, letter-spacing 0.2s;
  white-space: nowrap;
}
.ac-sticky-btn:hover { background: #E5B226; letter-spacing: 0.26em; }

/* ── Hero background image ── */
.ac-page .hero-bg-img {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: center;
  opacity: 0.38;
  z-index: 0;
  pointer-events: none;
  filter: saturate(1.3);
}
.ac-page .hero > *:not(.hero-bg-img) {
  position: relative;
  z-index: 1;
}

/* ── Section background images ── */
.ac-page .section {
  position: relative;
}
.ac-page .section-bg {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: center;
  opacity: 0.07;
  z-index: 0;
  pointer-events: none;
  filter: saturate(1.2);
}
.ac-page .section > *:not(.section-bg) {
  position: relative;
  z-index: 1;
}

/* ── Image lightbox ── */
.ac-img-trigger {
  cursor: zoom-in;
  display: block;
}
.ac-lightbox {
  position: fixed;
  inset: 0;
  z-index: 9000;
  background: rgba(0,0,0,0.92);
  display: none;
  align-items: center;
  justify-content: center;
  opacity: 0;
  transition: opacity 0.25s ease;
  cursor: zoom-out;
}
.ac-lightbox.visible { opacity: 1; }
.ac-lightbox img {
  max-width: 95vw;
  max-height: 92vh;
  width: auto;
  height: auto;
  display: block;
  box-shadow: 0 0 80px rgba(0,0,0,0.8);
  transform: scale(0.92);
  transition: transform 0.25s ease;
}
.ac-lightbox.visible img { transform: scale(1); }

/* ── Responsive ── */
@media (max-width: 1024px) {
  .ac-page .page { padding: 0 24px; }
  .ac-page .hub-spoke {
    grid-template-columns: 1fr;
    grid-template-rows: auto;
  }
  .ac-page .spoke--1, .ac-page .spoke--2,
  .ac-page .spoke--3, .ac-page .spoke--4 {
    grid-column: 1; grid-row: auto;
  }
  .ac-page .hub-center { grid-column: 1; grid-row: auto; }
  .ac-page .hub-seal { grid-column: 1; grid-row: auto; }
  .ac-page .hub-lines { display: none; }
  .ac-page .jarvis-layout { grid-template-columns: 1fr; gap: 40px; }
  .ac-page .pricing-grid { grid-template-columns: 1fr; }
  .ac-page .pricing-card { border-right: none; border-bottom: 1px solid var(--rule); }
  .ac-page .pricing-card:last-child { border-bottom: none; }
}
@media (max-width: 768px) {
  .ac-page .cards { flex-direction: column; }
  .ac-page .card { aspect-ratio: 4/3; }
  .ac-page .filter-block { grid-template-columns: 1fr; gap: 40px; }
  .ac-page .faq-item { grid-template-columns: 1fr; gap: 8px; }
  .ac-sticky { padding: 12px 20px; }
  .ac-sticky-tags { font-size: 12px; gap: 12px; }
}
