/* Lawni design language — ported from Mourad's prototype canvas.
   Logical properties are used throughout so French LTR and Arabic RTL share one implementation. */

:root {
  --ink: #12111f; --ink-soft: #5b5a6b; --ink-faint: #6e6d7b;
  --paper: #fff; --sand: #f4f2ec; --sand-deep: #e9e6dc; --line: #ebe9e2;
  --maj: #4c5bf0; --maj-deep: #3341c9; --maj-soft: #e7e9ff;
  --saf: #ffc94d; --saf-deep: #e0a51c; --saf-soft: #fff3d1;
  --terra: #e0623a; --terra-soft: #ffe4da; --terra-deep: #b3401c;
  --mint: #3fb68b; --mint-deep: #1f7a5b; --mint-soft: #d7f3e6;
  --rose: #f06ca8; --rose-soft: #ffe0ee; --night: #15142a;
}

html { scroll-behavior: smooth; }
body {
  margin: 0;
  font-family: Geist, "Readex Pro", system-ui, sans-serif;
  color: var(--ink);
  background: #fff;
  -webkit-font-smoothing: antialiased;
}
html[dir="rtl"] body { font-family: "Readex Pro", Geist, system-ui, sans-serif; }
*, *::before, *::after { box-sizing: border-box; }
a { color: inherit; text-decoration: none; }
a:hover { color: var(--maj); }
img, svg { max-width: 100%; }
img { height: auto; }
button, input, select, textarea { font: inherit; }

.wrap { width: 100%; max-width: 1152px; margin: 0 auto; padding: 0 24px; }
.page-shell { width: 100%; max-width: 1040px; margin: 0 auto; padding: 28px 24px 72px; }
.page-narrow { max-width: 720px; }
.display { font-weight: 500; letter-spacing: -0.035em; line-height: 1.04; margin: 0; }
.title { font-weight: 500; letter-spacing: -0.025em; line-height: 1.15; margin: 0; }
html[dir="rtl"] .display, html[dir="rtl"] .title { letter-spacing: 0; line-height: 1.3; font-weight: 600; }
.soft { color: var(--ink-soft); }
.faint, .muted { color: var(--ink-faint); }
.eyebrow { font-size: 13px; font-weight: 600; letter-spacing: .04em; text-transform: uppercase; }
html[dir="rtl"] .eyebrow { letter-spacing: 0; }
.tab { font-variant-numeric: tabular-nums; }
.visually-hidden { position: absolute !important; width: 1px !important; height: 1px !important; padding: 0 !important; margin: -1px !important; overflow: hidden !important; clip: rect(0 0 0 0) !important; white-space: nowrap !important; border: 0 !important; }

h1, .h1 { font-weight: 500; letter-spacing: -0.025em; line-height: 1.15; font-size: 46px; margin: 0; }
h2, .h2 { font-weight: 500; letter-spacing: -0.02em; line-height: 1.15; font-size: 34px; margin: 0; }
h3 { font-weight: 600; }
html[dir="rtl"] h1, html[dir="rtl"] h2 { letter-spacing: 0; line-height: 1.3; font-weight: 600; }

/* Buttons and small components */
.btn, .cta, button[type=submit]:not(.link-button):not(.choice-submit) {
  display: inline-flex; align-items: center; justify-content: center; gap: 10px;
  min-height: 52px; padding: 10px 26px; border-radius: 999px;
  background: var(--maj); color: #fff !important; border: 1.5px solid var(--maj-deep);
  box-shadow: 0 3px 0 0 var(--maj-deep); font-weight: 600; font-size: 16px;
  white-space: nowrap; cursor: pointer; font-family: inherit; text-decoration: none;
}
.btn:active, .cta:active, button[type=submit]:not(.link-button):active { transform: translateY(3px); box-shadow: none; }
.btn-lg { min-height: 60px; padding: 10px 32px; font-size: 17px; }
.btn-sm { min-height: 42px; padding: 6px 18px; font-size: 15px; box-shadow: 0 2.5px 0 0 var(--maj-deep); }
.btn-white, .cta.secondary { background: #fff; color: var(--ink) !important; border-color: #dcd9cf; box-shadow: 0 3px 0 0 #dcd9cf; }
.btn-saf { background: var(--saf); color: var(--ink) !important; border-color: var(--saf-deep); box-shadow: 0 3px 0 0 var(--saf-deep); }
.btn-mint { background: var(--mint); border-color: var(--mint-deep); box-shadow: 0 3px 0 0 var(--mint-deep); }
.btn-ink { background: var(--ink); border-color: #000; box-shadow: 0 3px 0 0 #000; }
.btn-danger { background: var(--terra); border-color: var(--terra-deep); box-shadow: 0 3px 0 0 var(--terra-deep); }
.full { width: 100%; }
.link-button { background: none; border: none; color: var(--maj); cursor: pointer; font: inherit; padding: 0; text-decoration: underline; text-underline-offset: 3px; }
.inline-form { display: inline; }
.panel { background: var(--sand); border-radius: 28px; }
.card { background: #fff; border: 1px solid var(--line); border-radius: 24px; }
.chip { display: inline-flex; align-items: center; gap: 6px; border-radius: 999px; padding: 6px 12px; font-size: 13px; font-weight: 600; }
.bubble { display: inline-grid; place-items: center; border-radius: 999px; flex-shrink: 0; box-shadow: inset 0 -3px 0 rgba(0,0,0,.08), 0 0 0 3px #fff, 0 6px 16px -6px rgba(18,17,31,.25); overflow: hidden; }
.bubble svg { width: 46%; height: 46%; }
.bubble img { width: 100%; height: 100%; object-fit: cover; display: block; }
.ic { width: 20px; height: 20px; fill: none; stroke: currentColor; stroke-width: 2; stroke-linecap: round; stroke-linejoin: round; flex-shrink: 0; }
html[dir="rtl"] .flip { transform: scaleX(-1); }

/* Forms */
.field, input:not([type=checkbox]):not([type=radio]):not([type=file]):not([type=hidden]):not([type=submit]):not([type=button]), select, textarea {
  width: 100%; min-height: 52px; border-radius: 14px; padding: 8px 16px; background: #fff;
  border: 1.5px solid var(--line); box-shadow: 0 2px 0 0 var(--line);
  font: inherit; font-size: 16px; color: var(--ink);
}
textarea.field, textarea { height: auto; padding: 14px 16px; resize: vertical; line-height: 1.5; }
input:focus-visible, select:focus-visible, textarea:focus-visible, button:focus-visible, a:focus-visible, summary:focus-visible {
  outline: 3px solid rgba(76,91,240,.35); outline-offset: 2px;
}
input:focus, select:focus, textarea:focus { border-color: var(--maj); box-shadow: 0 2px 0 0 var(--maj); }
.label, form label { display: block; font-size: 14px; font-weight: 500; margin-bottom: 6px; }
form p { margin: 14px 0; }
.errorlist { background: var(--terra-soft); color: var(--terra-deep); border: 1px solid var(--terra); border-radius: 14px; padding: 10px 14px; list-style: none; margin: 8px 0; }
.helptext { display: block; color: var(--ink-faint); font-size: 13px; line-height: 1.5; margin-top: 5px; }
.message { border-radius: 14px; padding: 12px 16px; margin: 12px 0; font-size: 15px; background: var(--maj-soft); color: var(--maj-deep); }
.message.error { background: var(--terra-soft); color: var(--terra-deep); border: 1px solid var(--terra); }
.message.success { background: var(--mint-soft); color: var(--mint-deep); }
.messages { list-style: none; padding: 0; margin: 0; }
.messages-wrap { padding-top: 16px; }

/* Header / chrome */
.site-header { width: 100%; background: rgba(255,255,255,.94); border-bottom: 1px solid var(--line); position: sticky; top: 0; z-index: 30; backdrop-filter: blur(10px); }
.header-row { height: 64px; display: flex; align-items: center; gap: 12px; }
.brand-lockup { display: inline-flex; align-items: center; gap: 8px; flex-shrink: 0; color: var(--ink); }
.brand-lockup img { width: 34px; height: 34px; display: block; }
.brand-lockup span { font-size: 22px; font-weight: 600; letter-spacing: -0.04em; }
.header-nav { display: flex; gap: 4px; margin-inline-start: 28px; font-size: 15px; }
.header-nav a { color: var(--ink-soft); padding: 8px 14px; border-radius: 999px; }
.header-nav a:hover { color: var(--ink); background: var(--sand); }
.header-actions { margin-inline-start: auto; display: flex; align-items: center; gap: 6px; }
.lang-switch button { border: 0; background: transparent; color: var(--ink-soft); padding: 8px 12px; font-size: 14px; font-weight: 500; cursor: pointer; }
.lang-switch button:hover { color: var(--ink); }
.header-icon { color: var(--ink-soft); padding: 10px; display: inline-flex; }
.header-icon .ic { width: 22px; height: 22px; }
.menu-button { width: 44px; height: 44px; border: 0; background: none; align-items: center; justify-content: center; color: var(--ink); cursor: pointer; }
.mobile-menu { display: none; flex-direction: column; gap: 6px; padding: 10px 16px 18px; border-top: 1px solid var(--line); background: #fff; }
.mobile-menu:not([hidden]) { display: flex; }
.mobile-menu a:not(.btn) { padding: 12px 8px; border-radius: 12px; font-weight: 500; }
.mobile-menu a:not(.btn):hover { background: var(--sand); }
.mobile-menu .btn { margin-top: 8px; }

/* Footer */
.site-footer { width: 100%; padding: 72px 0 28px; }
.footer-panel { padding: 40px; display: grid; grid-template-columns: minmax(0,1.4fr) repeat(3,minmax(0,1fr)); gap: 32px; }
.footer-logo { font-size: 22px; font-weight: 600; letter-spacing: -0.04em; }
.footer-brand p { color: var(--ink-soft); font-size: 14px; line-height: 1.6; max-width: 260px; margin: 10px 0 0; }
.footer-col > p { font-size: 14px; font-weight: 600; margin: 0; }
.footer-col { display: flex; flex-direction: column; gap: 10px; }
.footer-col a { color: var(--ink-soft); font-size: 14px; }
.footer-col a:hover { color: var(--ink); }
.footer-copy { color: var(--ink-faint); font-size: 13px; margin: 18px 8px 0; }

/* Home */
.home-section { padding-top: 96px; }
.hero-home { padding-top: 48px; padding-bottom: 48px; text-align: center; }
.hero-dots { display: flex; justify-content: center; align-items: center; }
.hero-dot { width: 60px; height: 60px; border-radius: 999px; overflow: hidden; margin-inline: -6px; position: relative; box-shadow: 0 0 0 3px #fff, 0 8px 18px -8px rgba(18,17,31,.35); background: #fff; }
.hero-dot.big { width: 84px; height: 84px; outline: 4px solid var(--maj-soft); z-index: 4; }
.hero-dot img { width: 100%; height: 100%; object-fit: cover; display: block; }
.hero-home h1 { font-size: 72px; margin-top: 36px; }
.hero-sub { font-size: 19px; line-height: 1.6; max-width: 620px; margin: 22px auto 0; }
.hero-actions { display: flex; gap: 12px; justify-content: center; margin-top: 34px; }
.trust-chips { display: flex; flex-wrap: wrap; justify-content: center; gap: 8px 20px; margin-top: 26px; font-size: 14px; }
.trust-chips span, .check-line { display: inline-flex; align-items: center; gap: 6px; }
.check-line .ic, .trust-chips .ic { width: 16px; height: 16px; color: var(--mint); }
.before-after-wrap { max-width: 920px; }
.before-after { position: relative; overflow: hidden; border-radius: 26px; border: 1px solid var(--line); box-shadow: 0 2px 0 0 var(--line),0 30px 60px -30px rgba(18,17,31,.35); aspect-ratio: 16/10; background: #fff; }
.before-after img.layer { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; display: block; }
.before-after .after-layer { background: #fff; }
.before-after input[type=range] { position: absolute; inset: 0; width: 100%; height: 100%; opacity: 0; cursor: ew-resize; margin: 0; z-index: 5; }
.slider-line { position: absolute; top: 0; bottom: 0; left: 52%; width: 0; border-left: 2px solid var(--ink); box-shadow: 0 0 0 2px #fff; pointer-events: none; z-index: 4; }
.slider-knob { position: absolute; top: 50%; left: -24px; width: 48px; height: 48px; margin-top: -24px; border-radius: 999px; background: var(--maj); border: 1.5px solid var(--maj-deep); box-shadow: 0 3px 0 0 var(--maj-deep); display: grid; place-items: center; color: #fff; }
.slider-label { position: absolute; top: 16px; z-index: 3; }
.slider-label.before { inset-inline-start: 16px; background: rgba(255,255,255,.92); }
.slider-label.after { inset-inline-end: 16px; background: var(--maj); color: #fff; }
.section-heading { text-align: center; max-width: 700px; margin: 0 auto; }
.section-heading h2 { font-size: 52px; }
.section-heading p { font-size: 17px; line-height: 1.6; margin-top: 14px; }
.how-grid { display: grid; grid-template-columns: repeat(4,minmax(0,1fr)); gap: 16px; margin-top: 48px; }
.how-card { position: relative; padding: 26px; }
.how-number { position: absolute; top: 20px; inset-inline-end: 22px; font-size: 48px; font-weight: 600; line-height: 1; color: var(--sand-deep); }
.how-card .bubble { width: 60px; height: 60px; }
.how-card h3 { font-size: 19px; margin: 22px 0 0; }
.how-card p, .moment-card p { font-size: 15px; line-height: 1.6; margin: 8px 0 0; color: var(--ink-soft); }
.icon-chip { width: 60px; height: 60px; display: inline-grid; place-items: center; border-radius: 999px; font-size: 30px; box-shadow: inset 0 -3px 0 rgba(0,0,0,.08),0 0 0 3px #fff,0 6px 16px -6px rgba(18,17,31,.25); }
.age-grid, .price-grid, .privacy-grid, .review-grid { display: grid; grid-template-columns: repeat(3,minmax(0,1fr)); gap: 16px; margin-top: 48px; }
.age-card { padding: 16px; }
.age-card img { width: 100%; aspect-ratio: 4/3; object-fit: cover; border-radius: 16px; border: 1px solid var(--line); display: block; }
.age-card h3 { font-size: 21px; margin: 16px 0 0; }
.age-card p { font-size: 15px; margin: 4px 0; color: var(--ink-soft); }
.moments-grid { display: grid; grid-template-columns: repeat(4,minmax(0,1fr)); gap: 16px; margin-top: 48px; }
.moment-card { display: block; overflow: hidden; border-radius: 28px; padding: 24px 24px 0; color: var(--ink); min-height: 330px; }
.moment-card:hover { transform: translateY(-2px); color: var(--ink); }
.moment-card h3 { font-size: 24px; margin: 18px 0 0; }
.moment-card .chip { background: rgba(255,255,255,.75); color: var(--ink); font-weight: 500; margin: 12px 4px 0 0; }
.moment-cover { width: 140px; margin: 22px auto -48px; transform: rotate(3deg); }
.book-cover-card { position: relative; aspect-ratio: 3/4; overflow: hidden; border-radius: 10px; box-shadow: 0 18px 40px -18px rgba(30,27,75,.4); background: var(--night); }
.book-cover-card img { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; }
.book-cover-card::after { content: ""; position: absolute; inset: 0; background: linear-gradient(to bottom, rgba(18,17,31,0) 45%, rgba(18,17,31,.78)); }
.book-cover-card.real::after { content: none; }
.book-cover-card.real { background: none; }
.cover-text { position: absolute; inset-inline: 12%; bottom: 8%; color: #fff; z-index: 2; text-align: start; }
.cover-text strong { display: block; font-size: 21px; line-height: 1.05; }
.cover-text small { display: block; margin-top: 4px; opacity: .85; }
.cover-brand { position: absolute; top: 7%; inset-inline-start: 8%; color: #fff; opacity: .86; z-index: 2; font-size: 11px; font-weight: 600; text-transform: uppercase; }
.cover-zellige { background: #ffe7a3; }
.cover-zellige img { inset: 17% 18% 36%; width: 64%; height: 47%; border-radius: 999px 999px 8px 8px; border: 4px solid #fff; box-shadow: 0 0 0 2px #1e1b4b; }
.cover-zellige::before { content: ""; position: absolute; inset-inline: 0; top: 0; height: 20%; background: repeating-conic-gradient(from 45deg, #4c5bf0 0 25%, #ffc94d 0 50%, #e0623a 0 75%, #3fb68b 0); opacity: .8; }
.cover-zellige::after { display: none; }
.cover-zellige .cover-text { color: #1e1b4b; text-align: center; }
.cover-ludique { background: #ffd3e6; }
.cover-ludique img { inset: 9% 14% 34%; width: 72%; height: 57%; border: 8px solid #fff; transform: rotate(-4deg); box-shadow: 0 8px 20px -8px rgba(18,17,31,.4); }
.cover-ludique::after { display: none; }
.cover-ludique .cover-text { text-align: center; color: #fff; text-shadow: 2px 2px 0 #3b0a24, -1px -1px 0 #3b0a24; }
.intro-panel { padding: 48px; display: grid; grid-template-columns: minmax(0,1fr) minmax(0,1fr); gap: 40px; align-items: center; }
.intro-panel h2 { font-size: 46px; margin-top: 22px; }
.intro-panel .soft { font-size: 17px; line-height: 1.65; margin-top: 14px; }
.intro-bullets { display: flex; flex-direction: column; gap: 10px; margin-top: 22px; font-size: 15px; }
.cover-stack { display: flex; justify-content: center; align-items: flex-end; padding-top: 12px; min-height: 270px; }
.cover-stack .book-cover-card { width: 150px; flex-shrink: 0; }
.cover-stack .left { transform: rotate(-8deg) translateY(10px); margin-inline-end: -34px; width: 132px; }
.cover-stack .center { width: 170px; position: relative; z-index: 1; }
.cover-stack .right { transform: rotate(8deg) translateY(10px); margin-inline-start: -34px; width: 132px; }
.price-card { position: relative; border-radius: 28px; padding: 28px; background: #fff; border: 1px solid var(--line); }
.price-card.featured { background: var(--night); color: #fff; box-shadow: 0 30px 60px -30px rgba(21,20,42,.6); }
.price-pages { margin: 0; font-size: 15px; color: var(--ink-soft); }
.featured .price-pages { color: rgba(255,255,255,.72); }
.price-amount { font-size: 52px; margin-top: 8px; font-weight: 500; letter-spacing: -0.035em; }
.price-card .btn { margin-top: 28px; }
.price-tag { position: absolute; top: 22px; inset-inline-end: 22px; background: var(--saf); color: var(--ink); }
.included-row { display: flex; flex-wrap: wrap; justify-content: center; gap: 8px 22px; margin-top: 28px; font-size: 15px; color: var(--ink-soft); }
.privacy-card { border-radius: 24px; padding: 28px; }
.review-card { margin: 0; padding: 26px; display: flex; flex-direction: column; }
.stars { color: var(--saf-deep); font-size: 15px; letter-spacing: 2px; }
.review-card blockquote { margin: 14px 0 0; font-size: 17px; line-height: 1.6; flex-grow: 1; }
.review-card figcaption { color: var(--ink-soft); margin-top: 20px; font-size: 14px; display: flex; align-items: center; gap: 10px; }
.review-card figcaption img { width: 38px; height: 38px; border-radius: 999px; object-fit: cover; display: block; }
.faq-list { margin-top: 40px; border-top: 1px solid var(--line); }
.faq-list details { border-bottom: 1px solid var(--line); padding: 20px 0; }
.faq-list summary { list-style: none; cursor: pointer; display: flex; justify-content: space-between; align-items: center; gap: 16px; font-size: 17px; font-weight: 500; }
.faq-list summary::-webkit-details-marker { display: none; }
.faq-plus { width: 32px; height: 32px; border-radius: 999px; background: var(--sand); display: grid; place-items: center; flex-shrink: 0; }
.faq-list details p { color: var(--ink-soft); font-size: 15px; line-height: 1.65; margin: 12px 0 0; }
.final-panel { overflow: hidden; text-align: center; }
.final-covers { height: 250px; display: flex; justify-content: center; align-items: flex-end; background: linear-gradient(var(--maj-soft), var(--sand)); padding-top: 40px; overflow: hidden; }
.final-covers .book-cover-card { width: 150px; margin: 0 -14px; transform: translateY(40px) rotate(-12deg); }
.final-covers .book-cover-card:nth-child(2) { width: 165px; position: relative; z-index: 1; transform: translateY(20px); }
.final-covers .book-cover-card:nth-child(3) { transform: translateY(40px) rotate(12deg); }
.final-copy { padding: 44px 24px 48px; }
.final-copy h2 { font-size: 34px; max-width: 560px; margin: 0 auto; }
.final-copy .btn { margin-top: 26px; }

/* Builder / quiz */
.builder-header { display: flex; flex-wrap: wrap; justify-content: space-between; align-items: flex-end; gap: 12px; margin-top: 28px; }
.builder-header h1 { font-size: 46px; }
.builder-header p { font-size: 16px; margin: 8px 0 0; }
.stepper { display: flex; gap: 8px; margin: 0 0 6px; }
.step-item { flex: 1; min-width: 0; }
.step-bar { height: 6px; border-radius: 999px; background: var(--sand); }
.step-item.done .step-bar, .step-item.active .step-bar { background: var(--maj); }
.step-label { margin: 8px 0 0; font-size: 13px; font-weight: 500; color: var(--ink-faint); white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.step-item.active .step-label { color: var(--ink); }
.step-mobile { font-size: 13px; margin: 10px 0 0; color: var(--ink-faint); }
.saved-indicator { color: var(--mint-deep); display: inline-flex; align-items: center; gap: 4px; font-size: 13px; }
.saved-indicator .ic { width: 14px; height: 14px; }
.quiz-card { margin-top: 36px; }
.quiz-title { font-size: 46px; }
.quiz-sub { color: var(--ink-soft); font-size: 17px; line-height: 1.6; margin: 12px 0 0; max-width: 680px; }
.choice-grid { display: grid; gap: 14px; margin-top: 28px; }
.choice-grid.cols-2 { grid-template-columns: repeat(2,minmax(0,1fr)); }
.choice-grid.cols-3 { grid-template-columns: repeat(3,minmax(0,1fr)); }
.choice-grid.cols-4 { grid-template-columns: repeat(4,minmax(0,1fr)); }
.choice-grid.cols-5 { grid-template-columns: repeat(5,minmax(0,1fr)); }
.choice-card { position: relative; display: flex; align-items: center; gap: 14px; border-radius: 20px; padding: 16px; background: #fff; border: 1.5px solid var(--line); box-shadow: 0 3px 0 0 var(--line); cursor: pointer; min-height: 72px; color: var(--ink); }
.choice-card:hover { border-color: #d6d3c8; }
.choice-card:has(input:checked) { border-color: var(--maj); box-shadow: 0 3px 0 0 var(--maj); background: var(--maj-soft); }
.choice-card input { position: absolute; opacity: 0; pointer-events: none; }
.choice-main { display: block; min-width: 0; }
.choice-title { display: block; font-size: 18px; font-weight: 600; }
.choice-desc { display: block; font-size: 14px; line-height: 1.5; margin-top: 4px; color: var(--ink-soft); }
.choice-card.vertical { flex-direction: column; align-items: stretch; text-align: start; }
.choice-card.compact { padding: 10px; }
.choice-thumb { display: block; width: 100%; aspect-ratio: 4/3; border-radius: 14px; overflow: hidden; border: 1px solid var(--line); background: #fff; object-fit: cover; }
.style-ph { position: relative; display: grid; place-items: center; background: repeating-linear-gradient(135deg,#f4f2ec 0 10px,#efece4 10px 20px); border-style: dashed; }
.style-ph .chip { background: #fff; color: var(--ink-soft); font-size: 11px; padding: 4px 9px; box-shadow: 0 1px 0 var(--line); }
.choice-price { display: block; font-size: 30px; font-weight: 600; letter-spacing: -0.03em; line-height: 1; }
.choice-price-sub { color: var(--ink-soft); font-size: 13px; display: block; margin-top: 5px; }
.choice-price-value { font-variant-numeric: tabular-nums; font-size: 16px; font-weight: 600; margin-top: 8px; display: block; }
.choice-badge { position: absolute; top: 12px; inset-inline-end: 12px; background: var(--saf-soft); color: var(--ink); font-size: 11px; padding: 3px 9px; z-index: 2; }
.quiz-actions { display: flex; justify-content: space-between; align-items: center; gap: 12px; margin-top: 40px; }
.quiz-actions .end { display: flex; align-items: center; gap: 16px; margin-inline-start: auto; }
.notice { display: flex; align-items: flex-start; gap: 12px; margin: 18px 0 0; border-radius: 16px; padding: 12px 16px; font-size: 14px; line-height: 1.55; }
.notice.mint { background: var(--mint-soft); color: var(--mint-deep); }
.notice.saf { background: var(--saf-soft); color: var(--ink); }
.notice.terra { background: var(--terra-soft); color: var(--terra-deep); }
.notice strong { font-weight: 600; }
.step-icon { width: 42px; height: 42px; border-radius: 999px; display: inline-grid; place-items: center; font-size: 22px; flex-shrink: 0; }

/* Photos */
.upload-zone { margin-top: 28px; border-radius: 28px; border: 1.5px dashed #dcd9cf; background: var(--sand); padding: 30px; text-align: center; }
.upload-zone input[type=file] { position: absolute; width: 1px; height: 1px; opacity: 0; overflow: hidden; }
.upload-label { display: inline-flex; flex-direction: column; align-items: center; gap: 10px; cursor: pointer; color: var(--ink); }
.upload-plus { width: 58px; height: 58px; border-radius: 999px; display: grid; place-items: center; background: #fff; box-shadow: 0 3px 0 var(--line); font-size: 34px; color: var(--maj); }
.thumb-grid { list-style: none; padding: 0; margin: 26px 0 0; display: grid; grid-template-columns: repeat(5,minmax(0,1fr)); gap: 12px; }
.thumb-grid li { position: relative; aspect-ratio: 1; border-radius: 16px; overflow: hidden; border: 1px solid var(--line); background: var(--sand); }
.thumb-grid img { width: 100%; height: 100%; object-fit: cover; display: block; }
.thumb-number { position: absolute; top: 8px; inset-inline-start: 8px; min-width: 24px; height: 24px; padding: 0 7px; border-radius: 999px; background: rgba(255,255,255,.95); font-size: 12px; font-weight: 600; display: grid; place-items: center; }
.upload-add { display: grid; place-items: center; height: 100%; color: var(--ink-soft); font-size: 14px; font-weight: 500; text-align: center; padding: 10px; border: 1.5px dashed #dcd9cf; border-radius: 16px; background: #fff; }
.consent-row { display: flex; align-items: flex-start; gap: 10px; margin-top: 24px; font-size: 14px; line-height: 1.5; color: var(--ink-soft); }
.consent-row input { width: 20px; height: 20px; margin-top: 2px; accent-color: var(--maj); }

/* Characters */
.faces-grid { list-style: none; padding: 0; margin: 26px 0 0; display: grid; grid-template-columns: repeat(4,minmax(0,1fr)); gap: 14px; }
.face-card { position: relative; display: flex; flex-direction: column; align-items: center; gap: 12px; border-radius: 22px; padding: 18px 14px 14px; background: #fff; border: 1.5px solid var(--line); box-shadow: 0 3px 0 0 var(--line); }
.face-card:has(input[type=checkbox]:checked) { border-color: var(--maj); box-shadow: 0 3px 0 0 var(--maj); background: var(--maj-soft); }
.face-card input[type=checkbox] { position: absolute; opacity: 0; }
.face-pick { display: flex; flex-direction: column; align-items: center; gap: 10px; width: 100%; cursor: pointer; }
.face-img-wrap { position: relative; display: block; width: 112px; height: 112px; }
.face-img-wrap img { display: block; width: 100%; height: 100%; border-radius: 999px; object-fit: cover; box-shadow: 0 0 0 3px #fff,0 8px 18px -8px rgba(18,17,31,.35); }
.face-check { position: absolute; bottom: 2px; inset-inline-end: 2px; width: 30px; height: 30px; border-radius: 999px; display: grid; place-items: center; border: 2.5px solid #fff; background: #dcd9cf; color: #fff; }
.face-card:has(input[type=checkbox]:checked) .face-check { background: var(--maj); }
.face-warning { margin: 0; display: flex; gap: 6px; align-items: flex-start; font-size: 12px; line-height: 1.45; color: var(--terra-deep); background: var(--terra-soft); border-radius: 12px; padding: 8px 10px; }

/* Story, cover, preface */
.split-builder { display: grid; grid-template-columns: minmax(0,1fr) 380px; gap: 48px; align-items: start; margin-top: 32px; }
.preview-stick { position: sticky; top: 88px; }
.preview-panel { padding: 28px; }
.preview-note { color: var(--ink-faint); font-size: 13px; text-align: center; margin: 12px 0 0; }
.design-grid { display: grid; grid-template-columns: repeat(6,minmax(0,1fr)); gap: 10px; margin-top: 12px; }
.design-grid.preface { grid-template-columns: repeat(5,minmax(0,1fr)); }
.design-choice { position: relative; display: block; cursor: pointer; text-align: center; }
.design-choice input { position: absolute; opacity: 0; }
.design-choice img { display: block; width: 100%; aspect-ratio: 3/4; object-fit: cover; border-radius: 10px; border: 1px solid var(--line); box-shadow: 0 8px 16px -10px rgba(18,17,31,.35); }
.design-choice span.label-text { display: block; margin-top: 8px; font-size: 13px; font-weight: 500; color: var(--ink-soft); }
.design-choice:has(input:checked) img { outline: 3px solid var(--maj); outline-offset: 3px; }
.design-choice:has(input:checked) span.label-text { color: var(--ink); font-weight: 600; }
.enhance-box { border-radius: 18px; background: var(--maj-soft); padding: 14px; margin-top: 12px; display: flex; align-items: center; justify-content: space-between; gap: 12px; }
.enhance-box p { margin: 0; color: var(--maj-deep); font-size: 14px; line-height: 1.5; }
.counter-note { color: var(--ink-faint); font-size: 12px; text-align: end; margin: 4px 0 0; font-variant-numeric: tabular-nums; }
.live-cover-img, .live-preface-img { display: block; width: 100%; border-radius: 10px; box-shadow: 0 20px 40px -20px rgba(18,17,31,.35); }
.idea-chips { display: flex; flex-wrap: wrap; gap: 8px; margin-top: 10px; }
.idea-chip { border-radius: 999px; padding: 9px 15px; font-size: 14px; font-weight: 500; border: 1.5px solid var(--line); background: #fff; color: var(--ink); box-shadow: 0 2px 0 0 var(--line); cursor: pointer; }
.idea-chip:hover { border-color: var(--maj); }

/* Preview / detail / checkout / orders */
.order-progress { display: grid; grid-template-columns: repeat(6,minmax(0,1fr)); gap: 8px; }
.order-progress-step .bar { display: block; height: 6px; border-radius: 999px; background: var(--line); }
.order-progress-step.done .bar { background: var(--maj); }
.order-progress-step .label { display: block; margin-top: 8px; font-size: 13px; font-weight: 500; color: var(--ink-soft); }
.order-progress-step.done .label { color: var(--ink); }
.next-steps { display: flex; flex-direction: column; gap: 12px; }
.next-steps div { display: flex; gap: 12px; align-items: flex-start; }
.next-steps div > span { width: 28px; height: 28px; flex-shrink: 0; border-radius: 999px; display: grid; place-items: center; font-size: 13px; font-weight: 600; background: var(--maj); color: #fff; }
.next-steps p { margin: 3px 0 0; line-height: 1.5; }
.timeline-list { list-style: none; padding: 0; margin: 0; display: flex; flex-direction: column; gap: 10px; }
.timeline-list li { display: flex; justify-content: space-between; gap: 16px; border-bottom: 1px solid var(--line); padding-bottom: 10px; }
.timeline-list li:last-child { border-bottom: 0; padding-bottom: 0; }
.timeline-list span { color: var(--ink-soft); font-size: 14px; }

.checkout-section { padding: 24px; margin-bottom: 18px; }
.copy-stepper-row { display: flex; justify-content: space-between; align-items: center; gap: 16px; background: var(--sand); border-radius: 20px; padding: 16px; }
.copy-stepper { display: flex; align-items: center; background: #fff; border: 1.5px solid var(--line); border-radius: 999px; flex-shrink: 0; }
.copy-stepper button { width: 44px; height: 44px; border: 0; background: none; font: inherit; font-size: 22px; cursor: pointer; color: var(--ink); }
.copy-stepper span { width: 24px; text-align: center; }
.gift-toggle { display: flex; gap: 14px; align-items: center; margin-top: 18px; border-radius: 20px; padding: 16px; cursor: pointer; border: 1.5px solid var(--line); background: #fff; }
.gift-toggle:has(input:checked) { border-color: var(--maj); background: var(--maj-soft); }
.gift-toggle input { width: 20px; height: 20px; accent-color: var(--maj); }
.gift-toggle strong, .pay-tile strong { display: block; }
.gift-toggle small, .pay-tile small { display: block; color: var(--ink-soft); font-size: 13px; margin-top: 3px; line-height: 1.4; }
.payment-tiles { display: grid; grid-template-columns: repeat(2,minmax(0,1fr)); gap: 12px; }
.pay-tile { position: relative; display: flex; gap: 12px; align-items: flex-start; border: 1.5px solid var(--line); border-radius: 20px; padding: 16px; background: #fff; cursor: pointer; }
.pay-tile:has(input:checked) { border-color: var(--maj); background: var(--maj-soft); box-shadow: 0 3px 0 0 var(--maj); }
.pay-tile input { width: 20px; height: 20px; accent-color: var(--maj); margin-top: 2px; }

.preview-book-grid { display: grid; grid-template-columns: repeat(4,minmax(0,1fr)); gap: 18px; align-items: end; }
.preview-figure { margin: 0; }
.preview-figure img { display: block; width: 100%; aspect-ratio: 210/297; object-fit: cover; border-radius: 10px; background: #fff; box-shadow: 0 18px 36px -20px rgba(18,17,31,.45); border: 1px solid var(--line); }
.preview-figure figcaption { text-align: center; font-size: 13px; color: var(--ink-soft); margin-top: 10px; }
.summary-list { margin: 14px 0 0; border: 1px solid var(--line); border-radius: 20px; background: #fff; overflow: hidden; }
.summary-row { display: flex; justify-content: space-between; align-items: center; gap: 12px; padding: 12px 16px; font-size: 15px; border-top: 1px solid var(--line); }
.summary-row:first-child { border-top: 0; }
.summary-row dt { color: var(--ink-soft); flex-shrink: 0; }
.summary-row dd { margin: 0; display: flex; gap: 12px; align-items: center; font-weight: 500; min-width: 0; text-align: end; }
.summary-row dd span { overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.summary-row dd a { font-size: 13px; color: var(--maj); flex-shrink: 0; }
.trust-list { display: flex; flex-direction: column; gap: 8px; margin-top: 18px; font-size: 14px; color: var(--ink-soft); }
.trust-list span { display: flex; gap: 8px; align-items: center; }
.trust-list .ic { color: var(--mint); width: 18px; height: 18px; flex-shrink: 0; }
.generate-form { display: flex; align-items: center; gap: 12px; flex-wrap: wrap; }

.project-summary { display: grid; grid-template-columns: repeat(3,minmax(0,1fr)); gap: 14px; margin-top: 28px; }
.summary-card { padding: 18px; }
.summary-card p { margin: 0; color: var(--ink-soft); font-size: 14px; }
.summary-card strong { display: block; margin-top: 6px; font-size: 17px; }
.asset-grid { display: grid; grid-template-columns: repeat(3,minmax(0,1fr)); gap: 16px; margin-top: 28px; }
.asset-card { padding: 14px; }
.asset-card img { width: 100%; aspect-ratio: 3/4; object-fit: cover; display: block; border-radius: 14px; border: 1px solid var(--line); background: var(--sand); }
.asset-card p { margin: 10px 4px 0; font-size: 14px; color: var(--ink-soft); }
.action-grid { display: grid; grid-template-columns: repeat(2,minmax(0,1fr)); gap: 14px; margin-top: 28px; }
.action-card { display: flex; align-items: center; gap: 14px; padding: 18px; color: var(--ink); }
.action-card:hover { border-color: var(--maj); color: var(--ink); }
.action-card strong { display: block; }
.action-card span { display: block; color: var(--ink-soft); font-size: 14px; margin-top: 3px; }
.resume-share { background: var(--sand); border-radius: 28px; padding: 20px; margin: 20px 0; display: flex; gap: 20px; align-items: center; }
.resume-share img { width: 132px; height: 132px; flex-shrink: 0; }
.resume-link { word-break: break-all; font-size: 14px; color: var(--ink-soft); }
.checkout-grid { display: grid; grid-template-columns: minmax(0,1fr) 380px; gap: 40px; align-items: start; margin-top: 32px; }
.checkout-summary { padding: 24px; position: sticky; top: 88px; }
.total-line { display: flex; justify-content: space-between; gap: 16px; padding: 12px 0; border-bottom: 1px solid var(--line); }
.total-line.grand { font-size: 20px; font-weight: 600; border-bottom: 0; }
.payment-tiles { display: grid; grid-template-columns: repeat(2,minmax(0,1fr)); gap: 12px; }
.status-timeline { list-style: none; padding: 0; margin: 24px 0; }
.status-timeline li { display: flex; gap: 12px; position: relative; padding-bottom: 24px; }
.status-timeline li::before { content: ""; width: 18px; height: 18px; border-radius: 999px; background: var(--sand-deep); border: 3px solid #fff; box-shadow: 0 0 0 1px var(--line); flex-shrink: 0; margin-top: 2px; }
.status-timeline li.done::before { background: var(--mint); }
.status-timeline li.current::before { background: var(--maj); }
.detail-list { display: grid; grid-template-columns: max-content 1fr; gap: 8px 20px; margin: 16px 0; }
.detail-list dt { font-weight: 600; color: var(--ink-soft); }
.detail-list dd { margin: 0; }
.project-list { list-style: none; padding: 0; margin: 16px 0; display: grid; gap: 12px; }
.project-item a { display: flex; flex-direction: column; gap: 4px; background: #fff; border: 1.5px solid var(--line); box-shadow: 0 3px 0 0 var(--line); border-radius: 20px; padding: 16px; text-decoration: none; transition: transform .12s; color: var(--ink); }
.project-item a:hover { border-color: #d6d3c8; }
.project-item a:active { transform: translateY(3px); box-shadow: none; }
.project-name { font-weight: 600; font-size: 17px; }
.project-meta { color: var(--ink-soft); font-size: 14px; }
.auth-card { max-width: 480px; margin: 48px auto; padding: 32px; }
.auth-card h1 { font-size: 38px; }
.legal-copy { max-width: 780px; margin: 0 auto; font-size: 16px; line-height: 1.75; }
.legal-copy h1 { font-size: 44px; margin-bottom: 24px; }
.legal-copy h2 { font-size: 24px; margin-top: 32px; }
table { border-collapse: collapse; width: 100%; }
th, td { text-align: start; padding: 8px 10px; border-bottom: 1px solid var(--line); }

/* responsive helpers */
.grid-2 { display: grid; grid-template-columns: repeat(2,minmax(0,1fr)); gap: 16px; }
.grid-3 { display: grid; grid-template-columns: repeat(3,minmax(0,1fr)); gap: 16px; }
.grid-4 { display: grid; grid-template-columns: repeat(4,minmax(0,1fr)); gap: 16px; }
.split { display: grid; grid-template-columns: minmax(0,1fr) 400px; gap: 40px; align-items: start; }
.hide-m { }
.show-m { display: none !important; }
.stack-btns { }

@media (max-width: 900px) {
  .how-grid, .moments-grid { grid-template-columns: repeat(2,minmax(0,1fr)); }
  .choice-grid.cols-5, .choice-grid.cols-4 { grid-template-columns: repeat(2,minmax(0,1fr)); }
  .faces-grid { grid-template-columns: repeat(3,minmax(0,1fr)); }
  .design-grid, .design-grid.preface { grid-template-columns: repeat(3,minmax(0,1fr)); }
}

@media (max-width: 760px) {
  .wrap { padding: 0 16px; }
  .page-shell { padding: 20px 16px 56px; }
  .hide-m { display: none !important; }
  .show-m { display: flex !important; }
  h1, .h1 { font-size: 36px; }
  h2, .h2 { font-size: 30px; }
  .btn-lg { min-height: 56px; }
  .stack-btns, .hero-actions, .quiz-actions, .quiz-actions .end { flex-direction: column; align-items: stretch !important; }
  .quiz-actions .end { width: 100%; }
  .stack-btns .btn, .hero-actions .btn, .quiz-actions .btn, .quiz-actions .end .btn { width: 100%; }
  .footer-panel { grid-template-columns: minmax(0,1fr); padding: 28px; }
  .hero-home { padding-top: 32px; padding-bottom: 32px; }
  .hero-home h1 { font-size: 42px; }
  .hero-dot { width: 44px; height: 44px; }
  .hero-dot.big { width: 64px; height: 64px; }
  .hero-sub { font-size: 17px; }
  .before-after { aspect-ratio: 4/5; }
  .home-section { padding-top: 72px; }
  .section-heading h2 { font-size: 32px; }
  .how-grid, .age-grid, .price-grid, .privacy-grid, .review-grid, .moments-grid { grid-template-columns: minmax(0,1fr); }
  .intro-panel { grid-template-columns: minmax(0,1fr); padding: 28px; }
  .intro-panel h2 { font-size: 34px; }
  .cover-stack .left, .cover-stack .right { width: 104px; }
  .cover-stack .center { width: 142px; }
  .builder-header h1, .quiz-title { font-size: 36px; }
  .stepper { gap: 5px; }
  .step-label { display: none; }
  .choice-grid.cols-2, .choice-grid.cols-3, .choice-grid.cols-4 { grid-template-columns: minmax(0,1fr); }
  .choice-card.horizontal-mobile { flex-direction: row !important; align-items: center !important; }
  .choice-card.horizontal-mobile .choice-thumb { width: 120px; flex-shrink: 0; }
  .thumb-grid { grid-template-columns: repeat(2,minmax(0,1fr)); gap: 10px; }
  .faces-grid { grid-template-columns: repeat(2,minmax(0,1fr)); gap: 10px; }
  .face-card { padding: 14px 10px 10px; }
  .face-img-wrap { width: 96px; height: 96px; }
  .split-builder, .checkout-grid { grid-template-columns: minmax(0,1fr); gap: 28px; }
  .preview-stick, .checkout-summary { position: static; }
  .preview-stick { order: -1; max-width: 320px; margin: 0 auto; width: 100%; }
  .project-summary, .asset-grid, .action-grid, .preview-book-grid { grid-template-columns: minmax(0,1fr); }
  .preview-book-grid { grid-template-columns: repeat(2,minmax(0,1fr)) !important; gap: 14px; }
  .payment-tiles { grid-template-columns: minmax(0,1fr); }
  .copy-stepper-row { align-items: flex-start; }
  .order-progress { grid-template-columns: repeat(3,minmax(0,1fr)); row-gap: 14px; }
  .resume-share { flex-direction: column; align-items: flex-start; }
  .enhance-box { flex-direction: column; align-items: stretch; }
}

/* Keep the locale switcher as quiet header text, not a pill button. */
.site-header .lang-switch button[type=submit] {
  min-height: 0 !important;
  border: 0 !important;
  border-radius: 0 !important;
  background: transparent !important;
  box-shadow: none !important;
  color: var(--ink-soft) !important;
  padding: 8px 12px !important;
  font-size: 14px !important;
  font-weight: 500 !important;
}
.site-header .lang-switch button[type=submit]:active { transform: none !important; }

/* Portal / tracking / legal */
.portal-books { display: grid; grid-template-columns: repeat(2,minmax(0,1fr)); gap: 16px; }
.portal-book { display: flex; gap: 16px; padding: 18px; text-decoration: none; color: inherit; transition: border-color .15s; }
.portal-book:hover { border-color: var(--maj); }
.portal-book-cover { width: 84px; aspect-ratio: 3/4; object-fit: cover; border-radius: 10px; border: 1px solid var(--line); flex-shrink: 0; }
.portal-book-cover-empty { display: block; background: var(--sand); }
.portal-book-body { display: flex; flex-direction: column; align-items: flex-start; gap: 2px; min-width: 0; flex: 1; }
.portal-order { display: flex; flex-wrap: wrap; align-items: center; gap: 12px; padding: 20px; text-decoration: none; color: inherit; transition: border-color .15s; }
.portal-order:hover { border-color: var(--maj); }
.order-card { display: flex; flex-wrap: wrap; align-items: center; gap: 12px; padding: 18px 20px; text-decoration: none; color: inherit; transition: border-color .15s; }
.order-card:hover { border-color: var(--maj); }
.order-card-main { display: flex; flex-direction: column; gap: 2px; flex: 1; min-width: 200px; }
.portal-order-progress { flex-basis: 100%; margin-top: 6px; }
.notice.maj { background: var(--maj-soft); color: var(--maj-deep); }
.legal-doc { max-width: 720px; margin: 0 auto; padding: 40px 24px 24px; }
.legal-doc h1 { font-family: var(--font-display); font-size: clamp(32px,5vw,44px); letter-spacing: -.02em; margin: 0 0 10px; }
.legal-doc h2 { font-family: var(--font-display); font-size: 22px; margin: 32px 0 8px; }
.legal-doc p { line-height: 1.7; margin: 6px 0; color: var(--ink-soft); }
@media (max-width: 720px) {
  .portal-books { grid-template-columns: minmax(0,1fr); }
}
