/* ============================================================
   MAKEUP SCANNER: TRUE SHADE — marketing site
   Palette & type mirror the app's "blush atelier" design system
   ============================================================ */

:root {
  /* surfaces */
  --porcelain: #FBF1EC;
  --blush: #F4DDD2;
  --surface: #FFF8F4;
  /* ink */
  --ink: #2A1618;
  --ink2: #3E2024;
  --mute: #9A7A75;
  /* accents */
  --rouge: #B85C70;
  --rouge-deep: #9E4459;
  --rose-gold: #D8A98E;
  --champagne: #EAC9A8;
  --mahogany: #5E2A33;
  /* showcase moods (from the screenshots themselves) */
  --lilac: #C9B4E6;
  --lilac-deep: #A98FD1;
  --bordeaux: #5E1F30;
  --plum: #3A2440;
  /* type */
  --serif: "Fraunces", Georgia, serif;
  --sans: "Inter Tight", -apple-system, sans-serif;
  --display: "Space Grotesk", var(--sans);
  --mono: "JetBrains Mono", ui-monospace, monospace;

  --radius: 28px;
  --maxw: 1140px;
}

* { margin: 0; padding: 0; box-sizing: border-box; }

html { scroll-behavior: smooth; }

body {
  font-family: var(--sans);
  font-size: 17px;
  line-height: 1.65;
  color: var(--ink);
  background: var(--porcelain);
  -webkit-font-smoothing: antialiased;
}

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

h1, h2, h3 { font-family: var(--display); font-weight: 700; line-height: 1.08; letter-spacing: -0.02em; }

h1 em, h2 em {
  font-family: var(--serif);
  font-weight: 300;
  font-style: italic;
  letter-spacing: 0;
  color: var(--rouge);
}

p { color: var(--ink2); }

a { color: inherit; text-decoration: none; }

:focus-visible { outline: 2px solid var(--rouge); outline-offset: 3px; border-radius: 4px; }

/* ---------- eyebrow (mono micro-label, app motif) ---------- */
.eyebrow {
  font-family: var(--mono);
  font-size: 11px;
  font-weight: 500;
  letter-spacing: 0.28em;
  text-transform: uppercase;
  color: var(--mute);
  display: flex;
  align-items: center;
  gap: 10px;
  margin-bottom: 22px;
}
.eyebrow .dot { width: 6px; height: 6px; border-radius: 50%; background: var(--rouge); flex: none; }
.eyebrow-light { color: rgba(255, 248, 244, 0.7); }

/* ---------- buttons ---------- */
.btn {
  display: inline-flex;
  align-items: center;
  gap: 12px;
  font-family: var(--display);
  font-weight: 500;
  font-size: 16px;
  padding: 17px 30px;
  border-radius: var(--radius);
  transition: transform 0.25s ease, box-shadow 0.25s ease, background 0.25s ease;
}
.btn:hover { transform: translateY(-2px); }
.btn .apple { width: 17px; height: 17px; flex: none; }

.btn-rouge {
  background: var(--rouge);
  color: var(--surface);
  box-shadow: 0 14px 34px rgba(184, 92, 112, 0.35);
}
.btn-rouge:hover { background: var(--rouge-deep); box-shadow: 0 18px 40px rgba(184, 92, 112, 0.42); }

.btn-ink { background: var(--ink); color: var(--porcelain); }
.btn-ink:hover { background: var(--ink2); }

.btn-cream { background: var(--porcelain); color: var(--ink); box-shadow: 0 14px 34px rgba(0, 0, 0, 0.25); }

.btn-small { padding: 11px 20px; font-size: 14px; border-radius: 22px; }

.cta-note {
  font-family: var(--mono);
  font-size: 11px;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: var(--mute);
  margin-top: 14px;
}
.cta-note-light { color: rgba(255, 248, 244, 0.65); }

/* ---------- nav ---------- */
.nav {
  position: sticky;
  top: 0;
  z-index: 50;
  background: rgba(251, 241, 236, 0.85);
  backdrop-filter: blur(14px);
  -webkit-backdrop-filter: blur(14px);
  border-bottom: 1px solid rgba(42, 22, 24, 0.07);
}
.nav-inner {
  max-width: var(--maxw);
  margin: 0 auto;
  padding: 14px 28px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 24px;
}
.brand { display: inline-flex; align-items: center; gap: 10px; }
.brand-mark {
  width: 32px; height: 32px;
  border-radius: 50%;
  background: var(--ink);
  color: var(--porcelain);
  font-family: var(--serif);
  font-style: italic;
  font-size: 17px;
  display: grid;
  place-items: center;
  padding-bottom: 2px;
}
.brand-word {
  font-family: var(--mono);
  font-size: 12px;
  font-weight: 500;
  letter-spacing: 0.2em;
  white-space: nowrap;
}
.nav-links { display: flex; gap: 32px; }
.nav-links a {
  font-family: var(--sans);
  font-size: 14.5px;
  font-weight: 500;
  color: var(--ink2);
  transition: color 0.2s;
}
.nav-links a:hover { color: var(--rouge); }

/* ---------- hero ---------- */
.hero { overflow: hidden; }
.hero-inner {
  max-width: var(--maxw);
  margin: 0 auto;
  padding: 84px 28px 40px;
  display: grid;
  grid-template-columns: 1.05fr 0.95fr;
  align-items: center;
  gap: 48px;
}
.hero h1 { font-size: clamp(44px, 5.6vw, 72px); margin-bottom: 26px; }
.lede { font-size: 19.5px; max-width: 46ch; color: var(--ink2); }
.lede em { font-family: var(--serif); font-style: italic; }
.hero-cta { margin-top: 38px; }

.trust-row {
  list-style: none;
  display: flex;
  gap: 40px;
  margin-top: 48px;
  padding-top: 30px;
  border-top: 1px solid rgba(42, 22, 24, 0.1);
}
.trust-row li { display: flex; flex-direction: column; gap: 2px; }
.trust-row strong { font-family: var(--display); font-size: 24px; font-weight: 700; }
.trust-row span {
  font-family: var(--mono);
  font-size: 10px;
  letter-spacing: 0.16em;
  text-transform: uppercase;
  color: var(--mute);
}

/* hero visual */
.hero-visual { position: relative; display: flex; justify-content: center; }
.rings {
  position: absolute;
  inset: 50% auto auto 50%;
  width: 640px; height: 640px;
  transform: translate(-50%, -50%);
  border-radius: 50%;
  border: 1px solid rgba(184, 92, 112, 0.18);
  box-shadow:
    0 0 0 70px rgba(216, 169, 142, 0.10),
    0 0 0 150px rgba(234, 201, 168, 0.08),
    0 0 0 240px rgba(244, 221, 210, 0.35);
  pointer-events: none;
}

.phone {
  position: relative;
  width: min(340px, 78vw);
  border-radius: 40px;
  overflow: hidden;
  box-shadow: 0 40px 90px rgba(42, 22, 24, 0.28);
}
.phone img { width: 100%; }
.phone-hero { transform: rotate(2deg); }

.float-chip {
  position: absolute;
  background: var(--surface);
  border-radius: 18px;
  padding: 12px 18px;
  box-shadow: 0 16px 40px rgba(42, 22, 24, 0.16);
  display: flex;
  flex-direction: column;
  animation: floaty 5s ease-in-out infinite;
}
.chip-match { top: 16%; left: -4%; }
.chip-save { bottom: 14%; right: -3%; animation-delay: 2.5s; }
.chip-num { font-family: var(--serif); font-style: italic; font-size: 26px; color: var(--ink); line-height: 1.1; }
.chip-label { font-family: var(--mono); font-size: 9px; letter-spacing: 0.2em; color: var(--rouge); margin-top: 3px; }

@keyframes floaty {
  0%, 100% { transform: translateY(0); }
  50% { transform: translateY(-10px); }
}

/* ---------- marquee ---------- */
.marquee {
  overflow: hidden;
  border-block: 1px solid rgba(42, 22, 24, 0.09);
  padding: 16px 0;
  background: var(--blush);
}
.marquee-track {
  display: flex;
  align-items: center;
  gap: 34px;
  width: max-content;
  animation: slide 38s linear infinite;
}
.marquee-track span {
  font-family: var(--serif);
  font-style: italic;
  font-weight: 300;
  font-size: 17px;
  color: var(--mahogany);
  white-space: nowrap;
}
.marquee-track i { width: 5px; height: 5px; border-radius: 50%; background: var(--rose-gold); flex: none; }

@keyframes slide {
  from { transform: translateX(0); }
  to { transform: translateX(-50%); }
}

/* ---------- generic section ---------- */
.section { max-width: var(--maxw); margin: 0 auto; padding: 110px 28px; }
.section-head { max-width: 640px; margin-bottom: 64px; }
.section-head h2 { font-size: clamp(32px, 4vw, 48px); }

/* ---------- features ---------- */
.feature-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 22px;
}
.card {
  background: var(--surface);
  border: 1px solid rgba(42, 22, 24, 0.07);
  border-radius: 24px;
  padding: 34px 30px;
  transition: transform 0.3s ease, box-shadow 0.3s ease;
}
.card:hover {
  transform: translateY(-4px);
  box-shadow: 0 24px 48px rgba(42, 22, 24, 0.1);
}
.card-tag {
  font-family: var(--mono);
  font-size: 10px;
  letter-spacing: 0.22em;
  color: var(--rouge);
  margin-bottom: 18px;
}
.card h3 { font-size: 21px; margin-bottom: 12px; }
.card p:last-child { font-size: 15.5px; color: var(--ink2); }

/* ---------- showcase sections ---------- */
.show { overflow: hidden; }
.show-inner {
  max-width: var(--maxw);
  margin: 0 auto;
  padding: 100px 28px;
  display: grid;
  grid-template-columns: 1fr 1fr;
  align-items: center;
  gap: 64px;
}
.show-inner .phone { justify-self: center; width: min(320px, 74vw); }
.show-flip .show-copy { order: 2; }
.show-flip .phone { order: 1; }

.show h2 { font-size: clamp(34px, 4.2vw, 52px); margin-bottom: 22px; }
.show p { font-size: 18px; max-width: 48ch; }

.show-list {
  list-style: none;
  margin-top: 28px;
  display: flex;
  flex-direction: column;
  gap: 12px;
}
.show-list li {
  position: relative;
  padding-left: 26px;
  font-size: 16px;
}
.show-list li::before {
  content: "";
  position: absolute;
  left: 0; top: 0.55em;
  width: 10px; height: 10px;
  border-radius: 50%;
  border: 2px solid var(--rouge);
}

/* moods — each tinted to its screenshot */
.show-lilac { background: linear-gradient(180deg, var(--porcelain) 0%, var(--lilac) 18%, var(--lilac-deep) 100%); }
.show-lilac .eyebrow { color: rgba(42, 22, 24, 0.55); }
.show-lilac h2 em { color: var(--mahogany); }

.show-porcelain { background: var(--porcelain); }
.show-porcelain .show-inner { border-top: 1px solid rgba(42, 22, 24, 0.08); }

.show-bordeaux { background: radial-gradient(120% 120% at 20% 0%, #7A2A40 0%, var(--bordeaux) 55%, #43101F 100%); }
.show-plum { background: radial-gradient(120% 120% at 80% 0%, #55355E 0%, var(--plum) 55%, #241329 100%); }

.show-dark h2, .show-dark .show-list li { color: var(--porcelain); }
.show-dark h2 em { color: var(--champagne); }
.show-dark p { color: rgba(251, 241, 236, 0.82); }
.show-dark .eyebrow { color: rgba(251, 241, 236, 0.6); }
.show-dark .eyebrow .dot { background: var(--champagne); }
.show-dark .show-list li::before { border-color: var(--champagne); }
.show-dark .phone { box-shadow: 0 40px 90px rgba(0, 0, 0, 0.5); }

/* ---------- how it works ---------- */
.steps {
  list-style: none;
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 22px;
  counter-reset: step;
}
.step {
  background: var(--surface);
  border: 1px solid rgba(42, 22, 24, 0.07);
  border-radius: 24px;
  padding: 38px 32px;
}
.step-num {
  display: grid;
  place-items: center;
  width: 46px; height: 46px;
  border-radius: 50%;
  border: 1.5px solid var(--rouge);
  color: var(--rouge);
  font-family: var(--serif);
  font-style: italic;
  font-size: 21px;
  margin-bottom: 22px;
}
.step h3 { font-size: 20px; margin-bottom: 10px; }
.step p { font-size: 15.5px; }

/* ---------- reviews ---------- */
.reviews { padding-top: 0; }
.review-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 22px;
}
.review {
  background: var(--blush);
  border-radius: 24px;
  padding: 36px 32px;
  display: flex;
  flex-direction: column;
  gap: 18px;
}
.review .stars { color: var(--rouge); font-size: 14px; letter-spacing: 0.25em; }
.review > p:not(.stars) {
  font-family: var(--serif);
  font-weight: 300;
  font-style: italic;
  font-size: 19px;
  line-height: 1.5;
  color: var(--ink);
}
.review footer { margin-top: auto; display: flex; flex-direction: column; }
.review footer strong { font-family: var(--display); font-size: 15px; }
.review footer span {
  font-family: var(--mono);
  font-size: 10px;
  letter-spacing: 0.16em;
  text-transform: uppercase;
  color: var(--mute);
  margin-top: 4px;
}

/* ---------- FAQ ---------- */
.faq { padding-top: 0; }
.faq-list { max-width: 780px; }
.faq-list details {
  border-bottom: 1px solid rgba(42, 22, 24, 0.1);
}
.faq-list summary {
  cursor: pointer;
  list-style: none;
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 20px;
  padding: 24px 4px;
  font-family: var(--display);
  font-weight: 500;
  font-size: 18px;
  transition: color 0.2s;
}
.faq-list summary:hover { color: var(--rouge); }
.faq-list summary::-webkit-details-marker { display: none; }
.faq-list summary::after {
  content: "+";
  font-family: var(--serif);
  font-weight: 300;
  font-size: 26px;
  color: var(--rouge);
  flex: none;
  transition: transform 0.25s ease;
}
.faq-list details[open] summary::after { transform: rotate(45deg); }
.faq-list details p {
  padding: 0 4px 26px;
  max-width: 64ch;
  font-size: 16px;
}

/* ---------- final CTA ---------- */
.cta-final {
  background:
    radial-gradient(90% 130% at 50% -10%, var(--mahogany) 0%, var(--ink2) 60%, var(--ink) 100%);
  text-align: center;
}
.cta-inner { max-width: 720px; margin: 0 auto; padding: 120px 28px; }
.cta-inner .eyebrow { justify-content: center; }
.cta-inner h2 { color: var(--porcelain); font-size: clamp(34px, 4.5vw, 56px); margin-bottom: 20px; }
.cta-inner h2 em { color: var(--champagne); }
.cta-sub { color: rgba(251, 241, 236, 0.78); font-size: 18px; margin-bottom: 40px; }

/* ---------- footer ---------- */
.footer { background: var(--porcelain); border-top: 1px solid rgba(42, 22, 24, 0.08); }
.footer-inner {
  max-width: var(--maxw);
  margin: 0 auto;
  padding: 60px 28px 30px;
  display: flex;
  justify-content: space-between;
  align-items: flex-start;
  gap: 40px;
  flex-wrap: wrap;
}
.footer-brand { max-width: 340px; display: flex; flex-direction: column; gap: 16px; }
.footer-brand p { font-size: 14.5px; color: var(--mute); }
.footer-links { display: flex; gap: 28px; flex-wrap: wrap; }
.footer-links a {
  font-family: var(--mono);
  font-size: 12px;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: var(--ink2);
  transition: color 0.2s;
}
.footer-links a:hover { color: var(--rouge); }
.footer-copy {
  text-align: center;
  font-family: var(--mono);
  font-size: 11px;
  letter-spacing: 0.12em;
  color: var(--mute);
  padding: 0 28px 34px;
}

/* ---------- responsive ---------- */
@media (max-width: 960px) {
  .hero-inner { grid-template-columns: 1fr; padding-top: 56px; text-align: left; }
  .hero-visual { margin-top: 26px; }
  .rings { width: 480px; height: 480px; }
  .chip-match { left: 2%; }
  .chip-save { right: 2%; }
  .feature-grid, .steps, .review-grid { grid-template-columns: 1fr 1fr; }
  .show-inner { grid-template-columns: 1fr; gap: 44px; padding: 72px 28px; }
  .show-flip .show-copy { order: 1; }
  .show-flip .phone { order: 2; }
  .nav-links { display: none; }
}

@media (max-width: 620px) {
  .brand-word { font-size: 10px; letter-spacing: 0.14em; }
  .feature-grid, .steps, .review-grid { grid-template-columns: 1fr; }
  .section { padding: 72px 22px; }
  .trust-row { gap: 24px; flex-wrap: wrap; }
  .float-chip { padding: 9px 13px; }
  .chip-num { font-size: 20px; }
  .cta-inner { padding: 88px 22px; }
}

/* ============================================================
   BLOG — journal index + article pages
   ============================================================ */

/* ---------- blog index ---------- */
.blog-hero { max-width: var(--maxw); margin: 0 auto; padding: 80px 28px 10px; }
.blog-hero h1 { font-size: clamp(40px, 5.2vw, 64px); margin-bottom: 24px; }
.blog-hero .lede { max-width: 54ch; }

.blog-section { max-width: var(--maxw); margin: 0 auto; padding: 60px 28px 0; }
.blog-section:last-of-type { padding-bottom: 110px; }
.blog-section > h2 { font-size: clamp(24px, 3vw, 34px); margin-bottom: 30px; }

.blog-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 22px; }
.blog-card {
  background: var(--surface);
  border: 1px solid rgba(42, 22, 24, 0.07);
  border-radius: 24px;
  padding: 32px 30px;
  display: flex;
  flex-direction: column;
  gap: 14px;
  transition: transform 0.3s ease, box-shadow 0.3s ease;
}
.blog-card { position: relative; }
.blog-card:hover { transform: translateY(-4px); box-shadow: 0 24px 48px rgba(42, 22, 24, 0.1); }
/* stretch the title link over the whole card so "Read the guide" is clickable too */
.blog-card h3 a::after { content: ""; position: absolute; inset: 0; border-radius: 24px; }
.blog-card h3 { font-size: 20px; line-height: 1.28; }
.blog-card h3 a:hover { color: var(--rouge); }
.blog-card p { font-size: 15px; color: var(--ink2); }
.blog-card .read-more {
  margin-top: auto;
  font-family: var(--mono);
  font-size: 11px;
  letter-spacing: 0.18em;
  text-transform: uppercase;
  color: var(--rouge);
}

/* ---------- article ---------- */
.crumbs {
  font-family: var(--mono);
  font-size: 11px;
  letter-spacing: 0.18em;
  text-transform: uppercase;
  color: var(--mute);
  display: flex;
  align-items: center;
  gap: 10px;
  flex-wrap: wrap;
  margin-bottom: 26px;
}
.crumbs a:hover { color: var(--rouge); }
.crumbs .sep { color: var(--rose-gold); }

.post-hero { max-width: 800px; margin: 0 auto; padding: 72px 28px 12px; }
.post-hero h1 { font-size: clamp(36px, 4.6vw, 56px); margin-bottom: 24px; }
.post-hero .lede { font-size: 19px; }
.post-meta {
  font-family: var(--mono);
  font-size: 11px;
  letter-spacing: 0.18em;
  text-transform: uppercase;
  color: var(--mute);
  margin-top: 26px;
  display: flex;
  align-items: center;
  gap: 10px;
  flex-wrap: wrap;
}
.post-meta .dot { width: 5px; height: 5px; border-radius: 50%; background: var(--rose-gold); }

.article { max-width: 800px; margin: 0 auto; padding: 28px 28px 24px; }
.article h2 { font-size: clamp(26px, 3vw, 34px); margin: 54px 0 18px; }
.article h2:first-child { margin-top: 24px; }
.article h3 { font-size: 21px; margin: 34px 0 12px; }
.article p { margin-bottom: 18px; }
.article ul, .article ol { margin: 0 0 20px 24px; color: var(--ink2); }
.article li { margin-bottom: 9px; }
.article li::marker { color: var(--rouge); }
.article a { color: var(--rouge); text-decoration: underline; text-decoration-color: rgba(184, 92, 112, 0.35); text-underline-offset: 3px; }
.article a:hover { color: var(--rouge-deep); }
/* buttons inside articles keep button styling, not in-text link styling */
.article a.btn, .article a.btn:hover { text-decoration: none; }
.article a.btn-rouge, .article a.btn-rouge:hover { color: var(--surface); }
.article strong { color: var(--ink); }
.article blockquote {
  border-left: 3px solid var(--rouge);
  padding: 4px 0 4px 24px;
  margin: 30px 0;
  font-family: var(--serif);
  font-style: italic;
  font-weight: 300;
  font-size: 19px;
  color: var(--ink);
}
.article figure { margin: 36px auto; }
.article figure.phone { box-shadow: 0 30px 70px rgba(42, 22, 24, 0.22); }
.article figcaption {
  font-family: var(--mono);
  font-size: 10px;
  letter-spacing: 0.16em;
  text-transform: uppercase;
  color: var(--mute);
  text-align: center;
  margin-top: 14px;
}

/* in-article CTA */
.post-cta {
  background: var(--blush);
  border-radius: 24px;
  padding: 36px 34px;
  margin: 46px 0;
}
.post-cta .eyebrow { margin-bottom: 14px; }
.post-cta p.post-cta-title {
  font-family: var(--display);
  font-weight: 700;
  font-size: 23px;
  line-height: 1.2;
  color: var(--ink);
  margin-bottom: 10px;
}
.post-cta p.post-cta-title em { font-family: var(--serif); font-weight: 300; font-style: italic; color: var(--rouge); }
.post-cta p { margin-bottom: 0; font-size: 16px; }
.post-cta .btn { margin-top: 22px; }

/* article FAQ reuses .faq-list */
.post-faq { max-width: 800px; margin: 0 auto; padding: 16px 28px 48px; }
.post-faq h2 { font-size: clamp(26px, 3vw, 34px); margin-bottom: 10px; }

/* related posts */
.related { max-width: var(--maxw); margin: 0 auto; padding: 30px 28px 100px; }
.related > h2 { font-size: clamp(24px, 3vw, 34px); margin-bottom: 30px; }

@media (max-width: 960px) {
  .blog-grid { grid-template-columns: 1fr 1fr; }
}
@media (max-width: 620px) {
  .blog-grid { grid-template-columns: 1fr; }
  .post-hero { padding: 52px 22px 8px; }
  .article, .post-faq { padding-left: 22px; padding-right: 22px; }
}

/* ---------- reduced motion ---------- */
@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  .marquee-track { animation: none; }
  .float-chip { animation: none; }
  .btn, .card { transition: none; }
}
