/* RohimaRetails palette */
:root {
  --primary: #1E3A8A;
  --secondary: #F97316;
  --background: #F8FAFC;
  --surface: #FFFFFF;
  --border: #E5E7EB;
  --divider: #CBD5E1;
  --text-primary: #0F172A;
  --text-secondary: #475569;
  --text-muted: #94A3B8;
  --text-inverse: #FFFFFF;
  --page-padding: 1.25rem;
}
@media (min-width: 640px) { :root { --page-padding: 1.5rem; } }
@media (min-width: 1024px) { :root { --page-padding: 2rem; } }

* { box-sizing: border-box; }
body { margin: 0; font-family: system-ui, sans-serif; background: var(--background); color: var(--text-primary); line-height: 1.5; -webkit-font-smoothing: antialiased; }

/* ========== Home page (index.html) – simple layout ========== */
.page { max-width: 72rem; margin: 0 auto; padding: 0 var(--page-padding); }

.header { position: sticky; top: 0; z-index: 50; border-bottom: 1px solid var(--border); background: var(--surface); }
.header-inner { display: flex; align-items: center; justify-content: space-between; padding: 0.75rem 0; }
.header .logo { display: block; }
.header a { text-decoration: none; color: inherit; }
.nav { display: none; gap: 2rem; font-size: 0.875rem; color: var(--text-secondary); }
.nav a:hover { color: var(--primary); }
@media (min-width: 768px) { .nav { display: flex; align-items: center; } }
.menu-btn { display: block; padding: 0.5rem; border: none; background: none; color: var(--text-secondary); cursor: pointer; }
@media (min-width: 768px) { .menu-btn { display: none; } }
.menu-panel { display: none; border-top: 1px solid var(--border); background: var(--surface); padding: 1rem var(--page-padding); }
.menu-panel.open { display: block; }
.menu-panel a { display: block; padding: 0.5rem 0; color: var(--text-secondary); text-decoration: none; }
.menu-panel a:hover { color: var(--primary); }

.products-sec { padding: 2rem 0; }
.products-sec h2 { margin: 0 0 1.25rem; font-size: 1.5rem; font-weight: 700; color: var(--text-primary); }
.products { display: flex; flex-wrap: wrap; gap: 2rem; align-items: center; }
.products a { display: block; }
.products img { width: 5rem; height: 5rem; object-fit: contain; display: block; }
.products a:hover { opacity: 0.85; }

.about-sec { padding: 2rem 0; }
.about-sec h2 { margin: 0 0 1rem; font-size: 1.5rem; font-weight: 700; color: var(--text-primary); }
.about-sec p { margin: 0 0 1rem; color: var(--text-secondary); line-height: 1.65; }
.about-sec p:last-child { margin-bottom: 0; }
.about-sec a { color: var(--primary); text-decoration: none; }
.about-sec a:hover { text-decoration: underline; }

.team-sec { padding: 2rem 0; }
.team-sec h2 { margin: 0 0 1.25rem; font-size: 1.5rem; font-weight: 700; color: var(--text-primary); }
.team-grid { display: grid; gap: 1.5rem; grid-template-columns: repeat(auto-fill, minmax(140px, 1fr)); }
.team-member { display: flex; flex-direction: column; align-items: center; text-align: center; }
.team-avatar { width: 4rem; height: 4rem; border-radius: 50%; margin-bottom: 0.5rem; display: block; object-fit: cover; }
.team-name { font-weight: 600; color: var(--text-primary); }
.team-role { font-size: 0.75rem; color: var(--text-muted); margin-top: 0.25rem; }

.footer { background: var(--surface); padding: 2rem 0; margin-top: 2rem; font-size: 0.875rem; color: var(--text-muted); }

/* ========== Pricing page ========== */
.pricing-page { min-height: 60vh; }
.pricing-banner {
  background: linear-gradient(135deg, #1E3A8A 0%, #1e40af 45%, #2563eb 100%);
  padding: 3rem 0 3.5rem;
  text-align: center;
  color: white;
}
.pricing-banner .page { max-width: 40rem; }
.pricing-badge {
  display: inline-block;
  background: var(--secondary);
  color: white;
  font-size: 0.75rem;
  font-weight: 700;
  letter-spacing: 0.05em;
  text-transform: uppercase;
  padding: 0.35rem 0.75rem;
  border-radius: 9999px;
  margin-bottom: 1rem;
}
.pricing-banner h1 { margin: 0; font-size: 1.875rem; font-weight: 700; letter-spacing: -0.02em; }
@media (min-width: 640px) { .pricing-banner h1 { font-size: 2.25rem; } }
.pricing-tagline { margin: 0.75rem 0 0; font-size: 1rem; opacity: 0.95; }
.pricing-cards { padding: 2.5rem 0 4rem; }
.pricing-grid {
  display: grid;
  gap: 1.5rem;
  grid-template-columns: 1fr;
}
@media (min-width: 768px) { .pricing-grid { grid-template-columns: repeat(2, 1fr); gap: 2rem; } }
.pricing-card {
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: 1rem;
  padding: 2rem;
  display: flex;
  flex-direction: column;
  box-shadow: 0 4px 6px -1px rgba(0,0,0,.06);
  transition: box-shadow .2s, border-color .2s;
}
.pricing-card:hover { box-shadow: 0 10px 25px -5px rgba(0,0,0,.08); border-color: var(--divider); }
.pricing-card-featured {
  border-color: var(--primary);
  border-width: 2px;
  box-shadow: 0 10px 25px -5px rgba(30,58,138,.15);
}
.pricing-card-featured:hover { border-color: var(--primary); box-shadow: 0 20px 35px -5px rgba(30,58,138,.2); }
.pricing-card-head { margin-bottom: 1.5rem; }
.pricing-popular {
  display: inline-block;
  background: var(--primary);
  color: white;
  font-size: 0.7rem;
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 0.04em;
  padding: 0.25rem 0.6rem;
  border-radius: 0.25rem;
  margin-bottom: 0.75rem;
}
.pricing-card h2 { margin: 0 0 0.5rem; font-size: 1.5rem; font-weight: 700; color: var(--text-primary); }
.pricing-desc { margin: 0; font-size: 0.875rem; color: var(--text-secondary); line-height: 1.5; }
.pricing-features {
  list-style: none;
  margin: 0 0 1.5rem;
  padding: 0;
  flex: 1;
}
.pricing-features li {
  position: relative;
  padding-left: 1.25rem;
  margin-bottom: 0.5rem;
  font-size: 0.875rem;
  color: var(--text-secondary);
}
.pricing-features li::before {
  content: "✓";
  position: absolute;
  left: 0;
  color: var(--primary);
  font-weight: 700;
}
.pricing-amounts { margin-bottom: 1.5rem; }
.pricing-row {
  display: flex;
  flex-wrap: wrap;
  align-items: baseline;
  gap: 0.5rem 0.75rem;
  padding: 0.75rem 0;
  border-bottom: 1px solid var(--border);
}
.pricing-row:last-of-type { border-bottom: none; }
.pricing-annual .pricing-value { font-size: 1.5rem; font-weight: 700; color: var(--text-primary); }
.pricing-monthly .pricing-value { font-size: 1.125rem; font-weight: 600; color: var(--text-secondary); }
.pricing-label { font-size: 0.8125rem; color: var(--text-muted); min-width: 4rem; }
.pricing-value .currency { font-size: 0.9em; margin-right: 0.05em; }
.pricing-note { font-size: 0.75rem; color: var(--text-muted); }
.pricing-cta {
  display: block;
  text-align: center;
  padding: 0.875rem 1.5rem;
  border-radius: 0.5rem;
  font-size: 0.9375rem;
  font-weight: 600;
  text-decoration: none;
  background: var(--background);
  color: var(--primary);
  border: 2px solid var(--primary);
  transition: background .2s, color .2s;
}
.pricing-cta:hover { background: rgba(30,58,138,.08); }
.pricing-cta-primary { background: var(--secondary); color: white; border-color: var(--secondary); }
.pricing-cta-primary:hover { background: #ea580c; border-color: #ea580c; }
.pricing-footer-note { margin: 2rem 0 0; font-size: 0.8125rem; color: var(--text-muted); text-align: center; }

/* ========== Other pages (products, product detail, legal) ========== */
.container { max-width: 72rem; margin: 0 auto; padding: 0 var(--page-padding); }
.site-header .container,
.site-footer .container,
.content-block-full .container { max-width: none; }

.site-header {
  position: sticky; top: 0; z-index: 50;
  border-bottom: 1px solid var(--border);
  background: rgba(255,255,255,.95);
  backdrop-filter: blur(8px);
}
.site-header .inner { display: flex; align-items: center; justify-content: space-between; padding: 0.75rem 0; }
.site-header a { text-decoration: none; color: inherit; }
.site-header .logo { display: block; width: 48px; height: 48px; }
.site-nav { display: none; }
@media (min-width: 768px) {
  .site-nav { display: flex; align-items: center; gap: 2rem; font-size: 0.875rem; font-weight: 500; color: var(--text-secondary); }
  .site-nav a:hover { color: var(--primary); }
}
.site-header .cta { display: none; padding: 0.5rem 1rem; border-radius: 0.5rem; font-size: 0.875rem; font-weight: 600; background: var(--secondary); color: var(--text-inverse); }
.site-header .cta:hover { background: #ea580c; }
@media (min-width: 768px) { .site-header .cta { display: inline-block; } }

.menu-toggle { display: block; padding: 0.5rem; border: none; background: none; color: var(--text-secondary); cursor: pointer; border-radius: 0.5rem; }
.menu-toggle:hover { background: var(--divider); }
@media (min-width: 768px) { .menu-toggle { display: none; } }
.site-header .menu-panel { display: none; border-top: 1px solid var(--border); background: var(--surface); padding: 1rem var(--page-padding); }
.site-header .menu-panel.open { display: block; }
.site-header .menu-panel a { display: block; padding: 0.5rem 0; color: var(--text-secondary); text-decoration: none; }
.site-header .menu-panel a:hover { color: var(--primary); }

main { min-height: calc(100vh - 12rem); }

.hero {
  background: radial-gradient(ellipse 80% 50% at 50% -20%, rgba(30,58,138,.3), transparent 50%),
    linear-gradient(135deg, #1E3A8A 0%, #1e40af 50%, #2563eb 100%);
  padding: 4rem 0 6rem;
  overflow: hidden;
}
@media (min-width: 1024px) { .hero { padding: 6rem 0 8rem; } }
.hero .wrap { max-width: 56rem; margin: 0 auto; padding: 0 var(--page-padding); text-align: center; }
.hero h1 { font-size: 2.25rem; font-weight: 700; color: white; margin: 0; letter-spacing: -0.025em; }
@media (min-width: 640px) { .hero h1 { font-size: 3rem; } }
@media (min-width: 1024px) { .hero h1 { font-size: 3.75rem; } }
.hero .tagline { margin-top: 1.5rem; font-size: 1.125rem; color: rgba(255,255,255,.9); max-width: 42rem; margin-left: auto; margin-right: auto; }
@media (min-width: 640px) { .hero .tagline { font-size: 1.25rem; } }
.hero .buttons { margin-top: 2.5rem; display: flex; flex-wrap: wrap; gap: 1rem; justify-content: center; }
.hero .btn { display: inline-block; padding: 0.875rem 1.5rem; border-radius: 0.5rem; font-size: 1rem; font-weight: 600; text-decoration: none; }
.hero .btn-primary { background: var(--secondary); color: white; }
.hero .btn-primary:hover { background: #ea580c; }
.hero .btn-outline { border: 2px solid rgba(255,255,255,.8); color: white; background: transparent; }
.hero .btn-outline:hover { background: rgba(255,255,255,.1); }

.value-strip { border-bottom: 1px solid var(--border); background: var(--surface); padding: 3rem 0; }
.value-strip .grid { display: grid; gap: 2rem; max-width: 64rem; margin: 0 auto; padding: 0 var(--page-padding); text-align: center; }
@media (min-width: 640px) { .value-strip .grid { grid-template-columns: repeat(3, 1fr); } }
.value-strip .icon { width: 3rem; height: 3rem; margin: 0 auto; border-radius: 0.75rem; background: rgba(30,58,138,.1); color: var(--primary); display: flex; align-items: center; justify-content: center; }
.value-strip h3 { margin: 0.75rem 0 0.25rem; font-size: 1rem; font-weight: 600; color: var(--text-primary); }
.value-strip p { margin: 0; font-size: 0.875rem; color: var(--text-secondary); }

.section { padding: 5rem 0; }
.section.section-compact { padding: 1.5rem 0; }
.section .head { text-align: center; max-width: 36rem; margin: 0 auto 3.5rem; padding-left: var(--page-padding); padding-right: var(--page-padding); }
.section .head.head-compact { margin-bottom: 1.25rem; }
.section h2 { font-size: 1.5rem; font-weight: 700; color: var(--text-primary); margin: 0; }
@media (min-width: 640px) { .section h2 { font-size: 1.875rem; } }
.section .sub { margin-top: 0.5rem; color: var(--text-secondary); }

.content-block { padding: 4rem 0; }
.content-block .section-title { font-size: 1.5rem; font-weight: 700; color: var(--text-primary); margin: 0 0 1.25rem; }
.content-block p { margin: 0 0 1rem; color: var(--text-secondary); line-height: 1.65; max-width: 65ch; }
.content-block p:last-child { margin-bottom: 0; }
.content-block a { color: var(--primary); text-decoration: none; }
.content-block a:hover { text-decoration: underline; }
.content-block-full .container { max-width: none; }
.content-block-full p { max-width: none; }
.product-logos-only .product-card p { display: none; }
.product-logos-only .product-card .link { display: none; }
.product-logos-only .product-card {
  padding: 0; border: none; background: transparent; box-shadow: none;
}
.product-logos-only .product-card:hover { border-color: transparent; box-shadow: none; opacity: 0.85; }
.product-logos-only .product-card .logo-wrap { display: none; }
.product-logos-only .product-card img { width: 5rem; height: 5rem; object-fit: contain; display: block; }
.product-logos-only .product-card h3 { display: none; }

/* Product detail: content section below card */
.product-detail .product-content.section { padding-top: 2.5rem; }
.product-detail .product-content .container { max-width: 48rem; }

/* Retails diagrams */
.retails-diagrams { padding: 2.5rem 0; }
.retails-diagrams .container { max-width: 52rem; }
.retails-diagrams .section-title { margin-bottom: 1.5rem; }
.diagram-block {
  margin-bottom: 3rem;
  padding: 1.75rem;
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: 1rem;
  box-shadow: 0 1px 3px rgba(0,0,0,.04);
}
.diagram-block:last-child { margin-bottom: 0; }
.diagram-title { margin: 0 0 0.5rem; font-size: 1.125rem; font-weight: 700; color: var(--text-primary); }
.diagram-desc { margin: 0 0 1.25rem; font-size: 0.9375rem; color: var(--text-secondary); line-height: 1.5; }
.flow-diagram { margin: 0 auto 1.25rem; overflow: hidden; }
.flow-svg { width: 100%; height: auto; max-width: 100%; display: block; }
.flow-diagram.staff-diagram .flow-svg { max-width: 420px; margin: 0 auto; }
.flow-diagram.offline-diagram .flow-svg { max-width: 460px; margin: 0 auto; }
.diagram-benefits {
  list-style: none;
  margin: 0;
  padding: 0;
  font-size: 0.875rem;
  color: var(--text-secondary);
  line-height: 1.6;
}
.diagram-benefits li {
  position: relative;
  padding-left: 1.25rem;
  margin-bottom: 0.4rem;
}
.diagram-benefits li::before {
  content: "✓";
  position: absolute;
  left: 0;
  color: var(--primary);
  font-weight: 700;
}
.diagram-benefits li:last-child { margin-bottom: 0; }
@media (max-width: 480px) {
  .flow-diagram { margin-left: -0.5rem; margin-right: -0.5rem; }
  .flow-svg { min-height: 80px; }
}

/* Product grid */
.product-grid { display: grid; gap: 2rem; max-width: 64rem; margin: 0 auto; }
@media (min-width: 640px) { .product-grid { grid-template-columns: repeat(3, 1fr); } }
.product-card {
  display: flex; flex-direction: column; align-items: center; text-align: center;
  padding: 2rem; border-radius: 1rem; border: 1px solid var(--border);
  background: var(--surface); text-decoration: none; color: inherit;
  transition: border-color .2s, box-shadow .2s;
}
.product-card:hover { border-color: rgba(30,58,138,.4); box-shadow: 0 10px 15px -3px rgba(0,0,0,.1); }
.product-card .logo-wrap { width: 7rem; height: 7rem; display: flex; align-items: center; justify-content: center; border-radius: 1rem; background: var(--background); padding: 1rem; }
.product-card img { width: 5rem; height: 5rem; object-fit: contain; }
.product-card h3 { margin: 1.25rem 0 0.5rem; font-size: 1rem; font-weight: 600; color: var(--text-primary); }
.product-card p { margin: 0; font-size: 0.875rem; color: var(--text-secondary); }
.product-card .link { margin-top: 1rem; font-size: 0.875rem; font-weight: 500; color: var(--primary); }
.product-card:hover .link { text-decoration: underline; }

.btn-wrap { text-align: center; margin-top: 3rem; }
.btn { display: inline-block; padding: 0.5rem 1.25rem; border-radius: 0.5rem; font-size: 0.875rem; font-weight: 600; text-decoration: none; }
.btn-primary { background: var(--primary); color: white; }
.btn-primary:hover { background: #1e3a5f; }

/* Products page */
.page-title { padding: 4rem var(--page-padding) 2rem; text-align: center; }
.page-title h1 { font-size: 1.875rem; font-weight: 700; margin: 0; color: var(--text-primary); }
@media (min-width: 640px) { .page-title h1 { font-size: 2.25rem; } }
.page-title p { margin: 0.5rem 0 0; color: var(--text-secondary); }

/* Product detail */
.product-detail { max-width: 42rem; margin: 0 auto; padding: 4rem var(--page-padding); }
.product-detail .back { display: inline-block; margin-bottom: 2rem; font-size: 0.875rem; font-weight: 500; color: var(--primary); text-decoration: none; }
.product-detail .back:hover { text-decoration: underline; }
.product-detail .card { text-align: center; padding: 2rem; border-radius: 1rem; border: 1px solid var(--border); background: var(--surface); }
.product-detail .card img { width: 8rem; height: 8rem; object-fit: contain; }
.product-detail .card h1 { margin: 1.5rem 0 1rem; font-size: 1.875rem; color: var(--text-primary); }
.product-detail .card p { margin: 0; color: var(--text-secondary); }
.product-detail .card .url { margin-top: 1rem; font-size: 0.875rem; color: var(--text-secondary); }
.product-detail .card .url a { color: var(--primary); }
.product-detail .card .url a:hover { text-decoration: underline; }
.product-detail .card .product-actions { margin-top: 2rem; display: flex; flex-wrap: wrap; gap: 0.75rem; justify-content: center; align-items: center; }
.product-detail .card .go { display: inline-block; padding: 0.75rem 1.5rem; border-radius: 0.5rem; font-size: 0.875rem; font-weight: 600; background: var(--secondary); color: white; text-decoration: none; }
.product-detail .card .go:hover { background: #ea580c; }
.product-detail .card .go-download { background: transparent; color: var(--primary); border: 2px solid var(--primary); }
.product-detail .card .go-download:hover { background: rgba(30, 58, 138, 0.08); }

/* Legal pages */
.legal { max-width: 48rem; margin: 0 auto; padding: 4rem var(--page-padding); }
.legal h1 { font-size: 1.875rem; font-weight: 700; margin: 0; color: var(--text-primary); }
.legal .updated { margin-top: 0.5rem; font-size: 0.875rem; color: var(--text-muted); }
.legal section { margin-top: 2rem; color: var(--text-secondary); }
.legal h2 { font-size: 1.25rem; font-weight: 600; color: var(--text-primary); margin: 0 0 0.5rem; }
.legal section p { margin: 0; }

/* Footer */
.site-footer { background: var(--surface); margin-top: 5rem; padding: 3rem 0; }
.site-footer .grid { display: grid; gap: 2rem; grid-template-columns: repeat(2, 1fr); max-width: 72rem; margin: 0 auto; padding: 0 var(--page-padding); }
@media (min-width: 768px) { .site-footer .grid { grid-template-columns: repeat(4, 1fr); } }
.site-footer h3 { font-size: 0.875rem; font-weight: 600; color: var(--text-primary); margin: 0 0 1rem; }
.site-footer ul { list-style: none; margin: 0; padding: 0; }
.site-footer li { margin-bottom: 0.5rem; }
.site-footer a { font-size: 0.875rem; color: var(--text-secondary); text-decoration: none; }
.site-footer a:hover { color: var(--primary); }
.site-footer .bottom { margin-top: 2.5rem; padding-top: 2rem; font-size: 0.875rem; color: var(--text-muted); }
