/* Copyright (c) 2026 Nebula Webtech LLC. All rights reserved. Proprietary and confidential. */
/* Farasha POS Solutions — public website.
   Palette comes from the logo: deep green-black, emerald, mint. Crema (a coffee brown) is used only
   to mark promotions. Light and dark themes both defined; the hero and header stay dark in both. */

:root {
  --ink: #04251c;
  --ink-2: #0a3a2b;
  --ink-3: #12503c;
  --emerald: #049952;
  --mint: #6fe0a4;
  --mint-soft: #bff3d6;
  --crema: #c98a4b;
  --crema-ink: #6b4226;

  --bg: #f4f8f5;
  --surface: #ffffff;
  --surface-2: #eaf1ed;
  --text: #10201a;
  --text-dim: #4b5d54;
  --line: #d5e1da;
  --link: #037740;
  --on-dark: #eaf6ef;
  --on-dark-dim: #a9c9b8;
  --shadow: 0 24px 60px -24px rgba(4, 37, 28, 0.35);

  --radius: 14px;
  --wrap: 1160px;
  --gutter: 20px;
}

@media (prefers-color-scheme: dark) {
  :root:not([data-theme="light"]) {
    --bg: #07140f;
    --surface: #0d2119;
    --surface-2: #12291f;
    --text: #e6f1ea;
    --text-dim: #9db8a9;
    --line: #1f3b2f;
    --link: #6fe0a4;
    --shadow: 0 24px 60px -24px rgba(0, 0, 0, 0.7);
  }
}
:root[data-theme="dark"] {
  --bg: #07140f;
  --surface: #0d2119;
  --surface-2: #12291f;
  --text: #e6f1ea;
  --text-dim: #9db8a9;
  --line: #1f3b2f;
  --link: #6fe0a4;
  --shadow: 0 24px 60px -24px rgba(0, 0, 0, 0.7);
}

* { box-sizing: border-box; }
html { scroll-behavior: smooth; -webkit-text-size-adjust: 100%; }
body {
  margin: 0;
  background: var(--bg);
  color: var(--text);
  font: 400 17px/1.6 "Hanken Grotesk", system-ui, -apple-system, "Segoe UI", Roboto, sans-serif;
  -webkit-font-smoothing: antialiased;
}
img { max-width: 100%; display: block; }
a { color: var(--link); }
h1, h2, h3 { font-family: "Bricolage Grotesque", "Hanken Grotesk", system-ui, sans-serif; line-height: 1.08; letter-spacing: -0.02em; margin: 0; text-wrap: balance; }
p { margin: 0 0 1em; }
:focus-visible { outline: 3px solid var(--mint); outline-offset: 3px; border-radius: 4px; }
.wrap { width: min(var(--wrap), 100% - 2 * var(--gutter)); margin-inline: auto; }
.skip { position: absolute; left: -999px; top: 8px; background: var(--mint); color: var(--ink); padding: 8px 14px; border-radius: 8px; z-index: 100; }
.skip:focus { left: 8px; }

/* ---------- Header ---------- */
.site-header { position: sticky; top: 0; z-index: 50; background: var(--ink); color: var(--on-dark); border-bottom: 1px solid rgba(111, 224, 164, 0.14); }
.site-header .wrap { display: flex; align-items: center; gap: 28px; min-height: 68px; }
.brand { display: flex; align-items: center; gap: 12px; color: var(--on-dark); text-decoration: none; }
.brand img { width: 40px; height: 40px; }
.brand-text { display: flex; flex-direction: column; line-height: 1; }
.brand-name { font: 300 20px/1 "Bricolage Grotesque", sans-serif; letter-spacing: 0.32em; text-transform: uppercase; }
.brand-sub { font: 500 9px/1 "Hanken Grotesk", sans-serif; letter-spacing: 0.42em; text-transform: uppercase; color: var(--mint); margin-top: 6px; }
.nav { display: flex; gap: 4px; margin-left: auto; align-items: center; }
.nav a { color: var(--on-dark-dim); text-decoration: none; padding: 10px 14px; border-radius: 999px; font-weight: 500; font-size: 15px; }
.nav a:hover { color: var(--on-dark); background: rgba(255, 255, 255, 0.06); }
.nav a[aria-current="page"] { color: var(--on-dark); background: rgba(111, 224, 164, 0.14); }
.nav a.btn { margin-left: 8px; }
.nav a.btn-primary, .nav a.btn-primary:hover { color: var(--ink); background: var(--mint); }
.nav a.btn-primary[aria-current="page"] { box-shadow: 0 0 0 3px rgba(111, 224, 164, 0.35); }
.nav-toggle { display: none; margin-left: auto; background: none; border: 1px solid rgba(255, 255, 255, 0.25); color: var(--on-dark); border-radius: 10px; padding: 9px 12px; font: 600 14px "Hanken Grotesk", sans-serif; cursor: pointer; }

/* ---------- Buttons ---------- */
.btn { display: inline-flex; align-items: center; justify-content: center; gap: 8px; border: 1.5px solid transparent; border-radius: 999px; padding: 13px 24px; font: 600 16px/1 "Hanken Grotesk", sans-serif; text-decoration: none; cursor: pointer; transition: transform 0.15s, background 0.15s, border-color 0.15s; }
.btn:hover { transform: translateY(-1px); }
.btn-primary { background: var(--mint); color: var(--ink); }
.btn-primary:hover { background: #8aedb9; }
.btn-dark { background: var(--ink); color: var(--on-dark); }
.btn-dark:hover { background: var(--ink-2); }
.btn-ghost { border-color: rgba(234, 246, 239, 0.4); color: var(--on-dark); background: transparent; }
.btn-ghost:hover { border-color: var(--mint); }
.btn-outline { border-color: var(--line); color: var(--text); background: transparent; }
.btn-outline:hover { border-color: var(--emerald); }
.btn-small { padding: 10px 18px; font-size: 14px; }

/* ---------- Hero ---------- */
.hero { background: radial-gradient(1200px 520px at 78% 10%, rgba(4, 153, 82, 0.28), transparent 60%), var(--ink); color: var(--on-dark); position: relative; overflow: hidden; }
.hero::after { content: ""; position: absolute; right: -120px; bottom: -140px; width: 520px; height: 520px; background: url("brand/emblem-512.png") center/contain no-repeat; opacity: 0.07; pointer-events: none; }
.hero .wrap { display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 1.12fr); gap: 56px; align-items: center; padding-block: 76px 88px; position: relative; z-index: 1; }
.eyebrow { font: 600 12.5px/1 "Hanken Grotesk", sans-serif; letter-spacing: 0.2em; text-transform: uppercase; color: var(--emerald); margin-bottom: 18px; }
.hero .eyebrow, .dark .eyebrow { color: var(--mint); }
.hero h1 { font-size: clamp(38px, 5.2vw, 64px); font-weight: 800; }
.hero h1 em { font-style: normal; color: var(--mint); }
.hero .lede { font-size: 19px; color: var(--on-dark-dim); max-width: 520px; margin-top: 22px; }
.hero .actions { display: flex; gap: 12px; flex-wrap: wrap; margin-top: 30px; }
.badge { display: inline-flex; align-items: center; gap: 8px; background: rgba(201, 138, 75, 0.16); border: 1px solid rgba(201, 138, 75, 0.5); color: #f0cfa6; border-radius: 999px; padding: 7px 14px 7px 12px; font: 600 13px/1 "Hanken Grotesk", sans-serif; margin-bottom: 22px; }
.badge::before { content: ""; width: 8px; height: 8px; border-radius: 50%; background: var(--crema); box-shadow: 0 0 0 4px rgba(201, 138, 75, 0.25); }

.stage { position: relative; aspect-ratio: 1.1 / 1; }
.frame { background: #0b1f18; border: 1px solid rgba(255, 255, 255, 0.12); border-radius: 14px; box-shadow: 0 40px 80px -30px rgba(0, 0, 0, 0.7); overflow: hidden; position: absolute; }
.frame img { width: 100%; height: auto; }
.frame-bar { display: flex; gap: 6px; padding: 9px 12px; background: #0f2a20; border-bottom: 1px solid rgba(255, 255, 255, 0.08); }
.frame-bar i { width: 9px; height: 9px; border-radius: 50%; background: rgba(255, 255, 255, 0.2); }
.stage .f-register { left: 0; top: 4%; width: 96%; }
.stage .f-kiosk { right: -2%; bottom: 2%; width: 52%; transform: rotate(1.5deg); }
.stage .f-kds { left: -3%; bottom: 8%; width: 44%; transform: rotate(-2deg); }

/* ---------- Sections ---------- */
section { padding-block: 84px; }
.section-head { max-width: 720px; margin-bottom: 44px; }
.section-head h2 { font-size: clamp(30px, 3.6vw, 44px); font-weight: 800; }
.section-head p { color: var(--text-dim); font-size: 18px; margin-top: 16px; }
.dark { background: var(--ink); color: var(--on-dark); }
.dark .section-head p { color: var(--on-dark-dim); }
.tinted { background: var(--surface-2); }

/* Channel cards */
.channels { display: grid; grid-template-columns: repeat(4, 1fr); gap: 16px; }
.channel { background: var(--surface); border: 1px solid var(--line); border-radius: var(--radius); padding: 26px 22px; text-decoration: none; color: var(--text); display: block; transition: border-color 0.15s, transform 0.15s; }
.channel:hover { border-color: var(--emerald); transform: translateY(-3px); }
.channel .num { width: 40px; height: 40px; border-radius: 12px; background: var(--surface-2); display: grid; place-items: center; margin-bottom: 18px; color: var(--emerald); }
.channel svg { width: 22px; height: 22px; }
.channel h3 { font-size: 20px; font-weight: 700; margin-bottom: 8px; }
.channel p { color: var(--text-dim); font-size: 15px; margin: 0; line-height: 1.5; }

/* Product tour tabs */
.tour { display: grid; grid-template-columns: 250px minmax(0, 1fr); gap: 36px; align-items: start; }
.tabs { display: flex; flex-direction: column; gap: 6px; }
.tab { text-align: left; background: transparent; border: 1px solid transparent; color: var(--on-dark-dim); padding: 14px 16px; border-radius: 12px; font: 600 16px/1.2 "Hanken Grotesk", sans-serif; cursor: pointer; }
.tab:hover { color: var(--on-dark); }
.tab[aria-selected="true"] { background: rgba(111, 224, 164, 0.12); border-color: rgba(111, 224, 164, 0.35); color: var(--on-dark); }
.tab small { display: block; font-weight: 400; color: var(--on-dark-dim); margin-top: 4px; font-size: 13px; }
.panel { display: none; }
.panel[data-active="true"] { display: grid; grid-template-columns: minmax(0, 1.4fr) minmax(0, 1fr); gap: 32px; align-items: center; }
.shot { border-radius: 12px; border: 1px solid rgba(255, 255, 255, 0.14); box-shadow: var(--shadow); overflow: hidden; background: #0b1f18; }
.shot img { width: 100%; height: auto; }
.panel h3 { font-size: 26px; font-weight: 700; margin-bottom: 12px; }
.panel p { color: var(--on-dark-dim); }
.ticks { list-style: none; padding: 0; margin: 18px 0 0; display: grid; gap: 10px; }
.ticks li { position: relative; padding-left: 28px; }
.ticks li::before { content: ""; position: absolute; left: 0; top: 7px; width: 14px; height: 14px; border-radius: 4px; background: var(--emerald); mask: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 14 14'%3E%3Cpath d='M2 7.5l3 3L12 3.5' fill='none' stroke='black' stroke-width='2'/%3E%3C/svg%3E") center/contain no-repeat; background: var(--mint); }
.on-light .ticks li::before { background: var(--emerald); }

/* Promotions feature */
.promo-grid { display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 1fr); gap: 56px; align-items: center; }
.poster { background: #fffaf2; color: #2a1d12; border-radius: 18px; padding: 34px 30px 28px; text-align: center; box-shadow: var(--shadow); border: 1px solid #ead7bd; max-width: 380px; margin-inline: auto; position: relative; transform: rotate(-1.5deg); }
.poster .tag { position: absolute; top: -14px; left: 50%; transform: translateX(-50%); background: var(--crema); color: #fff; font: 700 12px/1 "Hanken Grotesk", sans-serif; letter-spacing: 0.16em; text-transform: uppercase; padding: 8px 14px; border-radius: 999px; }
.poster h3 { font-size: 34px; font-weight: 800; color: var(--crema-ink); margin-top: 8px; }
.poster .deal { font: 700 56px/1 "Bricolage Grotesque", sans-serif; color: var(--ink); margin: 14px 0 4px; }
.poster .deal small { font-size: 22px; font-weight: 600; }
.poster img { width: 190px; height: 190px; margin: 18px auto 10px; border: 1px solid #ead7bd; border-radius: 12px; padding: 6px; background: #fff; }
.poster .scan { font-weight: 700; letter-spacing: 0.04em; }
.poster .until { color: #7a6149; font-size: 14px; margin: 4px 0 0; }
.poster-note { text-align: center; color: var(--text-dim); font-size: 13px; margin-top: 16px; }
.pill-row { display: flex; flex-wrap: wrap; gap: 8px; margin-top: 22px; }
.pill { border: 1px solid var(--line); background: var(--surface); border-radius: 999px; padding: 7px 14px; font-size: 14px; font-weight: 600; }

/* Split feature rows (features page) */
.feature { display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 1.15fr); gap: 56px; align-items: center; padding-block: 56px; border-top: 1px solid var(--line); }
.feature:first-of-type { border-top: 0; }
.feature.flip .feature-copy { order: 2; }
.feature h2 { font-size: clamp(26px, 3vw, 36px); font-weight: 800; margin-bottom: 14px; }
.feature .shot { border-color: var(--line); }
.feature-copy p { color: var(--text-dim); }
.feature-copy .eyebrow { margin-bottom: 12px; }

/* Roles ladder */
.ladder { display: grid; grid-template-columns: repeat(4, 1fr); gap: 0; margin-top: 26px; }
.rung { padding: 18px 16px 20px; border: 1px solid var(--line); background: var(--surface); position: relative; }
.rung + .rung { border-left: 0; }
.rung:first-child { border-radius: 12px 0 0 12px; }
.rung:last-child { border-radius: 0 12px 12px 0; }
.rung b { display: block; font: 700 16px "Bricolage Grotesque", sans-serif; }
.rung span { font-size: 13.5px; color: var(--text-dim); display: block; margin-top: 6px; line-height: 1.45; }
.rung:nth-child(1) { background: var(--surface-2); }

/* Steps */
.steps { display: grid; grid-template-columns: repeat(4, 1fr); gap: 20px; counter-reset: step; }
.step { border-top: 4px solid var(--emerald); padding-top: 16px; }
.step small { font: 700 12px/1 "Hanken Grotesk", sans-serif; letter-spacing: 0.14em; text-transform: uppercase; color: var(--emerald); }
.dark .step small { color: var(--mint); }
.step h3 { font-size: 20px; margin: 10px 0 8px; font-weight: 700; }
.step p { color: var(--text-dim); font-size: 15px; margin: 0; }
.dark .step p { color: var(--on-dark-dim); }

/* Why */
.why { display: grid; grid-template-columns: repeat(3, 1fr); gap: 20px; }
.why-card { background: var(--surface); border: 1px solid var(--line); border-radius: var(--radius); padding: 28px 26px; }
.why-card h3 { font-size: 22px; font-weight: 700; margin-bottom: 10px; }
.why-card p { color: var(--text-dim); margin: 0; font-size: 16px; }

/* FAQ */
.faq { max-width: 820px; }
.faq details { border-top: 1px solid var(--line); padding: 20px 0; }
.faq details:last-child { border-bottom: 1px solid var(--line); }
.faq summary { cursor: pointer; font: 700 19px "Bricolage Grotesque", sans-serif; list-style: none; display: flex; justify-content: space-between; gap: 16px; }
.faq summary::-webkit-details-marker { display: none; }
.faq summary::after { content: "+"; font-size: 26px; line-height: 1; color: var(--emerald); }
.faq details[open] summary::after { content: "–"; }
.faq details p { color: var(--text-dim); margin: 14px 0 0; }

/* CTA band */
.cta-band { background: linear-gradient(120deg, var(--ink) 0%, var(--ink-2) 100%); color: var(--on-dark); border-radius: 26px; padding: 56px 48px; display: flex; align-items: center; justify-content: space-between; gap: 28px; flex-wrap: wrap; position: relative; overflow: hidden; }
.cta-band h2 { font-size: clamp(28px, 3.4vw, 40px); font-weight: 800; max-width: 560px; }
.cta-band p { color: var(--on-dark-dim); margin: 12px 0 0; max-width: 520px; }
.cta-band .actions { display: flex; gap: 12px; flex-wrap: wrap; }
.cta-section { padding-block: 40px 88px; }

/* Page header (inner pages) */
.page-head { background: var(--ink); color: var(--on-dark); padding-block: 64px 56px; }
.page-head h1 { font-size: clamp(34px, 4.4vw, 54px); font-weight: 800; max-width: 760px; }
.page-head p { color: var(--on-dark-dim); font-size: 19px; max-width: 640px; margin: 18px 0 0; }
.page-head .eyebrow { color: var(--mint); }

/* Forms */
.form-layout { display: grid; grid-template-columns: minmax(0, 1.5fr) minmax(0, 1fr); gap: 48px; align-items: start; padding-block: 64px 96px; }
form.lead { background: var(--surface); border: 1px solid var(--line); border-radius: 20px; padding: 34px 32px; box-shadow: var(--shadow); }
.row { display: grid; grid-template-columns: 1fr 1fr; gap: 16px; }
.field { display: flex; flex-direction: column; gap: 7px; margin-bottom: 18px; }
.field label, .field legend { font-weight: 600; font-size: 15px; }
.field .opt { font-weight: 400; color: var(--text-dim); }
.field input, .field select, .field textarea { font: inherit; color: var(--text); background: var(--bg); border: 1.5px solid var(--line); border-radius: 10px; padding: 12px 14px; width: 100%; }
.field textarea { min-height: 120px; resize: vertical; }
.field input:focus, .field select:focus, .field textarea:focus { outline: none; border-color: var(--emerald); box-shadow: 0 0 0 3px rgba(4, 153, 82, 0.2); }
fieldset.field { border: 0; padding: 0; margin: 0 0 18px; }
.checks { display: flex; flex-wrap: wrap; gap: 10px; margin-top: 8px; }
.check { display: inline-flex; align-items: center; gap: 8px; border: 1.5px solid var(--line); border-radius: 999px; padding: 9px 15px; cursor: pointer; font-weight: 500; font-size: 15px; background: var(--bg); }
.check input { width: auto; accent-color: var(--emerald); margin: 0; }
.check:has(input:checked) { border-color: var(--emerald); background: rgba(4, 153, 82, 0.1); }
.hp { position: absolute; left: -9999px; width: 1px; height: 1px; overflow: hidden; }
.form-status { margin-top: 16px; padding: 14px 16px; border-radius: 10px; font-weight: 500; display: none; }
.form-status[data-state] { display: block; }
.form-status[data-state="ok"] { background: rgba(4, 153, 82, 0.14); border: 1px solid var(--emerald); }
.form-status[data-state="error"] { background: rgba(201, 80, 60, 0.12); border: 1px solid #c9503c; }
.side-card { background: var(--surface-2); border-radius: 18px; padding: 28px 26px; }
.side-card h3 { font-size: 20px; margin-bottom: 12px; }
.side-card ul { padding-left: 20px; margin: 0 0 16px; color: var(--text-dim); }
.side-card li { margin-bottom: 8px; }
.fineprint { font-size: 13.5px; color: var(--text-dim); margin-top: 14px; }

/* Prose (legal) */
.prose { max-width: 760px; padding-block: 56px 96px; }
.prose h2 { font-size: 26px; margin: 36px 0 12px; }
.prose p, .prose li { color: var(--text-dim); }

/* ---------- Footer ---------- */
.site-footer { background: var(--ink); color: var(--on-dark-dim); padding-block: 56px 28px; font-size: 15px; }
.foot-grid { display: grid; grid-template-columns: 1.4fr 1fr 1fr 1fr; gap: 36px; }
.site-footer h4 { color: var(--on-dark); font: 700 14px "Hanken Grotesk", sans-serif; letter-spacing: 0.14em; text-transform: uppercase; margin: 0 0 14px; }
.site-footer a { color: var(--on-dark-dim); text-decoration: none; display: block; padding: 4px 0; }
.site-footer a:hover { color: var(--mint); }
.site-footer a.brand { display: flex; color: var(--on-dark); }
.foot-bottom { border-top: 1px solid rgba(255, 255, 255, 0.1); margin-top: 40px; padding-top: 20px; display: flex; justify-content: space-between; gap: 16px; flex-wrap: wrap; font-size: 13.5px; }

/* Reveal */
.reveal { opacity: 0; transform: translateY(18px); transition: opacity 0.6s ease, transform 0.6s ease; }
.reveal.in { opacity: 1; transform: none; }
@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  .reveal { opacity: 1; transform: none; transition: none; }
  .btn, .channel { transition: none; }
}

/* ---------- Responsive ---------- */
@media (max-width: 980px) {
  .hero .wrap, .promo-grid, .feature, .form-layout, .tour { grid-template-columns: 1fr; }
  .hero .wrap { padding-block: 52px 64px; gap: 40px; }
  .feature.flip .feature-copy { order: 0; }
  .channels, .steps, .ladder, .why { grid-template-columns: repeat(2, 1fr); }
  .why { grid-template-columns: 1fr; }
  .tabs { flex-direction: row; overflow-x: auto; gap: 8px; padding-bottom: 6px; }
  .tab { white-space: nowrap; }
  .tab small { display: none; }
  .panel[data-active="true"] { grid-template-columns: 1fr; }
  .foot-grid { grid-template-columns: 1fr 1fr; }
  .rung:first-child, .rung:last-child { border-radius: 0; }
  .rung + .rung { border-left: 1px solid var(--line); }
  section { padding-block: 60px; }
}
@media (max-width: 760px) {
  .nav-toggle { display: inline-block; }
  .nav { display: none; position: absolute; left: 0; right: 0; top: 68px; background: var(--ink); flex-direction: column; align-items: stretch; padding: 12px var(--gutter) 20px; border-bottom: 1px solid rgba(111, 224, 164, 0.2); }
  .nav[data-open="true"] { display: flex; }
  .nav a { padding: 14px; }
  .nav a.btn { margin: 8px 0 0; }
  .channels, .steps, .ladder { grid-template-columns: 1fr; }
  .row { grid-template-columns: 1fr; }
  .cta-band { padding: 38px 26px; }
  .foot-grid { grid-template-columns: 1fr; }
  form.lead { padding: 26px 20px; }
  .stage { aspect-ratio: 1 / 1; }
}
