/* Faqja e shitjes – CSS i vetëm, pa build, pa varësi të jashtme.
 *
 * Tokenët janë të njëjtët si te `web/css/tokens.css` me qëllim: sajti dhe
 * aplikacioni duhet të dukën si i njëjti produkt. Kopjohen e nuk importohen,
 * sepse sajti shërbehet veç aplikacionit – një domen tjetër, pa lidhje kodi.
 *
 * Fonti strehohet vetë, nuk merret nga Google Fonts: një kërkesë te
 * fonts.gstatic.com do i tregonte IP-në e secilit vizitor një palë të tretë.
 * Fajllat janë kopje e `web/fonts/` – aplikacioni dhe sajti duhet të kenë të
 * njëjtin font, përndryshe i njëjti produkt duket dy produkte.
 */

/* Variabël: një woff2 mbulon 400–700, prandaj `font-weight` është interval. */
@font-face {
  font-family: Montserrat;
  font-style: normal;
  font-weight: 100 900;
  font-display: swap;
  src: url("/fonts/montserrat-latin.woff2") format("woff2");
  unicode-range: U+0000-00FF, U+0131, U+0152-0153, U+02BB-02BC, U+02C6, U+02DA,
    U+02DC, U+0304, U+0308, U+0329, U+2000-206F, U+20AC, U+2122, U+2191, U+2193,
    U+2212, U+2215, U+FEFF, U+FFFD;
}
@font-face {
  font-family: Montserrat;
  font-style: normal;
  font-weight: 100 900;
  font-display: swap;
  src: url("/fonts/montserrat-latin-ext.woff2") format("woff2");
  unicode-range: U+0100-02BA, U+02BD-02C5, U+02C7-02CC, U+02CE-02D7, U+02DD-02FF,
    U+0304, U+0308, U+0329, U+1D00-1DBF, U+1E00-1E9F, U+1EF2-1EFF, U+2020,
    U+20A0-20AB, U+20AD-20C0, U+2113, U+2C60-2C7F, U+A720-A7FF;
}

:root {
  --brand-800: #0b1f5c;
  --brand-700: #16306f;
  --brand-600: #24479b;
  --brand-100: #e6edff;

  /* Gold-i i markës – krahët e logos. Kontrasti mbi navy është 9.2:1, mbi të
     bardhë vetëm 1.7:1: prandaj është ngjyrë GRAFIKE, jo ngjyrë teksti. Mos e
     vër si `color` mbi sfond të ndritshëm, e mos e vër si sfond butoni me
     tekst të bardhë – të dyja bien nën 4.5:1. */
  --gold: #f2c14e;

  --bg: #f7f7f5;
  --surface: #fffefd;
  --surface-2: #fbfaf8;
  --line: #dfe3e9;
  --line-soft: #eceef1;
  --text: #111827;
  --text-muted: #727b8b;
  --accent: #0b1f5c;
  --accent-hover: #16306f;
  --accent-on: #f8faff;
  --focus: #24479b;
  --ok-fg: #14734d;
  --ok-bg: #e8f6ef;

  --font: Montserrat, -apple-system, system-ui, "Helvetica Neue", Arial, sans-serif;
  --r-md: 9px;
  --r-lg: 12px;
  --r-pill: 999px;
  --shadow-2: 0 12px 34px rgba(11, 31, 92, .09);
  --content: 1080px;
}

@media (prefers-color-scheme: dark) {
  :root {
    --bg: #09111f;
    --surface: #0e192b;
    --surface-2: #111e32;
    --line: #22334d;
    --line-soft: #192940;
    --text: #edf1f8;
    --text-muted: #8f9bb0;
    --accent: #3159b2;
    --accent-hover: #3f69c9;
    --brand-100: #1d2740;
    --ok-fg: #64d6a4;
    --ok-bg: #10281f;
    --shadow-2: 0 12px 34px rgba(0, 0, 0, .28);
  }
}

*, *::before, *::after { box-sizing: border-box; }

html { -webkit-text-size-adjust: 100%; scroll-behavior: smooth; }

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

h1, h2, h3 { line-height: 1.2; margin: 0; letter-spacing: -0.02em; }
h1 { font-size: clamp(32px, 5.2vw, 52px); font-weight: 800; }
h2 { font-size: clamp(24px, 3.4vw, 34px); font-weight: 800; }
h3 { font-size: 19px; font-weight: 700; letter-spacing: -0.01em; }
p { margin: 0; }

a { color: var(--brand-600); text-decoration-thickness: 1px; text-underline-offset: 2px; }
a:hover { color: var(--accent-hover); }

/* Fokusi duket gjithmonë: navigimi me tastierë është kërkesë qasjeje, jo opsion. */
:focus-visible { outline: 2px solid var(--focus); outline-offset: 2px; border-radius: 4px; }

img, svg { max-width: 100%; height: auto; }

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

/* Kalimi te përmbajtja – i dukshëm vetëm kur fokusohet. */
.skip {
  position: absolute; left: -9999px; top: 0; z-index: 100;
  background: var(--surface); color: var(--text);
  padding: 10px 16px; border: 1px solid var(--line); border-radius: 0 0 var(--r-md) 0;
}
.skip:focus { left: 0; }

/* --- Koka ------------------------------------------------------------- */

.site-head {
  position: sticky; top: 0; z-index: 20;
  background: color-mix(in srgb, var(--bg) 88%, transparent);
  backdrop-filter: saturate(1.4) blur(10px);
  border-bottom: 1px solid var(--line);
}
.site-head .wrap {
  display: grid; grid-template-columns: 1fr auto 1fr;
  align-items: center; gap: 18px; min-height: 64px;
}
/* Pa `justify-self`, `<a>`-ja shtrihet në tërë kolonën `1fr` dhe klikohet një
   shirit i tërë bosh përkrah markës. */
.brand { justify-self: start; }
.head-cta { justify-self: end; }
.brand {
  display: flex; align-items: center; gap: 9px;
  font-weight: 800; font-size: 17px; color: var(--text); text-decoration: none;
  letter-spacing: -0.02em;
}
/* Marka vjen si figurë e jo si shkronja "K": një `font-family` brenda SVG-së
   varet nga fontet e vizitorit. Ngarkohet me `background-image` e nuk futet
   inline te HTML-i, sepse koka e fundi përsëriten në 9 faqe – 18 kopje të
   njëjta do shkonin sërish jashtë sinkronit. */
.brand-mark {
  width: 28px; height: 28px; flex: none;
  background: url("/logo.svg") center / contain no-repeat;
}
/* Pllaka navy zhduket mbi sfond të errët – varianti ka pllakë më të ndritur. */
@media (prefers-color-scheme: dark) {
  .brand-mark { background-image: url("/logo-dark.svg"); }
}
.site-nav { display: flex; align-items: center; justify-content: center; gap: 6px; flex-wrap: wrap; }
.site-nav a {
  color: var(--text-muted); text-decoration: none; font-size: 15px; font-weight: 600;
  padding: 8px 10px; border-radius: var(--r-md);
}
.site-nav a:hover { color: var(--text); background: var(--line-soft); }
.site-nav a[aria-current="page"] { color: var(--text); }

.lang { display: flex; gap: 2px; align-items: center; font-size: 14px; }
.lang a { padding: 6px 8px; font-weight: 700; }
.lang [aria-current="true"] { color: var(--text); background: var(--line-soft); }

/* --- Butonat ---------------------------------------------------------- */

.btn {
  display: inline-flex; align-items: center; justify-content: center; gap: 8px;
  min-height: 48px; padding: 0 22px;
  border: 1px solid var(--accent); border-radius: var(--r-md);
  background: var(--accent); color: var(--accent-on);
  font: inherit; font-size: 16px; font-weight: 700; text-decoration: none;
  cursor: pointer; transition: background .15s ease;
}
.btn:hover { background: var(--accent-hover); border-color: var(--accent-hover); color: var(--accent-on); }
.btn-quiet {
  background: transparent; color: var(--text); border-color: var(--line);
}
.btn-quiet:hover { background: var(--line-soft); color: var(--text); border-color: var(--line); }
.btn-sm { min-height: 40px; padding: 0 16px; font-size: 15px; }

/* --- Seksionet -------------------------------------------------------- */

section { padding: clamp(48px, 7vw, 88px) 0; }
section + section { border-top: 1px solid var(--line-soft); }

/* `inline-flex` e nuk `flex`: te 404-shi eyebrow-i qëndron në bllok me tekst
   të centruar, dhe `flex` do e shtynte majtas. */
.eyebrow {
  display: inline-flex; align-items: center; gap: 9px;
  font-size: 12px; font-weight: 800; letter-spacing: .09em; text-transform: uppercase;
  color: var(--text-muted); margin-bottom: 10px;
}
.eyebrow::before {
  content: ""; flex: none; width: 18px; height: 3px; border-radius: 2px;
  background: var(--gold);
}
.lede { font-size: clamp(17px, 2vw, 21px); color: var(--text-muted); max-width: 60ch; }
.section-head { max-width: 62ch; margin-bottom: clamp(28px, 4vw, 44px); }
.section-head p { margin-top: 12px; }

/* Hero */
.hero { padding-top: clamp(40px, 6vw, 76px); padding-bottom: clamp(40px, 6vw, 72px); }
.hero h1 { max-width: 22ch; }
.hero .lede { margin-top: 20px; }
.hero-actions { display: flex; flex-wrap: wrap; gap: 12px; margin-top: 30px; }
.hero-note { margin-top: 16px; font-size: 15px; color: var(--text-muted); }

.pricetag {
  display: inline-flex; align-items: baseline; gap: 7px;
  background: var(--accent); color: var(--accent-on);
  border-radius: var(--r-pill); padding: 7px 16px;
  font-size: 15px; font-weight: 700; margin-bottom: 22px;
}
.pricetag b { font-size: 18px; }

/* Rrjeta e kartave */
.grid { display: grid; gap: 16px; }
.grid-2 { grid-template-columns: repeat(auto-fit, minmax(280px, 1fr)); }
.grid-3 { grid-template-columns: repeat(auto-fit, minmax(250px, 1fr)); }

.card {
  background: var(--surface); border: 1px solid var(--line);
  border-radius: var(--r-lg); padding: 24px;
}
.card h3 { margin-bottom: 8px; }
.card p { color: var(--text-muted); font-size: 16px; }
.card-icon {
  width: 38px; height: 38px; border-radius: 10px; margin-bottom: 14px;
  background: var(--brand-100); color: var(--brand-600);
  display: grid; place-items: center;
}
.card-icon svg { width: 21px; height: 21px; }

/* Lista me shenja */
.checks { list-style: none; margin: 0; padding: 0; display: grid; gap: 11px; }
.checks li { display: flex; gap: 11px; align-items: flex-start; font-size: 16px; }
.checks svg { flex: none; width: 20px; height: 20px; margin-top: 2px; color: var(--ok-fg); }

/* Hapat */
.steps { list-style: none; counter-reset: step; margin: 0; padding: 0; display: grid; gap: 20px; }
.steps li { counter-increment: step; display: flex; gap: 16px; }
.steps li::before {
  content: counter(step);
  flex: none; width: 34px; height: 34px; border-radius: var(--r-pill);
  background: var(--accent); color: var(--accent-on);
  display: grid; place-items: center; font-weight: 800; font-size: 15px;
}
.steps h3 { margin-bottom: 4px; }
.steps p { color: var(--text-muted); font-size: 16px; }

/* Çmimet */
.plans { display: grid; gap: 18px; grid-template-columns: repeat(auto-fit, minmax(290px, 1fr)); }
.plan {
  background: var(--surface); border: 1px solid var(--line);
  border-radius: var(--r-lg); padding: 28px; display: flex; flex-direction: column;
}
/* Korniza 2px do i zhvendoste përmbajtjen 1px poshtë ndaj kartave 1px;
   padding-u zbritet me 1px që kutia e përmbajtjes të bjerë saktësisht njësoj. */
.plan-featured {
  border-color: var(--accent); border-width: 2px; padding: 27px;
  box-shadow: var(--shadow-2);
}
.plan-badge {
  align-self: flex-start; background: var(--gold); color: #0b1f5c;
  border-radius: var(--r-pill); padding: 3px 11px;
  font-size: 12px; font-weight: 800; letter-spacing: .04em;
  /* Lartësia caktohet shprehimisht (19 + 3 + 3 = 25px), që hapësira e
     rezervuar më poshtë të mos varet nga fonti i sistemit. */
  line-height: 19px; margin-bottom: 14px;
}

/* Planet pa shenjë rezervojnë lartësinë e saj, që etiketat e kartave përkrah
   njëra-tjetrës të rreshtohen. Pa këtë, dy kartat ndryshonin 40px. */
.plan:not(.plan-featured)::before {
  content: ""; display: block; height: 25px; margin-bottom: 14px;
}
@media (max-width: 640px) {
  /* Njëra nën tjetrën nuk ka çka të rreshtohet – hapësira do ishte zbrazëti. */
  .plan:not(.plan-featured)::before { display: none; }
}
.plan-name { font-size: 15px; font-weight: 800; color: var(--text-muted);
  letter-spacing: .06em; text-transform: uppercase; }
.plan-price { display: flex; align-items: baseline; gap: 6px; margin: 10px 0 4px; }
.plan-price strong { font-size: 46px; font-weight: 800; letter-spacing: -0.03em; }
.plan-price span { color: var(--text-muted); font-size: 16px; }
.plan-for { color: var(--text-muted); font-size: 16px; margin-bottom: 20px; }
.plan .checks { margin-bottom: 24px; }
.plan .btn { margin-top: auto; width: 100%; }

/* Tabela */
.table-scroll { overflow-x: auto; border: 1px solid var(--line); border-radius: var(--r-lg); }
table { border-collapse: collapse; width: 100%; min-width: 480px; background: var(--surface); }
th, td { text-align: start; padding: 13px 16px; border-bottom: 1px solid var(--line-soft); font-size: 16px; }
th { font-size: 13px; font-weight: 800; letter-spacing: .05em; text-transform: uppercase;
  color: var(--text-muted); background: var(--surface-2); }
tr:last-child td { border-bottom: 0; }

/* Pyetjet */
details {
  background: var(--surface); border: 1px solid var(--line);
  border-radius: var(--r-lg); padding: 0 20px;
}
details + details { margin-top: 10px; }
summary {
  cursor: pointer; padding: 18px 0; font-weight: 700; font-size: 17px;
  list-style: none; display: flex; justify-content: space-between; gap: 14px;
}
summary::-webkit-details-marker { display: none; }
summary::after { content: "+"; color: var(--text-muted); font-weight: 800; font-size: 21px; line-height: 1; }
details[open] summary::after { content: "−"; }
details > p { padding-bottom: 20px; color: var(--text-muted); max-width: 70ch; }
details > p + p { padding-top: 0; margin-top: -8px; }

/* Thirrja e fundit */
.cta { background: var(--surface); border: 1px solid var(--line); border-radius: var(--r-lg);
  border-top: 3px solid var(--gold);
  padding: clamp(28px, 5vw, 52px); text-align: center; }
.cta .lede { margin: 14px auto 0; }
.cta .hero-actions { justify-content: center; }

/* Përmbajtja e gjatë – privatësia, kushtet */
.prose { max-width: 72ch; }
.prose h2 { font-size: 24px; margin-top: 40px; }
.prose h3 { margin-top: 26px; }
.prose p, .prose li { color: var(--text); font-size: 17px; }
.prose p + p, .prose h2 + p, .prose h3 + p, .prose ul { margin-top: 14px; }
.prose ul { padding-inline-start: 22px; display: grid; gap: 8px; }
.prose .updated { color: var(--text-muted); font-size: 15px; }

/* --- Forma e kontaktit --------------------------------------------------
 *
 * Pa JavaScript: validimi është i shfletuesit (`required`, `type`,
 * `maxlength`), dhe gabimet i shfaq shfletuesi në gjuhën e vet. Kjo mban
 * CSP-në `script-src`-pa – asnjë skript në tërë sajtin.
 */

.form {
  display: grid; gap: 18px;
  background: var(--surface); border: 1px solid var(--line);
  border-radius: var(--r-lg); padding: clamp(20px, 3vw, 30px);
  max-width: 620px;
}
.field { display: grid; gap: 7px; }
.field > label { font-size: 14px; font-weight: 700; }
.field .hint { font-size: 14px; color: var(--text-muted); }

/* `font: inherit` – pa të, shfletuesi vë fontin e vet te input-at dhe fusha
   del me font tjetër nga faqja. */
.field input, .field select, .field textarea {
  font: inherit; font-size: 16px; color: var(--text);
  background: var(--surface-2);
  border: 1px solid var(--line); border-radius: var(--r-md);
  padding: 11px 13px; width: 100%;
}
.field textarea { min-height: 140px; resize: vertical; }
.field input:focus-visible, .field select:focus-visible, .field textarea:focus-visible {
  border-color: var(--focus); background: var(--surface);
}

/* Fusha e kurthit: e mbushur vetëm nga robotët. `display:none` do e kalonte
   shfletuesi i ekranit dhe do e mbushte autofill-i – prandaj hiqet nga rrjedha
   pa u fshehur nga stili që i shpëton robotëve. */
.trap { position: absolute; left: -9999px; width: 1px; height: 1px; overflow: hidden; }

.form-note { font-size: 14px; color: var(--text-muted); }
.form .btn { justify-self: start; }

/* Rreshti me kanalet tjera – email, telefon – përkrah formës. */
.contact-grid { display: grid; gap: 28px; grid-template-columns: minmax(0, 1.4fr) minmax(0, 1fr); align-items: start; }
@media (max-width: 800px) { .contact-grid { grid-template-columns: 1fr; } }

/* --- Fundi ------------------------------------------------------------ */

.site-foot {
  border-top: 1px solid var(--line); padding: 40px 0 56px;
  color: var(--text-muted); font-size: 15px;
}
.foot-grid { display: grid; gap: 28px; grid-template-columns: repeat(auto-fit, minmax(200px, 1fr)); }
.foot-grid h3 { font-size: 13px; letter-spacing: .06em; text-transform: uppercase;
  color: var(--text-muted); margin-bottom: 12px; }
.foot-grid ul { list-style: none; margin: 0; padding: 0; display: grid; gap: 9px; }
.foot-grid a { color: var(--text); text-decoration: none; }
.foot-grid a:hover { text-decoration: underline; }
.foot-note { margin-top: 34px; padding-top: 22px; border-top: 1px solid var(--line-soft); }

/* --- Ndihmëse -----------------------------------------------------------
 *
 * Ekzistojnë që HTML-i të mos mbajë atribute `style`. Politika e sigurisë
 * (CSP) te `Caddyfile.example` është `style-src 'self'` pa `unsafe-inline` –
 * pra një `style="..."` i vetëm në HTML bllokohet nga shfletuesi dhe rreshti
 * del i pastiluar. Mos shto `style=` te faqet; shto klasë këtu.
 */

.pt-0 { padding-top: 0; }
.pb-tight { padding-bottom: 24px; }
.mt-2 { margin-top: 10px; }
.mt-3 { margin-top: 14px; }
.mt-4 { margin-top: 18px; }
.mt-5 { margin-top: 22px; }
.mt-6 { margin-top: 24px; }

/* Rresht i qetë shpjegues nën një bllok – çmimet, tabelat. */
.note { color: var(--text-muted); font-size: 15px; }

/* Kuti kujtese për tekst që duhet plotësuar para botimit. */
.callout {
  background: var(--ok-bg); color: var(--ok-fg);
  border-radius: var(--r-md); padding: 14px 16px; font-size: 15px;
}

/* Kartat e çmimeve në një kolonë, kur qëndrojnë përkrah tekstit. */
.plans-stack { grid-template-columns: 1fr; }

/* Marka te fundi i faqes ka nevojë për hapësirë poshtë, te koka nuk ka. */
.brand-foot { margin-bottom: 10px; }

/* --- Telefoni ------------------------------------------------------------
 *
 * Shiriti i kokës del në dy-tri rreshta kur emrat shqip nuk hyjnë në një, dhe
 * i ngjitur (`sticky`) hante 17 % të ekranit përgjithmonë. Në telefon nuk rri
 * i ngjitur; në desktop, ku është një rresht i vetëm, rri.
 */
@media (max-width: 700px) {
  .site-head { position: static; }
  .site-head .wrap {
    grid-template-columns: 1fr auto;
    min-height: 0;
    padding-top: 10px; padding-bottom: 12px;
    gap: 4px 10px;
  }
  .brand { grid-area: 1 / 1; font-size: 16px; }
  .head-cta { grid-area: 1 / 2; }
  .site-nav { grid-area: 2 / 1 / 3 / 3; justify-content: flex-start; gap: 0; }
  .brand-mark { width: 26px; height: 26px; }
  .site-nav a { font-size: 14px; padding: 6px 8px; }
  .head-cta { min-height: 38px; padding: 0 14px; font-size: 14px; }
  body { font-size: 16px; }
  section { padding: 40px 0; }
}

@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  * { transition: none !important; animation: none !important; }
}
