/* Industry solution pages (/solutions/*.html).
 *
 * A separate stylesheet, loaded AFTER css/style.css, because the solution
 * pages are owned independently of the main site design and must never be a
 * reason to touch css/style.css. Every selector is prefixed .sol- so it
 * cannot collide with anything in the base sheet.
 *
 * Colours come from the Harbor Ink layer's custom properties with the older
 * base-layer names as fallbacks -- var(--ink, var(--text)) -- so these pages
 * follow all four colour schemes (harbor/tide/ember/noir) without hardcoding
 * a single hex value.
 */

.sol-page {
  --sol-ink: var(--ink, var(--text, #37352F));
  --sol-soft: var(--slate, var(--text-light, #787774));
  --sol-line: var(--hairline, var(--border, #E9E9E7));
  --sol-card: var(--surface, #FFFFFF);
  --sol-paper: var(--paper, var(--surface-2, #F7F6F3));
  --sol-brand: var(--brand-1, var(--primary, #2383E2));
  --sol-brand-2: var(--brand-2, var(--primary-dark, #1A6AC2));
  --sol-shadow: var(--elev, var(--shadow, 0 1px 3px rgba(15, 15, 15, .06)));
  --sol-r: var(--radius-lg, 10px);
}

/* ---------------------------------------------------------------- hero -- */

.sol-hero {
  background: var(--sol-paper);
  border-bottom: 1px solid var(--sol-line);
  padding: 3.5rem 0 3rem;
}

.sol-eyebrow {
  display: inline-flex;
  align-items: center;
  gap: .5rem;
  font-size: .78rem;
  font-weight: 700;
  letter-spacing: .08em;
  text-transform: uppercase;
  color: var(--sol-brand);
  margin: 0 0 1rem;
}

.sol-eyebrow::before {
  content: "";
  width: 1.5rem;
  height: 2px;
  background: currentColor;
  border-radius: 2px;
}

.sol-hero h1 {
  font-size: clamp(1.9rem, 4.6vw, 3rem);
  line-height: 1.12;
  letter-spacing: -.02em;
  color: var(--sol-ink);
  margin: 0 0 1rem;
  max-width: 20ch;
}

.sol-lede {
  font-size: clamp(1.02rem, 1.6vw, 1.18rem);
  line-height: 1.65;
  color: var(--sol-soft);
  max-width: 62ch;
  margin: 0 0 1.1rem;
}

.sol-lede strong { color: var(--sol-ink); font-weight: 600; }

.sol-actions {
  display: flex;
  flex-wrap: wrap;
  gap: .75rem;
  margin-top: 1.75rem;
}

.sol-btn {
  display: inline-flex;
  align-items: center;
  gap: .55rem;
  padding: .8rem 1.4rem;
  border-radius: var(--radius, 6px);
  font-weight: 600;
  font-size: .95rem;
  text-decoration: none;
  border: 1px solid transparent;
  transition: transform .15s ease, box-shadow .15s ease, background .15s ease;
}

.sol-btn-primary {
  background: var(--sol-brand);
  color: #fff;
  box-shadow: var(--brand-shadow, 0 3px 10px rgba(35, 131, 226, .28));
}

.sol-btn-primary:hover {
  background: var(--sol-brand-2);
  transform: translateY(-1px);
  color: #fff;
}

.sol-btn-ghost {
  background: var(--sol-card);
  color: var(--sol-ink);
  border-color: var(--sol-line);
}

.sol-btn-ghost:hover { border-color: var(--sol-brand); color: var(--sol-brand); }

/* -------------------------------------------------------------- section -- */

.sol-section { padding: 3.25rem 0; }
.sol-section-tint { background: var(--sol-paper); border-block: 1px solid var(--sol-line); }

.sol-h2 {
  font-size: clamp(1.4rem, 2.6vw, 1.9rem);
  line-height: 1.2;
  letter-spacing: -.015em;
  color: var(--sol-ink);
  margin: 0 0 .6rem;
}

.sol-sub {
  font-size: 1rem;
  line-height: 1.65;
  color: var(--sol-soft);
  max-width: 66ch;
  margin: 0 0 2rem;
}

/* ----------------------------------------------------------------- jobs -- */

.sol-jobs {
  display: grid;
  /* min() keeps the track from exceeding the viewport on a narrow phone while
   * still forcing two columns rather than three on a wide screen -- four cards
   * of this much prose read as a 2x2 block, not a row of three plus an orphan. */
  grid-template-columns: repeat(auto-fit, minmax(min(100%, 420px), 1fr));
  gap: 1.25rem;
  list-style: none;
  margin: 0;
  padding: 0;
}

.sol-job {
  background: var(--sol-card);
  border: 1px solid var(--sol-line);
  border-radius: var(--sol-r);
  padding: 1.6rem 1.5rem;
  box-shadow: var(--sol-shadow);
  display: flex;
  flex-direction: column;
  gap: .8rem;
}

.sol-job-n {
  font-size: .72rem;
  font-weight: 800;
  letter-spacing: .1em;
  color: var(--sol-brand);
}

.sol-job h3 {
  font-size: 1.12rem;
  line-height: 1.3;
  color: var(--sol-ink);
  margin: 0;
}

.sol-job p {
  font-size: .94rem;
  line-height: 1.62;
  color: var(--sol-soft);
  margin: 0;
}

.sol-job p strong { color: var(--sol-ink); font-weight: 600; }

/* The "what you actually make" strip: the concrete tool, named, with its link.
 * Visually separated from the prose so a reader skimming for the tool finds it
 * without reading the paragraph. */
.sol-make {
  margin-top: auto;
  padding-top: .9rem;
  border-top: 1px dashed var(--sol-line);
  display: flex;
  flex-direction: column;
  gap: .4rem;
}

.sol-make-label {
  font-size: .7rem;
  font-weight: 700;
  letter-spacing: .09em;
  text-transform: uppercase;
  color: var(--sol-soft);
}

.sol-make a {
  font-size: .92rem;
  font-weight: 600;
  color: var(--sol-brand);
  text-decoration: none;
  display: inline-flex;
  align-items: baseline;
  gap: .4rem;
}

.sol-make a:hover { text-decoration: underline; }
.sol-make a::after { content: "\2192"; font-weight: 400; }

/* -------------------------------------------------------------- example -- */

.sol-example {
  background: var(--sol-card);
  border: 1px solid var(--sol-line);
  border-left: 4px solid var(--sol-brand);
  border-radius: var(--sol-r);
  padding: 1.9rem 1.75rem;
  box-shadow: var(--sol-shadow);
}

/* The label is not decoration. Bitly's equivalent sections are customer
 * stories; ours are invented, and the page has to say so where the reader
 * will actually see it. */
.sol-example-tag {
  display: inline-block;
  font-size: .7rem;
  font-weight: 800;
  letter-spacing: .09em;
  text-transform: uppercase;
  color: var(--sol-brand);
  border: 1px solid currentColor;
  border-radius: var(--radius-pill, 999px);
  padding: .28rem .7rem;
  margin-bottom: 1rem;
}

.sol-example h3 {
  font-size: 1.2rem;
  color: var(--sol-ink);
  margin: 0 0 .7rem;
}

.sol-example > p {
  font-size: .97rem;
  line-height: 1.68;
  color: var(--sol-soft);
  margin: 0 0 1.2rem;
  max-width: 70ch;
}

.sol-steps {
  counter-reset: solstep;
  list-style: none;
  margin: 0;
  padding: 0;
  display: grid;
  gap: .9rem;
}

.sol-steps li {
  counter-increment: solstep;
  position: relative;
  padding-left: 2.5rem;
  font-size: .95rem;
  line-height: 1.62;
  color: var(--sol-soft);
}

.sol-steps li::before {
  content: counter(solstep);
  position: absolute;
  left: 0;
  top: -.1rem;
  width: 1.75rem;
  height: 1.75rem;
  border-radius: 50%;
  background: var(--sol-paper);
  border: 1px solid var(--sol-line);
  color: var(--sol-ink);
  font-size: .8rem;
  font-weight: 700;
  display: grid;
  place-items: center;
}

.sol-steps li strong { color: var(--sol-ink); font-weight: 600; }
.sol-steps a { color: var(--sol-brand); }

/* ---------------------------------------------------------------- costs -- */

.sol-costs {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(260px, 1fr));
  gap: 1.25rem;
}

.sol-cost {
  background: var(--sol-card);
  border: 1px solid var(--sol-line);
  border-radius: var(--sol-r);
  padding: 1.5rem;
}

.sol-cost-free { border-color: var(--sol-brand); }

.sol-cost h3 {
  font-size: 1rem;
  color: var(--sol-ink);
  margin: 0 0 .25rem;
}

.sol-cost-price {
  font-size: .82rem;
  font-weight: 700;
  color: var(--sol-brand);
  margin: 0 0 1rem;
}

.sol-cost ul {
  list-style: none;
  margin: 0;
  padding: 0;
  display: grid;
  gap: .55rem;
}

.sol-cost li {
  font-size: .9rem;
  line-height: 1.55;
  color: var(--sol-soft);
  padding-left: 1.4rem;
  position: relative;
}

.sol-cost li::before {
  content: "\2713";
  position: absolute;
  left: 0;
  top: 0;
  color: var(--sol-brand);
  font-weight: 700;
}

/* ---------------------------------------------------------------- notes -- */

.sol-notes {
  list-style: none;
  margin: 0;
  padding: 0;
  display: grid;
  gap: 1rem;
  max-width: 76ch;
}

.sol-notes li {
  font-size: .96rem;
  line-height: 1.65;
  color: var(--sol-soft);
  padding-left: 1.6rem;
  position: relative;
}

.sol-notes li::before {
  content: "";
  position: absolute;
  left: 0;
  top: .55rem;
  width: .5rem;
  height: .5rem;
  border-radius: 50%;
  background: var(--sol-brand);
}

.sol-notes strong { color: var(--sol-ink); font-weight: 600; }
.sol-notes a { color: var(--sol-brand); }

/* ---------------------------------------------------------------- links -- */

.sol-links {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(240px, 1fr));
  gap: .75rem;
  list-style: none;
  margin: 0;
  padding: 0;
}

.sol-links a {
  display: block;
  background: var(--sol-card);
  border: 1px solid var(--sol-line);
  border-radius: var(--radius, 6px);
  padding: .95rem 1.1rem;
  text-decoration: none;
  transition: border-color .15s ease, transform .15s ease;
}

.sol-links a:hover { border-color: var(--sol-brand); transform: translateY(-1px); }

.sol-links b {
  display: block;
  font-size: .93rem;
  font-weight: 600;
  color: var(--sol-ink);
  margin-bottom: .18rem;
}

.sol-links span {
  display: block;
  font-size: .83rem;
  line-height: 1.5;
  color: var(--sol-soft);
}

/* ------------------------------------------------------------------ cta -- */

.sol-cta {
  background: var(--sol-paper);
  border-top: 1px solid var(--sol-line);
  padding: 3.25rem 0;
  text-align: center;
}

.sol-cta h2 {
  font-size: clamp(1.35rem, 2.6vw, 1.85rem);
  color: var(--sol-ink);
  margin: 0 0 .7rem;
}

.sol-cta p {
  font-size: 1rem;
  line-height: 1.65;
  color: var(--sol-soft);
  max-width: 56ch;
  margin: 0 auto 1.6rem;
}

.sol-cta .sol-actions { justify-content: center; }

/* --------------------------------------------------------------- mobile -- */

@media (max-width: 640px) {
  .sol-hero { padding: 2.5rem 0 2.25rem; }
  .sol-hero h1 { max-width: none; }
  .sol-section { padding: 2.5rem 0; }
  .sol-example { padding: 1.4rem 1.15rem; }
  .sol-btn { width: 100%; justify-content: center; }
}

@media (prefers-reduced-motion: reduce) {
  .sol-btn, .sol-links a { transition: none; }
  .sol-btn-primary:hover, .sol-links a:hover { transform: none; }
}

/* ---------------------------------------------------------------- table -- */
/* features.html and compare.html. Row headers carry the sentence, the plan
 * cells carry a short fact; the wrapper scrolls so a four-column table never
 * makes the page itself scroll sideways on a phone. */

.sol-table-wrap { overflow-x: auto; -webkit-overflow-scrolling: touch; margin: 0 0 1rem; }

.sol-table {
  width: 100%;
  min-width: 42rem;
  border-collapse: collapse;
  font-size: .93rem;
  line-height: 1.45;
  color: var(--sol-ink);
  background: var(--sol-card);
  border: 1px solid var(--sol-line);
  border-radius: var(--sol-r);
}

.sol-table thead th {
  text-align: left;
  font-size: .78rem;
  font-weight: 600;
  letter-spacing: .04em;
  text-transform: uppercase;
  color: var(--sol-soft);
  background: var(--sol-paper);
  border-block: 1px solid var(--sol-line);
  padding: .7rem .85rem;
}

.sol-table thead th:not(:first-child) { color: var(--sol-ink); }

.sol-table tbody th,
.sol-table tbody td {
  vertical-align: top;
  padding: .65rem .85rem;
  border-bottom: 1px solid var(--sol-line);
}

.sol-table tbody th { font-weight: 500; text-align: left; width: 46%; }
.sol-table tbody td { font-variant-numeric: tabular-nums; }
.sol-table tbody tr:last-child th,
.sol-table tbody tr:last-child td { border-bottom: 0; }
.sol-table a { color: var(--sol-brand); }

/* A cell that carries a one-word verdict reads faster when it is not the same
 * grey as a paragraph; a dash stays quiet. */
.sol-table td.sol-yes { color: var(--sol-brand-2); font-weight: 600; }
.sol-table td.sol-no { color: var(--sol-soft); }

/* Small caption under a table: where the numbers came from and when. */
.sol-table-note { font-size: .82rem; color: var(--sol-soft); margin: .25rem 0 0; }
