/* ==========================================================================
   Frolay Theme — boutique
   Direction : monochrome, ivoire & encre, serif éditorial + sans précise.
   ========================================================================== */
:root {
  --bg: #f6f4ef;
  --paper: #efece5;
  --card: #fbfaf7;
  --ink: #0e0e10;
  --ink-2: #2a2a2e;
  --muted: #6f6b64;
  --line: #ddd8ce;
  --line-2: #e8e4dc;
  --dark: #0e0e10;
  --serif: "Instrument Serif", "Times New Roman", serif;
  --sans: "Inter", system-ui, -apple-system, sans-serif;
  --ease: cubic-bezier(.2, .7, .1, 1);
  --radius: 14px;
}

*, *::before, *::after { box-sizing: border-box; margin: 0; padding: 0; }
html { scroll-behavior: smooth; }
body { font-family: var(--sans); background: var(--bg); color: var(--ink); line-height: 1.6; font-size: 16px; -webkit-font-smoothing: antialiased; text-rendering: optimizeLegibility; min-height: 100vh; display: flex; flex-direction: column; overflow-x: hidden; }
main { flex: 1; }
a { color: inherit; }
img { display: block; max-width: 100%; }
::selection { background: var(--ink); color: var(--bg); }

.wrap { width: min(1240px, 100% - 48px); margin-inline: auto; }
h1, h2, h3 { font-family: var(--serif); font-weight: 400; letter-spacing: -0.015em; line-height: 1.02; }
h1 em, h2 em { font-style: italic; color: var(--muted); }
.eyebrow { font-size: 12px; font-weight: 500; letter-spacing: .18em; text-transform: uppercase; color: var(--muted); }
.muted { color: var(--muted); font-size: 14px; }
.link { font-size: 15px; font-weight: 500; text-decoration: none; border-bottom: 1px solid var(--line); padding-bottom: 2px; transition: border-color .3s; }
.link:hover { border-color: var(--ink); }

/* Buttons */
.btn { display: inline-flex; align-items: center; justify-content: center; gap: 10px; padding: 13px 24px; border-radius: 999px; font: 500 15px/1 var(--sans); text-decoration: none; border: 1px solid transparent; cursor: pointer; transition: background .3s var(--ease), color .3s, transform .3s var(--ease), border-color .3s; white-space: nowrap; }
.btn--dark { background: var(--ink); color: var(--bg); }
.btn--dark:hover { background: #2b2b30; transform: translateY(-1px); }
.btn--light { background: var(--bg); color: var(--ink); }
.btn--light:hover { background: #fff; transform: translateY(-1px); }
.btn--ghost { border-color: var(--line); background: transparent; }
.btn--ghost:hover { border-color: var(--ink); }
.btn--sm { padding: 10px 18px; font-size: 14px; }
.btn--lg { padding: 17px 30px; font-size: 16px; }
.btn--block { width: 100%; }

/* Header */
.top { position: sticky; top: 0; z-index: 40; background: color-mix(in srgb, var(--bg) 82%, transparent); backdrop-filter: saturate(1.4) blur(16px); -webkit-backdrop-filter: saturate(1.4) blur(16px); border-bottom: 1px solid transparent; transition: border-color .4s; }
.top.scrolled { border-color: var(--line-2); }
.top__in { display: flex; align-items: center; justify-content: space-between; height: 76px; gap: 24px; }
.brand { display: flex; align-items: center; gap: 10px; text-decoration: none; }
.brand img { height: 30px; width: auto; }
.brand__sub { font-family: var(--serif); font-style: italic; font-size: 24px; line-height: 1; color: var(--muted); transform: translateY(1px); }
.top__nav { display: flex; gap: 34px; font-size: 14px; }
.top__nav a { text-decoration: none; color: var(--ink-2); position: relative; }
.top__nav a::after { content: ""; position: absolute; left: 0; right: 0; bottom: -4px; height: 1px; background: currentColor; transform: scaleX(0); transform-origin: right; transition: transform .4s var(--ease); }
.top__nav a:hover::after { transform: scaleX(1); transform-origin: left; }

/* Hero */
.hero { padding: 110px 0 0; overflow: hidden; }
.hero__text { text-align: center; display: flex; flex-direction: column; align-items: center; }
.hero h1 { font-size: clamp(54px, 9.4vw, 136px); margin: 26px 0 30px; }
.hero__lead { max-width: 560px; font-size: 18px; color: var(--muted); }
.hero__cta { display: flex; align-items: center; gap: 30px; margin-top: 40px; flex-wrap: wrap; justify-content: center; }

/* Stage (3 aperçus) */
.stage { position: relative; height: clamp(320px, 46vw, 640px); margin-top: 90px; width: min(1400px, 100%); margin-inline: auto; }
.stage__item { position: absolute; bottom: -2px; transition: transform 1.2s var(--ease); }
.stage__item--c { left: 50%; width: min(860px, 64%); transform: translateX(-50%); z-index: 3; }
.stage__item--l { left: 2%; width: 40%; bottom: 60px; transform: rotate(-3deg); z-index: 1; opacity: .9; }
.stage__item--r { right: 2%; width: 40%; bottom: 60px; transform: rotate(3deg); z-index: 1; opacity: .9; }
.stage .shot { box-shadow: 0 50px 100px -40px rgba(14, 14, 16, .35), 0 0 0 1px rgba(14, 14, 16, .06); border-radius: 14px 14px 0 0; }
.stage__item--l .shot, .stage__item--r .shot { border-radius: 14px; }

/* Browser-frame previews */
.shot { background: var(--card); border-radius: var(--radius); overflow: hidden; border: 1px solid var(--line-2); }
.shot__bar { display: flex; align-items: center; gap: 6px; padding: 11px 14px; border-bottom: 1px solid var(--line-2); background: var(--card); }
.shot__bar i { width: 9px; height: 9px; border-radius: 50%; background: var(--line); }
.shot__bar span { margin-left: 12px; font-size: 11px; color: var(--muted); letter-spacing: .02em; }
.shot__frame { position: relative; aspect-ratio: 16 / 10; overflow: hidden; background: var(--paper); }
.shot__frame iframe { position: absolute; inset: 0 auto auto 0; width: 400%; height: 400%; border: 0; transform: scale(.25); transform-origin: 0 0; pointer-events: none; }
.stage__item--c .shot__frame iframe, .shot--xl .shot__frame iframe { width: 200%; height: 200%; transform: scale(.5); }
.shot--xl { margin: 50px 0 80px; box-shadow: 0 50px 100px -50px rgba(14, 14, 16, .35); }
.shot--xl .shot__frame { aspect-ratio: 16 / 9; }

/* Strip */
.strip { background: var(--dark); color: var(--bg); position: relative; z-index: 4; }
.strip__in { display: grid; grid-template-columns: repeat(4, 1fr); }
.strip__in div { padding: 34px 28px; border-left: 1px solid #26262b; display: flex; flex-direction: column; gap: 4px; }
.strip__in div:first-child { border-left: 0; padding-left: 0; }
.strip strong { font-family: var(--serif); font-weight: 400; font-size: 24px; }
.strip span { font-size: 13px; color: #9a968e; }

/* Sections */
.section { padding: 140px 0; }
.section--paper { background: var(--paper); }
.head { margin-bottom: 80px; }
.head h2 { font-size: clamp(42px, 6vw, 84px); margin-top: 18px; }
.head--split { display: grid; grid-template-columns: 1.2fr 1fr; gap: 60px; align-items: end; }
.head--split > p { color: var(--muted); font-size: 18px; max-width: 460px; }

/* Collection rows */
.rows { display: flex; flex-direction: column; gap: 140px; }
.row { display: grid; grid-template-columns: 1.45fr 1fr; gap: 80px; align-items: center; }
.row--flip .row__visual { order: 2; }
.row__visual { display: block; text-decoration: none; }
.row__visual .shot { transition: transform .8s var(--ease), box-shadow .8s var(--ease); box-shadow: 0 30px 70px -40px rgba(14, 14, 16, .3); }
.row__visual:hover .shot { transform: translateY(-8px); box-shadow: 0 50px 90px -40px rgba(14, 14, 16, .4); }
.row__num { font-size: 12px; letter-spacing: .18em; text-transform: uppercase; color: var(--muted); }
.row h3 { font-size: clamp(56px, 7vw, 104px); margin: 16px 0 18px; }
.row__info > p { font-size: 18px; color: var(--ink-2); max-width: 420px; }
.row__feats { list-style: none; margin: 28px 0 36px; border-top: 1px solid var(--line); }
.row__feats li { padding: 13px 0; border-bottom: 1px solid var(--line); font-size: 14px; color: var(--muted); }
.row__foot { display: flex; align-items: center; gap: 22px; flex-wrap: wrap; }
.row__price { font-family: var(--serif); font-size: 38px; line-height: 1; margin-right: 6px; }

/* Pillars */
.pillars { display: grid; grid-template-columns: repeat(4, 1fr); border-top: 1px solid var(--line); }
.pillars > div { padding: 36px 30px 10px 0; }
.pillars > div + div { padding-left: 30px; border-left: 1px solid var(--line); }
.pillars span { font-size: 12px; color: var(--muted); letter-spacing: .14em; }
.pillars h3 { font-size: 34px; margin: 18px 0 12px; }
.pillars p { color: var(--muted); font-size: 15px; }

/* Steps */
.steps { list-style: none; display: grid; grid-template-columns: repeat(3, 1fr); gap: 24px; }
.steps li { background: var(--card); border: 1px solid var(--line-2); border-radius: var(--radius); padding: 40px 36px 44px; }
.steps span { font-family: var(--serif); font-style: italic; font-size: 26px; color: var(--muted); }
.steps h3 { font-size: 38px; margin: 40px 0 12px; }
.steps p { color: var(--muted); font-size: 15px; }

/* FAQ */
.faq { display: grid; grid-template-columns: 1fr 1.3fr; gap: 80px; align-items: start; }
.faq .head { margin: 0; position: sticky; top: 120px; }
.faq__list { border-top: 1px solid var(--line); }
.faq details { border-bottom: 1px solid var(--line); }
.faq summary { list-style: none; cursor: pointer; display: flex; justify-content: space-between; align-items: center; gap: 20px; padding: 28px 0; font-family: var(--serif); font-size: 26px; line-height: 1.2; }
.faq summary::-webkit-details-marker { display: none; }
.faq summary::after { content: "+"; font-family: var(--sans); font-weight: 300; font-size: 26px; transition: transform .4s var(--ease); flex-shrink: 0; }
.faq details[open] summary::after { transform: rotate(45deg); }
.faq details p { padding: 0 0 28px; color: var(--muted); max-width: 600px; }

/* Final CTA */
.final { background: var(--dark); color: var(--bg); padding: 160px 0; text-align: center; }
.final__in { display: flex; flex-direction: column; align-items: center; gap: 50px; }
.final h2 { font-size: clamp(48px, 8vw, 120px); }
.final h2 em { color: #8f8b83; }

/* Footer */
.foot { background: var(--dark); color: #9a968e; font-size: 14px; border-top: 1px solid #222226; }
.foot__top { display: flex; justify-content: space-between; gap: 60px; padding: 80px 0 60px; flex-wrap: wrap; }
.foot__brand img { height: 34px; width: auto; }
.foot__brand p { margin-top: 18px; max-width: 280px; }
.invert { filter: invert(1) brightness(.96) sepia(.08); }
.foot__cols { display: flex; gap: 80px; flex-wrap: wrap; }
.foot h4 { font: 500 12px var(--sans); letter-spacing: .16em; text-transform: uppercase; color: var(--bg); margin-bottom: 18px; }
.foot__cols a { display: block; text-decoration: none; margin-bottom: 10px; transition: color .3s; }
.foot__cols a:hover { color: var(--bg); }
.foot__bottom { display: flex; justify-content: space-between; gap: 20px; flex-wrap: wrap; padding: 28px 0 36px; border-top: 1px solid #222226; font-size: 13px; }

/* Detail */
.detail { padding: 50px 0 120px; }
.crumbs { font-size: 13px; color: var(--muted); display: flex; gap: 10px; }
.crumbs a { text-decoration: none; }
.crumbs a:hover { color: var(--ink); }
.detail__head { display: flex; justify-content: space-between; align-items: flex-end; gap: 30px; margin-top: 50px; flex-wrap: wrap; }
.detail__head h1 { font-size: clamp(72px, 11vw, 160px); margin: 14px 0 16px; }
.detail__lead { font-size: 20px; color: var(--muted); max-width: 560px; }
.detail__grid { display: grid; grid-template-columns: 1fr 400px; gap: 100px; align-items: start; }
.detail__body h2 { font-size: 40px; margin: 0 0 20px; }
.detail__body h2:not(:first-child) { margin-top: 64px; }
.detail__body > p { font-size: 18px; color: var(--ink-2); max-width: 640px; }
.checks, .crosses, .files { list-style: none; border-top: 1px solid var(--line); }
.checks li, .crosses li, .files li { padding: 15px 0 15px 34px; border-bottom: 1px solid var(--line); position: relative; }
.checks li::before { content: "✓"; position: absolute; left: 4px; }
.crosses li::before { content: "✕"; position: absolute; left: 4px; color: #a33; }
.files li { padding-left: 0; color: var(--muted); font-size: 15px; }
.files code { display: inline-block; min-width: 150px; color: var(--ink); font-size: 14px; }

.buy { position: sticky; top: 110px; background: var(--card); border: 1px solid var(--line-2); border-radius: 20px; padding: 34px; box-shadow: 0 40px 80px -50px rgba(14, 14, 16, .35); }
.buy__top { display: flex; justify-content: space-between; align-items: baseline; padding-bottom: 20px; border-bottom: 1px solid var(--line); }
.buy__name { font-family: var(--serif); font-size: 30px; }
.buy__lic { font-size: 12px; letter-spacing: .14em; text-transform: uppercase; color: var(--muted); }
.buy__price { font-family: var(--serif); font-size: 76px; line-height: 1; margin: 28px 0 22px; }
.buy__price small { font-family: var(--sans); font-size: 13px; color: var(--muted); margin-left: 8px; }
.buy__list { list-style: none; margin-bottom: 26px; }
.buy__list li { font-size: 14px; color: var(--ink-2); padding: 8px 0 8px 22px; position: relative; }
.buy__list li::before { content: ""; position: absolute; left: 2px; top: 50%; width: 8px; height: 1px; background: var(--ink); }
.buy__form { display: flex; flex-direction: column; gap: 18px; }
.consent { display: flex; gap: 12px; font-size: 12.5px; color: var(--muted); line-height: 1.5; cursor: pointer; }
.consent input { margin-top: 3px; accent-color: var(--ink); flex-shrink: 0; width: 15px; height: 15px; }
.consent--error { color: #a33; }
.buy__soon { padding: 16px; text-align: center; border: 1px dashed var(--line); border-radius: 12px; color: var(--muted); font-size: 14px; }
.buy__trust { margin-top: 20px; font-size: 12px; color: var(--muted); text-align: center; }

.minis { display: grid; grid-template-columns: repeat(2, 1fr); gap: 30px; }
.mini { text-decoration: none; }
.mini .shot { transition: transform .6s var(--ease); }
.mini:hover .shot { transform: translateY(-6px); }
.mini__info { display: flex; justify-content: space-between; align-items: flex-end; padding: 20px 4px 0; }
.mini h3 { font-size: 38px; }
.mini span { font-size: 13px; color: var(--muted); }
.mini strong { font-family: var(--serif); font-weight: 400; font-size: 28px; }

/* Center pages */
.center { padding: 140px 0 120px; }
.center__in { display: flex; flex-direction: column; align-items: center; text-align: center; gap: 22px; max-width: 720px; }
.center h1 { font-size: clamp(48px, 7vw, 92px); }
.center__lead { font-size: 19px; color: var(--muted); }
.seal { width: 74px; height: 74px; border-radius: 50%; background: var(--ink); color: var(--bg); display: grid; place-items: center; font-size: 30px; margin-bottom: 10px; }

/* Prose */
.prose { padding: 100px 0 60px; }
.prose__in { max-width: 760px; }
.prose h1 { font-size: clamp(48px, 7vw, 84px); margin: 18px 0 40px; }
.prose h2 { font-size: 32px; margin: 44px 0 14px; }
.prose p { margin-bottom: 12px; color: var(--ink-2); }

/* Reveal */
.reveal { opacity: 0; transform: translateY(28px); transition: opacity 1.1s var(--ease), transform 1.1s var(--ease); }
.reveal.visible { opacity: 1; transform: none; }
.stage.reveal { transform: translateY(60px); }
.stage.reveal.visible { transform: none; }
@media (prefers-reduced-motion: reduce) { .reveal, .stage.reveal { opacity: 1; transform: none; transition: none; } html { scroll-behavior: auto; } }

/* Responsive */
@media (max-width: 1080px) {
  .row, .row--flip { grid-template-columns: 1fr; gap: 40px; }
  .row--flip .row__visual { order: 0; }
  .rows { gap: 100px; }
  .detail__grid { grid-template-columns: 1fr; gap: 60px; }
  .buy { position: static; max-width: 520px; }
  .pillars { grid-template-columns: 1fr 1fr; }
  .pillars > div:nth-child(3) { border-left: 0; padding-left: 0; }
  .faq { grid-template-columns: 1fr; gap: 40px; }
  .faq .head { position: static; }
  .strip__in { grid-template-columns: 1fr 1fr; }
  .strip__in div:nth-child(3) { border-left: 0; padding-left: 0; }
  .strip__in div { border-top: 1px solid #26262b; }
  .strip__in div:nth-child(-n+2) { border-top: 0; }
}
@media (max-width: 820px) {
  .top__nav { display: none; }
  .head--split { grid-template-columns: 1fr; gap: 24px; }
  .steps { grid-template-columns: 1fr; }
  .stage__item--l, .stage__item--r { display: none; }
  .stage__item--c { width: 92%; }
  .stage { height: auto; aspect-ratio: 16 / 11.5; margin-top: 60px; }
  .minis { grid-template-columns: 1fr; }
  .section { padding: 100px 0; }
}
@media (max-width: 560px) {
  .wrap { width: calc(100% - 32px); }
  .top__in { height: 64px; }
  .brand img { height: 26px; }
  .brand__sub { font-size: 20px; }
  .top .btn--sm { padding: 9px 14px; font-size: 13px; }
  .hero { padding-top: 70px; }
  .hero__lead { font-size: 16px; }
  .pillars { grid-template-columns: 1fr; }
  .pillars > div + div { border-left: 0; padding-left: 0; border-top: 1px solid var(--line); }
  .strip__in { grid-template-columns: 1fr; }
  .strip__in div { border-left: 0 !important; padding-left: 0 !important; border-top: 1px solid #26262b; }
  .strip__in div:first-child { border-top: 0; }
  .buy { padding: 26px; }
  .buy__price { font-size: 60px; }
  .final { padding: 110px 0; }
  .faq summary { font-size: 22px; }
}
