/* gateway.css - Usaka Wellness Gateway & Showcase Redesign */

/* Ensure the layout spans correctly on the login page */
body.login-page {
  background-color: #f5f3ee !important; /* Warm off-white/paper */
  color: #1a1c1a; /* Charcoal / deep ink */
  font-family: 'Inter', sans-serif;
}

body.login-page .app {
  min-height: 100vh;
}

/* Hide the default topbar since the gateway has its own header */
body.login-page .topbar { display: none !important; }

/* The container for the new gateway page inside #app-content */
.gateway-wrapper {
  --bg-color: #f5f3ee;
  --text-main: #1a1c1a;
  --text-muted: #646a66;
  --teal: #1a6f73;
  --teal-hover: #14595c;
  --gold: #b8962e;
  --header-bg: #202422;
  --white: #ffffff;
  --border-color: #e2dfd8;
  
  width: 100%;
  display: flex;
  flex-direction: column;
}

.gateway-wrapper h1, 
.gateway-wrapper h2, 
.gateway-wrapper h3, 
.gateway-wrapper h4,
.gateway-wrapper .zodiak-font {
  font-family: 'Zodiak', serif;
  font-weight: 400;
  color: var(--text-main);
  text-wrap: balance;
}

.gateway-wrapper .container {
  max-width: 1150px;
  margin: 0 auto;
  padding: 0 24px;
}

/* Header */
.gateway-header {
  background-color: var(--header-bg);
  color: var(--white);
  padding: 16px 0;
  width: 100%;
}
.gateway-header-content {
  display: flex;
  justify-content: space-between;
  align-items: center;
}
.gateway-brand {
  font-size: 14px;
  font-weight: 500;
  letter-spacing: 0.5px;
}
.gateway-header-link {
  color: var(--white);
  text-decoration: none;
  font-size: 13px;
  opacity: 0.8;
  transition: opacity 0.2s;
  display: flex;
  align-items: center;
  gap: 6px;
}
.gateway-header-link:hover { opacity: 1; }

/* Hero / Access Area */
.gateway-hero-area {
  flex: 1;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 60px 20px;
  border-bottom: 1px solid var(--border-color);
}
.gateway-card {
  background: var(--white);
  max-width: 1100px;
  width: 100%;
  border-radius: 12px;
  border: 1px solid var(--border-color);
  box-shadow: 0 12px 40px rgba(0, 0, 0, 0.04);
  display: grid;
  grid-template-columns: 1.2fr 1fr;
  overflow: hidden;
}

/* Left Column: Product Meaning */
.gateway-product-meaning {
  padding: 60px 50px;
  background-color: var(--white);
  border-right: 1px solid var(--border-color);
  display: flex;
  flex-direction: column;
  justify-content: center;
}
.gateway-eyebrow {
  font-size: 11px;
  text-transform: uppercase;
  letter-spacing: 1.5px;
  font-weight: 700;
  color: var(--gold);
  margin-bottom: 24px;
  display: block;
}
.gateway-headline {
  font-size: 42px;
  line-height: 1.1;
  margin-bottom: 24px;
  color: var(--text-main);
}
.gateway-body-copy {
  font-size: 16px;
  color: var(--text-muted);
  margin-bottom: 40px;
  max-width: 90%;
  line-height: 1.6;
}
.gateway-workflow {
  font-size: 13px;
  font-weight: 600;
  color: var(--text-main);
  display: flex;
  align-items: center;
  gap: 12px;
  margin-bottom: 40px;
  letter-spacing: 0.5px;
  text-transform: uppercase;
}
.gateway-workflow span { opacity: 0.8; }
.gateway-workflow .arrow { color: var(--border-color); }

.gateway-framework-chips {
  display: flex;
  flex-wrap: wrap;
  gap: 12px;
}
.gateway-chip {
  font-size: 12px;
  font-weight: 500;
  padding: 6px 14px;
  border-radius: 100px;
  border: 1px solid var(--border-color);
  color: var(--text-muted);
  background-color: #faf9f7;
}
.gateway-chip.active {
  border-color: var(--teal);
  color: var(--teal);
  background-color: #f0f7f7;
}

/* Right Column: Access Panel */
.gateway-access-panel {
  padding: 60px 50px;
  background-color: #faf9f7;
  display: flex;
  flex-direction: column;
  position: relative;
}
.gateway-lang-switcher {
  position: absolute;
  top: 24px;
  right: 24px;
  display: flex;
  background: var(--white);
  border: 1px solid var(--border-color);
  border-radius: 6px;
  overflow: hidden;
}
.gateway-lang-btn {
  background: none;
  border: none;
  padding: 6px 12px;
  font-size: 11px;
  font-weight: 600;
  color: var(--text-muted);
  cursor: pointer;
  font-family: inherit;
}
.gateway-lang-btn.active {
  background: var(--border-color);
  color: var(--text-main);
}

.gateway-access-content { margin: auto 0; }
.gateway-access-title {
  font-family: 'Inter', sans-serif !important;
  font-size: 24px;
  font-weight: 600;
  margin-bottom: 12px;
  color: var(--text-main);
}
.gateway-access-desc {
  font-size: 14px;
  color: var(--text-muted);
  margin-bottom: 32px;
}

.gateway-form-group { margin-bottom: 20px; text-align: left; position: relative; }
.gateway-form-group label {
  display: block;
  font-size: 13px;
  font-weight: 500;
  margin-bottom: 8px;
  color: var(--text-main);
}
.gateway-form-control {
  width: 100%;
  padding: 12px 14px;
  font-family: inherit;
  font-size: 15px;
  border: 1px solid var(--border-color);
  border-radius: 6px;
  background: var(--white);
  color: var(--text-main);
  transition: border-color 0.2s;
}
.gateway-form-control:focus { outline: none; border-color: var(--teal); }

.gateway-pw-wrap {
  position: relative;
  display: flex;
  align-items: center;
}
.gateway-pw-toggle {
  position: absolute;
  right: 14px;
  background: none;
  border: none;
  color: var(--text-muted);
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: center;
}

.gateway-btn-primary {
  display: block;
  width: 100%;
  padding: 14px;
  background-color: var(--teal);
  color: var(--white);
  border: none;
  border-radius: 6px;
  font-size: 15px;
  font-weight: 500;
  font-family: inherit;
  cursor: pointer;
  text-align: center;
  transition: background-color 0.2s;
  margin-bottom: 16px;
  margin-top: 10px;
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
}
.gateway-btn-primary:hover:not(:disabled) { background-color: var(--teal-hover); }
.gateway-btn-primary:disabled { opacity: 0.7; cursor: not-allowed; }

.gateway-btn-secondary {
  display: block;
  width: 100%;
  padding: 14px;
  background-color: transparent;
  color: var(--text-main);
  border: 1px solid var(--border-color);
  border-radius: 6px;
  font-size: 15px;
  font-weight: 500;
  font-family: inherit;
  cursor: pointer;
  text-align: center;
  transition: background-color 0.2s;
  text-decoration: none;
}
.gateway-btn-secondary:hover { background-color: rgba(0,0,0,0.02); }

.gateway-legal-statement {
  margin-top: auto;
  padding-top: 40px;
  font-size: 11px;
  color: #8a8f8c;
  line-height: 1.6;
}
.gateway-legal-statement a {
  color: inherit;
  text-decoration: underline;
  text-decoration-color: var(--border-color);
  text-underline-offset: 2px;
}
.gateway-legal-statement a:hover { color: var(--text-main); }

.gateway-error-banner {
  background-color: #FFEBEE;
  color: #B71C1C;
  padding: 12px;
  border-radius: 6px;
  font-size: 13px;
  margin-bottom: 20px;
  display: flex;
  align-items: center;
  gap: 8px;
}

/* Showcase Section */
.gateway-showcase-hero {
  padding: 80px 0 100px;
  border-bottom: 1px solid var(--border-color);
}
.gateway-showcase-hero h1 {
  font-size: 56px;
  line-height: 1.05;
  max-width: 800px;
  margin-bottom: 32px;
  letter-spacing: -0.5px;
}
.gateway-showcase-hero p {
  font-size: 20px;
  color: var(--text-muted);
  max-width: 600px;
  margin-bottom: 48px;
}
.gateway-features-section { padding: 120px 0; }
.gateway-section-title { font-size: 40px; margin-bottom: 80px; }
.gateway-features-grid { display: grid; grid-template-columns: 1fr; gap: 60px; }
.gateway-feature-row {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 60px;
  align-items: center;
  padding-bottom: 60px;
  border-bottom: 1px solid var(--border-color);
}
.gateway-feature-row:last-child { border-bottom: none; padding-bottom: 0; }
.gateway-feature-row:nth-child(even) .gateway-feature-text { order: 2; }
.gateway-feature-row:nth-child(even) .gateway-feature-visual { order: 1; }

.gateway-feature-number {
  font-family: 'Zodiak', serif;
  font-size: 24px;
  color: var(--gold);
  margin-bottom: 16px;
  display: block;
}
.gateway-feature-text h3 {
  font-size: 32px;
  margin-bottom: 20px;
  line-height: 1.2;
}
.gateway-feature-text p {
  font-size: 16px;
  color: var(--text-muted);
}

.gateway-feature-visual {
  background-color: var(--white);
  border: 1px solid var(--border-color);
  border-radius: 8px;
  box-shadow: 0 4px 20px rgba(0,0,0,0.02);
  aspect-ratio: 4 / 3;
  min-height: 360px;
  display: flex;
  flex-direction: column;
  justify-content: center;
  overflow: hidden;
  position: relative;
}
.gateway-feature-img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
}

.gateway-footer {
  border-top: 1px solid var(--border-color);
  padding: 60px 0;
  text-align: center;
  font-size: 13px;
  color: var(--text-muted);
}

/* Mobile behavior */
@media (max-width: 800px) {
  .gateway-card { grid-template-columns: 1fr; display: flex; flex-direction: column; }
  .gateway-access-panel { order: 1; padding: 40px 24px; }
  .gateway-product-meaning { order: 2; padding: 40px 24px; border-right: none; border-top: 1px solid var(--border-color); }
  .gateway-headline { font-size: 32px; }
  .gateway-showcase-hero h1 { font-size: 40px; }
  .gateway-feature-row { grid-template-columns: 1fr; gap: 40px; }
  .gateway-feature-row:nth-child(even) .gateway-feature-text { order: 1; }
  .gateway-feature-row:nth-child(even) .gateway-feature-visual { order: 2; }
}

/* ==========================================================================
   ALT 1 v2 SHOWCASE ADDITIONS (Hero Stats Bar, Editorial Diagrams, Ecosystem Hub)
   ========================================================================== */

/* Tactile Buttons */
.btn-pri {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  min-height: 48px;
  padding: 12px 24px;
  background-color: var(--teal, #1a6f73);
  color: #ffffff;
  font-weight: 700;
  font-size: 15px;
  border-radius: 6px;
  border: 1px solid var(--teal, #1a6f73);
  transition: all 180ms ease;
  cursor: pointer;
  text-decoration: none;
}
.btn-pri:hover {
  background-color: var(--teal-hover, #14595c);
  border-color: var(--teal-hover, #14595c);
  color: #ffffff;
}

.btn-sec {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  min-height: 48px;
  padding: 12px 22px;
  background-color: transparent;
  color: var(--text-main, #1a1c1a);
  font-weight: 600;
  font-size: 15px;
  border-radius: 6px;
  border: 1px solid var(--border-color, #e2dfd8);
  transition: all 180ms ease;
  cursor: pointer;
  text-decoration: none;
}
.btn-sec:hover {
  background-color: rgba(0, 0, 0, 0.04);
  border-color: var(--text-muted, #646a66);
}

.btn-compact {
  min-height: 40px;
  padding: 8px 18px;
  font-size: 14px;
}

/* Hero Stats Bar */
.hero-stats-bar {
  display: grid;
  grid-template-columns: repeat(5, 1fr);
  gap: 20px;
  padding-top: 36px;
  border-top: 1px solid var(--border-color, #e2dfd8);
}

.hero-stat-item {
  background: #f9f8f5;
  border: 1px solid var(--border-color, #e2dfd8);
  border-radius: 8px;
  padding: 18px 20px;
  transition: border-color 180ms ease, box-shadow 180ms ease;
}

.hero-stat-item:hover {
  border-color: var(--gold, #b8962e);
  box-shadow: 0 4px 12px rgba(0, 0, 0, 0.05);
}

.hero-stat-number {
  font-family: 'Zodiak', serif;
  font-size: 32px;
  font-weight: 400;
  line-height: 1.1;
  color: var(--teal, #1a6f73);
  margin-bottom: 6px;
  display: block;
}

.hero-stat-label {
  font-size: 14px;
  font-weight: 700;
  color: var(--text-main, #1a1c1a);
  margin-bottom: 2px;
  display: block;
}

.hero-stat-sub {
  font-size: 12.5px;
  color: var(--text-muted, #646a66);
  line-height: 1.4;
  display: block;
}

/* Editorial Diagram Cards for 02 & 03 */
.editorial-diagram-card {
  background: #f4f1ea;
  border: 1px solid var(--border-color, #e2dfd8);
  border-radius: 8px;
  padding: 24px;
  width: 100%;
  box-shadow: 0 10px 30px rgba(0, 0, 0, 0.04);
}

.ed-diagram-eyebrow {
  text-align: center;
  font-size: 11px;
  font-weight: 700;
  letter-spacing: 1.4px;
  text-transform: uppercase;
  color: #8f6f15;
  margin-bottom: 18px;
}

.ed-lens-grid {
  display: grid;
  grid-template-columns: 1fr auto 1fr;
  gap: 14px;
  align-items: center;
}

.ed-lens-col {
  display: flex;
  flex-direction: column;
  gap: 10px;
}

.ed-lens-col-title {
  font-family: 'Zodiak', serif;
  font-size: 15px;
  color: var(--text-main, #1a1c1a);
  margin-bottom: 4px;
  padding-bottom: 6px;
  border-bottom: 1px solid var(--border-color, #e2dfd8);
}

.ed-lens-pill {
  background: #ffffff;
  border: 1px solid var(--border-color, #e2dfd8);
  border-radius: 6px;
  padding: 9px 12px;
  display: flex;
  align-items: center;
  gap: 10px;
  font-size: 13.5px;
  font-weight: 600;
  color: var(--text-main, #1a1c1a);
  box-shadow: 0 1px 3px rgba(0, 0, 0, 0.04);
}

.ed-lens-icon {
  width: 28px;
  height: 28px;
  border-radius: 6px;
  background: #f9f3df;
  color: #8f6f15;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  flex-shrink: 0;
  font-size: 14px;
}

.ed-center-hub {
  width: 58px;
  height: 58px;
  border-radius: 50%;
  background: #ffffff;
  border: 2px solid var(--gold, #b8962e);
  display: flex;
  align-items: center;
  justify-content: center;
  box-shadow: 0 4px 14px rgba(0, 0, 0, 0.06);
  margin: 0 auto;
}

.ed-ai-flow {
  display: grid;
  grid-template-columns: 1fr auto 1fr;
  gap: 14px;
  align-items: center;
}

.ed-ai-node {
  width: 78px;
  height: 78px;
  border-radius: 50%;
  background: var(--teal, #1a6f73);
  color: #ffffff;
  border: 3px solid #d7e8e8;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  margin: 0 auto;
  box-shadow: 0 4px 14px rgba(26, 111, 115, 0.25);
}

.ed-report-box {
  background: #ffffff;
  border: 1px solid var(--border-color, #e2dfd8);
  border-top: 3px solid var(--teal, #1a6f73);
  border-radius: 6px;
  padding: 16px;
  box-shadow: 0 2px 8px rgba(0, 0, 0, 0.04);
}

/* Ecosystem Section */
.alt1-eco-section {
  padding: 80px 0;
  background: #f9f8f5;
  border-top: 1px solid var(--border-color, #e2dfd8);
  border-bottom: 1px solid var(--border-color, #e2dfd8);
}

.alt1-eco-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 20px;
  margin-top: 36px;
}

.alt1-eco-card {
  background: #ffffff;
  border: 1px solid var(--border-color, #e2dfd8);
  border-radius: 8px;
  padding: 26px;
  display: flex;
  flex-direction: column;
  justify-content: space-between;
  gap: 18px;
  text-decoration: none;
  transition: transform 180ms ease, box-shadow 180ms ease, border-color 180ms ease;
}

.alt1-eco-card:hover {
  transform: translateY(-2px);
  box-shadow: 0 10px 24px rgba(0, 0, 0, 0.06);
  border-color: var(--teal, #1a6f73);
}

.alt1-eco-card h4 {
  font-family: 'Zodiak', serif;
  font-size: 21px;
  font-weight: 400;
  margin-bottom: 8px;
  color: var(--text-main, #1a1c1a);
}

.alt1-eco-card p {
  font-size: 14.5px;
  color: var(--text-muted, #646a66);
  line-height: 1.55;
}

.alt1-eco-cta {
  font-size: 14px;
  font-weight: 700;
  color: var(--teal, #1a6f73);
}

/* Statutory Disclaimer & Footer Grid */
.lp-disclaimer {
  background: #f9f8f5;
  border: 1px solid var(--border-color, #e2dfd8);
  border-radius: 6px;
  padding: 14px 18px;
  font-size: 13.5px;
  color: var(--text-muted, #646a66);
  margin-bottom: 36px;
  line-height: 1.55;
}

.lp-footer-grid {
  display: grid;
  grid-template-columns: 1.5fr 1fr 1fr 1fr;
  gap: 32px;
  margin-bottom: 36px;
}

.lp-footer-col h4 {
  font-size: 13px;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.8px;
  color: var(--text-main, #1a1c1a);
  margin-bottom: 14px;
  font-family: 'Inter', sans-serif !important;
}

.lp-footer-links {
  list-style: none;
  display: flex;
  flex-direction: column;
  gap: 10px;
  padding: 0;
  margin: 0;
}

.lp-footer-links a {
  color: var(--text-muted, #646a66);
  text-decoration: none;
  font-size: 14px;
  transition: color 180ms ease;
}

.lp-footer-links a:hover {
  color: var(--teal, #1a6f73);
  text-decoration: underline;
}

.lp-footer-bottom {
  border-top: 1px solid var(--border-color, #e2dfd8);
  padding-top: 24px;
  display: flex;
  flex-wrap: wrap;
  justify-content: space-between;
  align-items: center;
  gap: 16px;
  font-size: 13px;
  color: var(--text-muted, #646a66);
}

/* Responsive Rules */
@media (max-width: 960px) {
  .hero-stats-bar {
    grid-template-columns: repeat(2, 1fr);
  }
  .alt1-eco-grid,
  .ed-lens-grid,
  .ed-ai-flow,
  .lp-footer-grid {
    grid-template-columns: 1fr !important;
  }
  .gateway-nav-links {
    display: none !important;
  }
}

@media (max-width: 600px) {
  .hero-stats-bar {
    grid-template-columns: 1fr;
  }
}

