/* Creamhub Next — lean, fast, accessible (no framework CSS) */
:root {
  --bg: #fffbf6;
  --bg-elevated: #ffffff;
  --surface: rgba(255, 255, 255, 0.92);
  --text: #1a1523;
  --text-muted: rgba(26, 21, 35, 0.72);
  --border: rgba(26, 21, 35, 0.12);
  --border-strong: rgba(26, 21, 35, 0.2);
  --accent: #e58a3a;
  --accent-hover: #c2410c;
  --accent-soft: rgba(229, 138, 58, 0.15);
  --shadow: 0 12px 40px rgba(26, 21, 35, 0.08);
  --shadow-lg: 0 20px 50px rgba(26, 21, 35, 0.12);
  --radius: 1.25rem;
  --radius-lg: 1.75rem;
  --header-h: 3.5rem;
  --promo-h: 2.75rem;
  --safe-top: env(safe-area-inset-top, 0px);
  --focus: 2px solid var(--accent);
  --focus-offset: 2px;
  color-scheme: light;
}

*,
*::before,
*::after {
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
}

/* Mobile: remove tap highlight + reduce accidental gesture quirks */
html,
body {
  -webkit-tap-highlight-color: transparent;
}

button,
a {
  -webkit-tap-highlight-color: transparent;
  touch-action: manipulation;
}

@media (prefers-reduced-motion: reduce) {
  html {
    scroll-behavior: auto;
  }
  *,
  *::before,
  *::after {
    animation-duration: 0.01ms !important;
    animation-iteration-count: 1 !important;
    transition-duration: 0.01ms !important;
  }
}

body {
  margin: 0;
  font-family: system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, sans-serif;
  font-size: 1rem;
  line-height: 1.6;
  color: var(--text);
  background: var(--bg);
  -webkit-font-smoothing: antialiased;
}

img {
  max-width: 100%;
  height: auto;
}

a {
  color: var(--accent-hover);
}

a:hover {
  text-decoration: underline;
  text-underline-offset: 3px;
}

:focus-visible {
  outline: var(--focus);
  outline-offset: var(--focus-offset);
}

.skip-link {
  position: absolute;
  left: -9999px;
  z-index: 99999;
  padding: 0.75rem 1rem;
  background: var(--accent);
  color: #fff;
  font-weight: 700;
  border-radius: 0.5rem;
}

.skip-link:focus {
  left: 1rem;
  top: calc(var(--promo-h) + 0.5rem + var(--safe-top));
}

/* Promo strip */
.promo {
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  z-index: 100;
  min-height: var(--promo-h);
  padding: 0.4rem 1rem;
  padding-top: calc(0.4rem + var(--safe-top));
  display: flex;
  align-items: center;
  justify-content: center;
  text-align: center;
  font-size: 0.8125rem;
  background: var(--surface);
  border-bottom: 1px solid var(--border);
  box-shadow: 0 1px 0 rgba(255, 255, 255, 0.8) inset;
}

.promo strong {
  color: var(--text);
}

.promo__label {
  font-weight: 800;
  font-size: 0.7rem;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  color: var(--accent-hover);
  margin-right: 0.35rem;
}

/* Header */
.site-header {
  position: fixed;
  top: calc(var(--promo-h) + var(--safe-top));
  left: 0;
  right: 0;
  z-index: 90;
  height: var(--header-h);
  display: flex;
  align-items: center;
  background: var(--surface);
  border-bottom: 1px solid var(--border);
}

.site-header__inner {
  width: 100%;
  max-width: 72rem;
  margin: 0 auto;
  padding: 0 1rem;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1rem;
}

.brand {
  display: flex;
  align-items: center;
  gap: 0.5rem;
  font-weight: 800;
  font-size: 1.125rem;
  color: var(--text);
  text-decoration: none;
}

.brand:hover {
  text-decoration: none;
  color: var(--accent-hover);
}

.brand__mark {
  width: 2.25rem;
  height: 2.25rem;
  border-radius: 0.65rem;
  background: var(--accent-soft);
  border: 1px solid var(--border);
  display: grid;
  place-items: center;
  font-size: 1.1rem;
}

.nav-desktop {
  display: none;
  align-items: center;
  gap: 0.25rem;
}

@media (min-width: 768px) {
  .nav-desktop {
    display: flex;
  }
}

.nav-desktop a {
  padding: 0.5rem 0.75rem;
  border-radius: 0.5rem;
  color: var(--text-muted);
  font-weight: 600;
  font-size: 0.875rem;
  text-decoration: none;
}

.nav-desktop a:hover {
  color: var(--text);
  background: rgba(26, 21, 35, 0.04);
  text-decoration: none;
}

.header-actions {
  display: none;
  align-items: center;
  gap: 0.5rem;
}

@media (min-width: 768px) {
  .header-actions {
    display: flex;
  }
}

/* Buttons */
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 0.5rem;
  min-height: 2.75rem;
  padding: 0.5rem 1.25rem;
  border-radius: 0.75rem;
  font-weight: 700;
  font-size: 0.9375rem;
  text-decoration: none;
  border: none;
  cursor: pointer;
  font-family: inherit;
  transition: box-shadow 0.15s ease, filter 0.15s ease, background-color 0.15s ease, color 0.15s ease;
}

.btn--primary {
  background: linear-gradient(135deg, #f59e0b, #ea580c);
  color: #fff;
  box-shadow: 0 4px 14px rgba(234, 88, 12, 0.35);
}

.btn--primary:hover {
  filter: brightness(1.05);
  text-decoration: none;
  color: #fff;
}

.btn--ghost {
  background: transparent;
  color: var(--text);
  border: 1px solid var(--border-strong);
}

.btn--ghost:hover {
  background: rgba(26, 21, 35, 0.04);
  text-decoration: none;
}

.btn--block {
  width: 100%;
}

.btn--lg {
  min-height: 3.25rem;
  padding: 0.75rem 1.5rem;
  font-size: 1rem;
  border-radius: var(--radius);
}

/* Mobile menu toggle */
.menu-toggle {
  display: flex;
  align-items: center;
  justify-content: center;
  width: 2.75rem;
  height: 2.75rem;
  border-radius: 0.75rem;
  border: 1px solid var(--border);
  background: var(--bg-elevated);
  cursor: pointer;
}

@media (min-width: 768px) {
  .menu-toggle {
    display: none;
  }
}

.menu-toggle svg {
  width: 1.35rem;
  height: 1.35rem;
}

/* Mobile panel */
.nav-mobile {
  position: fixed;
  top: calc(var(--promo-h) + var(--header-h) + var(--safe-top));
  left: 0;
  right: 0;
  z-index: 85;
  background: var(--surface);
  border-bottom: 1px solid var(--border);
  padding: 0.75rem 1rem 1rem;
  display: none;
  flex-direction: column;
  gap: 0.25rem;
  max-height: min(70vh, 24rem);
  overflow: auto;
}

.nav-mobile.is-open {
  display: flex;
}

.nav-mobile a,
.nav-mobile button {
  text-align: left;
  padding: 0.75rem 1rem;
  border-radius: 0.75rem;
  border: none;
  background: transparent;
  font: inherit;
  font-weight: 600;
  color: var(--text);
  cursor: pointer;
  text-decoration: none;
}

.nav-mobile a:hover,
.nav-mobile button:hover {
  background: rgba(26, 21, 35, 0.05);
}

.nav-mobile .btn--primary {
  margin-top: 0.5rem;
  justify-content: center;
}

body.nav-open {
  overflow: hidden;
}

/* Main offset for fixed chrome */
main {
  padding-top: calc(var(--promo-h) + var(--header-h) + var(--safe-top) + 1.5rem);
}

.section {
  padding: 3rem 1rem;
  max-width: 72rem;
  margin: 0 auto;
}

.section--tight {
  padding-top: 2rem;
}

.section__eyebrow {
  display: inline-block;
  font-size: 0.75rem;
  font-weight: 800;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: var(--accent-hover);
  margin-bottom: 0.75rem;
}

.section__title {
  font-size: clamp(1.75rem, 4vw, 2.75rem);
  font-weight: 800;
  letter-spacing: -0.02em;
  line-height: 1.15;
  margin: 0 0 1rem;
}

.section__lead {
  margin: 0;
  max-width: 40rem;
  color: var(--text-muted);
  font-size: 1.0625rem;
}

/* Hero */
.hero {
  padding-bottom: 2rem;
}

.hero__grid {
  display: grid;
  gap: 2rem;
  align-items: start;
}

@media (min-width: 900px) {
  .hero__grid {
    grid-template-columns: 1.1fr 0.9fr;
    gap: 3rem;
    align-items: center;
  }
}

.hero__badges {
  display: flex;
  flex-wrap: wrap;
  gap: 0.5rem;
  margin: 1.25rem 0 1.5rem;
  padding: 0;
  list-style: none;
}

.pill {
  display: inline-flex;
  align-items: center;
  gap: 0.35rem;
  padding: 0.35rem 0.75rem;
  border-radius: 999px;
  font-size: 0.8125rem;
  font-weight: 600;
  background: var(--bg-elevated);
  border: 1px solid var(--border);
  color: var(--text-muted);
}

.hero__actions {
  display: flex;
  flex-direction: column;
  gap: 0.75rem;
}

@media (min-width: 480px) {
  .hero__actions {
    flex-direction: row;
    flex-wrap: wrap;
  }
}

.trust-card {
  background: var(--bg-elevated);
  border: 1px solid var(--border);
  border-radius: var(--radius-lg);
  padding: 1.25rem 1.5rem;
  box-shadow: var(--shadow);
}

.trust-card__title {
  font-weight: 800;
  margin: 0 0 0.5rem;
  font-size: 1rem;
}

.trust-card__list {
  margin: 0;
  padding: 0;
  list-style: none;
  display: grid;
  gap: 0.5rem;
  color: var(--text-muted);
  font-size: 0.9375rem;
}

.trust-card__list li {
  display: flex;
  gap: 0.5rem;
  align-items: flex-start;
}

.trust-card__list svg {
  flex-shrink: 0;
  margin-top: 0.15rem;
  color: var(--accent-hover);
}

/* Currency */
.currency {
  display: flex;
  justify-content: center;
  margin-bottom: 2rem;
}

.currency__group {
  display: inline-flex;
  padding: 0.25rem;
  border-radius: 999px;
  background: var(--bg-elevated);
  border: 1px solid var(--border);
  gap: 0.15rem;
}

.currency__btn {
  min-width: 4.5rem;
  min-height: 2.75rem;
  padding: 0 1rem;
  border: none;
  border-radius: 999px;
  background: transparent;
  font: inherit;
  font-weight: 700;
  font-size: 0.8125rem;
  letter-spacing: 0.04em;
  color: var(--text-muted);
  cursor: pointer;
}

.currency__btn[aria-pressed="true"] {
  background: var(--accent-soft);
  color: var(--text);
  box-shadow: 0 1px 3px rgba(26, 21, 35, 0.08);
}

/* Pricing */
.pricing__intro {
  text-align: center;
  max-width: 40rem;
  margin: 0 auto 2rem;
}

.pricing-grid {
  display: grid;
  gap: 1.25rem;
}

@media (max-width: 959px) {
  .plan--featured {
    order: -1;
  }
}

@media (min-width: 960px) {
  .pricing-grid {
    grid-template-columns: 1fr 1.15fr 1fr;
    align-items: stretch;
    gap: 1.5rem;
  }
}

.plan {
  position: relative;
  background: var(--bg-elevated);
  border: 1px solid var(--border);
  border-radius: var(--radius-lg);
  padding: 1.5rem;
  display: flex;
  flex-direction: column;
  min-height: 100%;
  box-shadow: var(--shadow);
}

@media (min-width: 960px) {
  .plan--featured {
    transform: translateY(-0.35rem);
    border-color: rgba(229, 138, 58, 0.45);
    box-shadow: var(--shadow-lg);
    z-index: 1;
  }
}

.plan__badge {
  position: absolute;
  top: 0;
  right: 0;
  padding: 0.4rem 0.85rem;
  font-size: 0.7rem;
  font-weight: 800;
  letter-spacing: 0.04em;
  text-transform: uppercase;
  background: linear-gradient(135deg, #fde68a, #fdba74);
  color: var(--text);
  border-bottom-left-radius: 0.75rem;
}

.plan__name {
  margin: 1.75rem 0 0.25rem;
  font-size: 1.5rem;
  font-weight: 800;
}

.plan__tagline {
  margin: 0 0 1rem;
  font-size: 0.8125rem;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.06em;
  color: var(--accent-hover);
}

.plan__price-row {
  display: flex;
  align-items: baseline;
  flex-wrap: wrap;
  gap: 0.5rem 1rem;
  margin-bottom: 0.5rem;
}

.price-amount {
  font-size: clamp(2rem, 5vw, 2.75rem);
  font-weight: 800;
  letter-spacing: -0.03em;
}

.price-amount.is-updating {
  opacity: 0.45;
}

.price-original {
  font-size: 1.125rem;
  color: var(--text-muted);
  text-decoration: line-through;
}

.plan__note {
  margin: 0 0 1.25rem;
  font-size: 0.8125rem;
  color: var(--text-muted);
  font-weight: 600;
}

.plan__features {
  margin: 0 0 1.5rem;
  padding: 0;
  list-style: none;
  flex: 1;
  display: flex;
  flex-direction: column;
  gap: 0.65rem;
}

.plan__features li {
  display: flex;
  gap: 0.6rem;
  align-items: flex-start;
  font-size: 0.9375rem;
  color: var(--text-muted);
}

.plan__features svg {
  flex-shrink: 0;
  margin-top: 0.1rem;
  color: var(--accent-hover);
}

.plan .btn--primary {
  background: linear-gradient(135deg, #94a3b8, #64748b);
  box-shadow: none;
}

.plan--featured .btn--primary {
  background: linear-gradient(135deg, #f59e0b, #ea580c);
  box-shadow: 0 6px 20px rgba(234, 88, 12, 0.35);
}

.plan--gold .btn--primary {
  background: linear-gradient(135deg, #fb923c, #ec4899);
  box-shadow: 0 4px 16px rgba(236, 72, 153, 0.25);
}

/* Steps */
.steps {
  display: grid;
  gap: 1.25rem;
}

@media (min-width: 768px) {
  .steps {
    grid-template-columns: repeat(3, 1fr);
  }
}

.step {
  padding: 1.25rem;
  border-radius: var(--radius);
  border: 1px solid var(--border);
  background: var(--bg-elevated);
}

.step__num {
  width: 2rem;
  height: 2rem;
  border-radius: 0.5rem;
  display: grid;
  place-items: center;
  font-weight: 800;
  background: var(--accent-soft);
  color: var(--accent-hover);
  margin-bottom: 0.75rem;
}

.step h3 {
  margin: 0 0 0.5rem;
  font-size: 1.0625rem;
}

.step p {
  margin: 0;
  font-size: 0.9375rem;
  color: var(--text-muted);
}

/* Features grid */
.features {
  display: grid;
  gap: 1.25rem;
}

@media (min-width: 768px) {
  .features {
    grid-template-columns: repeat(3, 1fr);
  }
}

.feature {
  padding: 1.5rem;
  border-radius: var(--radius-lg);
  border: 1px solid var(--border);
  background: var(--bg-elevated);
  box-shadow: var(--shadow);
}

.feature h3 {
  margin: 0 0 0.5rem;
  font-size: 1.0625rem;
}

.feature p {
  margin: 0;
  font-size: 0.9375rem;
  color: var(--text-muted);
}

/* FAQ */
.faq {
  border: 1px solid var(--border);
  border-radius: var(--radius-lg);
  overflow: hidden;
  background: var(--bg-elevated);
}

.faq-item + .faq-item {
  border-top: 1px solid var(--border);
}

.faq-item button {
  width: 100%;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1rem;
  padding: 1rem 1.25rem;
  border: none;
  background: transparent;
  font: inherit;
  font-weight: 600;
  text-align: left;
  cursor: pointer;
  color: var(--text);
}

.faq-item button svg {
  flex-shrink: 0;
  transition: transform 0.2s ease;
}

.faq-item button[aria-expanded="true"] svg {
  transform: rotate(45deg);
}

.faq-panel {
  display: none;
  padding: 0 1.25rem 1rem;
  color: var(--text-muted);
  font-size: 0.9375rem;
}

.faq-item.is-open .faq-panel {
  display: block;
}

/* Footer */
.site-footer {
  padding: 3rem 1rem;
  border-top: 1px solid var(--border);
  background: rgba(255, 255, 255, 0.6);
}

.site-footer__inner {
  max-width: 72rem;
  margin: 0 auto;
  text-align: center;
}

.site-footer nav {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: 1rem 1.5rem;
  margin-bottom: 1rem;
}

.site-footer a {
  color: var(--text-muted);
  font-weight: 600;
  font-size: 0.875rem;
  text-decoration: none;
}

.site-footer a:hover {
  color: var(--accent-hover);
  text-decoration: underline;
}

.site-footer__meta {
  font-size: 0.8125rem;
  color: var(--text-muted);
}

.visually-hidden {
  position: absolute;
  width: 1px;
  height: 1px;
  padding: 0;
  margin: -1px;
  overflow: hidden;
  clip: rect(0, 0, 0, 0);
  white-space: nowrap;
  border: 0;
}
