/* /zencil — Zencil USA landing page (CodexGiza-operated promotional page).
   Palette = the proposed design tokens from the brief, NOT verified official Zencil brand colors.
   --taupe-text / --rose-deep are darker variants chosen so small text passes WCAG AA on ivory. */
:root {
  --ivory: #FFFDF9;
  --blush: #F7E7E8;
  --blush-deep: #F2D6DA;
  --rose: #DDA9B3;            /* decorative only: fails AA as text */
  --rose-deep: #A3445D;       /* text-safe accent on ivory/blush */
  --charcoal: #242124;
  --taupe: #8A777B;           /* decorative only */
  --taupe-text: #5F4E52;      /* text-safe secondary */
  --line: rgba(36, 33, 36, 0.12);
  --shadow: 0 18px 48px -24px rgba(163, 68, 93, 0.35);
  --serif: 'Cormorant Garamond', 'Iowan Old Style', Georgia, serif;
  --sans: 'Inter', system-ui, -apple-system, 'Segoe UI', Roboto, sans-serif;
  --gutter: clamp(20px, 5vw, 48px);
  --maxw: 1120px;
  --sticky-h: 76px;
}
*, *::before, *::after { box-sizing: border-box; }
html { background: var(--ivory); scroll-behavior: smooth; scroll-padding-top: 72px; -webkit-text-size-adjust: 100%; }
body { margin: 0; background: var(--ivory); color: var(--charcoal); font-family: var(--sans); font-size: 16px; line-height: 1.65; -webkit-font-smoothing: antialiased; }
img { max-width: 100%; height: auto; display: block; }
a { color: var(--rose-deep); text-underline-offset: 3px; }
a:hover { color: var(--charcoal); }
:focus-visible { outline: 3px solid var(--rose-deep); outline-offset: 3px; border-radius: 4px; }
.skip { position: absolute; left: 12px; top: -60px; background: var(--charcoal); color: var(--ivory); padding: 10px 16px; border-radius: 8px; z-index: 100; }
.skip:focus { top: 12px; }
.wrap { width: 100%; max-width: var(--maxw); margin: 0 auto; padding: 0 var(--gutter); }
section { padding: clamp(56px, 9vw, 104px) 0; }

/* type */
h1, h2, h3 { font-family: var(--serif); font-weight: 600; line-height: 1.08; letter-spacing: -0.01em; margin: 0; }
h1 { font-size: clamp(2.4rem, 8.4vw, 4.4rem); }
h2 { font-size: clamp(2rem, 5.6vw, 3.1rem); }
h3 { font-size: 1.5rem; }
h1 em, h2 em { font-style: italic; font-weight: 500; color: var(--rose-deep); }
.eyebrow { font-size: 0.78rem; letter-spacing: 0.18em; text-transform: uppercase; font-weight: 600; color: var(--rose-deep); margin: 0 0 14px; }
.lead { font-size: clamp(1.05rem, 2.6vw, 1.2rem); color: var(--taupe-text); max-width: 34em; margin: 18px 0 0; }
.muted { color: var(--taupe-text); }
.small { font-size: 0.82rem; line-height: 1.5; }

/* top notice + header */
.notice { background: var(--charcoal); color: var(--ivory); font-size: 0.72rem; line-height: 1.35; padding: 6px 0; text-align: center; }
@media (min-width: 600px) { .notice { font-size: 0.78rem; padding: 9px 0; } }
.notice a { color: var(--blush); }
header.site { position: sticky; top: 0; z-index: 40; background: rgba(255, 253, 249, 0.92); backdrop-filter: saturate(140%) blur(10px); border-bottom: 1px solid var(--line); }
header.site .wrap { display: flex; align-items: center; justify-content: space-between; min-height: 60px; gap: 16px; }
.mark { font-family: var(--serif); font-weight: 600; font-size: 1.25rem; color: var(--charcoal); text-decoration: none; letter-spacing: 0.01em; }
.mark span { color: var(--taupe-text); font-family: var(--sans); font-weight: 500; font-size: 0.72rem; letter-spacing: 0.14em; text-transform: uppercase; margin-left: 8px; }
header.site nav { display: none; gap: 26px; }
header.site nav a { color: var(--charcoal); text-decoration: none; font-size: 0.92rem; font-weight: 500; }
header.site nav a:hover { color: var(--rose-deep); }
@media (min-width: 880px) { header.site nav { display: flex; } }

/* buttons */
.btn { display: inline-flex; align-items: center; justify-content: center; gap: 10px; min-height: 52px; padding: 14px 28px; border-radius: 999px; font: 600 1rem/1.2 var(--sans); text-decoration: none; border: 1.5px solid var(--charcoal); cursor: pointer; transition: transform .18s ease, background-color .18s ease, color .18s ease, box-shadow .18s ease; }
.btn-primary { background: var(--charcoal); color: var(--ivory); box-shadow: 0 10px 26px -14px rgba(36, 33, 36, 0.7); }
.btn-primary:hover { background: #3A3439; color: var(--ivory); transform: translateY(-1px); }
.btn-ghost { background: transparent; color: var(--charcoal); }
.btn-ghost:hover { background: var(--charcoal); color: var(--ivory); }
.btn-sm { min-height: 44px; padding: 10px 20px; font-size: 0.92rem; }
.btn .arrow { transition: transform .18s ease; }
.btn:hover .arrow { transform: translateX(3px); }
.actions { display: flex; flex-wrap: wrap; gap: 12px; margin-top: 26px; }

/* hero */
.hero { padding: clamp(14px, 5vw, 64px) 0 clamp(48px, 8vw, 96px); background: radial-gradient(120% 80% at 80% 0%, var(--blush-deep) 0%, var(--blush) 38%, var(--ivory) 78%); }
.hero .wrap { display: grid; gap: 22px; align-items: center; }
.hero-visual { order: -1; justify-self: center; width: min(100%, 520px); }
.hero-visual .frame { background: linear-gradient(160deg, #fff 0%, var(--blush) 100%); border-radius: 28px; padding: clamp(10px, 3vw, 22px); box-shadow: var(--shadow); }
.hero-visual img { width: 100%; height: auto; border-radius: 20px; max-height: 33svh; object-fit: cover; object-position: 50% 42%; }
.hero-visual .frame { padding: 10px; }
.chips { display: flex; flex-wrap: wrap; gap: 8px; margin: 22px 0 0; padding: 0; list-style: none; }
.chips li { font-size: 0.82rem; font-weight: 500; padding: 6px 13px; border-radius: 999px; background: rgba(255, 255, 255, 0.75); border: 1px solid var(--line); color: var(--charcoal); }
.cta-note { margin: 14px 0 0; color: var(--taupe-text); }
/* tablet portrait: show the whole bottle instead of a wide crop that cuts off the pump */
@media (min-width: 600px) and (max-width: 879px) {
  .hero-visual { width: auto; }
  .hero-visual .frame { display: inline-block; }
  .hero-visual img { width: auto; max-width: 100%; max-height: 48svh; object-fit: contain; margin: 0 auto; }
}
@media (min-width: 880px) {
  .hero .wrap { grid-template-columns: 1.05fr 0.95fr; gap: 56px; }
  .hero-visual { order: 0; justify-self: end; }
  .hero-visual img { max-height: none; object-fit: contain; }
}

/* formula */
.split { display: grid; gap: 36px; align-items: center; }
@media (min-width: 880px) { .split { grid-template-columns: 1fr 1fr; gap: 72px; } .split.flip .media { order: 2; } }
.media img { border-radius: 24px; box-shadow: var(--shadow); width: 100%; }
.cards { display: grid; gap: 14px; margin: 28px 0 0; padding: 0; list-style: none; }
.card { background: #fff; border: 1px solid var(--blush-deep); border-radius: 18px; padding: 18px 20px; }
.card h3 { font-size: 1.3rem; margin: 0 0 4px; }
.card p { margin: 0; color: var(--taupe-text); font-size: 0.95rem; }
.fine { margin: 22px 0 0; padding: 14px 16px; border-left: 3px solid var(--rose); background: var(--blush); border-radius: 0 12px 12px 0; color: var(--taupe-text); }

/* founder card (renders only when the founder section is approved) */
.founder { padding-top: 0; }
.founder-card { display: grid; gap: 28px; align-items: center; background: #fff; border: 1px solid var(--blush-deep); border-radius: 32px; padding: clamp(20px, 4vw, 44px); box-shadow: var(--shadow); }
@media (min-width: 880px) { .founder-card { grid-template-columns: 340px 1fr; gap: 56px; } }
.portrait { margin: 0; width: min(100%, 340px); justify-self: center; }
.portrait img { width: 100%; height: auto; aspect-ratio: 4 / 5; object-fit: cover; object-position: 50% 20%; border-radius: 22px; }
.portrait figcaption { margin-top: 10px; text-align: center; }
.founder-card p.muted { margin: 14px 0 0; max-width: 36em; }

/* routine */
.routine { background: var(--blush); }
.steps { display: grid; gap: 16px; margin: 30px 0 0; padding: 0; list-style: none; counter-reset: step; }
.steps li { counter-increment: step; display: grid; grid-template-columns: 48px 1fr; gap: 16px; align-items: start; background: var(--ivory); border-radius: 18px; padding: 18px 20px; }
.steps li::before { content: counter(step); font-family: var(--serif); font-size: 1.9rem; line-height: 1; color: var(--rose-deep); width: 44px; height: 44px; border: 1.5px solid var(--rose); border-radius: 50%; display: grid; place-items: center; }
.steps h3 { font-size: 1.3rem; margin: 0 0 2px; }
.steps p { margin: 0; color: var(--taupe-text); }

/* story */
.story-card { background: #fff; border: 1px solid var(--blush-deep); border-radius: 28px; padding: clamp(26px, 5vw, 56px); text-align: center; max-width: 780px; margin: 0 auto; }
.story-card p { margin: 18px auto 0; max-width: 34em; color: var(--taupe-text); font-size: 1.08rem; }
.story-card .actions { justify-content: center; }

/* creators (rendered only when approved items exist) */
.creator-grid { display: grid; gap: 18px; margin-top: 28px; }
@media (min-width: 720px) { .creator-grid { grid-template-columns: repeat(3, 1fr); } }
.creator { background: #fff; border: 1px solid var(--blush-deep); border-radius: 18px; padding: 20px; }
.creator .handle { font-weight: 600; }

/* purchase */
.buy { background: linear-gradient(180deg, var(--ivory) 0%, var(--blush) 100%); }
.buy-panel { display: grid; gap: 30px; align-items: center; background: #fff; border-radius: 32px; padding: clamp(20px, 4vw, 44px); border: 1px solid var(--blush-deep); box-shadow: var(--shadow); }
@media (min-width: 880px) { .buy-panel { grid-template-columns: 0.9fr 1.1fr; gap: 56px; } }
.buy-panel img { border-radius: 22px; width: 100%; max-height: 520px; object-fit: cover; object-position: 50% 55%; }
.product-name { font-family: var(--serif); font-size: 1.6rem; font-weight: 600; margin: 8px 0 0; }
.price-note { margin: 12px 0 0; }
.disclosure { margin: 16px 0 0; padding: 12px 14px; background: var(--blush); border-radius: 12px; color: var(--taupe-text); }

/* faq */
.faq { max-width: 780px; margin: 30px auto 0; }
.faq details { border-bottom: 1px solid var(--line); }
.faq summary { list-style: none; cursor: pointer; padding: 20px 44px 20px 0; font-weight: 600; font-size: 1.05rem; position: relative; min-height: 44px; }
.faq summary::-webkit-details-marker { display: none; }
.faq summary::after { content: '+'; position: absolute; right: 6px; top: 50%; transform: translateY(-50%); font: 400 1.7rem/1 var(--serif); color: var(--rose-deep); transition: transform .2s ease; }
.faq details[open] summary::after { content: '–'; }
.faq .answer { padding: 0 0 22px; color: var(--taupe-text); max-width: 40em; }
.center { text-align: center; }

/* footer */
footer.site { background: var(--charcoal); color: var(--ivory); padding: 56px 0 calc(40px + var(--sticky-h)); }
footer.site .cols { display: grid; gap: 28px; }
@media (min-width: 880px) { footer.site .cols { grid-template-columns: 1.4fr 1fr 1fr; } footer.site { padding-bottom: 44px; } }
footer.site a { color: var(--blush); }
footer.site a:hover { color: #fff; }
footer.site h2 { font-family: var(--sans); font-size: 0.78rem; letter-spacing: 0.16em; text-transform: uppercase; font-weight: 600; margin: 0 0 12px; color: var(--rose); }
footer.site ul { list-style: none; margin: 0; padding: 0; display: grid; gap: 8px; }
footer.site p { margin: 0 0 10px; color: rgba(255, 253, 249, 0.82); }
footer.site .legal { margin-top: 34px; padding-top: 22px; border-top: 1px solid rgba(255, 253, 249, 0.16); font-size: 0.82rem; color: rgba(255, 253, 249, 0.7); }
footer.site .assoc { font-weight: 600; color: var(--ivory); }

/* sticky mobile CTA */
.sticky-cta { position: fixed; left: 0; right: 0; bottom: 0; z-index: 60; background: rgba(255, 253, 249, 0.96); backdrop-filter: blur(10px); border-top: 1px solid var(--line); padding: 10px var(--gutter) calc(10px + env(safe-area-inset-bottom)); display: flex; gap: 12px; align-items: center; justify-content: space-between; transform: translateY(110%); visibility: hidden; transition: transform .25s ease, visibility 0s linear .25s; }
.sticky-cta.is-visible { transform: none; visibility: visible; transition: transform .25s ease; }
.sticky-cta .t { font-size: 0.82rem; line-height: 1.3; color: var(--taupe-text); }
.sticky-cta .t strong { display: block; color: var(--charcoal); font-size: 0.92rem; }
.sticky-cta .btn { flex: none; }
@media (min-width: 880px) { .sticky-cta { display: none; } }

/* motion (progressive enhancement; JS adds .zc-reveal only to below-the-fold blocks) */
@media (prefers-reduced-motion: no-preference) {
  .zc-reveal { opacity: 0; transform: translateY(18px); transition: opacity .6s ease, transform .6s ease; }
  .zc-reveal.is-in { opacity: 1; transform: none; }
  .hero-visual .frame { animation: drift 9s ease-in-out infinite; }
  @keyframes drift { 0%, 100% { transform: translateY(0); } 50% { transform: translateY(-7px); } }
}
@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  *, *::before, *::after { animation: none !important; transition: none !important; }
}
@media print { .zc-reveal { opacity: 1 !important; transform: none !important; } .sticky-cta, header.site { display: none !important; } }
@media (forced-colors: active) { .btn-primary { border: 2px solid ButtonText; } }
