/* filaflow.net (family guide §19): the same tokens, fonts, spacing and motion as the apps. The company is ink; product sections use
   their unit colour in colour fields (the website is the one place large colour areas are allowed). Fonts are self-hosted. */
@import url('fonts.css');

:root {
  --ink: #0F1214; --ink-2: #545B60; --ink-3: #666E73; --ink-4: #8E959A;
  --brand-ink: #14191B; --paper: #FFFFFF; --canvas: #F3F5F4; --tint: #F2F5F4; --rule: #D3D7D9; --hairline: #E8EBEC;
  --ok: #2B7A3D;
  --erp: #0B5A56; --erp-strong: #08443F; --erp-soft: #D3E6E4;
  --crm: #5A2F73; --crm-strong: #46225A; --crm-soft: #EBE0F0;
  --sans: "Golos Text", system-ui, -apple-system, "Segoe UI", Roboto, sans-serif;
  --serif: "Source Serif 4", Georgia, serif;
  --ease-enter: cubic-bezier(0.2, 0, 0, 1);
  --ease-move: cubic-bezier(0.4, 0, 0.2, 1);
  color-scheme: light;
}
[dir="rtl"] {
  --sans: "IBM Plex Sans Arabic", "Golos Text", "Noto Sans Arabic", "Geeza Pro", system-ui, sans-serif;
  --serif: "Noto Naskh Arabic", "Source Serif 4", "Geeza Pro", Georgia, serif;
}
*, *::before, *::after { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; }
body { margin: 0; background: var(--paper); color: var(--ink); font: 16px/1.6 var(--sans); font-variant-numeric: tabular-nums lining-nums; -webkit-font-smoothing: antialiased; }
[dir="rtl"] body { font-size: 17px; line-height: 1.75; }
img { max-width: 100%; display: block; }
a { color: inherit; }
:focus-visible { outline: 2px solid currentColor; outline-offset: 2px; border-radius: 4px; }
.wrap { width: 100%; max-width: 1120px; margin: 0 auto; padding: 0 16px; }
@media (min-width: 768px) { .wrap { padding: 0 34px; } }
.read { max-width: 65ch; }
.balance { text-wrap: balance; }
.pretty { text-wrap: pretty; }
.skip { position: absolute; top: 8px; inset-inline-start: 8px; width: 1px; height: 1px; overflow: hidden; clip-path: inset(50%); white-space: nowrap;
  background: var(--paper); color: var(--ink); padding: 8px 12px; border-radius: 8px; z-index: 10; }
.skip:focus { width: auto; height: auto; clip-path: none; }

/* Header */
.top { position: relative; z-index: 2; }
.top .wrap { display: flex; align-items: center; gap: 24px; min-height: 64px; }
.top .brand { display: inline-flex; align-items: center; text-decoration: none; }
.top .brand img { height: 26px; width: auto; }
.top nav { display: flex; gap: 22px; flex-wrap: wrap; font-size: 14.5px; }
.top nav a { text-decoration: none; opacity: 0.85; }
.top nav a:hover, .top nav a[aria-current="page"] { opacity: 1; text-decoration: underline; text-underline-offset: 4px; }
.top .end { margin-inline-start: auto; display: flex; gap: 14px; align-items: center; font-size: 14px; }
.top .langs { display: flex; gap: 2px; }
.top .langs a { text-decoration: none; padding: 4px 8px; border-radius: 6px; opacity: 0.8; }
.top .langs a[aria-current="true"] { opacity: 1; font-weight: 600; }
.on-ink { background: var(--brand-ink); color: var(--paper); }
.on-ink .btn.secondary { color: var(--paper); border-color: rgba(255,255,255,0.45); }
.on-paper { background: var(--paper); color: var(--ink); border-bottom: 1px solid var(--hairline); }
@media (max-width: 767px) {
  .top .wrap { flex-wrap: wrap; gap: 8px 16px; padding-top: 12px; padding-bottom: 12px; }
  .top nav { order: 3; width: 100%; gap: 16px; font-size: 14px; }
  .top .end { gap: 8px; }
  .top .langs .ic { display: none; }
  .top .langs a { padding: 4px 6px; }
  .top .btn { min-height: 40px; padding: 0 14px; }
}
.top .btn { white-space: nowrap; }

/* Arabic pages: a Latin name (Harbor Café Group, FilaFlow ERP) never breaks across lines. */
[dir="rtl"] bdi { white-space: nowrap; }

/* Icons: the FilaFlow set (guide §3.4), one 1.5 px line in the text colour; only on actions. */
.ic { flex: none; fill: none; stroke: currentColor; stroke-width: 1.5; stroke-linecap: butt; stroke-linejoin: miter; vertical-align: -0.15em; }
.top .langs { align-items: center; }
.top .langs .ic { opacity: 0.7; margin-inline-end: 4px; }
[dir="rtl"] .btn .ic, [dir="rtl"] .links .ic[data-flip] { transform: scaleX(-1); }

/* Buttons and links */
.btn { display: inline-flex; align-items: center; justify-content: center; gap: 8px; min-height: 44px; padding: 0 20px; border-radius: 8px; font: 600 15px/1 var(--sans);
  text-decoration: none; border: 1px solid transparent; transition: background-color 120ms var(--ease-move), transform 120ms var(--ease-move); }
.btn:active { transform: scale(0.98); }
.btn.primary { background: var(--paper); color: var(--ink); }
.btn.dark { background: var(--brand-ink); color: var(--paper); }
.btn.dark:hover { background: #000; }
.btn.erp { background: var(--erp); color: var(--paper); }
.btn.erp:hover { background: var(--erp-strong); }
.btn.crm { background: var(--crm); color: var(--paper); }
.btn.crm:hover { background: var(--crm-strong); }
.btn.secondary { background: transparent; color: var(--ink); border-color: var(--rule); }
.btn.secondary:hover { background: var(--tint); }
.on-ink .btn.secondary:hover, .field .btn.secondary:hover { background: rgba(255,255,255,0.08); }
.link { font-weight: 600; text-underline-offset: 4px; }
.arrow::after { content: " →"; }
[dir="rtl"] .arrow::after { content: " ←"; }
.actions { display: flex; flex-wrap: wrap; gap: 12px; margin-top: 28px; }

/* Hero (company, ink) */
.hero { padding: 72px 0 88px; }
.hero h1 { font: 400 clamp(42px, 7vw, 76px)/1.04 var(--serif); letter-spacing: -0.01em; margin: 0; max-width: 16ch; }
@media (min-width: 768px) { .hero h1 .line { white-space: nowrap; } }
[dir="rtl"] .hero h1 { line-height: 1.35; letter-spacing: 0; }
.hero p.lead { font-size: 19px; line-height: 1.55; max-width: 34em; margin: 26px 0 0; opacity: 0.88; }
.label { font-size: 12px; font-weight: 500; letter-spacing: 0.07em; text-transform: uppercase; opacity: 0.8; margin: 0 0 14px; }
[dir="rtl"] .label { letter-spacing: 0; text-transform: none; font-size: 13px; }

/* Colour fields (products) */
.fields { display: grid; grid-template-columns: 1fr; }
@media (min-width: 900px) { .fields { grid-template-columns: 1fr 1fr; } }
.field { color: var(--paper); padding: 56px 0 64px; display: flex; flex-direction: column; }
.field.erp { background: var(--erp); }
.field.crm { background: var(--crm); }
.field .inner { padding: 0 16px; max-width: 560px; width: 100%; flex: 1; display: flex; flex-direction: column; }
@media (min-width: 768px) { .field .inner { padding: 0 34px; } }
@media (min-width: 900px) { .fields .field.erp .inner { margin-inline-start: auto; } }
.field h2 { font: 400 clamp(30px, 3.6vw, 40px)/1.15 var(--serif); margin: 0; max-width: 20ch; }
[dir="rtl"] .field h2 { line-height: 1.45; }
.field p { margin: 18px 0 0; opacity: 0.9; max-width: 32em; }
/* Both product fields end with their button on the same line, whatever the length of the text above (founder, 8 Oct). */
.field .actions { margin-top: auto; padding-top: 26px; }
.field .btn.primary { color: var(--ink); }
.field .btn.secondary { color: var(--paper); border-color: rgba(255,255,255,0.45); }

/* Product page hero */
.product-hero { padding: 64px 0 72px; color: var(--paper); }
.product-hero.erp { background: var(--erp); }
.product-hero.crm { background: var(--crm); }
.product-hero h1 { font: 400 clamp(38px, 5.6vw, 60px)/1.1 var(--serif); margin: 0; max-width: 18ch; }
[dir="rtl"] .product-hero h1 { line-height: 1.45; }
.product-hero p.lead { font-size: 18.5px; max-width: 36em; margin: 22px 0 0; opacity: 0.9; }

/* Screenshots: a thin rule border and 12 px corners, no tilt, no floating cards (guide §26). */
.shot { border: 1px solid var(--rule); border-radius: 12px; overflow: hidden; background: var(--canvas); }
.shot img { width: 100%; height: auto; }
.shot.on-colour { border-color: rgba(255,255,255,0.25); }
.showcase { padding: 72px 0; }
.switch { display: inline-flex; position: relative; padding: 2px; border-radius: 8px; background: var(--tint); box-shadow: inset 0 0 0 1px var(--hairline); margin: 0 0 22px; }
.switch button { position: relative; z-index: 1; border: 0; background: transparent; font: 500 14px var(--sans); color: var(--ink-2); height: 36px; padding: 0 16px; border-radius: 6px; cursor: pointer; }
.switch button[aria-pressed="true"] { background: var(--paper); color: var(--ink); box-shadow: inset 0 0 0 1px var(--rule); }
.showcase .stage { position: relative; }
.showcase .stage .shot { transition: opacity 600ms var(--ease-move); }
.showcase .stage .shot[hidden] { display: block; position: absolute; inset: 0; opacity: 0; pointer-events: none; }

/* Sections */
section.band { padding: 72px 0; border-top: 1px solid var(--hairline); }
section.band h2 { font: 400 clamp(28px, 3.4vw, 38px)/1.2 var(--serif); margin: 0 0 12px; max-width: 22ch; }
[dir="rtl"] section.band h2 { line-height: 1.5; }
section.band > .wrap > p.intro { color: var(--ink-2); max-width: 40em; margin: 0 0 36px; }
.points { display: grid; grid-template-columns: 1fr; gap: 32px 48px; }
@media (min-width: 768px) { .points { grid-template-columns: repeat(3, 1fr); } }
.points.two { }
@media (min-width: 768px) { .points.two { grid-template-columns: repeat(2, 1fr); } }
.points h3 { font: 600 16px/1.4 var(--sans); margin: 0 0 6px; }
.points p { margin: 0; color: var(--ink-2); }
.split { display: grid; grid-template-columns: 1fr; gap: 32px; align-items: start; }
@media (min-width: 900px) { .split { grid-template-columns: 5fr 7fr; gap: 56px; } }

/* Early access (founder, 8 Oct 2026): one large serif line, then two quiet actions; open, no boxes (guide §6.1). */
.early { padding: 88px 0 104px; }
.early h1 { font: 400 clamp(38px, 6vw, 68px)/1.08 var(--serif); letter-spacing: -0.01em; margin: 0; max-width: 18ch; }
[dir="rtl"] .early h1 { line-height: 1.45; letter-spacing: 0; }
.early .quiet { display: grid; grid-template-columns: 1fr; gap: 40px 64px; margin-top: 64px; max-width: 880px; }
@media (min-width: 768px) { .early .quiet { grid-template-columns: 1fr 1fr; } }
.early .quiet > div { border-top: 1px solid var(--hairline); padding-top: 20px; }
.early h2 { font: 600 17px/1.4 var(--sans); margin: 0; }
.note-line { color: var(--ink-2); margin: 6px 0 0; }
.links { display: flex; flex-direction: column; align-items: flex-start; gap: 10px; margin: 16px 0 0; }
.links a { display: inline-flex; align-items: center; gap: 8px; text-decoration: underline; text-decoration-color: var(--rule); text-underline-offset: 5px; }
.links a:hover { text-decoration-color: currentColor; }

/* Reading pages (help, legal, status, what's new): plain layout, 65-character lines, Golos 16 px (guide §19). */
.page { padding: 56px 0 88px; }
.page h1 { font: 400 clamp(34px, 4.6vw, 48px)/1.15 var(--serif); margin: 0 0 16px; max-width: 20ch; }
[dir="rtl"] .page h1 { line-height: 1.45; }
.page h2 { font: 600 19px/1.35 var(--sans); margin: 40px 0 10px; }
.page p, .page li { max-width: 65ch; }
.page ol { padding-inline-start: 22px; }
.page ol li { margin: 0 0 10px; }
.list { list-style: none; padding: 0; margin: 0; border-top: 1px solid var(--hairline); max-width: 760px; }
.list li { border-bottom: 1px solid var(--hairline); }
.list a { display: flex; justify-content: space-between; gap: 4px 16px; padding: 14px 0; text-decoration: none; }
.list a > span { min-width: 0; overflow-wrap: anywhere; }
.list a:hover span:first-child { text-decoration: underline; text-underline-offset: 4px; }
.list .meta { color: var(--ink-3); font-size: 14px; text-align: end; }
/* Phones: the title and its "when" line stack, so nothing runs off the right edge (second review, P1). */
@media (max-width: 600px) { .list a { flex-direction: column; } .list .meta { text-align: start; } }
.read p, .callout { overflow-wrap: anywhere; }
.entry { border-top: 1px solid var(--hairline); padding: 22px 0; max-width: 760px; }
.entry h2 { margin: 0 0 4px; }
.entry .date { color: var(--ink-3); font-size: 14px; margin: 0 0 10px; }
.service { display: flex; justify-content: space-between; align-items: center; gap: 16px; border-bottom: 1px solid var(--hairline); padding: 14px 0; max-width: 760px; }
.service .state { display: inline-flex; align-items: center; gap: 8px; font-weight: 500; }
.service .dot { width: 8px; height: 8px; border-radius: 50%; background: var(--ok); }
.service .state.warn { color: #8F5C00; } .service .state.warn .dot { background: #8F5C00; }
.service .state.bad { color: #A82A20; } .service .state.bad .dot { background: #A82A20; }
.callout { border-top: 1px solid var(--hairline); padding: 16px 0 0; max-width: 760px; color: var(--ink-2); }
.callout.problem { color: #8F5C00; border-top-color: #8F5C00; }
.choose-list { max-width: 760px; }
.choose-list a { align-items: center; padding: 18px 0; }
.choose-list strong { display: block; font-size: 17px; }
.choose-list .sub { color: var(--ink-2); font-size: 14.5px; }
.choose-list .ic { color: var(--ink-2); flex: none; }
[dir="rtl"] .choose-list .ic { transform: scaleX(-1); }

/* Footer */
footer.site { border-top: 1px solid var(--hairline); padding: 40px 0 56px; color: var(--ink-3); font-size: 14px; }
footer.site .cols { display: flex; flex-wrap: wrap; gap: 24px 48px; justify-content: space-between; }
footer.site nav { display: flex; flex-wrap: wrap; gap: 10px 22px; }
footer.site a { text-decoration: none; color: var(--ink-2); }
footer.site a:hover { color: var(--ink); text-decoration: underline; }
footer.site .mails { display: flex; flex-direction: column; gap: 6px; }
footer.site .mark { height: 14px; width: auto; opacity: 0.85; margin-bottom: 10px; }

/* Website motion (guide §9.6): the hero sentence fades in once, line by line; sections fade in and rise 12 px once as they come into
   view. Without scripts everything is simply visible; with reduced motion nothing moves. */
.rise { transition: opacity 320ms var(--ease-enter), transform 320ms var(--ease-enter); }
/* Only a section that starts below the first screen waits to fade in; everything is visible without the script, when printed
   and in a full-page picture of the page. */
.js .rise.later { opacity: 0; transform: translateY(12px); }
@media print { .js .rise.later { opacity: 1; transform: none; } }
.js .hero .line { opacity: 0; animation: fade 320ms var(--ease-enter) forwards; }
@keyframes fade { to { opacity: 1; } }
@media (prefers-reduced-motion: reduce) {
  .js .rise, .js .hero .line { opacity: 1 !important; transform: none !important; transition: none !important; animation: none !important; }
  .showcase .stage .shot { transition: none; }
}
