/* ==========================================================================
   Farino PDF website 4.43 — trust & tidy layer.
   Direction from ui-ux-pro-max ("Trust & Authority + Conversion",
   Minimalism & Swiss Style): navy/slate surfaces, the brand indigo only for
   actions and links, one type family (Plus Jakarta Sans, self-hosted) with
   calm tracking, tabular figures, consistent 8 px rhythm, 44 px touch
   targets, subtle motion only. Loaded last on every public page.
   Breakpoints checked: 375 · 768/834 · 1024 · 1440.
   ========================================================================== */
:root{
 --navy:#0f172a;--navy-2:#1e293b;--slate:#334155;--slate-2:#475569;
 --ink:#0f172a;--ink-2:#1e293b;--body:#334155;--muted:#526077;--faint:#64748b;
 --rule:#e2e8f0;--rule-2:#cbd5e1;--paper:#f8fafc;
 --sec-y:clamp(48px,6vw,80px);
 --shadow-sm:0 1px 2px rgba(15,23,42,.06);
 --shadow:0 10px 24px -14px rgba(15,23,42,.28);
}

/* ---------- type: calm tracking, readable measure, tabular figures ---------- */
body{color:var(--body);font-size:1rem;line-height:1.65;-webkit-font-smoothing:antialiased;text-rendering:optimizeLegibility}
h1{letter-spacing:-.018em;word-spacing:.02em;font-weight:700;line-height:1.14}
h2{letter-spacing:-.014em;word-spacing:.02em;font-weight:700;line-height:1.22}
h3{letter-spacing:-.004em;font-weight:650}
.lead{color:var(--muted)}
p,li{text-wrap:pretty}
h1,h2{text-wrap:balance}
.hplan-price,.plan .amount,.price,.facts strong,table,.steps li::before,.stat b,.pr-table,.compare,time{font-variant-numeric:tabular-nums lining-nums}
code,kbd,samp,.mono{font-family:var(--font-mono)}

/* ---------- rhythm: one section scale ---------- */
.sec{padding:var(--sec-y) 0}
.sec-head{margin-bottom:clamp(24px,3vw,40px)}
.sec-head p{max-width:62ch}

/* ---------- header: quiet, solid, clear active state ---------- */
.top{background:rgba(255,255,255,.96);border-bottom:1px solid var(--rule)}
.nav>a[aria-current=page],.nav-mega.is-current .nav-mega-btn{color:var(--ink);font-weight:600}

/* ---------- buttons: one primary colour, readable on every surface ---------- */
.btn{font-weight:600;letter-spacing:0}
.btn:active{transform:translateY(1px)}

/* ---------- hero: credibility first ---------- */
.hero.hero-ink{background:linear-gradient(var(--navy) 0 calc(100% - 150px),var(--paper) 0)}
.hero-ink .lead{color:#cbd5e1}
.hero-trust li{background:rgba(255,255,255,.06);border-color:rgba(255,255,255,.16);color:#e2e8f0}

/* ---------- surfaces: flat cards with a hairline ---------- */
.facts-band .facts li,.trust-item,.uses li,.enterprise-public-cards article,.feat-card,.ai-feature-cards>article,.proof-item,.fx-card,.sp-card{border-color:var(--rule);box-shadow:var(--shadow-sm)}
a.fx-card:hover,a.trust-item:hover{border-color:var(--rule-2);box-shadow:var(--shadow)}

/* ---------- final CTA: navy, not a saturated colour block ---------- */
.final{background:var(--navy)!important;border-top:1px solid #1e293b;position:relative;isolation:isolate;overflow:hidden}
.final::after{content:"";position:absolute;inset:0;z-index:-1;background-image:linear-gradient(rgba(255,255,255,.035) 1px,transparent 1px),linear-gradient(90deg,rgba(255,255,255,.035) 1px,transparent 1px);background-size:40px 40px;-webkit-mask-image:linear-gradient(90deg,transparent,#000 40%,#000);mask-image:linear-gradient(90deg,transparent,#000 40%,#000);pointer-events:none}
.final p{color:#cbd5e1}
.final .btn-light{color:var(--ink);background:#fff;border-color:#fff}
.final .btn-light:hover{background:#eef2ff;border-color:#eef2ff;color:var(--ink)}

/* ---------- footer: larger touch targets, calmer contrast ---------- */
.foot{background:var(--navy)}
.foot li a{display:inline-block;padding-block:4px}
.foot-base{border-top-color:rgba(255,255,255,.1)}

/* ---------- tablet (641–1023): stack icon over text in narrow 3-up cards ---------- */
@media (min-width:641px) and (max-width:1023px){
 .facts-band .facts{grid-template-columns:repeat(3,minmax(0,1fr))}
 .facts-band .facts li{flex-direction:column;align-items:flex-start;gap:12px;padding:16px}
 .facts-band .facts span{font-size:.875rem}
 .trust{grid-template-columns:repeat(2,minmax(0,1fr))}
 .hplans{grid-template-columns:repeat(3,minmax(0,1fr));gap:12px}
 .fx-grid{grid-template-columns:repeat(2,minmax(0,1fr))}
}

/* ---------- mobile + tablet navigation: Product groups fold ---------- */
@media (max-width:960px){
 .mega-group .mega-h{display:flex;align-items:center;justify-content:space-between;min-height:44px;margin:0;padding:0 8px;border-radius:8px;font-size:.9375rem;font-weight:600;color:var(--ink);cursor:pointer;user-select:none}
 .mega-group .mega-h::after{content:"";width:7px;height:7px;border-right:1.7px solid currentColor;border-bottom:1.7px solid currentColor;transform:translateY(-2px) rotate(45deg);transition:transform .2s}
 .mega-group.open .mega-h::after{transform:translateY(2px) rotate(-135deg)}
 .mega-group .mega-h:hover{background:#eef2f7}
 .js .mega-group ul{display:none;padding:2px 0 8px}
 .js .mega-group.open ul{display:grid}
 .mega-group{margin-bottom:2px;border-bottom:1px solid var(--rule)}
 .mega-group:last-child{border-bottom:0}
 .mega-grid{grid-template-columns:1fr!important;gap:0!important}
 .mega li a{min-height:44px}
 .mega-foot{flex-direction:column;gap:2px}
 .mega-foot a{min-height:44px}
 .nav>a{min-height:44px;display:flex;align-items:center}
}

/* ---------- phones ---------- */
@media (max-width:640px){
 h1{font-size:clamp(2rem,8.4vw,2.4rem)}
 h2{font-size:clamp(1.5rem,6.4vw,1.85rem)}
 .sec{padding:44px 0}
 .hero-ink .actions .btn{width:100%}
 .final .actions{width:100%}
 .final .actions .btn{flex:1 1 100%}
}

@media (prefers-reduced-motion:reduce){*,*::before,*::after{animation-duration:.01ms!important;animation-iteration-count:1!important;transition-duration:.01ms!important;scroll-behavior:auto!important}}
html,body{overflow-x:clip}
/* Page heads: one alignment (left, on the reading column) at every width. */
.page-head:not(.fx-head) h1,.page-head:not(.fx-head) .lead{margin-inline:0;text-align:left;max-width:30ch}
.page-head:not(.fx-head) .lead{max-width:62ch}
.page-head h1{letter-spacing:-.018em}
