/* ============================================================
   nouz.co — Product detail pages
   Reuses tokens from assets/colors_and_type.css + styles.css.
   Adds dedicated marketing-page sections used by each of the
   seven product pages (Home, P&L, Revenue, Expenses, Products,
   Fixed Costs, Statistics).
   ============================================================ */

/* ───── PRODUCT HERO ─────────────────────────────────── */
.ph-hero {
  position: relative;
  padding: 120px 0 64px;
  overflow: hidden;
  border-bottom: 1px solid var(--border-default);
}
.ph-hero::before {
  /* Background gradient removed per design feedback — keep the
     pseudo-element so the layout's z-index stacking stays the same. */
  content: '';
  position: absolute; inset: 0;
  background: transparent;
  pointer-events: none;
  z-index: 0;
}
.ph-hero > .wrap { position: relative; z-index: 1; }

.ph-hero-grid {
  display: grid;
  grid-template-columns: minmax(0, 1fr) minmax(0, 1.05fr);
  gap: 64px;
  align-items: center;
}
@media (max-width: 980px) {
  .ph-hero-grid { grid-template-columns: 1fr; gap: 48px; }
  .ph-hero { padding: 96px 0 48px; }
}

.ph-crumb {
  display: inline-flex; align-items: center; gap: 8px;
  font-family: var(--font-mono);
  font-size: 11px;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  color: var(--fg-muted);
  margin-bottom: 18px;
}
.ph-crumb a { color: var(--fg-muted); transition: color 180ms ease; }
.ph-crumb a:hover { color: var(--ink); }
.ph-crumb .sep { opacity: 0.5; }
.ph-crumb .here { color: var(--ink); font-weight: 500; }

.ph-eyebrow {
  display: inline-flex; align-items: center; gap: 8px;
  font-family: var(--font-mono);
  font-size: 11px;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: var(--fg-muted);
  padding: 6px 12px 6px 9px;
  border-radius: 999px;
  background: #fff;
  border: 1px solid var(--border-default);
  box-shadow: 0 1px 0 rgba(255,255,255,0.7) inset, 0 6px 18px -10px rgba(23,23,26,0.06);
}
.ph-eyebrow .d {
  width: 6px; height: 6px; border-radius: 99px;
  background: var(--accent, var(--color-accent-positive));
  box-shadow: 0 0 0 3px var(--accent-glow, rgba(0,128,96,0.14));
}

.ph-title {
  margin: 22px 0 0;
  font-family: var(--font-sans);
  font-size: clamp(40px, 5.2vw, 64px);
  line-height: 1.02;
  letter-spacing: -0.028em;
  font-weight: 600;
  color: var(--ink);
  text-wrap: balance;
}
.ph-title em {
  font-style: italic;
  font-weight: 500;
}
.ph-title .accent {
  position: relative;
  font-style: italic;
  font-weight: 500;
}
.ph-title .accent::after {
  content: '';
  position: absolute;
  left: 0; right: 0; bottom: 0.06em;
  height: 0.36em;
  background: var(--accent-tint, rgba(0,128,96,0.18));
  z-index: -1;
}

.ph-sub {
  margin: 24px 0 0;
  font-size: 19px;
  line-height: 1.55;
  color: var(--fg-default);
  max-width: 520px;
  text-wrap: pretty;
}
.ph-sub em { font-style: italic; color: var(--ink); font-weight: 500; }

.ph-ctas {
  margin-top: 32px;
  display: flex; gap: 12px; flex-wrap: wrap;
}

/* Hero side mock card — the per-product preview */
.ph-mock {
  position: relative;
  background: #fff;
  border: 1px solid var(--border-default);
  border-radius: 22px;
  overflow: hidden;
  box-shadow: 0 1px 0 rgba(255,255,255,0.6) inset, 0 40px 100px -36px rgba(23,23,26,0.18);
}
.ph-mock-chrome {
  display: flex; align-items: center; gap: 12px;
  padding: 12px 16px;
  border-bottom: 1px solid var(--border-default);
  background: linear-gradient(180deg, #FAFAFA, #F4F3EE);
}
.ph-mock-chrome .dots { display: flex; gap: 6px; }
.ph-mock-chrome .dots i {
  width: 9px; height: 9px; border-radius: 99px;
  background: var(--border-default);
}
.ph-mock-chrome .url {
  font-family: var(--font-mono);
  font-size: 11.5px;
  color: var(--fg-muted);
  letter-spacing: 0.02em;
}
.ph-mock-chrome .url strong { color: var(--ink); font-weight: 600; }
.ph-mock-chrome .live {
  margin-left: auto;
  display: inline-flex; align-items: center; gap: 6px;
  font-family: var(--font-mono);
  font-size: 10px;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  color: var(--fg-muted);
}
.ph-mock-chrome .live .d {
  width: 6px; height: 6px; border-radius: 99px;
  background: var(--color-accent-positive);
  box-shadow: 0 0 0 3px rgba(0,128,96,0.14);
}
.ph-mock-body {
  padding: 28px 28px 32px;
  display: flex;
  flex-direction: column;
  gap: 18px;
}

/* Section heading */
.ph-section {
  padding: 96px 0;
  border-bottom: 1px solid var(--border-default);
}
.ph-section-head {
  max-width: 720px;
  margin: 0 0 56px;
}
.ph-section-eyebrow {
  display: inline-flex; align-items: center; gap: 8px;
  font-family: var(--font-mono);
  font-size: 11px;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: var(--fg-muted);
}
.ph-section-eyebrow::before {
  content: '';
  width: 24px; height: 1px;
  background: var(--ink);
}
.ph-section-h {
  margin: 16px 0 0;
  font-size: clamp(32px, 3.8vw, 48px);
  line-height: 1.06;
  letter-spacing: -0.024em;
  font-weight: 600;
  color: var(--ink);
  text-wrap: balance;
}
.ph-section-h em { font-style: italic; font-weight: 500; }
.ph-section-sub {
  margin: 20px 0 0;
  font-size: 17px;
  line-height: 1.55;
  color: var(--fg-default);
  max-width: 620px;
}

/* ───── FEATURE CARDS ──────────────────────────────────── */
.ph-feats {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 20px;
}
@media (max-width: 820px) { .ph-feats { grid-template-columns: 1fr; } }
.ph-feat {
  position: relative;
  background: #fff;
  border: 1px solid var(--border-default);
  border-radius: 20px;
  padding: 32px 32px 28px;
  display: flex;
  flex-direction: column;
  gap: 16px;
  overflow: hidden;
  transition: border-color 220ms ease, transform 220ms var(--ease-out-quint);
}
.ph-feat:hover {
  border-color: rgba(23,23,26,0.18);
  transform: translateY(-2px);
}
.ph-feat-ic {
  width: 40px; height: 40px;
  border-radius: 10px;
  display: grid; place-items: center;
  background: var(--accent-tint, rgba(0,128,96,0.10));
  color: var(--accent, var(--color-accent-positive));
  margin-bottom: 4px;
}
.ph-feat-ic svg { width: 20px; height: 20px; }
.ph-feat-t {
  margin: 0;
  font-size: 20px;
  font-weight: 600;
  letter-spacing: -0.014em;
  color: var(--ink);
}
.ph-feat-t em { font-style: italic; font-weight: 500; }
.ph-feat-d {
  margin: 0;
  font-size: 15px;
  line-height: 1.55;
  color: var(--fg-default);
}

/* Wide feature card variant */
.ph-feat-wide {
  grid-column: span 2;
  display: grid;
  grid-template-columns: minmax(0, 1fr) minmax(0, 1.1fr);
  gap: 32px;
  align-items: center;
  padding: 36px 36px 32px;
}
@media (max-width: 820px) {
  .ph-feat-wide { grid-column: span 1; grid-template-columns: 1fr; }
}
.ph-feat-wide .ph-feat-media {
  align-self: stretch;
  background: var(--bg-app);
  border: 1px solid var(--border-default);
  border-radius: 14px;
  padding: 18px;
  display: flex;
  align-items: center;
  justify-content: center;
  min-height: 200px;
}

/* ───── WORKFLOW ──────────────────────────────────────── */
.ph-workflow {
  background: var(--bg-muted);
}
.ph-flow {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 20px;
  counter-reset: flow;
}
@media (max-width: 820px) { .ph-flow { grid-template-columns: 1fr; } }
.ph-flow-step {
  position: relative;
  background: #fff;
  border: 1px solid var(--border-default);
  border-radius: 20px;
  padding: 32px 28px 28px;
  display: flex;
  flex-direction: column;
  gap: 12px;
  counter-increment: flow;
}
.ph-flow-step::before {
  content: counter(flow, decimal-leading-zero);
  font-family: var(--font-mono);
  font-size: 11.5px;
  letter-spacing: 0.12em;
  color: var(--fg-muted);
  font-weight: 500;
}
.ph-flow-step h4 {
  margin: 0;
  font-size: 20px;
  font-weight: 600;
  letter-spacing: -0.014em;
  color: var(--ink);
}
.ph-flow-step h4 em { font-style: italic; font-weight: 500; }
.ph-flow-step p {
  margin: 0;
  font-size: 14.5px;
  line-height: 1.55;
  color: var(--fg-default);
}
.ph-flow-step .meta {
  margin-top: auto;
  padding-top: 12px;
  font-family: var(--font-mono);
  font-size: 11px;
  letter-spacing: 0.06em;
  color: var(--accent, var(--color-accent-positive));
  display: inline-flex; align-items: center; gap: 8px;
}
.ph-flow-step .meta::before {
  content: '';
  width: 6px; height: 6px; border-radius: 99px;
  background: currentColor;
}

/* ───── SCENARIOS ─────────────────────────────────────── */
.ph-scenarios {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 0;
  border: 1px solid var(--border-default);
  border-radius: 22px;
  background: #fff;
  overflow: hidden;
}
@media (max-width: 820px) { .ph-scenarios { grid-template-columns: 1fr; } }
.ph-scenario {
  padding: 36px 32px;
  display: flex;
  flex-direction: column;
  gap: 12px;
  border-right: 1px solid var(--border-default);
}
.ph-scenarios > .ph-scenario:last-child { border-right: none; }
@media (max-width: 820px) {
  .ph-scenario { border-right: none; border-bottom: 1px solid var(--border-default); }
  .ph-scenarios > .ph-scenario:last-child { border-bottom: none; }
}
.ph-scenario .when {
  font-family: var(--font-mono);
  font-size: 10.5px;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: var(--accent, var(--color-accent-positive));
  font-weight: 600;
}
.ph-scenario h4 {
  margin: 0;
  font-size: 19px;
  font-weight: 600;
  letter-spacing: -0.014em;
  color: var(--ink);
  text-wrap: balance;
}
.ph-scenario h4 em { font-style: italic; font-weight: 500; }
.ph-scenario p {
  margin: 0;
  font-size: 14.5px;
  line-height: 1.55;
  color: var(--fg-default);
}
.ph-scenario .quote {
  margin-top: 8px;
  padding-top: 16px;
  border-top: 1px solid var(--border-default);
  font-style: italic;
  font-size: 13.5px;
  color: var(--fg-muted);
  line-height: 1.5;
}

/* ───── COMPARISON ────────────────────────────────────── */
.ph-compare {
  background: var(--ink);
  color: #fff;
  border-radius: 28px;
  padding: 64px 56px;
  position: relative;
  overflow: hidden;
}
@media (max-width: 720px) { .ph-compare { padding: 48px 28px; border-radius: 20px; } }
.ph-compare::before {
  content: '';
  position: absolute; inset: 0;
  background-image: radial-gradient(circle at 1px 1px, rgba(255,255,255,0.05) 1px, transparent 1.5px);
  background-size: 28px 28px;
  mask-image: radial-gradient(ellipse 70% 90% at 50% 50%, #000 30%, transparent 85%);
  -webkit-mask-image: radial-gradient(ellipse 70% 90% at 50% 50%, #000 30%, transparent 85%);
  opacity: 0.4;
  pointer-events: none;
}
.ph-compare > * { position: relative; z-index: 1; }
.ph-compare-h {
  margin: 0;
  font-size: clamp(28px, 3.4vw, 42px);
  line-height: 1.08;
  letter-spacing: -0.022em;
  font-weight: 600;
  text-wrap: balance;
  max-width: 720px;
}
.ph-compare-h em { font-style: italic; font-weight: 500; }
.ph-compare-table {
  margin-top: 48px;
  display: grid;
  grid-template-columns: minmax(0, 1.4fr) repeat(3, minmax(0, 1fr));
  background: rgba(255,255,255,0.04);
  border: 1px solid rgba(255,255,255,0.08);
  border-radius: 16px;
  overflow: hidden;
}
@media (max-width: 820px) {
  .ph-compare-table {
    grid-template-columns: 1fr;
  }
}
.ph-compare-cell {
  padding: 18px 22px;
  font-size: 14px;
  border-right: 1px solid rgba(255,255,255,0.06);
  border-bottom: 1px solid rgba(255,255,255,0.06);
  display: flex; align-items: center; gap: 10px;
}
.ph-compare-cell:nth-child(4n) { border-right: none; }
.ph-compare-cell.head {
  background: rgba(255,255,255,0.04);
  font-family: var(--font-mono);
  font-size: 11px;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  color: rgba(255,255,255,0.55);
  font-weight: 500;
}
.ph-compare-cell.head.you {
  color: var(--accent-bright, #4CCDA3);
  background: rgba(76,205,163,0.08);
}
.ph-compare-cell .l { color: rgba(255,255,255,0.85); font-weight: 500; }
.ph-compare-cell.yes { color: #fff; }
.ph-compare-cell.yes svg { color: var(--accent-bright, #4CCDA3); }
.ph-compare-cell.no  { color: rgba(255,255,255,0.4); }
.ph-compare-cell.no svg { color: rgba(255,255,255,0.25); }
.ph-compare-cell svg { width: 16px; height: 16px; flex-shrink: 0; }
.ph-compare-cell.you-col { background: rgba(76,205,163,0.04); }

/* ───── RELATED PRODUCT PAGES ─────────────────────────── */
.ph-related {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 14px;
}
@media (max-width: 820px) { .ph-related { grid-template-columns: 1fr; } }
.ph-rel-card {
  display: flex;
  flex-direction: column;
  gap: 8px;
  padding: 24px;
  background: #fff;
  border: 1px solid var(--border-default);
  border-radius: 16px;
  color: var(--ink);
  transition: all 220ms var(--ease-out-quint);
}
.ph-rel-card:hover {
  border-color: var(--ink);
  transform: translateY(-2px);
}
.ph-rel-card .lab {
  font-family: var(--font-mono);
  font-size: 11px;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  color: var(--fg-muted);
}
.ph-rel-card h4 {
  margin: 0;
  font-size: 18px;
  font-weight: 600;
  letter-spacing: -0.014em;
}
.ph-rel-card h4 em { font-style: italic; font-weight: 500; }
.ph-rel-card p {
  margin: 0;
  font-size: 14px;
  color: var(--fg-default);
  line-height: 1.5;
}
.ph-rel-card .arr {
  margin-top: 8px;
  display: inline-flex; align-items: center; gap: 6px;
  font-size: 13.5px;
  color: var(--ink);
  font-weight: 500;
}
.ph-rel-card .arr svg { width: 14px; height: 14px; transition: transform 200ms; }
.ph-rel-card:hover .arr svg { transform: translateX(3px); }

/* ───── HONEY SCREEN (big mock area) ───────────────── */
.ph-screen {
  background: #fff;
  border: 1px solid var(--border-default);
  border-radius: 24px;
  overflow: hidden;
  box-shadow: var(--shadow-hero);
}
.ph-screen-chrome {
  padding: 14px 18px;
  display: flex; align-items: center; gap: 14px;
  border-bottom: 1px solid var(--border-default);
  background: linear-gradient(180deg, #FAFAFA, #F4F3EE);
}
.ph-screen-chrome .dots { display: flex; gap: 6px; }
.ph-screen-chrome .dots i {
  width: 10px; height: 10px; border-radius: 99px;
  background: var(--border-default);
}
.ph-screen-chrome .url {
  font-family: var(--font-mono);
  font-size: 12px;
  color: var(--fg-muted);
}
.ph-screen-chrome .url strong { color: var(--ink); font-weight: 600; }
.ph-screen-body {
  padding: 28px 32px 36px;
  background: var(--bg-app);
}

/* Stat strip (used on multiple screens) */
.ph-stat-strip {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 14px;
}
@media (max-width: 720px) { .ph-stat-strip { grid-template-columns: 1fr; } }
.ph-stat {
  background: #fff;
  border: 1px solid var(--border-default);
  border-radius: 14px;
  padding: 20px 22px 18px;
  display: flex;
  flex-direction: column;
  gap: 8px;
}
.ph-stat .lab {
  font-family: var(--font-mono);
  font-size: 10.5px;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  color: var(--fg-muted);
}
.ph-stat .val {
  font-family: var(--font-mono);
  font-size: 26px;
  font-weight: 600;
  letter-spacing: -0.02em;
  color: var(--ink);
  font-variant-numeric: tabular-nums;
}
.ph-stat .delta {
  font-family: var(--font-mono);
  font-size: 12px;
  color: var(--fg-muted);
}
.ph-stat .delta.up { color: var(--color-accent-positive); }
.ph-stat .delta.down { color: var(--color-destructive); }

/* Per-page accent — all product pages now share the homepage palette
   (warm beige + nouz green). No per-page chromatic differentiation. */
body[data-accent] {
  --accent: var(--color-accent-positive);
  --accent-tint: rgba(0,128,96,0.10);
  --accent-glow: rgba(0,128,96,0.14);
  --accent-bright: #4CCDA3;
}

/* Mini app mock — sidebar + content shape used throughout */
.app-mock {
  position: relative;
  background: #fff;
  border: 1px solid var(--border-default);
  border-radius: 16px;
  overflow: hidden;
  display: grid;
  grid-template-columns: 140px 1fr;
  min-height: 360px;
}
.am-sidebar {
  background: var(--bg-app);
  padding: 20px 14px;
  border-right: 1px solid var(--border-default);
  display: flex;
  flex-direction: column;
  gap: 4px;
}
.am-brand {
  font-weight: 700;
  font-size: 17px;
  color: var(--ink);
  letter-spacing: -0.025em;
  margin-bottom: 16px;
}
.am-loc {
  display: flex; align-items: center; gap: 8px;
  padding: 8px;
  border-radius: 8px;
  background: #fff;
  border: 1px solid var(--border-default);
  margin-bottom: 14px;
}
.am-loc .av {
  width: 22px; height: 22px;
  border-radius: 6px;
  background: var(--color-info);
  color: #fff;
  display: grid; place-items: center;
  font-size: 11px; font-weight: 600;
}
.am-loc .n { font-size: 12.5px; color: var(--ink); font-weight: 500; }
.am-nav {
  display: flex; flex-direction: column; gap: 2px;
}
.am-nav-it {
  display: flex; align-items: center; gap: 9px;
  padding: 7px 9px;
  border-radius: 7px;
  font-size: 12.5px;
  color: var(--fg-default);
  font-weight: 500;
}
.am-nav-it.on {
  background: rgba(23,23,26,0.05);
  color: var(--ink);
  font-weight: 600;
  position: relative;
}
.am-nav-it.on::before {
  content: '';
  position: absolute;
  left: -14px; top: 50%; transform: translateY(-50%);
  width: 2px; height: 18px;
  background: var(--ink);
}
.am-nav-it svg { width: 13px; height: 13px; color: var(--fg-muted); flex-shrink: 0; }
.am-nav-it.on svg { color: var(--ink); }
.am-content {
  padding: 22px 24px;
  display: flex;
  flex-direction: column;
  gap: 14px;
  min-height: 0;
}
.am-content-head {
  display: flex; align-items: center; gap: 10px;
}
.am-content-head .ic {
  width: 18px; height: 18px;
  color: var(--ink);
}
.am-content-head .t {
  font-size: 18px;
  font-weight: 600;
  color: var(--ink);
  letter-spacing: -0.018em;
}
.am-content-head .d {
  margin-left: 10px;
  font-size: 12px;
  color: var(--fg-muted);
}
@media (max-width: 640px) {
  .app-mock { grid-template-columns: 1fr; }
  .am-sidebar { display: none; }
}

/* Tiny KPI cards inside mocks */
.am-kpi {
  background: #fff;
  border: 1px solid var(--border-default);
  border-radius: 10px;
  padding: 12px 14px;
}
.am-kpi .lab {
  font-family: var(--font-mono);
  font-size: 9.5px;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  color: var(--fg-muted);
}
.am-kpi .val {
  font-family: var(--font-mono);
  font-size: 18px;
  font-weight: 600;
  color: var(--ink);
  letter-spacing: -0.015em;
  font-variant-numeric: tabular-nums;
  margin-top: 4px;
}

/* Sparkline placeholder */
.spark {
  height: 36px;
  margin-top: 6px;
  position: relative;
}
.spark svg { width: 100%; height: 100%; display: block; }

/* Page-end "ready" CTA */
.ph-cta {
  background: #fff;
  border: 1px solid var(--border-default);
  border-radius: 22px;
  padding: 56px 48px;
  display: grid;
  grid-template-columns: minmax(0, 1.4fr) auto;
  gap: 32px;
  align-items: center;
}
@media (max-width: 820px) {
  .ph-cta { grid-template-columns: 1fr; padding: 40px 28px; text-align: center; }
  .ph-cta-r { justify-self: center; }
}
.ph-cta-l h3 {
  margin: 0;
  font-size: clamp(24px, 2.6vw, 32px);
  font-weight: 600;
  letter-spacing: -0.02em;
  color: var(--ink);
}
.ph-cta-l h3 em { font-style: italic; font-weight: 500; }
.ph-cta-l p {
  margin: 12px 0 0;
  color: var(--fg-default);
  font-size: 15.5px;
  max-width: 520px;
  line-height: 1.55;
}
.ph-cta-r {
  display: flex; gap: 10px;
  flex-wrap: wrap;
}
