/* TN Tech World — design tokens */
:root {
  --ink: #17203f;
  --ink-2: #243056;
  --paper: #f6f7fa;
  --white: #ffffff;
  --marigold: #f0a534;
  --marigold-dark: #c97f10;
  --teal: #11756b;
  --teal-soft: #e3f2ef;
  --slate: #5a6178;
  --line: #dde1ea;
  --danger: #b3261e;
  --danger-soft: #fbeaea;
  --info-soft: #eaf0fb;

  --font-display: "Bricolage Grotesque", "Segoe UI", system-ui, sans-serif;
  --font-body: "Figtree", "Segoe UI", system-ui, -apple-system, sans-serif;

  --r-lg: 18px;
  --r-md: 12px;
  --r-sm: 8px;
  --wrap: 1200px;
  --shadow: 0 1px 2px rgba(23, 32, 63, .06), 0 8px 24px -12px rgba(23, 32, 63, .18);
}

*, *::before, *::after { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; scroll-behavior: smooth; }
body {
  margin: 0; background: var(--paper); color: var(--ink);
  font: 400 1rem/1.6 var(--font-body);
}
img { max-width: 100%; height: auto; display: block; }
a { color: var(--teal); text-underline-offset: 3px; }
a:hover { color: var(--ink); }
:focus-visible { outline: 3px solid var(--marigold); outline-offset: 2px; border-radius: 4px; }
h1, h2, h3, h4 { font-family: var(--font-display); line-height: 1.12; letter-spacing: -.02em; margin: 0 0 .5em; font-weight: 700; }
h1 { font-size: clamp(2.2rem, 5vw, 3.6rem); }
h2 { font-size: clamp(1.7rem, 3.2vw, 2.4rem); }
h3 { font-size: 1.25rem; letter-spacing: -.01em; }
h4 { font-size: 1.05rem; letter-spacing: 0; }
p { margin: 0 0 1em; }
.lede { font-size: 1.15rem; color: var(--slate); max-width: 62ch; }
.muted { color: var(--slate); }
.small { font-size: .875rem; }
.wrap { width: min(100% - 2.5rem, var(--wrap)); margin-inline: auto; }
.narrow { width: min(100% - 2.5rem, 760px); margin-inline: auto; }
.section { padding-block: clamp(3.5rem, 7vw, 6rem); }
.section-tight { padding-block: 2.5rem; }
.section-white { background: var(--white); }
.section-ink { background: var(--ink); color: #e9ecf5; }
.section-ink h2, .section-ink h3 { color: #fff; }
.section-ink .muted { color: #aab2cc; }
.section-head { display: flex; justify-content: space-between; align-items: end; gap: 1.5rem; flex-wrap: wrap; margin-bottom: 2.25rem; }
.section-head p { margin: 0; max-width: 58ch; }
.sr-only { position: absolute; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; }
.skip { position: absolute; left: -999px; top: 0; background: var(--marigold); color: var(--ink); padding: .5rem 1rem; z-index: 100; }
.skip:focus { left: 1rem; }

/* Buttons */
.btn {
  display: inline-flex; align-items: center; justify-content: center; gap: .5rem;
  padding: .72rem 1.25rem; border-radius: 10px; border: 1.5px solid transparent;
  font: 600 .98rem/1.2 var(--font-body); text-decoration: none; cursor: pointer;
  transition: background-color .15s, border-color .15s, color .15s;
}
.btn-primary { background: var(--marigold); color: var(--ink); }
.btn-primary:hover { background: #f5b653; color: var(--ink); }
.btn-dark { background: var(--ink); color: #fff; }
.btn-dark:hover { background: var(--ink-2); color: #fff; }
.btn-outline { border-color: var(--ink); color: var(--ink); background: transparent; }
.btn-outline:hover { background: var(--ink); color: #fff; }
.section-ink .btn-outline, .hero .btn-outline, .page-head .btn-outline { border-color: #fff; color: #fff; }
.section-ink .btn-outline:hover, .hero .btn-outline:hover, .page-head .btn-outline:hover { background: #fff; color: var(--ink); }
.btn-ghost { background: transparent; color: var(--ink); padding-inline: .6rem; }
.btn-ghost:hover { background: rgba(23,32,63,.06); }
.btn-danger { background: var(--danger-soft); color: var(--danger); }
.btn-sm { padding: .45rem .8rem; font-size: .875rem; border-radius: 8px; }
.btn-block { width: 100%; }
.btn[disabled] { opacity: .6; cursor: progress; }
.btn-row { display: flex; gap: .75rem; flex-wrap: wrap; }

/* Top strip + header */
.topbar { background: var(--ink); color: #c9cfe3; font-size: .85rem; }
.topbar .wrap { display: flex; justify-content: space-between; gap: 1rem; padding-block: .45rem; flex-wrap: wrap; }
.topbar a { color: #fff; text-decoration: none; }
.topbar a:hover { color: var(--marigold); }
.topbar-links { display: flex; gap: 1.25rem; flex-wrap: wrap; }

.site-header { background: var(--white); border-bottom: 1px solid var(--line); position: sticky; top: 0; z-index: 50; }
.header-row { display: flex; align-items: center; gap: 1.5rem; min-height: 70px; }
.brand { display: flex; align-items: center; gap: .6rem; text-decoration: none; color: var(--ink); flex-shrink: 0; }
.brand-mark { width: 38px; height: 38px; }
.brand-logo { width: auto; height: 64px; display: block; }
.brand-name { font: 800 1.2rem/1 var(--font-display); letter-spacing: -.02em; }
.brand-name small { display: block; font: 500 .72rem/1.3 var(--font-body); color: var(--slate); letter-spacing: 0; margin-top: 3px; }

.main-nav { display: flex; align-items: center; gap: .15rem; flex: 1; }
.main-nav > a, .nav-drop > summary {
  padding: .55rem .75rem; border-radius: 8px; text-decoration: none; color: var(--ink);
  font-weight: 500; cursor: pointer; list-style: none; white-space: nowrap;
}
.nav-drop > summary::-webkit-details-marker { display: none; }
.nav-drop > summary::after { content: ""; display: inline-block; width: 6px; height: 6px; border-right: 1.5px solid; border-bottom: 1.5px solid; transform: rotate(45deg) translate(-2px, -2px); margin-left: .45rem; }
.main-nav > a:hover, .nav-drop > summary:hover, .main-nav > a[aria-current="page"] { background: var(--paper); }
.nav-drop { position: relative; }
.nav-panel {
  position: absolute; top: calc(100% + 10px); left: 0; background: var(--white);
  border: 1px solid var(--line); border-radius: var(--r-lg); box-shadow: var(--shadow);
  padding: 1.25rem; z-index: 60;
}
.mega { width: min(880px, 92vw); display: grid; grid-template-columns: repeat(3, 1fr); gap: 1.25rem 1.75rem; left: -140px; }
.mega h4 { font-size: .8rem; color: var(--slate); font-family: var(--font-body); font-weight: 600; margin-bottom: .35rem; }
.mega a, .cat-panel a { display: block; padding: .3rem 0; color: var(--ink); text-decoration: none; font-size: .95rem; }
.mega a:hover, .cat-panel a:hover { color: var(--teal); }
.cat-panel { width: min(560px, 92vw); columns: 2; column-gap: 2rem; }
.cat-panel .all { font-weight: 700; color: var(--teal); column-span: all; margin-bottom: .4rem; }

.header-actions { display: flex; align-items: center; gap: .35rem; margin-left: auto; }
.icon-link { position: relative; display: inline-grid; place-items: center; width: 42px; height: 42px; border-radius: 10px; color: var(--ink); }
.icon-link:hover { background: var(--paper); color: var(--ink); }
.icon-link svg { width: 22px; height: 22px; }
.badge-count { position: absolute; top: 3px; right: 2px; min-width: 18px; height: 18px; padding: 0 5px; border-radius: 9px; background: var(--marigold); color: var(--ink); font: 700 .7rem/18px var(--font-body); text-align: center; }
.nav-toggle { display: none; background: none; border: 0; padding: .5rem; cursor: pointer; }
.nav-toggle svg { width: 26px; height: 26px; }

@media (max-width: 1020px) {
  .nav-toggle { display: inline-grid; }
  .main-nav {
    display: none; position: absolute; top: 100%; left: 0; right: 0; background: var(--white);
    flex-direction: column; align-items: stretch; padding: .75rem 1.25rem 1.25rem; border-bottom: 1px solid var(--line);
    max-height: calc(100vh - 70px); overflow-y: auto;
  }
  .main-nav.open { display: flex; }
  .nav-panel { position: static; box-shadow: none; border: 0; padding: .25rem .75rem .75rem; width: auto; }
  .mega { grid-template-columns: 1fr 1fr; left: 0; }
  .cat-panel { columns: 1; }
  .header-quote { display: none; }
}
@media (max-width: 560px) {
  .mega { grid-template-columns: 1fr; }
  .topbar-hours, .topbar-email { display: none; }
  .header-row { gap: .5rem; }
  .brand-name small { display: none; }
  .brand-name { font-size: 1.05rem; }
  .brand-mark { width: 34px; height: 34px; }
  .brand-logo { height: 52px; }
  .header-actions { gap: 0; }
  .icon-link { width: 38px; height: 38px; }
}

/* Flash */
.flash { padding: .9rem 1.1rem; border-radius: var(--r-md); margin: 1.25rem 0; font-weight: 500; }
.flash-success { background: var(--teal-soft); color: #0b5048; }
.flash-error { background: var(--danger-soft); color: var(--danger); }
.flash-info { background: var(--info-soft); color: var(--ink-2); }

/* Kolam dot pattern — the site's signature */
.kolam { position: relative; isolation: isolate; }
.kolam::before {
  content: ""; position: absolute; inset: 0; z-index: -1; pointer-events: none;
  background-image: url("/img/kolam.svg"); background-size: 96px 96px; opacity: .4;
  -webkit-mask-image: linear-gradient(100deg, transparent 30%, #000 75%);
          mask-image: linear-gradient(100deg, transparent 30%, #000 75%);
}

/* Hero */
.hero { background: var(--ink); color: #e9ecf5; padding-block: clamp(3.5rem, 8vw, 6.5rem); overflow: hidden; }
.hero-grid { display: grid; grid-template-columns: 1.25fr 1fr; gap: clamp(2rem, 5vw, 4.5rem); align-items: center; }
.hero h1 { color: #fff; max-width: 15ch; }
.hero h1 .line2 { display: block; color: var(--marigold); }
.hero .lede { color: #c3c9de; }
.hero-proof { display: flex; gap: 2rem; margin-top: 2.25rem; flex-wrap: wrap; color: #aab2cc; font-size: .92rem; }
.hero-proof strong { display: block; font: 700 1.6rem/1.1 var(--font-display); color: #fff; }
.store-panel { background: var(--white); color: var(--ink); border-radius: var(--r-lg); padding: 1.25rem; box-shadow: 0 30px 60px -30px rgba(0,0,0,.5); }
.store-panel-head { display: flex; justify-content: space-between; align-items: baseline; margin-bottom: .5rem; }
.store-panel-head h2 { font-size: 1.1rem; margin: 0; }
.store-row { display: grid; grid-template-columns: 1fr auto; gap: .25rem 1rem; padding: .85rem 0; border-top: 1px solid var(--line); text-decoration: none; color: var(--ink); }
.store-row:hover .store-title { color: var(--teal); }
.store-title { font-weight: 600; line-height: 1.35; }
.store-cat { font-size: .82rem; color: var(--slate); }
.store-price { text-align: right; font-weight: 700; grid-row: span 2; align-self: center; }
.store-price s { display: block; font-weight: 400; color: var(--slate); font-size: .8rem; }
@media (max-width: 900px) { .hero-grid { grid-template-columns: 1fr; } }

@media (prefers-reduced-motion: no-preference) {
  .hero-copy > * { animation: rise .6s cubic-bezier(.2,.7,.2,1) both; }
  .hero-copy > *:nth-child(2) { animation-delay: .07s; }
  .hero-copy > *:nth-child(3) { animation-delay: .14s; }
  .hero-copy > *:nth-child(4) { animation-delay: .21s; }
  .store-panel { animation: rise .7s .25s cubic-bezier(.2,.7,.2,1) both; }
  @keyframes rise { from { opacity: 0; transform: translateY(14px); } }
}

/* Page header for inner pages */
.page-head { background: var(--ink); color: #e9ecf5; padding-block: 3rem 2.75rem; }
.page-head h1 { color: #fff; font-size: clamp(2rem, 4vw, 2.9rem); max-width: 22ch; }
.page-head .lede { color: #c3c9de; margin: 0; }
.crumbs { font-size: .85rem; margin-bottom: 1rem; color: #aab2cc; }
.crumbs a { color: #d7dcec; text-decoration: none; }
.crumbs a:hover { color: var(--marigold); }
.crumbs span[aria-hidden] { margin-inline: .4rem; }

/* Grids and cards */
.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)); }
@media (max-width: 960px) { .grid-3, .grid-4 { grid-template-columns: repeat(2, minmax(0, 1fr)); } }
@media (max-width: 620px) { .grid-2, .grid-3, .grid-4 { grid-template-columns: 1fr; } }

.panel { background: var(--white); border: 1px solid var(--line); border-radius: var(--r-lg); padding: 1.5rem; }

/* Services list: rows rather than identical tiles */
.service-list { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); border-top: 1px solid var(--line); }
.service-item { padding: 1.5rem 1.5rem 1.5rem 0; border-bottom: 1px solid var(--line); text-decoration: none; color: var(--ink); display: grid; grid-template-columns: 44px 1fr; gap: .9rem; }
.service-item:hover h3 { color: var(--teal); }
.service-item p { color: var(--slate); margin: 0; font-size: .95rem; }
.service-item h3 { font-size: 1.1rem; margin-bottom: .3rem; }
.svc-icon { width: 44px; height: 44px; border-radius: 12px; background: var(--white); border: 1px solid var(--line); display: grid; place-items: center; color: var(--ink); }
.svc-icon svg { width: 22px; height: 22px; }
@media (max-width: 960px) { .service-list { grid-template-columns: 1fr 1fr; } }
@media (max-width: 620px) { .service-list { grid-template-columns: 1fr; } }

/* Categories strip */
.cat-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(210px, 1fr)); gap: .75rem; }
.cat-chip { display: flex; justify-content: space-between; align-items: center; gap: .5rem; padding: .9rem 1rem; border-radius: var(--r-md); background: var(--white); border: 1px solid var(--line); color: var(--ink); text-decoration: none; font-weight: 600; }
.cat-chip:hover { border-color: var(--ink); color: var(--ink); }
.cat-chip span { color: var(--slate); font-weight: 500; font-size: .85rem; }

/* Project cards */
.project-card { background: var(--white); border: 1px solid var(--line); border-radius: var(--r-lg); overflow: hidden; display: flex; flex-direction: column; }
.project-card:hover { border-color: #b9c0d3; }
.pc-cover { position: relative; aspect-ratio: 16/10; background: var(--ink); display: block; overflow: hidden; }
.pc-cover img { width: 100%; height: 100%; object-fit: cover; }
.pc-fallback { position: absolute; inset: 0; display: flex; align-items: flex-end; padding: 1rem; color: #fff; background: var(--ink) url("/img/kolam.svg") 0 0/72px 72px; }
.pc-fallback span { font: 700 1.05rem/1.2 var(--font-display); max-width: 18ch; background: var(--ink); padding: .2rem .4rem; border-radius: 6px; }
.pc-off { position: absolute; top: .75rem; left: .75rem; background: var(--marigold); color: var(--ink); font-weight: 700; font-size: .8rem; padding: .2rem .55rem; border-radius: 6px; }
.pc-free { background: var(--teal); color: #fff; }
.pc-body { padding: 1rem 1.1rem 1.1rem; display: flex; flex-direction: column; gap: .35rem; flex: 1; }
.pc-cat { font-size: .82rem; color: var(--slate); }
.pc-title { font: 700 1.02rem/1.35 var(--font-body); margin: 0; }
.pc-title a { color: var(--ink); text-decoration: none; }
.pc-title a:hover { color: var(--teal); }
.pc-foot { margin-top: auto; padding-top: .75rem; display: flex; align-items: center; justify-content: space-between; gap: .5rem; }
.price { font: 700 1.15rem/1 var(--font-body); }
.price s { font-weight: 400; color: var(--slate); font-size: .85rem; margin-left: .35rem; }
.heart-btn { background: none; border: 0; padding: .35rem; cursor: pointer; color: var(--slate); border-radius: 8px; }
.heart-btn:hover { background: var(--paper); color: var(--danger); }
.heart-btn.on { color: var(--danger); }
.heart-btn svg { width: 20px; height: 20px; }

/* Store layout */
.store-layout { display: grid; grid-template-columns: 260px 1fr; gap: 2rem; align-items: start; }
.store-side { position: sticky; top: 90px; display: flex; flex-direction: column; gap: 1rem; }
.side-block { background: var(--white); border: 1px solid var(--line); border-radius: var(--r-lg); padding: 1.1rem; }
.side-block h2 { font-size: 1rem; margin-bottom: .6rem; }
.side-cats { list-style: none; margin: 0; padding: 0; max-height: 440px; overflow-y: auto; }
.side-cats a { display: flex; justify-content: space-between; padding: .4rem .5rem; border-radius: 8px; color: var(--ink); text-decoration: none; font-size: .93rem; }
.side-cats a:hover { background: var(--paper); }
.side-cats a[aria-current="page"] { background: var(--ink); color: #fff; }
.side-cats a span { color: inherit; opacity: .6; }
.toolbar { display: flex; justify-content: space-between; align-items: center; gap: 1rem; margin-bottom: 1.25rem; flex-wrap: wrap; }
.toolbar form { display: flex; gap: .5rem; flex-wrap: wrap; }
.toolbar select, .toolbar input { width: auto; }
@media (max-width: 900px) {
  .store-layout { grid-template-columns: 1fr; }
  .store-side { position: static; }
  .side-cats { max-height: 220px; }
}

.pagination { display: flex; gap: .4rem; flex-wrap: wrap; margin-top: 2rem; justify-content: center; }
.pagination a, .pagination span { min-width: 40px; height: 40px; display: inline-grid; place-items: center; padding: 0 .75rem; border-radius: 10px; border: 1px solid var(--line); background: var(--white); color: var(--ink); text-decoration: none; font-weight: 600; }
.pagination a:hover { border-color: var(--ink); }
.pagination .current { background: var(--ink); color: #fff; border-color: var(--ink); }

/* Project detail */
.pd-grid { display: grid; grid-template-columns: 1.5fr 1fr; gap: 2.5rem; align-items: start; }
.pd-media { border-radius: var(--r-lg); overflow: hidden; aspect-ratio: 16/10; position: relative; background: var(--ink); }
.pd-media img { width: 100%; height: 100%; object-fit: cover; }
.buy-box { background: var(--white); border: 1px solid var(--line); border-radius: var(--r-lg); padding: 1.5rem; position: sticky; top: 90px; }
.buy-box .price { font-size: 2rem; }
.buy-box .save { color: var(--teal); font-weight: 600; font-size: .95rem; }
.buy-box form { margin: 0; }
.includes { list-style: none; padding: 0; margin: 1.25rem 0 0; border-top: 1px solid var(--line); padding-top: 1rem; }
.includes li { padding: .3rem 0 .3rem 1.6rem; position: relative; font-size: .95rem; }
.includes li::before { content: ""; position: absolute; left: .2rem; top: .75rem; width: 9px; height: 5px; border-left: 2px solid var(--teal); border-bottom: 2px solid var(--teal); transform: rotate(-45deg); }
.tags { display: flex; gap: .4rem; flex-wrap: wrap; margin: 0; padding: 0; list-style: none; }
.tags li { background: var(--paper); border: 1px solid var(--line); padding: .25rem .7rem; border-radius: 999px; font-size: .85rem; }
.section-ink .tags li { background: rgba(255,255,255,.08); border-color: rgba(255,255,255,.18); color: #e9ecf5; }
.prose { max-width: 70ch; }
.prose h2 { font-size: 1.45rem; margin-top: 2rem; }
.prose ul { padding-left: 1.2rem; }
.prose li { margin-bottom: .35rem; }
.owned-note { background: var(--teal-soft); color: #0b5048; border-radius: var(--r-md); padding: .8rem 1rem; font-weight: 600; margin-bottom: 1rem; }
@media (max-width: 900px) { .pd-grid { grid-template-columns: 1fr; } .buy-box { position: static; } }

/* Cart / checkout */
.cart-grid { display: grid; grid-template-columns: 1fr 360px; gap: 2rem; align-items: start; }
.line-item { display: grid; grid-template-columns: 96px 1fr auto; gap: 1rem; align-items: center; padding: 1rem 0; border-bottom: 1px solid var(--line); }
.line-item:first-child { padding-top: 0; }
.li-thumb { width: 96px; aspect-ratio: 16/10; border-radius: 10px; overflow: hidden; position: relative; background: var(--ink) url("/img/kolam.svg") 0 0/48px 48px; }
.li-thumb img { width: 100%; height: 100%; object-fit: cover; }
.summary-row { display: flex; justify-content: space-between; padding: .45rem 0; }
.summary-total { border-top: 1px solid var(--line); margin-top: .5rem; padding-top: .85rem; font-weight: 700; font-size: 1.15rem; }
.secure-note { display: flex; gap: .5rem; align-items: center; color: var(--slate); font-size: .85rem; margin-top: .9rem; }
.secure-note svg { width: 16px; height: 16px; flex-shrink: 0; }
@media (max-width: 900px) { .cart-grid { grid-template-columns: 1fr; } }
@media (max-width: 520px) { .line-item { grid-template-columns: 72px 1fr; } .line-item > :last-child { grid-column: 2; } .li-thumb { width: 72px; } }

/* Forms */
label { display: block; font-weight: 600; font-size: .92rem; margin-bottom: .35rem; }
input, select, textarea {
  width: 100%; padding: .7rem .85rem; border: 1.5px solid var(--line); border-radius: 10px;
  font: inherit; color: var(--ink); background: var(--white);
}
input:focus, select:focus, textarea:focus { outline: none; border-color: var(--ink); box-shadow: 0 0 0 3px rgba(240,165,52,.35); }
textarea { min-height: 130px; resize: vertical; }
.field { margin-bottom: 1rem; }
.field-row { display: grid; grid-template-columns: 1fr 1fr; gap: 1rem; }
.check { display: flex; gap: .6rem; align-items: flex-start; font-weight: 400; }
.check input { width: 18px; height: 18px; margin-top: 3px; flex-shrink: 0; }
.hint { font-size: .82rem; color: var(--slate); font-weight: 400; margin-top: .3rem; }
.hp { position: absolute; left: -9999px; }
@media (max-width: 560px) { .field-row { grid-template-columns: 1fr; } }

.auth-card { max-width: 460px; margin: 3rem auto; background: var(--white); border: 1px solid var(--line); border-radius: var(--r-lg); padding: 2rem; }
.auth-card h1 { font-size: 1.9rem; }

/* Why us / process / stats */
.why-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 2rem 2.5rem; }
.why-grid h3 { font-size: 1.1rem; }
.why-grid p { color: var(--slate); margin: 0; }
.section-ink .why-grid p { color: #aab2cc; }
@media (max-width: 860px) { .why-grid { grid-template-columns: 1fr 1fr; } }
@media (max-width: 560px) { .why-grid { grid-template-columns: 1fr; } }

.steps { display: grid; grid-template-columns: repeat(3, 1fr); gap: 1.25rem; counter-reset: step; }
.step { border-top: 3px solid var(--ink); padding-top: 1.25rem; }
.step-num { font: 800 2.4rem/1 var(--font-display); color: var(--marigold); }
.step-when { font-size: .85rem; color: var(--slate); }
@media (max-width: 760px) { .steps { grid-template-columns: 1fr; } }

.stat-band { display: grid; grid-template-columns: repeat(4, 1fr); gap: 1rem; }
.stat-band div { border-left: 3px solid var(--marigold); padding-left: 1rem; }
.stat-band strong { display: block; font: 800 clamp(1.8rem, 3vw, 2.4rem)/1.1 var(--font-display); }
@media (max-width: 760px) { .stat-band { grid-template-columns: 1fr 1fr; gap: 1.5rem; } }

/* Case studies */
.case-card { display: grid; grid-template-columns: auto 1fr; gap: 1.5rem; padding: 1.75rem; border-radius: var(--r-lg); background: var(--white); border: 1px solid var(--line); text-decoration: none; color: var(--ink); }
.case-card:hover { border-color: var(--ink); color: var(--ink); }
.case-metric { font: 800 2.6rem/1 var(--font-display); color: var(--teal); min-width: 4ch; }
.case-metric small { display: block; font: 500 .82rem/1.3 var(--font-body); color: var(--slate); max-width: 14ch; margin-top: .4rem; }
.case-card h3 { margin-bottom: .3rem; }
.case-card p { color: var(--slate); margin-bottom: .75rem; }
@media (max-width: 560px) { .case-card { grid-template-columns: 1fr; } }

/* Comparison table */
.table-wrap { overflow-x: auto; border: 1px solid var(--line); border-radius: var(--r-lg); background: var(--white); }
table { width: 100%; border-collapse: collapse; font-size: .95rem; }
th, td { text-align: left; padding: .85rem 1rem; border-bottom: 1px solid var(--line); vertical-align: top; }
thead th { background: var(--paper); font-weight: 700; white-space: nowrap; }
tbody tr:last-child td { border-bottom: 0; }
.col-us { background: #fff8ec; font-weight: 600; }

/* Testimonials */
.quotes { display: grid; grid-template-columns: repeat(2, 1fr); gap: 1.25rem; }
.quote { background: var(--white); border-radius: var(--r-lg); padding: 1.75rem; border: 1px solid var(--line); margin: 0; }
.quote p { font-size: 1.08rem; }
.quote footer { color: var(--slate); font-size: .9rem; }
.quote footer strong { color: var(--ink); display: block; }
@media (max-width: 760px) { .quotes { grid-template-columns: 1fr; } }

/* FAQ */
.faq details { border-bottom: 1px solid var(--line); }
.faq summary { padding: 1.1rem 2rem 1.1rem 0; font-weight: 600; cursor: pointer; list-style: none; position: relative; font-size: 1.05rem; }
.faq summary::-webkit-details-marker { display: none; }
.faq summary::after { content: "+"; position: absolute; right: .25rem; top: .85rem; font-size: 1.5rem; font-weight: 400; color: var(--slate); }
.faq details[open] summary::after { content: "–"; }
.faq details p { color: var(--slate); padding-bottom: 1.1rem; margin: 0; max-width: 70ch; }

/* Contact */
.contact-grid { display: grid; grid-template-columns: 1fr 1.3fr; gap: 3rem; align-items: start; }
.contact-ways { list-style: none; padding: 0; margin: 1.5rem 0 0; }
.contact-ways li { padding: 1rem 0; border-top: 1px solid var(--line); }
.contact-ways span { display: block; font-size: .85rem; color: var(--slate); }
.contact-ways a { font-weight: 600; font-size: 1.05rem; color: var(--ink); text-decoration: none; }
.contact-ways a:hover { color: var(--teal); }
@media (max-width: 860px) { .contact-grid { grid-template-columns: 1fr; } }

.cta-band { background: var(--marigold); border-radius: var(--r-lg); padding: clamp(1.75rem, 4vw, 3rem); display: flex; justify-content: space-between; align-items: center; gap: 1.5rem; flex-wrap: wrap; }
.cta-band h2 { margin: 0 0 .3rem; }
.cta-band p { margin: 0; }

/* Footer */
.site-footer { background: var(--ink); color: #aab2cc; padding-top: 4rem; font-size: .95rem; }
.footer-grid { display: grid; grid-template-columns: 1.4fr repeat(3, 1fr); gap: 2rem; }
.site-footer h2 { font-size: 1rem; color: #fff; margin-bottom: .9rem; }
.site-footer ul { list-style: none; margin: 0; padding: 0; }
.site-footer li { margin-bottom: .45rem; }
.site-footer a { color: #d7dcec; text-decoration: none; }
.site-footer a:hover { color: var(--marigold); }
.site-footer .brand { color: #fff; margin-bottom: 1rem; }
.site-footer .brand-name small { color: #aab2cc; }
.site-footer .social { display: flex; flex-wrap: wrap; gap: .6rem; margin-top: 1.25rem; }
.site-footer .social li { margin: 0; }
.site-footer .social a { width: 38px; height: 38px; border-radius: 50%; display: grid; place-items: center; background: rgba(255,255,255,.08); color: #d7dcec; transition: background .15s, color .15s; }
.site-footer .social a:hover, .site-footer .social a:focus-visible { background: var(--marigold); color: var(--ink); }
.site-footer .social svg { width: 18px; height: 18px; }
.footer-bottom { border-top: 1px solid rgba(255,255,255,.12); margin-top: 3rem; padding-block: 1.25rem; display: flex; justify-content: space-between; gap: 1rem; flex-wrap: wrap; font-size: .85rem; }
.footer-bottom nav { display: flex; gap: 1.25rem; flex-wrap: wrap; }
@media (max-width: 860px) { .footer-grid { grid-template-columns: 1fr 1fr; } }
@media (max-width: 520px) { .footer-grid { grid-template-columns: 1fr; } }

.wa-float { position: fixed; right: 18px; bottom: 18px; z-index: 40; width: 56px; height: 56px; border-radius: 50%; background: #25d366; display: grid; place-items: center; box-shadow: 0 8px 24px -6px rgba(0,0,0,.35); }
.wa-float svg { width: 30px; height: 30px; fill: #fff; }

/* Account */
.tabs { display: flex; gap: .25rem; border-bottom: 1px solid var(--line); margin-bottom: 1.5rem; flex-wrap: wrap; }
.tabs a { padding: .7rem 1rem; text-decoration: none; color: var(--slate); font-weight: 600; border-bottom: 3px solid transparent; margin-bottom: -1px; }
.tabs a:hover { color: var(--ink); }
.tabs a[aria-current="page"] { color: var(--ink); border-color: var(--marigold); }
.status { display: inline-block; padding: .15rem .6rem; border-radius: 999px; font-size: .8rem; font-weight: 700; }
.status-paid, .status-closed { background: var(--teal-soft); color: #0b5048; }
.status-failed { background: var(--danger-soft); color: var(--danger); }
.status-created, .status-new { background: #fff3dd; color: #7a4c05; }
.status-contacted { background: var(--info-soft); color: var(--ink-2); }
.empty { text-align: center; padding: 3rem 1rem; background: var(--white); border: 1.5px dashed var(--line); border-radius: var(--r-lg); }
.empty h2 { font-size: 1.35rem; }

/* Admin */
.admin-shell { display: grid; grid-template-columns: 230px 1fr; min-height: 100vh; }
.admin-nav { background: var(--ink); color: #c9cfe3; padding: 1.25rem .9rem; position: sticky; top: 0; height: 100vh; overflow-y: auto; }
.admin-nav .brand { color: #fff; margin: 0 .4rem 1.5rem; }
.admin-nav a.nav-item { display: block; padding: .55rem .75rem; border-radius: 8px; color: #d7dcec; text-decoration: none; margin-bottom: 2px; }
.admin-nav a.nav-item:hover { background: rgba(255,255,255,.08); }
.admin-nav a.nav-item[aria-current="page"] { background: var(--marigold); color: var(--ink); font-weight: 600; }
.admin-main { padding: 2rem clamp(1rem, 3vw, 2.5rem); min-width: 0; }
.admin-main h1 { font-size: 1.8rem; }
.admin-top { display: flex; justify-content: space-between; align-items: center; gap: 1rem; margin-bottom: 1.5rem; flex-wrap: wrap; }
.kpis { display: grid; grid-template-columns: repeat(auto-fit, minmax(170px, 1fr)); gap: 1rem; margin-bottom: 2rem; }
.kpi { background: var(--white); border: 1px solid var(--line); border-radius: var(--r-md); padding: 1rem 1.1rem; }
.kpi strong { display: block; font: 800 1.6rem/1.2 var(--font-display); }
.kpi span { color: var(--slate); font-size: .88rem; }
.inline-form { display: inline; }
@media (max-width: 800px) {
  .admin-shell { grid-template-columns: 1fr; }
  .admin-nav { position: static; height: auto; display: flex; flex-wrap: wrap; gap: .25rem; }
  .admin-nav .brand { width: 100%; margin-bottom: .5rem; }
}

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