/* ============================================================
   Chromyne — shared styles
   Palette: cream canvas, dusty plum ink, warm rose accents
   Type: Fraunces (display) + Albert Sans (body)
   ============================================================ */

:root {
  --cream: #faf6f0;
  --cream-deep: #f4ece3;
  --white: #fffdfa;
  --blush: #f6e7e6;
  --blush-soft: #faf0ee;
  --rose: #c4798b;
  --rose-deep: #a85d71;
  --rose-faint: #e8c9cf;
  --plum: #57414f;
  --plum-deep: #463440;
  --ink: #4d3d48;
  --ink-soft: #7d6a76;
  --line: #e9dcd4;
  --gold: #c2a065;

  --font-display: "Fraunces", Georgia, serif;
  --font-body: "Albert Sans", "Helvetica Neue", sans-serif;

  --radius: 18px;
  --radius-lg: 28px;
  --shadow-soft: 0 18px 50px -18px rgba(87, 65, 79, 0.18);
  --shadow-card: 0 10px 35px -12px rgba(87, 65, 79, 0.14);
  --ease-out: cubic-bezier(0.22, 1, 0.36, 1);
  --container: 1120px;
}

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

html { scroll-behavior: smooth; }

body {
  font-family: var(--font-body);
  font-size: 17px;
  line-height: 1.65;
  color: var(--ink);
  background: var(--cream);
  -webkit-font-smoothing: antialiased;
  text-rendering: optimizeLegibility;
}

/* fine grain texture over the whole page */
body::before {
  content: "";
  position: fixed;
  inset: 0;
  pointer-events: none;
  z-index: 1;
  opacity: 0.35;
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='160' height='160'%3E%3Cfilter id='n'%3E%3CfeTurbulence type='fractalNoise' baseFrequency='0.9' numOctaves='2' stitchTiles='stitch'/%3E%3CfeColorMatrix type='saturate' values='0'/%3E%3C/filter%3E%3Crect width='100%25' height='100%25' filter='url(%23n)' opacity='0.05'/%3E%3C/svg%3E");
}

::selection { background: var(--rose-faint); color: var(--plum-deep); }

img, svg { display: block; }

a { color: var(--rose-deep); text-decoration: none; transition: color 0.25s var(--ease-out); }
a:hover { color: var(--plum); }

.container {
  width: min(var(--container), calc(100% - 48px));
  margin-inline: auto;
}

/* ---------- typography ---------- */

h1, h2, h3 {
  font-family: var(--font-display);
  font-weight: 480;
  color: var(--plum);
  line-height: 1.12;
  letter-spacing: -0.01em;
}

.eyebrow {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  font-size: 12.5px;
  font-weight: 600;
  letter-spacing: 0.22em;
  text-transform: uppercase;
  color: var(--rose-deep);
}
.eyebrow::before,
.eyebrow::after {
  content: "";
  width: 26px;
  height: 1px;
  background: var(--rose-faint);
}

/* ---------- accessibility ---------- */

.skip-link {
  position: absolute;
  top: -60px;
  left: 16px;
  z-index: 100;
  padding: 12px 22px;
  border-radius: 0 0 14px 14px;
  background: var(--plum-deep);
  color: var(--cream);
  font-weight: 600;
  font-size: 15px;
  transition: top 0.2s var(--ease-out);
}
.skip-link:focus {
  top: 0;
  color: var(--cream);
}

:focus-visible {
  outline: 2.5px solid var(--rose-deep);
  outline-offset: 3px;
  border-radius: 4px;
}
.btn:focus-visible,
.price-btn:focus-visible,
.nav-cta:focus-visible {
  outline-offset: 2px;
  border-radius: 999px;
}

/* ---------- header ---------- */

.site-header {
  position: sticky;
  top: 0;
  z-index: 50;
  background: rgba(250, 246, 240, 0.85);
  backdrop-filter: blur(14px);
  -webkit-backdrop-filter: blur(14px);
  border-bottom: 1px solid rgba(233, 220, 212, 0.7);
}

.nav {
  display: flex;
  align-items: center;
  justify-content: space-between;
  height: 76px;
}

.brand {
  display: inline-flex;
  align-items: center;
  gap: 11px;
  font-family: var(--font-display);
  font-size: 24px;
  font-weight: 550;
  color: var(--plum-deep);
  letter-spacing: 0.005em;
}
.brand:hover { color: var(--plum-deep); }

.brand-mark {
  width: 34px;
  height: 34px;
  border-radius: 50%;
  background:
    conic-gradient(from 210deg,
      #e7b9a8, #d98e9e, #9c6b85, #c8a0b0, #f0d9c8, #e7b9a8);
  box-shadow: inset 0 0 0 3px var(--cream), 0 2px 10px rgba(168, 93, 113, 0.35);
}

.nav-links {
  display: flex;
  align-items: center;
  gap: 34px;
  font-size: 15px;
  font-weight: 500;
}
.nav-links a { color: var(--ink-soft); }
.nav-links a:hover { color: var(--plum-deep); }

.nav-cta {
  padding: 10px 22px;
  border-radius: 999px;
  background: var(--plum);
  color: var(--cream) !important;
  transition: background 0.25s var(--ease-out), transform 0.25s var(--ease-out);
}
.nav-cta:hover { background: var(--rose-deep); transform: translateY(-1px); }

@media (max-width: 720px) {
  .nav-links a:not(.nav-cta) { display: none; }
}

/* ---------- buttons ---------- */

.btn {
  display: inline-flex;
  align-items: center;
  gap: 12px;
  padding: 15px 28px;
  border-radius: 999px;
  font-family: var(--font-body);
  font-size: 15.5px;
  font-weight: 600;
  letter-spacing: 0.01em;
  cursor: pointer;
  transition: transform 0.3s var(--ease-out), box-shadow 0.3s var(--ease-out),
              background 0.3s var(--ease-out);
}

.btn-dark {
  background: var(--plum-deep);
  color: var(--cream);
  box-shadow: 0 14px 30px -12px rgba(70, 52, 64, 0.5);
}
.btn-dark:hover {
  background: var(--plum);
  color: var(--white);
  transform: translateY(-2px);
  box-shadow: 0 20px 38px -12px rgba(70, 52, 64, 0.55);
}

.btn-light {
  background: var(--white);
  color: var(--plum-deep);
  box-shadow: inset 0 0 0 1.5px var(--line), 0 10px 26px -14px rgba(87, 65, 79, 0.25);
}
.btn-light:hover {
  color: var(--rose-deep);
  box-shadow: inset 0 0 0 1.5px var(--rose-faint), 0 16px 32px -14px rgba(168, 93, 113, 0.3);
  transform: translateY(-2px);
}

.btn .store-icon { width: 22px; height: 22px; flex-shrink: 0; }
.btn small {
  display: block;
  font-size: 10.5px;
  font-weight: 500;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  opacity: 0.65;
}
.btn .store-label { text-align: left; line-height: 1.25; }

/* ---------- hero ---------- */

.hero {
  position: relative;
  overflow: hidden;
  padding: 96px 0 110px;
  background:
    radial-gradient(720px 480px at 85% 8%, rgba(232, 201, 207, 0.5), transparent 70%),
    radial-gradient(600px 420px at 4% 90%, rgba(244, 236, 227, 0.9), transparent 70%),
    var(--white);
}

.hero-inner {
  position: relative;
  z-index: 2;
  display: grid;
  grid-template-columns: minmax(0, 1.15fr) minmax(0, 0.85fr);
  gap: 64px;
  align-items: center;
}

.hero h1 {
  font-size: clamp(44px, 6vw, 72px);
  font-weight: 460;
  margin: 22px 0 24px;
}
.hero h1 em {
  font-style: italic;
  font-weight: 420;
  color: var(--rose-deep);
}

.hero-sub {
  font-size: 19px;
  line-height: 1.7;
  color: var(--ink-soft);
  max-width: 520px;
  margin-bottom: 38px;
}

.hero-actions { display: flex; flex-wrap: wrap; gap: 16px; }

.hero-note {
  margin-top: 26px;
  font-size: 13.5px;
  color: var(--ink-soft);
  display: flex;
  align-items: center;
  gap: 8px;
}
.hero-note .dot-row { display: inline-flex; }
.hero-note .dot-row span {
  width: 14px; height: 14px;
  border-radius: 50%;
  border: 2px solid var(--white);
  margin-left: -4px;
}

/* hero visual — fanned seasonal swatch cards */
.hero-visual {
  position: relative;
  min-height: 480px;
  display: flex;
  align-items: center;
  justify-content: center;
}

.swatch-fan { position: relative; width: 300px; height: 430px; }

.swatch-card {
  position: absolute;
  inset: 0;
  border-radius: 24px;
  background: var(--white);
  box-shadow: var(--shadow-soft);
  border: 1px solid rgba(233, 220, 212, 0.8);
  padding: 24px;
  display: flex;
  flex-direction: column;
  gap: 16px;
  transform-origin: 50% 115%;
  transition: transform 0.6s var(--ease-out);
}
.swatch-card:nth-child(1) { transform: rotate(-14deg); }
.swatch-card:nth-child(2) { transform: rotate(-4.5deg); }
.swatch-card:nth-child(3) { transform: rotate(5deg); }
.swatch-card:nth-child(4) { transform: rotate(14.5deg); }

.swatch-fan:hover .swatch-card:nth-child(1) { transform: rotate(-20deg); }
.swatch-fan:hover .swatch-card:nth-child(2) { transform: rotate(-6.5deg); }
.swatch-fan:hover .swatch-card:nth-child(3) { transform: rotate(7deg); }
.swatch-fan:hover .swatch-card:nth-child(4) { transform: rotate(21deg); }

.swatch-card .season {
  font-family: var(--font-display);
  font-size: 21px;
  font-style: italic;
  color: var(--plum);
}
.swatch-card .chips { display: grid; grid-template-columns: repeat(3, 1fr); gap: 10px; flex: 1; }
.swatch-card .chips i { border-radius: 12px; min-height: 44px; }
.swatch-card .tag {
  align-self: flex-start;
  font-size: 11px;
  font-weight: 600;
  letter-spacing: 0.16em;
  text-transform: uppercase;
  color: var(--rose-deep);
  background: var(--blush-soft);
  border-radius: 999px;
  padding: 6px 14px;
}

/* floating accent ring behind the fan */
.hero-visual::before {
  content: "";
  position: absolute;
  width: 440px;
  height: 440px;
  border-radius: 50%;
  border: 1.5px dashed var(--rose-faint);
  animation: slow-spin 60s linear infinite;
}
@keyframes slow-spin { to { transform: rotate(360deg); } }

@media (max-width: 920px) {
  .hero { padding: 64px 0 80px; }
  .hero-inner { grid-template-columns: 1fr; gap: 56px; }
  .hero-visual { min-height: 420px; }
}

/* ---------- sections ---------- */

section { position: relative; }

.section-pad { padding: 110px 0; }

.section-head { max-width: 640px; margin: 0 auto 64px; text-align: center; }
.section-head h2 {
  font-size: clamp(32px, 4.2vw, 46px);
  margin-top: 18px;
}
.section-head p { margin-top: 16px; color: var(--ink-soft); font-size: 17.5px; }

/* ---------- features ---------- */

.features { background: var(--cream); }

.feature-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 26px;
}

.feature-tile {
  background: var(--white);
  border: 1px solid var(--line);
  border-radius: var(--radius-lg);
  padding: 36px 30px 32px;
  box-shadow: var(--shadow-card);
  transition: transform 0.4s var(--ease-out), box-shadow 0.4s var(--ease-out),
              border-color 0.4s var(--ease-out);
}
.feature-tile:hover {
  transform: translateY(-6px);
  border-color: var(--rose-faint);
  box-shadow: 0 24px 48px -16px rgba(168, 93, 113, 0.22);
}

.feature-icon {
  width: 54px;
  height: 54px;
  border-radius: 16px;
  display: grid;
  place-items: center;
  margin-bottom: 22px;
  background: linear-gradient(150deg, var(--blush-soft), var(--blush));
  color: var(--rose-deep);
}
.feature-icon svg { width: 26px; height: 26px; }

.feature-tile h3 { font-size: 21px; margin-bottom: 10px; }
.feature-tile p { font-size: 15.5px; color: var(--ink-soft); }

@media (max-width: 920px) { .feature-grid { grid-template-columns: repeat(2, 1fr); } }
@media (max-width: 600px) { .feature-grid { grid-template-columns: 1fr; } }

/* ---------- how it works ---------- */

.how { background: var(--white); }
.how::before {
  content: "";
  position: absolute;
  inset: 0;
  background: radial-gradient(640px 360px at 50% 0%, rgba(246, 231, 230, 0.55), transparent 75%);
  pointer-events: none;
}

.steps {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 30px;
  counter-reset: step;
  position: relative;
}

.step {
  position: relative;
  text-align: center;
  padding: 20px 24px 0;
}
.step::before {
  counter-increment: step;
  content: counter(step, decimal-leading-zero);
  display: block;
  font-family: var(--font-display);
  font-style: italic;
  font-size: 58px;
  font-weight: 380;
  line-height: 1;
  color: var(--rose-faint);
  margin-bottom: 18px;
}
.step h3 { font-size: 22px; margin-bottom: 10px; }
.step p { font-size: 15.5px; color: var(--ink-soft); max-width: 280px; margin-inline: auto; }

/* connecting line between steps */
.step:not(:last-child)::after {
  content: "";
  position: absolute;
  top: 48px;
  right: calc(-15px - 8%);
  width: calc(30px + 16%);
  height: 1.5px;
  background: repeating-linear-gradient(90deg, var(--rose-faint) 0 7px, transparent 7px 14px);
}

@media (max-width: 820px) {
  .steps { grid-template-columns: 1fr; gap: 44px; }
  .step:not(:last-child)::after { display: none; }
}

/* ---------- pricing ---------- */

.pricing { background: var(--cream-deep); }

.pricing-intro {
  max-width: 660px;
  margin: 0 auto 60px;
  text-align: center;
}
.pricing-intro h2 { font-size: clamp(32px, 4.2vw, 46px); margin-top: 18px; }
.pricing-intro p { margin-top: 18px; color: var(--ink-soft); font-size: 17px; }

.price-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 26px;
  align-items: stretch;
}

.price-card {
  position: relative;
  background: var(--white);
  border: 1px solid var(--line);
  border-radius: var(--radius-lg);
  padding: 40px 32px 36px;
  text-align: center;
  display: flex;
  flex-direction: column;
  box-shadow: var(--shadow-card);
  transition: transform 0.4s var(--ease-out), box-shadow 0.4s var(--ease-out);
}
.price-card:hover { transform: translateY(-6px); }

.price-card.popular {
  background: var(--plum-deep);
  border-color: var(--plum-deep);
  box-shadow: 0 30px 60px -20px rgba(70, 52, 64, 0.55);
  transform: scale(1.04);
}
.price-card.popular:hover { transform: scale(1.04) translateY(-6px); }
.price-card.popular h3,
.price-card.popular .price { color: var(--cream); }
.price-card.popular .price-per,
.price-card.popular .price-desc { color: rgba(250, 246, 240, 0.65); }

.popular-badge {
  position: absolute;
  top: -15px;
  left: 50%;
  transform: translateX(-50%);
  background: var(--rose);
  color: var(--white);
  font-size: 11.5px;
  font-weight: 700;
  letter-spacing: 0.16em;
  text-transform: uppercase;
  padding: 7px 18px;
  border-radius: 999px;
  box-shadow: 0 8px 20px -6px rgba(196, 121, 139, 0.6);
}

.price-card h3 { font-size: 20px; margin-bottom: 18px; }
.price {
  font-family: var(--font-display);
  font-size: 52px;
  font-weight: 440;
  color: var(--plum-deep);
  line-height: 1;
}
.price-per { font-size: 14px; color: var(--ink-soft); margin-top: 8px; }
.price-desc { font-size: 14.5px; color: var(--ink-soft); margin: 20px 0 28px; flex: 1; }

.price-btn {
  display: block;
  padding: 13px 0;
  border-radius: 999px;
  font-weight: 600;
  font-size: 15px;
  background: var(--blush-soft);
  color: var(--plum);
  transition: background 0.3s var(--ease-out), color 0.3s var(--ease-out);
}
.price-btn:hover { background: var(--blush); color: var(--rose-deep); }
.price-card.popular .price-btn { background: var(--rose); color: var(--white); }
.price-card.popular .price-btn:hover { background: var(--rose-deep); color: var(--white); }

.pricing-disclaimer {
  max-width: 720px;
  margin: 44px auto 0;
  text-align: center;
  font-size: 13.5px;
  line-height: 1.7;
  color: var(--ink-soft);
}

@media (max-width: 920px) {
  .price-grid { grid-template-columns: 1fr; max-width: 420px; margin-inline: auto; }
  .price-card.popular { transform: none; }
  .price-card.popular:hover { transform: translateY(-6px); }
}

/* ---------- closing CTA ---------- */

.closing {
  background: var(--white);
  text-align: center;
}
.closing h2 { font-size: clamp(30px, 4vw, 44px); margin: 18px 0 16px; }
.closing p { color: var(--ink-soft); max-width: 480px; margin: 0 auto 36px; }

/* ---------- footer ---------- */

.site-footer {
  background: var(--plum-deep);
  color: rgba(250, 246, 240, 0.75);
  padding: 64px 0 40px;
}

.footer-top {
  display: flex;
  flex-wrap: wrap;
  align-items: flex-start;
  justify-content: space-between;
  gap: 36px;
  padding-bottom: 40px;
  border-bottom: 1px solid rgba(250, 246, 240, 0.14);
}

.site-footer .brand { color: var(--cream); }
.site-footer .brand-mark { box-shadow: inset 0 0 0 3px var(--plum-deep); }
.footer-tagline { margin-top: 14px; font-size: 14.5px; max-width: 300px; color: rgba(250, 246, 240, 0.55); }

.footer-links { display: flex; gap: 34px; font-size: 15px; font-weight: 500; }
.footer-links a { color: rgba(250, 246, 240, 0.8); }
.footer-links a:hover { color: var(--rose-faint); }

.footer-bottom {
  display: flex;
  flex-wrap: wrap;
  justify-content: space-between;
  gap: 14px;
  padding-top: 28px;
  font-size: 13.5px;
  color: rgba(250, 246, 240, 0.45);
}
.footer-bottom a { color: rgba(250, 246, 240, 0.7); }
.footer-bottom a:hover { color: var(--rose-faint); }

@media (max-width: 720px) {
  .footer-links { flex-direction: column; gap: 14px; }
}

/* ---------- legal pages ---------- */

.legal-hero {
  padding: 84px 0 56px;
  background:
    radial-gradient(560px 320px at 80% 0%, rgba(232, 201, 207, 0.4), transparent 70%),
    var(--white);
  border-bottom: 1px solid var(--line);
}
.legal-hero h1 { font-size: clamp(38px, 5vw, 56px); margin-top: 20px; }
.legal-hero .updated {
  margin-top: 16px;
  font-size: 14.5px;
  color: var(--ink-soft);
  font-style: italic;
  font-family: var(--font-display);
}

.legal-body { padding: 72px 0 100px; }
.legal-content { max-width: 760px; }

.legal-content section + section { margin-top: 52px; }

.legal-content h2 {
  font-size: 26px;
  margin-bottom: 16px;
  display: flex;
  align-items: baseline;
  gap: 14px;
}
.legal-content h2 .num {
  font-style: italic;
  font-weight: 380;
  font-size: 20px;
  color: var(--rose);
  flex-shrink: 0;
}

.legal-content p { color: var(--ink); margin-bottom: 14px; }
.legal-content p:last-child { margin-bottom: 0; }

.legal-content ul {
  margin: 6px 0 14px;
  padding-left: 0;
  list-style: none;
}
.legal-content li {
  position: relative;
  padding-left: 26px;
  margin-bottom: 10px;
}
.legal-content li::before {
  content: "";
  position: absolute;
  left: 4px;
  top: 0.62em;
  width: 7px;
  height: 7px;
  border-radius: 50%;
  background: var(--rose-faint);
  box-shadow: 0 0 0 1.5px var(--rose);
  transform: scale(0.85);
}
.legal-content li strong { color: var(--plum); }

.legal-contact {
  margin-top: 14px;
  background: var(--white);
  border: 1px solid var(--line);
  border-radius: var(--radius);
  padding: 24px 28px;
  box-shadow: var(--shadow-card);
}
.legal-contact p { margin-bottom: 6px; }

/* ---------- scroll reveal ---------- */

/* hidden state only applies when JS is running (html.js set by main.js) */
.js .reveal {
  opacity: 0;
  transform: translateY(26px);
  transition: opacity 0.8s var(--ease-out), transform 0.8s var(--ease-out);
}
.js .reveal.in { opacity: 1; transform: none; }
.reveal-d1 { transition-delay: 0.1s; }
.reveal-d2 { transition-delay: 0.2s; }
.reveal-d3 { transition-delay: 0.3s; }
.reveal-d4 { transition-delay: 0.4s; }
.reveal-d5 { transition-delay: 0.5s; }

@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after {
    animation-duration: 0.01ms !important;
    transition-duration: 0.01ms !important;
  }
  .reveal { opacity: 1; transform: none; }
}
