@import url('../shared/base.css');

/* RoomGlow · warm interior-magazine look: linen, oak, terracotta, soft daylight */
:root {
  --bg: #F4EFE6;
  --surface: #FFFCF6;
  --ink: #2B2620;
  --muted: #6F665A;
  --line: #E3DACB;
  --accent: #B5532C;
  --accent-ink: #8E3E1D;
  --on-accent: #FFFFFF;
  --sage: #6E7F68;
  --oak: #C9A97C;
  --shadow: rgba(43, 38, 32, .28);
  --radius: 20px;
  --radius-btn: 999px;
  --font-head: 'Fraunces', Georgia, serif;
  --font-body: 'Inter', system-ui, -apple-system, sans-serif;
}

body { font-size: 16.5px; line-height: 1.6; }
main { max-width: none; padding: 0 0 24px; }
.wrap { max-width: 1180px; margin-left: auto; margin-right: auto; padding-left: 20px; padding-right: 20px; }
section { margin-top: 0; scroll-margin-top: 76px; }
h1, h2, h3 { font-weight: 500; letter-spacing: -.015em; }
h2 { font-size: clamp(1.75rem, 3.6vw, 2.6rem); margin-bottom: .4em; }
em { font-style: italic; color: var(--accent); }
.eyebrow { color: var(--sage); letter-spacing: .12em; font-size: .75rem; }
.btn { font-weight: 600; border-width: 1.5px; min-height: 48px; }
.btn--primary { box-shadow: 0 10px 24px -14px var(--accent); }
.btn--primary:hover:not(:disabled) { background: var(--accent-ink); border-color: var(--accent-ink); }
.btn--ghost { background: transparent; }
.btn--block { width: 100%; }
.btn--small { min-height: 40px; }

/* header */
.bar { position: sticky; top: 0; z-index: 20; background: color-mix(in srgb, var(--bg) 88%, transparent); backdrop-filter: saturate(1.4) blur(10px); -webkit-backdrop-filter: saturate(1.4) blur(10px); border-bottom: 1px solid var(--line); }
.bar__in { display: flex; align-items: center; justify-content: space-between; gap: 12px; min-height: 60px; }
.logo { font: 600 1.35rem var(--font-head); text-decoration: none; letter-spacing: -.02em; }
.logo span { color: var(--accent); margin: 0; }
.bar nav { display: flex; align-items: center; gap: 22px; }
.bar__link { text-decoration: none; font-weight: 500; color: var(--muted); }
.bar__link:hover { color: var(--ink); }
@media (max-width: 720px) { .bar__link { display: none; } }

/* hero */
.hero { display: grid; grid-template-columns: minmax(0, .9fr) minmax(0, 1.1fr); gap: clamp(24px, 4vw, 56px); align-items: center; padding-top: clamp(20px, 5vw, 64px); padding-bottom: clamp(28px, 5vw, 64px); }
.hero h1 { font-size: clamp(2.15rem, 5.2vw, 4rem); line-height: 1.04; margin: 0 0 16px; }
.hero h1 em { display: block; }
.hero__lead { font-size: clamp(1.02rem, 1.6vw, 1.2rem); color: var(--muted); max-width: 34em; margin: 0 0 24px; }
.hero__cta { display: flex; flex-wrap: wrap; align-items: center; gap: 12px 18px; }
.hero__note { color: var(--muted); font-size: .9rem; }
.frame { border-radius: var(--radius); overflow: hidden; box-shadow: 0 30px 60px -36px var(--shadow); background: var(--line); aspect-ratio: 4 / 3; }
.frame .cmp { border-radius: 0; height: 100%; }
.frame .cmp__img { height: 100%; object-fit: cover; }
.cmp__tag { background: rgba(43, 38, 32, .66); backdrop-filter: blur(4px); font-family: var(--font-body); letter-spacing: .04em; }
.styleswitch { display: flex; gap: 8px; margin-top: 14px; overflow-x: auto; scrollbar-width: none; -webkit-overflow-scrolling: touch; }
.styleswitch::-webkit-scrollbar { display: none; }
.hero__hint { margin: 10px 0 0; font-size: .85rem; color: var(--muted); }
.chip { flex: 0 0 auto; border: 1.5px solid var(--line); background: var(--surface); color: var(--ink); padding: 9px 16px; min-height: 40px; border-radius: 999px; font: 600 .92rem var(--font-body); cursor: pointer; transition: background .15s, border-color .15s; }
.chip.is-on { background: var(--ink); border-color: var(--ink); color: var(--bg); }
.chip:hover:not(:disabled):not(.is-on) { border-color: var(--ink); }
.chip:disabled { opacity: .5; }
.chips { display: flex; flex-wrap: wrap; gap: 8px; margin-top: 10px; }

/* mobile hero: picture first, then the words and the button */
@media (max-width: 860px) {
  .hero { grid-template-columns: 1fr; gap: 20px; }
  .hero__visual { order: -1; margin: 0 -20px; }
  .hero__visual .frame { border-radius: 0; box-shadow: none; }
  .styleswitch, .hero__hint { padding: 0 20px; }
  .hero__cta .btn { width: 100%; }
  .hero__note { width: 100%; text-align: center; }
}

/* proof strip */
.proof { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 0; border-top: 1px solid var(--line); border-bottom: 1px solid var(--line); }
.proof div { padding: 22px 20px; display: flex; flex-direction: column; gap: 2px; }
.proof div + div { border-left: 1px solid var(--line); }
.proof b { font: 500 1.15rem var(--font-head); }
.proof span { color: var(--muted); font-size: .92rem; }
@media (max-width: 760px) {
  .proof { grid-template-columns: 1fr; border: 0; }
  .proof div { padding: 14px 0; border-top: 1px solid var(--line); }
  .proof div + div { border-left: 0; }
}

/* how it works */
.how, .looks, .get, .pricing, .faq { padding-top: clamp(48px, 8vw, 96px); }
.steps { list-style: none; padding: 0; margin: 20px 0 0; display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 16px; }
.steps li { display: flex; gap: 14px; background: var(--surface); border: 1px solid var(--line); border-radius: 16px; padding: 18px; }
.steps__n { flex: 0 0 auto; width: 36px; height: 36px; border-radius: 50%; background: var(--accent); color: #fff; display: grid; place-items: center; font: 600 1rem var(--font-head); }
.steps b { display: block; font-size: 1.05rem; margin-bottom: 2px; }
.steps p { margin: 0; color: var(--muted); font-size: .95rem; }
@media (max-width: 760px) { .steps { grid-template-columns: 1fr; gap: 10px; } }

/* looks */
.sec-head { display: flex; flex-wrap: wrap; justify-content: space-between; align-items: end; gap: 6px 20px; margin-bottom: 20px; }
.sec-head h2 { margin: 0; }
.sec-head p { margin: 0; max-width: 380px; color: var(--muted); }
.lookgrid { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 14px; }
@media (max-width: 860px) { .lookgrid { grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 10px; } }
.chipcard { background: var(--surface); border: 1px solid var(--line); border-radius: 16px; overflow: hidden; text-decoration: none; display: flex; flex-direction: column; padding-bottom: 14px; transition: transform .15s, box-shadow .15s; }
.chipcard:hover { transform: translateY(-3px); box-shadow: 0 18px 34px -24px var(--shadow); }
.chipcard b { font: 500 1.08rem var(--font-head); padding: 12px 14px 0; }
.chipcard span:last-child { padding: 0 14px; color: var(--muted); font-size: .88rem; }
.sw { display: flex; height: 84px; }
.sw i { flex: 1; }
.sw i:first-child { flex: 3; }
.sw i:nth-child(2) { flex: 2; }
@media (max-width: 480px) { .sw { height: 64px; } }

/* what you get */
.get { display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 1fr); gap: clamp(24px, 5vw, 64px); align-items: center; }
@media (max-width: 860px) { .get { grid-template-columns: 1fr; } }
.ticks { list-style: none; padding: 0; margin: 16px 0 0; }
.ticks li { position: relative; padding: 10px 0 10px 34px; border-top: 1px solid var(--line); }
.ticks li:first-child { border-top: 0; }
.ticks li::before { content: ''; position: absolute; left: 0; top: 13px; width: 22px; height: 22px; border-radius: 50%; background: color-mix(in srgb, var(--sage) 20%, transparent); }
.ticks li::after { content: '✓'; position: absolute; left: 6px; top: 10px; color: var(--sage); font-weight: 700; }
.sheet { background: var(--surface); border: 1px solid var(--line); border-radius: var(--radius); padding: 22px 22px 20px; box-shadow: 0 30px 60px -40px var(--shadow); }
.sheet__head { display: flex; justify-content: space-between; align-items: baseline; flex-wrap: wrap; gap: 4px 12px; padding-bottom: 12px; border-bottom: 1px solid var(--line); }
.sheet__head b { font: 500 1.35rem var(--font-head); }
.sheet__head span { color: var(--muted); font-size: .85rem; }
.sheet__list { list-style: none; padding: 0; margin: 4px 0 0; }
.sheet__list li { display: flex; justify-content: space-between; gap: 12px; padding: 11px 0; border-bottom: 1px dashed var(--line); font-size: .97rem; }
.sheet__list li span:last-child { font-variant-numeric: tabular-nums; font-weight: 600; }
.sheet__total { display: flex; justify-content: space-between; margin-top: 14px; font-weight: 600; }
.sheet__bar { margin-top: 10px; height: 8px; border-radius: 99px; background: var(--line); overflow: hidden; }
.sheet__bar i { display: block; height: 100%; width: 74%; background: var(--sage); border-radius: 99px; }
.sheet__note { margin: 8px 0 0; color: var(--muted); font-size: .85rem; }

/* designer */
#design-wrap { padding-top: clamp(48px, 8vw, 96px); }
.designer { background: var(--surface); border: 1px solid var(--line); border-radius: 24px; padding: clamp(20px, 4vw, 40px); box-shadow: 0 40px 80px -50px var(--shadow); scroll-margin-top: 76px; }
.designer h2 { margin-bottom: 4px; }
.designer__grid { display: grid; grid-template-columns: minmax(0, 1.1fr) minmax(0, 1fr); gap: 0 28px; }
@media (max-width: 760px) { .designer__grid { grid-template-columns: 1fr; } }
.label { font-size: .88rem; margin: 18px 0 8px; }
.dropzone { min-height: 200px; border: 2px dashed var(--line); border-radius: 16px; background: var(--bg); }
.dropzone__hint { display: flex; flex-direction: column; align-items: center; gap: 4px; }
.dropzone__icon { width: 44px; height: 44px; border-radius: 50%; background: var(--accent); color: #fff; display: grid; place-items: center; font-size: 1.4rem; margin-bottom: 6px; }
.dropzone__hint strong { color: var(--ink); }
.dropzone__hint span:last-child { font-size: .88rem; }
input:not([type=radio]):not([type=checkbox]), select { border: 1.5px solid var(--line); border-radius: 12px; min-height: 48px; font-size: 16px; background: var(--bg); }
.form-note { margin: 12px 0 0; color: var(--muted); font-size: .88rem; }
.styles { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 8px; }
@media (max-width: 760px) { .styles { grid-template-columns: repeat(2, minmax(0, 1fr)); } }
.style input { position: absolute; opacity: 0; pointer-events: none; }
.style__card { display: flex; flex-direction: column; gap: 8px; padding: 10px 12px; min-height: 64px; border: 1.5px solid var(--line); border-radius: 12px; cursor: pointer; font-weight: 600; font-size: .92rem; background: var(--bg); transition: border-color .15s, background .15s; }
.style__sw { display: flex; height: 16px; border-radius: 6px; overflow: hidden; }
.style__sw i { flex: 1; }
.style input:checked + .style__card { border-color: var(--accent); background: color-mix(in srgb, var(--accent) 7%, var(--surface)); box-shadow: inset 0 0 0 1px var(--accent); }
.style input:focus-visible + .style__card { outline: 3px solid color-mix(in srgb, var(--accent) 45%, transparent); }
#designBtn { margin-top: 22px; }
.reassure { text-align: center; color: var(--muted); font-size: .9rem; margin: 10px 0 0; }

/* result */
.result { padding-top: clamp(40px, 7vw, 80px); }
.viewer { display: grid; grid-template-columns: minmax(0, 1fr) 170px; gap: 14px; }
@media (max-width: 760px) { .viewer { grid-template-columns: 1fr; } }
.viewer__main img { width: 100%; border-radius: var(--radius); background: var(--line); }
.viewer__actions { display: flex; flex-wrap: wrap; align-items: center; gap: 10px; margin-top: 12px; }
.viewer__label { font: 500 1.4rem var(--font-head); margin-right: auto; }
.thumbs { display: flex; flex-direction: column; gap: 10px; }
@media (max-width: 760px) { .thumbs { flex-direction: row; overflow-x: auto; padding-bottom: 4px; } .thumb { width: 120px; } }
.thumb { border: 2px solid transparent; border-radius: 12px; overflow: hidden; background: none; padding: 0; cursor: pointer; text-align: left; font: 600 .82rem var(--font-body); color: var(--ink); flex: 0 0 auto; width: 100%; max-width: 170px; }
.thumb img { aspect-ratio: 4 / 3; object-fit: cover; width: 100%; }
.thumb span { display: block; padding: 4px 6px; }
.thumb.is-on { border-color: var(--accent); }
.more { margin-top: 18px; }
.plan { display: grid; grid-template-columns: minmax(0, 1.1fr) minmax(0, 1fr); gap: 16px; margin-top: 24px; align-items: start; }
@media (max-width: 860px) { .plan { grid-template-columns: 1fr; } }
.plan__col { background: var(--surface); border: 1px solid var(--line); border-radius: var(--radius); padding: clamp(18px, 3vw, 28px); }
.plan h3 { font-size: 1.2rem; margin-top: 20px; }
.plan__summary { font-size: 1.04rem; }
.plan__list { padding-left: 20px; margin: 0; }
.plan__list li { margin-bottom: 6px; }
.lock { background: var(--bg); border-radius: 12px; padding: 12px 14px; color: var(--muted); margin-top: 16px; }
.swatches { display: grid; grid-template-columns: repeat(auto-fill, minmax(110px, 1fr)); gap: 12px; }
.swatch { display: flex; flex-direction: column; gap: 2px; font-size: .9rem; }
.swatch__chip { height: 52px; border-radius: 10px; border: 1px solid var(--line); margin-bottom: 6px; }
.shop { list-style: none; padding: 0; margin: 0; }
.shop li { display: grid; grid-template-columns: minmax(0, 1fr) auto; gap: 4px 12px; align-items: center; padding: 12px 0; border-top: 1px solid var(--line); }
.shop li:first-child { border-top: 0; }
.shop li > div { display: flex; flex-direction: column; grid-row: span 2; }
.shop__price { font-weight: 700; font-variant-numeric: tabular-nums; text-align: right; }
.shop__link { font-weight: 600; color: var(--accent); font-size: .88rem; text-align: right; }
.shop__more { color: var(--muted); }
.shop__total { margin: 12px 0 0; padding-top: 12px; border-top: 1px solid var(--ink); font-weight: 600; }

/* pricing */
.pricing h2 { margin-bottom: 6px; }
.pricing .lead { margin: 0 0 8px; max-width: 520px; }
.tiers { margin: 32px 0 18px; }
.tier { background: var(--surface); border: 1px solid var(--line); border-radius: var(--radius); padding: 26px 22px; }
.tier--hl { border: 2px solid var(--accent); }
.tier__price { font-weight: 500; }
.tier__list li::before { color: var(--sage); }
.pricing__foot { text-align: center; color: var(--muted); font-size: .88rem; margin: 0; }

/* faq */
.faq h2 { margin-bottom: 14px; }
.faq details { border-top: 1px solid var(--line); }
.faq details:last-of-type { border-bottom: 1px solid var(--line); }
.faq summary { cursor: pointer; list-style: none; padding: 16px 32px 16px 0; font-weight: 600; position: relative; min-height: 48px; }
.faq summary::-webkit-details-marker { display: none; }
.faq summary::after { content: '+'; position: absolute; right: 4px; top: 12px; font: 400 1.5rem var(--font-head); color: var(--accent); transition: transform .2s; }
.faq details[open] summary::after { transform: rotate(45deg); }
.faq details p { margin: 0 0 16px; color: var(--muted); max-width: 60ch; }

/* footer */
.foot { margin-top: clamp(48px, 8vw, 96px); }


/* style palettes (classes, not inline styles: strict CSP) */
.sw--japandi i:nth-child(1){background:#EFE8DD} .sw--japandi i:nth-child(2){background:#C8B79E} .sw--japandi i:nth-child(3){background:#8A9A7B} .sw--japandi i:nth-child(4){background:#3E3A35}
.sw--scandinavian i:nth-child(1){background:#F4F4F0} .sw--scandinavian i:nth-child(2){background:#D9D4CB} .sw--scandinavian i:nth-child(3){background:#9AA5AB} .sw--scandinavian i:nth-child(4){background:#2F3B44}
.sw--midcentury i:nth-child(1){background:#E9DCC4} .sw--midcentury i:nth-child(2){background:#B5683A} .sw--midcentury i:nth-child(3){background:#2F6F6A} .sw--midcentury i:nth-child(4){background:#D9A53B}
.sw--coastal i:nth-child(1){background:#F7F5EF} .sw--coastal i:nth-child(2){background:#D8C7A4} .sw--coastal i:nth-child(3){background:#7FA7C1} .sw--coastal i:nth-child(4){background:#25476A}
.sw--industrial i:nth-child(1){background:#D6D0C8} .sw--industrial i:nth-child(2){background:#8C7B6B} .sw--industrial i:nth-child(3){background:#A4532E} .sw--industrial i:nth-child(4){background:#2B2B2B}
.sw--boho i:nth-child(1){background:#F1E4D0} .sw--boho i:nth-child(2){background:#C9744B} .sw--boho i:nth-child(3){background:#7C8450} .sw--boho i:nth-child(4){background:#5A3A2A}
.sw--farmhouse i:nth-child(1){background:#F5F2EA} .sw--farmhouse i:nth-child(2){background:#BFAE92} .sw--farmhouse i:nth-child(3){background:#6E7B6B} .sw--farmhouse i:nth-child(4){background:#1E1E1E}
.sw--luxe i:nth-child(1){background:#EEE7DC} .sw--luxe i:nth-child(2){background:#C4B29A} .sw--luxe i:nth-child(3){background:#8F7A63} .sw--luxe i:nth-child(4){background:#3B332C}
