/* Function pages. Loads after site.css, which carries the brand, the nav, the
   footer and the demo primitives (.v2-xls, .chart/.crow, file pills). Only the
   page-specific furniture lives here. */

body.fn-page { background: #fff; }
.fn-wrap { max-width: 1180px; margin: 0 auto; padding: 0 clamp(20px, 4vw, 48px); }

/* ---------- hero ---------- */
.fn-hero { padding: clamp(120px, 13vh, 168px) 0 clamp(40px, 5vw, 64px); }
.fn-crumbs { font-size: 13px; color: #a6adb7; margin-bottom: 22px; }
.fn-crumbs a { color: #6b727d; text-decoration: none; }
.fn-crumbs a:hover { color: var(--orange, #e8662a); }
.fn-eyebrow {
  display: inline-flex; align-items: center; gap: 8px; margin-bottom: 16px;
  padding: 5px 12px 5px 8px; border: 1px solid #f2d9c9; border-radius: 999px;
  background: #fff6f0;
  font-family: var(--mono, monospace); font-size: 11px; font-weight: 700;
  letter-spacing: .1em; text-transform: uppercase; color: #c2410c;
}
.fn-eyebrow b { font-size: 12px; }
.fn-hero h1 {
  margin: 0 0 18px; font-size: clamp(40px, 5.4vw, 68px); line-height: 1.02;
  font-weight: 600; letter-spacing: -.024em; color: #14161a;
}
.fn-lede {
  margin: 0 0 20px; max-width: 780px;
  font-size: clamp(19px, 1.9vw, 24px); line-height: 1.42; font-weight: 500;
  letter-spacing: -.012em; color: #2b3038;
}
.fn-lede b { color: #d4531c; font-weight: 600; }
.fn-blurb { max-width: 760px; }
.fn-blurb p { margin: 0 0 14px; font-size: 16px; line-height: 1.62; color: #5c646f; }

/* ---------- what good looks like ---------- */
.fn-principles {
  display: grid; grid-template-columns: repeat(4, 1fr); gap: 1px;
  margin: 8px 0 clamp(56px, 7vw, 88px);
  border: 1px solid #e9ebee; border-radius: 14px; overflow: hidden;
  background: #e9ebee;
}
.fn-principles div { padding: 20px 20px 22px; background: #fff; }
.fn-principles h3 {
  margin: 0 0 7px; font-size: 14.5px; font-weight: 600; letter-spacing: -.01em; color: #14161a;
}
.fn-principles p { margin: 0; font-size: 13.5px; line-height: 1.55; color: #6b727d; }

/* ---------- Atlas in action ---------- */
.fn-demo { padding: clamp(52px, 6vw, 76px) 0 clamp(56px, 7vw, 92px); background: #fff; border-top: 1px solid #eef0f3; }

/* The Atlas box. The landing page puts every demo inside a browser frame; these
   examples are the same product and belong in the same container. */
.fn-stage {
  border: 1px solid #e6e8ec; border-radius: 18px; background: #fff; overflow: hidden;
  box-shadow: 0 2px 6px rgba(17,19,23,.04), 0 34px 80px -34px rgba(17,19,23,.26);
}
.fn-stage-body { padding: clamp(18px, 2.6vw, 32px); background: #f7f8fa; }
.fn-demo-head { max-width: 720px; margin-bottom: clamp(24px, 3vw, 36px); }
.fn-demo-head h2 {
  margin: 0 0 10px; font-size: clamp(28px, 3.2vw, 40px); line-height: 1.1;
  font-weight: 600; letter-spacing: -.022em; color: #14161a;
}
.fn-demo-head p { margin: 0; font-size: 16px; line-height: 1.6; color: #6b727d; }

.fn-thread { display: grid; gap: 14px; }
.fn-ask {
  align-self: end; justify-self: end; max-width: min(680px, 82%);
  padding: 14px 17px; border: 1px solid #f6d9c5; border-radius: 12px;
  background: #fdf1e9; color: #2b3038; font-size: 15px; line-height: 1.5;
}
.fn-ask .fn-files { display: flex; flex-wrap: wrap; gap: 7px; margin-bottom: 10px; }
.fn-reply {
  padding: 22px 24px 24px; border: 1px solid #e8eaee; border-radius: 16px; background: #fff;
  box-shadow: 0 1px 2px rgba(17,19,23,.03), 0 18px 44px -26px rgba(17,19,23,.18);
}
.fn-reply-brand {
  display: flex; align-items: center; gap: 8px; margin-bottom: 12px;
  font-size: 12.5px; font-weight: 700; color: #14161a;
}
.fn-reply h3 {
  margin: 0 0 10px; font-size: clamp(20px, 2.2vw, 26px); line-height: 1.22;
  font-weight: 600; letter-spacing: -.018em; color: #14161a;
}
.fn-reply > p { margin: 0 0 16px; font-size: 15px; line-height: 1.58; color: #4d5560; }
.fn-artifacts { display: grid; gap: 14px; margin-top: 4px; }
.fn-artifacts.two { grid-template-columns: 1fr 1fr; align-items: start; }
.fn-note { margin: 12px 0 0; font-size: 13px; line-height: 1.55; color: #8b929c; font-style: italic; }

/* ---------- artifact primitives ---------- */
.art {
  border: 1px solid #e6e9ed; border-radius: 12px; background: #fff; overflow: hidden;
  box-shadow: 0 1px 2px rgba(17,19,23,.03);
}
.art-bar {
  display: flex; align-items: center; gap: 9px; padding: 10px 14px;
  border-bottom: 1px solid #eef0f3; background: #fbfbfc;
}
.art-bar b { font-size: 12.5px; font-weight: 600; color: #14161a; }
.art-bar span { margin-left: auto; font-family: var(--mono, monospace); font-size: 10.5px; color: #a6adb7; }
.art-bar i.tag {
  font-style: normal; display: inline-flex; align-items: center; justify-content: center;
  width: 22px; height: 16px; border-radius: 3px; font-size: 8.5px; font-weight: 700; color: #fff;
}
.tag-xls { background: #107c41; }
.tag-pdf { background: #d0342c; }
.tag-doc { background: #2b579a; }
.tag-img { background: #7a5af5; }

/* A data table narrower than its content gets clipped by the card's overflow:
   hidden, so it scrolls inside its own container instead. */
.art-scroll { overflow-x: auto; -webkit-overflow-scrolling: touch; }
table.art-table { width: 100%; border-collapse: collapse; }
.art-table td, .art-table th {
  padding: 10px 14px; text-align: left; font-size: 13px; color: #2b3038;
  border-top: 1px solid #f0f2f4; vertical-align: top;
}
.art-table th {
  font-family: var(--mono, monospace); font-size: 10px; font-weight: 700;
  letter-spacing: .07em; text-transform: uppercase; color: #a6adb7; border-top: 0;
}
.art-table td.num, .art-table th.num { text-align: right; font-variant-numeric: tabular-nums; white-space: nowrap; }
.art-table tr.tot td { font-weight: 600; background: #fafbfc; border-top: 1px solid #e6e9ed; }
.art-table tr.flag td { background: #fff8f4; }
.art-table td small { display: block; margin-top: 2px; font-size: 11.5px; color: #8b929c; }
.pill {
  display: inline-block; padding: 2px 8px; border-radius: 999px;
  font-family: var(--mono, monospace); font-size: 9.5px; font-weight: 700;
  letter-spacing: .04em; white-space: nowrap;
}
.pill-good { background: #e9f6ee; color: #12703a; }
.pill-warn { background: #fff2e9; color: #c2410c; }
.pill-bad  { background: #fdecec; color: #b3261e; }
.pill-flat { background: #f1f3f5; color: #5c646f; }
.up { color: #12703a; } .down { color: #b3261e; }

/* simple horizontal bars */
.art-bars { padding: 14px 16px 16px; }
.art-bars .row { display: grid; grid-template-columns: 132px minmax(0,1fr) 78px; gap: 12px; align-items: center; margin-bottom: 9px; }
.art-bars .row:last-child { margin-bottom: 0; }
.art-bars .row span { font-size: 12.5px; color: #5c646f; }
.art-bars .row em { font-family: var(--mono, monospace); font-size: 11px; color: #6b727d; font-style: normal; text-align: right; }
.art-bars .track { height: 9px; border-radius: 5px; background: #f0f2f4; overflow: hidden; }
.art-bars .track i { display: block; height: 100%; border-radius: 5px; background: #e8662a; }
.art-bars .track i.alt { background: #cfd4da; }
.art-bars .track i.neg { background: #8b929c; }
.art-bars .legend { display: flex; gap: 16px; margin: 2px 0 12px; font-size: 11.5px; color: #8b929c; }
.art-bars .legend b { display: inline-block; width: 9px; height: 9px; border-radius: 2px; margin-right: 6px; }

/* a written artifact: ad copy, talk track, email */
.art-copy { padding: 16px 18px 18px; }
.art-copy .kicker {
  font-family: var(--mono, monospace); font-size: 10px; font-weight: 700;
  letter-spacing: .1em; text-transform: uppercase; color: #a6adb7; margin-bottom: 8px;
}
.art-copy h4 { margin: 0 0 8px; font-size: 19px; line-height: 1.28; font-weight: 600; letter-spacing: -.015em; color: #14161a; }
.art-copy p { margin: 0 0 9px; font-size: 14px; line-height: 1.55; color: #4d5560; }
.art-copy p:last-child { margin-bottom: 0; }
.art-copy .strike { color: #a6adb7; text-decoration: line-through; }
.art-copy .cta {
  display: inline-block; margin-top: 6px; padding: 8px 15px; border-radius: 8px;
  background: #e8662a; color: #fff; font-size: 13px; font-weight: 600;
}

/* checklist / steps */
.art-list { list-style: none; margin: 0; padding: 6px 0; }
.art-list li { display: flex; gap: 11px; padding: 10px 16px; border-top: 1px solid #f0f2f4; font-size: 13.5px; line-height: 1.5; color: #2b3038; }
.art-list li:first-child { border-top: 0; }
.art-list li b { display: block; font-weight: 600; }
.art-list li span { display: block; margin-top: 2px; font-size: 12px; color: #8b929c; }
.art-list .n {
  flex: none; width: 21px; height: 21px; border-radius: 50%; background: #14161a; color: #fff;
  font-family: var(--mono, monospace); font-size: 10.5px; font-weight: 700;
  display: flex; align-items: center; justify-content: center;
}
.art-list .ok { flex: none; width: 21px; height: 21px; border-radius: 50%; background: #e9f6ee; color: #12703a;
  display: flex; align-items: center; justify-content: center; font-size: 12px; font-weight: 700; }
.art-list .no { flex: none; width: 21px; height: 21px; border-radius: 50%; background: #fdecec; color: #b3261e;
  display: flex; align-items: center; justify-content: center; font-size: 12px; font-weight: 700; }

/* ---------- closing blocks ---------- */
.fn-close { padding: clamp(56px, 7vw, 88px) 0; }
.fn-close h2 { margin: 0 0 12px; font-size: clamp(26px, 3vw, 36px); line-height: 1.12; font-weight: 600; letter-spacing: -.022em; color: #14161a; }
.fn-close p { margin: 0 0 22px; max-width: 640px; font-size: 16px; line-height: 1.6; color: #6b727d; }
.fn-close .btn { margin-right: 10px; }

.fn-pager { display: flex; gap: 14px; flex-wrap: wrap; margin-top: clamp(40px, 5vw, 64px); padding-top: 28px; border-top: 1px solid #eef0f3; }
.fn-pager a {
  flex: 1 1 240px; padding: 16px 18px; border: 1px solid #e9ebee; border-radius: 12px;
  text-decoration: none; transition: border-color .15s ease, box-shadow .15s ease;
}
.fn-pager a:hover { border-color: #d9dde2; box-shadow: 0 8px 24px -16px rgba(17,19,23,.25); }
.fn-pager small { display: block; font-family: var(--mono, monospace); font-size: 10px; font-weight: 700; letter-spacing: .1em; text-transform: uppercase; color: #a6adb7; }
.fn-pager b { display: block; margin-top: 5px; font-size: 16px; font-weight: 600; color: #14161a; }

/* ---------- hub ---------- */
.fn-hub-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 14px; margin-top: 8px; }
.fn-card {
  display: block; padding: 20px 20px 22px; border: 1px solid #e9ebee; border-radius: 14px;
  text-decoration: none; background: #fff;
  transition: border-color .15s ease, box-shadow .15s ease, transform .15s ease;
}
.fn-card:hover { border-color: #e0d5cd; box-shadow: 0 14px 34px -22px rgba(17,19,23,.3); transform: translateY(-1px); }
.fn-card i {
  font-style: normal; font-family: var(--mono, monospace); font-size: 11px; font-weight: 700;
  letter-spacing: .08em; color: var(--orange, #e8662a);
}
.fn-card b { display: block; margin: 8px 0 6px; font-size: 18px; font-weight: 600; letter-spacing: -.015em; color: #14161a; }
.fn-card span { display: block; font-size: 13.5px; line-height: 1.55; color: #6b727d; }

/* ---------- responsive ---------- */
@media (max-width: 1000px) {
  .fn-principles { grid-template-columns: 1fr 1fr; }
  .fn-hub-grid { grid-template-columns: 1fr 1fr; }
  .fn-artifacts.two { grid-template-columns: 1fr; }
}
@media (max-width: 700px) {
  .fn-principles { grid-template-columns: 1fr; }
  .fn-hub-grid { grid-template-columns: 1fr; }
  .fn-ask { max-width: 100%; justify-self: stretch; font-size: 14px; }
  .fn-reply { padding: 18px 16px 20px; }
  /* fit the table to the card rather than leaving the last column off-screen;
     the scroll container stays as the fallback for the widest ones */
  /* long filename + meta on one line overflowed the card, which clips */
  .art-bar { flex-wrap: wrap; row-gap: 2px; padding: 9px 11px; }
  .art-bar b { font-size: 12px; overflow-wrap: anywhere; }
  .art-bar span { margin-left: 0; width: 100%; }

  .art-table td, .art-table th { padding: 8px 9px; font-size: 11.5px; overflow-wrap: anywhere; }
  .art-table th { font-size: 9px; letter-spacing: .05em; }
  .art-scroll table.art-table { width: auto; min-width: 100%; }
  .art-table td small { font-size: 10.5px; }
  .pill { font-size: 8.5px; padding: 2px 6px; }
  .art-bars .row { grid-template-columns: 96px minmax(0,1fr) 62px; gap: 9px; }
  .art-bars .row span { font-size: 11.5px; }
}
