/* SavrIT HQ — site styles. Loaded after style.css (tokens). */

.container {
  width: 100%;
  max-width: var(--savrit-container);
  margin: 0 auto;
  padding: 0 var(--savrit-space-lg);
}

.section { padding: var(--savrit-space-3xl) 0; }
.section-tight { padding: var(--savrit-space-2xl) 0; }
.section-alt { background: var(--savrit-card); }

.eyebrow {
  display: inline-block;
  font-family: var(--savrit-font-heading);
  font-weight: 600;
  font-size: 13px;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  color: var(--savrit-link);
  background: var(--savrit-green-soft);
  padding: 6px 14px;
  border-radius: var(--savrit-radius-pill);
  margin-bottom: var(--savrit-space-md);
}

.section-head { max-width: 640px; margin: 0 auto var(--savrit-space-2xl); text-align: center; }
.section-head h2 { font-size: clamp(28px, 4vw, 40px); }
.section-head p { font-size: 18px; }

/* Buttons */
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  font-family: var(--savrit-font-heading);
  font-weight: 600;
  font-size: 16px;
  padding: 14px 28px;
  border-radius: var(--savrit-radius-pill);
  border: 1px solid transparent;
  cursor: pointer;
  text-decoration: none;
  transition: transform 0.15s ease, box-shadow 0.15s ease, background 0.15s ease;
  white-space: nowrap;
}
.btn:hover { transform: translateY(-1px); }
.btn-primary {
  background: var(--savrit-gradient);
  color: #fff;
  box-shadow: var(--savrit-shadow-md);
}
.btn-primary:hover { box-shadow: var(--savrit-shadow-lg); }
.btn-outline {
  background: transparent;
  border-color: var(--savrit-border-strong);
  color: var(--savrit-ink);
}
.btn-outline:hover { border-color: var(--savrit-link); color: var(--savrit-link); }
.btn-sm { padding: 10px 20px; font-size: 14px; }
.btn-block { width: 100%; }

/* Header / nav */
.site-header {
  position: sticky;
  top: 0;
  z-index: 100;
  background: color-mix(in srgb, var(--savrit-canvas) 85%, transparent);
  backdrop-filter: saturate(180%) blur(12px);
  border-bottom: 1px solid var(--savrit-line);
}
.site-header .container {
  display: flex;
  align-items: center;
  justify-content: space-between;
  height: var(--savrit-header-h);
  gap: var(--savrit-space-lg);
}
.site-logo { display: flex; align-items: center; gap: 10px; text-decoration: none; }
.site-logo img { height: 36px; width: auto; }
.site-logo span {
  font-family: var(--savrit-font-heading);
  font-weight: 700;
  font-size: 20px;
  color: var(--savrit-ink);
}
.primary-nav { display: flex; align-items: center; gap: var(--savrit-space-xl); flex: 1; justify-content: center; }
.primary-nav ul { list-style: none; display: flex; gap: var(--savrit-space-lg); margin: 0; padding: 0; }
.primary-nav a {
  text-decoration: none;
  font-weight: 500;
  font-size: 15px;
  color: var(--savrit-muted);
  transition: color 0.15s ease;
}
.primary-nav a:hover, .primary-nav a.is-active { color: var(--savrit-link); }
.header-actions { display: flex; align-items: center; gap: var(--savrit-space-md); }
.header-actions .login-link { font-weight: 500; font-size: 15px; text-decoration: none; color: var(--savrit-ink); }

.nav-toggle {
  display: none;
  background: none;
  border: none;
  cursor: pointer;
  padding: 8px;
}
.nav-toggle span { display: block; width: 22px; height: 2px; background: var(--savrit-ink); margin: 5px 0; border-radius: 2px; }

@media (max-width: 900px) {
  .primary-nav {
    position: fixed; inset: var(--savrit-header-h) 0 0 0; background: var(--savrit-canvas);
    flex-direction: column; justify-content: flex-start; padding: var(--savrit-space-xl);
    transform: translateY(-110%);
    /* visibility switches to hidden only after the slide-out finishes, so
       the off-screen nav links can't still be tabbed to while invisible —
       without this, keyboard users tab through 7 "invisible" links before
       reaching anything else in the header on mobile widths. */
    visibility: hidden;
    transition: transform 0.25s ease, visibility 0s linear 0.25s;
  }
  .primary-nav ul { flex-direction: column; align-items: center; width: 100%; gap: var(--savrit-space-lg); }
  .primary-nav.is-open { transform: translateY(0); visibility: visible; transition: transform 0.25s ease, visibility 0s linear 0s; }
  .header-actions .login-link { display: none; }
  .nav-toggle { display: block; }
}

/* Hero */
.hero { padding: var(--savrit-space-3xl) 0; overflow: hidden; }
.hero .container { display: grid; grid-template-columns: 1fr 1fr; gap: var(--savrit-space-2xl); align-items: center; }
.hero-copy h1 { font-size: clamp(36px, 5vw, 56px); }
.hero-copy .gradient-text {
  background: var(--savrit-gradient-text);
  -webkit-background-clip: text;
  background-clip: text;
  color: transparent;
}
.hero-copy p.lede { font-size: 19px; color: var(--savrit-muted); max-width: 480px; }
.hero-actions { display: flex; gap: var(--savrit-space-md); flex-wrap: wrap; margin: var(--savrit-space-lg) 0; }
.store-badges { display: flex; gap: var(--savrit-space-md); align-items: center; margin-top: var(--savrit-space-md); }
.store-badges img { height: 44px; width: auto; }
.store-badges .coming-soon { font-size: 13px; color: var(--savrit-muted); font-style: italic; }
.hero-media { display: flex; justify-content: center; }
.hero-media img { max-height: 620px; width: auto; border-radius: var(--savrit-radius-lg); box-shadow: var(--savrit-shadow-lg); }

@media (max-width: 900px) {
  .hero .container { grid-template-columns: 1fr; }
  .hero-copy p.lede { max-width: none; }
}

/* Card grids */
.grid { display: grid; gap: var(--savrit-space-lg); }
.grid-3 { grid-template-columns: repeat(3, 1fr); }
.grid-4 { grid-template-columns: repeat(4, 1fr); }
@media (max-width: 900px) { .grid-3, .grid-4 { grid-template-columns: repeat(2, 1fr); } }
@media (max-width: 600px) { .grid-3, .grid-4 { grid-template-columns: 1fr; } }

.card {
  background: var(--savrit-card);
  border: 1px solid var(--savrit-line);
  border-radius: var(--savrit-radius-lg);
  padding: var(--savrit-space-xl);
  box-shadow: var(--savrit-shadow-sm);
  transition: box-shadow 0.2s ease, transform 0.2s ease;
}
.card:hover { box-shadow: var(--savrit-shadow-md); transform: translateY(-2px); }

.stat-card { text-align: center; }
.stat-card .stat-value {
  font-family: var(--savrit-font-heading);
  font-weight: 700;
  font-size: 40px;
  background: var(--savrit-gradient-text);
  -webkit-background-clip: text;
  background-clip: text;
  color: transparent;
}
.stat-card .stat-label { color: var(--savrit-muted); font-size: 15px; }

.feature-card .feature-icon {
  width: 48px; height: 48px;
  border-radius: var(--savrit-radius-md);
  background: var(--savrit-gradient-soft);
  display: flex; align-items: center; justify-content: center;
  margin-bottom: var(--savrit-space-md);
  font-size: 22px;
}
.feature-card h3 { font-size: 18px; }
.feature-card p { font-size: 15px; margin-bottom: 0; }

/* Reveal-on-scroll (progressive enhancement — content is visible without JS) */
.reveal { opacity: 0; transform: translateY(16px); transition: opacity 0.5s ease, transform 0.5s ease; }
.reveal.is-visible { opacity: 1; transform: translateY(0); }
.no-js .reveal { opacity: 1; transform: none; }

/* Timeline (How it Works) */
.timeline { display: flex; flex-direction: column; gap: 0; max-width: 760px; margin: 0 auto; }
.timeline-step { display: flex; gap: var(--savrit-space-lg); padding-bottom: var(--savrit-space-2xl); position: relative; }
.timeline-step:last-child { padding-bottom: 0; }
.timeline-step::before {
  content: '';
  position: absolute;
  left: 23px; top: 52px; bottom: 0;
  width: 2px;
  background: var(--savrit-line);
}
.timeline-step:last-child::before { display: none; }
.timeline-num {
  flex-shrink: 0;
  width: 48px; height: 48px;
  border-radius: 50%;
  background: var(--savrit-gradient);
  color: #fff;
  font-family: var(--savrit-font-heading);
  font-weight: 700;
  display: flex; align-items: center; justify-content: center;
  z-index: 1;
}
.timeline-body h3 { margin-bottom: 4px; }

/* Carousel */
.carousel { position: relative; }
.carousel-track { display: flex; gap: var(--savrit-space-lg); overflow-x: auto; scroll-snap-type: x mandatory; padding-bottom: var(--savrit-space-md); scrollbar-width: none; }
.carousel-track::-webkit-scrollbar { display: none; }
.carousel-track img { scroll-snap-align: center; border-radius: var(--savrit-radius-lg); box-shadow: var(--savrit-shadow-md); width: 260px; flex-shrink: 0; }
.carousel-controls { display: flex; justify-content: center; gap: var(--savrit-space-sm); margin-top: var(--savrit-space-md); }
.carousel-controls button { width: 40px; height: 40px; border-radius: 50%; border: 1px solid var(--savrit-line); background: var(--savrit-card); cursor: pointer; }

/* Security / trust */
.trust-section { background: var(--savrit-green-dark); color: #fff; border-radius: var(--savrit-radius-lg); padding: var(--savrit-space-3xl); }
.trust-section h2, .trust-section p { color: #fff; }
.trust-section p { opacity: 0.85; }
.trust-grid { display: grid; grid-template-columns: repeat(2, 1fr); gap: var(--savrit-space-lg); margin-top: var(--savrit-space-xl); }
@media (max-width: 700px) { .trust-grid { grid-template-columns: 1fr; } }
.trust-item { display: flex; gap: var(--savrit-space-md); align-items: flex-start; }
.trust-item .icon { flex-shrink: 0; font-size: 20px; }
.trust-item strong { display: block; margin-bottom: 2px; }
.trust-item p { font-size: 14px; margin-bottom: 0; }

/* Pricing */
.pricing-card { text-align: center; position: relative; }
.pricing-card.is-featured { border-color: var(--savrit-link); box-shadow: var(--savrit-shadow-md); }
.pricing-card .badge {
  position: absolute; top: -14px; left: 50%; transform: translateX(-50%);
  background: var(--savrit-gradient); color: #fff; font-size: 12px; font-weight: 600;
  padding: 4px 14px; border-radius: var(--savrit-radius-pill);
}
.pricing-card .price { font-family: var(--savrit-font-heading); font-size: 36px; font-weight: 700; margin: var(--savrit-space-md) 0 4px; }
.pricing-card .price span { font-size: 15px; font-weight: 400; color: var(--savrit-muted); }
.pricing-card ul { list-style: none; padding: 0; margin: var(--savrit-space-lg) 0; text-align: left; }
.pricing-card li { padding: 6px 0; font-size: 15px; display: flex; gap: 8px; }

/* FAQ */
.faq-list { max-width: 760px; margin: 0 auto; }
.faq-item { border-bottom: 1px solid var(--savrit-line); }
.faq-item summary {
  cursor: pointer;
  list-style: none;
  padding: var(--savrit-space-lg) 0;
  font-family: var(--savrit-font-heading);
  font-weight: 600;
  font-size: 17px;
  display: flex;
  justify-content: space-between;
  align-items: center;
}
.faq-item summary::-webkit-details-marker { display: none; }
.faq-item summary::after { content: '+'; font-size: 22px; color: var(--savrit-link); transition: transform 0.2s ease; }
.faq-item[open] summary::after { transform: rotate(45deg); }
.faq-item p { padding-bottom: var(--savrit-space-lg); }

/* CTA band */
.cta-band { background: var(--savrit-gradient); border-radius: var(--savrit-radius-lg); padding: var(--savrit-space-3xl); text-align: center; color: #fff; }
.cta-band h2, .cta-band p { color: #fff; }
.cta-band p { opacity: 0.9; }
.cta-band .btn-outline { background: #fff; color: var(--savrit-green-dark); border-color: transparent; }

/* Footer */
.site-footer { background: var(--savrit-card); border-top: 1px solid var(--savrit-line); padding: var(--savrit-space-2xl) 0 var(--savrit-space-lg); margin-top: var(--savrit-space-3xl); }
.footer-grid { display: grid; grid-template-columns: 2fr repeat(4, 1fr); gap: var(--savrit-space-xl); }
@media (max-width: 900px) { .footer-grid { grid-template-columns: repeat(2, 1fr); } }
@media (max-width: 560px) { .footer-grid { grid-template-columns: 1fr; } }
.footer-grid h4 { font-size: 14px; text-transform: uppercase; letter-spacing: 0.04em; color: var(--savrit-muted); margin-bottom: var(--savrit-space-md); }
.footer-grid ul { list-style: none; padding: 0; margin: 0; display: flex; flex-direction: column; gap: 10px; }
.footer-grid a { text-decoration: none; color: var(--savrit-ink); font-size: 15px; }
.footer-grid a:hover { color: var(--savrit-link); }
.footer-bottom { display: flex; justify-content: space-between; align-items: center; margin-top: var(--savrit-space-2xl); padding-top: var(--savrit-space-lg); border-top: 1px solid var(--savrit-line); font-size: 14px; color: var(--savrit-muted); flex-wrap: wrap; gap: var(--savrit-space-md); }
.footer-social { display: flex; gap: var(--savrit-space-md); }
.footer-social a { color: var(--savrit-muted); text-decoration: none; }

/* Coming soon placeholder page */
.coming-soon-page { text-align: center; padding: var(--savrit-space-3xl) 0; }

/* Dark mode toggle button */
.theme-toggle { background: none; border: 1px solid var(--savrit-line); border-radius: var(--savrit-radius-pill); width: 40px; height: 40px; cursor: pointer; display: flex; align-items: center; justify-content: center; }

/* Visually hidden but accessible to screen readers */
.screen-reader-text { position: absolute !important; width: 1px; height: 1px; overflow: hidden; clip: rect(1px, 1px, 1px, 1px); white-space: nowrap; }

/* Skip link (a11y) */
.skip-link { position: absolute; left: -9999px; top: 0; background: var(--savrit-green-primary); color: #fff; padding: 12px 20px; z-index: 200; border-radius: 0 0 var(--savrit-radius-sm) 0; }
.skip-link:focus { left: 0; }

/* ==========================================================================
   Phase 2 — inner pages
   ========================================================================== */

/* Page hero (used at the top of every inner page) */
.page-hero { padding: var(--savrit-space-2xl) 0 var(--savrit-space-xl); text-align: center; }
.page-hero h1 { font-size: clamp(32px, 4.5vw, 48px); }
.page-hero p.lede { max-width: 640px; margin: 0 auto; font-size: 18px; }

/* Feature rows (Features page) */
.feature-row { display: grid; grid-template-columns: 1fr 1fr; gap: var(--savrit-space-2xl); align-items: center; padding: var(--savrit-space-2xl) 0; border-bottom: 1px solid var(--savrit-line); }
.feature-row:last-child { border-bottom: none; }
.feature-row.is-reversed .feature-row-visual { order: -1; }
.feature-row-icon { width: 56px; height: 56px; border-radius: var(--savrit-radius-md); background: var(--savrit-gradient-soft); display: flex; align-items: center; justify-content: center; font-size: 26px; margin-bottom: var(--savrit-space-md); }
.feature-row h2 { font-size: 26px; }
.feature-row ul { list-style: none; padding: 0; margin: var(--savrit-space-md) 0 0; }
.feature-row li { padding: 6px 0 6px 28px; position: relative; color: var(--savrit-muted); }
.feature-row li::before { content: '✓'; position: absolute; left: 0; color: var(--savrit-link); font-weight: 700; }
.feature-row-visual { background: var(--savrit-gradient-soft); border-radius: var(--savrit-radius-lg); padding: var(--savrit-space-2xl); display: flex; align-items: center; justify-content: center; min-height: 220px; }
.feature-row-visual .visual-icon { font-size: 64px; }
@media (max-width: 800px) {
  .feature-row, .feature-row.is-reversed { grid-template-columns: 1fr; }
  .feature-row.is-reversed .feature-row-visual { order: 0; }
}

/* Comparison table (Pricing page) */
.compare-table-wrap { overflow-x: auto; }
.compare-table { width: 100%; border-collapse: collapse; min-width: 640px; }
.compare-table th, .compare-table td { padding: 14px 18px; text-align: center; border-bottom: 1px solid var(--savrit-line); }
.compare-table th:first-child, .compare-table td:first-child { text-align: left; color: var(--savrit-ink); font-weight: 500; }
.compare-table thead th { font-family: var(--savrit-font-heading); font-weight: 600; padding-top: var(--savrit-space-lg); }
.compare-table td.yes { color: var(--savrit-link); font-weight: 700; }
.compare-table td.no { color: var(--savrit-muted); }
.compare-table tbody tr:hover { background: var(--savrit-canvas); }

/* Forms (Contact / Partner / Waitlist) */
.savrit-form { max-width: 560px; }
.savrit-form.is-centered { margin: 0 auto; }
.form-row { margin-bottom: var(--savrit-space-md); }
.form-row label { display: block; font-weight: 500; font-size: 14px; margin-bottom: 6px; }
.form-row input, .form-row textarea {
  width: 100%;
  padding: 12px 16px;
  border: 1px solid var(--savrit-border-strong);
  border-radius: var(--savrit-radius-sm);
  background: var(--savrit-card);
  color: var(--savrit-ink);
  font-family: var(--savrit-font-body);
  font-size: 15px;
}
.form-row input:focus, .form-row textarea:focus { outline: 2px solid var(--savrit-link); outline-offset: 1px; border-color: transparent; }
.form-note { font-size: 13px; color: var(--savrit-muted); margin-top: var(--savrit-space-sm); }
/* Was --savrit-green-dark text on --savrit-green-soft — 7.7:1 in light
   mode but only 1.78:1 in dark mode (both colors go dark together).
   --savrit-link tracks the background correctly in both themes. */
.form-success { background: var(--savrit-green-soft); color: var(--savrit-link); border-radius: var(--savrit-radius-sm); padding: 14px 18px; margin-bottom: var(--savrit-space-lg); font-weight: 500; }
.form-error { background: var(--savrit-danger-soft); color: var(--savrit-danger); border-radius: var(--savrit-radius-sm); padding: 14px 18px; margin-bottom: var(--savrit-space-lg); font-weight: 500; }

/* Waitlist / QR (Download page) */
.qr-placeholder {
  width: 160px; height: 160px;
  border: 2px dashed var(--savrit-line);
  border-radius: var(--savrit-radius-md);
  display: flex; align-items: center; justify-content: center;
  flex-direction: column;
  gap: 6px;
  color: var(--savrit-muted);
  font-size: 12px;
  text-align: center;
  padding: var(--savrit-space-sm);
  margin: 0 auto;
}
.qr-placeholder .qr-icon { font-size: 40px; }
.requirements-list { list-style: none; padding: 0; max-width: 480px; margin: 0 auto; }
.requirements-list li { display: flex; justify-content: space-between; padding: 12px 0; border-bottom: 1px solid var(--savrit-line); }
.requirements-list li span:first-child { color: var(--savrit-muted); }
.requirements-list li span:last-child { font-weight: 500; }

/* Retailer badge chips (Partners page) */
.retailer-chips { display: flex; flex-wrap: wrap; gap: var(--savrit-space-sm); justify-content: center; }
.retailer-chip {
  background: var(--savrit-card);
  border: 1px solid var(--savrit-line);
  border-radius: var(--savrit-radius-pill);
  padding: 10px 20px;
  font-weight: 600;
  font-size: 14px;
}

/* Values grid (About page) */
.value-card { text-align: center; }
.value-card .value-icon { font-size: 32px; margin-bottom: var(--savrit-space-sm); }

/* Contact routing cards */
.contact-route-icon { font-size: 24px; margin-bottom: var(--savrit-space-sm); }
.contact-route a { color: var(--savrit-link); font-weight: 600; text-decoration: none; }
.contact-route a:hover { text-decoration: underline; }

/* ==========================================================================
   Phase 3 — blog, support, legal
   ========================================================================== */

/* Legal pages (Privacy / Terms / Cookies / POPIA) */
.legal-notice {
  background: var(--savrit-warn-soft);
  border: 1px solid var(--savrit-warn-border);
  color: var(--savrit-warn);
  border-radius: var(--savrit-radius-sm);
  padding: 14px 18px;
  margin-bottom: var(--savrit-space-xl);
  font-size: 14px;
}
.legal-notice strong { display: block; margin-bottom: 2px; }
.legal-content { max-width: 720px; margin: 0 auto; }
.legal-content h2 { font-size: 22px; margin-top: var(--savrit-space-xl); }
.legal-content h3 { font-size: 17px; margin-top: var(--savrit-space-lg); }
.legal-content ul, .legal-content ol { color: var(--savrit-muted); padding-left: 1.3em; }
.legal-content li { margin-bottom: 6px; }
.legal-content .updated-date { color: var(--savrit-muted); font-size: 14px; margin-bottom: var(--savrit-space-lg); }

/* Support Centre form grid */
.support-forms { display: grid; grid-template-columns: 1fr 1fr; gap: var(--savrit-space-xl); }
@media (max-width: 800px) { .support-forms { grid-template-columns: 1fr; } }

/* Roadmap list (Support Centre) */
.roadmap-list { list-style: none; padding: 0; max-width: 640px; margin: 0 auto; }
.roadmap-list li { display: flex; gap: var(--savrit-space-md); padding: 14px 0; border-bottom: 1px solid var(--savrit-line); align-items: flex-start; }
.roadmap-status { flex-shrink: 0; font-size: 12px; font-weight: 600; padding: 4px 10px; border-radius: var(--savrit-radius-pill); background: var(--savrit-green-soft); color: var(--savrit-link); white-space: nowrap; }

/* Newsletter box (Insights blog) */
.newsletter-box { background: var(--savrit-gradient-soft); border-radius: var(--savrit-radius-lg); padding: var(--savrit-space-xl); text-align: center; }
.newsletter-box form { display: flex; gap: var(--savrit-space-sm); max-width: 420px; margin: var(--savrit-space-md) auto 0; }
.newsletter-box input[type="email"] {
  flex: 1;
  padding: 12px 16px;
  border: 1px solid var(--savrit-border-strong);
  border-radius: var(--savrit-radius-sm);
  font-family: var(--savrit-font-body);
  background: var(--savrit-card);
  color: var(--savrit-ink);
}
@media (max-width: 480px) { .newsletter-box form { flex-direction: column; } }
