/* FITC public sites: one stylesheet, two themes.
   theme-fic   = freshitcooperative.com (light, green on charcoal, people and services)
   theme-cloud = fitc.cloud (dark navy, cyan to violet, product)
   Layout idea: wide left-aligned type, one working "product view" per section, thin rules instead of boxes. */

:root {
  --bg: #f3f5ef;
  --surface: #ffffff;
  --sunk: #e9ede4;
  --ink: #17201b;
  --muted: #56625b;
  --line: #d7ddd3;
  --accent: #1c7a3a;
  --accent-ink: #ffffff;
  --accent-soft: #dff3d6;
  --bright: #8be06a;
  --dark: #1a2320;
  --dark-ink: #eef3ec;
  --dark-muted: #a9b6ad;
  --dark-line: #33403a;
  --warn: #b4540a;
  --crit: #b3261e;
  --ok: #1c7a3a;
  --font-display: "Bricolage Grotesque", "Avenir Next", "Segoe UI", system-ui, sans-serif;
  --font-body: "Hanken Grotesk", "Helvetica Neue", "Segoe UI", system-ui, sans-serif;
  --font-mono: "IBM Plex Mono", ui-monospace, "SF Mono", Menlo, Consolas, monospace;
  --radius: 14px;
  --radius-sm: 8px;
  --wrap: 1160px;
  --shadow: 0 1px 2px rgba(23, 32, 27, .06), 0 12px 32px -12px rgba(23, 32, 27, .18);
  color-scheme: light;
}

.theme-cloud {
  --bg: #090f1e;
  --surface: #101a31;
  --sunk: #0c1426;
  --ink: #eef3fb;
  --muted: #9ba9c4;
  --line: #22304f;
  --accent: #35c9f6;
  --accent-ink: #06121f;
  --accent-soft: #10294a;
  --bright: #35c9f6;
  --dark: #060a15;
  --dark-ink: #eef3fb;
  --dark-muted: #9ba9c4;
  --dark-line: #22304f;
  --warn: #f2a94a;
  --crit: #ff7a70;
  --ok: #57d9a3;
  --font-display: "Lexend", "Avenir Next", "Segoe UI", system-ui, sans-serif;
  --shadow: 0 1px 0 rgba(255, 255, 255, .04) inset, 0 24px 48px -24px rgba(0, 0, 0, .7);
  color-scheme: dark;
}

*, *::before, *::after { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; scroll-behavior: smooth; }
body {
  margin: 0;
  background: var(--bg);
  color: var(--ink);
  font: 400 1.0625rem/1.6 var(--font-body);
  -webkit-font-smoothing: antialiased;
}
img, svg { max-width: 100%; height: auto; display: block; }
a { color: var(--accent); text-underline-offset: .18em; }
a:hover { text-decoration-thickness: 2px; }
:focus-visible { outline: 3px solid var(--accent); outline-offset: 3px; border-radius: 4px; }
h1, h2, h3, h4 { font-family: var(--font-display); line-height: 1.12; margin: 0; text-wrap: balance; letter-spacing: -.015em; }
h1 { font-size: clamp(2.3rem, 5.2vw, 3.9rem); font-weight: 700; }
h2 { font-size: clamp(1.7rem, 3.2vw, 2.5rem); font-weight: 650; }
h3 { font-size: 1.25rem; font-weight: 600; letter-spacing: -.005em; }
h4 { font-size: 1rem; font-weight: 600; letter-spacing: 0; }
.theme-cloud h1, .theme-cloud h2 { font-weight: 600; letter-spacing: -.03em; }
p { margin: 0; max-width: 66ch; }
ul, ol { margin: 0; padding: 0; }
.wrap { width: min(100% - 2.5rem, var(--wrap)); margin-inline: auto; }
.skip { position: absolute; left: -999px; }
.skip:focus { left: 1rem; top: 1rem; background: var(--surface); padding: .5rem 1rem; z-index: 50; }

/* Header */
.site-header { position: sticky; top: 0; z-index: 20; background: color-mix(in srgb, var(--bg) 88%, transparent); backdrop-filter: blur(10px); border-bottom: 1px solid var(--line); }
.site-header .wrap { display: flex; align-items: center; gap: 1.5rem; min-height: 68px; }
.brand { display: flex; align-items: center; gap: .7rem; color: var(--ink); text-decoration: none; font-family: var(--font-display); font-weight: 700; font-size: 1.08rem; letter-spacing: -.01em; white-space: nowrap; }
.brand img { width: 38px; height: 38px; border-radius: 9px; }
.theme-cloud .brand img { width: 46px; height: auto; border-radius: 0; }
.brand .thin { font-weight: 300; letter-spacing: .02em; }
.brand .dot { color: var(--accent); }
.nav { display: flex; align-items: center; gap: .25rem; margin-left: auto; }
.nav a { color: var(--ink); text-decoration: none; font-size: .95rem; font-weight: 500; padding: .5rem .7rem; border-radius: 8px; }
.nav a:hover { background: var(--sunk); }
.nav a[aria-current="page"] { color: var(--accent); }
.nav .btn { margin-left: .6rem; color: var(--accent-ink); }
.nav .btn:hover { background: var(--accent); }
.nav-toggle { display: none; margin-left: auto; background: none; border: 1px solid var(--line); color: var(--ink); border-radius: 8px; padding: .5rem .75rem; font: 500 .95rem var(--font-body); cursor: pointer; }

/* Buttons */
.btn { display: inline-flex; align-items: center; gap: .5rem; background: var(--accent); color: var(--accent-ink); border: 1px solid var(--accent); border-radius: 999px; padding: .72rem 1.25rem; font: 600 .98rem var(--font-body); text-decoration: none; cursor: pointer; transition: transform .15s ease, box-shadow .15s ease; }
.btn:hover { transform: translateY(-1px); box-shadow: 0 8px 20px -10px var(--accent); }
.btn.ghost { background: transparent; color: var(--ink); border-color: var(--line); }
.btn.ghost:hover { border-color: var(--ink); box-shadow: none; }
.btn-row { display: flex; flex-wrap: wrap; gap: .75rem; }
.textlink { font-weight: 600; text-decoration: none; }
.textlink::after { content: " \2192"; }
.textlink:hover { text-decoration: underline; }

/* Type helpers */
.eyebrow { font: 500 .78rem/1.2 var(--font-mono); text-transform: uppercase; letter-spacing: .09em; color: var(--accent); margin-bottom: 1rem; display: block; }
.lede { font-size: clamp(1.1rem, 1.6vw, 1.3rem); color: var(--muted); line-height: 1.55; }
.muted { color: var(--muted); }
.small { font-size: .9rem; }
.stack > * + * { margin-top: 1.1rem; }
.stack-lg > * + * { margin-top: 1.75rem; }
.grad { background: linear-gradient(90deg, #35c9f6, #3d8bff 55%, #8a5cff); -webkit-background-clip: text; background-clip: text; color: transparent; }

/* Sections */
.hero { padding: clamp(3rem, 7vw, 5.5rem) 0 clamp(3rem, 6vw, 4.5rem); }
.hero .wrap { display: grid; grid-template-columns: minmax(0, 1.05fr) minmax(0, .95fr); gap: clamp(2rem, 5vw, 4.5rem); align-items: center; }
.hero.plain .wrap { display: block; }
.hero.plain .lede { max-width: 60ch; }
.section { padding: clamp(3rem, 6vw, 5rem) 0; border-top: 1px solid var(--line); }
.section.sunk { background: var(--sunk); }
.section.dark { background: var(--dark); color: var(--dark-ink); border-top: 0; --ink: var(--dark-ink); --muted: var(--dark-muted); --line: var(--dark-line); --surface: #222c28; --sunk: #141b18; --accent: var(--bright); --accent-ink: #10200f; }
.theme-cloud .section.dark { --surface: #0e1629; --sunk: #0a101f; --accent-ink: #06121f; }
.section-head { display: grid; gap: 1rem; margin-bottom: clamp(2rem, 4vw, 3rem); max-width: 760px; }
.grid-2 { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: clamp(1.5rem, 3vw, 2.5rem); }
.grid-3 { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: clamp(1.25rem, 2.5vw, 2rem); }
.grid-4 { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 1.25rem; }
.split { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: clamp(2rem, 5vw, 4.5rem); align-items: center; }
.split.flip > :first-child { order: 2; }
.split + .split { margin-top: clamp(3rem, 6vw, 5rem); }

/* Service rows (ruled list rather than cards) */
.rows { border-top: 1px solid var(--line); }
.row { display: grid; grid-template-columns: minmax(0, .9fr) minmax(0, 1.4fr) auto; gap: 1.5rem; align-items: baseline; padding: 1.6rem 0; border-bottom: 1px solid var(--line); color: inherit; text-decoration: none; }
a.row:hover h3 { color: var(--accent); }
.row .go { font-family: var(--font-mono); font-size: .85rem; color: var(--accent); white-space: nowrap; }
.row p { color: var(--muted); }

/* Cards */
.card { background: var(--surface); border: 1px solid var(--line); border-radius: var(--radius); padding: 1.6rem; display: grid; gap: .7rem; align-content: start; }
.card p { color: var(--muted); font-size: .98rem; }
a.card { color: inherit; text-decoration: none; transition: border-color .15s ease, transform .15s ease; }
a.card:hover { border-color: var(--accent); transform: translateY(-2px); }
.card .tag { font: 500 .72rem var(--font-mono); text-transform: uppercase; letter-spacing: .08em; color: var(--accent); }

/* Check lists */
.checks { list-style: none; display: grid; gap: .7rem; }
.checks li { padding-left: 1.7rem; position: relative; }
.checks li::before { content: ""; position: absolute; left: 0; top: .5em; width: .95rem; height: .5rem; border-left: 2.5px solid var(--accent); border-bottom: 2.5px solid var(--accent); transform: rotate(-45deg) translateY(-2px); }
.checks.cols { grid-template-columns: repeat(2, minmax(0, 1fr)); gap: .7rem 2rem; }
.plain-list { list-style: none; display: grid; gap: .5rem; color: var(--muted); }

/* Definition blocks */
.facts { display: grid; grid-template-columns: repeat(auto-fit, minmax(210px, 1fr)); gap: 0; border-top: 1px solid var(--line); }
.facts > div { padding: 1.4rem 1.4rem 1.4rem 0; border-bottom: 1px solid var(--line); }
.facts dt, .facts .k { font: 500 .75rem var(--font-mono); text-transform: uppercase; letter-spacing: .08em; color: var(--muted); margin-bottom: .45rem; }
.facts dd, .facts .v { margin: 0; font-family: var(--font-display); font-size: 1.2rem; font-weight: 600; line-height: 1.25; }
.facts .v small { display: block; font: 400 .92rem/1.45 var(--font-body); color: var(--muted); margin-top: .35rem; }

/* Tables */
.table-wrap { overflow-x: auto; border: 1px solid var(--line); border-radius: var(--radius); background: var(--surface); }
table { border-collapse: collapse; width: 100%; font-size: .97rem; font-variant-numeric: tabular-nums; }
th, td { text-align: left; padding: .85rem 1.1rem; border-bottom: 1px solid var(--line); vertical-align: top; }
th { font: 500 .74rem var(--font-mono); text-transform: uppercase; letter-spacing: .08em; color: var(--muted); background: var(--sunk); }
tr:last-child td { border-bottom: 0; }

/* Chips */
.chip { display: inline-flex; align-items: center; gap: .35rem; font: 500 .72rem/1 var(--font-mono); letter-spacing: .04em; padding: .32rem .55rem; border-radius: 999px; border: 1px solid var(--line); color: var(--muted); white-space: nowrap; }
.chip.ok { color: var(--ok); border-color: color-mix(in srgb, var(--ok) 45%, transparent); }
.chip.warn { color: var(--warn); border-color: color-mix(in srgb, var(--warn) 45%, transparent); }
.chip.crit { color: var(--crit); border-color: color-mix(in srgb, var(--crit) 45%, transparent); }
.chip.solid { background: var(--accent); color: var(--accent-ink); border-color: var(--accent); }
.chips { display: flex; flex-wrap: wrap; gap: .45rem; }

/* Product views: drawn in HTML so they stay sharp and carry no client data */
.view { background: var(--surface); border: 1px solid var(--line); border-radius: 16px; box-shadow: var(--shadow); overflow: hidden; font-size: .9rem; color: var(--ink); }
.theme-cloud .view { background: linear-gradient(180deg, #121d38, #0e172c); }
.view-bar { display: flex; align-items: center; gap: .6rem; padding: .7rem 1rem; border-bottom: 1px solid var(--line); font: 500 .74rem var(--font-mono); letter-spacing: .05em; color: var(--muted); text-transform: uppercase; }
.view-bar .lights { display: flex; gap: 5px; }
.view-bar .lights i { width: 8px; height: 8px; border-radius: 50%; background: var(--line); display: block; }
.view-bar .right { margin-left: auto; display: flex; gap: .4rem; align-items: center; }
.view-body { padding: 1.1rem 1.15rem 1.25rem; display: grid; gap: .9rem; }
.view h4 { font-size: 1.12rem; }
.view-cap { font: 400 .74rem var(--font-mono); color: var(--muted); margin-top: .7rem; text-align: right; }
.vrow { display: grid; grid-template-columns: 1fr auto auto; gap: .9rem; align-items: center; padding: .55rem 0; border-bottom: 1px dashed var(--line); }
.vrow:last-child { border-bottom: 0; }
.vrow .n { font-variant-numeric: tabular-nums; font-family: var(--font-mono); font-size: .85rem; color: var(--muted); }
.vrow b { font-weight: 600; }
.vgrid { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: .6rem; }
.vtile { background: var(--sunk); border: 1px solid var(--line); border-radius: 10px; padding: .7rem .8rem; }
.vtile .k { font: 500 .66rem var(--font-mono); text-transform: uppercase; letter-spacing: .07em; color: var(--muted); }
.vtile .v { font: 600 1.15rem var(--font-display); margin-top: .2rem; font-variant-numeric: tabular-nums; }
.bar { height: 6px; border-radius: 999px; background: var(--sunk); overflow: hidden; }
.bar i { display: block; height: 100%; border-radius: 999px; background: var(--accent); }
.theme-cloud .bar i { background: linear-gradient(90deg, #35c9f6, #8a5cff); }
.steps-mini { counter-reset: s; list-style: none; display: grid; gap: .5rem; }
.steps-mini li { counter-increment: s; padding-left: 1.9rem; position: relative; }
.steps-mini li::before { content: counter(s); position: absolute; left: 0; top: .1rem; width: 1.3rem; height: 1.3rem; border-radius: 50%; background: var(--accent-soft); color: var(--accent); font: 600 .72rem/1.3rem var(--font-mono); text-align: center; }
.phone { width: min(100%, 300px); margin-inline: auto; border-radius: 34px; border: 1px solid var(--line); background: var(--surface); box-shadow: var(--shadow); padding: .7rem; }
.theme-cloud .phone { background: #0d1529; }
.phone-screen { border-radius: 26px; background: var(--sunk); padding: 1rem .9rem 1.1rem; display: grid; gap: .8rem; font-size: .88rem; }
.seg { display: grid; grid-template-columns: repeat(3, 1fr); background: var(--surface); border: 1px solid var(--line); border-radius: 999px; padding: 3px; font: 500 .74rem var(--font-body); text-align: center; }
.seg span { padding: .4rem 0; border-radius: 999px; color: var(--muted); }
.seg .on { background: var(--accent); color: var(--accent-ink); }
.mitem { display: grid; grid-template-columns: 44px 1fr auto; gap: .7rem; align-items: center; background: var(--surface); border: 1px solid var(--line); border-radius: 12px; padding: .55rem .65rem; }
.mitem .ph { width: 44px; height: 44px; border-radius: 9px; background: linear-gradient(135deg, var(--accent-soft), var(--sunk)); }
.mitem .add { width: 26px; height: 26px; border-radius: 50%; border: 1px solid var(--accent); color: var(--accent); display: grid; place-items: center; font-weight: 600; line-height: 1; }
.pair { display: grid; grid-template-columns: minmax(0, 1.1fr) minmax(0, .9fr); gap: 1rem; align-items: end; }
.pair .mitem { grid-template-columns: 1fr auto; }
.pair .mitem .ph { display: none; }
.pair .phone { padding: .55rem; }
.pair .phone-screen { padding: .85rem .7rem .9rem; }

/* Ordered process */
.process { list-style: none; counter-reset: p; display: grid; grid-template-columns: repeat(auto-fit, minmax(220px, 1fr)); gap: 1.5rem; }
.process li { counter-increment: p; border-top: 2px solid var(--accent); padding-top: 1rem; display: grid; gap: .5rem; align-content: start; }
.process li::before { content: "0" counter(p); font: 500 .78rem var(--font-mono); color: var(--accent); letter-spacing: .08em; }
.process p { color: var(--muted); font-size: .98rem; }

/* Logo strip of system names (text only) */
.systems { display: flex; flex-wrap: wrap; gap: .6rem; }
.systems span { border: 1px solid var(--line); border-radius: 10px; padding: .6rem .95rem; font-weight: 600; font-size: .95rem; background: var(--surface); }
.systems span small { display: block; font: 400 .72rem var(--font-mono); color: var(--muted); letter-spacing: .04em; margin-top: .15rem; }

/* CTA band */
.cta-band { background: var(--dark); color: var(--dark-ink); padding: clamp(3rem, 6vw, 4.5rem) 0; }
.cta-band .wrap { display: grid; grid-template-columns: minmax(0, 1.3fr) auto; gap: 2rem; align-items: center; }
.cta-band p { color: var(--dark-muted); margin-top: .8rem; }
.cta-band .btn { background: var(--bright); border-color: var(--bright); color: #0d1a10; }
.theme-cloud .cta-band { background: linear-gradient(120deg, #0d1a36, #151040); border-top: 1px solid var(--line); }
.theme-cloud .cta-band .btn { color: #06121f; }
.cta-band .btn.ghost { background: transparent; color: var(--dark-ink); border-color: var(--dark-line); }

/* Forms */
.form { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 1rem 1.25rem; }
.form .full { grid-column: 1 / -1; }
.form label { display: grid; gap: .4rem; font-weight: 600; font-size: .92rem; }
.form input, .form select, .form textarea { font: 400 1rem var(--font-body); color: var(--ink); background: var(--surface); border: 1px solid var(--line); border-radius: var(--radius-sm); padding: .75rem .85rem; width: 100%; }
.form input:focus, .form select:focus, .form textarea:focus { outline: 3px solid color-mix(in srgb, var(--accent) 35%, transparent); border-color: var(--accent); }
.form-note { font-size: .9rem; color: var(--muted); }

/* Legal and long-form */
.prose { max-width: 72ch; }
.prose h2 { font-size: 1.45rem; margin-top: 2.4rem; }
.prose h3 { margin-top: 1.6rem; }
.prose p, .prose ul { margin-top: .9rem; color: var(--muted); }
.prose ul { padding-left: 1.2rem; display: grid; gap: .4rem; }
.prose strong { color: var(--ink); }

/* Footer */
.site-footer { background: var(--dark); color: var(--dark-muted); padding: 3.5rem 0 2rem; font-size: .95rem; }
.theme-cloud .site-footer { border-top: 1px solid var(--line); }
.site-footer a { color: var(--dark-ink); text-decoration: none; }
.site-footer a:hover { text-decoration: underline; }
.foot-grid { display: grid; grid-template-columns: 1.4fr repeat(3, 1fr); gap: 2rem; }
.foot-grid h4 { font: 500 .74rem var(--font-mono); text-transform: uppercase; letter-spacing: .09em; color: var(--dark-muted); margin-bottom: .9rem; }
.foot-grid ul { list-style: none; display: grid; gap: .5rem; }
.foot-brand { display: grid; gap: .9rem; align-content: start; max-width: 34ch; }
.foot-brand .brand { color: var(--dark-ink); }
.foot-legal { margin-top: 2.5rem; padding-top: 1.4rem; border-top: 1px solid var(--dark-line); display: flex; flex-wrap: wrap; gap: .6rem 1.5rem; justify-content: space-between; font-size: .85rem; }

/* Responsive */
@media (max-width: 960px) {
  .nav { display: none; position: absolute; left: 0; right: 0; top: 100%; background: var(--bg); border-bottom: 1px solid var(--line); flex-direction: column; align-items: stretch; padding: .75rem 1.25rem 1.25rem; gap: .15rem; }
  .nav.open { display: flex; }
  .nav .btn { margin: .6rem 0 0; justify-content: center; }
  .nav-toggle { display: inline-flex; }
  .hero .wrap, .split, .grid-2, .cta-band .wrap, .pair { grid-template-columns: minmax(0, 1fr); }
  .split.flip > :first-child { order: 0; }
  .grid-3, .grid-4 { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .row { grid-template-columns: minmax(0, 1fr); gap: .5rem; }
  .foot-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); }
}
@media (max-width: 600px) {
  body { font-size: 1rem; }
  .grid-3, .grid-4, .form, .checks.cols, .vgrid { grid-template-columns: minmax(0, 1fr); }
  .foot-grid { grid-template-columns: minmax(0, 1fr); }
  .brand span.long { display: none; }
}
@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  .btn, a.card { transition: none; }
}
@media print {
  .site-header, .cta-band, .nav-toggle { display: none; }
  body { background: #fff; color: #000; }
}
