/* Industries section (/industries, /industries/<slug>). Loaded after learn.css and
   built on its tokens; only the pieces the learning pages don't have live here.
   Pages are generated by scripts/build-industries.mjs. */

:root {
  --warm: #9A4A08; --warm-soft: #F7EADB;
  --good: #1B6B43; --good-soft: #E3F1E8;
  --night: #16161B; --night-2: #22222A; --night-rule: #33333E;
  --night-ink: #F5F3EC; --night-muted: #C9C7D6; --night-accent: #B4AEFF; --night-cross: #F2A26E;
  --phone: #16161B;
  --radius: 16px;
}
@media (prefers-color-scheme: dark) {
  :root:not([data-theme="light"]) {
    --warm: #F0A86A; --warm-soft: #33230F;
    --good: #7FD1A3; --good-soft: #15291F;
    --night: #0B0B0E; --night-2: #1B1B21; --night-rule: #2E2E37;
    --phone: #000000;
  }
}
:root[data-theme="dark"] {
  --warm: #F0A86A; --warm-soft: #33230F;
  --good: #7FD1A3; --good-soft: #15291F;
  --night: #0B0B0E; --night-2: #1B1B21; --night-rule: #2E2E37;
  --phone: #000000;
}

/* Buttons beyond learn.css */
.btn.big { padding: 15px 26px; font-size: 1.0625rem; min-height: 48px; display: inline-flex; align-items: center; justify-content: center; }
.btn.light { background: #FFFFFF; color: #16161B; }
.btn.light:hover { background: #E4E2F2; color: #16161B; }
.btn.outline-light { background: transparent; color: #FFFFFF; box-shadow: inset 0 0 0 1.5px rgba(255, 255, 255, 0.75); }
.btn.outline-light:hover { background: rgba(255, 255, 255, 0.12); color: #FFFFFF; }
.row-ctas { display: flex; gap: 12px; flex-wrap: wrap; align-items: center; }

.label { display: inline-block; font-size: 0.75rem; font-weight: 600; letter-spacing: 0.1em; text-transform: uppercase; color: var(--accent); }
.label.warm { color: var(--warm); }

/* Section rhythm */
.ind-sec { padding-block: clamp(56px, 8vw, 96px); }
.ind-sec + .ind-sec:not(.ind-dark) { padding-top: 0; }
.ind-dark + .ind-sec { padding-top: clamp(56px, 8vw, 96px); }
.sec-head { display: grid; gap: 14px; max-width: 760px; margin-bottom: clamp(28px, 4vw, 44px); }
.sec-head p { font-size: 1.125rem; color: var(--body-ink); }

/* Industry switcher */
.ind-switch { padding-block: clamp(36px, 5vw, 56px) 0; }
.ind-switch .wrap { display: grid; gap: 12px; }
.ind-switch h2 { max-width: 760px; }
.ind-switch .lead { color: var(--body-ink); max-width: 700px; }
.ind-chips { display: flex; flex-wrap: wrap; gap: 10px; margin-top: 14px; }
.ind-chips .chip { display: inline-flex; align-items: center; gap: 8px; min-height: 44px; padding: 0 18px; font-size: 0.9375rem; color: var(--ink); background: var(--surface); text-decoration: none; cursor: default; }
.ind-chips a.chip { cursor: pointer; }
.ind-chips a.chip:hover { border-color: var(--ink); color: var(--ink); }
.ind-chips .chip[aria-current="page"] { background: var(--ink); border-color: var(--ink); color: var(--paper); }
.ind-chips .chip.soon { color: var(--muted); background: transparent; }
.ind-chips .chip.soon:hover { border-color: var(--rule); color: var(--muted); }
.ind-chips .chip small { font-family: var(--mono); font-size: 0.7rem; letter-spacing: 0.04em; text-transform: uppercase; color: var(--muted); }

/* Hero */
.ind-hero { padding-block: clamp(36px, 5vw, 56px) clamp(56px, 8vw, 88px); }
.ind-hero .grid { display: flex; flex-wrap: wrap; gap: 48px; align-items: center; }
.ind-hero .copy { flex: 1 1 520px; min-width: 0; display: grid; gap: 22px; justify-items: start; }
.ind-hero h1 { font-size: clamp(2.375rem, 5.4vw, 4rem); line-height: 1.02; }
.ind-hero h1 em { font-style: normal; color: var(--accent); }
.ind-hero .dek { max-width: 40rem; }
.ind-hero .note { font-size: 0.9375rem; color: var(--muted); }

/* Phone mock (illustration) */
.phone { flex: 0 1 340px; width: 100%; max-width: 340px; margin-inline: auto; background: var(--phone); border-radius: 36px; padding: 14px; box-shadow: 0 30px 60px -30px rgba(22, 22, 27, 0.45), 0 0 0 1px var(--rule); }
.screen { background: var(--surface); border-radius: 24px; overflow: hidden; color: var(--ink); }
.screen-head { padding: 18px 18px 14px; border-bottom: 1px solid var(--rule); }
.screen-head .co { font-size: 0.75rem; color: var(--muted); font-weight: 500; }
.screen-head .ttl { font-family: var(--display); font-weight: 700; font-size: 1.25rem; margin-top: 2px; }
.kpis { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 8px; padding: 14px 18px; }
.kpi { background: var(--paper); border-radius: 10px; padding: 10px; }
.kpi b { display: block; font-family: var(--display); font-size: 1.125rem; }
.kpi span { font-size: 0.6875rem; line-height: 1.3; color: var(--muted); display: block; }
.screen .list { padding: 4px 18px 18px; display: grid; gap: 8px; }
.screen .row { display: flex; justify-content: space-between; align-items: center; gap: 10px; padding: 10px 12px; border: 1px solid var(--rule); border-radius: 10px; font-size: 0.8125rem; line-height: 1.35; }
.screen .who { font-weight: 600; }
.screen .what { color: var(--muted); font-size: 0.75rem; }
.tag { font-size: 0.6875rem; font-weight: 600; padding: 3px 8px; border-radius: 999px; white-space: nowrap; }
.tag.due { background: var(--warm-soft); color: var(--warm); }
.tag.ok { background: var(--good-soft); color: var(--good); }
.tag.new { background: var(--accent-soft); color: var(--accent); }

/* Pain points: today vs with sup3rapp */
.pains { display: grid; gap: 20px; }
.pain { background: var(--surface); border: 1px solid var(--rule); border-radius: var(--radius); display: grid; grid-template-columns: minmax(0, 1.1fr) minmax(0, 1fr); overflow: hidden; }
.pain .today, .pain .fix { padding: 30px 32px; display: grid; gap: 10px; align-content: start; }
.pain .fix { background: var(--accent-soft); border-left: 1px solid var(--rule); }
.pain-img { display: block; width: 100%; max-width: 520px; height: auto; aspect-ratio: 520 / 270; border-radius: 10px; border: 1px solid var(--rule); background: var(--paper); margin-bottom: 12px; }
.pain .num {font-family: var(--mono); font-size: 0.8125rem; color: var(--muted); }
.pain h3 { font-size: 1.5rem; }
.pain .label { margin-top: 6px; }
.pain p { color: var(--body-ink); }
.pain .fix p { color: var(--ink); }
.pain ul { margin: 0; padding-left: 20px; display: grid; gap: 6px; }
.cost { font-size: 0.9375rem; padding: 12px 14px; border-radius: 10px; background: var(--warm-soft); margin-top: 6px; }
.pain .cost { color: var(--ink); }
.cost b { color: var(--warm); font-weight: 600; }

/* Three paths: dark band */
.ind-dark { background: var(--night); color: var(--night-ink); border-block: 1px solid var(--night-rule); }
.ind-dark .eyebrow { color: var(--night-accent); }
.ind-dark .sec-head p { color: var(--night-muted); }
.paths { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 18px; }
.path { background: var(--night-2); border: 1px solid var(--night-rule); border-radius: var(--radius); padding: 28px; display: grid; gap: 6px; align-content: start; }
.path h3 { font-size: 1.3rem; }
.path .sub { color: var(--night-muted); font-size: 0.9375rem; }
.path ul { list-style: none; margin: 14px 0 0; padding: 0; display: grid; gap: 10px; font-size: 0.9375rem; }
.path li { display: flex; gap: 10px; align-items: flex-start; }
.path li svg { flex: 0 0 18px; width: 18px; height: 18px; margin-top: 3px; color: var(--night-cross); }
.path.win { background: #F5F3EC; color: #16161B; border-color: #F5F3EC; }
.path.win .sub { color: #4A4A52; }
.path.win h3 span { color: #3B2FE0; }
.path.win li svg { color: #1B6B43; }

/* Sample apps */
.apps { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 18px; }
.app { background: var(--surface); border: 1px solid var(--rule); border-radius: var(--radius); padding: 28px; display: flex; flex-direction: column; gap: 10px; }
.app .ico { width: 44px; height: 44px; border-radius: 12px; background: var(--accent-soft); color: var(--accent); display: flex; align-items: center; justify-content: center; }
.app h3 { margin-top: 6px; }
.app p { color: var(--body-ink); font-size: 1rem; }
.app .for { font-size: 0.875rem; color: var(--ink); border-top: 1px solid var(--rule); padding-top: 12px; margin-top: auto; }

/* How it works */
.steps.three { grid-template-columns: repeat(3, minmax(0, 1fr)); }
.example { margin-top: 32px; background: var(--surface); border: 1px solid var(--rule); border-radius: var(--radius); padding: 28px; display: flex; flex-wrap: wrap; gap: 28px; }
.example .say { flex: 1 1 420px; min-width: 0; margin: 0; display: grid; gap: 12px; align-content: start; }
.example blockquote { margin: 0; background: var(--paper); border: 1px solid var(--rule); border-radius: 14px 14px 14px 4px; padding: 18px 20px; font-size: 1.0625rem; }
.example .get { flex: 1 1 300px; min-width: 0; display: grid; gap: 12px; align-content: start; }
.example ul { margin: 0; padding-left: 20px; display: grid; gap: 6px; }

/* Comparison table: scrolls inside its box on narrow screens */
.table-box { overflow-x: auto; -webkit-overflow-scrolling: touch; border: 1px solid var(--rule); border-radius: var(--radius); background: var(--surface); max-width: 100%; }
.table-box:focus-visible { outline: 2px solid var(--accent); outline-offset: 3px; }
.ind-compare { border-collapse: collapse; width: 100%; min-width: 720px; font-size: 0.9375rem; }
.ind-compare th, .ind-compare td { text-align: left; padding: 16px 20px; border-bottom: 1px solid var(--rule); vertical-align: top; }
.ind-compare thead th, .ind-compare thead td { font-family: var(--display); font-size: 1rem; font-weight: 600; background: var(--paper); }
.ind-compare thead th.us { background: var(--accent); color: var(--accent-ink); }
.ind-compare tbody th { font-weight: 600; width: 22%; }
.ind-compare td { color: var(--body-ink); }
.ind-compare td.us { color: var(--ink); background: var(--accent-soft); font-weight: 500; }
.ind-compare tbody tr:last-child > * { border-bottom: 0; }

.keep { margin-top: 28px; display: flex; flex-wrap: wrap; gap: 16px 32px; align-items: center; background: var(--surface); border: 1px solid var(--rule); border-radius: var(--radius); padding: 28px; }
.keep h3 { font-size: 1.375rem; flex: 1 1 280px; }
.keep p { flex: 2 1 400px; color: var(--body-ink); }

/* FAQ */
.faq { display: grid; gap: 10px; max-width: 860px; }
.faq details { background: var(--surface); border: 1px solid var(--rule); border-radius: 12px; padding: 0 22px; }
.faq summary { cursor: pointer; list-style: none; min-height: 60px; padding-block: 12px; display: flex; align-items: center; justify-content: space-between; gap: 16px; font-weight: 600; font-size: 1.0625rem; }
.faq summary::-webkit-details-marker { display: none; }
.faq summary::after { content: "+"; font-family: var(--display); font-size: 1.5rem; line-height: 1; color: var(--accent); flex: none; }
.faq details[open] summary::after { content: "\2013"; }
.faq summary:focus-visible { outline: 2px solid var(--accent); outline-offset: 4px; border-radius: 6px; }
.faq details p { color: var(--body-ink); padding-bottom: 20px; }

/* Final CTA: same indigo band as the home page's Grow callout, in both themes */
.ind-final { padding-bottom: clamp(56px, 8vw, 96px); }
.ind-final .card { background: #3B2FE0; color: #FFFFFF; border-radius: 28px; padding: clamp(32px, 5vw, 56px) clamp(22px, 4vw, 48px); display: flex; flex-wrap: wrap; gap: 28px 40px; align-items: center; justify-content: space-between; }
.ind-final h2 { max-width: 640px; }
.ind-final p { color: #E6E3FF; margin-top: 12px; max-width: 600px; font-size: 1.0625rem; }
.ind-final a:focus-visible { outline-color: #FFFFFF; }

/* /industries index cards */
.ind-cards { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 18px; }
.ind-card { background: var(--surface); border: 1px solid var(--rule); border-radius: var(--radius); padding: 26px; display: grid; gap: 10px; align-content: start; color: var(--ink); text-decoration: none; }
.ind-card h2 { font-size: 1.375rem; }
.ind-card p { color: var(--body-ink); font-size: 1rem; }
.ind-card .go { color: var(--accent); font-weight: 600; margin-top: 4px; }
a.ind-card:hover { border-color: var(--accent); color: var(--ink); }
a.ind-card:hover .go { text-decoration: underline; }
.ind-card.soon { background: transparent; }
.ind-card.soon h2 { color: var(--muted); }
.ind-card .badge { justify-self: start; font-family: var(--mono); font-size: 0.7rem; letter-spacing: 0.06em; text-transform: uppercase; color: var(--muted); border: 1px solid var(--rule); border-radius: 999px; padding: 3px 10px; }

@media (max-width: 900px) {
  .paths, .apps, .ind-cards, .steps.three { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .pain { grid-template-columns: minmax(0, 1fr); }
  .pain .fix { border-left: 0; border-top: 1px solid var(--rule); }
}
@media (max-width: 640px) {
  .paths, .apps, .ind-cards, .steps.three { grid-template-columns: minmax(0, 1fr); }
  .pain .today, .pain .fix { padding: 24px 20px; }
  .path, .app, .example, .keep { padding: 22px 20px; }
  .ind-hero .row-ctas .btn, .ind-final .row-ctas .btn { flex: 1 1 100%; }
  .ind-final .row-ctas { width: 100%; }
}
