/* ClayForEnterprises.com — RC1 enterprise identity */
:root {
  --ink: #101a2b; --ink-2: #33415c; --muted: #5d6b85;
  --accent: #0e7490; --accent-2: #155e75;
  --bg: #fbfbf9; --bg-alt: #f2f4f3; --card: #fff;
  --line: #dfe3e0; --radius: 10px; --max: 1120px;
}
* { margin: 0; padding: 0; box-sizing: border-box; }
html { scroll-behavior: smooth; }
body { font-family: "Inter", "Segoe UI", system-ui, -apple-system, sans-serif; color: var(--ink); background: var(--bg); line-height: 1.65; font-size: 16.5px; }
.wrap { max-width: var(--max); margin: 0 auto; padding: 0 24px; }
section { padding: 60px 0; }
section.alt { background: var(--bg-alt); border-top: 1px solid var(--line); border-bottom: 1px solid var(--line); }
h1 { font-size: clamp(1.9rem, 4vw, 2.9rem); line-height: 1.15; letter-spacing: -0.022em; font-weight: 800; }
h2 { font-size: clamp(1.35rem, 2.5vw, 1.8rem); letter-spacing: -0.014em; margin: 6px 0 20px; font-weight: 700; }
h3 { font-size: 1.06rem; margin-bottom: 8px; font-weight: 650; }
p { color: var(--ink-2); }
a { color: var(--accent); }
.kicker { text-transform: uppercase; letter-spacing: .16em; font-size: .76rem; font-weight: 700; color: var(--accent-2); margin-bottom: 13px; }
.lede { font-size: 1.16rem; margin: 14px 0 6px; }
.lede-sm { font-size: 1.05rem; margin-bottom: 14px; }
.support, .section-lede { max-width: 800px; }
.center { text-align: center; margin-top: 24px; }
.fine { font-size: .85rem; color: var(--muted); }
.body-p { max-width: 800px; margin-bottom: 14px; }
.positioning { font-size: 1.1rem; color: var(--accent-2); }
.skip { position: absolute; left: -999px; top: 0; background: var(--ink); color: #fff; padding: 10px 16px; z-index: 100; }
.skip:focus { left: 8px; top: 8px; }
a:focus-visible, button:focus-visible, input:focus-visible, textarea:focus-visible { outline: 3px solid var(--accent); outline-offset: 2px; }

header { position: sticky; top: 0; z-index: 50; background: rgba(251,251,249,.94); backdrop-filter: blur(8px); border-bottom: 1px solid var(--line); }
.nav { display: flex; align-items: center; justify-content: space-between; gap: 18px; height: 64px; }
.logo { display: flex; align-items: center; gap: 10px; text-decoration: none; color: var(--ink); font-size: 1rem; white-space: nowrap; }
.logo b { color: var(--accent-2); font-weight: 750; }
.logo-mark { width: 26px; height: 26px; border-radius: 7px; background: conic-gradient(from 210deg, var(--accent), #0f3a45, var(--accent)); display: inline-block; flex: none; }
nav.links { display: flex; gap: 22px; flex-wrap: wrap; }
nav.links a { color: var(--ink-2); text-decoration: none; font-size: .9rem; font-weight: 550; }
nav.links a:hover { color: var(--accent-2); }
@media (max-width: 1000px) { nav.links { display: none; } }

.hero { padding: 84px 0 70px; background: linear-gradient(180deg, #f7f9f8 0%, var(--bg) 100%); border-bottom: 1px solid var(--line); }
.hero-ctas { display: flex; gap: 13px; margin-top: 26px; flex-wrap: wrap; }
.btn { display: inline-block; background: var(--accent); color: #fff; border: 0; border-radius: 9px; padding: 12px 22px; font-size: .95rem; font-weight: 620; cursor: pointer; text-decoration: none; transition: background .15s ease; }
.btn:hover { background: var(--accent-2); }
.btn.slim { padding: 9px 15px; font-size: .84rem; }
.btn.ghost { background: transparent; color: var(--accent-2); border: 1px solid var(--accent-2); }
.btn.ghost:hover { background: var(--accent-2); color: #fff; }
.btn.invert { background: #fff; color: var(--ink); }

.pull { font-size: clamp(1.2rem, 2.3vw, 1.6rem); font-weight: 650; line-height: 1.42; max-width: 900px; margin-bottom: 24px; color: var(--ink); border-left: 4px solid var(--accent); padding-left: 20px; }
.pull.sm { font-size: 1.15rem; margin: 8px 0 14px; }
.two-col { display: grid; grid-template-columns: 1fr 1fr; gap: 32px; }
@media (max-width: 860px) { .two-col { grid-template-columns: 1fr; } }

.cards { display: grid; grid-template-columns: repeat(3, 1fr); gap: 16px; }
.cards.cols4 { grid-template-columns: repeat(4, 1fr); }
.cards + .cards { margin-top: 16px; }
@media (max-width: 980px) { .cards, .cards.cols4 { grid-template-columns: 1fr 1fr; } }
@media (max-width: 620px) { .cards, .cards.cols4 { grid-template-columns: 1fr; } }
.card { background: var(--card); border: 1px solid var(--line); border-radius: var(--radius); padding: 20px; }
.card h3 a { color: var(--ink); text-decoration: none; }
.card h3 a:hover { color: var(--accent-2); }
.card p { font-size: .92rem; }

.flow { display: flex; flex-wrap: wrap; gap: 7px; align-items: center; margin: 24px 0 8px; }
.flow-node { border: 1px solid var(--line); background: var(--card); border-radius: 8px; padding: 7px 12px; font-size: .82rem; font-weight: 570; color: var(--ink-2); }
.flow-node.clay { background: var(--ink); color: #fff; border-color: var(--ink); font-weight: 700; }
.flow-arrow { color: var(--muted); font-size: .88rem; }

.fact { background: var(--card); border: 1px solid var(--line); border-radius: var(--radius); padding: 22px; align-self: start; }
ul.checks { list-style: none; margin: 10px 0 6px; }
ul.checks li { padding: 6px 0 6px 28px; position: relative; color: var(--ink-2); font-size: .93rem; border-bottom: 1px dashed var(--line); }
ul.checks li:last-child { border-bottom: 0; }
ul.checks li::before { content: "✓"; position: absolute; left: 2px; color: var(--accent); font-weight: 700; }
ol.steps { list-style: none; counter-reset: st; margin: 14px 0; }
ol.steps li { counter-increment: st; position: relative; padding: 12px 0 12px 56px; border-bottom: 1px solid var(--line); }
ol.steps li:last-child { border-bottom: 0; }
ol.steps li::before { content: counter(st, decimal-leading-zero); position: absolute; left: 0; top: 10px; font-size: 1.3rem; font-weight: 800; color: var(--accent); }
ol.steps p { font-size: .93rem; margin-top: 3px; }

.tablewrap { overflow-x: auto; margin: 18px 0; }
table { border-collapse: collapse; width: 100%; font-size: .9rem; }
th { text-align: left; background: var(--bg-alt); color: var(--ink); font-weight: 650; }
th, td { padding: 10px 12px; border: 1px solid var(--line); vertical-align: top; }
td { color: var(--ink-2); }

.when-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 10px 26px; }
@media (max-width: 800px) { .when-grid { grid-template-columns: 1fr; } }
.when-item { padding: 9px 0 9px 26px; position: relative; color: var(--ink-2); border-bottom: 1px dashed var(--line); font-size: .95rem; }
.when-item::before { content: "→"; position: absolute; left: 0; color: var(--accent); font-weight: 700; }

.cred-strip { background: var(--ink); padding: 40px 0 30px; }
.cred-strip .center { margin-top: 16px; }
.cred-strip .fine a { color: #9fb3cf; }
.cred-grid { display: grid; grid-template-columns: repeat(4, 1fr); gap: 22px; }
@media (max-width: 900px) { .cred-grid { grid-template-columns: 1fr 1fr; } }
@media (max-width: 520px) { .cred-grid { grid-template-columns: 1fr; } }
.cred-num { display: block; font-size: 1.35rem; font-weight: 800; color: #fff; letter-spacing: -0.01em; }
.cred-lbl { font-size: .84rem; color: #a7b4c9; display: block; margin-top: 3px; line-height: 1.45; }

.blueprint { background: var(--card); border: 1px solid var(--line); border-radius: var(--radius); overflow: hidden; margin: 18px 0; }
.bp-head { display: flex; align-items: center; gap: 10px; background: var(--ink); color: #fff; padding: 14px 20px; font-weight: 700; }
.bp-dot { width: 9px; height: 9px; border-radius: 50%; background: var(--accent); display: inline-block; }
.bp-meta { margin-left: auto; font-size: .74rem; color: #a7b4c9; font-weight: 500; }
.bp-row { display: grid; grid-template-columns: 54px 1fr; gap: 14px; padding: 13px 20px; border-bottom: 1px solid var(--line); }
.bp-row:last-child { border-bottom: 0; }
.bp-num { font-weight: 800; color: var(--accent); font-size: 1.05rem; }
.bp-row p { font-size: .88rem; margin-top: 2px; }

.case-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 8px 34px; }
@media (max-width: 800px) { .case-grid { grid-template-columns: 1fr; } }
.case-grid h3 { margin-top: 16px; }
.case-grid h3:first-child { margin-top: 0; }
.case-grid p { font-size: .93rem; }

.band-wrap { background: var(--ink); }
.band { color: #fff; display: flex; align-items: center; justify-content: space-between; gap: 24px; flex-wrap: wrap; padding: 14px 0; }
.band h2 { color: #fff; margin: 0 0 5px; }
.band p { color: #b9c4d6; max-width: 620px; }
.page-hero { padding: 60px 0 42px; background: linear-gradient(180deg, #f7f9f8 0%, var(--bg) 100%); border-bottom: 1px solid var(--line); }
.page-hero .lede { max-width: 780px; }
.uc-block { padding: 44px 0; border-bottom: 1px solid var(--line); }
.uc-block:last-of-type { border-bottom: 0; }

footer { border-top: 1px solid var(--line); background: var(--bg); padding: 40px 0 30px; margin-top: 26px; }
.foot-grid { display: grid; grid-template-columns: 1.3fr 1fr 1fr 1fr 1fr; gap: 26px; }
@media (max-width: 940px) { .foot-grid { grid-template-columns: 1fr 1fr; } }
.foot-grid strong { font-size: .94rem; }
.foot-grid .fine a { color: var(--ink-2); text-decoration: none; }
.foot-grid .fine a:hover { color: var(--accent-2); }
.legal { margin-top: 28px; padding-top: 16px; border-top: 1px solid var(--line); }
.legal-body { max-width: 800px; }
.legal-body h2 { margin-top: 22px; }
.legal-body p { margin-bottom: 12px; }

@media (max-width: 620px) {
  .foot-grid { grid-template-columns: 1fr; }
  .hero { padding: 60px 0 50px; }
  section { padding: 48px 0; }
  .btn { width: 100%; text-align: center; }
  .hero-ctas .btn { width: auto; min-width: 100%; }
  .nav .btn { display: none; } /* header CTA clips at phone widths; in-page CTAs carry the action */
  .nav { justify-content: flex-start; }
}
@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  * { transition: none !important; animation: none !important; }
}

/* mobile: flow diagram becomes vertical chain, full-width nodes */
@media (max-width: 620px) {
  .flow { flex-direction: column; align-items: stretch; gap: 0; }
  .flow-node { text-align: center; padding: 10px 12px; font-size: .92rem; }
  .flow-node.clay { font-size: .98rem; }
  .flow-arrow { transform: rotate(90deg); text-align: center; padding: 2px 0; font-size: .95rem; }
  .flow-arrow::after { content: ""; }
}
