/* =========================================================
   Patygo Teknoloji — Bitfiyat-style SaaS Design
   Font: Inter | Beyaz zemin | Royal blue accent
   ========================================================= */

:root {
  --brand: #2563eb;
  --brand-deep: #1d4ed8;
  --brand-soft: #eff6ff;
  --brand-50: #f0f7ff;

  --ink: #0f172a;
  --ink-2: #1e293b;
  --muted: #64748b;
  --muted-2: #94a3b8;
  --line: #e2e8f0;
  --line-soft: #f1f5f9;
  --bg: #ffffff;
  --bg-soft: #f8fafc;
  --navy: #0f172a;
  --navy-2: #1e293b;

  --radius: 10px;
  --radius-lg: 16px;
  --radius-xl: 20px;
  --container: 1160px;
  --gutter: clamp(20px, 4vw, 40px);
  --header-h: 72px;

  --font: "Inter", system-ui, -apple-system, "Segoe UI", Roboto, sans-serif;
  --shadow: 0 1px 2px rgba(15, 23, 42, 0.04), 0 8px 24px rgba(15, 23, 42, 0.06);
  --shadow-lg: 0 20px 50px rgba(15, 23, 42, 0.12);

  --ease: cubic-bezier(0.22, 1, 0.36, 1);
  --t: 0.25s var(--ease);
}

*, *::before, *::after { box-sizing: border-box; }
* { margin: 0; }
html { scroll-behavior: smooth; -webkit-text-size-adjust: 100%; }
body {
  font-family: var(--font);
  color: var(--ink);
  background: var(--bg);
  line-height: 1.6;
  font-size: 15.5px;
  -webkit-font-smoothing: antialiased;
  overflow-x: hidden;
}
img, svg { display: block; max-width: 100%; height: auto; }
a { color: inherit; text-decoration: none; }
ul { list-style: none; padding: 0; }
button, input, select, textarea { font: inherit; }
button { cursor: pointer; border: none; background: none; color: inherit; }
h1, h2, h3, h4 {
  font-weight: 700;
  letter-spacing: -0.025em;
  line-height: 1.15;
  color: var(--ink);
}

.container {
  width: 100%;
  max-width: var(--container);
  margin-inline: auto;
  padding-inline: var(--gutter);
}
.section { padding: clamp(64px, 8vw, 100px) 0; }
.section-soft { background: var(--bg-soft); }

/* ---------- Buttons ---------- */
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  font-weight: 600;
  font-size: 0.925rem;
  padding: 11px 20px;
  border-radius: var(--radius);
  transition: transform var(--t), background var(--t), color var(--t), border-color var(--t), box-shadow var(--t);
  white-space: nowrap;
  border: 1.5px solid transparent;
}
.btn-primary {
  background: var(--brand);
  color: #fff;
  box-shadow: 0 4px 14px rgba(37, 99, 235, 0.28);
}
.btn-primary:hover {
  background: var(--brand-deep);
  transform: translateY(-1px);
}
.btn-outline {
  background: #fff;
  color: var(--brand);
  border-color: #bfdbfe;
}
.btn-outline:hover {
  background: var(--brand-soft);
  border-color: var(--brand);
}
.btn-ghost {
  background: transparent;
  color: var(--ink-2);
  border-color: var(--line);
}
.btn-ghost:hover { border-color: var(--brand); color: var(--brand); }
.btn-lg { padding: 14px 26px; font-size: 0.98rem; }
.btn-block { width: 100%; }

/* ---------- Header ---------- */
.site-header {
  position: sticky;
  top: 0;
  z-index: 100;
  height: var(--header-h);
  background: rgba(255, 255, 255, 0.92);
  backdrop-filter: blur(14px);
  -webkit-backdrop-filter: blur(14px);
  border-bottom: 1px solid var(--line-soft);
}
.site-header.scrolled { box-shadow: 0 4px 20px rgba(15, 23, 42, 0.06); }
.nav {
  display: flex;
  align-items: center;
  justify-content: space-between;
  height: var(--header-h);
  gap: 20px;
}
.brand { display: flex; align-items: center; line-height: 0; flex-shrink: 0; }
.brand img {
  height: 48px;
  width: auto;
  display: block;
  border-radius: 0;
}
.nav-links {
  display: flex;
  align-items: center;
  gap: 4px;
}
.nav-links a {
  padding: 8px 14px;
  border-radius: 8px;
  font-weight: 500;
  font-size: 0.925rem;
  color: var(--ink-2);
  transition: color var(--t), background var(--t);
}
.nav-links a:hover,
.nav-links a.active {
  color: var(--brand);
  background: var(--brand-soft);
}
.nav-actions { display: flex; align-items: center; gap: 10px; flex-shrink: 0; }
.nav-toggle {
  display: none;
  width: 42px;
  height: 42px;
  border-radius: 10px;
  border: 1.5px solid var(--line);
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 5px;
}
.nav-toggle span {
  width: 18px;
  height: 2px;
  background: var(--ink);
  border-radius: 2px;
  transition: transform var(--t), opacity var(--t);
}
.nav-toggle.open span:nth-child(1) { transform: translateY(7px) rotate(45deg); }
.nav-toggle.open span:nth-child(2) { opacity: 0; }
.nav-toggle.open span:nth-child(3) { transform: translateY(-7px) rotate(-45deg); }

/* ---------- Hero ---------- */
.hero {
  position: relative;
  padding: clamp(48px, 7vw, 80px) 0 clamp(56px, 8vw, 90px);
  background:
    radial-gradient(900px 420px at 90% 10%, rgba(37, 99, 235, 0.08), transparent 55%),
    radial-gradient(700px 380px at 0% 100%, rgba(37, 99, 235, 0.05), transparent 50%),
    linear-gradient(180deg, #fff 0%, #f8fafc 100%);
  overflow: hidden;
}
.hero-grid {
  display: grid;
  grid-template-columns: 1.05fr 0.95fr;
  gap: clamp(32px, 5vw, 64px);
  align-items: center;
}
.hero-copy h1 {
  font-size: clamp(2.2rem, 4.6vw, 3.4rem);
  margin-bottom: 18px;
  max-width: 14ch;
}
.hero-copy h1 em {
  font-style: normal;
  color: var(--brand);
}
.hero-copy .lead {
  color: var(--muted);
  font-size: 1.05rem;
  max-width: 46ch;
  margin-bottom: 28px;
}
.hero-cta {
  display: flex;
  flex-wrap: wrap;
  gap: 12px;
  margin-bottom: 36px;
}
.hero-stats {
  display: flex;
  flex-wrap: wrap;
  gap: 20px 28px;
  padding-top: 24px;
  border-top: 1px solid var(--line);
}
.hero-stats div strong {
  display: block;
  font-size: 1.25rem;
  font-weight: 700;
  color: var(--ink);
}
.hero-stats div span {
  font-size: 0.82rem;
  color: var(--muted);
  font-weight: 500;
}

/* Floating quote card */
.hero-visual { position: relative; }
.quote-card {
  background: #fff;
  border: 1px solid var(--line);
  border-radius: var(--radius-xl);
  box-shadow: var(--shadow-lg);
  padding: 22px;
  position: relative;
  z-index: 1;
}
.quote-card-head {
  display: flex;
  align-items: center;
  justify-content: space-between;
  margin-bottom: 18px;
}
.quote-card-head h3 {
  font-size: 1rem;
  font-weight: 700;
}
.quote-badge {
  font-size: 0.72rem;
  font-weight: 700;
  color: var(--brand);
  background: var(--brand-soft);
  padding: 5px 10px;
  border-radius: 999px;
}
.quote-row {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  padding: 12px 0;
  border-bottom: 1px solid var(--line-soft);
}
.quote-row:last-of-type { border-bottom: none; }
.quote-row .left {
  display: flex;
  align-items: center;
  gap: 12px;
}
.quote-row .thumb {
  width: 42px;
  height: 42px;
  border-radius: 10px;
  background: var(--bg-soft);
  border: 1px solid var(--line);
  display: grid;
  place-items: center;
  font-size: 0.7rem;
  font-weight: 700;
  color: var(--muted);
}
.quote-row .meta strong {
  display: block;
  font-size: 0.88rem;
  font-weight: 600;
}
.quote-row .meta span {
  font-size: 0.75rem;
  color: var(--muted-2);
}
.quote-row .price {
  font-weight: 700;
  font-size: 0.9rem;
  color: var(--brand);
}
.quote-total {
  margin-top: 14px;
  padding: 14px;
  border-radius: 12px;
  background: var(--brand-soft);
  display: flex;
  justify-content: space-between;
  align-items: center;
  font-weight: 600;
  font-size: 0.9rem;
}
.quote-total strong { color: var(--brand); font-size: 1.1rem; }

/* ---------- Partners (infinite marquee) ---------- */
.partners {
  border-block: 1px solid var(--line-soft);
  background: #fff;
  padding: 28px 0;
  overflow: hidden;
}
.partners-label {
  text-align: center;
  font-size: 0.75rem;
  font-weight: 600;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: var(--muted-2);
  margin-bottom: 18px;
}
.partners-viewport {
  overflow: hidden;
  mask-image: linear-gradient(90deg, transparent, #000 6%, #000 94%, transparent);
  -webkit-mask-image: linear-gradient(90deg, transparent, #000 6%, #000 94%, transparent);
}
.partners-track {
  --partners-shift: 24px;
  display: flex;
  gap: 48px;
  width: max-content;
  animation: partners-scroll 32s linear infinite;
  will-change: transform;
}
.partners-track span {
  font-size: 1.2rem;
  font-weight: 700;
  color: #cbd5e1;
  letter-spacing: -0.02em;
  white-space: nowrap;
  flex-shrink: 0;
}
@keyframes partners-scroll {
  from { transform: translateX(0); }
  to { transform: translateX(calc(-50% - var(--partners-shift))); }
}

/* ---------- Section heads ---------- */
.section-head {
  text-align: center;
  max-width: 620px;
  margin: 0 auto clamp(36px, 5vw, 52px);
}
.section-head h2 {
  font-size: clamp(1.7rem, 3.2vw, 2.35rem);
  margin-bottom: 12px;
}
.section-head p { color: var(--muted); font-size: 1.02rem; }

/* ---------- Feature cards ---------- */
.feature-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 18px;
}
.feature-card {
  background: #fff;
  border: 1px solid var(--line);
  border-radius: var(--radius-lg);
  padding: 26px 24px;
  transition: border-color var(--t), box-shadow var(--t), transform var(--t);
}
.feature-card:hover {
  border-color: #bfdbfe;
  box-shadow: var(--shadow);
  transform: translateY(-3px);
}
.feature-card .ic {
  width: 44px;
  height: 44px;
  border-radius: 12px;
  background: var(--brand-soft);
  color: var(--brand);
  display: grid;
  place-items: center;
  margin-bottom: 16px;
}
.feature-card .ic svg { width: 22px; height: 22px; }
.feature-card h3 {
  font-size: 1.05rem;
  margin-bottom: 8px;
}
.feature-card p {
  color: var(--muted);
  font-size: 0.92rem;
  line-height: 1.55;
}

/* ---------- Products ---------- */
.product-tabs {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
  justify-content: center;
  margin-bottom: 32px;
}
.product-tabs button {
  padding: 10px 18px;
  border-radius: 999px;
  font-weight: 600;
  font-size: 0.9rem;
  color: var(--ink-2);
  background: #fff;
  border: 1.5px solid var(--line);
  transition: var(--t);
}
.product-tabs button:hover {
  border-color: #bfdbfe;
  color: var(--brand);
}
.product-tabs button.active {
  background: var(--brand);
  border-color: var(--brand);
  color: #fff;
}
.product-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 20px;
}
.product-card {
  background: #fff;
  border: 1px solid var(--line);
  border-radius: 18px;
  overflow: hidden;
  display: flex;
  flex-direction: column;
  box-shadow: 0 18px 40px rgba(37, 99, 235, 0.1);
  transition: transform var(--t), box-shadow var(--t);
}
.product-card:hover {
  transform: translateY(-4px);
  box-shadow: 0 24px 48px rgba(37, 99, 235, 0.16);
}
.product-card[hidden] { display: none; }
.product-card .visual {
  aspect-ratio: 1.15;
  display: grid;
  place-items: center;
  background: linear-gradient(160deg, #eff6ff 0%, #dbeafe 55%, #e0f2fe 100%);
  border-bottom: 1px solid #e2e8f0;
  overflow: hidden;
}
.product-card .visual.has-image { background: #f8fafc; }
.product-card .visual img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}
.product-card .visual span {
  font-size: clamp(1.35rem, 2vw, 1.7rem);
  font-weight: 800;
  letter-spacing: 0.04em;
  color: var(--brand);
  text-transform: uppercase;
}
.product-card .body {
  padding: 16px 18px 18px;
  display: flex;
  flex-direction: column;
  flex: 1;
}
.product-card .brand-tag {
  font-size: 0.7rem;
  font-weight: 700;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: var(--muted-2);
  margin-bottom: 6px;
}
.product-card h3 {
  font-size: 0.98rem;
  font-weight: 700;
  color: var(--ink);
  margin-bottom: 8px;
  line-height: 1.35;
  flex: 1;
}
.product-card h3 a { color: inherit; }
.product-card h3 a:hover { color: var(--brand); }
.product-desc {
  color: var(--muted);
  font-size: 0.86rem;
  line-height: 1.45;
  margin: 0 0 10px;
  display: -webkit-box;
  -webkit-line-clamp: 2;
  -webkit-box-orient: vertical;
  overflow: hidden;
}
.product-card .price {
  display: flex;
  align-items: baseline;
  gap: 6px;
  margin-bottom: 14px;
  font-size: 1.35rem;
  font-weight: 800;
  color: var(--ink);
  letter-spacing: -0.02em;
}
.product-card .price small {
  font-size: 0.78rem;
  font-weight: 600;
  color: var(--muted-2);
}
.product-card .actions {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 8px;
}
.product-card .actions .btn-quote { grid-column: 1 / -1; }
.product-card .actions .btn {
  padding: 11px 10px;
  font-size: 0.88rem;
}
.btn-buy {
  background: var(--brand);
  color: #fff;
  border-color: var(--brand);
}
.btn-buy:hover { background: var(--brand-deep); }
.btn-quote {
  background: #fff;
  color: var(--brand);
  border: 1.5px solid var(--line);
}
.btn-quote:hover {
  border-color: var(--brand);
  background: var(--brand-soft);
}

/* Checkout / POS */
.checkout-wrap {
  display: grid;
  grid-template-columns: 1.1fr 0.9fr;
  gap: 24px;
  align-items: start;
  max-width: 960px;
  margin: 0 auto;
}
#checkoutRoot[hidden],
#orderSuccess[hidden] {
  display: none !important;
}
.checkout-card {
  background: #fff;
  border: 1px solid var(--line);
  border-radius: var(--radius-xl);
  padding: 28px;
  box-shadow: var(--shadow);
}
.checkout-product {
  display: flex;
  gap: 16px;
  align-items: center;
  padding: 16px;
  border-radius: 14px;
  background: var(--bg-soft);
  border: 1px solid var(--line-soft);
  margin-bottom: 22px;
}
.checkout-product .visual {
  width: 72px;
  height: 72px;
  border-radius: 12px;
  background: linear-gradient(160deg, #eff6ff, #dbeafe);
  display: grid;
  place-items: center;
  font-weight: 800;
  color: var(--brand);
  font-size: 0.75rem;
  flex-shrink: 0;
}
.checkout-product h3 { font-size: 1rem; margin-bottom: 4px; }
.checkout-product .brand-tag {
  font-size: 0.7rem;
  font-weight: 700;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: var(--muted-2);
}
.checkout-sum {
  display: flex;
  justify-content: space-between;
  padding: 10px 0;
  font-size: 0.95rem;
  color: var(--ink-2);
}
.checkout-sum.total {
  border-top: 1px solid var(--line);
  margin-top: 8px;
  padding-top: 16px;
  font-weight: 700;
  font-size: 1.1rem;
}
.checkout-sum.total strong { color: var(--brand); }
.pos-box {
  margin-top: 8px;
  padding: 16px;
  border-radius: 12px;
  background: #fffbeb;
  border: 1px solid #fde68a;
  color: #92400e;
  font-size: 0.88rem;
  line-height: 1.5;
}
.qty-row {
  display: flex;
  align-items: center;
  gap: 12px;
  margin-bottom: 18px;
}
.qty-row label { font-weight: 600; font-size: 0.9rem; }
.qty-row input {
  width: 88px;
  padding: 10px 12px;
  border: 1.5px solid var(--line);
  border-radius: 10px;
}

/* ---------- Dark band ---------- */
.dark-band {
  background: var(--navy);
  color: #cbd5e1;
  padding: clamp(64px, 8vw, 96px) 0;
}
.dark-band-grid {
  display: grid;
  grid-template-columns: 1.1fr 1fr;
  gap: clamp(32px, 5vw, 64px);
  align-items: center;
}
.dark-band h2 {
  color: #fff;
  font-size: clamp(1.7rem, 3.2vw, 2.4rem);
  margin-bottom: 14px;
}
.dark-band p { color: #94a3b8; max-width: 46ch; }
.stat-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 14px;
}
.stat-box {
  background: rgba(255, 255, 255, 0.04);
  border: 1px solid rgba(255, 255, 255, 0.08);
  border-radius: var(--radius-lg);
  padding: 22px 20px;
}
.stat-box strong {
  display: block;
  font-size: 1.85rem;
  font-weight: 700;
  color: #fff;
  letter-spacing: -0.03em;
  margin-bottom: 4px;
}
.stat-box span {
  font-size: 0.85rem;
  color: #94a3b8;
  font-weight: 500;
}

/* ---------- Quote form ---------- */
.form-wrap {
  max-width: 760px;
  margin: 0 auto;
  background: #fff;
  border: 1px solid var(--line);
  border-radius: var(--radius-xl);
  box-shadow: var(--shadow);
  padding: clamp(28px, 4vw, 40px);
}
.form-row {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 16px;
}
.field { margin-bottom: 16px; }
.field label {
  display: block;
  font-size: 0.85rem;
  font-weight: 600;
  color: var(--ink-2);
  margin-bottom: 7px;
}
.field input,
.field select,
.field textarea {
  width: 100%;
  padding: 12px 14px;
  border: 1.5px solid var(--line);
  border-radius: 10px;
  background: #fff;
  color: var(--ink);
  transition: border-color var(--t), box-shadow var(--t);
}
.field input:focus,
.field select:focus,
.field textarea:focus {
  outline: none;
  border-color: var(--brand);
  box-shadow: 0 0 0 4px rgba(37, 99, 235, 0.12);
}
.field textarea { min-height: 110px; resize: vertical; }
.check-inline {
  display: flex;
  gap: 10px;
  align-items: flex-start;
  font-size: 0.85rem;
  color: var(--muted);
  margin-bottom: 12px;
}
.check-inline + .check-inline { margin-top: -4px; }
.check-inline + .form-note,
.check-inline + .btn { margin-top: 8px; }
.check-inline input {
  width: 17px;
  height: 17px;
  margin-top: 2px;
  accent-color: var(--brand);
  flex-shrink: 0;
}
.form-note {
  display: none;
  margin-top: 14px;
  padding: 12px 14px;
  border-radius: 10px;
  font-size: 0.9rem;
  font-weight: 600;
  background: #ecfdf5;
  color: #047857;
  border: 1px solid #a7f3d0;
}
.form-note.ok { display: block; color: #166534; }
.form-note.err { display: block; color: #b91c1c; }
.hp-field {
  position: absolute;
  left: -9999px;
  width: 1px;
  height: 1px;
  opacity: 0;
  pointer-events: none;
}

/* ---------- Page hero (inner) ---------- */
.page-hero {
  padding: clamp(40px, 6vw, 64px) 0;
  background: var(--bg-soft);
  border-bottom: 1px solid var(--line-soft);
}
.page-hero h1 {
  font-size: clamp(1.9rem, 3.6vw, 2.6rem);
  margin: 12px 0 10px;
}
.page-hero p { color: var(--muted); max-width: 52ch; font-size: 1.05rem; }
.breadcrumb {
  display: flex;
  gap: 8px;
  align-items: center;
  font-size: 0.85rem;
  color: var(--muted-2);
  font-weight: 500;
}
.breadcrumb a:hover { color: var(--brand); }

/* ---------- Generic cards / prose / tables ---------- */
.grid { display: grid; gap: 18px; }
.g-2 { grid-template-columns: repeat(2, 1fr); }
.g-3 { grid-template-columns: repeat(3, 1fr); }
.card {
  background: #fff;
  border: 1px solid var(--line);
  border-radius: var(--radius-lg);
  padding: 26px;
  transition: box-shadow var(--t), transform var(--t);
}
.card:hover { box-shadow: var(--shadow); transform: translateY(-2px); }
.card .ic-box {
  width: 44px;
  height: 44px;
  border-radius: 12px;
  background: var(--brand-soft);
  color: var(--brand);
  display: grid;
  place-items: center;
  margin-bottom: 14px;
}
.card .ic-box svg { width: 22px; height: 22px; }
.card h3 { font-size: 1.05rem; margin-bottom: 8px; }
.card p { color: var(--muted); font-size: 0.92rem; }

.kicker {
  display: inline-block;
  font-size: 0.78rem;
  font-weight: 700;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  color: var(--brand);
  margin-bottom: 10px;
}
.split {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: clamp(28px, 4vw, 56px);
  align-items: center;
}
.check-list { display: grid; gap: 12px; margin: 20px 0 28px; }
.check-list li {
  display: flex;
  gap: 10px;
  align-items: flex-start;
  color: var(--ink-2);
  font-weight: 500;
  font-size: 0.95rem;
}
.check-list .chk {
  width: 22px;
  height: 22px;
  border-radius: 6px;
  background: var(--brand-soft);
  color: var(--brand);
  display: grid;
  place-items: center;
  flex-shrink: 0;
  margin-top: 1px;
}
.check-list svg { width: 13px; height: 13px; }

.brand-cat {
  margin-bottom: clamp(36px, 5vw, 52px);
}
.brand-cat.is-collapsed { margin-bottom: 12px; }
.brand-cat:last-child { margin-bottom: 0; }
.brand-cat-head {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
  margin-bottom: 18px;
  padding: 0;
  border: 1px solid var(--line);
  border-radius: 14px;
  background: #fff;
  transition: border-color var(--t), box-shadow var(--t);
}
.brand-cat.is-collapsed .brand-cat-head { margin-bottom: 0; }
.brand-cat-head:hover {
  border-color: #bfdbfe;
  box-shadow: var(--shadow);
}
.brand-cat-toggle {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
  width: 100%;
  padding: 18px 20px;
  text-align: left;
}
.brand-cat-label { display: grid; gap: 4px; }
.brand-cat-toggle svg {
  width: 22px;
  height: 22px;
  flex: 0 0 auto;
  color: var(--brand);
  transition: transform var(--t);
}
.brand-cat-toggle[aria-expanded="true"] svg { transform: rotate(180deg); }
.brand-grid[hidden] { display: none; }
.brand-cat-head h3 {
  font-size: 1.1rem;
  font-weight: 700;
  color: var(--ink);
}
.brand-cat-head span {
  font-size: 0.82rem;
  color: var(--muted-2);
  font-weight: 500;
}
.brand-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 14px;
}
.brand-tile {
  text-align: center;
  padding: 26px 16px 20px;
  background: #fff;
  border: 1px solid var(--line);
  border-radius: var(--radius-lg);
  transition: border-color var(--t), box-shadow var(--t), transform var(--t);
  display: flex;
  flex-direction: column;
  align-items: center;
  min-height: 168px;
}
.brand-tile:hover {
  border-color: #bfdbfe;
  box-shadow: var(--shadow);
  transform: translateY(-2px);
}
.brand-tile .logo {
  width: 100%;
  height: 72px;
  display: grid;
  place-items: center;
  margin-bottom: 12px;
  background: linear-gradient(180deg, #f8fafc 0%, #fff 100%);
  border-radius: 12px;
  border: 1px solid var(--line-soft);
}
.brand-tile .logo img {
  max-width: 170px;
  max-height: 48px;
  width: auto;
  height: auto;
  object-fit: contain;
}
.brand-tile .logo-word {
  font-size: 1.4rem;
  font-weight: 700;
  margin-bottom: 8px;
}
.brand-tile p {
  color: var(--muted);
  font-size: 0.82rem;
  line-height: 1.4;
  margin: 0;
}

.info-table {
  width: 100%;
  border-collapse: collapse;
  font-size: 0.94rem;
  margin: 12px 0 20px;
}
.info-table th, .info-table td {
  text-align: left;
  padding: 13px 14px;
  border: 1px solid var(--line);
  vertical-align: top;
}
.info-table th {
  width: 200px;
  background: var(--bg-soft);
  font-weight: 600;
}

.prose { max-width: 800px; }
.prose h2 { font-size: 1.35rem; margin: 32px 0 12px; }
.prose h3 { font-size: 1.1rem; margin: 22px 0 10px; }
.prose p { color: var(--ink-2); margin-bottom: 12px; }
.prose ul { display: grid; gap: 8px; margin-bottom: 14px; }
.prose ul li { display: flex; gap: 10px; color: var(--ink-2); }
.prose ul li::before {
  content: "";
  width: 6px;
  height: 6px;
  border-radius: 50%;
  background: var(--brand);
  margin-top: 9px;
  flex-shrink: 0;
}
.prose .updated {
  display: inline-block;
  font-size: 0.8rem;
  color: var(--muted);
  background: var(--bg-soft);
  padding: 5px 12px;
  border-radius: 999px;
  margin-bottom: 20px;
}

.contact-grid {
  display: grid;
  grid-template-columns: 1fr 1.15fr;
  gap: clamp(24px, 4vw, 40px);
  align-items: start;
}
.info-card {
  display: flex;
  gap: 14px;
  padding: 20px;
  background: #fff;
  border: 1px solid var(--line);
  border-radius: var(--radius-lg);
  margin-bottom: 12px;
}
.info-card .ic {
  width: 42px;
  height: 42px;
  border-radius: 10px;
  background: var(--brand-soft);
  color: var(--brand);
  display: grid;
  place-items: center;
  flex-shrink: 0;
}
.info-card h3 { font-size: 0.98rem; margin-bottom: 4px; }
.info-card p, .info-card a { color: var(--muted); font-size: 0.9rem; }
.info-card a:hover { color: var(--brand); }

.process {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 16px;
}
.process-item {
  background: #fff;
  border: 1px solid var(--line);
  border-radius: var(--radius-lg);
  padding: 22px;
}
.process-num {
  font-size: 1.6rem;
  font-weight: 700;
  color: var(--brand);
  margin-bottom: 10px;
  letter-spacing: -0.03em;
}
.process-item h3 { font-size: 1rem; margin-bottom: 6px; }
.process-item p { color: var(--muted); font-size: 0.9rem; }

.accordion { max-width: 760px; margin: 0 auto; }
.acc-item {
  background: #fff;
  border: 1px solid var(--line);
  border-radius: var(--radius);
  margin-bottom: 10px;
  overflow: hidden;
}
.acc-item.open { border-color: #bfdbfe; }
.acc-head {
  width: 100%;
  display: flex;
  justify-content: space-between;
  gap: 14px;
  padding: 16px 18px;
  text-align: left;
  font-weight: 600;
  font-size: 0.98rem;
}
.acc-head .plus {
  width: 26px;
  height: 26px;
  border-radius: 7px;
  background: var(--brand-soft);
  color: var(--brand);
  display: grid;
  place-items: center;
  flex-shrink: 0;
  transition: transform var(--t);
}
.acc-item.open .plus { transform: rotate(45deg); }
.acc-body { max-height: 0; overflow: hidden; transition: max-height 0.3s var(--ease); }
.acc-body-inner { padding: 0 18px 16px; color: var(--muted); font-size: 0.94rem; }

.cta-block {
  background: linear-gradient(135deg, var(--brand-deep), var(--brand));
  color: #fff;
  border-radius: var(--radius-xl);
  padding: clamp(40px, 6vw, 64px);
  text-align: center;
}
.cta-block h2 { color: #fff; font-size: clamp(1.6rem, 3vw, 2.2rem); }
.cta-block p { color: rgba(255,255,255,0.88); max-width: 480px; margin: 12px auto 24px; }
.cta-block .hero-cta { justify-content: center; margin: 0; }
.cta-block .btn-outline {
  background: transparent;
  color: #fff;
  border-color: rgba(255,255,255,0.45);
}
.cta-block .btn-outline:hover { background: rgba(255,255,255,0.12); border-color: #fff; }
.cta-block .btn-primary {
  background: #fff;
  color: var(--brand-deep);
  box-shadow: none;
}
.cta-block .btn-primary:hover { background: var(--brand-soft); }
.cta-block .btn-whatsapp {
  background: #25d366;
  color: #fff;
  border-color: #25d366;
}
.cta-block .btn-whatsapp:hover {
  background: #1ebe5d;
  border-color: #1ebe5d;
  transform: translateY(-1px);
}

.media {
  border-radius: var(--radius-lg);
  overflow: hidden;
  border: 1px solid var(--line);
}

.hero-card {
  background: #fff;
  border: 1px solid var(--line);
  border-radius: var(--radius-lg);
  padding: 26px;
  box-shadow: var(--shadow);
}
.hero-card h3 { font-size: 1.05rem; margin-bottom: 6px; }
.hero-card .sub { color: var(--muted); font-size: 0.88rem; margin-bottom: 16px; }
.mini-list { display: grid; gap: 12px; }
.mini-list li {
  display: flex;
  gap: 10px;
  align-items: center;
  font-weight: 500;
  font-size: 0.92rem;
  color: var(--ink-2);
}
.mini-list .ic {
  width: 32px;
  height: 32px;
  border-radius: 8px;
  background: var(--brand-soft);
  color: var(--brand);
  display: grid;
  place-items: center;
  flex-shrink: 0;
}
.mini-list svg { width: 16px; height: 16px; }

/* ---------- Footer ---------- */
.site-footer {
  background: var(--navy);
  color: #94a3b8;
  padding: clamp(48px, 6vw, 72px) 0 28px;
}
.footer-grid {
  display: grid;
  grid-template-columns: 1.5fr 1fr 1fr 1.2fr;
  gap: clamp(24px, 4vw, 40px);
}
.footer-brand img {
  content: url("../img/patygo-logo.svg");
  height: 52px;
  width: auto;
  margin-bottom: 14px;
  border-radius: 0;
  background: transparent;
  filter: brightness(0) invert(1);
}
.footer-brand p { font-size: 0.9rem; max-width: 300px; line-height: 1.55; }
.footer-col h4 {
  color: #fff;
  font-size: 0.8rem;
  font-weight: 700;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  margin-bottom: 14px;
}
.footer-col a, .footer-col p {
  display: block;
  padding: 5px 0;
  font-size: 0.9rem;
  color: #94a3b8;
  transition: color var(--t);
}
.footer-col a:hover { color: #fff; }
.footer-col a.footer-contact {
  display: flex;
  align-items: center;
  gap: 8px;
}
.footer-col a.footer-contact svg {
  width: 16px;
  height: 16px;
  flex-shrink: 0;
  opacity: 0.9;
}
.footer-bottom {
  margin-top: 40px;
  padding-top: 20px;
  border-top: 1px solid rgba(255,255,255,0.08);
  display: flex;
  flex-wrap: wrap;
  gap: 12px;
  justify-content: space-between;
  font-size: 0.82rem;
  color: #64748b;
}
.footer-bottom .legal-links { display: flex; flex-wrap: wrap; gap: 16px; }
.footer-bottom a:hover { color: #fff; }
/* ---------- FAB / reveal ---------- */
.fab {
  position: fixed;
  right: 18px;
  bottom: 18px;
  z-index: 90;
  display: grid;
  gap: 10px;
}
.fab a, .fab button {
  width: 48px;
  height: 48px;
  border-radius: 50%;
  display: grid;
  place-items: center;
  box-shadow: var(--shadow);
}
.fab .wa { background: #25d366; color: #fff; }
.fab .top {
  background: #fff;
  color: var(--brand);
  border: 1px solid var(--line);
  opacity: 0;
  pointer-events: none;
  transition: opacity var(--t);
}
.fab .top.show { opacity: 1; pointer-events: auto; }
.fab svg { width: 22px; height: 22px; }

.reveal {
  opacity: 0;
  transform: translateY(20px);
  transition: opacity 0.65s var(--ease), transform 0.65s var(--ease);
}
.reveal.in { opacity: 1; transform: none; }
.reveal.d1 { transition-delay: 0.08s; }
.reveal.d2 { transition-delay: 0.16s; }

/* ---------- Responsive ---------- */
@media (max-width: 1024px) {
  .hero-grid { grid-template-columns: 1fr; }
  .hero-visual { max-width: 480px; }
  .product-grid { grid-template-columns: repeat(2, 1fr); }
  .feature-grid { grid-template-columns: repeat(2, 1fr); }
  .brand-grid { grid-template-columns: repeat(3, 1fr); }
  .footer-grid { grid-template-columns: 1fr 1fr; }
  .dark-band-grid { grid-template-columns: 1fr; }
}

@media (max-width: 860px) {
  :root { --header-h: 64px; }
  .brand img { height: 40px; }
  .nav { gap: 10px; }
  .nav-links {
    position: fixed;
    top: var(--header-h);
    left: 0;
    right: 0;
    bottom: auto;
    z-index: 99;
    flex-direction: column;
    align-items: stretch;
    background: #fff;
    padding: 14px var(--gutter) 20px;
    border-bottom: 1px solid var(--line);
    box-shadow: var(--shadow);
    transform: translateY(-110%);
    transition: transform var(--t), visibility var(--t);
    max-height: calc(100vh - var(--header-h));
    overflow-y: auto;
    pointer-events: none;
    visibility: hidden;
  }
  .nav-links.open {
    transform: translateY(0);
    pointer-events: auto;
    visibility: visible;
  }
  .nav-links a { padding: 14px 12px; font-size: 1rem; }
  .nav-toggle { display: flex; position: relative; z-index: 101; }
  .nav-actions { gap: 8px; }
  .nav-actions .btn-outline { display: none; }
  .nav-actions .btn-primary {
    display: inline-flex;
    padding: 9px 12px;
    font-size: 0.82rem;
    position: relative;
    z-index: 101;
  }
  .hero { padding-top: 36px; }
  .hero-copy h1 { max-width: none; font-size: clamp(1.85rem, 8vw, 2.4rem); }
  .hero-cta .btn { width: 100%; justify-content: center; }
  .hero-stats { gap: 16px 20px; }
  .product-tabs {
    justify-content: flex-start;
    flex-wrap: nowrap;
    overflow-x: auto;
    -webkit-overflow-scrolling: touch;
    scrollbar-width: none;
    padding-bottom: 4px;
    margin-inline: calc(var(--gutter) * -0.25);
    padding-inline: calc(var(--gutter) * 0.25);
  }
  .product-tabs::-webkit-scrollbar { display: none; }
  .product-tabs button { flex-shrink: 0; }
  .split, .contact-grid, .form-row, .checkout-wrap { grid-template-columns: 1fr; }
  .process { grid-template-columns: 1fr 1fr; }
  .g-3 { grid-template-columns: 1fr; }
  .quote-card { padding: 18px; }
  .partners-track {
    --partners-shift: 18px;
    gap: 36px;
    animation-duration: 26s;
  }
  .fab {
    right: max(12px, env(safe-area-inset-right, 0px));
    bottom: max(12px, env(safe-area-inset-bottom, 0px));
  }
  .fab a, .fab button { width: 44px; height: 44px; }
  .form-wrap,
  .checkout-card { padding-right: clamp(28px, 8vw, 40px); }
  main { padding-bottom: 72px; }
  .footer-bottom .legal-links { gap: 10px 14px; }
  html { scroll-padding-top: calc(var(--header-h) + 12px); }
}

@media (max-width: 620px) {
  .feature-grid, .product-grid, .process, .g-2, .stat-grid { grid-template-columns: 1fr; }
  .brand-grid { grid-template-columns: repeat(2, 1fr); gap: 10px; }
  .brand-tile { min-height: 148px; padding: 18px 12px 14px; }
  .brand-tile .logo { height: 60px; }
  .brand-tile .logo img { max-height: 42px; max-width: 150px; }
  .brand-cat-head { flex-direction: column; align-items: flex-start; gap: 4px; }
  .footer-grid { grid-template-columns: 1fr; }
  .footer-bottom { flex-direction: column; align-items: flex-start; }
  .info-table th { width: auto; }
  .product-card .actions .btn { font-size: 0.84rem; padding: 12px 8px; }
  .product-card .price { font-size: 1.2rem; }
  .check-inline { align-items: flex-start; }
  .page-hero { padding: 40px 0 28px; }
}

@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after {
    animation-duration: 0.001ms !important;
    transition-duration: 0.001ms !important;
  }
  .partners-track {
    animation: partners-scroll 32s linear infinite !important;
    animation-duration: 32s !important;
  }
  .reveal { opacity: 1; transform: none; }
}

/* Cart + product detail */
.cart-link [data-cart-count] {
  display: inline-grid;
  place-items: center;
  min-width: 20px;
  height: 20px;
  margin-left: 6px;
  padding: 0 6px;
  border-radius: 999px;
  background: var(--brand);
  color: #fff;
  font-size: 0.72rem;
  font-weight: 700;
}
.products-page .products-hero { padding: 24px 0 30px; }
.products-page .catalog-section { padding: 32px 0 72px; }
.products-page .product-tabs { margin-bottom: 28px; }
.home .hero {
  padding: clamp(36px, 5vw, 56px) 0 clamp(44px, 6vw, 68px);
}
.home .hero-copy .lead { margin-bottom: 22px; }
.home .hero-cta { margin-bottom: 28px; }
.home .hero-stats { padding-top: 20px; }
.home .partners { padding: 20px 0; }
.home .partners-label { margin-bottom: 12px; }
.home .section { padding: clamp(52px, 6vw, 76px) 0; }
.home .section-head {
  margin-bottom: clamp(28px, 4vw, 38px);
}
.home .product-tabs { margin-bottom: 24px; }
.home .dark-band { padding: clamp(52px, 6vw, 72px) 0; }
.home main { padding-bottom: 0; }
.services-page .services-hero { padding: 24px 0 30px; }
.services-page .section { padding: clamp(48px, 6vw, 72px) 0; }
.services-page .section-head {
  margin-bottom: clamp(28px, 4vw, 38px);
}
.services-page .cta-block { padding: clamp(32px, 5vw, 48px); }
.services-page main { padding-bottom: 0; }
.cart-layout {
  display: grid;
  grid-template-columns: minmax(0, 1.65fr) minmax(300px, 0.85fr);
  gap: 24px;
  align-items: start;
}
.cart-hero { padding-bottom: 48px; }
.cart-section { padding: 0 0 clamp(64px, 8vw, 96px); }
.cart-products { padding: 0; overflow: hidden; }
.cart-products-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
  padding: 22px 24px;
  border-bottom: 1px solid var(--line);
}
.cart-products-header > div {
  display: flex;
  align-items: baseline;
  gap: 10px;
}
.cart-products-header h2,
.cart-summary h2 { font-size: 1.15rem; }
.cart-products-header span {
  color: var(--muted);
  font-size: 0.82rem;
}
.cart-clear {
  color: var(--muted);
  font-size: 0.82rem;
  font-weight: 600;
}
.cart-clear:hover { color: #b91c1c; }
.cart-line {
  display: grid;
  grid-template-columns: 96px minmax(0, 1fr) 126px 100px;
  gap: 20px;
  align-items: center;
  padding: 24px;
  border-bottom: 1px solid var(--line);
}
.cart-line:last-child { border-bottom: 0; }
.cart-thumb {
  width: 96px;
  height: 96px;
  padding: 8px;
  border: 1px solid var(--line-soft);
  border-radius: 12px;
  background: var(--bg-soft);
  display: grid;
  place-items: center;
  overflow: hidden;
  font-size: 0.75rem;
  font-weight: 700;
  color: var(--brand);
}
.cart-thumb img { width: 100%; height: 100%; object-fit: contain; }
.cart-meta { min-width: 0; }
.cart-meta .brand-tag {
  margin-bottom: 8px;
  padding: 3px 8px;
  font-size: 0.68rem;
}
.cart-meta h3 {
  font-size: 1rem;
  line-height: 1.35;
}
.cart-meta h3 a:hover { color: var(--brand); }
.cart-unit { color: var(--muted); font-size: 0.85rem; margin-top: 4px; }
.cart-qty { display: grid; gap: 8px; justify-items: center; }
.cart-control-label,
.cart-line-sum span {
  color: var(--muted);
  font-size: 0.72rem;
  font-weight: 600;
}
.cart-stepper {
  display: grid;
  grid-template-columns: 36px 42px 36px;
  height: 38px;
  border: 1px solid var(--line);
  border-radius: 9px;
  overflow: hidden;
  background: #fff;
}
.cart-stepper button {
  display: grid;
  place-items: center;
  color: var(--ink-2);
  font-size: 1.15rem;
}
.cart-stepper button:hover { background: var(--brand-soft); color: var(--brand); }
.cart-stepper input {
  width: 42px;
  padding: 0;
  border: 0;
  border-inline: 1px solid var(--line);
  text-align: center;
  font-weight: 600;
  appearance: textfield;
  -moz-appearance: textfield;
}
.cart-stepper input::-webkit-inner-spin-button,
.cart-stepper input::-webkit-outer-spin-button { appearance: none; margin: 0; }
.cart-remove {
  display: inline-flex;
  align-items: center;
  gap: 5px;
  color: var(--muted);
  font-size: 0.75rem;
}
.cart-remove:hover { color: #b91c1c; }
.cart-remove svg { width: 14px; height: 14px; }
.cart-line-sum {
  display: grid;
  justify-items: end;
  gap: 4px;
  white-space: nowrap;
}
.cart-line-sum strong { font-size: 1rem; }
.cart-summary {
  position: sticky;
  top: calc(var(--header-h) + 20px);
  padding: 24px;
}
.cart-summary h2 {
  margin-bottom: 16px;
  padding-bottom: 16px;
  border-bottom: 1px solid var(--line-soft);
}
.cart-summary .checkout-sum { font-size: 0.9rem; }
.cart-summary .checkout-sum.total {
  margin-top: 10px;
  padding: 18px 0 4px;
}
.cart-summary .checkout-sum.total strong { font-size: 1.35rem; }
.cart-checkout { margin-top: 22px; min-height: 50px; }
.cart-continue { margin-top: 8px; color: var(--brand); border-color: transparent; }
.cart-note {
  margin-top: 14px;
  padding: 12px;
  border-radius: 10px;
  background: var(--brand-soft);
  color: #1e40af;
  font-size: 0.78rem;
  line-height: 1.5;
}
.cart-empty {
  display: grid;
  justify-items: center;
  padding: clamp(48px, 8vw, 80px) 24px;
  text-align: center;
}
.cart-empty-icon {
  display: grid;
  place-items: center;
  width: 56px;
  height: 56px;
  margin-bottom: 18px;
  border-radius: 50%;
  background: var(--brand-soft);
  color: var(--brand);
}
.cart-empty-icon svg { width: 28px; height: 28px; }
.cart-empty h2 { font-size: 1.2rem; }
.cart-empty p {
  max-width: 380px;
  margin: 8px 0 20px;
  color: var(--muted);
}
.detail-grid {
  display: grid;
  grid-template-columns: 1fr 1.1fr;
  gap: clamp(20px, 4vw, 40px);
  align-items: start;
}
.detail-gallery { min-width: 0; }
.detail-media {
  aspect-ratio: 1;
  border-radius: 18px;
  background: linear-gradient(145deg, #eff6ff, #e2e8f0);
  display: grid;
  place-items: center;
  overflow: hidden;
  font-weight: 800;
  color: var(--brand);
  font-size: 1.4rem;
}
.detail-media img { width: 100%; height: 100%; object-fit: contain; }
.detail-thumbs {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(70px, 82px));
  gap: 10px;
  margin-top: 12px;
}
.detail-thumb {
  aspect-ratio: 1;
  padding: 4px;
  border: 1px solid var(--line);
  border-radius: 10px;
  background: #fff;
  cursor: pointer;
  overflow: hidden;
}
.detail-thumb.active {
  border-color: var(--brand);
  box-shadow: 0 0 0 2px rgba(37, 99, 235, 0.14);
}
.detail-thumb img { width: 100%; height: 100%; object-fit: contain; }
.detail-info .brand-tag { margin-bottom: 10px; }
.detail-info h1 { font-size: clamp(1.5rem, 3vw, 2rem); margin: 8px 0; }
.detail-cat { color: var(--muted); margin-bottom: 12px; }
.detail-desc { font-size: 1.02rem; margin-bottom: 12px; }
.detail-body {
  white-space: pre-wrap;
  color: var(--ink-2);
  line-height: 1.6;
  margin-bottom: 18px;
}
.product-description {
  margin-top: clamp(32px, 6vw, 64px);
  padding: clamp(22px, 4vw, 36px);
  border: 1px solid var(--line);
  border-radius: 18px;
  background: #fff;
}
.product-description h2 { margin: 0 0 16px; }
.product-description .detail-desc { font-weight: 600; }
.product-description .detail-body { margin-bottom: 0; }
.detail-info .actions { display: flex; flex-wrap: wrap; gap: 10px; margin-top: 16px; }
@media (max-width: 900px) {
  .cart-layout,
  .detail-grid { grid-template-columns: 1fr; }
  .cart-summary { position: static; }
}
@media (max-width: 700px) {
  .cart-hero { padding-bottom: 32px; }
  .cart-line {
    grid-template-columns: 80px minmax(0, 1fr);
    gap: 16px;
    padding: 20px;
  }
  .cart-thumb { width: 80px; height: 80px; }
  .cart-qty {
    grid-column: 2;
    grid-template-columns: auto auto;
    align-items: center;
    justify-content: start;
    justify-items: start;
  }
  .cart-control-label { grid-column: 1 / -1; }
  .cart-line-sum {
    grid-column: 2;
    grid-template-columns: auto auto;
    justify-content: space-between;
    justify-items: start;
    width: 100%;
  }
}
@media (max-width: 480px) {
  .cart-products-header { align-items: flex-start; padding: 18px; }
  .cart-products-header > div { display: grid; gap: 3px; }
  .cart-line {
    grid-template-columns: 64px minmax(0, 1fr);
    gap: 12px;
    padding: 18px;
  }
  .cart-thumb { width: 64px; height: 64px; padding: 5px; }
  .cart-meta .brand-tag { margin-bottom: 5px; }
  .cart-meta h3 { font-size: 0.92rem; }
  .cart-summary { padding: 20px; }
}
