/* Homepage-only stylesheet — editorial landing layout (Instrument Serif + Inter).
   Other pages keep style.css; do not import this file from article pages. */

:root {
  --bg: #f8f7f4;
  --bg-soft: #f1f4ee;
  --bg-warm: #f3ede4;
  --surface: #ffffff;
  --text: #17181c;
  --text-soft: #6d6f75;
  --accent: #31563f;
  --accent-deep: #274434;
  --accent-soft: #6b8a72;
  --gold: #b58a4a;
  --border: #e4ded4;
  --shadow: 0 10px 30px rgba(23, 24, 28, 0.08);
  --serif: "Instrument Serif", Georgia, "Times New Roman", serif;
  --sans: "Inter", -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, sans-serif;
}

* { box-sizing: border-box; margin: 0; padding: 0; }
html { scroll-behavior: smooth; overflow-x: clip; }
body { overflow-x: clip; }

body {
  font-family: var(--sans);
  background: var(--bg);
  color: var(--text);
  line-height: 1.65;
  font-size: 16px;
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
}

.wrap { max-width: 1120px; margin: 0 auto; padding: 0 28px; }

h1, h2, h3 { font-family: var(--serif); font-weight: 400; line-height: 1.08; letter-spacing: -0.01em; }
h1 em, h2 em { font-style: italic; color: var(--accent); }

a { color: var(--accent); text-decoration: none; }
a:hover { color: var(--accent-deep); }

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

/* ---------- Nav ---------- */
.site-nav {
  position: sticky; top: 0; z-index: 50;
  background: rgba(248, 247, 244, 0.86);
  -webkit-backdrop-filter: blur(12px); backdrop-filter: blur(12px);
  border-bottom: 1px solid var(--border);
}
.site-nav .wrap { display: flex; align-items: center; gap: 28px; height: 68px; }
.nav-brand { display: flex; align-items: center; gap: 10px; font-weight: 600; color: var(--text); font-size: 1.02rem; }
.nav-brand img { width: 32px; height: 32px; border-radius: 8px; }
.nav-links { display: flex; align-items: center; gap: 24px; margin-left: auto; }
.nav-links a { color: var(--text-soft); font-size: 0.92rem; font-weight: 500; }
.nav-links a:hover { color: var(--text); }
.nav-download {
  background: var(--accent); color: #fff !important;
  padding: 9px 20px; border-radius: 999px; font-weight: 600;
  transition: background 0.2s, transform 0.2s;
}
.nav-download:hover { background: var(--accent-deep); transform: translateY(-1px); }

/* ---------- Hero ---------- */
.hero .wrap {
  display: grid; grid-template-columns: 1.05fr 0.95fr;
  gap: 64px; align-items: center;
  padding-top: 88px; padding-bottom: 96px;
}
.eyebrow {
  font-size: 0.78rem; font-weight: 600; letter-spacing: 0.14em; text-transform: uppercase;
  color: var(--gold); margin-bottom: 22px;
}
.hero h1 { font-size: clamp(2.6rem, 5.2vw, 4.1rem); margin-bottom: 24px; }
.hero-sub { font-size: 1.13rem; color: var(--text-soft); max-width: 30em; margin-bottom: 34px; }
.hero-cta { display: flex; align-items: center; gap: 26px; flex-wrap: wrap; margin-bottom: 20px; }
.hero-note { font-size: 0.85rem; color: var(--text-soft); }
.link-more { font-weight: 600; font-size: 0.95rem; border-bottom: 1px solid var(--accent); padding-bottom: 2px; }
.link-more:hover { border-bottom-color: var(--accent-deep); }

.badge-store {
  display: inline-flex; align-items: center; gap: 12px;
  background: var(--text); color: #fff; border-radius: 12px;
  padding: 11px 22px; transition: transform 0.2s, box-shadow 0.2s;
}
.badge-store:hover { transform: translateY(-2px); box-shadow: var(--shadow); color: #fff; }
.badge-store svg { width: 22px; height: 26px; fill: #fff; }
.badge-store .b-small { display: block; font-size: 0.62rem; letter-spacing: 0.06em; opacity: 0.85; }
.badge-store .b-big { display: block; font-size: 1.12rem; font-weight: 600; line-height: 1.15; }

.hero-visual { position: relative; isolation: isolate; }
.hero-visual::before {
  content: ""; position: absolute; inset: 8% -6% -4% 14%;
  background: var(--bg-soft); z-index: 0;
}
.hero-visual img {
  position: relative; z-index: 1;
  width: 100%; max-width: 380px; margin: 0 auto;
  aspect-ratio: 720 / 1566; object-fit: contain;
  border-radius: 30px;
  border: 1px solid var(--border);
  box-shadow: 0 24px 60px rgba(23, 24, 28, 0.14);
}
.screen-label {
  position: absolute; z-index: 3; top: 4%; left: 0;
  display: inline-flex; align-items: center; gap: 7px;
  padding: 8px 12px; border: 1px solid rgba(49, 86, 63, 0.2);
  border-radius: 999px; background: rgba(255, 255, 255, 0.92);
  box-shadow: 0 8px 24px rgba(23, 24, 28, 0.1);
  color: var(--accent-deep); font-size: 0.72rem; font-weight: 600;
  letter-spacing: 0.08em; text-transform: uppercase;
  -webkit-backdrop-filter: blur(10px); backdrop-filter: blur(10px);
}
.screen-label::before {
  content: ""; width: 7px; height: 7px; border-radius: 50%;
  background: var(--accent-soft); box-shadow: 0 0 0 3px rgba(107, 138, 114, 0.16);
}
.proof-chip {
  position: absolute; z-index: 2; display: inline-block;
  padding: 10px 14px; border: 1px solid var(--border); border-radius: 999px;
  background: rgba(255, 255, 255, 0.94); box-shadow: var(--shadow);
  color: var(--text); font-size: 0.78rem; font-weight: 600;
}
.proof-chip--weather { right: -4%; top: 25%; }
.proof-chip--closet { left: -7%; bottom: 19%; }

/* ---------- Sections ---------- */
.section { padding: 88px 0; }
.section--tint { background: var(--bg-soft); }
.section--warm { background: var(--bg-warm); }
.section-head { max-width: 620px; margin-bottom: 52px; }
.section-head h2 { font-size: clamp(2rem, 3.6vw, 2.9rem); margin-bottom: 14px; }
.section-head p { color: var(--text-soft); font-size: 1.05rem; }
.section-head .kicker {
  display: block; font-size: 0.78rem; font-weight: 600;
  letter-spacing: 0.14em; text-transform: uppercase; color: var(--gold); margin-bottom: 14px;
}

/* ---------- How it works ---------- */
.steps { display: grid; grid-template-columns: repeat(3, 1fr); gap: 40px; counter-reset: step; }
.step { border-top: 1px solid var(--border); padding-top: 26px; }
.step .num {
  font-family: var(--serif); font-style: italic;
  font-size: 2.6rem; color: var(--gold); line-height: 1; display: block; margin-bottom: 16px;
}
.step h3 { font-size: 1.45rem; margin-bottom: 10px; }
.step p { color: var(--text-soft); font-size: 0.97rem; }

/* ---------- Feature rows ---------- */
.feature-row {
  display: grid; grid-template-columns: 1fr 1fr;
  gap: 72px; align-items: center; padding: 44px 0;
}
.feature-row + .feature-row { border-top: 1px solid var(--border); }
.feature-row.flip .f-visual { order: 2; }
.f-visual { position: relative; isolation: isolate; }
.f-visual img {
  width: 100%; max-width: 340px; margin: 0 auto;
  aspect-ratio: 720 / 1566; object-fit: contain;
  border-radius: 28px;
  border: 1px solid var(--border);
  box-shadow: 0 18px 46px rgba(23, 24, 28, 0.12);
}
.f-visual .screen-label { left: calc(50% - 198px); top: 5%; }
.f-tag {
  display: inline-block; font-size: 0.75rem; font-weight: 600;
  letter-spacing: 0.14em; text-transform: uppercase; color: var(--gold); margin-bottom: 14px;
}
.feature-row h3 { font-size: clamp(1.6rem, 2.6vw, 2.1rem); margin-bottom: 14px; }
.feature-row p { color: var(--text-soft); font-size: 1.02rem; max-width: 26em; }

/* ---------- Look strip ---------- */
.look-strip {
  display: flex; gap: 18px; overflow-x: auto; padding-bottom: 12px;
  scrollbar-width: none;
}
.look-strip::-webkit-scrollbar { display: none; }
.look-strip img {
  width: 216px; height: 270px; object-fit: cover; flex: none;
  border: 1px solid var(--border);
}


/* ---------- Lucky color widget ---------- */
.lucky-box { max-width: 680px; margin: 0 auto; }
.signs { display: grid; grid-template-columns: repeat(4, 1fr); gap: 10px; margin: 8px 0 28px; padding: 0; list-style: none; }
.signs button {
  width: 100%; background: var(--surface); border: 1px solid var(--border);
  padding: 12px 6px; cursor: pointer; text-align: center;
  font-family: var(--sans); transition: border-color 0.2s, transform 0.2s;
}
.signs button:hover { border-color: var(--accent); transform: translateY(-2px); }
.signs button[aria-pressed="true"] { border-color: var(--accent); background: var(--surface); box-shadow: var(--shadow); }
.signs .name { font-weight: 600; display: block; font-size: 0.92rem; }
.signs .dates { font-size: 0.7rem; color: var(--text-soft); }
#result {
  background: var(--surface); border: 1px solid var(--border);
  padding: 34px; box-shadow: var(--shadow);
}
.look-img { width: 100%; max-width: 320px; margin: 0 0 24px; }
.look-img[hidden] { display: none; }
.swatch { height: 88px; display: flex; align-items: flex-end; padding: 12px 18px; margin-bottom: 20px; }
.swatch .cname { font-family: var(--serif); font-size: 1.5rem; }
.reading { font-family: var(--serif); font-style: italic; font-size: 1.45rem; line-height: 1.35; color: var(--accent); margin: 0 0 6px; }
.style-kw { font-size: 0.9rem; color: var(--text-soft); }
.look-colors { font-size: 0.9rem; color: var(--accent); margin: 18px 0 6px; font-weight: 600; }
.look-items { margin: 0 0 0 1.2em; padding: 0; font-size: 0.92rem; color: var(--text-soft); }
.look-items li { margin-bottom: 0.2em; }

/* ---------- Plus band ---------- */
.plus-band {
  display: flex; align-items: center; justify-content: space-between; gap: 40px; flex-wrap: wrap;
  background: var(--accent); color: #fff; padding: 52px 56px;
}
.plus-band h3 { font-size: clamp(1.7rem, 3vw, 2.3rem); margin-bottom: 10px; }
.plus-band p { color: rgba(255, 255, 255, 0.82); max-width: 34em; font-size: 1rem; }
.plus-band .button {
  background: #fff; color: var(--accent-deep); font-weight: 600;
  padding: 14px 30px; border-radius: 999px; white-space: nowrap;
  transition: transform 0.2s;
}
.plus-band .button:hover { transform: translateY(-2px); color: var(--accent-deep); }

/* ---------- FAQ ---------- */
.faq-list { max-width: 720px; }
.faq-list details { border-bottom: 1px solid var(--border); }
.faq-list summary {
  display: flex; align-items: center; justify-content: space-between; gap: 20px;
  cursor: pointer; list-style: none;
  font-family: var(--serif); font-size: 1.35rem; line-height: 1.3;
  padding: 24px 0;
}
.faq-list summary::-webkit-details-marker { display: none; }
.faq-list summary::after {
  content: "+"; font-family: var(--sans); font-weight: 300;
  font-size: 1.6rem; color: var(--gold); flex: none;
  transition: transform 0.2s;
}
.faq-list details[open] summary::after { transform: rotate(45deg); }
.faq-list details p { color: var(--text-soft); padding: 0 40px 24px 0; font-size: 0.98rem; }

/* ---------- Final CTA ---------- */
.cta-final { text-align: center; max-width: 640px; margin: 0 auto; }
.cta-final h2 { font-size: clamp(2.1rem, 4vw, 3.1rem); margin-bottom: 16px; }
.cta-final p { color: var(--text-soft); font-size: 1.06rem; margin-bottom: 32px; }

/* ---------- Footer ---------- */
.site-footer { border-top: 1px solid var(--border); padding: 64px 0 40px; }
.footer-grid {
  display: grid; grid-template-columns: 1.4fr 1fr 1fr 1fr;
  gap: 40px; margin-bottom: 48px;
}
.footer-brand img { width: 36px; height: 36px; border-radius: 9px; margin-bottom: 14px; }
.footer-brand .fname { font-weight: 600; margin-bottom: 8px; }
.footer-brand p { font-size: 0.88rem; color: var(--text-soft); max-width: 24em; }
.footer-col h4 {
  font-size: 0.76rem; font-weight: 600; letter-spacing: 0.12em; text-transform: uppercase;
  color: var(--text-soft); margin-bottom: 16px;
}
.footer-col ul { list-style: none; padding: 0; }
.footer-col li { margin-bottom: 10px; }
.footer-col a { font-size: 0.93rem; color: var(--text); }
.footer-col a:hover { color: var(--accent); }
.footer-bottom {
  border-top: 1px solid var(--border); padding-top: 24px;
  display: flex; justify-content: space-between; gap: 16px; flex-wrap: wrap;
  font-size: 0.82rem; color: var(--text-soft);
}

/* ---------- Reveal on scroll ---------- */
.reveal { opacity: 0; transform: translateY(22px); transition: opacity 0.6s ease, transform 0.6s ease; }
.reveal.is-in { opacity: 1; transform: none; }

/* ---------- Responsive ---------- */
@media (max-width: 900px) {
  .hero .wrap { grid-template-columns: 1fr; gap: 52px; padding-top: 60px; padding-bottom: 64px; }
  .hero-visual::before { inset: 6% 0 -3% 10%; }
  .hero-visual img { max-width: 320px; }
  .hero-visual .screen-label { left: calc(50% - 180px); }
  .proof-chip--weather { right: calc(50% - 190px); }
  .proof-chip--closet { left: calc(50% - 190px); }
  .steps { grid-template-columns: 1fr; gap: 0; }
  .step { padding: 24px 0; }
  .step + .step { border-top: 1px solid var(--border); }
  .step:first-child { border-top: none; }
  .feature-row { grid-template-columns: 1fr; gap: 36px; padding: 36px 0; }
  .feature-row.flip .f-visual { order: 0; }
  .footer-grid { grid-template-columns: 1fr 1fr; }
  .section { padding: 64px 0; }
  .plus-band { padding: 40px 32px; }
}

@media (max-width: 640px) {
  .nav-links a:not(.nav-download) { display: none; }
  .signs { grid-template-columns: repeat(3, 1fr); }
  .hero h1 { font-size: 2.5rem; }
  .screen-label { font-size: 0.65rem; padding: 7px 10px; }
  .hero-visual .screen-label { left: calc(50% - 164px); }
  .proof-chip { font-size: 0.7rem; padding: 8px 11px; }
  .proof-chip--weather { right: calc(50% - 170px); }
  .proof-chip--closet { left: calc(50% - 170px); }
  .f-visual .screen-label { left: calc(50% - 178px); }
  #result { padding: 24px; }
}

@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  .reveal { opacity: 1; transform: none; transition: none; }
  .badge-store:hover, .nav-download:hover, .signs button:hover, .plus-band .button:hover { transform: none; }
}
