/* =========================================================
   Jafu IT Solutions — public site styles
   Palette from the logo: deep navy, royal blue, sky swoosh.
   ========================================================= */
:root {
  --ink: #071433;
  --ink-2: #24305a;
  --muted: #5b6785;
  --blue: #0b5cff;
  --blue-d: #0842c4;
  --sky: #22b5ff;
  --paper: #f5f8ff;
  --white: #ffffff;
  --line: #dce4f5;
  --green: #12a150;
  --green-bg: #e3f6ea;
  --blue-bg: #e7efff;
  --amber-bg: #fff3d6;
  --amber: #8a5a00;
  --danger: #c62f35;

  --font-body: 'Hind Siliguri', system-ui, -apple-system, 'Segoe UI', sans-serif;
  --font-display: 'Baloo Da 2', 'Hind Siliguri', system-ui, sans-serif;

  --r-xl: 28px;
  --r-lg: 22px;
  --r-md: 14px;
  --r-sm: 10px;
  --wrap: 1200px;
  --gutter: 20px;
}

*, *::before, *::after { box-sizing: border-box; }
html { scroll-behavior: smooth; -webkit-text-size-adjust: 100%; }
body {
  margin: 0;
  font-family: var(--font-body);
  font-size: 17px;
  line-height: 1.7;
  color: var(--ink);
  background: var(--paper);
  -webkit-font-smoothing: antialiased;
  overflow-x: hidden;
}
img { max-width: 100%; height: auto; display: block; }
a { color: var(--blue); text-underline-offset: 3px; }
a:hover { color: var(--blue-d); }
:focus-visible { outline: 3px solid var(--sky); outline-offset: 3px; border-radius: 6px; }
h1, h2, h3, h4 { font-family: var(--font-display); line-height: 1.2; margin: 0 0 .5em; color: inherit; letter-spacing: -0.005em; }
p { margin: 0 0 1em; }
.sr { position: absolute !important; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; }
.skip { position: absolute; left: 12px; top: -60px; background: var(--ink); color: #fff; padding: 10px 16px; border-radius: 10px; z-index: 100; }
.skip:focus { top: 12px; color: #fff; }

.wrap { width: 100%; max-width: var(--wrap); margin: 0 auto; padding: 0 var(--gutter); }
@media (max-width: 600px) { :root { --gutter: 16px; } body { font-size: 16px; } }

/* ---------- Buttons ---------- */
.btn {
  display: inline-flex; align-items: center; justify-content: center; gap: 10px;
  padding: 12px 22px; border-radius: 12px; border: 1px solid transparent;
  font: 600 1rem/1.25 var(--font-body); text-decoration: none; cursor: pointer;
  transition: background-color .18s, border-color .18s, color .18s, transform .18s;
  white-space: nowrap;
}
.btn:active { transform: translateY(1px); }
.btn i { font-size: .9em; }
.btn-primary { background: var(--blue); color: #fff; }
.btn-primary:hover { background: var(--blue-d); color: #fff; }
.btn-light { background: #fff; color: var(--ink); }
.btn-light:hover { background: var(--blue-bg); color: var(--ink); }
.btn-ghost { background: transparent; color: #fff; border-color: rgba(255, 255, 255, .35); }
.btn-ghost:hover { border-color: #fff; color: #fff; background: rgba(255, 255, 255, .06); }
.btn-quiet { background: transparent; color: var(--ink); border-color: var(--line); }
.btn-quiet:hover { border-color: var(--blue); color: var(--blue); }
.btn-wa { background: #25d366; color: #06301a; }
.btn-wa:hover { background: #1fbb59; color: #06301a; }
.btn-sm { padding: 9px 16px; font-size: .95rem; border-radius: 10px; }
.btn-block { width: 100%; }

/* ---------- Header ---------- */
.site-header {
  position: sticky; top: 0; z-index: 50;
  background: rgba(255, 255, 255, .96);
  border-bottom: 1px solid var(--line);
  backdrop-filter: saturate(1.4) blur(8px);
}
.header-in { display: flex; align-items: center; gap: 24px; min-height: 76px; }
.brand { display: flex; align-items: center; flex: none; }
.brand img { height: 54px; width: auto; }
.site-nav { display: flex; align-items: center; margin-left: auto; }
.site-nav ul { display: flex; gap: 4px; list-style: none; margin: 0; padding: 0; }
.site-nav a.nav-link {
  display: block; padding: 8px 12px; border-radius: 10px;
  color: var(--ink-2); text-decoration: none; font-weight: 500;
}
.site-nav a.nav-link:hover { color: var(--blue); background: var(--blue-bg); }
.site-nav a.nav-link.is-active { color: var(--blue); font-weight: 600; }
.nav-toggle { display: none; margin-left: auto; width: 46px; height: 46px; border: 1px solid var(--line); background: #fff; border-radius: 12px; cursor: pointer; padding: 12px 11px; flex-direction: column; justify-content: space-between; }
.nav-toggle span:not(.sr) { display: block; height: 2px; background: var(--ink); border-radius: 2px; transition: transform .2s, opacity .2s; }
.nav-toggle[aria-expanded="true"] span:nth-child(1) { transform: translateY(9px) rotate(45deg); }
.nav-toggle[aria-expanded="true"] span:nth-child(2) { opacity: 0; }
.nav-toggle[aria-expanded="true"] span:nth-child(3) { transform: translateY(-9px) rotate(-45deg); }

.site-nav { gap: 18px; }
.nav-utils { display: flex; align-items: center; gap: 6px; }
.nav-util {
  display: inline-flex; align-items: center; gap: 7px; padding: 8px 11px; border-radius: 10px;
  color: var(--ink-2); text-decoration: none; font-weight: 500; font-size: .95rem; white-space: nowrap;
}
.nav-util:hover { color: var(--blue); background: var(--blue-bg); }
.nav-util i { font-size: .9em; color: var(--muted); }
.lang-switch { border: 1px solid var(--line); }
.nav-utils .btn { margin-left: 6px; }

@media (max-width: 1240px) {
  .site-nav a.nav-link { padding: 8px 8px; }
  .nav-util span { position: absolute; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); }
}
@media (max-width: 1120px) {
  .nav-toggle { display: flex; }
  .brand img { height: 46px; }
  .header-in { min-height: 66px; }
  .site-nav {
    display: none; position: absolute; left: 0; right: 0; top: 100%;
    background: #fff; border-bottom: 1px solid var(--line);
    flex-direction: column; align-items: stretch; gap: 12px;
    padding: 12px var(--gutter) 20px; box-shadow: 0 24px 40px -24px rgba(7, 20, 51, .35);
    max-height: calc(100vh - 66px); overflow-y: auto;
  }
  .site-nav.is-open { display: flex; }
  .site-nav ul { flex-direction: column; gap: 0; }
  .site-nav a.nav-link { padding: 12px 8px; border-bottom: 1px solid var(--line); border-radius: 0; }
  .nav-utils { flex-wrap: wrap; gap: 8px; }
  .nav-util span { position: static; width: auto; height: auto; overflow: visible; clip: auto; }
  .nav-util { border: 1px solid var(--line); }
  .nav-utils .btn { width: 100%; margin-left: 0; }
}

/* ---------- Hero: the app launcher ---------- */
.hero {
  position: relative; overflow: hidden; color: #fff;
  background:
    radial-gradient(55% 70% at 88% 18%, rgba(34, 181, 255, .26), transparent 62%),
    radial-gradient(48% 60% at 0% 100%, rgba(11, 92, 255, .38), transparent 64%),
    var(--ink);
  padding: clamp(48px, 7vw, 92px) 0 clamp(56px, 8vw, 104px);
}
.hero-swoosh { position: absolute; inset: 0; width: 100%; height: 100%; pointer-events: none; }
.hero-swoosh path { fill: none; stroke: url(#swooshGrad); stroke-width: 3; stroke-linecap: round; stroke-dasharray: 1800; stroke-dashoffset: 0; }
.hero-grid { position: relative; display: grid; grid-template-columns: 1fr 1fr; gap: clamp(32px, 5vw, 64px); align-items: center; }
.hero h1 {
  font-size: clamp(2.35rem, 5.2vw, 4rem); font-weight: 800; line-height: 1.12;
  margin-bottom: 20px; text-wrap: balance;
}
.hero-sub { font-size: clamp(1.05rem, 1.6vw, 1.22rem); color: rgba(255, 255, 255, .78); max-width: 34em; margin-bottom: 30px; }
.hero-actions { display: flex; flex-wrap: wrap; gap: 12px; }

.launcher {
  position: relative;
  background: linear-gradient(180deg, #16295e, #0d1d4a);
  border: 1px solid rgba(255, 255, 255, .14);
  border-radius: var(--r-xl); padding: 16px;
  box-shadow: 0 40px 80px -40px rgba(0, 0, 0, .7);
}
.launcher-bar { display: flex; align-items: baseline; justify-content: space-between; gap: 12px; padding: 2px 8px 14px; }
.launcher-bar strong { font-family: var(--font-display); font-size: 1.15rem; font-weight: 700; }
.launcher-bar span { color: rgba(255, 255, 255, .62); font-size: .9rem; }
.launcher-grid { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 6px; }
.app {
  display: flex; flex-direction: column; gap: 8px; padding: 8px;
  border-radius: 18px; color: #fff; text-decoration: none;
  transition: background-color .18s;
}
.app:hover, .app:focus-visible { background: rgba(255, 255, 255, .08); color: #fff; }
.app-logo {
  position: relative; display: block; aspect-ratio: 2.5 / 1; background: var(--tile, #fff); border-radius: 14px;
  overflow: hidden; box-shadow: inset 0 0 0 1px rgba(255, 255, 255, .1);
}
/* logos of any shape sit fully inside the tile */
.app-logo img, .prod-logo img {
  position: absolute; inset: 8px 12px; width: calc(100% - 24px); height: calc(100% - 16px);
  max-width: none; object-fit: contain;
}
.app-meta { display: flex; align-items: center; justify-content: space-between; gap: 8px; padding: 0 4px; font-size: .92rem; font-weight: 500; }
.app-name { overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.app-tag { flex: none; font-size: .74rem; font-weight: 600; padding: 1px 9px; border-radius: 99px; background: rgba(18, 161, 80, .2); color: #8ff0b6; }
.app-tag.is-basic { background: rgba(34, 181, 255, .17); color: #a8e0ff; }
.app-tag.is-paid { background: rgba(255, 196, 0, .16); color: #ffd978; }

@media (prefers-reduced-motion: no-preference) {
  .hero-swoosh path { stroke-dashoffset: 1800; animation: swoosh 1.4s .15s cubic-bezier(.6, 0, .2, 1) forwards; }
  .launcher .app { opacity: 0; transform: translateY(8px); animation: appIn .45s cubic-bezier(.2, .7, .2, 1) forwards; animation-delay: calc(.35s + var(--i, 0) * 70ms); }
}
@keyframes swoosh { to { stroke-dashoffset: 0; } }
@keyframes appIn { to { opacity: 1; transform: none; } }

@media (max-width: 900px) {
  .hero-grid { grid-template-columns: 1fr; }
  .hero h1 { max-width: 14em; }
}
@media (max-width: 420px) {
  .launcher { padding: 10px; border-radius: 22px; }
  .app { padding: 6px; }
  .app-meta { font-size: .84rem; flex-direction: column; align-items: flex-start; gap: 2px; }
}

/* ---------- Facts strip ---------- */
.facts { background: #fff; border-bottom: 1px solid var(--line); }
.facts-list { display: grid; grid-template-columns: repeat(4, 1fr); list-style: none; margin: 0 auto; padding: 0 var(--gutter); }
.fact { padding: 22px 24px; border-left: 1px solid var(--line); }
.fact:first-child { border-left: 0; padding-left: 0; }
.fact b { display: block; font-family: var(--font-display); font-size: 1.8rem; font-weight: 700; line-height: 1.15; color: var(--blue); }
.fact span { color: var(--muted); font-size: .95rem; }
@media (max-width: 760px) {
  .facts-list { grid-template-columns: 1fr 1fr; }
  .fact { padding: 16px 0 16px 16px; }
  .fact:nth-child(odd) { border-left: 0; padding-left: 0; }
  .fact:nth-child(n+3) { border-top: 1px solid var(--line); }
}

/* ---------- Sections ---------- */
.section { padding: clamp(56px, 8vw, 96px) 0; }
.section-white { background: #fff; }
.sec-head { max-width: 700px; margin-bottom: 36px; }
.sec-head h2, .page-hero h1 { font-size: clamp(1.85rem, 3.4vw, 2.7rem); font-weight: 700; }
.sec-head p { color: var(--muted); font-size: 1.08rem; margin: 0; }
.sec-head-row { display: flex; align-items: flex-end; justify-content: space-between; gap: 24px; flex-wrap: wrap; margin-bottom: 36px; }
.sec-head-row .sec-head { margin-bottom: 0; }

/* Filter chips */
.chips { display: flex; gap: 8px; flex-wrap: wrap; }
.chip {
  border: 1px solid var(--line); background: #fff; color: var(--ink-2);
  padding: 8px 16px; border-radius: 99px; font: 500 .95rem/1.2 var(--font-body); cursor: pointer;
}
.chip:hover { border-color: var(--blue); color: var(--blue); }
.chip[aria-pressed="true"] { background: var(--ink); border-color: var(--ink); color: #fff; }

/* ---------- Software cards ---------- */
.sw-grid { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 20px; }
.sw-card {
  display: grid; grid-template-columns: 210px minmax(0, 1fr);
  background: #fff; border: 1px solid var(--line); border-radius: var(--r-lg); overflow: hidden;
  transition: border-color .18s;
}
.sw-card:hover { border-color: #a9c1f5; }
.sw-card[hidden] { display: none; }
.sw-logo { background: var(--tile, #fff); display: grid; place-items: center; padding: 22px; border-right: 1px solid var(--line); }
.sw-logo img { max-height: 150px; width: auto; object-fit: contain; }
.sw-body { padding: 22px 24px 24px; display: flex; flex-direction: column; }
.sw-head { display: flex; align-items: flex-start; justify-content: space-between; gap: 12px; }
.sw-head h3 { font-size: 1.35rem; font-weight: 700; margin: 0; }
.sw-head h3 a { color: inherit; text-decoration: none; }
.sw-head h3 a:hover { color: var(--blue); }
.sw-host { display: block; color: var(--muted); font-size: .88rem; margin-bottom: 8px; }
.sw-tagline { font-weight: 600; color: var(--ink-2); margin-bottom: 6px; }
.sw-desc { color: var(--muted); font-size: .97rem; margin-bottom: 12px; }
.ticks { list-style: none; padding: 0; margin: 0 0 18px; display: grid; gap: 4px; }
.ticks li { display: flex; gap: 10px; align-items: baseline; font-size: .95rem; }
.ticks i { color: var(--green); font-size: .85rem; }
.sw-actions { display: flex; gap: 10px; flex-wrap: wrap; margin-top: auto; }

.badge { flex: none; display: inline-block; font-size: .8rem; font-weight: 600; padding: 3px 11px; border-radius: 99px; white-space: nowrap; }
.badge.is-free { background: var(--green-bg); color: #0b7a3b; }
.badge.is-basic { background: var(--blue-bg); color: var(--blue-d); }
.badge.is-paid { background: var(--amber-bg); color: var(--amber); }

@media (max-width: 1040px) { .sw-card { grid-template-columns: 170px minmax(0, 1fr); } }
@media (max-width: 900px) { .sw-grid { grid-template-columns: 1fr; } }
@media (max-width: 560px) {
  .sw-card { grid-template-columns: 1fr; }
  .sw-logo { position: relative; aspect-ratio: 2.6 / 1; border-right: 0; border-bottom: 1px solid var(--line); padding: 0; }
  .sw-logo img { position: absolute; inset: 14px 18px; width: calc(100% - 36px); height: calc(100% - 28px); max-height: none; }
  .sw-body { padding: 18px; }
}

/* ---------- Custom software band ---------- */
.custom { background: var(--ink); color: #fff; position: relative; overflow: hidden; }
.custom::before {
  content: ""; position: absolute; inset: auto -10% -40% auto; width: 60%; height: 90%;
  background: radial-gradient(closest-side, rgba(11, 92, 255, .35), transparent); pointer-events: none;
}
.custom-grid { position: relative; display: grid; grid-template-columns: 1fr 1.1fr; gap: clamp(32px, 6vw, 80px); align-items: start; }
.custom h2 { font-size: clamp(1.85rem, 3.4vw, 2.7rem); font-weight: 700; }
.custom-lead { color: rgba(255, 255, 255, .78); font-size: 1.1rem; max-width: 30em; margin-bottom: 28px; }
.custom-actions { display: flex; gap: 12px; flex-wrap: wrap; }
.steps { list-style: none; margin: 0; padding: 0; counter-reset: step; }
.steps li { display: grid; grid-template-columns: 52px 1fr; gap: 18px; padding: 20px 0; border-top: 1px solid rgba(255, 255, 255, .14); }
.steps li:last-child { border-bottom: 1px solid rgba(255, 255, 255, .14); }
.step-n {
  width: 46px; height: 46px; border-radius: 50%; display: grid; place-items: center;
  border: 1px solid rgba(255, 255, 255, .3); font-family: var(--font-display); font-weight: 700; font-size: 1.5rem; line-height: 1; color: var(--sky);
}
.steps h3 { font-size: 1.2rem; font-weight: 700; margin: 4px 0 4px; }
.steps p { color: rgba(255, 255, 255, .72); margin: 0; }
.steps.on-light li { border-color: var(--line); }
.steps.on-light .step-n { border-color: var(--line); color: var(--blue); }
.steps.on-light p { color: var(--muted); }
@media (max-width: 860px) { .custom-grid { grid-template-columns: 1fr; } }

/* ---------- Services (ruled grid, not cards) ---------- */
.svc-grid { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); border-top: 1px solid var(--line); border-left: 1px solid var(--line); }
.svc { padding: 28px 28px 30px; border-right: 1px solid var(--line); border-bottom: 1px solid var(--line); background: #fff; }
.svc-icon { width: 48px; height: 48px; border-radius: 14px; display: grid; place-items: center; background: var(--blue-bg); color: var(--blue); font-size: 1.25rem; margin-bottom: 16px; }
.svc h3 { font-size: 1.22rem; font-weight: 700; margin-bottom: 6px; }
.svc p { color: var(--muted); margin: 0; font-size: .98rem; }
.svc .prose { margin-top: 12px; font-size: .98rem; }
@media (max-width: 900px) { .svc-grid { grid-template-columns: 1fr 1fr; } }
@media (max-width: 580px) { .svc-grid { grid-template-columns: 1fr; } .svc { padding: 22px 18px; } }

/* ---------- Why us ---------- */
.why-grid { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 36px 40px; }
.why { display: grid; grid-template-columns: 44px 1fr; gap: 16px; }
.why i { font-size: 1.35rem; color: var(--blue); margin-top: 6px; }
.why h3 { font-size: 1.15rem; font-weight: 700; margin-bottom: 4px; }
.why p { margin: 0; color: var(--muted); font-size: .97rem; }
@media (max-width: 900px) { .why-grid { grid-template-columns: 1fr 1fr; } }
@media (max-width: 580px) { .why-grid { grid-template-columns: 1fr; gap: 24px; } }

/* ---------- Testimonials ---------- */
.quotes { display: grid; grid-template-columns: repeat(auto-fit, minmax(280px, 1fr)); gap: 20px; }
.quote { background: #fff; border: 1px solid var(--line); border-radius: var(--r-lg); padding: 26px; margin: 0; display: flex; flex-direction: column; gap: 16px; }
.quote blockquote { margin: 0; font-size: 1.04rem; }
.quote .stars { color: #f4b400; font-size: .9rem; letter-spacing: 2px; }
.quote figcaption { display: flex; align-items: center; gap: 12px; margin-top: auto; }
.quote figcaption img, .quote .avatar { width: 46px; height: 46px; border-radius: 50%; object-fit: cover; }
.quote .avatar { display: grid; place-items: center; background: var(--blue-bg); color: var(--blue); font-weight: 700; font-family: var(--font-display); }
.quote figcaption b { display: block; line-height: 1.3; }
.quote figcaption span { color: var(--muted); font-size: .9rem; }

/* ---------- FAQ ---------- */
.faq-grid { display: grid; grid-template-columns: 1fr 1.7fr; gap: clamp(28px, 5vw, 64px); align-items: start; }
.faq-list { border-top: 1px solid var(--line); }
.faq-list details { border-bottom: 1px solid var(--line); }
.faq-list summary {
  list-style: none; cursor: pointer; padding: 18px 44px 18px 0; position: relative;
  font-weight: 600; font-size: 1.07rem;
}
.faq-list summary::-webkit-details-marker { display: none; }
.faq-list summary::after {
  content: "+"; position: absolute; right: 4px; top: 50%; transform: translateY(-50%);
  width: 30px; height: 30px; border-radius: 50%; border: 1px solid var(--line);
  display: grid; place-items: center; font-size: 1.2rem; color: var(--blue); line-height: 1;
}
.faq-list details[open] summary::after { content: "−"; }
.faq-list .faq-a { padding: 0 44px 20px 0; color: var(--muted); }
@media (max-width: 860px) { .faq-grid { grid-template-columns: 1fr; } }

/* ---------- Blog ---------- */
.posts { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 24px; }
.post-card { display: flex; flex-direction: column; background: #fff; border: 1px solid var(--line); border-radius: var(--r-lg); overflow: hidden; }
.post-thumb { aspect-ratio: 16 / 9; background: var(--ink); overflow: hidden; display: block; }
.post-thumb img { width: 100%; height: 100%; object-fit: cover; }
.post-thumb.no-img {
  display: grid; place-items: center;
  background: radial-gradient(70% 90% at 80% 10%, rgba(34, 181, 255, .35), transparent 60%), var(--ink);
}
.post-thumb.no-img img { width: 72px; height: 72px; object-fit: contain; opacity: .95; border-radius: 18px; }
.post-body { padding: 20px 22px 24px; display: flex; flex-direction: column; flex: 1; }
.post-meta { color: var(--muted); font-size: .88rem; margin-bottom: 6px; }
.post-body h3 { font-size: 1.2rem; font-weight: 700; margin-bottom: 8px; }
.post-body h3 a { color: inherit; text-decoration: none; }
.post-body h3 a:hover { color: var(--blue); }
.post-body p { color: var(--muted); font-size: .96rem; margin-bottom: 14px; }
.post-body .more { margin-top: auto; font-weight: 600; text-decoration: none; }
@media (max-width: 960px) { .posts { grid-template-columns: 1fr 1fr; } }
@media (max-width: 600px) { .posts { grid-template-columns: 1fr; } }

.pager { display: flex; gap: 8px; justify-content: center; margin-top: 40px; flex-wrap: wrap; }
.pager a, .pager span { min-width: 44px; height: 44px; padding: 0 12px; display: grid; place-items: center; border-radius: 12px; border: 1px solid var(--line); background: #fff; text-decoration: none; color: var(--ink); }
.pager .is-current { background: var(--ink); color: #fff; border-color: var(--ink); }

/* ---------- CTA band ---------- */
.cta-band { background: linear-gradient(120deg, var(--blue-d), var(--blue) 55%, #1a8dff); color: #fff; }
.cta-in { display: flex; align-items: center; justify-content: space-between; gap: 28px; padding: 44px var(--gutter); flex-wrap: wrap; }
.cta-in h2 { font-size: clamp(1.4rem, 2.6vw, 2rem); font-weight: 700; margin: 0 0 4px; max-width: 24em; }
.cta-in p { margin: 0; color: rgba(255, 255, 255, .85); }
.cta-actions { display: flex; gap: 12px; flex-wrap: wrap; }

/* ---------- Footer ---------- */
.site-footer { background: #fff; border-top: 1px solid var(--line); padding-top: 56px; font-size: .97rem; }
.footer-grid { display: grid; grid-template-columns: 1.5fr 1fr 1fr 1.2fr; gap: 40px; }
.footer-logo img { height: 64px; width: auto; margin-bottom: 14px; }
.footer-about { color: var(--muted); max-width: 30em; }
.site-footer h4 { font-size: 1.05rem; font-weight: 700; margin-bottom: 12px; }
.f-links { list-style: none; padding: 0; margin: 0; display: grid; gap: 6px; }
.f-links a { color: var(--ink-2); text-decoration: none; }
.f-links a:hover { color: var(--blue); }
.f-contact { list-style: none; padding: 0; margin: 0; display: grid; gap: 10px; }
.f-contact li { display: grid; grid-template-columns: 22px 1fr; gap: 10px; color: var(--ink-2); }
.f-contact i { color: var(--blue); margin-top: 6px; }
.f-contact a { color: inherit; text-decoration: none; }
.socials { display: flex; gap: 8px; margin-top: 16px; flex-wrap: wrap; }
.socials a { width: 40px; height: 40px; border-radius: 12px; border: 1px solid var(--line); display: grid; place-items: center; color: var(--ink-2); text-decoration: none; }
.socials a:hover { border-color: var(--blue); color: var(--blue); }
.footer-bottom { margin-top: 44px; border-top: 1px solid var(--line); padding: 18px var(--gutter); display: flex; justify-content: space-between; gap: 16px; flex-wrap: wrap; color: var(--muted); font-size: .9rem; }
@media (max-width: 960px) { .footer-grid { grid-template-columns: 1fr 1fr; } }
@media (max-width: 560px) { .footer-grid { grid-template-columns: 1fr; gap: 28px; } }

.wa-float {
  position: fixed; right: 18px; bottom: 18px; z-index: 40;
  width: 56px; height: 56px; border-radius: 50%; background: #25d366; color: #fff;
  display: grid; place-items: center; font-size: 1.7rem; text-decoration: none;
  box-shadow: 0 12px 28px -8px rgba(7, 20, 51, .45);
}
.wa-float:hover { color: #fff; background: #1fbb59; }

/* ---------- Inner page hero ---------- */
.page-hero {
  color: #fff; padding: clamp(40px, 6vw, 72px) 0 clamp(40px, 6vw, 64px);
  background:
    radial-gradient(50% 90% at 92% 0%, rgba(34, 181, 255, .24), transparent 62%),
    radial-gradient(40% 80% at 0% 100%, rgba(11, 92, 255, .32), transparent 64%),
    var(--ink);
}
.page-hero p.lead { color: rgba(255, 255, 255, .78); font-size: 1.1rem; max-width: 40em; margin: 0; }
.crumbs { display: flex; flex-wrap: wrap; gap: 6px; list-style: none; padding: 0; margin: 0 0 14px; font-size: .92rem; color: rgba(255, 255, 255, .62); }
.crumbs a { color: rgba(255, 255, 255, .82); text-decoration: none; }
.crumbs a:hover { color: #fff; text-decoration: underline; }
.crumbs li + li::before { content: "/"; margin-right: 6px; color: rgba(255, 255, 255, .4); }

/* Product detail */
.prod-hero { display: grid; grid-template-columns: 300px 1fr; gap: clamp(24px, 4vw, 48px); align-items: center; }
.prod-logo { position: relative; background: var(--tile, #fff); border-radius: var(--r-lg); aspect-ratio: 1.5 / 1; box-shadow: inset 0 0 0 1px rgba(255, 255, 255, .12); overflow: hidden; }
.prod-logo img { inset: 22px 26px; width: calc(100% - 52px); height: calc(100% - 44px); }
.prod-hero h1 { font-size: clamp(2rem, 4vw, 3rem); font-weight: 800; margin-bottom: 6px; }
.prod-hero .lead { margin-bottom: 18px !important; }
.prod-hero .badge { margin-right: 10px; }
.prod-host { color: rgba(255, 255, 255, .7); }
.prod-actions { display: flex; gap: 12px; flex-wrap: wrap; margin-top: 22px; }
.prod-layout { display: grid; grid-template-columns: minmax(0, 1.7fr) minmax(0, 1fr); gap: clamp(28px, 5vw, 56px); align-items: start; }
.aside-card { background: #fff; border: 1px solid var(--line); border-radius: var(--r-lg); padding: 24px; }
.aside-card + .aside-card { margin-top: 16px; }
.aside-card h2, .aside-card h3 { font-size: 1.15rem; font-weight: 700; margin-bottom: 12px; }
.aside-card .ticks { margin-bottom: 0; gap: 8px; }
.mini-apps { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 14px; }
.mini-app { display: flex; flex-direction: column; gap: 8px; text-decoration: none; color: var(--ink); }
.mini-app .app-logo { box-shadow: inset 0 0 0 1px var(--line); }
.mini-app span { font-weight: 600; font-size: .95rem; }
.mini-app:hover span { color: var(--blue); }
@media (max-width: 860px) {
  .prod-hero, .prod-layout { grid-template-columns: 1fr; }
  .prod-logo { max-width: 320px; }
  .mini-apps { grid-template-columns: repeat(2, minmax(0, 1fr)); }
}

/* Rich text */
.prose { font-size: 1.04rem; }
.prose > *:first-child { margin-top: 0; }
.prose h2 { font-size: 1.6rem; margin: 1.6em 0 .5em; }
.prose h3 { font-size: 1.3rem; margin: 1.4em 0 .4em; }
.prose h4 { font-size: 1.1rem; margin: 1.2em 0 .4em; }
.prose ul, .prose ol { padding-left: 1.3em; margin: 0 0 1em; }
.prose li { margin-bottom: .3em; }
.prose img { border-radius: var(--r-md); margin: 1.2em 0; }
.prose blockquote { margin: 1.2em 0; padding: 4px 0 4px 18px; border-left: 3px solid var(--blue); color: var(--ink-2); }
.prose table { width: 100%; border-collapse: collapse; margin: 1em 0; display: block; overflow-x: auto; }
.prose th, .prose td { border: 1px solid var(--line); padding: 8px 12px; text-align: left; }
.prose iframe { max-width: 100%; border-radius: var(--r-md); }
.narrow { max-width: 780px; }

/* Post */
.post-head-meta { color: rgba(255, 255, 255, .72); display: flex; gap: 18px; flex-wrap: wrap; margin-top: 10px; }
.post-cover { border-radius: var(--r-lg); margin-bottom: 28px; width: 100%; }
.share { display: flex; gap: 8px; align-items: center; margin-top: 32px; padding-top: 20px; border-top: 1px solid var(--line); flex-wrap: wrap; }
.share a { width: 40px; height: 40px; border-radius: 12px; border: 1px solid var(--line); display: grid; place-items: center; color: var(--ink-2); text-decoration: none; }
.share a:hover { color: var(--blue); border-color: var(--blue); }
.recent { list-style: none; padding: 0; margin: 0; display: grid; gap: 14px; }
.recent a { font-weight: 600; text-decoration: none; color: var(--ink); line-height: 1.45; display: block; }
.recent a:hover { color: var(--blue); }
.recent small { color: var(--muted); }

/* ---------- Forms ---------- */
.form-card { background: #fff; border: 1px solid var(--line); border-radius: var(--r-lg); padding: clamp(20px, 3vw, 32px); }
.form-card h2 { font-size: 1.5rem; font-weight: 700; margin-bottom: 4px; }
.form-card > p { color: var(--muted); }
.form-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 0 16px; }
.form-grid .full { grid-column: 1 / -1; }
.field { margin-bottom: 16px; }
.field label { display: block; font-weight: 600; font-size: .95rem; margin-bottom: 6px; }
.field label small { font-weight: 400; color: var(--muted); }
.field input, .field textarea, .field select {
  width: 100%; padding: 12px 14px; border: 1px solid #cdd8ef; border-radius: 12px;
  font: 400 1rem/1.5 var(--font-body); color: var(--ink); background: #fff;
}
.field textarea { min-height: 140px; resize: vertical; }
.field input:focus, .field textarea:focus, .field select:focus { outline: 3px solid rgba(11, 92, 255, .2); border-color: var(--blue); }
.hp { position: absolute; left: -9999px; width: 1px; height: 1px; overflow: hidden; }
.alert { padding: 14px 18px; border-radius: 12px; margin-bottom: 18px; }
.alert ul { margin: 0; padding-left: 18px; }
.alert-ok { background: var(--green-bg); color: #0b5a2d; border: 1px solid #b8e6cb; }
.alert-err { background: #fdecec; color: #8c1d22; border: 1px solid #f5c2c4; }
@media (max-width: 560px) { .form-grid { grid-template-columns: 1fr; } }

.split { display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 1.1fr); gap: clamp(28px, 5vw, 56px); align-items: start; }
.sticky { position: sticky; top: 100px; }
@media (max-width: 900px) { .split { grid-template-columns: 1fr; } .sticky { position: static; } }

.info-list { list-style: none; padding: 0; margin: 0 0 24px; display: grid; gap: 4px; }
.info-list li { display: grid; grid-template-columns: 48px 1fr; gap: 14px; padding: 14px 0; border-bottom: 1px solid var(--line); align-items: center; }
.info-list .ic { width: 44px; height: 44px; border-radius: 12px; display: grid; place-items: center; background: var(--blue-bg); color: var(--blue); }
.info-list small { display: block; color: var(--muted); font-size: .88rem; line-height: 1.3; }
.info-list a, .info-list span { color: var(--ink); text-decoration: none; font-weight: 600; word-break: break-word; }
.info-list a:hover { color: var(--blue); }
.map { border: 0; width: 100%; height: 380px; border-radius: var(--r-lg); display: block; }

/* ---------- 404 / maintenance ---------- */
.notfound { text-align: center; padding: clamp(64px, 10vw, 120px) 0; }
.notfound b { display: block; font-family: var(--font-display); font-size: clamp(4rem, 12vw, 7rem); line-height: 1; color: var(--blue); }
.notfound .hero-actions { justify-content: center; margin-top: 24px; }

.empty { padding: 40px; text-align: center; background: #fff; border: 1px dashed var(--line); border-radius: var(--r-lg); color: var(--muted); }

/* =========================================================
   v2 — themes, checkout, accounts
   ========================================================= */
body.lang-en { font-size: 16.5px; }
.hint { color: var(--muted); font-size: .92rem; }
.form-sub { font-size: 1.1rem; font-weight: 700; margin: 22px 0 4px; padding-top: 18px; border-top: 1px solid var(--line); }
.th-kicker { color: var(--sky); font-weight: 600; margin: 0 0 4px; }

/* Theme cards: each design shown inside a small browser window */
.th-grid { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 24px; }
.th-card { display: flex; flex-direction: column; background: #fff; border: 1px solid var(--line); border-radius: var(--r-lg); overflow: hidden; }
.th-card[hidden] { display: none; }
.th-card .browser { margin: 14px 14px 0; }
.browser { display: block; border-radius: 12px; overflow: hidden; background: #e9eef8; border: 1px solid var(--line); text-decoration: none; }
.browser-bar { display: flex; align-items: center; gap: 6px; height: 26px; padding: 0 10px; background: #eef2fa; border-bottom: 1px solid var(--line); }
.browser-bar i { width: 9px; height: 9px; border-radius: 50%; background: #c9d3e8; }
.browser-bar i:first-child { background: #ff8a80; } .browser-bar i:nth-child(2) { background: #ffd56b; } .browser-bar i:nth-child(3) { background: #7fdc9a; }
.browser-url { margin-left: 10px; font-size: .78rem; color: var(--muted); background: #fff; border-radius: 6px; padding: 1px 10px; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.browser-shot { display: block; position: relative; aspect-ratio: 16 / 10; overflow: hidden; background: linear-gradient(135deg, #dfe7f7, #f3f6fd); }
.browser-shot img { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; object-position: top center; transition: object-position 4s ease-in-out; }
.th-card .browser:hover .browser-shot img, .th-card .browser:focus-visible .browser-shot img { object-position: bottom center; }
@media (prefers-reduced-motion: reduce) { .browser-shot img { transition: none; } }
.th-body { padding: 18px 20px 20px; display: flex; flex-direction: column; flex: 1; }
.th-cat { color: var(--muted); font-size: .88rem; margin-bottom: 2px; }
.th-body h3 { font-size: 1.25rem; font-weight: 700; margin: 0 0 6px; }
.th-body h3 a { color: inherit; text-decoration: none; }
.th-body h3 a:hover { color: var(--blue); }
.th-desc { color: var(--muted); font-size: .95rem; margin-bottom: 16px; display: -webkit-box; -webkit-line-clamp: 2; -webkit-box-orient: vertical; overflow: hidden; }
.th-foot { margin-top: auto; display: grid; gap: 12px; }
.th-price b { font-family: var(--font-display); font-size: 1.45rem; font-weight: 700; color: var(--ink); }
.th-price s { color: var(--muted); margin-left: 6px; font-size: .92rem; }
.th-actions { display: grid; grid-auto-flow: column; grid-auto-columns: 1fr; gap: 8px; }
@media (max-width: 1000px) { .th-grid { grid-template-columns: 1fr 1fr; } }
@media (max-width: 620px) { .th-grid { grid-template-columns: 1fr; } }

/* Theme detail */
.theme-layout { display: grid; grid-template-columns: minmax(0, 1.75fr) minmax(0, 1fr); gap: clamp(28px, 4vw, 48px); align-items: start; }
.browser-lg .browser-bar { height: 34px; }
.browser-lg .browser-shot { aspect-ratio: auto; max-height: 620px; overflow-y: auto; background: #fff; }
.browser-lg .browser-shot img { position: static; height: auto; object-fit: initial; transition: none; }
.thumbs { display: flex; gap: 10px; margin-top: 12px; overflow-x: auto; padding-bottom: 4px; }
.thumb-btn { flex: none; width: 108px; height: 68px; border-radius: 10px; border: 2px solid var(--line); padding: 0; overflow: hidden; background: #fff; cursor: pointer; }
.thumb-btn img { width: 100%; height: 100%; object-fit: cover; object-position: top; }
.thumb-btn.is-active, .thumb-btn:hover { border-color: var(--blue); }
.theme-h2 { font-size: 1.4rem; font-weight: 700; margin: 36px 0 14px; }
.ticks-2col { grid-template-columns: 1fr 1fr; gap: 8px 24px; }
@media (max-width: 600px) { .ticks-2col { grid-template-columns: 1fr; } }
.buy-box { position: sticky; top: 100px; }
.buy-card { border-color: #b9cdf6; }
.buy-price b { display: block; font-family: var(--font-display); font-size: 2.3rem; font-weight: 800; line-height: 1.1; }
.buy-price span { display: block; margin-top: 4px; color: var(--muted); }
.buy-price .save { font-style: normal; color: #0b7a3b; background: var(--green-bg); border-radius: 99px; padding: 1px 10px; font-size: .85rem; font-weight: 600; margin-left: 4px; }
.buy-actions { display: grid; gap: 10px; margin: 20px 0 4px; }
.buy-off { margin: 0; color: var(--muted); }
.buy-tech { margin-top: 18px; padding-top: 16px; border-top: 1px solid var(--line); }
.buy-tech small { color: var(--muted); }
.tags { display: flex; flex-wrap: wrap; gap: 6px; margin-top: 6px; }
.tags span { background: var(--paper); border: 1px solid var(--line); border-radius: 8px; padding: 2px 10px; font-size: .88rem; }
.mini-steps { list-style: none; margin: 0; padding: 0; display: grid; gap: 14px; }
.mini-steps li { display: grid; grid-template-columns: 32px 1fr; gap: 12px; }
.mini-steps li > span { width: 30px; height: 30px; border-radius: 50%; background: var(--blue-bg); color: var(--blue); display: grid; place-items: center; font-weight: 700; font-family: var(--font-display); }
.mini-steps b { display: block; }
.mini-steps p { margin: 0; color: var(--muted); font-size: .93rem; }
@media (max-width: 900px) { .theme-layout { grid-template-columns: 1fr; } .buy-box { position: static; } }

/* Checkout & order */
.checkout-grid { display: grid; grid-template-columns: minmax(0, 1.5fr) minmax(0, 1fr); gap: clamp(24px, 4vw, 40px); align-items: start; }
@media (max-width: 900px) { .checkout-grid { grid-template-columns: 1fr; } .checkout-grid .summary { order: -1; } .checkout-grid.order-page .summary { order: 0; } }
.pay-methods { border: 0; margin: 0 0 8px; padding: 0; min-width: 0; }
.pay-methods legend { font-weight: 700; font-size: 1.1rem; margin-bottom: 12px; padding: 0; }
.pay-opts { display: grid; grid-template-columns: repeat(auto-fit, minmax(150px, 1fr)); gap: 10px; }
.pay-opt { position: relative; cursor: pointer; }
.pay-opt input { position: absolute; opacity: 0; inset: 0; cursor: pointer; }
.pay-opt span { display: flex; align-items: center; gap: 10px; padding: 12px 14px; border: 1.5px solid var(--line); border-radius: 12px; font-weight: 600; background: #fff; }
.pay-opt .dot { width: 12px; height: 12px; border-radius: 50%; flex: none; }
.pay-opt input:checked + span { border-color: var(--blue); background: var(--blue-bg); box-shadow: 0 0 0 1px var(--blue) inset; }
.pay-opt input:focus-visible + span { outline: 3px solid var(--sky); outline-offset: 2px; }
.pay-info { margin-top: 14px; padding: 16px; border-radius: 12px; background: var(--paper); border: 1px dashed #c3d2f2; }
.pay-info p { margin: 0 0 8px; }
.js-pay .pay-info { display: none; }
.js-pay .pay-info.is-active { display: block; }
.pay-number { display: flex; align-items: center; gap: 12px; flex-wrap: wrap; }
.pay-number b { font-family: var(--font-display); font-size: 1.6rem; letter-spacing: .02em; }
.bank-box { background: #fff; border: 1px solid var(--line); border-radius: 10px; padding: 12px 14px; font-size: .97rem; }
.pay-note { background: #fff8e5; border: 1px solid #f3dea2; color: #6b4d00; border-radius: 12px; padding: 12px 14px; font-size: .95rem; margin: 16px 0; }
.pay-fields[hidden] { display: none; }
.summary h2 { font-size: 1.15rem; }
.sum-item { display: grid; grid-template-columns: 92px 1fr; gap: 14px; align-items: center; padding-bottom: 16px; border-bottom: 1px solid var(--line); }
.sum-thumb { display: block; width: 92px; height: 60px; border-radius: 10px; overflow: hidden; background: var(--paper); border: 1px solid var(--line); }
.sum-thumb img { width: 100%; height: 100%; object-fit: cover; object-position: top; }
.sum-item b { display: block; line-height: 1.35; }
.sum-item b a { color: inherit; }
.sum-item small { color: var(--muted); }
.sum-rows { margin: 12px 0; }
.sum-rows div { display: flex; justify-content: space-between; gap: 12px; padding: 7px 0; }
.sum-rows dt { color: var(--muted); }
.sum-rows dd { margin: 0; font-weight: 600; text-align: right; word-break: break-word; }
.sum-total { border-top: 1px solid var(--line); margin-top: 6px; padding-top: 12px !important; }
.sum-total dd { font-family: var(--font-display); font-size: 1.5rem; font-weight: 800; }
.sum-who { color: var(--ink-2); font-size: .95rem; padding-top: 12px; border-top: 1px solid var(--line); }
.sum-who small { color: var(--muted); }

.status { display: inline-block; font-size: .85rem; font-weight: 600; padding: 3px 12px; border-radius: 99px; white-space: nowrap; }
.st-unpaid { background: #fff1e0; color: #8a4b00; }
.st-pending { background: #fff8d6; color: #6b5500; }
.st-processing { background: var(--blue-bg); color: var(--blue-d); }
.st-completed { background: var(--green-bg); color: #0b7a3b; }
.st-cancelled { background: #f1f2f6; color: #5b6785; }
.page-hero .status { font-size: .95rem; }

.progress { list-style: none; margin: 0 0 20px; padding: 0; display: grid; grid-template-columns: repeat(4, 1fr); gap: 8px; counter-reset: s; }
.progress li { display: flex; flex-direction: column; gap: 6px; font-size: .9rem; color: var(--muted); padding-top: 12px; border-top: 3px solid var(--line); }
.progress li span { width: 28px; height: 28px; border-radius: 50%; display: grid; place-items: center; background: #fff; border: 1px solid var(--line); font-weight: 700; font-size: .85rem; }
.progress li.done { border-top-color: var(--green); color: var(--ink-2); }
.progress li.done span { background: var(--green); border-color: var(--green); color: #fff; }
.progress li.now { border-top-color: var(--blue); color: var(--ink); font-weight: 600; }
.progress li.now span { background: var(--blue); border-color: var(--blue); color: #fff; }
@media (max-width: 520px) { .progress { grid-template-columns: 1fr 1fr; } }
.delivery-box h2 { font-size: 1.15rem; }
.delivery-box h2 i { color: var(--blue); }
.delivery-text { background: var(--paper); border: 1px solid var(--line); border-radius: 12px; padding: 14px 16px; word-break: break-word; }

/* Account */
.account-head { display: flex; justify-content: space-between; align-items: flex-end; gap: 20px; flex-wrap: wrap; }
.account-grid { display: grid; grid-template-columns: minmax(0, 1.6fr) minmax(0, 1fr); gap: clamp(24px, 4vw, 40px); align-items: start; }
@media (max-width: 900px) { .account-grid { grid-template-columns: 1fr; } }
.order-list { display: grid; gap: 10px; }
.order-row { display: grid; grid-template-columns: 1fr auto auto 16px; gap: 16px; align-items: center; padding: 16px 18px; background: #fff; border: 1px solid var(--line); border-radius: 14px; color: var(--ink); text-decoration: none; }
.order-row:hover { border-color: #a9c1f5; }
.or-main b { display: block; }
.or-main small { color: var(--muted); }
.or-amount { font-weight: 700; }
.or-go { color: var(--muted); font-size: .85rem; }
@media (max-width: 560px) { .order-row { grid-template-columns: 1fr auto; } .or-amount { grid-row: 2; } .or-go { display: none; } }

/* Sign-in pages */
.auth { padding: clamp(40px, 8vw, 88px) 16px; background:
  radial-gradient(50% 50% at 100% 0%, rgba(34, 181, 255, .12), transparent 70%),
  radial-gradient(40% 50% at 0% 100%, rgba(11, 92, 255, .1), transparent 70%), var(--paper); }
.auth-card { max-width: 440px; margin: 0 auto; background: #fff; border: 1px solid var(--line); border-radius: var(--r-xl); padding: clamp(24px, 4vw, 36px); }
.auth-brand img { height: 58px; width: auto; margin-bottom: 18px; }
.auth-card h1 { font-size: 1.7rem; font-weight: 700; margin-bottom: 4px; }
.auth-lead { color: var(--muted); }
.auth-forgot { text-align: right; margin: -6px 0 16px; font-size: .93rem; }
.auth-alt { text-align: center; margin: 20px 0 0; color: var(--muted); }
.pw-wrap { position: relative; }
.pw-wrap input { padding-right: 48px; }
.pw-toggle { position: absolute; right: 6px; top: 50%; transform: translateY(-50%); width: 38px; height: 38px; border: 0; background: transparent; color: var(--muted); border-radius: 8px; cursor: pointer; }
.pw-toggle:hover { color: var(--blue); background: var(--blue-bg); }
.empty .btn { margin-top: 6px; }
