/* ==========================================================================
   Agentic Worklabs · v6 Extensions
   --------------------------------------------------------------------------
   Styles for pages and sections introduced in v6:
   - Sub-page hero variant (about, eu-ai-act)
   - About page (prose-section, lessons, credentials, honest-not)
   - EU AI Act page (who-for, scope, compare, refund, worksheet, faq)
   - Contact section updates (three-action layout)
   ========================================================================== */


/* ────────────────────────────────────────────────────── SUB-PAGE HERO */

/* Scroll offset for sticky header on anchor links */
section[id] {
  scroll-margin-top: 100px;
}

.hero.hero-sub {
  padding: 120px 0 60px;
  max-width: none;
}
.hero.hero-sub h1 {
  max-width: none;
}
.hero.hero-sub .hero-sub-copy {
  max-width: 60ch;
  margin: 32px 0 0;
  font-size: clamp(16px, 1.5vw, 19px);
  line-height: 1.55;
  color: var(--ink-soft);
}
.hero.hero-sub .hero-sub-copy strong {
  color: var(--ink);
  font-weight: 500;
}

/* Tighten gap between sub-page hero and first content section */
.hero.hero-sub + .prose-section {
  padding-top: 60px;
}
.hero.hero-sub + .eu-panel-condensed {
  margin-top: 0;
}

@media (max-width: 760px) {
  .hero.hero-sub { padding: 100px 0 40px; }
  .hero.hero-sub .hero-sub-copy { margin-top: 24px; }
}


/* ────────────────────────────────────────────────────── ABOUT: PROSE SECTION */

.prose-section {
  padding: 120px 0 80px;
}
@media (max-width: 760px) { .prose-section { padding: 80px 0 56px; } }

.container-narrow {
  max-width: 720px;
  margin-inline: auto;
  padding-inline: var(--page-pad);
}

.prose-section h2 {
  font-family: var(--font-sans);
  font-weight: 500;
  font-size: clamp(28px, 3.6vw, 44px);
  line-height: 1.15;
  letter-spacing: -0.025em;
  color: var(--ink);
  margin: 12px 0 32px;
}

.prose-section p {
  font-size: clamp(15px, 1.3vw, 17px);
  line-height: 1.65;
  color: var(--ink-soft);
  margin: 0 0 20px;
}
.prose-section p:last-child { margin-bottom: 0; }


/* ────────────────────────────────────────────────────── ABOUT: FIVE LESSONS */

.lessons {
  padding: 80px 0 100px;
  background: var(--bg-2);
  border-top: 1px solid var(--line);
  border-bottom: 1px solid var(--line);
}
@media (max-width: 760px) { .lessons { padding: 56px 0 72px; } }

.lessons h2 {
  font-family: var(--font-sans);
  font-weight: 500;
  font-size: clamp(26px, 3.2vw, 40px);
  line-height: 1.15;
  letter-spacing: -0.02em;
  color: var(--ink);
  margin: 12px 0 48px;
}

.lessons-list {
  list-style: none;
  counter-reset: lesson;
  padding: 0;
  margin: 0;
}

.lessons-list li {
  counter-increment: lesson;
  padding: 32px 0;
  border-top: 1px solid var(--line);
  position: relative;
  padding-left: 56px;
}
.lessons-list li:last-child { padding-bottom: 0; }

.lessons-list li::before {
  content: counter(lesson, decimal-leading-zero);
  position: absolute;
  left: 0;
  top: 36px;
  font-family: var(--font-mono);
  font-size: 12px;
  color: var(--cobalt);
  letter-spacing: 0.08em;
  font-weight: 500;
}

.lessons-list h3 {
  font-family: var(--font-sans);
  font-weight: 600;
  font-size: clamp(16px, 1.4vw, 19px);
  line-height: 1.35;
  letter-spacing: -0.01em;
  color: var(--ink);
  margin: 0 0 10px;
}

.lessons-list p {
  font-size: 15px;
  line-height: 1.6;
  color: var(--ink-soft);
  margin: 0;
}

@media (max-width: 760px) {
  .lessons-list li { padding-left: 44px; }
  .lessons-list li::before { top: 36px; }
}


/* ────────────────────────────────────────────────────── ABOUT: CREDENTIALS */

.credentials {
  padding: 120px 0 100px;
}
@media (max-width: 760px) { .credentials { padding: 80px 0 64px; } }

.credentials .eyebrow { text-align: center; }

.credentials h2 {
  font-family: var(--font-sans);
  font-weight: 500;
  font-size: clamp(28px, 3.6vw, 44px);
  line-height: 1.15;
  letter-spacing: -0.025em;
  color: var(--ink);
  margin: 12px auto 56px;
  text-align: center;
}

.credentials-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 1px;
  background: var(--line);
  border: 1px solid var(--line);
  border-radius: var(--r-md);
  overflow: hidden;
}
@media (max-width: 900px) { .credentials-grid { grid-template-columns: 1fr; } }

.credentials-card {
  background: var(--bg);
  padding: 36px 40px;
}
@media (max-width: 760px) { .credentials-card { padding: 28px 24px; } }

.credentials-card h3 {
  font-family: var(--font-mono);
  font-size: 11px;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: var(--cobalt);
  font-weight: 500;
  margin: 0 0 20px;
}

.credentials-card ul {
  list-style: none;
  padding: 0;
  margin: 0;
}

.credentials-card li {
  padding: 12px 0;
  border-top: 1px solid var(--line);
  font-size: 14.5px;
  line-height: 1.55;
  color: var(--ink-soft);
}
.credentials-card li:first-child { border-top: none; padding-top: 0; }

.credentials-card li strong {
  color: var(--ink);
  font-weight: 500;
}

/* Compact credentials variant (single narrow list) */
.credentials .container-narrow .eyebrow { text-align: left; }
.credentials .container-narrow h2 { text-align: left; margin-inline: 0; }

.credentials-list-compact {
  list-style: none;
  padding: 0;
  margin: 0;
}

.credentials-list-compact li {
  padding: 20px 0;
  border-top: 1px solid var(--line);
  font-size: 15px;
  line-height: 1.6;
  color: var(--ink-soft);
}
.credentials-list-compact li:last-child { padding-bottom: 0; }

.credentials-list-compact li strong {
  color: var(--ink);
  font-weight: 600;
  display: inline;
}


/* ────────────────────────────────────────────────────── ABOUT: WHAT I'M NOT */

.honest-not {
  padding: 80px 0 120px;
}
@media (max-width: 760px) { .honest-not { padding: 56px 0 80px; } }

.honest-not h2 {
  font-family: var(--font-sans);
  font-weight: 500;
  font-size: clamp(28px, 3.6vw, 44px);
  line-height: 1.15;
  letter-spacing: -0.025em;
  color: var(--ink);
  margin: 12px 0 16px;
}

.honest-not > .container-narrow > p {
  font-size: 15px;
  line-height: 1.55;
  color: var(--ink-soft);
  margin: 0 0 32px;
}

.honest-list {
  list-style: none;
  padding: 0;
  margin: 0;
}

.honest-list li {
  padding: 20px 0;
  border-top: 1px solid var(--line);
  font-size: 15px;
  line-height: 1.6;
  color: var(--ink-soft);
}
.honest-list li:last-child { padding-bottom: 0; }

.honest-list li strong {
  color: var(--ink);
  font-weight: 600;
  display: inline;
}


/* ────────────────────────────────────────────────────── EU AI ACT: STATS 4-COL */

.eu-panel-condensed .eu-inner {
  padding: 56px 72px;
}
@media (max-width: 760px) {
  .eu-panel-condensed .eu-inner { padding: 40px 32px; }
}

.eu-stats-4 {
  grid-template-columns: repeat(4, 1fr);
}
@media (max-width: 1100px) {
  .eu-stats-4 { grid-template-columns: repeat(2, 1fr); gap: 32px; }
}
@media (max-width: 760px) {
  .eu-stats-4 { grid-template-columns: 1fr; }
}

.eu-panel-condensed .eu-stat-num {
  font-size: clamp(40px, 5vw, 64px);
}
.eu-panel-condensed .eu-stat-suffix {
  font-size: 24px;
}


/* ────────────────────────────────────────────────────── EU AI ACT: WHO THIS IS FOR */

.who-for {
  padding: 120px 0 100px;
}
@media (max-width: 760px) { .who-for { padding: 80px 0 64px; } }

.who-for h2 {
  font-family: var(--font-sans);
  font-weight: 500;
  font-size: clamp(32px, 4.4vw, 56px);
  line-height: 1.05;
  letter-spacing: -0.03em;
  color: var(--ink);
  margin: 0;
}
.who-for h2 em.serif {
  font-family: var(--font-serif);
  font-style: italic;
  font-weight: 400;
  letter-spacing: -0.025em;
}

.who-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 24px;
}
@media (max-width: 900px) { .who-grid { grid-template-columns: 1fr; } }

.who-card {
  background: var(--bg-2);
  border: 1px solid var(--line);
  border-radius: var(--r-md);
  padding: 36px 40px;
}
@media (max-width: 760px) { .who-card { padding: 28px 24px; } }

.who-tag {
  font-family: var(--font-mono);
  font-size: 11px;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: var(--cobalt);
  font-weight: 500;
  margin-bottom: 16px;
}

.who-card h3 {
  font-family: var(--font-sans);
  font-weight: 600;
  font-size: clamp(20px, 2vw, 26px);
  line-height: 1.15;
  letter-spacing: -0.02em;
  color: var(--ink);
  margin: 0 0 12px;
}

.who-card p {
  font-size: 15px;
  line-height: 1.6;
  color: var(--ink-soft);
  margin: 0;
}

.who-note {
  margin-top: 24px;
  font-size: 14px;
  color: var(--ink-mute);
  text-align: center;
  font-style: italic;
}


/* ────────────────────────────────────────────────────── EU AI ACT: 4-WEEK SCOPE */

.scope {
  padding: 120px 0 100px;
  background: var(--bg-2);
  border-top: 1px solid var(--line);
  border-bottom: 1px solid var(--line);
}
@media (max-width: 760px) { .scope { padding: 80px 0 64px; } }

.scope h2 {
  font-family: var(--font-sans);
  font-weight: 500;
  font-size: clamp(32px, 4.4vw, 56px);
  line-height: 1.05;
  letter-spacing: -0.03em;
  color: var(--ink);
  margin: 0;
}

.practice-sub {
  margin-top: 16px;
  font-size: clamp(15px, 1.3vw, 18px);
  line-height: 1.5;
  color: var(--ink-soft);
  max-width: 560px;
  margin-inline: auto;
}

.scope-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 24px;
}
@media (max-width: 900px) { .scope-grid { grid-template-columns: 1fr; } }

.scope-card {
  background: var(--bg);
  border: 1px solid var(--line);
  border-radius: var(--r-md);
  padding: 36px 40px;
  display: flex;
  flex-direction: column;
}
@media (max-width: 760px) { .scope-card { padding: 28px 24px; } }

.scope-card p {
  font-size: 15px;
  line-height: 1.6;
  color: var(--ink-soft);
  margin: 16px 0 0;
  flex: 1;
}

.scope-deliverable {
  margin-top: 20px;
  padding-top: 16px;
  border-top: 1px solid var(--line);
  font-size: 13.5px;
  line-height: 1.45;
  color: var(--ink-soft);
}

.scope-deliverable .k {
  font-family: var(--font-mono);
  font-size: 10px;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: var(--cobalt);
  font-weight: 500;
  margin-right: 8px;
}


/* ────────────────────────────────────────────────────── EU AI ACT: COMPARISON TABLE */

.compare {
  padding: 120px 0 100px;
}
@media (max-width: 760px) { .compare { padding: 80px 0 64px; } }

.compare h2 {
  font-family: var(--font-sans);
  font-weight: 500;
  font-size: clamp(28px, 3.6vw, 44px);
  line-height: 1.15;
  letter-spacing: -0.025em;
  color: var(--ink);
  margin: 0;
  max-width: 720px;
  margin-inline: auto;
}

.compare-table {
  border: 1px solid var(--line);
  border-radius: var(--r-md);
  overflow: hidden;
}

.compare-row {
  display: grid;
  grid-template-columns: 180px 1fr 140px;
  gap: 0;
  border-bottom: 1px solid var(--line);
  align-items: stretch;
}
.compare-row:last-child { border-bottom: none; }

@media (max-width: 900px) {
  .compare-row { grid-template-columns: 1fr; }
}

.compare-row > div {
  padding: 20px 24px;
  font-size: 14.5px;
  line-height: 1.55;
  color: var(--ink-soft);
  border-right: 1px solid var(--line);
}
.compare-row > div:last-child { border-right: none; }

@media (max-width: 900px) {
  .compare-row > div { border-right: none; border-bottom: 1px solid var(--line); padding: 16px 20px; }
  .compare-row > div:last-child { border-bottom: none; }
}

.compare-head {
  background: var(--bg-2);
}
.compare-head > div {
  font-family: var(--font-mono);
  font-size: 10px;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: var(--ink-mute);
  font-weight: 500;
  padding: 14px 24px;
}

.compare-label {
  background: var(--bg-2);
}
.compare-label strong {
  color: var(--ink);
  font-weight: 600;
}

.compare-cost {
  font-family: var(--font-mono);
  font-size: 13px;
  letter-spacing: 0.04em;
  color: var(--ink-mute);
  display: flex;
  align-items: center;
}
.compare-cost strong {
  color: var(--ink);
  font-weight: 600;
  font-size: 14px;
}

.compare-row-featured {
  background: var(--cherokee-bg-soft);
  border-left: 3px solid var(--cherokee);
}
.compare-row-featured .compare-label {
  background: transparent;
}
.compare-row-featured .compare-label strong {
  color: var(--cherokee);
}

.compare-note {
  margin-top: 20px;
  font-size: 14px;
  color: var(--ink-mute);
  text-align: center;
  font-style: italic;
}


/* ────────────────────────────────────────────────────── EU AI ACT: REFUND CLAUSE */

.refund {
  padding: 100px 0;
  background: var(--bg-2);
  border-top: 1px solid var(--line);
  border-bottom: 1px solid var(--line);
}
@media (max-width: 760px) { .refund { padding: 64px 0; } }

.refund h2 {
  font-family: var(--font-sans);
  font-weight: 500;
  font-size: clamp(26px, 3.2vw, 40px);
  line-height: 1.15;
  letter-spacing: -0.02em;
  color: var(--ink);
  margin: 0;
  max-width: 720px;
  margin-inline: auto;
}

.refund-body {
  max-width: 720px;
  margin: 0 auto;
}

.refund-body p {
  font-size: 15px;
  line-height: 1.6;
  color: var(--ink-soft);
  margin: 0 0 24px;
}
.refund-body p:last-child { margin-bottom: 0; }

.refund-body ol {
  list-style: none;
  padding: 0;
  margin: 0 0 24px;
  counter-reset: refund-step;
}

.refund-body ol li {
  counter-increment: refund-step;
  padding: 16px 0 16px 48px;
  border-top: 1px solid var(--line);
  font-size: 15px;
  line-height: 1.6;
  color: var(--ink-soft);
  position: relative;
}

.refund-body ol li::before {
  content: counter(refund-step);
  position: absolute;
  left: 0;
  top: 20px;
  width: 28px;
  height: 28px;
  border-radius: 50%;
  background: var(--bg-3);
  color: var(--ink);
  font-family: var(--font-mono);
  font-size: 12px;
  font-weight: 500;
  display: flex;
  align-items: center;
  justify-content: center;
}

.refund-body ol li strong {
  color: var(--ink);
  font-weight: 500;
}


/* ────────────────────────────────────────────────────── EU AI ACT: WORKSHEET */

.worksheet {
  padding: 120px 0;
}
@media (max-width: 760px) { .worksheet { padding: 80px 0; } }

.worksheet-panel .contact-heading {
  font-size: clamp(36px, 5.5vw, 72px);
}

.form-row-2 {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 0 24px;
}
@media (max-width: 600px) {
  .form-row-2 { grid-template-columns: 1fr; }
  .form-row-2 > div + div { border-top: 1px solid var(--line); padding-top: 14px; margin-top: 14px; }
}

.form-note {
  margin-top: 12px;
  font-family: var(--font-mono);
  font-size: 11px;
  color: var(--ink-mute);
  letter-spacing: 0.08em;
  text-align: center;
}
[data-theme="dark"] .contact-panel .form-note {
  color: var(--ink-mute);
}


/* ────────────────────────────────────────────────────── EU AI ACT: FAQ */

.faq-section {
  padding: 120px 0 140px;
}
@media (max-width: 760px) { .faq-section { padding: 80px 0 100px; } }

.faq-section h2 {
  font-family: var(--font-sans);
  font-weight: 500;
  font-size: clamp(28px, 3.6vw, 44px);
  line-height: 1.15;
  letter-spacing: -0.025em;
  color: var(--ink);
  margin: 0;
}

.faq-list {
  max-width: 800px;
  margin: 0 auto;
}

.faq-list details {
  border-top: 1px solid var(--line);
}
.faq-list details:last-child {
  border-bottom: 1px solid var(--line);
}

.faq-list summary {
  padding: 20px 40px 20px 0;
  font-family: var(--font-sans);
  font-weight: 500;
  font-size: clamp(15px, 1.3vw, 17px);
  line-height: 1.4;
  color: var(--ink);
  cursor: pointer;
  list-style: none;
  position: relative;
}

.faq-list summary::-webkit-details-marker { display: none; }
.faq-list summary::marker { display: none; content: ''; }

.faq-list summary::after {
  content: '+';
  position: absolute;
  right: 0;
  top: 50%;
  transform: translateY(-50%);
  font-family: var(--font-mono);
  font-size: 18px;
  color: var(--ink-mute);
  font-weight: 400;
  transition: transform 200ms ease;
}

.faq-list details[open] summary::after {
  content: '\2212';
  transform: translateY(-50%);
}

.faq-list details p {
  padding: 0 40px 20px 0;
  font-size: 15px;
  line-height: 1.6;
  color: var(--ink-soft);
  margin: 0;
}


/* ────────────────────────────────────────────────────── CONTACT: V6 THREE-ACTION LAYOUT */

.contact-action {
  display: block;
  text-align: center;
  margin-bottom: 16px;
  width: 100%;
  justify-content: center;
}
.contact-action:last-of-type {
  margin-bottom: 20px;
}

.contact-inline-form {
  border-top: 1px solid var(--line);
  padding-top: 20px;
}

.contact-direct-link {
  display: block;
  text-align: center;
  margin-top: 16px;
  padding-top: 16px;
  border-top: 1px solid var(--line);
  font-family: var(--font-mono);
  font-size: 12px;
  letter-spacing: 0.08em;
  color: var(--ink-mute);
  text-decoration: none;
  transition: color 150ms ease;
}
.contact-direct-link:hover {
  color: var(--ink);
}

/* Contact on dark panel: override link color */
.contact-panel .contact-direct-link {
  color: #8A847A;
  border-top-color: rgba(255, 255, 255, 0.1);
}
.contact-panel .contact-direct-link:hover {
  color: var(--bg);
}
[data-theme="dark"] .contact-panel .contact-direct-link {
  color: var(--ink-mute);
  border-top-color: var(--line);
}
[data-theme="dark"] .contact-panel .contact-direct-link:hover {
  color: var(--ink);
}

/* Ghost button in dark contact panel */
.contact-panel .btn-ghost.contact-action {
  color: var(--bg);
  border-color: rgba(255, 255, 255, 0.2);
}
.contact-panel .btn-ghost.contact-action:hover {
  border-color: rgba(255, 255, 255, 0.5);
}
[data-theme="dark"] .contact-panel .btn-ghost.contact-action {
  color: var(--ink);
  border-color: var(--line);
}
[data-theme="dark"] .contact-panel .btn-ghost.contact-action:hover {
  border-color: var(--ink-soft);
}
