/* portal.css -- gelagenformula.com (Family: PORTAL SPEC-SHEET v1) */
:root {
  --primary: #e11d48;
  --primary-hover: #be123c;
  --primary-tint: #fff1f2;
  --amber: #f59e0b;
  --amber-hover: #d97706;
  --amber-tint: #fffbeb;
  --ink: #0f172a;
  --ink-muted: #475569;
  --ink-light: #64748b;
  --surface: #ffffff;
  --surface-alt: #fdfbf9;
  --surface-subtle: #f8fafc;
  --border: #e2e8f0;
  --border-tint: #fecdd3;
  --save-green: #15803d;
  --save-green-tint: #f0fdf4;
  --radius-sm: 6px;
  --radius-md: 10px;
  --radius-lg: 16px;
  --radius-full: 9999px;
  --shadow-sm: 0 1px 3px rgba(15, 23, 42, 0.06);
  --shadow-md: 0 4px 12px rgba(15, 23, 42, 0.08);
  --shadow-lg: 0 10px 25px rgba(15, 23, 42, 0.10);
  --font-heading: 'Plus Jakarta Sans', -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, sans-serif;
  --font-body: 'Inter', -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, sans-serif;
  --container-max: 1140px;
}

*, *::before, *::after {
  box-sizing: border-box;
  margin: 0;
  padding: 0;
  max-width: 100%;
}

html {
  font-size: 16px;
  scroll-behavior: smooth;
  -webkit-text-size-adjust: 100%;
  width: 100%;
  max-width: 100vw;
  overflow-x: hidden;
}

body {
  font-family: var(--font-body);
  color: var(--ink);
  background-color: var(--surface-alt);
  line-height: 1.6;
  -webkit-font-smoothing: antialiased;
  width: 100%;
  max-width: 100vw;
  overflow-x: hidden;
  position: relative;
}

h1, h2, h3, h4, h5, h6, p, a, li, span, th, td {
  overflow-wrap: break-word;
  word-wrap: break-word;
}

img {
  max-width: 100%;
  height: auto;
  display: block;
}

a {
  color: var(--primary);
  text-decoration: none;
  transition: color 0.15s ease;
}

a:hover {
  color: var(--primary-hover);
  text-decoration: underline;
}

.container {
  width: 100%;
  max-width: var(--container-max);
  margin-left: auto;
  margin-right: auto;
  padding-left: 20px;
  padding-right: 20px;
}

/* Ribbon */
.ribbon {
  background-color: #0f172a;
  color: #f1f5f9;
  font-size: 0.8125rem;
  font-weight: 500;
  text-align: center;
  padding: 8px 16px;
  letter-spacing: 0.02em;
  border-bottom: 1px solid rgba(255, 255, 255, 0.1);
}

/* Masthead */
.masthead {
  background-color: var(--surface);
  border-bottom: 1px solid var(--border);
  position: sticky;
  top: 0;
  z-index: 100;
}

.masthead-inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  height: 72px;
}

.brand-wordmark {
  display: flex;
  flex-direction: column;
  text-decoration: none;
}

.brand-wordmark:hover {
  text-decoration: none;
}

.brand-main {
  font-family: var(--font-heading);
  font-size: 1.5rem;
  font-weight: 800;
  color: var(--ink);
  line-height: 1.1;
  letter-spacing: -0.02em;
}

.brand-sub {
  font-size: 0.6875rem;
  color: var(--ink-light);
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 0.06em;
}

.main-nav .nav-list {
  display: flex;
  list-style: none;
  gap: 20px;
}

.main-nav a {
  font-size: 0.875rem;
  font-weight: 600;
  color: var(--ink);
  text-decoration: none;
  padding: 6px 4px;
  border-bottom: 2px solid transparent;
  transition: all 0.15s ease;
}

.main-nav a:hover,
.main-nav a.active {
  color: var(--primary);
  border-bottom-color: var(--primary);
}

.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  font-family: var(--font-heading);
  font-weight: 700;
  font-size: 0.9375rem;
  padding: 12px 24px;
  border-radius: var(--radius-full);
  text-decoration: none;
  cursor: pointer;
  transition: all 0.2s ease;
  border: 1px solid transparent;
  text-align: center;
  max-width: 100%;
  white-space: normal;
  word-break: break-word;
}

.btn-header {
  background-color: var(--primary);
  color: #ffffff;
  padding: 10px 18px;
  font-size: 0.875rem;
  box-shadow: 0 2px 6px rgba(225, 29, 72, 0.25);
}

.btn-header:hover {
  background-color: var(--primary-hover);
  color: #ffffff;
  text-decoration: none;
}

.btn-primary {
  background-color: var(--primary);
  color: #ffffff;
  box-shadow: 0 4px 14px rgba(225, 29, 72, 0.35);
}

.btn-primary:hover {
  background-color: var(--primary-hover);
  color: #ffffff;
  text-decoration: none;
  transform: translateY(-1px);
}

.btn-secondary {
  background-color: var(--surface);
  color: var(--ink);
  border-color: var(--border);
}

.btn-secondary:hover {
  background-color: var(--surface-subtle);
  color: var(--primary);
  text-decoration: none;
}

.mobile-toggle {
  display: none;
  background: none;
  border: none;
  cursor: pointer;
  padding: 8px;
}

.mobile-toggle .bar {
  display: block;
  width: 22px;
  height: 2px;
  background-color: var(--ink);
  margin: 5px 0;
  transition: all 0.2s ease;
}

/* Hero Section */
.hero-section {
  padding: 48px 0 60px;
  background: linear-gradient(180deg, var(--surface) 0%, var(--surface-alt) 100%);
  border-bottom: 1px solid var(--border);
}

.hero-grid {
  display: grid;
  grid-template-columns: 1.15fr 0.85fr;
  gap: 40px;
  align-items: center;
}

.kicker {
  display: inline-block;
  font-size: 0.75rem;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.08em;
  color: var(--primary);
  background-color: var(--primary-tint);
  padding: 4px 12px;
  border-radius: var(--radius-full);
  margin-bottom: 14px;
}

.hero-content h1 {
  font-family: var(--font-heading);
  font-size: 2.35rem;
  font-weight: 800;
  line-height: 1.2;
  color: var(--ink);
  margin-bottom: 16px;
  letter-spacing: -0.02em;
}

.hero-subheadline {
  font-size: 1.125rem;
  color: var(--ink-muted);
  line-height: 1.5;
  margin-bottom: 18px;
}

.portal-phrase {
  background-color: var(--surface);
  border-left: 3px solid var(--primary);
  padding: 14px 18px;
  border-radius: 0 var(--radius-md) var(--radius-md) 0;
  font-size: 0.9375rem;
  color: var(--ink);
  margin-bottom: 24px;
  box-shadow: var(--shadow-sm);
}

.hero-actions {
  display: flex;
  gap: 14px;
  flex-wrap: wrap;
  margin-bottom: 28px;
}

.hero-badges {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 12px;
  padding-top: 16px;
  border-top: 1px solid var(--border);
}

.hero-badge-item {
  display: flex;
  align-items: center;
  gap: 10px;
  font-size: 0.8125rem;
  font-weight: 600;
  color: var(--ink-muted);
}

.badge-icon {
  width: 20px;
  height: 20px;
  color: var(--primary);
  flex-shrink: 0;
}

.hero-image-wrap {
  position: relative;
  text-align: center;
}

.hero-image-wrap img {
  margin: 0 auto;
  filter: drop-shadow(0 14px 28px rgba(15, 23, 42, 0.12));
}

.hero-verified-tag {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  background-color: var(--surface);
  border: 1px solid var(--border);
  padding: 6px 14px;
  border-radius: var(--radius-full);
  font-size: 0.8125rem;
  font-weight: 700;
  color: var(--ink);
  box-shadow: var(--shadow-sm);
  margin-top: 16px;
}

.dot-live {
  width: 8px;
  height: 8px;
  border-radius: 50%;
  background-color: var(--save-green);
  animation: pulseDot 2s infinite;
}

@keyframes pulseDot {
  0% { transform: scale(0.95); opacity: 0.8; }
  50% { transform: scale(1.2); opacity: 1; }
  100% { transform: scale(0.95); opacity: 0.8; }
}

/* Summary First */
.section-summary-first {
  padding: 56px 0;
  background-color: var(--surface);
  border-bottom: 1px solid var(--border);
}

.summary-first-box {
  background-color: var(--surface-alt);
  border: 1px solid var(--border);
  border-radius: var(--radius-lg);
  padding: 36px;
  box-shadow: var(--shadow-sm);
}

.summary-first-header {
  display: flex;
  justify-content: space-between;
  align-items: center;
  margin-bottom: 12px;
}

.spec-badge-live {
  font-size: 0.75rem;
  font-weight: 700;
  color: var(--save-green);
  background-color: var(--save-green-tint);
  border: 1px solid rgba(21, 128, 61, 0.2);
  padding: 3px 10px;
  border-radius: var(--radius-full);
}

.summary-first-box h2 {
  font-family: var(--font-heading);
  font-size: 1.5rem;
  font-weight: 800;
  margin-bottom: 16px;
  color: var(--ink);
}

.summary-lead {
  font-size: 1.0625rem;
  font-weight: 600;
  color: var(--ink);
  margin-bottom: 16px;
  line-height: 1.6;
}

.summary-meta-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 16px;
  margin-top: 24px;
  padding-top: 20px;
  border-top: 1px solid var(--border);
}

.summary-meta-item strong {
  display: block;
  font-size: 0.75rem;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.05em;
  color: var(--ink-light);
  margin-bottom: 4px;
}

.summary-meta-item span {
  font-size: 0.9375rem;
  font-weight: 600;
  color: var(--ink);
}

/* Spec Sheet */
.section-spec-sheet {
  padding: 60px 0;
  background-color: var(--surface-subtle);
  border-bottom: 1px solid var(--border);
}

.spec-sheet-card {
  background-color: var(--surface);
  border: 1px solid var(--border);
  border-radius: var(--radius-lg);
  overflow: hidden;
  box-shadow: var(--shadow-md);
  width: 100%;
  max-width: 100%;
}

.spec-sheet-header {
  background: linear-gradient(135deg, #0f172a 0%, #1e293b 100%);
  color: #ffffff;
  padding: 24px 32px;
  display: flex;
  justify-content: space-between;
  align-items: center;
  flex-wrap: wrap;
  gap: 12px;
}

.spec-sheet-header h2 {
  font-family: var(--font-heading);
  font-size: 1.4rem;
  font-weight: 700;
  margin-top: 4px;
}

.spec-table {
  width: 100%;
  border-collapse: collapse;
}

.spec-table th,
.spec-table td {
  padding: 16px 28px;
  text-align: left;
  border-bottom: 1px solid var(--border);
  font-size: 0.9375rem;
}

.spec-table th {
  width: 32%;
  font-weight: 700;
  color: var(--ink);
  background-color: var(--surface-alt);
}

.spec-table td {
  color: var(--ink-muted);
}

.spec-table tr:last-child th,
.spec-table tr:last-child td {
  border-bottom: none;
}

/* Content Sections */
.content-section {
  padding: 60px 0;
  border-bottom: 1px solid var(--border);
}

.content-section h2 {
  font-family: var(--font-heading);
  font-size: 1.85rem;
  font-weight: 800;
  color: var(--ink);
  margin-bottom: 16px;
  letter-spacing: -0.01em;
}

.content-section p.lead {
  font-size: 1.0625rem;
  color: var(--ink-muted);
  line-height: 1.6;
  margin-bottom: 24px;
}

.content-grid-2 {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 28px;
}

.content-card {
  background-color: var(--surface);
  border: 1px solid var(--border);
  border-radius: var(--radius-md);
  padding: 24px;
  box-shadow: var(--shadow-sm);
}

.content-card h3 {
  font-family: var(--font-heading);
  font-size: 1.15rem;
  font-weight: 700;
  color: var(--ink);
  margin-bottom: 10px;
}

.content-card p {
  font-size: 0.9375rem;
  color: var(--ink-muted);
  line-height: 1.55;
}

/* Packs Section */
.packs-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 24px;
  margin-top: 32px;
}

.pack-card {
  background-color: var(--surface);
  border: 2px solid var(--border);
  border-radius: var(--radius-lg);
  padding: 28px 20px;
  text-align: center;
  display: flex;
  flex-direction: column;
  position: relative;
  transition: all 0.2s ease;
}

.pack-card:hover {
  transform: translateY(-4px);
  box-shadow: var(--shadow-lg);
}

.pack-card.best-value {
  border-color: var(--primary);
  box-shadow: var(--shadow-md);
}

.pack-badge {
  position: absolute;
  top: -14px;
  left: 50%;
  transform: translateX(-50%);
  background-color: var(--primary);
  color: #ffffff;
  font-size: 0.75rem;
  font-weight: 800;
  text-transform: uppercase;
  padding: 5px 14px;
  border-radius: var(--radius-full);
  letter-spacing: 0.05em;
  white-space: nowrap;
}

.pack-title {
  font-family: var(--font-heading);
  font-size: 1.35rem;
  font-weight: 800;
  color: var(--ink);
  margin-top: 8px;
}

.pack-supply {
  font-size: 0.8125rem;
  font-weight: 600;
  color: var(--ink-light);
  margin-bottom: 12px;
}

.pack-image {
  margin: 10px auto;
  max-height: 170px;
  object-fit: contain;
}

.pack-price-box {
  margin: 14px 0 8px;
}

.pack-price-per {
  font-family: var(--font-heading);
  font-size: 2.25rem;
  font-weight: 800;
  color: var(--ink);
  line-height: 1;
}

.pack-price-unit {
  font-size: 0.875rem;
  color: var(--ink-light);
  font-weight: 500;
}

.pack-total-line {
  font-size: 0.875rem;
  color: var(--ink-muted);
  margin-bottom: 4px;
}

.pack-total-line s {
  color: #94a3b8;
}

.pack-savings {
  display: inline-block;
  background-color: var(--save-green-tint);
  color: var(--save-green);
  font-weight: 700;
  font-size: 0.8125rem;
  padding: 3px 10px;
  border-radius: var(--radius-full);
  margin-bottom: 14px;
}

.pack-shipping {
  font-size: 0.8125rem;
  font-weight: 600;
  color: var(--ink-muted);
  margin-bottom: 18px;
}

.pack-card .btn {
  width: 100%;
  margin-top: auto;
}

/* Reviews Section */
.reviews-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 24px;
  margin-top: 28px;
}

.review-card {
  background-color: var(--surface);
  border: 1px solid var(--border);
  border-radius: var(--radius-md);
  padding: 24px;
  box-shadow: var(--shadow-sm);
}

.review-stars {
  color: #f59e0b;
  font-size: 1rem;
  margin-bottom: 10px;
}

.review-body {
  font-size: 0.9375rem;
  color: var(--ink);
  line-height: 1.55;
  margin-bottom: 16px;
  font-style: italic;
}

.review-meta {
  display: flex;
  justify-content: space-between;
  align-items: center;
  font-size: 0.8125rem;
  color: var(--ink-light);
  border-top: 1px solid var(--border);
  padding-top: 10px;
}

.review-author {
  font-weight: 700;
  color: var(--ink);
}

/* FAQ Section */
.faq-list {
  display: flex;
  flex-direction: column;
  gap: 16px;
  margin-top: 28px;
}

.faq-item {
  background-color: var(--surface);
  border: 1px solid var(--border);
  border-radius: var(--radius-md);
  padding: 22px 26px;
}

.faq-question {
  font-family: var(--font-heading);
  font-size: 1.1rem;
  font-weight: 700;
  color: var(--ink);
  margin-bottom: 10px;
}

.faq-answer {
  font-size: 0.9375rem;
  color: var(--ink-muted);
  line-height: 1.6;
}

/* Close Section (Band Ink) */
.section-close {
  background: linear-gradient(135deg, #0f172a 0%, #1e293b 100%);
  color: #ffffff;
  padding: 64px 0;
  text-align: center;
}

.section-close h2 {
  font-family: var(--font-heading);
  font-size: 2rem;
  font-weight: 800;
  color: #ffffff;
  margin-bottom: 16px;
}

.section-close p {
  font-size: 1.0625rem;
  color: #cbd5e1;
  max-width: 680px;
  margin: 0 auto 28px;
}

/* Breadcrumbs */
.breadcrumb-nav {
  padding: 14px 0;
  background-color: var(--surface);
  border-bottom: 1px solid var(--border);
  font-size: 0.8125rem;
}

.breadcrumb-list {
  display: flex;
  list-style: none;
  align-items: center;
  gap: 8px;
  flex-wrap: wrap;
}

.breadcrumb-separator {
  color: var(--ink-light);
}

/* Footer */
.site-footer {
  background-color: #0b1120;
  color: #94a3b8;
  padding: 60px 0 32px;
  font-size: 0.875rem;
}

.footer-grid {
  display: grid;
  grid-template-columns: 1.5fr 1fr 1fr 1fr;
  gap: 40px;
  margin-bottom: 48px;
}

.footer-brand-title {
  font-family: var(--font-heading);
  font-size: 1.4rem;
  font-weight: 800;
  color: #ffffff;
  display: block;
  margin-bottom: 8px;
}

.footer-brand-desc {
  font-size: 0.8125rem;
  line-height: 1.5;
  color: #64748b;
  margin-bottom: 16px;
}

.footer-contact-item {
  font-size: 0.8125rem;
  color: #94a3b8;
  margin-bottom: 10px;
  line-height: 1.4;
}

.footer-contact-item a {
  color: #cbd5e1;
}

.footer-col-title {
  font-family: var(--font-heading);
  font-size: 0.9375rem;
  font-weight: 700;
  color: #ffffff;
  text-transform: uppercase;
  letter-spacing: 0.05em;
  margin-bottom: 16px;
}

.footer-links {
  list-style: none;
  display: flex;
  flex-direction: column;
  gap: 8px;
}

.footer-links a {
  color: #94a3b8;
  text-decoration: none;
  font-size: 0.8125rem;
}

.footer-links a:hover {
  color: #ffffff;
  text-decoration: underline;
}

.footer-badge-box {
  background-color: rgba(255, 255, 255, 0.05);
  border: 1px solid rgba(255, 255, 255, 0.1);
  border-radius: var(--radius-md);
  padding: 12px 14px;
  margin-top: 18px;
  font-size: 0.75rem;
}

.footer-badge-box span {
  display: block;
  color: #64748b;
  text-transform: uppercase;
  letter-spacing: 0.05em;
}

.footer-badge-box strong {
  color: var(--amber);
  font-size: 0.875rem;
}

.footer-disclaimer {
  padding-top: 28px;
  border-top: 1px solid rgba(255, 255, 255, 0.08);
  font-size: 0.75rem;
  line-height: 1.6;
  color: #64748b;
}

.footer-disclaimer p {
  margin-bottom: 10px;
}

.footer-copy {
  margin-top: 16px;
  color: #475569;
}

/* Responsive */
@media (max-width: 992px) {
  .hero-grid {
    grid-template-columns: 1fr;
    text-align: center;
  }
  .portal-phrase {
    border-left: none;
    border-top: 3px solid var(--primary);
  }
  .hero-actions {
    justify-content: center;
  }
  .hero-badges {
    max-width: 480px;
    margin: 0 auto;
  }
  .summary-meta-grid {
    grid-template-columns: repeat(2, 1fr);
  }
  .packs-grid, .reviews-grid {
    grid-template-columns: 1fr;
    max-width: 480px;
    width: 100%;
    margin-left: auto;
    margin-right: auto;
  }
  .footer-grid {
    grid-template-columns: 1fr 1fr;
  }
}

@media (max-width: 768px) {
  .main-nav {
    display: none;
    position: absolute;
    top: 72px;
    left: 0;
    right: 0;
    background-color: var(--surface);
    border-bottom: 1px solid var(--border);
    padding: 16px 20px;
    box-shadow: var(--shadow-lg);
  }
  .main-nav.is-open {
    display: block;
  }
  .main-nav .nav-list {
    flex-direction: column;
    gap: 12px;
  }
  .mobile-toggle {
    display: block;
  }
  .header-action {
    display: none;
  }
  .content-grid-2 {
    grid-template-columns: 1fr;
  }
  .footer-grid {
    grid-template-columns: 1fr;
  }
  .hero-content h1 {
    font-size: 1.85rem;
  }
  .hero-badges {
    grid-template-columns: 1fr;
    max-width: 100%;
  }
}

@media (max-width: 640px) {
  .spec-sheet-header {
    flex-direction: column;
    align-items: flex-start;
    gap: 10px;
    padding: 16px 18px;
  }
  .spec-sheet-card {
    overflow-x: auto;
    -webkit-overflow-scrolling: touch;
  }
  .spec-table, 
  .spec-table tbody, 
  .spec-table tr, 
  .spec-table th, 
  .spec-table td {
    display: block;
    width: 100%;
    box-sizing: border-box;
  }
  .spec-table tr {
    border-bottom: 1px solid var(--border);
    padding: 12px 16px;
  }
  .spec-table th {
    width: 100%;
    background: transparent;
    padding: 0 0 4px 0;
    font-size: 0.8125rem;
    text-transform: uppercase;
    letter-spacing: 0.04em;
    color: var(--primary);
    border: none;
  }
  .spec-table td {
    padding: 0;
    font-size: 0.875rem;
    color: var(--ink);
    border: none;
  }
  .spec-table thead {
    display: none;
  }
  .spec-table tr:last-child {
    border-bottom: none;
  }
}

@media (max-width: 560px) {
  .brand-main {
    font-size: 1.25rem;
  }
  .brand-sub {
    font-size: 0.625rem;
  }
  .summary-first-box {
    padding: 20px 16px;
  }
  .summary-first-header {
    flex-direction: column;
    align-items: flex-start;
    gap: 8px;
  }
  .summary-meta-grid {
    grid-template-columns: 1fr;
    gap: 12px;
  }
  .hero-badges {
    grid-template-columns: 1fr;
  }
  .hero-badge-item {
    justify-content: flex-start;
  }
  .faq-item {
    padding: 16px;
  }
  .content-card {
    padding: 18px 16px;
  }
  .pack-card {
    padding: 24px 16px;
  }
  .review-card {
    padding: 18px 16px;
  }
  .section-close {
    padding: 44px 0;
  }
  .section-close h2 {
    font-size: 1.5rem;
  }
}

@media (max-width: 480px) {
  .container {
    padding-left: 14px;
    padding-right: 14px;
  }
  .hero-content h1 {
    font-size: 1.65rem;
  }
  .hero-subheadline {
    font-size: 1rem;
  }
  .hero-actions .btn {
    width: 100%;
  }
  .ribbon {
    font-size: 0.75rem;
    padding: 6px 10px;
  }
  .masthead-inner {
    height: 64px;
  }
}
