/*
  AI-Sthetics shared UI
  Source of truth: index-products-draft.html

  Scope every rule to .product-page so checkout and utility pages can keep
  their task-specific layouts.
*/

:root {
  --ui-ink: #221c13;
  --ui-ink-soft: #7a6e5d;
  --ui-bg: #fbf9f4;
  --ui-card: #fdfcf8;
  --ui-pink: #e8a0b4;
  --ui-pink-deep: #a64e6c;
  --ui-dark: #2b2013;
  --ui-line: #e6ddce;
  --ui-max: 1120px;
  --ui-nav-max: 1200px;
  --ui-font-logo: "Charmonman", cursive;
  --ui-font-display: "IBM Plex Sans Thai", system-ui, sans-serif;
  --ui-font-body: "IBM Plex Sans Thai", system-ui, sans-serif;
  --ui-font-accent: "Noto Serif Thai", Georgia, serif;
}

body.product-page {
  color: var(--ui-ink);
  background: var(--ui-bg);
  font-family: var(--ui-font-body);
  font-size: 16px;
  line-height: 1.75;
  -webkit-font-smoothing: antialiased;
  text-rendering: optimizeLegibility;
}

.product-page h1,
.product-page h2,
.product-page h3 {
  font-family: var(--ui-font-display);
  font-weight: 700;
  text-wrap: balance;
}

.product-page h1,
.product-page .hero h1,
.product-page .hero-copy h1 {
  font-size: clamp(34px, 4.4vw, 56px);
  line-height: 1.3;
  letter-spacing: -0.015em;
}

.product-page h2,
.product-page .tile h2,
.product-page .proof h2 {
  font-size: clamp(28px, 3.4vw, 46px);
  line-height: 1.3;
  letter-spacing: -0.01em;
}

.product-page h3 {
  font-size: clamp(22px, 2vw, 28px);
  line-height: 1.3;
}

.product-page h1 em,
.product-page h1 .script {
  color: var(--ui-ink-soft);
  font-family: var(--ui-font-accent);
  font-style: italic;
  font-weight: 400;
}

.product-page .hero-sub,
.product-page .hero-lede,
.product-page .hero > .wrap p,
.product-page .hero-inner > p {
  font-size: 18px;
}

.product-page .nav,
.product-page .site-nav {
  position: static;
  height: auto;
  border: 0;
  border-bottom: 1px solid var(--ui-line);
  background: var(--ui-bg);
  -webkit-backdrop-filter: none;
  backdrop-filter: none;
}

.product-page .nav-inner {
  display: flex;
  width: min(calc(100% - 48px), var(--ui-nav-max));
  max-width: var(--ui-nav-max);
  height: auto;
  min-height: 72px;
  margin-inline: auto;
  padding: 8px 0;
  align-items: center;
  justify-content: space-between;
  gap: 24px;
}

.product-page .logo,
.product-page .wordmark {
  color: var(--ui-pink);
  text-decoration: none;
  font-family: var(--ui-font-logo);
  font-size: 28px;
  font-weight: 700;
  line-height: 1;
  text-shadow: 1.5px 1.5px 0 #433a29;
}

.product-page .nav-cta {
  display: inline-flex;
  min-height: 54px;
  padding: 12px 30px;
  border: 0;
  border-radius: 999px;
  align-items: center;
  justify-content: center;
  color: #fff;
  background: var(--ui-dark);
  font-family: var(--ui-font-body);
  font-size: 16px;
  font-weight: 600;
  line-height: 1.5;
  text-decoration: none;
  white-space: nowrap;
}

.product-page .nav-cta:hover {
  color: #fff;
  background: #45341f;
  transform: none;
}

.product-page .nav-actions {
  display: flex;
  align-items: center;
  justify-content: flex-end;
  gap: 28px;
}

.product-page .nav-link {
  color: var(--ui-ink-soft);
  font-family: var(--ui-font-body);
  font-size: 16px;
  font-weight: 400;
  line-height: 1.5;
  text-decoration: none;
  white-space: nowrap;
}

.product-page .nav-link:hover {
  color: var(--ui-ink);
}

.product-page .button,
.product-page .btn,
.product-page .tile-btn,
.product-page .reviews-toggle {
  min-height: 48px;
  padding: 12px 34px;
  border-radius: 10px;
  font-family: var(--ui-font-body);
  font-size: 16px;
  font-weight: 600;
}

.product-page .tile,
.product-page .proof-tile,
.product-page .mentor,
.product-page .visual-board {
  border-radius: 20px;
}

.product-page .review-card,
.product-page .price-card,
.product-page .plan,
.product-page .card,
.product-page .deliverable {
  border-radius: 16px;
}

.product-page :focus-visible {
  outline: 3px solid var(--ui-pink);
  outline-offset: 3px;
}

@media (max-width: 900px) {
  .product-page .hero {
    padding-top: 56px;
    padding-bottom: 44px;
  }
}

@media (max-width: 700px) {
  .product-page h1,
  .product-page .hero h1,
  .product-page .hero-copy h1 {
    font-size: clamp(36px, 10vw, 48px);
  }

  .product-page h2,
  .product-page .tile h2,
  .product-page .proof h2 {
    font-size: clamp(30px, 9vw, 38px);
  }

  .product-page .nav-inner {
    width: min(calc(100% - 48px), var(--ui-max));
    gap: 12px;
  }

  .product-page .nav-actions {
    gap: 12px;
  }

  .product-page .nav-link {
    display: none;
  }

  .product-page .nav-cta {
    min-height: 48px;
    padding-inline: 20px;
  }
}
