/* ============================================================
   Polymer Solutions of Texas
   Design tokens
   ============================================================ */

:root {
  --ink:        #171B33;   /* deep indigo, from the PSOT logo   */
  --ink-soft:   #3D4459;
  --body:       #545B70;
  --paper:      #FBFBF8;   /* warm lab paper                    */
  --paper-alt:  #F2F3EF;
  --rule:       #D5D8DF;
  --rule-soft:  #E6E8E4;
  --cyan:       #0B6E93;   /* analytical accent                 */
  --cyan-tint:  #E8F2F6;
  --flag:       #9C5A16;   /* used sparingly, cross-reference   */
  --white:      #FFFFFF;

  --sans: "IBM Plex Sans", system-ui, -apple-system, sans-serif;
  --cond: "IBM Plex Sans Condensed", "IBM Plex Sans", system-ui, sans-serif;
  --mono: "IBM Plex Mono", ui-monospace, "SF Mono", Menlo, monospace;

  --wrap: 1120px;
}

/* ============================================================
   Reset + base
   ============================================================ */

*, *::before, *::after { box-sizing: border-box; }

html { -webkit-text-size-adjust: 100%; }

body {
  margin: 0;
  background: var(--paper);
  color: var(--body);
  font-family: var(--sans);
  font-size: 17px;
  line-height: 1.65;
  -webkit-font-smoothing: antialiased;
}

img { max-width: 100%; display: block; }

a { color: var(--cyan); text-decoration-thickness: 1px; text-underline-offset: 2px; }
a:hover { color: var(--ink); }

:focus-visible {
  outline: 2px solid var(--cyan);
  outline-offset: 3px;
}

h1, h2, h3, h4 {
  font-family: var(--cond);
  color: var(--ink);
  font-weight: 600;
  line-height: 1.12;
  letter-spacing: -0.005em;
  margin: 0 0 0.5em;
}

h1 { font-size: clamp(2.3rem, 5.2vw, 3.7rem); font-weight: 700; }
h2 { font-size: clamp(1.6rem, 3vw, 2.15rem); }
h3 { font-size: 1.2rem; font-family: var(--sans); font-weight: 600; letter-spacing: 0; }

p { margin: 0 0 1.1em; max-width: 68ch; }

.wrap { max-width: var(--wrap); margin: 0 auto; padding: 0 28px; }
.narrow { max-width: 780px; }

/* ============================================================
   Eyebrow / label type — the CoA vernacular
   ============================================================ */

.eyebrow {
  font-family: var(--mono);
  font-size: 0.7rem;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: var(--cyan);
  margin: 0 0 1.1rem;
  display: block;
}

.eyebrow--muted { color: var(--ink-soft); opacity: 0.75; }

/* ============================================================
   Header
   ============================================================ */

.masthead {
  border-bottom: 1px solid var(--rule);
  background: var(--white);
  position: sticky;
  top: 0;
  z-index: 50;
}

.masthead__inner {
  max-width: var(--wrap);
  margin: 0 auto;
  padding: 0 28px;
  display: flex;
  align-items: center;
  gap: 28px;
  min-height: 68px;
  flex-wrap: wrap;
}

.wordmark {
  font-family: var(--cond);
  font-weight: 700;
  font-size: 1.02rem;
  letter-spacing: 0.01em;
  color: var(--ink);
  text-decoration: none;
  line-height: 1.15;
  padding: 12px 0;
}
.wordmark img {
  display: block;
  height: 38px;
  width: auto;
  margin-bottom: 3px;
}
.foot__logo {
  display: block;
  height: 40px;
  width: auto;
  margin: 0 0 30px;
}
.wordmark span {
  display: block;
  font-family: var(--mono);
  font-size: 0.6rem;
  letter-spacing: 0.16em;
  color: var(--cyan);
  font-weight: 400;
  text-transform: uppercase;
}

.nav { display: flex; gap: 22px; margin-left: auto; flex-wrap: wrap; align-items: center; }

.nav a {
  font-family: var(--cond);
  font-size: 0.94rem;
  font-weight: 500;
  color: var(--ink-soft);
  text-decoration: none;
  padding: 6px 0;
  border-bottom: 2px solid transparent;
}
.nav a:hover { color: var(--ink); border-bottom-color: var(--rule); }
.nav a[aria-current="page"] { color: var(--ink); border-bottom-color: var(--cyan); }

.nav__tel {
  font-family: var(--mono);
  font-size: 0.85rem;
  color: var(--ink);
  text-decoration: none;
  white-space: nowrap;
}

/* ============================================================
   Hero
   ============================================================ */

.hero {
  background: var(--white);
  border-bottom: 1px solid var(--rule);
  padding: clamp(56px, 8vw, 92px) 0 0;
}

.hero__lede {
  font-size: clamp(1.05rem, 1.7vw, 1.22rem);
  color: var(--ink-soft);
  max-width: 60ch;
}

.hero h1 { max-width: 19ch; }

/* The signature element: a certificate-of-analysis data strip */

.specstrip {
  margin-top: clamp(38px, 5vw, 56px);
  border-top: 1px solid var(--rule);
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(132px, 1fr));
}

.specstrip__cell {
  padding: 20px 22px 22px 0;
  border-right: 1px solid var(--rule-soft);
}
.specstrip__cell:last-child { border-right: none; }

.specstrip__key {
  font-family: var(--mono);
  font-size: 0.63rem;
  letter-spacing: 0.13em;
  text-transform: uppercase;
  color: var(--body);
  opacity: 0.8;
  display: block;
  margin-bottom: 5px;
}
.specstrip__val {
  font-family: var(--mono);
  font-size: 1.16rem;
  color: var(--ink);
  font-weight: 500;
  font-variant-numeric: tabular-nums;
}
.specstrip__note {
  font-family: var(--mono);
  font-size: 0.62rem;
  color: var(--body);
  opacity: 0.7;
  padding: 10px 0 18px;
  letter-spacing: 0.03em;
}

/* ============================================================
   Sections
   ============================================================ */

.band { padding: clamp(52px, 7vw, 78px) 0; }
.band--alt { background: var(--paper-alt); border-block: 1px solid var(--rule-soft); }
.band--ink { background: var(--ink); }
.band--ink h2, .band--ink h3 { color: var(--white); }
.band--ink p { color: #C3C8D6; }
.band--ink .eyebrow { color: #7FC4DE; }

.section-head { margin-bottom: 34px; }

/* ============================================================
   Grids
   ============================================================ */

.grid { display: grid; gap: 26px; }
.grid--2 { grid-template-columns: repeat(auto-fit, minmax(300px, 1fr)); }
.grid--3 { grid-template-columns: repeat(auto-fit, minmax(255px, 1fr)); }

.card {
  background: var(--white);
  border: 1px solid var(--rule);
  border-radius: 3px;
  padding: 26px 24px;
}
.card h3 { margin-bottom: 8px; }
.card p { font-size: 0.95rem; margin-bottom: 0; }
.card__tag {
  font-family: var(--mono);
  font-size: 0.63rem;
  letter-spacing: 0.13em;
  text-transform: uppercase;
  color: var(--cyan);
  display: block;
  margin-bottom: 12px;
}

/* ============================================================
   Data tables — first-class citizens here
   ============================================================ */

.tablewrap { overflow-x: auto; -webkit-overflow-scrolling: touch; }

table.data {
  width: 100%;
  border-collapse: collapse;
  font-size: 0.93rem;
  background: var(--white);
  min-width: 640px;
}

table.data caption {
  text-align: left;
  font-family: var(--mono);
  font-size: 0.66rem;
  letter-spacing: 0.13em;
  text-transform: uppercase;
  color: var(--body);
  padding-bottom: 12px;
}

table.data th {
  font-family: var(--mono);
  font-size: 0.64rem;
  letter-spacing: 0.11em;
  text-transform: uppercase;
  color: var(--ink);
  font-weight: 600;
  text-align: left;
  padding: 13px 16px;
  border-bottom: 2px solid var(--ink);
  vertical-align: bottom;
  white-space: nowrap;
}

table.data td {
  padding: 15px 16px;
  border-bottom: 1px solid var(--rule-soft);
  vertical-align: top;
  color: var(--body);
}

table.data tbody tr:hover { background: var(--cyan-tint); }

table.data .prod {
  font-family: var(--mono);
  font-weight: 500;
  color: var(--ink);
  white-space: nowrap;
}

table.data .num {
  font-family: var(--mono);
  font-variant-numeric: tabular-nums;
  color: var(--ink);
  white-space: nowrap;
}

/* comparison table variant */
table.data.compare td:nth-child(2) { background: #F6FAFC; color: var(--ink); font-weight: 500; }
table.data.compare th:nth-child(2) { color: var(--cyan); }

/* ============================================================
   Buttons
   ============================================================ */

.btn {
  display: inline-block;
  font-family: var(--cond);
  font-size: 0.98rem;
  font-weight: 600;
  padding: 12px 24px;
  border-radius: 3px;
  text-decoration: none;
  border: 1px solid var(--ink);
  background: var(--ink);
  color: var(--white);
  cursor: pointer;
  transition: background .15s ease, color .15s ease;
}
.btn:hover { background: var(--cyan); border-color: var(--cyan); color: var(--white); }

.btn--ghost { background: transparent; color: var(--ink); }
.btn--ghost:hover { background: var(--ink); color: var(--white); border-color: var(--ink); }

.btn--light { background: var(--white); color: var(--ink); border-color: var(--white); }
.btn--light:hover { background: var(--cyan); border-color: var(--cyan); color: var(--white); }

.btnrow { display: flex; gap: 12px; flex-wrap: wrap; margin-top: 26px; }

/* ============================================================
   Lists
   ============================================================ */

ul.ticks { list-style: none; padding: 0; margin: 0 0 1.2em; }
ul.ticks li {
  position: relative;
  padding-left: 24px;
  margin-bottom: 9px;
  font-size: 0.96rem;
}
ul.ticks li::before {
  content: "";
  position: absolute;
  left: 0; top: 0.62em;
  width: 11px; height: 1px;
  background: var(--cyan);
}

dl.facts { margin: 0; }
dl.facts div {
  display: flex;
  gap: 18px;
  padding: 13px 0;
  border-bottom: 1px solid var(--rule-soft);
  flex-wrap: wrap;
}
dl.facts dt {
  font-family: var(--mono);
  font-size: 0.66rem;
  letter-spacing: 0.11em;
  text-transform: uppercase;
  color: var(--body);
  min-width: 168px;
  padding-top: 3px;
}
dl.facts dd { margin: 0; color: var(--ink); flex: 1; min-width: 200px; }

/* ============================================================
   Callout / note
   ============================================================ */

.note {
  border-left: 3px solid var(--cyan);
  background: var(--cyan-tint);
  padding: 18px 22px;
  border-radius: 0 3px 3px 0;
  font-size: 0.94rem;
}
.note p:last-child { margin-bottom: 0; }

.legal {
  font-size: 0.78rem;
  color: var(--body);
  opacity: 0.85;
  max-width: 80ch;
  line-height: 1.55;
}

/* ============================================================
   Form
   ============================================================ */

.form { max-width: 620px; }
.field { margin-bottom: 20px; }
.field label {
  display: block;
  font-family: var(--mono);
  font-size: 0.66rem;
  letter-spacing: 0.11em;
  text-transform: uppercase;
  color: var(--ink);
  margin-bottom: 7px;
}
.field input,
.field select,
.field textarea {
  width: 100%;
  font-family: var(--sans);
  font-size: 1rem;
  color: var(--ink);
  padding: 11px 13px;
  border: 1px solid var(--rule);
  border-radius: 3px;
  background: var(--white);
}
.field textarea { min-height: 128px; resize: vertical; }
.field input:focus, .field select:focus, .field textarea:focus {
  border-color: var(--cyan);
  outline: 2px solid var(--cyan);
  outline-offset: 1px;
}
.field__hint { font-size: 0.82rem; margin: 6px 0 0; color: var(--body); }

/* ============================================================
   Footer
   ============================================================ */

.foot {
  background: var(--ink);
  color: #AEB4C6;
  padding: 54px 0 30px;
  font-size: 0.9rem;
}
.foot a { color: #AEB4C6; text-decoration: none; }
.foot a:hover { color: var(--white); text-decoration: underline; }
.foot h4 {
  font-family: var(--mono);
  font-size: 0.64rem;
  letter-spacing: 0.13em;
  text-transform: uppercase;
  color: #7FC4DE;
  margin: 0 0 14px;
  font-weight: 500;
}
.foot__grid {
  display: grid;
  gap: 34px;
  grid-template-columns: repeat(auto-fit, minmax(210px, 1fr));
  padding-bottom: 34px;
  border-bottom: 1px solid #2C3350;
}
.foot__base {
  padding-top: 22px;
  display: flex;
  justify-content: space-between;
  gap: 18px;
  flex-wrap: wrap;
  font-family: var(--mono);
  font-size: 0.7rem;
  letter-spacing: 0.05em;
  color: #79809A;
}
.foot ul { list-style: none; padding: 0; margin: 0; }
.foot li { margin-bottom: 8px; }

/* ============================================================
   Motion
   ============================================================ */

.rise { opacity: 0; transform: translateY(14px); transition: opacity .6s ease, transform .6s ease; }
.rise.in { opacity: 1; transform: none; }

@media (prefers-reduced-motion: reduce) {
  * { animation: none !important; transition: none !important; }
  .rise { opacity: 1; transform: none; }
}

/* ============================================================
   Small screens
   ============================================================ */

@media (max-width: 720px) {
  body { font-size: 16px; }
  .masthead__inner { min-height: 0; padding-block: 10px; }
  .nav { gap: 16px; width: 100%; margin-left: 0; padding-bottom: 8px; }
  .nav__tel { margin-left: auto; }
  .specstrip__cell { border-right: none; border-bottom: 1px solid var(--rule-soft); padding: 15px 0; }
  dl.facts dt { min-width: 100%; }
}
