/* ============================================================
   AQUA EXCEL Protein Skimmer Landing Page
   ============================================================ */

/* --- Design Tokens --- */
:root {
  --ael-primary-dark: #1a1a2e;
  --ael-primary-blue: #1a3a5c;
  --ael-accent-teal: #4ecdc4;
  --ael-price-red: #E74C3C;
  --ael-rakuten-red: #BF0000;
  --ael-yahoo-red: #FF0033;
  --ael-badge-orange: #ff6b35;
  --ael-text-primary: #333;
  --ael-text-secondary: #555;
  --ael-text-muted: #888;
  --ael-bg-light: #f7f9fc;
  --ael-bg-table-even: #f9fbfd;
  --ael-border-light: #eee;
  --ael-star-gold: #f5a623;
  --ael-hero-subtitle: #a0c4e8;
  --ael-link-blue: #1176d4;
}

/* --- Reset scope --- */
.ael-landing {
  font-family: "Helvetica Neue", Arial, "Hiragino Kaku Gothic ProN", "Hiragino Sans", Meiryo, sans-serif;
  font-size: 15px;
  line-height: 1.7;
  color: var(--ael-text-primary);
  -webkit-text-size-adjust: 100%;
  text-size-adjust: 100%;
}
.ael-landing *, .ael-landing *::before, .ael-landing *::after {
  box-sizing: border-box;
}

/* --- Container --- */
.ael-container {
  max-width: 1100px;
  margin: 0 auto;
  padding: 0 20px;
}

/* ============================================================
   Section 1: Hero
   ============================================================ */
.ael-hero {
  width: 100vw;
  margin-left: calc(-50vw + 50%);
  background: linear-gradient(135deg, #0a1628 0%, #1a3a5c 50%, #0d2844 100%);
  color: #fff;
  padding: 64px 20px 56px;
  text-align: center;
}
.ael-hero__inner {
  max-width: 900px;
  margin: 0 auto;
}
.ael-hero h1 {
  font-size: 28px;
  font-weight: 700;
  margin: 0 0 12px;
  letter-spacing: 0.02em;
  line-height: 1.4;
}
.ael-hero h1 .ael-accent {
  color: var(--ael-accent-teal);
}
.ael-hero__subtitle {
  color: var(--ael-hero-subtitle);
  font-size: 15px;
  margin: 0 0 28px;
}
.ael-hero__badges {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: 10px;
}
.ael-hero__badge {
  display: inline-block;
  background: rgba(78, 205, 196, 0.15);
  border: 1px solid rgba(78, 205, 196, 0.4);
  color: var(--ael-accent-teal);
  padding: 6px 16px;
  border-radius: 50px;
  font-size: 13px;
  font-weight: 500;
  white-space: nowrap;
}

/* ============================================================
   Section 2: Sticky Model Tabs
   ============================================================ */
.ael-tabs-wrap {
  width: 100vw;
  margin-left: calc(-50vw + 50%);
  position: sticky;
  top: 48px;
  z-index: 90;
  background: #fff;
  border-bottom: 2px solid var(--ael-border-light);
  box-shadow: 0 2px 8px rgba(0,0,0,0.06);
}
.ael-tabs {
  display: flex;
  max-width: 1100px;
  margin: 0 auto;
  padding: 0;
  list-style: none;
  overflow-x: auto;
  -webkit-overflow-scrolling: touch;
}
.ael-tab {
  flex: 1;
  min-width: 110px;
  padding: 14px 8px 12px;
  text-align: center;
  cursor: pointer;
  border: none;
  background: none;
  font-size: 14px;
  font-weight: 600;
  color: var(--ael-text-secondary);
  border-bottom: 3px solid transparent;
  transition: color 0.2s, border-color 0.2s, background 0.2s;
  white-space: nowrap;
}
.ael-tab:hover {
  color: var(--ael-primary-blue);
  background: #f0f7ff;
}
.ael-tab.ael-tab--active {
  color: var(--ael-primary-blue);
  border-bottom-color: var(--ael-accent-teal);
  background: #f0f7ff;
}
.ael-tab__price {
  display: block;
  font-size: 12px;
  font-weight: 400;
  color: var(--ael-text-muted);
  margin-top: 2px;
}
.ael-tab.ael-tab--active .ael-tab__price {
  color: var(--ael-price-red);
}

/* ============================================================
   Section 3: Product Detail
   ============================================================ */
.ael-product-section {
  padding: 48px 0 40px;
}
.ael-product-panel {
  display: none;
}
.ael-product-panel.ael-panel--active {
  display: flex;
  gap: 40px;
  align-items: flex-start;
}
.ael-product__gallery {
  flex: 0 0 45%;
}
.ael-product__main-img {
  width: 100%;
  aspect-ratio: 1/1;
  object-fit: contain;
  background: #f8f8f8;
  border-radius: 8px;
  border: 1px solid var(--ael-border-light);
}
.ael-product__thumbs {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  margin-top: 10px;
}
.ael-product__thumb {
  width: 72px;
  height: 72px;
  max-width: 72px;
  max-height: 72px;
  flex-shrink: 0;
  object-fit: contain;
  background: #f8f8f8;
  border: 2px solid var(--ael-border-light);
  border-radius: 6px;
  cursor: pointer;
  transition: border-color 0.2s;
}
.ael-product__thumb:hover,
.ael-product__thumb.ael-thumb--active {
  border-color: var(--ael-accent-teal);
}
.ael-product__info {
  flex: 1;
  min-width: 0;
}
.ael-product__model-label {
  display: inline-block;
  background: var(--ael-primary-blue);
  color: #fff;
  padding: 3px 12px;
  border-radius: 4px;
  font-size: 12px;
  font-weight: 600;
  margin-bottom: 8px;
}
.ael-product__name {
  font-size: 22px;
  font-weight: 700;
  margin: 0 0 6px;
  color: var(--ael-text-primary);
}
.ael-product__capacity {
  font-size: 14px;
  color: var(--ael-text-secondary);
  margin: 0 0 12px;
}
.ael-product__price {
  font-size: 28px;
  font-weight: 700;
  color: var(--ael-price-red);
  margin: 0 0 4px;
}
.ael-product__price-tax {
  font-size: 12px;
  color: var(--ael-text-muted);
  margin: 0 0 20px;
}

/* Spec mini table */
.ael-product__specs {
  width: 100%;
  border-collapse: collapse;
  margin: 0 0 24px;
  font-size: 14px;
}
.ael-product__specs th {
  width: 35%;
  text-align: left;
  padding: 8px 12px;
  background: var(--ael-bg-light);
  border: 1px solid var(--ael-border-light);
  font-weight: 600;
  color: var(--ael-text-secondary);
}
.ael-product__specs td {
  padding: 8px 12px;
  border: 1px solid var(--ael-border-light);
}

/* Purchase buttons */
.ael-product__buttons {
  display: flex;
  gap: 10px;
  flex-wrap: wrap;
}
.ael-btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  padding: 12px 20px;
  border-radius: 6px;
  font-size: 14px;
  font-weight: 600;
  color: #fff;
  text-decoration: none;
  border: none;
  cursor: pointer;
  transition: opacity 0.2s, transform 0.1s;
  min-width: 140px;
  text-align: center;
}
.ael-btn:hover { opacity: 0.9; transform: translateY(-1px); }
.ael-btn--rakuten { background: var(--ael-rakuten-red); }
.ael-btn--yahoo { background: var(--ael-yahoo-red); }
.ael-btn--shop { background: var(--ael-primary-blue); }

/* Recommend badge */
.ael-product__recommend {
  display: inline-block;
  background: var(--ael-badge-orange);
  color: #fff;
  padding: 2px 10px;
  border-radius: 4px;
  font-size: 11px;
  font-weight: 600;
  margin-left: 8px;
  vertical-align: middle;
}

/* ============================================================
   Section 4: Comparison Table
   ============================================================ */
.ael-compare-section {
  padding: 48px 0;
  background: var(--ael-bg-light);
  width: 100vw;
  margin-left: calc(-50vw + 50%);
}
.ael-compare-section .ael-container {
  overflow-x: auto;
  -webkit-overflow-scrolling: touch;
}
.ael-section-title {
  font-size: 22px;
  font-weight: 700;
  text-align: center;
  margin: 0 0 28px;
  color: var(--ael-text-primary);
}
.ael-compare-table {
  width: 100%;
  min-width: 500px;
  border-collapse: collapse;
  font-size: 14px;
  background: #fff;
  border-radius: 8px;
  overflow: hidden;
}
.ael-compare-table thead th {
  background: var(--ael-primary-blue);
  color: #fff;
  padding: 12px 16px;
  font-weight: 600;
  text-align: center;
  font-size: 14px;
  white-space: nowrap;
}
.ael-compare-table thead th.ael-col--active {
  background: var(--ael-accent-teal);
  color: var(--ael-primary-dark);
}
.ael-compare-table tbody td {
  padding: 10px 16px;
  border-bottom: 1px solid var(--ael-border-light);
  text-align: center;
}
.ael-compare-table tbody td:first-child {
  text-align: left;
  font-weight: 600;
  background: var(--ael-bg-light);
  white-space: nowrap;
}
.ael-compare-table tbody tr:nth-child(even) td {
  background: var(--ael-bg-table-even);
}
.ael-compare-table tbody tr:nth-child(even) td:first-child {
  background: var(--ael-bg-light);
}
.ael-compare-table tbody td.ael-col--active {
  background: rgba(78, 205, 196, 0.1);
  font-weight: 600;
}
.ael-badge-popular {
  display: inline-block;
  background: var(--ael-badge-orange);
  color: #fff;
  padding: 1px 8px;
  border-radius: 3px;
  font-size: 11px;
  font-weight: 600;
  margin-left: 4px;
}

/* ============================================================
   Section 5: Common Features (6 cards)
   ============================================================ */
.ael-features-section {
  padding: 48px 0;
}
.ael-features-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 24px;
}
.ael-feature-card {
  background: #fff;
  border: 1px solid var(--ael-border-light);
  border-radius: 12px;
  padding: 28px 24px;
  text-align: center;
  transition: transform 0.2s, box-shadow 0.2s;
}
.ael-feature-card:hover {
  transform: translateY(-4px);
  box-shadow: 0 8px 24px rgba(0,0,0,0.08);
}
.ael-feature-card__icon {
  font-size: 36px;
  margin-bottom: 12px;
  display: block;
}
.ael-feature-card__title {
  font-size: 16px;
  font-weight: 700;
  margin: 0 0 8px;
  color: var(--ael-text-primary);
}
.ael-feature-card__desc {
  font-size: 13px;
  color: var(--ael-text-secondary);
  margin: 0;
  line-height: 1.6;
}

/* ============================================================
   Section 6: Customer Reviews
   ============================================================ */
.ael-reviews-section {
  padding: 48px 0;
  background: var(--ael-bg-light);
  width: 100vw;
  margin-left: calc(-50vw + 50%);
}

/* Filter bar (shared with parts) */
.ael-filter-bar {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: 8px;
  margin-bottom: 24px;
}
.ael-filter-btn {
  padding: 8px 18px;
  border: 2px solid var(--ael-border-light);
  border-radius: 50px;
  background: #fff;
  font-size: 13px;
  font-weight: 600;
  color: var(--ael-text-secondary);
  cursor: pointer;
  transition: all 0.2s;
}
.ael-filter-btn:hover {
  border-color: var(--ael-accent-teal);
  color: var(--ael-primary-blue);
}
.ael-filter-btn.ael-filter--active {
  background: var(--ael-primary-blue);
  border-color: var(--ael-primary-blue);
  color: #fff;
}

.ael-reviews-grid {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 20px;
  max-width: 1100px;
  margin: 0 auto;
  padding: 0 20px;
}
.ael-review-card {
  background: #fff;
  border: 1px solid var(--ael-border-light);
  border-radius: 10px;
  padding: 20px;
}
.ael-review-card__header {
  display: flex;
  align-items: center;
  gap: 10px;
  margin-bottom: 10px;
}
.ael-review-card__stars {
  color: var(--ael-star-gold);
  font-size: 16px;
  letter-spacing: 1px;
}
.ael-review-card__model-badge {
  display: inline-block;
  background: var(--ael-primary-blue);
  color: #fff;
  padding: 2px 8px;
  border-radius: 3px;
  font-size: 11px;
  font-weight: 600;
}
.ael-review-card__source {
  display: inline-block;
  padding: 2px 8px;
  border-radius: 3px;
  font-size: 11px;
  font-weight: 600;
  margin-left: auto;
}
.ael-review-card__source--rakuten {
  background: #ffeee8;
  color: var(--ael-rakuten-red);
}
.ael-review-card__source--yahoo {
  background: #fff0f0;
  color: var(--ael-yahoo-red);
}
.ael-review-card__body {
  font-size: 14px;
  line-height: 1.7;
  color: var(--ael-text-primary);
  margin: 0 0 10px;
}
.ael-review-card__meta {
  font-size: 12px;
  color: var(--ael-text-muted);
}
.ael-reviews-empty {
  text-align: center;
  color: var(--ael-text-muted);
  padding: 40px 0;
  font-size: 14px;
  grid-column: 1 / -1;
}

/* ============================================================
   Section 7: FAQ Accordion
   ============================================================ */
.ael-faq-section {
  padding: 48px 0;
}
.ael-faq-list {
  max-width: 800px;
  margin: 0 auto;
}
.ael-faq-item {
  border: 1px solid var(--ael-border-light);
  border-radius: 8px;
  margin-bottom: 12px;
  overflow: hidden;
  background: #fff;
}
.ael-faq-q {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 16px 20px;
  font-size: 15px;
  font-weight: 600;
  cursor: pointer;
  color: var(--ael-text-primary);
  user-select: none;
  transition: background 0.2s;
}
.ael-faq-q:hover {
  background: var(--ael-bg-light);
}
.ael-faq-q::before {
  content: "Q.";
  color: var(--ael-accent-teal);
  font-weight: 700;
  margin-right: 10px;
  flex-shrink: 0;
}
.ael-faq-q__arrow {
  flex-shrink: 0;
  width: 20px;
  height: 20px;
  transition: transform 0.3s;
  margin-left: 12px;
}
.ael-faq-q__arrow::after {
  content: "";
  display: block;
  width: 10px;
  height: 10px;
  border-right: 2px solid var(--ael-text-muted);
  border-bottom: 2px solid var(--ael-text-muted);
  transform: rotate(45deg);
  margin: 2px auto;
}
.ael-faq-item.ael-faq--open .ael-faq-q__arrow::after {
  transform: rotate(-135deg);
  margin-top: 6px;
}
.ael-faq-a {
  max-height: 0;
  overflow: hidden;
  transition: max-height 0.3s ease;
}
.ael-faq-a__inner {
  padding: 0 20px 18px 48px;
  font-size: 14px;
  line-height: 1.8;
  color: var(--ael-text-secondary);
}

/* ============================================================
   Section 8: Replacement Parts
   ============================================================ */
.ael-parts-section {
  padding: 48px 0;
  background: var(--ael-bg-light);
  width: 100vw;
  margin-left: calc(-50vw + 50%);
}
.ael-parts-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 20px;
  max-width: 1100px;
  margin: 0 auto;
  padding: 0 20px;
}
.ael-part-card {
  background: #fff;
  border: 1px solid var(--ael-border-light);
  border-radius: 10px;
  padding: 20px;
  text-align: center;
}
.ael-part-card__name {
  font-size: 15px;
  font-weight: 600;
  margin: 0 0 8px;
  color: var(--ael-text-primary);
}
.ael-part-card__models {
  font-size: 12px;
  color: var(--ael-text-muted);
  margin: 0 0 8px;
}
.ael-part-card__price {
  font-size: 16px;
  font-weight: 700;
  color: var(--ael-price-red);
}

/* ============================================================
   Responsive: Tablet (max-width: 768px)
   ============================================================ */
@media (max-width: 768px) {
  .ael-landing {
    font-size: 16px;
  }
  .ael-hero {
    padding: 40px 16px 36px;
  }
  .ael-hero h1 {
    font-size: 22px;
  }
  .ael-hero__subtitle {
    font-size: 15px;
  }
  .ael-hero__badge {
    font-size: 14px;
    padding: 6px 14px;
  }
  .ael-tab {
    min-width: 110px;
    font-size: 14px;
  }
  .ael-tab__price {
    font-size: 13px;
  }
  .ael-product-panel.ael-panel--active {
    flex-direction: column;
  }
  .ael-product__gallery {
    flex: none;
    width: 100%;
    max-width: 400px;
    margin: 0 auto;
  }
  .ael-product__model-label {
    font-size: 13px;
  }
  .ael-product__capacity {
    font-size: 15px;
  }
  .ael-product__price-tax {
    font-size: 13px;
  }
  .ael-product__specs {
    font-size: 15px;
  }
  .ael-product__buttons {
    flex-direction: column;
  }
  .ael-btn {
    width: 100%;
    font-size: 15px;
    padding: 14px 20px;
  }
  .ael-product__recommend {
    font-size: 12px;
  }
  .ael-section-title {
    font-size: 20px;
  }
  .ael-compare-table {
    font-size: 14px;
  }
  .ael-compare-table thead th {
    font-size: 14px;
    padding: 10px 12px;
  }
  .ael-feature-card__title {
    font-size: 16px;
  }
  .ael-feature-card__desc {
    font-size: 14px;
  }
  .ael-features-grid {
    grid-template-columns: repeat(2, 1fr);
  }
  .ael-filter-btn {
    font-size: 14px;
    padding: 8px 16px;
  }
  .ael-review-card__body {
    font-size: 15px;
  }
  .ael-review-card__stars {
    font-size: 16px;
  }
  .ael-review-card__model-badge {
    font-size: 12px;
  }
  .ael-review-card__source {
    font-size: 12px;
  }
  .ael-review-card__meta {
    font-size: 13px;
  }
  .ael-reviews-grid {
    grid-template-columns: 1fr;
  }
  .ael-reviews-empty {
    font-size: 15px;
  }
  .ael-faq-q {
    font-size: 15px;
    padding: 16px 16px;
  }
  .ael-faq-a__inner {
    font-size: 15px;
    padding: 0 16px 18px 40px;
  }
  .ael-part-card__name {
    font-size: 15px;
  }
  .ael-part-card__models {
    font-size: 13px;
  }
  .ael-part-card__price {
    font-size: 16px;
  }
  .ael-parts-grid {
    grid-template-columns: repeat(2, 1fr);
  }
  .ael-badge-popular {
    font-size: 11px;
  }
}

/* ============================================================
   Responsive: Mobile (max-width: 420px)
   ============================================================ */
@media (max-width: 420px) {
  .ael-landing {
    font-size: 16px;
  }
  .ael-hero {
    padding: 32px 14px 28px;
  }
  .ael-hero h1 {
    font-size: 20px;
  }
  .ael-hero__subtitle {
    font-size: 14px;
  }
  .ael-hero__badge {
    font-size: 13px;
    padding: 5px 12px;
  }
  .ael-tab {
    min-width: 85px;
    font-size: 13px;
    padding: 12px 6px 10px;
  }
  .ael-tab__price {
    font-size: 12px;
  }
  .ael-product__name {
    font-size: 19px;
  }
  .ael-product__price {
    font-size: 24px;
  }
  .ael-product__capacity {
    font-size: 14px;
  }
  .ael-product__specs {
    font-size: 14px;
  }
  .ael-product__specs th,
  .ael-product__specs td {
    padding: 7px 10px;
  }
  .ael-btn {
    font-size: 15px;
    padding: 14px 16px;
  }
  .ael-section-title {
    font-size: 19px;
  }
  .ael-compare-table {
    min-width: 500px;
    font-size: 13px;
  }
  .ael-compare-table thead th {
    font-size: 13px;
    padding: 10px 10px;
  }
  .ael-feature-card {
    padding: 22px 18px;
  }
  .ael-feature-card__desc {
    font-size: 14px;
  }
  .ael-features-grid {
    grid-template-columns: 1fr;
  }
  .ael-filter-btn {
    font-size: 13px;
    padding: 7px 14px;
  }
  .ael-review-card {
    padding: 16px;
  }
  .ael-review-card__body {
    font-size: 14px;
  }
  .ael-review-card__meta {
    font-size: 12px;
  }
  .ael-faq-q {
    font-size: 15px;
    padding: 14px 14px;
  }
  .ael-faq-a__inner {
    font-size: 14px;
    padding: 0 14px 16px 36px;
  }
  .ael-part-card__name {
    font-size: 14px;
  }
  .ael-part-card__models {
    font-size: 12px;
  }
  .ael-parts-grid {
    grid-template-columns: 1fr;
  }
}
