/* flowfn.com — FLOW FN PTE. LTD. company site. No web fonts, no third-party requests. */

:root {
  color-scheme: light dark;
  --bg: #fbfbf8;
  --surface: #ffffff;
  --surface-2: #f3f4ee;
  --text: #15160f;
  --muted: #5b5e52;
  --border: #e3e5dc;
  --accent: #6f9418;
  --accent-strong: #557510;
  --accent-soft: #eef6d6;
  --accent-ink: #0a0a0a;
  --lime: #b8e72a;
  --shadow: 0 1px 2px rgb(20 22 15 / 6%), 0 8px 24px rgb(20 22 15 / 6%);
  --radius: 16px;
  --max: 1120px;
  --font: system-ui, -apple-system, "Segoe UI", Roboto, "Helvetica Neue", Arial, sans-serif;
}

@media (prefers-color-scheme: dark) {
  :root {
    --bg: #0d0e0b;
    --surface: #15170f;
    --surface-2: #1b1e14;
    --text: #edf0e6;
    --muted: #a6ab98;
    --border: #2a2e22;
    --accent: #b8e72a;
    --accent-strong: #cdf25a;
    --accent-soft: #232b10;
    --shadow: 0 1px 2px rgb(0 0 0 / 40%), 0 8px 24px rgb(0 0 0 / 30%);
  }
}

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

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

body {
  margin: 0;
  background: var(--bg);
  color: var(--text);
  font: 17px/1.6 var(--font);
  text-rendering: optimizeLegibility;
}

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

a { color: var(--accent-strong); text-underline-offset: 0.18em; }
a:hover { color: var(--text); }

:focus-visible { outline: 3px solid var(--accent); outline-offset: 3px; border-radius: 6px; }

h1, h2, h3 { line-height: 1.15; letter-spacing: -0.02em; margin: 0 0 0.5em; }
h1 { font-size: clamp(2.2rem, 5vw, 3.6rem); font-weight: 800; letter-spacing: -0.035em; }
h2 { font-size: clamp(1.6rem, 3vw, 2.2rem); font-weight: 750; }
h3 { font-size: 1.2rem; font-weight: 700; }
p { margin: 0 0 1em; }

.skip-link {
  position: absolute; left: -999px; top: 0;
  background: var(--accent); color: var(--accent-ink); padding: 0.6rem 1rem; border-radius: 8px;
}
.skip-link:focus { left: 1rem; top: 1rem; z-index: 10; }

.container { width: min(100% - 2.5rem, var(--max)); margin-inline: auto; }

/* Header */
.site-header {
  position: sticky; top: 0; z-index: 5;
  background: color-mix(in srgb, var(--bg) 88%, transparent);
  backdrop-filter: saturate(140%) blur(10px);
  border-bottom: 1px solid var(--border);
}
.site-header .container {
  display: flex; align-items: center; justify-content: space-between; gap: 1rem; flex-wrap: wrap;
  padding-block: 0.85rem;
}
.brand {
  display: inline-flex; align-items: center; gap: 0.6rem;
  color: var(--text); text-decoration: none; font-weight: 800; font-size: 1.15rem; letter-spacing: -0.02em;
}
.brand img { width: 32px; height: 32px; }
.brand small { font-weight: 600; color: var(--muted); font-size: 0.72rem; letter-spacing: 0.06em; }
.site-nav ul { list-style: none; display: flex; flex-wrap: wrap; gap: 0.25rem 1.25rem; margin: 0; padding: 0; }
.site-nav a { color: var(--muted); text-decoration: none; font-weight: 600; font-size: 0.97rem; padding: 0.3rem 0; }
.site-nav a:hover, .site-nav a[aria-current="page"] { color: var(--text); }
.site-nav a[aria-current="page"] { box-shadow: inset 0 -2px 0 var(--accent); }

/* Sections */
main { display: block; }
.section { padding-block: clamp(3rem, 7vw, 5.5rem); }
.section--alt { background: var(--surface-2); border-block: 1px solid var(--border); }
.eyebrow {
  display: inline-block; font-size: 0.8rem; font-weight: 700; letter-spacing: 0.12em; text-transform: uppercase;
  color: var(--accent-strong); margin-bottom: 0.9rem;
}
.lead { font-size: clamp(1.1rem, 2vw, 1.3rem); color: var(--muted); max-width: 46rem; }
.section-head { max-width: 46rem; margin-bottom: 2.25rem; }

/* Hero */
.hero { padding-block: clamp(3.5rem, 9vw, 7rem) clamp(2.5rem, 6vw, 4.5rem); position: relative; overflow: hidden; }
.hero::before {
  content: ""; position: absolute; inset: -40% -10% auto auto; width: 60vw; height: 60vw; max-width: 720px; max-height: 720px;
  background: radial-gradient(closest-side, color-mix(in srgb, var(--lime) 35%, transparent), transparent);
  pointer-events: none; z-index: -1;
}
.hero h1 { max-width: 15ch; }
.actions { display: flex; flex-wrap: wrap; gap: 0.75rem; margin-top: 1.75rem; }
.btn {
  display: inline-flex; align-items: center; gap: 0.5rem; padding: 0.8rem 1.3rem; border-radius: 999px;
  font-weight: 700; text-decoration: none; border: 1px solid transparent;
}
.btn--primary { background: var(--lime); color: var(--accent-ink); }
.btn--primary:hover { background: #a6d61f; color: var(--accent-ink); }
.btn--ghost { border-color: var(--border); color: var(--text); background: var(--surface); }
.btn--ghost:hover { border-color: var(--accent); color: var(--text); }

/* Product cards */
.grid { display: grid; gap: 1.25rem; grid-template-columns: repeat(auto-fit, minmax(240px, 1fr)); }
.card {
  background: var(--surface); border: 1px solid var(--border); border-radius: var(--radius); padding: 1.5rem;
  box-shadow: var(--shadow); display: flex; flex-direction: column; gap: 0.75rem;
}
.card__mark { width: 48px; height: 48px; border-radius: 12px; }
.card h3 { margin: 0.25rem 0 0; }
.card__tagline { font-weight: 650; margin: 0; }
.card p { color: var(--muted); margin: 0; }
.card__link { margin-top: auto; padding-top: 0.5rem; font-weight: 700; text-decoration: none; }
.card__link:hover { text-decoration: underline; }

/* Principles */
.principles { display: grid; gap: 1.5rem; grid-template-columns: repeat(auto-fit, minmax(240px, 1fr)); }
.principle { border-top: 3px solid var(--accent); padding-top: 1rem; }
.principle p { color: var(--muted); margin: 0; }

/* Products page */
.product { display: grid; gap: 1.5rem 3rem; grid-template-columns: minmax(0, 1fr) minmax(0, 1.2fr); align-items: start; }
.product + .product { margin-top: clamp(3rem, 6vw, 4.5rem); padding-top: clamp(3rem, 6vw, 4.5rem); border-top: 1px solid var(--border); }
.product__head { display: flex; flex-direction: column; gap: 0.75rem; }
.product__head img { width: 64px; height: 64px; border-radius: 16px; }
.product__head .eyebrow { margin: 0; }
.product__head h2 { margin: 0; }
.product__body h3 { font-size: 1rem; text-transform: uppercase; letter-spacing: 0.08em; color: var(--muted); margin-top: 1.5rem; }
.ticks { list-style: none; padding: 0; margin: 0; display: grid; gap: 0.6rem; }
.ticks li { padding-left: 1.6rem; position: relative; }
.ticks li::before {
  content: ""; position: absolute; left: 0; top: 0.55em; width: 0.7rem; height: 0.7rem; border-radius: 3px;
  background: var(--accent);
}

/* Prose pages */
.prose { max-width: 46rem; }
.prose h2 { margin-top: 2.25rem; font-size: 1.5rem; }
.prose ul { padding-left: 1.2rem; }
.prose li { margin-bottom: 0.4rem; }
.statement {
  font-size: clamp(1.35rem, 2.6vw, 1.75rem); line-height: 1.4; font-weight: 650; letter-spacing: -0.015em;
  border-left: 4px solid var(--accent); padding-left: 1.25rem; margin: 0 0 1.5rem;
}
.note { color: var(--muted); font-size: 0.95rem; }

.contact-card {
  background: var(--surface); border: 1px solid var(--border); border-radius: var(--radius); padding: 2rem;
  box-shadow: var(--shadow); max-width: 40rem;
}
.contact-card .email { font-size: clamp(1.3rem, 3vw, 1.8rem); font-weight: 800; letter-spacing: -0.02em; }

.product-list { list-style: none; padding: 0; margin: 1rem 0 0; display: grid; gap: 0.6rem; }
.product-list li { display: flex; align-items: center; gap: 0.75rem; }
.product-list img { width: 28px; height: 28px; border-radius: 7px; }

/* Footer */
.site-footer { border-top: 1px solid var(--border); padding-block: 2.5rem; color: var(--muted); font-size: 0.95rem; }
.site-footer .container { display: grid; gap: 1.5rem 2rem; grid-template-columns: 1.4fr repeat(2, 1fr); }
.site-footer h2 { font-size: 0.8rem; letter-spacing: 0.1em; text-transform: uppercase; color: var(--text); margin-bottom: 0.75rem; }
.site-footer ul { list-style: none; padding: 0; margin: 0; display: grid; gap: 0.4rem; }
.site-footer a { color: var(--muted); text-decoration: none; }
.site-footer a:hover { color: var(--text); text-decoration: underline; }
.site-footer .legal { grid-column: 1 / -1; border-top: 1px solid var(--border); padding-top: 1.25rem; font-size: 0.85rem; }

@media (max-width: 760px) {
  body { font-size: 16px; }
  .product { grid-template-columns: 1fr; }
  .site-footer .container { grid-template-columns: 1fr 1fr; }
  .site-footer .about { grid-column: 1 / -1; }
}

@media (prefers-reduced-motion: no-preference) {
  html { scroll-behavior: smooth; }
}
