/* Fonexora website. One stylesheet, no external fonts or CDNs. */
:root {
  --brand: #214cc5;
  --brand-2: #4268e4;
  --brand-dark: #16358e;
  --navy: #0c1733;
  --ink: #161a24;
  --muted: #535c6e;
  --line: #dde3ef;
  --soft: #f3f6fc;
  --bg: #ffffff;
  --ok: #1d7f4e;
  --radius: 10px;
  --wrap: 1120px;
  --font: system-ui, -apple-system, "Segoe UI", Roboto, "Helvetica Neue", Arial, sans-serif;
  --mono: ui-monospace, "Cascadia Mono", Consolas, "Courier New", monospace;
}

*, *::before, *::after { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; scroll-behavior: smooth; }
body {
  margin: 0;
  font-family: var(--font);
  font-size: 1.0625rem;
  line-height: 1.6;
  color: var(--ink);
  background: var(--bg);
  display: flex;
  flex-direction: column;
  min-height: 100vh;
}
main { flex: 1; }
img, svg { max-width: 100%; height: auto; display: block; }
a { color: var(--brand); text-underline-offset: 2px; }
a:hover { color: var(--brand-dark); }
h1, h2, h3 { line-height: 1.2; margin: 0 0 .6em; letter-spacing: -0.01em; }
h1 { font-size: clamp(2rem, 4.5vw, 3.1rem); }
h2 { font-size: clamp(1.5rem, 3vw, 2.1rem); }
h3 { font-size: 1.15rem; }
p { margin: 0 0 1em; }
code, kbd { font-family: var(--mono); font-size: .9em; background: var(--soft); border: 1px solid var(--line); border-radius: 4px; padding: .05em .35em; }
:focus-visible { outline: 3px solid var(--brand-2); outline-offset: 2px; }

.wrap { width: min(100% - 2.5rem, var(--wrap)); margin-inline: auto; }
.skip { position: absolute; left: -999px; top: 0; background: var(--brand); color: #fff; padding: .5rem 1rem; z-index: 10; }
.skip:focus { left: 0; color: #fff; }

/* Header */
.site-header { position: sticky; top: 0; z-index: 5; background: rgba(255,255,255,.96); border-bottom: 1px solid var(--line); }
.header-inner { display: flex; align-items: center; justify-content: space-between; gap: 1rem; min-height: 64px; flex-wrap: wrap; }
.brand { display: inline-flex; align-items: center; }
.brand img { height: 38px; width: auto; }
.site-nav ul { list-style: none; margin: 0; padding: 0; display: flex; flex-wrap: wrap; gap: .25rem; }
.site-nav a { display: block; padding: .45rem .7rem; border-radius: 8px; color: var(--ink); text-decoration: none; font-weight: 500; font-size: .98rem; }
.site-nav a:hover { background: var(--soft); color: var(--brand); }
.site-nav a[aria-current="page"] { color: var(--brand); background: var(--soft); }
.site-nav a.nav-cta { background: var(--brand); color: #fff; }
.site-nav a.nav-cta:hover { background: var(--brand-dark); color: #fff; }
.nav-toggle { display: none; }

@media (max-width: 860px) {
  .js .nav-toggle {
    display: inline-flex; align-items: center; gap: .5rem;
    font: inherit; font-weight: 600; font-size: .95rem; color: var(--ink);
    background: none; border: 1px solid var(--line); border-radius: 8px; padding: .4rem .75rem; cursor: pointer;
  }
  .nav-toggle-bars, .nav-toggle-bars::before, .nav-toggle-bars::after { display: block; width: 18px; height: 2px; background: currentColor; position: relative; }
  .nav-toggle-bars::before, .nav-toggle-bars::after { content: ""; position: absolute; left: 0; }
  .nav-toggle-bars::before { top: -6px; }
  .nav-toggle-bars::after { top: 6px; }
  .site-nav { width: 100%; padding-bottom: .75rem; }
  .js .site-nav { display: none; }
  .js .site-nav.open { display: block; }
  .js .site-nav ul { flex-direction: column; }
  .site-nav a { padding: .65rem .75rem; }
}

/* Buttons */
.btn { display: inline-flex; align-items: center; justify-content: center; gap: .5rem; padding: .75rem 1.3rem; border-radius: 8px; font-weight: 600; text-decoration: none; border: 2px solid transparent; line-height: 1.2; }
.btn-primary { background: var(--brand); color: #fff; }
.btn-primary:hover { background: var(--brand-dark); color: #fff; }
.btn-outline { border-color: currentColor; color: var(--brand); background: transparent; }
.btn-outline:hover { background: var(--soft); }
.btn-light { background: #fff; color: var(--brand-dark); }
.btn-light:hover { background: #e8eefc; color: var(--brand-dark); }
.btn-ghost { border-color: rgba(255,255,255,.55); color: #fff; }
.btn-ghost:hover { background: rgba(255,255,255,.1); color: #fff; }
.btn[aria-disabled="true"] { background: #e7eaf1; color: #7a8292; border-color: transparent; cursor: not-allowed; }
.btn-row { display: flex; flex-wrap: wrap; gap: .75rem; margin-top: 1.5rem; }

/* Hero */
.hero { background: radial-gradient(1200px 500px at 85% -10%, #2b5be0 0%, transparent 60%), linear-gradient(160deg, var(--navy) 0%, #13285f 60%, #1b3c9a 100%); color: #fff; padding: clamp(3rem, 8vw, 5.5rem) 0; }
.hero-grid { display: grid; grid-template-columns: 1.05fr .95fr; gap: 3rem; align-items: center; }
.hero h1 { color: #fff; }
.hero .lead { color: #d5def5; font-size: 1.2rem; max-width: 36em; }
.eyebrow { display: inline-block; font-size: .8rem; font-weight: 700; letter-spacing: .08em; text-transform: uppercase; color: #9fb6f5; margin-bottom: .9rem; }
.hero-art { border-radius: 14px; box-shadow: 0 30px 60px rgba(0,0,0,.35); overflow: hidden; }
.hero-facts { display: flex; flex-wrap: wrap; gap: .5rem 1.5rem; margin: 1.75rem 0 0; padding: 0; list-style: none; color: #c4d1f3; font-size: .95rem; }
.hero-facts li::before { content: "✓"; color: #7fe0a8; font-weight: 700; margin-right: .4rem; }

.page-head { background: linear-gradient(160deg, var(--navy) 0%, #183477 100%); color: #fff; padding: clamp(2.25rem, 6vw, 3.5rem) 0; }
.page-head h1 { color: #fff; margin-bottom: .35em; }
.page-head p { color: #d0daf3; font-size: 1.15rem; max-width: 44em; margin: 0; }
.page-head code { background: rgba(255,255,255,.12); border-color: rgba(255,255,255,.28); color: #fff; }
[id] { scroll-margin-top: 84px; }

/* Sections */
.section { padding: clamp(2.75rem, 7vw, 4.5rem) 0; }
.section-soft { background: var(--soft); border-block: 1px solid var(--line); }
.section-intro { max-width: 46em; margin-bottom: 2rem; }
.section-intro p { color: var(--muted); font-size: 1.1rem; }
.prose { max-width: 50em; }
.prose h2 { margin-top: 2rem; }
.prose h2:first-child { margin-top: 0; }
.prose ul, .prose ol { padding-left: 1.3rem; }
.prose li { margin-bottom: .4rem; }
.muted { color: var(--muted); }
.small { font-size: .92rem; }

.grid { display: grid; gap: 1.25rem; }
.grid-2 { grid-template-columns: repeat(2, minmax(0, 1fr)); }
.grid-3 { grid-template-columns: repeat(3, minmax(0, 1fr)); }
.grid-4 { grid-template-columns: repeat(4, minmax(0, 1fr)); }

.card { background: #fff; border: 1px solid var(--line); border-radius: var(--radius); padding: 1.4rem 1.4rem 1.2rem; }
.card h3 { margin-bottom: .4rem; }
.card p:last-child, .card ul:last-child { margin-bottom: 0; }
.card p { color: var(--muted); }
.card ul { margin: 0; padding-left: 1.1rem; color: var(--muted); }
.card ul li { margin-bottom: .3rem; }
.icon { width: 42px; height: 42px; border-radius: 10px; background: #e7edfc; color: var(--brand); display: grid; place-items: center; margin-bottom: .9rem; }
.icon svg { width: 22px; height: 22px; }

.product { border-top: 4px solid var(--brand); }
.product .tag { display: inline-block; font-size: .78rem; font-weight: 700; letter-spacing: .06em; text-transform: uppercase; padding: .2rem .55rem; border-radius: 999px; margin-bottom: .75rem; }
.tag-free { background: #e3f5ea; color: var(--ok); }
.tag-lic { background: #e7edfc; color: var(--brand); }

.steps { counter-reset: step; list-style: none; padding: 0; margin: 0; display: grid; gap: 1rem; }
.steps > li { counter-increment: step; position: relative; padding: 1rem 1.2rem 1rem 3.6rem; background: #fff; border: 1px solid var(--line); border-radius: var(--radius); }
.steps > li::before { content: counter(step); position: absolute; left: 1rem; top: 1rem; width: 1.9rem; height: 1.9rem; border-radius: 50%; background: var(--brand); color: #fff; font-weight: 700; display: grid; place-items: center; font-size: .95rem; }
.steps > li > strong { display: block; margin-bottom: .15rem; }
.steps p { margin: 0; color: var(--muted); }

/* Editions */
.price-grid { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 1rem; }
.price { display: flex; flex-direction: column; background: #fff; border: 1px solid var(--line); border-radius: var(--radius); padding: 1.5rem 1.25rem; }
.price.featured { border: 2px solid var(--brand); box-shadow: 0 12px 30px rgba(33,76,197,.12); }
.price h3 { font-size: 1.25rem; margin-bottom: .25rem; }
.price .amount { font-size: 2rem; font-weight: 800; color: var(--ink); margin: .4rem 0 .1rem; letter-spacing: -.02em; }
.price .per { color: var(--muted); font-size: .9rem; margin-bottom: 1rem; }
.price ul { list-style: none; padding: 0; margin: 0 0 1.25rem; flex: 1; }
.price li { padding: .45rem 0; border-top: 1px solid var(--line); font-size: .97rem; }
.price li strong { font-variant-numeric: tabular-nums; }
.price .btn { width: 100%; }
.badge { align-self: flex-start; font-size: .75rem; font-weight: 700; background: var(--brand); color: #fff; padding: .15rem .55rem; border-radius: 999px; margin-bottom: .6rem; }

.table-wrap { overflow-x: auto; border: 1px solid var(--line); border-radius: var(--radius); background: #fff; }
table { width: 100%; border-collapse: collapse; font-size: .97rem; }
th, td { padding: .75rem 1rem; text-align: left; border-bottom: 1px solid var(--line); vertical-align: top; }
thead th { background: var(--soft); font-weight: 700; white-space: nowrap; }
tbody tr:last-child th, tbody tr:last-child td { border-bottom: 0; }
td.num, th.num { text-align: right; font-variant-numeric: tabular-nums; white-space: nowrap; }

.note { border-left: 4px solid var(--brand-2); background: var(--soft); padding: 1rem 1.2rem; border-radius: 0 var(--radius) var(--radius) 0; margin: 1.5rem 0; }
.note p:last-child { margin: 0; }
.note-warn { border-left-color: #c98a12; background: #fdf7ea; }

.faq details { border: 1px solid var(--line); border-radius: var(--radius); background: #fff; margin-bottom: .75rem; }
.faq summary { cursor: pointer; padding: 1rem 1.2rem; font-weight: 600; list-style-position: outside; }
.faq details > div { padding: 0 1.2rem 1rem; color: var(--muted); }
.faq details > div p:last-child { margin: 0; }

.cta { background: linear-gradient(135deg, var(--brand) 0%, #2f5fe6 100%); color: #fff; border-radius: 14px; padding: clamp(1.75rem, 5vw, 2.75rem); display: flex; align-items: center; justify-content: space-between; gap: 1.5rem; flex-wrap: wrap; }
.cta h2 { color: #fff; margin-bottom: .3rem; }
.cta p { color: #dbe4fb; margin: 0; }
.cta .btn-row { margin-top: 0; }

.dl { display: flex; flex-direction: column; }
.dl .meta { font-size: .9rem; color: var(--muted); margin: -.2rem 0 1rem; }
.dl .btn { margin-top: auto; align-self: flex-start; }

.contact-box { font-size: 1.25rem; font-weight: 600; word-break: break-word; }

/* Footer */
.site-footer { background: var(--navy); color: #aab6d3; padding: 2.75rem 0 2rem; font-size: .95rem; }
.footer-grid { display: grid; grid-template-columns: 1.4fr repeat(3, 1fr); gap: 2rem; }
.site-footer h2 { color: #fff; font-size: .85rem; text-transform: uppercase; letter-spacing: .08em; margin-bottom: .8rem; }
.site-footer ul { list-style: none; padding: 0; margin: 0; }
.site-footer li { margin-bottom: .4rem; }
.site-footer a { color: #d7def0; text-decoration: none; }
.site-footer a:hover { color: #fff; text-decoration: underline; }
.footer-brand img { height: 28px; width: auto; margin-bottom: .9rem; }
.footer-bottom { border-top: 1px solid rgba(255,255,255,.12); margin-top: 2rem; padding-top: 1.25rem; display: flex; justify-content: space-between; gap: 1rem; flex-wrap: wrap; font-size: .88rem; }

/* Responsive */
@media (max-width: 1000px) {
  .price-grid, .grid-4 { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .grid-3 { grid-template-columns: repeat(2, minmax(0, 1fr)); }
}
@media (max-width: 860px) {
  .hero-grid { grid-template-columns: 1fr; gap: 2.25rem; }
  .footer-grid { grid-template-columns: 1fr 1fr; }
}
@media (max-width: 620px) {
  body { font-size: 1rem; }
  .grid-2, .grid-3, .grid-4, .price-grid { grid-template-columns: 1fr; }
  .footer-grid { grid-template-columns: 1fr; }
  .cta { flex-direction: column; align-items: flex-start; }
  .btn-row .btn { flex: 1 1 auto; }
}
@media (prefers-reduced-motion: reduce) { html { scroll-behavior: auto; } }
@media print { .site-header, .site-footer, .nav-toggle { display: none; } .hero, .page-head { background: none; color: #000; } .hero h1, .page-head h1 { color: #000; } }
