/* FAUSTINA IPL Guides — rose-gold beauty editorial. Fonts: Fraunces (display) + Karla (body). */

:root {
  --bg: #FBF4F0;
  --bg-deep: #F6E8E1;
  --card: #FFFDFB;
  --ink: #3B2A2E;
  --ink-soft: #75595C;
  --accent: #B05548;
  --accent-deep: #8C4038;
  --gold: #D29A86;
  --rose: #F6E0D8;
  --line: rgba(59, 42, 46, 0.15);
  --max: 71rem;
  --article: 46rem;
  --serif: "Fraunces", Georgia, serif;
  --sans: "Karla", "Segoe UI", sans-serif;
}

* { box-sizing: border-box; margin: 0; padding: 0; }

html { scroll-behavior: smooth; }

body {
  font-family: var(--sans);
  font-size: 1.125rem;
  line-height: 1.75;
  color: var(--ink);
  background: var(--bg);
  -webkit-font-smoothing: antialiased;
}

/* ---------- header ---------- */

.topbar {
  border-bottom: 1px solid var(--line);
  background: color-mix(in srgb, var(--bg) 90%, white);
  position: sticky;
  top: 0;
  z-index: 20;
  backdrop-filter: blur(8px);
}

.topbar-inner {
  max-width: var(--max);
  margin: 0 auto;
  padding: 0.95rem 1.5rem;
  display: flex;
  align-items: center;
  gap: 2rem;
}

.wordmark { text-decoration: none; }

.wordmark img { display: block; }

.wordmark span {
  display: block;
  font-family: var(--sans);
  font-size: 0.62rem;
  font-weight: 700;
  letter-spacing: 0.34em;
  color: var(--accent);
  text-transform: uppercase;
  margin-top: 0.25rem;
}

.nav {
  display: flex;
  gap: 1.6rem;
  margin-left: auto;
  align-items: center;
}

.nav a {
  color: var(--ink-soft);
  text-decoration: none;
  font-weight: 600;
  font-size: 0.95rem;
  letter-spacing: 0.02em;
  position: relative;
  white-space: nowrap;
}

.nav .btn { flex-shrink: 0; }

.nav a:not(.btn)::after {
  content: "";
  position: absolute;
  left: 0; bottom: -4px;
  width: 0; height: 2px;
  background: linear-gradient(90deg, var(--accent), var(--gold));
  transition: width 0.28s ease;
}

.nav a:not(.btn):hover::after { width: 100%; }
.nav a:not(.btn):hover { color: var(--ink); }

/* ---------- buttons ---------- */

.btn {
  display: inline-block;
  background: linear-gradient(135deg, var(--accent), var(--accent-deep));
  color: #FFF7F2 !important;
  padding: 0.75rem 1.6rem;
  border-radius: 999px;
  font-weight: 700;
  font-size: 0.98rem;
  letter-spacing: 0.03em;
  text-decoration: none;
  border: none;
  white-space: nowrap;
  box-shadow: 0 8px 20px -10px rgba(140, 64, 56, 0.55);
  transition: transform 0.22s ease, box-shadow 0.22s ease;
}

.hero-cta .btn { white-space: normal; text-align: center; }

.btn:hover { transform: translateY(-2px); box-shadow: 0 14px 26px -12px rgba(140, 64, 56, 0.65); }

.btn-ghost {
  background: transparent;
  color: var(--accent) !important;
  border: 1.5px solid var(--gold);
  box-shadow: none;
}

.btn-ghost:hover { background: var(--rose); }

/* ---------- hero ---------- */

.hero {
  position: relative;
  overflow: hidden;
  background:
    radial-gradient(56rem 34rem at 84% -14%, rgba(210, 154, 134, 0.38), transparent 62%),
    radial-gradient(42rem 28rem at 4% 110%, rgba(246, 224, 216, 0.95), transparent 65%),
    var(--bg);
  border-bottom: 1px solid var(--line);
}

/* IPL light-sweep signature */
.hero::after {
  content: "";
  position: absolute;
  top: -20%;
  left: -30%;
  width: 34%;
  height: 140%;
  background: linear-gradient(100deg, transparent, rgba(255, 250, 245, 0.75) 48%, rgba(210, 154, 134, 0.28) 52%, transparent);
  transform: skewX(-14deg);
  animation: sweep 7s ease-in-out infinite;
  pointer-events: none;
}

@keyframes sweep {
  0%, 55%, 100% { left: -40%; opacity: 0; }
  62% { opacity: 1; }
  78% { left: 115%; opacity: 0; }
}

.hero-inner {
  max-width: var(--max);
  margin: 0 auto;
  padding: 5.2rem 1.5rem 4.5rem;
  display: grid;
  grid-template-columns: minmax(0, 1.3fr) minmax(0, 0.9fr);
  gap: 4rem;
  align-items: center;
  position: relative;
  z-index: 1;
}

.kicker {
  font-size: 0.8rem;
  font-weight: 700;
  letter-spacing: 0.3em;
  text-transform: uppercase;
  color: var(--accent);
  margin-bottom: 1.2rem;
  animation: rise 0.7s ease both;
}

h1 {
  font-family: var(--serif);
  font-weight: 600;
  font-size: clamp(2.4rem, 5.2vw, 4rem);
  line-height: 1.08;
  letter-spacing: -0.015em;
  animation: rise 0.7s 0.08s ease both;
}

.hero-sub {
  margin-top: 1.5rem;
  font-size: 1.2rem;
  color: var(--ink-soft);
  max-width: 34rem;
  animation: rise 0.7s 0.16s ease both;
}

.hero-cta {
  margin-top: 2.2rem;
  display: flex;
  gap: 1rem;
  flex-wrap: wrap;
  animation: rise 0.7s 0.24s ease both;
}

.hero-card {
  background: var(--card);
  border: 1px solid var(--line);
  border-radius: 18px;
  padding: 1.6rem 2rem 2rem;
  box-shadow: 0 30px 60px -38px rgba(59, 42, 46, 0.45);
  animation: rise 0.7s 0.3s ease both;
}

.hero-card img.product {
  width: 100%;
  border-radius: 12px;
  margin-bottom: 1.1rem;
}

.hero-card h2 {
  font-family: var(--serif);
  font-size: 1.3rem;
  font-weight: 620;
  margin-bottom: 0.8rem;
}

.factlist { list-style: none; }

.factlist li {
  padding: 0.5rem 0;
  border-bottom: 1px dashed var(--line);
  font-size: 0.98rem;
  display: flex;
  gap: 0.6rem;
}

.factlist li:last-child { border-bottom: none; }

.factlist .tick { color: var(--gold); font-weight: 700; }

@keyframes rise {
  from { opacity: 0; transform: translateY(14px); }
  to { opacity: 1; transform: none; }
}

/* scroll reveal */
.reveal { opacity: 0; transform: translateY(18px); transition: opacity 0.7s ease, transform 0.7s ease; }
.reveal.visible { opacity: 1; transform: none; }

/* ---------- sections ---------- */

.section {
  max-width: var(--max);
  margin: 0 auto;
  padding: 4.5rem 1.5rem;
}

.section-label {
  font-size: 0.78rem;
  font-weight: 700;
  letter-spacing: 0.3em;
  text-transform: uppercase;
  color: var(--accent);
  display: flex;
  align-items: center;
  gap: 0.9rem;
  margin-bottom: 2.2rem;
}

.section-label::after {
  content: "";
  flex: 1;
  height: 1px;
  background: linear-gradient(90deg, var(--gold), transparent);
}

h2.display {
  font-family: var(--serif);
  font-weight: 600;
  font-size: clamp(1.7rem, 3vw, 2.3rem);
  line-height: 1.15;
  margin-bottom: 1.2rem;
  letter-spacing: -0.01em;
}

/* ---------- guide cards ---------- */

.cards {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(19rem, 1fr));
  gap: 1.4rem;
}

.card {
  background: var(--card);
  border: 1px solid var(--line);
  border-radius: 14px;
  padding: 1.8rem;
  text-decoration: none;
  color: var(--ink);
  display: flex;
  flex-direction: column;
  gap: 0.7rem;
  transition: transform 0.24s ease, box-shadow 0.24s ease, border-color 0.24s ease;
}

.card:hover {
  transform: translateY(-5px);
  box-shadow: 0 24px 44px -30px rgba(59, 42, 46, 0.5);
  border-color: var(--gold);
}

.card .tag {
  font-size: 0.7rem;
  font-weight: 700;
  letter-spacing: 0.24em;
  text-transform: uppercase;
  color: var(--gold);
}

.card h3 {
  font-family: var(--serif);
  font-size: 1.35rem;
  font-weight: 620;
  line-height: 1.25;
}

.card p { font-size: 0.98rem; color: var(--ink-soft); }

.card .go {
  margin-top: auto;
  font-weight: 700;
  font-size: 0.9rem;
  color: var(--accent);
  letter-spacing: 0.04em;
}

.card-feature { border-top: 3px solid var(--accent); }

/* ---------- bands ---------- */

.band {
  background: var(--bg-deep);
  border-top: 1px solid var(--line);
  border-bottom: 1px solid var(--line);
}

.band-ink {
  background: #3B2A2E;
  color: #F7EBE4;
}

.band-ink .section-label { color: var(--gold); }
.band-ink .section-label::after { background: linear-gradient(90deg, rgba(210,154,134,.5), transparent); }
.band-ink h2.display { color: #FCF2EB; }
.band-ink p { color: rgba(247, 235, 228, 0.85); }

/* ---------- article layout ---------- */

.article-hero {
  background:
    radial-gradient(46rem 26rem at 88% -20%, rgba(210, 154, 134, 0.28), transparent 60%),
    var(--bg);
  border-bottom: 1px solid var(--line);
}

.article-hero-inner {
  max-width: var(--article);
  margin: 0 auto;
  padding: 4rem 1.5rem 3rem;
}

.article-hero h1 { font-size: clamp(2rem, 4.2vw, 3rem); }

.article-meta {
  margin-top: 1.2rem;
  font-size: 0.92rem;
  color: var(--ink-soft);
  display: flex;
  gap: 0.8rem;
  align-items: center;
  flex-wrap: wrap;
}

.article-meta .dot { color: var(--gold); }

article {
  max-width: var(--article);
  margin: 0 auto;
  padding: 3rem 1.5rem 4.5rem;
}

article > p, article > ul, article > ol { margin-bottom: 1.4rem; }

article img { border-radius: 12px; }

article p.lead {
  font-size: 1.28rem;
  line-height: 1.65;
  color: var(--ink);
}

article p.lead::first-letter {
  font-family: var(--serif);
  font-weight: 640;
  font-size: 3.4em;
  float: left;
  line-height: 0.82;
  padding: 0.08em 0.12em 0 0;
  color: var(--accent);
}

article h2 {
  font-family: var(--serif);
  font-weight: 620;
  font-size: 1.75rem;
  line-height: 1.2;
  margin: 2.6rem 0 1rem;
  letter-spacing: -0.01em;
}

article h3 {
  font-family: var(--serif);
  font-weight: 620;
  font-size: 1.3rem;
  margin: 2rem 0 0.8rem;
}

article ul, article ol { padding-left: 1.4rem; }
article li { margin-bottom: 0.5rem; }
article li::marker { color: var(--accent); font-weight: 700; }

article a { color: var(--accent-deep); text-decoration-color: var(--gold); text-underline-offset: 3px; }
article a:hover { color: var(--accent); }

article strong { font-weight: 700; }

.divider {
  text-align: center;
  color: var(--gold);
  font-size: 1.1rem;
  letter-spacing: 1.2em;
  padding-left: 1.2em;
  margin: 2.6rem 0;
}

/* ---------- tables ---------- */

.table-wrap { overflow-x: auto; margin: 1.8rem 0; border-radius: 12px; }

table {
  width: 100%;
  border-collapse: collapse;
  background: var(--card);
  border: 1px solid var(--line);
  font-size: 1rem;
}

th {
  font-family: var(--sans);
  font-size: 0.78rem;
  font-weight: 700;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  text-align: left;
  color: var(--accent-deep);
  background: var(--rose);
  padding: 0.8rem 1rem;
  border-bottom: 2px solid var(--gold);
}

td {
  padding: 0.8rem 1rem;
  border-bottom: 1px solid var(--line);
  vertical-align: top;
}

tr:last-child td { border-bottom: none; }

tbody tr { transition: background 0.15s ease; }
table tr:hover td { background: color-mix(in srgb, var(--rose) 40%, transparent); }

/* ---------- callouts ---------- */

.callout {
  background: var(--rose);
  border-left: 3px solid var(--accent);
  border-radius: 0 12px 12px 0;
  padding: 1.3rem 1.5rem;
  margin: 1.8rem 0;
  font-size: 1.02rem;
}

.callout-note {
  background: var(--bg-deep);
  border-left-color: var(--gold);
}

/* ---------- FAQ ---------- */

.faq { margin: 1.5rem 0; }

.faq details {
  background: var(--card);
  border: 1px solid var(--line);
  border-radius: 12px;
  margin-bottom: 0.7rem;
  overflow: hidden;
}

.faq details[open] { border-color: var(--gold); }

.faq summary {
  cursor: pointer;
  padding: 1.05rem 1.3rem;
  font-weight: 700;
  font-size: 1.04rem;
  list-style: none;
  display: flex;
  justify-content: space-between;
  gap: 1rem;
}

.faq summary::-webkit-details-marker { display: none; }

.faq summary::after {
  content: "+";
  color: var(--accent);
  font-family: var(--serif);
  font-size: 1.3rem;
  line-height: 1;
  transition: transform 0.2s ease;
}

.faq details[open] summary::after { transform: rotate(45deg); }

.faq details > div { padding: 0 1.3rem 1.2rem; color: var(--ink-soft); }

/* ---------- interactive: suitability checker ---------- */

.checker {
  background: var(--card);
  border: 1px solid var(--line);
  border-radius: 16px;
  padding: 1.8rem;
  margin: 1.8rem 0;
  box-shadow: 0 20px 40px -32px rgba(59, 42, 46, 0.4);
}

.checker-q { font-weight: 700; margin: 0.4rem 0 0.7rem; font-size: 1.02rem; }

.swatches { display: flex; gap: 0.7rem; flex-wrap: wrap; margin-bottom: 1rem; }

.swatch {
  width: 46px;
  height: 46px;
  border-radius: 50%;
  border: 3px solid transparent;
  cursor: pointer;
  transition: transform 0.18s ease, border-color 0.18s ease, box-shadow 0.18s ease;
  box-shadow: inset 0 0 0 1px rgba(59, 42, 46, 0.18);
}

.swatch:hover { transform: scale(1.12); }

.swatch.selected {
  border-color: var(--accent);
  box-shadow: 0 0 0 3px var(--rose), inset 0 0 0 1px rgba(59, 42, 46, 0.18);
  transform: scale(1.08);
}

.checker-result {
  background: var(--rose);
  border-radius: 12px;
  padding: 1.1rem 1.3rem;
  font-size: 1.02rem;
  min-height: 3.4rem;
  transition: background 0.3s ease;
}

.checker-result.good { background: #E6F0E2; border-left: 3px solid #5E8C56; }
.checker-result.caution { background: #F8EDDC; border-left: 3px solid #C9913B; }
.checker-result.no { background: #F6DFDA; border-left: 3px solid var(--accent-deep); }

/* ---------- interactive: savings calculator ---------- */

.calc {
  background: var(--card);
  border: 1px solid var(--line);
  border-radius: 16px;
  padding: 1.8rem;
  margin: 1.8rem 0;
  box-shadow: 0 20px 40px -32px rgba(59, 42, 46, 0.4);
}

.calc label { display: block; font-weight: 700; font-size: 1rem; margin: 0.8rem 0 0.3rem; }

.calc input[type="range"] {
  width: 100%;
  accent-color: var(--accent);
  cursor: pointer;
  height: 2rem;
}

.calc-readout {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 1rem;
  margin-top: 1.2rem;
  text-align: center;
}

.calc-num {
  display: block;
  font-family: var(--serif);
  font-weight: 640;
  font-size: 1.7rem;
  color: var(--ink);
}

.calc-num.calc-saving { color: var(--accent); }

.calc-label { display: block; font-size: 0.85rem; color: var(--ink-soft); }

/* ---------- buy-direct strip ---------- */

.direct-strip {
  background: linear-gradient(120deg, var(--rose), color-mix(in srgb, var(--rose) 55%, white));
  border: 1px solid var(--gold);
  border-radius: 14px;
  padding: 1.2rem 1.5rem;
  margin: 2.2rem 0;
  font-size: 1rem;
}

.direct-strip a { font-weight: 700; }

/* ---------- product CTA panel ---------- */

.product-panel {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 1.4rem;
  margin: 2rem 0;
}

.product-panel.three { grid-template-columns: 1fr 1fr 1fr; }

@media (max-width: 1000px) {
  .product-panel.three { grid-template-columns: 1fr; }
}

.product-option {
  background: var(--card);
  border: 1px solid var(--line);
  border-top: 3px solid var(--gold);
  border-radius: 14px;
  padding: 1.7rem;
  transition: transform 0.24s ease, box-shadow 0.24s ease;
}

.product-option:hover { transform: translateY(-4px); box-shadow: 0 24px 44px -30px rgba(59, 42, 46, 0.5); }

.product-option.primary { border-top-color: var(--accent); }

.product-option img { width: 100%; border-radius: 10px; margin-bottom: 0.9rem; }

.product-option .price {
  font-family: var(--serif);
  font-size: 2rem;
  font-weight: 640;
  color: var(--accent-deep);
}

.product-option .was {
  font-size: 1rem;
  color: var(--ink-soft);
  text-decoration: line-through;
  margin-left: 0.5rem;
}

.product-option h3 { font-family: var(--serif); font-size: 1.4rem; margin: 0.2rem 0 0.6rem; }

.product-option p { font-size: 0.98rem; color: var(--ink-soft); margin-bottom: 1.2rem; }

/* ---------- footer ---------- */

footer {
  background: #332226;
  color: rgba(247, 235, 228, 0.78);
  margin-top: 2rem;
}

.footer-inner {
  max-width: var(--max);
  margin: 0 auto;
  padding: 3.2rem 1.5rem 2.4rem;
  display: grid;
  grid-template-columns: 1.2fr 1fr 1fr;
  gap: 2.5rem;
  font-size: 0.95rem;
}

footer .wordmark img { filter: brightness(2.2); }
footer .wordmark span { color: var(--gold); }

footer h4 {
  font-size: 0.75rem;
  font-weight: 700;
  letter-spacing: 0.26em;
  text-transform: uppercase;
  color: var(--gold);
  margin-bottom: 0.9rem;
}

footer ul { list-style: none; }
footer li { margin-bottom: 0.45rem; }
footer a { color: rgba(247, 235, 228, 0.88); text-decoration: none; }
footer a:hover { color: #FCF2EB; text-decoration: underline; text-underline-offset: 3px; }

.footer-legal {
  max-width: var(--max);
  margin: 0 auto;
  padding: 1.4rem 1.5rem 2.2rem;
  border-top: 1px solid rgba(247, 235, 228, 0.14);
  font-size: 0.85rem;
  color: rgba(247, 235, 228, 0.55);
  line-height: 1.7;
}

/* ---------- responsive ---------- */

@media (max-width: 860px) {
  .hero-inner { grid-template-columns: 1fr; gap: 2.5rem; padding-top: 3.5rem; }
  .product-panel { grid-template-columns: 1fr; }
  .footer-inner { grid-template-columns: 1fr; gap: 1.8rem; }
  .nav { gap: 1rem; }
  .nav a:not(.btn):first-child { display: none; }
  .calc-readout { grid-template-columns: 1fr; }
}

@media (max-width: 700px) {
  .topbar-inner { padding: 0.7rem 1rem; gap: 1rem; }
  .nav { gap: 0.7rem; }
  .nav a:not(.btn) { display: none; }
  .nav .btn { padding: 0.55rem 1.1rem; font-size: 0.9rem; }
  .hero-inner { padding: 2.8rem 1.1rem 3rem; gap: 2rem; }
  .hero-sub { font-size: 1.08rem; }
  .hero-cta { flex-direction: column; align-items: stretch; }
  .hero-cta .btn { text-align: center; }
  .hero-card { padding: 1.3rem 1.3rem 1.6rem; }
  .section { padding: 3rem 1.1rem; }
  .article-hero-inner { padding: 2.8rem 1.1rem 2.2rem; }
  article { padding: 2.2rem 1.1rem 3.5rem; }
  article p.lead { font-size: 1.15rem; }
  article h2 { font-size: 1.5rem; }
  table { font-size: 0.88rem; }
  th, td { padding: 0.6rem 0.7rem; }
  .table-wrap { margin: 1.4rem -1.1rem; border-radius: 0; padding: 0 1.1rem; }
  .checker, .calc { padding: 1.2rem; }
  .swatch { width: 44px; height: 44px; }
  .product-option { padding: 1.3rem; }
  .product-option .price { font-size: 1.7rem; }
  .callout, .direct-strip { padding: 1rem 1.1rem; }
  .faq summary { padding: 0.9rem 1rem; font-size: 0.98rem; }
  .footer-inner { padding: 2.4rem 1.1rem 1.6rem; }
  .footer-legal { font-size: 0.78rem; }
}

@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after { animation: none !important; transition: none !important; }
  html { scroll-behavior: auto; }
  .reveal { opacity: 1; transform: none; }
}
