/* CIS Manager marketing site. Layout follows "Option B, product-led" of the Sodium homepage
   concepts; colours are cis-react-app's (app/globals.css there), taken from the slate-cube logo. */

:root {
  --slate: #2f4850;
  --slate-2: #46656f;
  --slate-deep: #22363c;
  --slate-deeper: #1a292e;
  --ink: #16252a;
  --muted: #4f6166;
  --muted-2: #6c7c80;
  --on-dark: #e6eeee;
  --on-dark-muted: #b9c8c9;
  --green: #a2b964;
  --green-hover: #8fa850;
  --green-ink: #4d6420;
  --green-tint: #eef3df;
  /* Primary actions only, as in the Option B concept */
  --yellow: #f5cc4b;
  --yellow-hover: #e9bd2f;
  --yellow-ink: #1b2a2e;
  --cream: #f1ecdf;
  --cream-line: #c4b599;
  --tan: #9c7d68;
  --tan-tint: #f3ebe4;
  --teal: #2f7a90;
  --red-ink: #9a3b22;
  --red-tint: #fbe3dc;
  --line: #e3e8e7;
  --panel: #f4f6f5;
  --radius: 10px;
  --sans: "IBM Plex Sans", system-ui, -apple-system, "Segoe UI", sans-serif;
  --mono: "IBM Plex Mono", ui-monospace, "Cascadia Mono", monospace;
}

*, *::before, *::after { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; scroll-padding-top: 80px; }
body { margin: 0; background: #fff; color: var(--ink); font: 16px/1.6 var(--sans); }
/* Short pages: main takes the spare height so the footer sits at the bottom of the window */
body { display: flex; flex-direction: column; min-height: 100vh; min-height: 100dvh; }
body > main { flex: 1 0 auto; }
img { max-width: 100%; height: auto; }
a { color: var(--teal); }
:focus-visible { outline: 2px solid var(--yellow); outline-offset: 3px; }
h1, h2, h3, h4 { text-wrap: balance; }

.wrap { max-width: 1120px; margin: 0 auto; padding-inline: clamp(16px, 5vw, 56px); }
.skip { position: absolute; left: -9999px; }
.skip:focus { left: 16px; top: 16px; z-index: 100; background: #fff; color: var(--ink); padding: 8px 12px; border-radius: 6px; }

/* ---------- Buttons ---------- */
.btns { display: flex; gap: 12px; flex-wrap: wrap; align-items: center; }
.btn { display: inline-block; font: 600 15px/1.2 var(--sans); padding: 12px 20px; border-radius: 6px; text-decoration: none; border: 1px solid transparent; }
.btn.p { background: var(--yellow); color: var(--yellow-ink); }
.btn.p:hover { background: var(--yellow-hover); }
.btn.s { border-color: rgba(255, 255, 255, .28); color: #fff; }
.btn.s:hover { border-color: rgba(255, 255, 255, .6); }
.btn.o { border-color: var(--line); color: var(--ink); background: #fff; }
.btn.o:hover { border-color: var(--slate-2); }

/* ---------- Sticky nav bar + dark hero band ---------- */
.navbar { position: sticky; top: 0; z-index: 50; background: var(--slate-deep); color: var(--on-dark); }
.top { background: var(--slate-deep); color: var(--on-dark); }
.nav { display: flex; align-items: center; gap: 32px; padding-block: 16px; font-size: 14px; position: relative; }
.brand { display: flex; align-items: center; flex: none; }
.brand img { height: 32px; width: auto; display: block; }
.nav-links { display: flex; gap: 24px; list-style: none; margin: 0; padding: 0; }
.nav-links a { color: var(--on-dark-muted); text-decoration: none; }
.nav-links a:hover, .nav-links a[aria-current="page"] { color: #fff; }
.nav .r { margin-left: auto; display: flex; gap: 18px; align-items: center; }
.nav .signin { color: var(--on-dark-muted); text-decoration: none; }
.nav .signin:hover { color: #fff; }
.nav .cta { background: var(--yellow); color: var(--yellow-ink); font-weight: 600; padding: 8px 14px; border-radius: 6px; text-decoration: none; }
.nav .cta:hover { background: var(--yellow-hover); }

.menu { display: none; }
.menu summary { list-style: none; cursor: pointer; padding: 8px; border-radius: 6px; color: #fff; display: flex; }
.menu summary::-webkit-details-marker { display: none; }
.menu summary svg { display: block; }
.menu[open] summary { background: rgba(255, 255, 255, .1); }
.menu-panel { position: absolute; left: 0; right: 0; top: 100%; z-index: 20; background: var(--slate-deeper); border: 1px solid rgba(255, 255, 255, .1); border-radius: var(--radius); padding: 8px; box-shadow: 0 20px 40px rgba(0, 0, 0, .3); }
.menu-panel a { display: block; padding: 12px 14px; color: var(--on-dark); text-decoration: none; border-radius: 6px; font-size: 16px; }
.menu-panel a:hover { background: rgba(255, 255, 255, .08); }

.hero { padding-block: 72px 0; }
.top h1 { font-weight: 600; font-size: clamp(34px, 5vw, 58px); line-height: 1.06; letter-spacing: -.025em; margin: 0; max-width: 16em; color: #fff; }
.top .lede { font-size: 18px; line-height: 1.6; color: var(--on-dark-muted); max-width: 38em; margin: 22px 0 30px; }
.page-hero { padding-block: 56px 72px; }
.page-hero .lede { margin-bottom: 0; }
.page-hero .btns { margin-top: 30px; }
.crumb { font: 500 12px var(--mono); color: #cfe0a0; margin: 0 0 16px; letter-spacing: .04em; }
.crumb a { color: inherit; text-decoration: none; }
.crumb a:hover { text-decoration: underline; }

/* ---------- Product shot ---------- */
.shot { margin: 56px 0 0; background: var(--panel); border: 1px solid #dfe5e4; border-bottom: 0; border-radius: var(--radius) var(--radius) 0 0; box-shadow: 0 -20px 60px rgba(0, 0, 0, .25); overflow: hidden; position: relative; top: 1px; color: var(--ink); }
.shot .bar { display: flex; gap: 6px; padding: 10px 14px; background: #e8ecec; border-bottom: 1px solid #dfe5e4; }
.shot .bar i { width: 10px; height: 10px; border-radius: 50%; background: #cdd5d5; }
.shot img { display: block; width: 100%; height: auto; }

/* ---------- Facts row ---------- */
.facts { display: grid; grid-template-columns: repeat(4, 1fr); border-bottom: 1px solid var(--line); }
.facts div { padding: 28px 24px; border-right: 1px solid var(--line); }
.facts div:first-child { padding-left: 0; }
.facts div:last-child { border-right: 0; }
.facts b { display: block; font-size: 15px; margin-bottom: 6px; }
.facts span { font-size: 14px; color: var(--muted); line-height: 1.5; }

/* ---------- Sections ---------- */
.sect { padding-block: 88px; }
.sect.tight { padding-top: 0; }
.eyebrow { font: 500 12px var(--mono); color: var(--green-ink); letter-spacing: .04em; margin: 0 0 12px; }
.sect h2, .band h2 { font-size: clamp(28px, 3.4vw, 40px); font-weight: 600; letter-spacing: -.02em; line-height: 1.12; margin: 0 0 14px; max-width: 20em; }
.sub { font-size: 17px; color: var(--muted); line-height: 1.6; max-width: 40em; margin: 0 0 44px; }
.sub a { color: var(--teal); }

/* Each cell draws its own 1px outline into the gap, so a part-filled last row leaves white space
   rather than a grey block (a grey container background showing through the gaps would) */
.mods { display: grid; grid-template-columns: repeat(auto-fill, minmax(250px, 1fr)); gap: 1px; background: #fff; border: 1px solid var(--line); border-radius: var(--radius); overflow: hidden; }
.mods-4 { grid-template-columns: repeat(4, 1fr); }
.mod { background: #fff; padding: 22px; box-shadow: 0 0 0 1px var(--line); }
.mod h3 { font-size: 16px; font-weight: 600; margin: 0 0 8px; display: flex; gap: 10px; align-items: center; }
.mod h3 i { width: 10px; height: 10px; border-radius: 2px; flex: none; background: var(--slate); }
.mod h3 i.g { background: var(--green); }
.mod h3 i.t { background: var(--tan); }
.mod h3 i.l { background: var(--slate-2); }
.mod p { font-size: 14px; line-height: 1.6; color: #55666a; margin: 0; }

.band { background: var(--panel); border-block: 1px solid var(--line); }
.band > .wrap { display: grid; grid-template-columns: 1fr 1fr; gap: 48px; align-items: center; padding-block: 80px; }
.band .sub { margin-bottom: 0; }
.band ul.ticks { margin: 24px 0 0; }

ul.ticks { list-style: none; padding: 0; margin: 0; display: grid; gap: 10px; }
ul.ticks li { position: relative; padding-left: 28px; font-size: 15px; line-height: 1.5; }
ul.ticks li::before { content: ""; position: absolute; left: 0; top: 3px; width: 18px; height: 18px; border-radius: 50%; background: var(--green-tint) url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 16 16'%3E%3Cpath d='M4 8.5l2.5 2.5L12 5.5' fill='none' stroke='%234d6420' stroke-width='2' stroke-linecap='round' stroke-linejoin='round'/%3E%3C/svg%3E") center / 12px no-repeat; }

/* Dark panel, e.g. a CIS300 return summary */
.panel-dark { background: var(--slate-deep); color: #d6e2e2; border-radius: var(--radius); padding: 24px; font-size: 14px; }
.panel-dark .hd { display: flex; justify-content: space-between; align-items: baseline; gap: 12px; flex-wrap: wrap; margin-bottom: 18px; }
.panel-dark .hd b { color: #fff; font-size: 16px; }
.panel-dark .hd span { font: 12px var(--mono); color: #7f9699; }
.panel-dark dl { display: grid; grid-template-columns: 1fr auto; gap: 0; margin: 0; }
.panel-dark dt, .panel-dark dd { padding: 10px 0; border-bottom: 1px solid rgba(255, 255, 255, .1); margin: 0; }
.panel-dark dd { font: 13px var(--mono); text-align: right; color: #fff; font-variant-numeric: tabular-nums; }
.panel-dark .ok { display: flex; gap: 10px; align-items: center; justify-content: center; margin-top: 18px; color: #cfe0a0; font: 500 13px var(--mono); }
.panel-dark .ok i { width: 20px; height: 20px; border-radius: 50%; background: var(--green); flex: none; display: grid; place-items: center; }
.panel-dark .ok i::after { content: ""; width: 5px; height: 9px; margin-top: -2px; border: solid var(--slate-deep); border-width: 0 2px 2px 0; transform: rotate(45deg); }

/* ---------- Audience cards ---------- */
.cards { display: grid; grid-template-columns: repeat(3, 1fr); gap: 24px; }
.card { border: 1px solid var(--line); border-radius: var(--radius); padding: 26px; display: flex; flex-direction: column; background: #fff; }
.card h3 { font-size: 18px; font-weight: 600; margin: 0 0 10px; }
.card p { font-size: 15px; color: var(--muted); margin: 0 0 18px; }
.card ul.ticks { margin-bottom: 22px; }
.card .go { margin-top: auto; font-weight: 600; font-size: 14px; color: var(--teal); text-decoration: none; }
.card .go:hover { text-decoration: underline; }

/* ---------- Quotes ---------- */
.quotes { display: grid; grid-template-columns: repeat(2, 1fr); gap: 32px; }
.quotes figure { margin: 0; border-top: 3px solid var(--green); padding-top: 18px; }
.quotes figure:nth-child(2) { border-color: var(--tan); }
.quotes blockquote { margin: 0 0 14px; font-size: 18px; line-height: 1.55; }
/* Logo in its own column, left of the quote and the name */
.quotes figure { display: grid; grid-template-columns: 56px 1fr; column-gap: 18px; align-items: start; }
.quotes figure img { grid-row: 1 / span 2; width: 56px; height: 56px; border-radius: 10px; }
.quotes figcaption { font-size: 13px; color: var(--muted-2); }
.quotes figcaption b { display: block; font-size: 14px; font-weight: 600; color: var(--ink); }
.mod a.more { display: block; width: fit-content; margin: 10px 0 0 auto; font-size: 13px; font-weight: 600; color: var(--teal); text-decoration: none; }
.mod a.more:hover { text-decoration: underline; }

/* ---------- Pricing ---------- */
.plans { display: grid; grid-template-columns: repeat(2, 1fr); gap: 24px; }
.plan { border: 1px solid var(--line); border-radius: var(--radius); padding: 32px; display: flex; flex-direction: column; }
.plan.feature { border-color: var(--slate); box-shadow: 0 24px 50px -30px rgba(34, 54, 60, .45); }
.plan .eyebrow { margin-bottom: 8px; }
.plan h2 { font-size: 24px; margin: 0 0 16px; }
.price { display: flex; align-items: baseline; gap: 6px; margin-bottom: 6px; }
.price b { font-size: 44px; font-weight: 600; letter-spacing: -.02em; line-height: 1; }
.price span { color: var(--muted-2); font-size: 15px; }
.plan .note { font-size: 14px; color: var(--muted); margin: 0 0 24px; }
.plan ul.ticks { margin-bottom: 28px; }
.plan .btn { margin-top: auto; align-self: flex-start; }
.fine { font-size: 13px; color: var(--muted-2); margin-top: 20px; }
.fine.centred { text-align: center; }
.all-features { text-align: center; font-size: 16px; font-weight: 600; margin-top: 28px; }

.split { display: grid; grid-template-columns: 1fr 1fr; gap: 24px; }
.box { border: 1px solid var(--line); border-radius: var(--radius); padding: 26px; background: var(--panel); }
.box h3 { margin: 0 0 8px; font-size: 18px; }
.box p { margin: 0; color: var(--muted); font-size: 15px; }
.box p + p { margin-top: 10px; }

/* ---------- Rates table (CIS tax) ---------- */
.rates { width: 100%; border-collapse: collapse; font-size: 15px; }
.rates th { text-align: left; font-weight: 500; color: var(--muted-2); font-size: 12px; letter-spacing: .06em; text-transform: uppercase; padding: 10px 14px; border-bottom: 1px solid var(--line); }
.rates td { padding: 16px 14px; border-bottom: 1px solid var(--line); vertical-align: top; }
.rates td:first-child { font: 600 22px var(--mono); white-space: nowrap; width: 1%; }
.table-scroll { overflow-x: auto; border: 1px solid var(--line); border-radius: var(--radius); }

/* ---------- People ---------- */
.people { display: grid; grid-template-columns: repeat(2, 1fr); gap: 24px; }
.person { border: 1px solid var(--line); border-radius: var(--radius); padding: 28px; }
.person .who { display: flex; align-items: center; gap: 14px; margin-bottom: 16px; }
.person .photo { width: 64px; height: 64px; border-radius: 50%; object-fit: cover; flex: none; }
.person h3 { margin: 0; font-size: 18px; }
.person .role { font-size: 14px; color: var(--muted-2); }
.person p { font-size: 15px; color: var(--muted); margin: 0 0 12px; }
.person .linkedin { margin-left: auto; align-self: flex-start; display: flex; padding: 4px; border-radius: 6px; }
.person .linkedin:hover { background: var(--panel); }
.lineage { display: grid; grid-template-columns: repeat(3, 1fr); border: 1px solid var(--line); border-radius: var(--radius); overflow: hidden; }
.lineage div { padding: 22px; border-right: 1px solid var(--line); }
.lineage div:last-child { border-right: 0; background: var(--green-tint); }
.band .lineage { grid-template-columns: 1fr; background: #fff; }
.band .lineage div { border-right: 0; border-bottom: 1px solid var(--line); display: flex; justify-content: space-between; align-items: baseline; gap: 16px; }
.band .lineage div:last-child { border-bottom: 0; }
.lineage b { display: block; font-size: 18px; }
.lineage span { font-size: 14px; color: var(--muted); }

/* ---------- Press ---------- */
.logos { display: grid; grid-template-columns: repeat(3, 1fr); gap: 24px; }
.logo-tile { border: 1px solid var(--line); border-radius: var(--radius); overflow: hidden; }
.logo-tile .art { height: 160px; display: grid; place-items: center; padding: 28px; }
.logo-tile .art img { max-height: 72px; width: auto; }
.logo-tile .art.dark { background: var(--slate-deep); }
.logo-tile .art.light { background: #fff; border-bottom: 1px solid var(--line); }
.logo-tile .art.panel { background: var(--panel); border-bottom: 1px solid var(--line); }
.logo-tile .cap { padding: 14px 18px; display: flex; justify-content: space-between; align-items: center; font-size: 14px; }
.logo-tile .cap a { font-weight: 500; }
.swatches { display: grid; grid-template-columns: repeat(4, 1fr); gap: 16px; }
.swatch { border: 1px solid var(--line); border-radius: var(--radius); overflow: hidden; }
.swatch i { display: block; height: 88px; }
.swatch div { padding: 12px 14px; font-size: 14px; }
.swatch code { font: 13px var(--mono); color: var(--muted); }

/* ---------- Articles ---------- */
.article-list { display: grid; grid-template-columns: repeat(2, 1fr); gap: 1px; background: var(--line); border: 1px solid var(--line); border-radius: var(--radius); overflow: hidden; }
.article-list a { display: block; background: #fff; padding: 26px; text-decoration: none; color: var(--ink); }
.article-list a:hover { background: var(--panel); }
.article-list h2 { font-size: 19px; margin: 0 0 8px; letter-spacing: -.01em; max-width: none; }
.article-list p { margin: 0; color: var(--muted); font-size: 15px; }
.article-list .read { display: inline-block; margin-top: 14px; font-size: 13px; font-weight: 500; color: var(--teal); }

/* ---------- Long-form content (articles, legal) ---------- */
.prose { max-width: 720px; font-size: 17px; line-height: 1.75; color: #2a3a3f; }
.prose > :first-child { margin-top: 0; }
.prose h2 { font-size: 26px; line-height: 1.25; letter-spacing: -.015em; margin: 2em 0 .6em; color: var(--ink); }
.prose h3 { font-size: 19px; margin: 1.8em 0 .5em; color: var(--ink); }
.prose p { margin: 0 0 1.1em; }
.prose ul, .prose ol { padding-left: 1.3em; margin: 0 0 1.2em; }
.prose li { margin-bottom: .4em; }
.prose li > ul { margin: .4em 0 0; }
.prose strong { color: var(--ink); }
.prose a { color: var(--teal); }
.prose code { font: .9em var(--mono); background: var(--panel); padding: 2px 5px; border-radius: 4px; }

.two-col { display: grid; grid-template-columns: minmax(0, 1fr) 300px; gap: 64px; align-items: start; }
.aside { position: sticky; top: 24px; border: 1px solid var(--line); border-radius: var(--radius); padding: 24px; background: var(--panel); }
.aside h2 { font-size: 18px; margin: 0 0 8px; }
.aside p { font-size: 14px; color: var(--muted); margin: 0 0 18px; }
.aside .btn { width: 100%; text-align: center; }
.aside .btn + .btn { margin-top: 10px; }
.more-list { list-style: none; padding: 0; margin: 0; border-top: 1px solid var(--line); }
.more-list li { border-bottom: 1px solid var(--line); }
.more-list a { display: flex; justify-content: space-between; gap: 16px; padding: 14px 0; text-decoration: none; color: var(--ink); font-weight: 500; }
.more-list a span { color: var(--muted-2); font-weight: 400; font-size: 14px; }
.more-list a:hover { color: var(--teal); }

/* ---------- Contact ---------- */
.contact-card { border: 1px solid var(--line); border-radius: var(--radius); padding: 36px; display: grid; grid-template-columns: 1fr auto; gap: 24px; align-items: center; }
.contact-card .addr { font: 500 clamp(20px, 3vw, 30px) var(--mono); color: var(--ink); text-decoration: none; word-break: break-all; }
.contact-card .addr:hover { color: var(--teal); }
.contact-card p { margin: 8px 0 0; color: var(--muted); }

/* ---------- Closing CTA + footer ---------- */
.end { background: var(--slate-deep); color: #fff; }
.end .wrap { display: flex; justify-content: space-between; align-items: center; gap: 24px; flex-wrap: wrap; padding-block: 56px; }
.end h2 { color: #fff; margin: 0; font-size: clamp(26px, 3.2vw, 36px); font-weight: 600; letter-spacing: -.02em; max-width: 18em; }
.end p { margin: 8px 0 0; color: var(--on-dark-muted); }

.foot { background: var(--slate-deeper); color: var(--on-dark-muted); font-size: 14px; }
.foot .cols { display: grid; grid-template-columns: 1.4fr repeat(4, 1fr); gap: 32px; padding-block: 56px 40px; }
.foot .about img { height: 30px; width: auto; margin-bottom: 14px; }
.foot .about p { margin: 0; max-width: 22em; line-height: 1.6; }
.foot h2 { font: 500 12px var(--mono); color: #cfe0a0; letter-spacing: .04em; margin: 4px 0 14px; }
.foot ul { list-style: none; padding: 0; margin: 0; display: grid; gap: 10px; }
.foot a { color: var(--on-dark-muted); text-decoration: none; }
.foot a:hover { color: #fff; }
.foot .legal { border-top: 1px solid rgba(255, 255, 255, .08); padding-block: 22px; display: flex; justify-content: space-between; gap: 16px; flex-wrap: wrap; font-size: 13px; color: #7f9699; }
.foot .legal a { color: #9fb2b3; }

/* ---------- API ---------- */
.api-sample { margin: 0; background: var(--slate-deep); color: #d6e2e2; font: 13px/1.8 var(--mono); padding: 22px; border-radius: var(--radius); overflow-x: auto; white-space: pre; }
.api-sample .k { color: var(--yellow); }
.api-sample .s { color: #c4d68f; }
.api-sample .c { color: #7f9699; }
.card code, .sub code { font: .88em var(--mono); background: var(--panel); padding: 1px 5px; border-radius: 4px; }
a.mod-link { text-decoration: none; color: inherit; }
a.mod-link:hover { background: var(--panel); }
.api-index .docs-bar { display: flex; justify-content: space-between; align-items: center; gap: 16px; flex-wrap: wrap; margin-bottom: 24px; }
.api-index .docs-tabs { margin: 0; }

/* ---------- 404 ---------- */
.nf { padding-block: 96px; }
.nf .code { font: 500 14px var(--mono); color: var(--green-ink); margin: 0 0 12px; }

/* ---------- Responsive ---------- */
@media (max-width: 960px) {
  .foot .cols { grid-template-columns: repeat(2, 1fr); }
  .foot .about { grid-column: 1 / -1; }
  .two-col { grid-template-columns: 1fr; gap: 40px; }
  .aside { position: static; }
  .mods-4 { grid-template-columns: repeat(2, 1fr); }
}
@media (max-width: 860px) {
  .nav-links, .nav .signin { display: none; }
  .menu { display: block; }
  .band > .wrap, .quotes, .cards, .plans, .split, .people, .article-list, .logos { grid-template-columns: 1fr; gap: 24px; }
  .band > .wrap { gap: 32px; }
  .facts { grid-template-columns: 1fr 1fr; }
  .facts div { border-bottom: 1px solid var(--line); }
  .facts div:nth-child(2) { border-right: 0; }
  .facts div:nth-child(3) { padding-left: 0; }
  .sect { padding-block: 64px; }
  .swatches { grid-template-columns: repeat(2, 1fr); }
  .lineage { grid-template-columns: 1fr; }
  .lineage div { border-right: 0; border-bottom: 1px solid var(--line); }
  .contact-card { grid-template-columns: 1fr; }
}
@media (max-width: 520px) {
  .facts { grid-template-columns: 1fr; }
  .facts div { border-right: 0; padding-left: 0; }
  .nav { gap: 12px; }
  .nav .r { gap: 8px; }
  .brand img { height: 28px; }
  .plan { padding: 24px; }
  .foot .cols { grid-template-columns: 1fr; }
  .mods-4 { grid-template-columns: 1fr; }
}
