/* ==========================================================================
   SmartBooks — product page
   Single stylesheet, no build step. Dark cyber edition: this page now wears
   the same design system as smartpro.ae — deep-space canvas, cyan→violet
   neon, Space Grotesk display, JetBrains Mono technical accents. The
   SmartBooks purple/amber survives as the product's own accent inside it
   (the note rules and the app-window bar), sampled from logo-full.png.

   Fonts load from Google Fonts and degrade gracefully to system fonts when
   offline — the page still works from a USB stick with no internet.
   ========================================================================== */

:root {
  --bg:           #05070f;
  --bg-alt:       #080b16;
  --surface:      rgba(255, 255, 255, .035);
  --surface-2:    rgba(255, 255, 255, .06);
  --stroke:       rgba(255, 255, 255, .09);
  --stroke-strong:rgba(255, 255, 255, .16);

  --text:         #e8edf7;
  --muted:        #8b96ad;
  --dim:          #5f6a80;

  --cyan:         #00e5ff;
  --violet:       #7c5cff;
  --violet-soft:  #b9a4ff;
  --green:        #00ffa3;
  --pink:         #ff5c7a;
  --amber:        #ffb300;
  --grad:         linear-gradient(120deg, var(--cyan), var(--violet));

  --radius:       14px;
  --radius-sm:    10px;
  --shadow:       0 22px 60px -24px rgba(0, 0, 0, .65);
  --shadow-sm:    0 10px 28px -16px rgba(0, 0, 0, .55);

  --wrap:         1140px;
  --font-d: "Space Grotesk", "Segoe UI", system-ui, sans-serif;
  --font-b: "Inter", "Segoe UI", system-ui, -apple-system, "Helvetica Neue", Arial, sans-serif;
  --font-m: "JetBrains Mono", Consolas, "SF Mono", ui-monospace, monospace;

  color-scheme: dark;
}

/* respect reduced-motion */
@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after {
    animation-duration: 0ms !important;
    transition-duration: 0ms !important;
  }
  html { scroll-behavior: auto; }
}

html { scroll-behavior: smooth; }

* { box-sizing: border-box; }

:focus-visible { outline: 2px solid var(--cyan); outline-offset: 4px; }

body {
  margin: 0;
  font-family: var(--font-b);
  font-size: 16.5px;
  line-height: 1.65;
  color: var(--text);
  background: var(--bg);
  -webkit-font-smoothing: antialiased;
}

::selection { background: rgba(0, 229, 255, .22); }

h1, h2, h3, h4 { line-height: 1.2; margin: 0 0 .5em; letter-spacing: -.02em; color: #fff; }
h1 { font-family: var(--font-d); font-size: clamp(2.4rem, 5.2vw, 3.9rem); font-weight: 700; }
h2 { font-family: var(--font-d); font-size: clamp(1.7rem, 3.2vw, 2.35rem); font-weight: 700; }
h3 { font-family: var(--font-d); font-size: 1.12rem; font-weight: 600; }
h4 { font-family: var(--font-d); font-size: 1rem; font-weight: 600; }
p  { margin: 0 0 1em; }
p:last-child { margin-bottom: 0; }

a { color: var(--cyan); }
a:hover { color: var(--violet-soft); }

.mono {
  font-family: var(--font-m);
  font-size: .85em;
  background: rgba(0, 229, 255, .08);
  border: 1px solid rgba(0, 229, 255, .18);
  color: var(--cyan);
  padding: .1em .4em;
  border-radius: 6px;
}

.wrap { max-width: var(--wrap); margin: 0 auto; padding: 0 24px; }

/* --------------------------------------------------------------- header -- */

.site-head {
  position: sticky; top: 0; z-index: 50;
  background: rgba(5, 7, 15, .82);
  backdrop-filter: saturate(1.4) blur(14px);
  -webkit-backdrop-filter: saturate(1.4) blur(14px);
  border-bottom: 1px solid var(--stroke);
}
.head-inner {
  display: flex; align-items: center; gap: 20px;
  min-height: 66px;
}
.brand { display: flex; align-items: center; gap: 11px; text-decoration: none; color: var(--text); }
.brand img { border-radius: 9px; background: #fff; padding: 3px; }
.brand-text { display: flex; flex-direction: column; line-height: 1.15; }
.brand-text b { font-family: var(--font-d); font-size: 1.05rem; font-weight: 700; letter-spacing: -.01em; color: #fff; }
.brand-text small { font-family: var(--font-m); font-size: .64rem; color: var(--muted); letter-spacing: .12em; text-transform: uppercase; }

.nav { margin-left: auto; display: flex; gap: 24px; }
.nav a {
  color: var(--muted); text-decoration: none; font-size: .93rem; font-weight: 550;
  padding: 4px 0; border-bottom: 2px solid transparent;
  transition: color .2s ease, border-color .2s ease;
}
.nav a:hover { color: var(--cyan); border-bottom-color: var(--cyan); }

/* -------------------------------------------------------------- buttons -- */

.btn {
  display: inline-flex; align-items: center; justify-content: center;
  padding: 10px 18px; border-radius: 999px;
  font-weight: 650; font-size: .93rem; text-decoration: none;
  border: 1.5px solid transparent; cursor: pointer;
  transition: transform .15s ease, box-shadow .2s ease, background .15s ease,
              border-color .15s ease, color .15s ease;
  white-space: nowrap;
  outline: none;
}

.btn:focus-visible { outline: 2px solid var(--cyan); outline-offset: 4px; }

.btn:hover { transform: translateY(-2px); }

.btn-primary {
  background: var(--grad); color: #04070f;
  box-shadow: 0 0 0 1px rgba(0, 229, 255, .28), 0 10px 30px -12px rgba(0, 229, 255, .5);
}
.btn-primary:hover {
  color: #04070f;
  box-shadow: 0 0 0 1px rgba(0, 229, 255, .45), 0 16px 40px -12px rgba(124, 92, 255, .6);
}

.btn-ghost { border-color: var(--stroke-strong); color: var(--text); background: transparent; }
.btn-ghost:hover { border-color: var(--cyan); color: var(--cyan); background: rgba(0, 229, 255, .05); }

.btn-lg { padding: 13px 26px; font-size: .98rem; }

.head-inner > .btn { margin-left: 4px; }

/* ----------------------------------------------------------------- hero -- */

.hero {
  position: relative;
  background:
    radial-gradient(920px 500px at 80% 2%, rgba(124, 92, 255, .17), transparent 62%),
    radial-gradient(720px 430px at 8% 96%, rgba(0, 229, 255, .10), transparent 60%),
    var(--bg);
  border-bottom: 1px solid var(--stroke);
  padding: 74px 0 82px;
  overflow: hidden;
}
.hero::before {
  content: ""; position: absolute; inset: 0;
  background-image:
    linear-gradient(rgba(255, 255, 255, .045) 1px, transparent 1px),
    linear-gradient(90deg, rgba(255, 255, 255, .045) 1px, transparent 1px);
  background-size: 56px 56px;
  -webkit-mask-image: radial-gradient(ellipse 88% 72% at 50% 26%, #000 30%, transparent 76%);
  mask-image: radial-gradient(ellipse 88% 72% at 50% 26%, #000 30%, transparent 76%);
  pointer-events: none;
}
.hero .wrap { position: relative; z-index: 1; }
.hero-inner {
  display: grid; grid-template-columns: minmax(0, 1.05fr) minmax(0, .95fr);
  gap: 56px; align-items: center;
}
.eyebrow {
  display: inline-flex; align-items: center; gap: 9px;
  font-family: var(--font-m);
  font-size: .72rem; font-weight: 500; letter-spacing: .2em; text-transform: uppercase;
  color: var(--cyan); margin: 0 0 16px;
}
.eyebrow::before {
  content: ""; width: 22px; height: 1.5px; background: var(--cyan); opacity: .8;
}
.hero h1 { color: #fff; margin-bottom: .32em; }
.lede { font-size: 1.08rem; color: var(--muted); max-width: 56ch; }
.hero-actions { display: flex; gap: 12px; flex-wrap: wrap; margin: 26px 0 0; }

.hero-facts {
  list-style: none; margin: 34px 0 0; padding: 22px 0 0;
  border-top: 1px solid var(--stroke);
  display: grid; grid-template-columns: repeat(3, 1fr); gap: 18px;
}
.hero-facts li { display: flex; flex-direction: column; gap: 2px; }
.hero-facts b { font-family: var(--font-d); font-size: .95rem; color: #fff; font-weight: 600; }
.hero-facts span { font-family: var(--font-m); font-size: .72rem; letter-spacing: .04em; color: var(--muted); }

/* the little screenshot stand-in */
.hero-art { position: relative; }
.card-shot {
  background: linear-gradient(160deg, rgba(255, 255, 255, .06), rgba(255, 255, 255, .02));
  border: 1px solid var(--stroke);
  border-radius: var(--radius); box-shadow: var(--shadow);
  overflow: hidden; transform: rotate(-.5deg);
  backdrop-filter: blur(6px);
  -webkit-backdrop-filter: blur(6px);
}
.shot-bar {
  display: flex; align-items: center; gap: 6px;
  padding: 11px 14px;
  background: linear-gradient(90deg, rgba(124, 92, 255, .38), rgba(0, 229, 255, .16));
  border-bottom: 1px solid var(--stroke);
  color: #fff; font-family: var(--font-m); font-size: .74rem; font-weight: 500;
}
.shot-bar i { width: 9px; height: 9px; border-radius: 50%; background: rgba(255, 255, 255, .32); }
.shot-bar i:nth-child(1) { background: rgba(255, 92, 122, .8); }
.shot-bar i:nth-child(2) { background: rgba(255, 179, 0, .8); }
.shot-bar i:nth-child(3) { background: rgba(0, 255, 163, .8); }
.shot-bar span { margin-left: 8px; opacity: .92; }
.shot-table { width: 100%; border-collapse: collapse; font-size: .84rem; }
.shot-table th, .shot-table td { padding: 8px 12px; text-align: left; border-bottom: 1px solid rgba(255, 255, 255, .07); }
.shot-table th { color: var(--muted); font-family: var(--font-m); font-weight: 500; font-size: .68rem; text-transform: uppercase; letter-spacing: .08em; }
.shot-table td { color: var(--text); }
.shot-table .num { text-align: right; font-variant-numeric: tabular-nums; font-family: var(--font-m); font-size: .92em; }
.shot-table tr.sum td { background: rgba(124, 92, 255, .13); font-weight: 650; }
.shot-table tr.total td { background: rgba(0, 229, 255, .10); font-weight: 700; color: var(--cyan); }
.shot-note {
  margin: 0; padding: 10px 14px; font-family: var(--font-m); font-size: .72rem;
  letter-spacing: .06em; color: var(--green); font-weight: 500;
}
.shot-note::before { content: "● "; font-size: .6em; vertical-align: middle; }

/* ------------------------------------------------------------- sections -- */

.section { padding: 82px 0; }
.section.alt { background: rgba(255, 255, 255, .018); border-block: 1px solid var(--stroke); }
.section-lede { font-size: 1.08rem; color: var(--muted); max-width: 68ch; margin-bottom: 2em; }

.grid { display: grid; grid-template-columns: repeat(auto-fit, minmax(300px, 1fr)); gap: 20px; }
.grid-3 { grid-template-columns: repeat(auto-fit, minmax(230px, 1fr)); }

.card {
  background: var(--surface); border: 1px solid var(--stroke);
  border-radius: var(--radius); padding: 24px 24px 22px;
  transition: box-shadow .2s ease, transform .2s ease, border-color .2s ease;
  transform-style: preserve-3d;
}

.section.alt .card { border-color: var(--stroke); }
.card:hover {
  box-shadow: 0 18px 50px -22px rgba(0, 229, 255, .35);
  transform: translateY(-2px) rotateX(-2deg);
  border-color: rgba(0, 229, 255, .38);
}
.card h3 { color: #fff; }
.card p { color: var(--muted); font-size: .95rem; }

.note {
  font-size: .86rem; color: var(--muted);
  border-left: 3px solid var(--amber);
  padding-left: 12px; margin: 12px 0 0;
}
.note.wide { margin-top: 26px; max-width: 78ch; }

/* two-column with a sidebar */
.split { display: grid; grid-template-columns: minmax(0, 1.5fr) minmax(0, 1fr); gap: 44px; align-items: start; }
.split h3 { margin-top: 1.5em; color: #fff; }
.split h3:first-child { margin-top: 0; }
.split p { color: var(--muted); }

.callout {
  background: linear-gradient(160deg, rgba(124, 92, 255, .16), rgba(0, 229, 255, .05));
  border: 1px solid rgba(0, 229, 255, .24);
  color: var(--text);
  border-radius: var(--radius); padding: 26px 26px 24px;
  box-shadow: var(--shadow);
  position: sticky; top: 86px;
}
.callout h4 { color: #fff; font-size: 1.02rem; }
.callout p { color: #b9c2d6; font-size: .92rem; }
.callout .mono { background: rgba(255, 255, 255, .1); border-color: rgba(255, 255, 255, .16); color: #fff; }
.callout-foot {
  margin-top: 14px; padding-top: 14px;
  border-top: 1px solid rgba(255, 255, 255, .14);
  font-size: .84rem !important; color: var(--amber) !important; font-weight: 600;
}

/* ------------------------------------------------------------ EmaraTax --- */

.honest {
  display: grid; grid-template-columns: repeat(auto-fit, minmax(320px, 1fr));
  gap: 24px;
}
.honest-no, .honest-yes {
  border-radius: var(--radius); padding: 26px;
  border: 1px solid var(--stroke); background: var(--surface);
}
.honest-no { border-left: 5px solid var(--pink); }
.honest-yes { border-left: 5px solid var(--green); }
.honest h3 { color: #fff; }
.honest p { color: var(--muted); font-size: .95rem; }

.ticks { list-style: none; margin: 0; padding: 0; }
.ticks li {
  position: relative; padding-left: 26px; margin-bottom: 14px;
  font-size: .93rem; color: var(--muted);
}
.ticks li::before {
  content: "\2713"; position: absolute; left: 0; top: -1px;
  color: var(--green); font-weight: 800;
}
.ticks b { color: var(--text); }
.honest-foot {
  margin: 18px 0 0; padding-top: 14px; border-top: 1px solid var(--stroke);
  font-size: .88rem !important; color: var(--muted) !important;
}

.honest-inline {
  border-left: 3px solid var(--amber);
  padding-left: 14px; font-size: .92rem;
}
.honest-inline b { color: var(--amber); }

/* ---------------------------------------------------------------- steps -- */

.steps { counter-reset: step; list-style: none; margin: 0; padding: 0; max-width: 82ch; }
.steps li {
  counter-increment: step; position: relative;
  padding: 0 0 22px 58px; margin-bottom: 22px;
  border-bottom: 1px solid var(--stroke);
}
.steps li:last-child { border-bottom: 0; margin-bottom: 0; padding-bottom: 0; }
.steps li::before {
  content: counter(step);
  position: absolute; left: 0; top: -2px;
  width: 36px; height: 36px; border-radius: 50%;
  background: var(--grad); color: #04070f;
  font-family: var(--font-d); font-weight: 700;
  display: grid; place-items: center;
  font-size: .95rem;
  box-shadow: 0 0 22px -6px rgba(0, 229, 255, .55);
}
.steps b { color: #fff; font-family: var(--font-d); display: block; margin-bottom: 2px; }
.steps p { color: var(--muted); font-size: .95rem; margin: 0; }

/* ------------------------------------------------------------------ get -- */

.get {
  position: relative;
  background:
    radial-gradient(800px 420px at 15% 0%, rgba(0, 229, 255, .12), transparent 60%),
    linear-gradient(150deg, rgba(124, 92, 255, .30), rgba(0, 229, 255, .12) 55%, rgba(255, 255, 255, .03));
  border-block: 1px solid rgba(0, 229, 255, .28);
  color: var(--text);
  overflow: hidden;
}
.get::before {
  content: ""; position: absolute; inset: 0;
  background-image:
    linear-gradient(rgba(255, 255, 255, .05) 1px, transparent 1px),
    linear-gradient(90deg, rgba(255, 255, 255, .05) 1px, transparent 1px);
  background-size: 44px 44px;
  -webkit-mask-image: radial-gradient(ellipse 80% 80% at 50% 20%, #000, transparent 75%);
  mask-image: radial-gradient(ellipse 80% 80% at 50% 20%, #000, transparent 75%);
  pointer-events: none;
}
.get .wrap { position: relative; z-index: 1; }
.get-inner { max-width: 720px; text-align: center; margin: 0 auto; }
.get-logo {
  width: 210px; height: auto; margin: 0 auto 26px; display: block;
  background: rgba(255, 255, 255, .96);
  border-radius: var(--radius); padding: 16px 20px;
  box-shadow: 0 18px 50px -20px rgba(0, 0, 0, .6);
}
.get h2 { color: #fff; }
.ver {
  display: inline-block; vertical-align: middle;
  font-family: var(--font-m);
  font-size: .62em; font-weight: 500; letter-spacing: .02em;
  background: rgba(255, 255, 255, .12); color: var(--cyan);
  padding: .28em .7em; border-radius: 999px; margin-left: .5em;
}
.get p { color: #cdd5e6; }
.get-note { font-size: .88rem; color: var(--muted); }
.get .hero-actions { justify-content: center; }

/* ---------------------------------------------------------------- footer -- */

.site-foot { background: #04060d; color: var(--muted); padding: 40px 0 46px; border-top: 1px solid var(--stroke); }
.foot-inner { display: grid; gap: 20px; }
.foot-brand { display: flex; align-items: center; gap: 11px; font-size: .95rem; }
.foot-brand img { border-radius: 8px; background: #fff; padding: 2px; }
.foot-brand b { color: #fff; font-family: var(--font-d); }

/* ---------- Smartpro parent brand ---------- */
.nav-parent {
  display: inline-flex; align-items: center; padding: 5px 10px; border-radius: 10px;
  background: rgba(255, 255, 255, .05); border: 1px solid var(--stroke);
  transition: transform .25s, box-shadow .25s;
}
.nav-parent:hover { transform: translateY(-2px); box-shadow: 0 8px 20px -10px rgba(0, 229, 255, .4); }
.nav-parent img { height: 26px; width: auto; display: block; }
.foot-parent { display: flex; align-items: center; gap: 13px; flex-wrap: wrap; font-size: .85rem; color: var(--muted); }
.foot-parent img { height: 28px; width: auto; display: block; }
.foot-parent b { color: #fff; }
@media (max-width: 720px) { .nav-parent { display: none; } }
.foot-nav { display: flex; gap: 20px; flex-wrap: wrap; }
.foot-nav a { color: var(--muted); text-decoration: none; font-size: .89rem; transition: color .2s; }
.foot-nav a:hover { color: #fff; }
.foot-contact { display: flex; gap: 18px; flex-wrap: wrap; align-items: center; }
.foot-contact span { font-family: var(--font-m); color: var(--muted); font-size: .68rem; letter-spacing: .18em; text-transform: uppercase; }
.foot-contact a { color: var(--muted); text-decoration: none; font-size: .89rem; transition: color .2s; }
.foot-contact a:hover { color: var(--cyan); }
.foot-copy {
  margin: 0; padding-top: 18px; border-top: 1px solid var(--stroke);
  font-size: .84rem; color: var(--muted);
}
.foot-legal {
  margin: 6px 0 0; font-size: .8rem; color: var(--muted); max-width: 80ch;
}

/* ------------------------------------------------------------ responsive -- */

@media (max-width: 980px) {
  .hero-inner { grid-template-columns: 1fr; gap: 40px; }
  /* The headline leads. The product shot follows it rather than jumping above
     it - a page whose first words are a screenshot table is a page nobody reads
     to the end, and the reading order is what a screen reader and a crawler
     follow too. */
  .split { grid-template-columns: 1fr; gap: 28px; }
  .callout { position: static; }
  .head-inner { flex-wrap: wrap; }
      .nav {
        order: 3; width: 100%; margin-left: 0; display: flex; gap: 18px;
        overflow-x: auto; padding: 2px 0 6px; scrollbar-width: none;
      }
      .nav::-webkit-scrollbar { display: none; }
      .nav a { white-space: nowrap; }
}

@media (max-width: 620px) {
  body { font-size: 16px; }
  .wrap { padding: 0 18px; }
  .section { padding: 56px 0; }
  .hero { padding: 48px 0 56px; }
  .hero-facts { grid-template-columns: 1fr; gap: 12px; }
  .hero-actions .btn { flex: 1 1 auto; }
  .card, .honest-no, .honest-yes, .callout { padding: 20px; }
  .steps li { padding-left: 46px; }
  .steps li::before { width: 32px; height: 32px; font-size: .88rem; }
}

/* WCAG 2.5.8 — comfortable target sizes (invisible padding, no layout shift) */
.foot-nav a, .foot-contact a { padding-block: 4px; }

/* Anchor jumps clear the sticky header */
section[id] { scroll-margin-top: 96px; }

/* Icon chips — the site-wide SVG tile language, on the e-invoice cards */
.card-ico {
  width: 46px; height: 46px; display: grid; place-items: center;
  border-radius: 13px; margin-bottom: 16px;
  background: linear-gradient(135deg, rgba(0, 229, 255, .15), rgba(124, 92, 255, .15));
  border: 1px solid rgba(0, 229, 255, .26);
}
.card-ico svg {
  width: 22px; height: 22px; fill: none; stroke: var(--cyan);
  stroke-width: 1.8; stroke-linecap: round; stroke-linejoin: round;
}
.card-ico--amber { background: linear-gradient(135deg, rgba(255, 179, 0, .14), rgba(255, 179, 0, .05)); border-color: rgba(255, 179, 0, .3); }
.card-ico--amber svg { stroke: var(--amber); }

/* ----------------------------------------------------------------- print -- */

@media print {
  .site-head, .hero-art, .get .hero-actions, .btn { display: none !important; }
  body { font-size: 11pt; color: #1C1720; background: #fff; }
  .section { padding: 18pt 0; page-break-inside: avoid; }
  .card, .callout, .honest-no, .honest-yes {
    box-shadow: none; break-inside: avoid;
    border: 1px solid #CCC; background: #fff;
  }
  h1, h2, h3, h4, .card h3, .split h3, .steps b, .ticks b { color: #1C1720; }
  .lede, .section-lede, .card p, .split p, .honest p, .steps p, .callout p { color: #4A4252; }
  .callout { background: #fff; color: #1C1720; }
  .eyebrow { color: #8A5A00; }
  .hero { background: none; }
  .get { background: none; border: none; color: #1C1720; }
  .get p, .get-note { color: #4A4252; }
  .site-foot { background: #fff; color: #4A4252; border-top: 1px solid #CCC; }
  .foot-brand b, .foot-parent b { color: #1C1720; }
  .foot-nav a, .foot-contact a, .foot-copy, .foot-legal { color: #4A4252; }
  a { text-decoration: none; color: #1C1720; }
}
