/* ==========================================================================
   Cut the Waffle - examples.css
   Shared chrome for the proof-of-work example pages:
   /brand-showcase, /startup_runway_calculator, /startup_interactive_infographic

   Loaded AFTER /style.css. Everything here is CTW-branded - the sample work
   itself (a client brand, a tool UI) brings its own scoped tokens.
   ========================================================================== */

/* ─────────────────────────────────────────
   EXAMPLE PAGE HERO
───────────────────────────────────────── */
.ex-hero {
  background: var(--ink);
  color: var(--cream);
  padding: 72px 28px 56px;
  position: relative;
  overflow: hidden;
}
.ex-hero::after {
  content: '';
  position: absolute; inset: auto -10% -60% 40%;
  height: 420px;
  background: radial-gradient(closest-side, rgba(37,64,255,0.30), transparent 70%);
  pointer-events: none;
}
.ex-hero-inner { max-width: 1100px; margin: 0 auto; position: relative; z-index: 1; }
.ex-eyebrow {
  display: inline-flex; align-items: center; gap: 9px;
  font-family: var(--fserif);
  font-size: 0.72rem; font-weight: 500; letter-spacing: 0.14em; text-transform: uppercase;
  color: var(--cream);
  background: rgba(37,64,255,0.18);
  border: 1px solid rgba(37,64,255,0.45);
  padding: 6px 14px; border-radius: 100px;
  margin-bottom: 22px;
}
.ex-eyebrow::before {
  content: ''; width: 7px; height: 7px; border-radius: 50%;
  background: var(--cobalt); box-shadow: 0 0 0 3px rgba(37,64,255,0.25);
}
.ex-hero h1 {
  font-family: var(--fserif);
  font-size: clamp(2.1rem, 5.2vw, 3.6rem);
  font-weight: 400; line-height: 1.02; letter-spacing: -0.03em;
  margin-bottom: 18px; max-width: 16ch;
}
.ex-hero h1 em { font-style: italic; color: var(--cobalt); }
.ex-hero-lead {
  font-size: 1.02rem; line-height: 1.7; color: rgba(245,239,230,0.62);
  max-width: 56ch; margin-bottom: 30px;
}
.ex-hero-meta {
  display: flex; flex-wrap: wrap; gap: 10px;
}
.ex-chip {
  font-size: 0.74rem; font-weight: 500; letter-spacing: 0.02em;
  color: rgba(245,239,230,0.70);
  border: 1px solid rgba(245,239,230,0.16);
  border-radius: 100px; padding: 6px 14px;
  background: rgba(245,239,230,0.03);
}
.ex-chip strong { color: var(--cream); font-weight: 600; }

/* ─────────────────────────────────────────
   TOOL SHOWCASE FRAME
   The "this is a sample" browser chrome around the work.
───────────────────────────────────────── */
.tool-showcase { background: var(--ink); padding: 0 0 56px; }
.tool-showcase-inner { max-width: 1240px; margin: 0 auto; padding: 0 20px; }
.tool-showcase-bar {
  display: flex; align-items: center; gap: 14px;
  padding: 11px 18px;
  background: var(--ink-soft);
  border: 1px solid rgba(245,239,230,0.10);
  border-bottom: none;
  border-radius: 10px 10px 0 0;
}
.tool-showcase-dots { display: flex; gap: 6px; flex-shrink: 0; }
.tool-showcase-dots span {
  width: 9px; height: 9px; border-radius: 50%;
  background: rgba(245,239,230,0.16);
}
.tool-showcase-dots span:first-child { background: rgba(232,73,15,0.55); }
.tool-showcase-label {
  flex: 1; text-align: center;
  font-size: 0.74rem; color: rgba(245,239,230,0.42);
  white-space: nowrap; overflow: hidden; text-overflow: ellipsis;
}
.tool-showcase-badge {
  flex-shrink: 0;
  font-family: var(--fserif);
  font-size: 0.66rem; font-weight: 500; letter-spacing: 0.12em; text-transform: uppercase;
  color: var(--cream);
  background: var(--cobalt);
  padding: 4px 10px; border-radius: 100px;
}
.tool-frame {
  border: 1px solid rgba(245,239,230,0.10);
  border-radius: 0 0 10px 10px;
  overflow: hidden;
  background: var(--white);
  box-shadow: 0 40px 90px rgba(0,0,0,0.42);
}
/* Scrolling variant - for samples that are a whole page in miniature */
.tool-frame--scroll { height: 84vh; min-height: 560px; overflow-y: auto; overscroll-behavior: contain; }

/* ─────────────────────────────────────────
   EDITORIAL CONTENT BELOW THE SAMPLE
───────────────────────────────────────── */
.page-content { background: var(--cream); color: var(--ink); }
.page-section { max-width: 780px; margin: 0 auto; padding: 76px 28px; }
.page-section + .page-section { border-top: 1px solid var(--line); }
.page-section--wide { max-width: 1100px; }
.page-eyebrow {
  font-family: var(--fserif);
  font-size: 0.72rem; font-weight: 500; letter-spacing: 0.14em; text-transform: uppercase;
  color: var(--cobalt); margin-bottom: 14px;
}
.page-section h2 {
  font-family: var(--fserif);
  font-size: clamp(1.6rem, 3.4vw, 2.5rem);
  font-weight: 400; line-height: 1.1; letter-spacing: -0.025em;
  margin-bottom: 18px;
}
.page-section h2 em { font-style: italic; color: var(--cobalt); }
.page-section h3 {
  font-size: 1.05rem; font-weight: 600; letter-spacing: -0.015em;
  margin: 38px 0 10px;
}
.page-section p { font-size: 1rem; line-height: 1.78; color: var(--slate); margin-bottom: 16px; }
.page-section p:last-child { margin-bottom: 0; }
.page-section p a { color: var(--cobalt); font-weight: 600; text-decoration: none; }
.page-section p a:hover { text-decoration: underline; }
.page-section ul.plain { list-style: none; margin: 18px 0; }
.page-section ul.plain li {
  position: relative; padding-left: 22px; margin-bottom: 10px;
  font-size: 0.98rem; line-height: 1.7; color: var(--slate);
}
.page-section ul.plain li::before {
  content: ''; position: absolute; left: 0; top: 0.62em;
  width: 10px; height: 1px; background: var(--cobalt);
}

/* Stat strip */
.ex-stats { display: grid; grid-template-columns: repeat(auto-fit, minmax(160px, 1fr)); gap: 12px; margin-top: 34px; }
.ex-stat {
  background: var(--ink); border-radius: var(--r-card); padding: 24px 22px;
  position: relative; overflow: hidden;
}
.ex-stat::after {
  content: ''; position: absolute; inset: auto -30% -70% 30%; height: 140px;
  background: radial-gradient(closest-side, rgba(37,64,255,0.35), transparent 70%);
}
.ex-stat-val {
  font-family: var(--fserif); font-size: 2rem; font-weight: 400;
  letter-spacing: -0.03em; line-height: 1; color: var(--cream); margin-bottom: 8px;
  position: relative; z-index: 1;
}
.ex-stat-val em { font-style: italic; color: #7C8CFF; }
.ex-stat-label {
  font-size: 0.78rem; line-height: 1.5; color: rgba(245,239,230,0.52);
  position: relative; z-index: 1;
}

/* Card grid */
.ex-cards { display: grid; grid-template-columns: repeat(auto-fit, minmax(230px, 1fr)); gap: 14px; margin-top: 30px; }
.ex-card {
  background: var(--white); border: 1px solid var(--line);
  border-radius: var(--r-card); padding: 26px 22px;
  transition: border-color 0.2s, transform 0.2s;
}
.ex-card:hover { border-color: rgba(37,64,255,0.35); transform: translateY(-2px); }
.ex-card-num {
  font-family: var(--fserif); font-style: italic; font-size: 0.9rem;
  color: var(--cobalt); margin-bottom: 12px;
}
.ex-card h4 { font-size: 0.98rem; font-weight: 600; letter-spacing: -0.015em; margin-bottom: 8px; }
.ex-card p { font-size: 0.86rem; line-height: 1.65; color: var(--steel); margin: 0; }

/* FAQ */
.faq-list { list-style: none; margin-top: 30px; }
.faq-item { border-top: 1px solid var(--line); }
.faq-item:last-child { border-bottom: 1px solid var(--line); }
.faq-q {
  width: 100%; background: none; border: none; text-align: left; cursor: pointer;
  font-family: var(--fsans); font-size: 1rem; font-weight: 600; color: var(--ink);
  padding: 22px 0; display: flex; justify-content: space-between; align-items: center;
  gap: 18px; line-height: 1.45;
}
.faq-q::after {
  content: '+'; font-size: 1.4rem; font-weight: 300; color: var(--steel);
  flex-shrink: 0; transition: transform 0.25s, color 0.2s;
}
.faq-item.open .faq-q::after { transform: rotate(45deg); color: var(--cobalt); }
.faq-a {
  font-size: 0.95rem; line-height: 1.78; color: var(--slate);
  max-height: 0; overflow: hidden; transition: max-height 0.35s ease, padding 0.25s ease;
}
.faq-item.open .faq-a { max-height: 640px; padding-bottom: 22px; }

/* CTA */
.cta-block {
  background: var(--ink); border-radius: var(--r-card);
  padding: 56px 44px; text-align: center; margin-top: 52px;
  position: relative; overflow: hidden;
}
.cta-block::after {
  content: ''; position: absolute; inset: -40% -20% auto auto; width: 460px; height: 460px;
  background: radial-gradient(closest-side, rgba(37,64,255,0.32), transparent 70%);
  pointer-events: none;
}
.cta-block > * { position: relative; z-index: 1; }
.cta-block h2 {
  font-family: var(--fserif); font-size: clamp(1.4rem, 3vw, 2.1rem);
  font-weight: 400; color: var(--cream); margin-bottom: 14px; letter-spacing: -0.025em;
}
.cta-block h2 em { font-style: italic; color: #7C8CFF; }
.cta-block p {
  font-size: 1rem; line-height: 1.7; color: rgba(245,239,230,0.62);
  max-width: 48ch; margin: 0 auto 30px;
}
.cta-btn {
  display: inline-block; background: var(--cobalt); color: var(--white);
  font-size: 0.95rem; font-weight: 600; padding: 14px 30px;
  border-radius: var(--r-btn); text-decoration: none; transition: background 0.2s, transform 0.2s;
}
.cta-btn:hover { background: var(--cobalt-d); transform: translateY(-1px); }

@media (max-width: 720px) {
  .ex-hero { padding: 52px 20px 44px; }
  .page-section { padding: 56px 20px; }
  .cta-block { padding: 42px 24px; }
  .tool-showcase-inner { padding: 0 12px; }
  .tool-showcase-label { display: none; }
}
