/* DecorAI website — mirrors the Android app: Urbanist, red #F6373F pill
   buttons, ink #272835 text, white surfaces, rounded image cards. */
@font-face { font-family: "Urbanist"; src: url("/fonts/urbanist-400.woff2") format("woff2"); font-weight: 400; font-display: swap; }
@font-face { font-family: "Urbanist"; src: url("/fonts/urbanist-500.woff2") format("woff2"); font-weight: 500; font-display: swap; }
@font-face { font-family: "Urbanist"; src: url("/fonts/urbanist-700.woff2") format("woff2"); font-weight: 700; font-display: swap; }
@font-face { font-family: "Urbanist"; src: url("/fonts/urbanist-800.woff2") format("woff2"); font-weight: 800; font-display: swap; }

:root {
  --red: #F6373F;
  --red-dark: #d92a32;
  --ink: #272835;
  --text: #3a3b46;
  --muted: #6b6c78;
  --line: #ececf0;
  --soft: #f6f6f8;
  --radius: 18px;
  --wrap: 1080px;
}
* { box-sizing: border-box; margin: 0; padding: 0; }
html { -webkit-text-size-adjust: 100%; }
body {
  font-family: "Urbanist", -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, sans-serif;
  font-size: 18px; line-height: 1.6; color: var(--text); background: #fff;
}
img { max-width: 100%; height: auto; display: block; }
a { color: var(--red); }
h1, h2, h3 { color: var(--ink); line-height: 1.15; letter-spacing: -0.02em; }
h1 { font-size: clamp(34px, 5.4vw, 56px); font-weight: 800; }
h2 { font-size: clamp(26px, 3.6vw, 38px); font-weight: 800; margin-bottom: 14px; }
h3 { font-size: 21px; font-weight: 700; margin-bottom: 6px; }
p + p { margin-top: 12px; }
.wrap { max-width: var(--wrap); margin: 0 auto; padding: 0 20px; }
.muted { color: var(--muted); }
.small { font-size: 15px; }

/* Header */
.site-header { position: sticky; top: 0; z-index: 10; background: rgba(255,255,255,.94); backdrop-filter: blur(8px); border-bottom: 1px solid var(--line); }
.site-header .wrap { display: flex; align-items: center; gap: 20px; height: 66px; }
.brand { display: flex; align-items: center; gap: 10px; text-decoration: none; color: var(--ink); font-weight: 800; font-size: 22px; letter-spacing: -0.02em; }
.brand img { width: 44px; height: auto; }
.brand em { font-style: normal; color: var(--red); }
.nav { display: flex; gap: 22px; margin-left: auto; }
.nav a { color: var(--ink); text-decoration: none; font-weight: 600; font-size: 16px; }
.nav a[aria-current="page"] { color: var(--red); }
.header-cta { padding: 10px 18px !important; font-size: 15px !important; }
@media (max-width: 760px) { .nav { display: none; } .site-header .wrap { justify-content: space-between; } }

/* Buttons */
.btn { display: inline-flex; align-items: center; justify-content: center; gap: 10px; background: var(--red); color: #fff; text-decoration: none; font-weight: 700; font-size: 19px; padding: 16px 30px; border-radius: 999px; transition: background .15s; }
.btn:hover { background: var(--red-dark); }
.btn svg { width: 22px; height: 22px; }
.btn-note { display: block; margin-top: 12px; font-size: 15px; color: var(--muted); }

/* Sections */
section { padding: 64px 0; }
section.soft { background: var(--soft); }
.lead { font-size: 21px; color: var(--muted); max-width: 680px; }
.answer { background: #fff; border: 1px solid var(--line); border-left: 5px solid var(--red); border-radius: 12px; padding: 20px 22px; max-width: 820px; }
.answer p { margin: 0; }
.section-head { max-width: 760px; margin-bottom: 28px; }

/* Hero */
.hero { padding: 48px 0 56px; }
.hero-grid { display: grid; grid-template-columns: 1fr 1.15fr; gap: 44px; align-items: center; }
.hero h1 { margin-bottom: 16px; }
.hero h1 em { font-style: normal; color: var(--red); }
.hero .lead { margin-bottom: 26px; }
@media (max-width: 900px) { .hero-grid { grid-template-columns: 1fr; gap: 28px; } }

/* Before/after slider */
.ba { position: relative; overflow: hidden; border-radius: var(--radius); background: var(--soft); aspect-ratio: 3 / 2; user-select: none; touch-action: pan-y; --pos: 50%; }
.ba img { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; pointer-events: none; }
.ba .after { clip-path: inset(0 0 0 var(--pos)); }
.ba .handle { position: absolute; top: 0; bottom: 0; left: var(--pos); width: 3px; margin-left: -1.5px; background: #fff; box-shadow: 0 0 0 1px rgba(0,0,0,.08); pointer-events: none; }
.ba .handle::after { content: ""; position: absolute; top: 50%; left: 50%; width: 40px; height: 40px; margin: -20px 0 0 -20px; border-radius: 50%; background: var(--red) url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='white' stroke-width='2.5' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpath d='M9 6l-6 6 6 6M15 6l6 6-6 6'/%3E%3C/svg%3E") center / 24px no-repeat; box-shadow: 0 2px 8px rgba(0,0,0,.25); }
.ba input[type="range"] { position: absolute; inset: 0; width: 100%; height: 100%; opacity: 0; cursor: ew-resize; margin: 0; }
.ba .tag { position: absolute; top: 12px; padding: 4px 12px; border-radius: 999px; font-size: 14px; font-weight: 700; background: rgba(39,40,53,.78); color: #fff; pointer-events: none; }
.ba .tag.l { left: 12px; } .ba .tag.r { right: 12px; background: var(--red); }

/* Example grid */
.grid { display: grid; gap: 22px; }
.grid.two { grid-template-columns: repeat(2, 1fr); }
.grid.three { grid-template-columns: repeat(3, 1fr); }
@media (max-width: 900px) { .grid.three { grid-template-columns: repeat(2, 1fr); } }
@media (max-width: 640px) { .grid.two, .grid.three { grid-template-columns: 1fr; } }
.example figcaption { margin-top: 10px; }
.example figcaption strong { color: var(--ink); font-size: 18px; }
.credit { font-size: 13px; color: var(--muted); }
.credit a { color: var(--muted); }

/* Cards */
.card { background: #fff; border: 1px solid var(--line); border-radius: var(--radius); padding: 24px; }
.step-num { display: inline-flex; width: 36px; height: 36px; border-radius: 50%; background: var(--red); color: #fff; font-weight: 800; align-items: center; justify-content: center; margin-bottom: 12px; }

/* Style tiles */
.styles { display: grid; grid-template-columns: repeat(5, 1fr); gap: 14px; }
@media (max-width: 900px) { .styles { grid-template-columns: repeat(3, 1fr); } }
@media (max-width: 520px) { .styles { grid-template-columns: repeat(2, 1fr); } }
.style-tile { text-decoration: none; color: var(--ink); font-weight: 600; text-align: center; font-size: 16px; }
.style-tile img { width: 100%; aspect-ratio: 4 / 5; object-fit: cover; border-radius: 14px; margin-bottom: 8px; }

/* Rooms */
.rooms { display: flex; flex-wrap: wrap; gap: 14px; }
.room { display: flex; align-items: center; gap: 10px; border: 1px solid var(--line); border-radius: 999px; padding: 8px 18px 8px 10px; font-weight: 600; color: var(--ink); }
.room img { width: 34px; height: 34px; }

/* Phone screenshots */
.hero-phones { display: grid; grid-template-columns: repeat(3, 1fr); gap: 12px; }
.hero-phones .phone img { border-width: 4px; border-radius: 16px; }
.phones { display: grid; grid-template-columns: repeat(5, 1fr); gap: 16px; }
@media (max-width: 900px) { .phones { grid-template-columns: repeat(3, 1fr); } }
@media (max-width: 520px) { .phones { grid-template-columns: repeat(2, 1fr); } }
.phone img { border-radius: 22px; border: 6px solid var(--ink); }
.phone figcaption { margin-top: 8px; font-size: 15px; text-align: center; color: var(--muted); }

/* Lists and tables */
.checks { list-style: none; }
.checks li { position: relative; padding-left: 32px; margin: 10px 0; }
.checks li::before { content: ""; position: absolute; left: 0; top: 4px; width: 20px; height: 20px; border-radius: 50%; background: var(--red) url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='white' stroke-width='3' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpath d='M5 12l5 5 9-10'/%3E%3C/svg%3E") center / 14px no-repeat; }
.checks.no li::before { background: #b9bac4 url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='white' stroke-width='3' stroke-linecap='round'%3E%3Cpath d='M6 6l12 12M18 6L6 18'/%3E%3C/svg%3E") center / 12px no-repeat; }
.table-wrap { overflow-x: auto; }
table { width: 100%; border-collapse: collapse; font-size: 17px; }
th, td { text-align: left; padding: 14px 12px; border-bottom: 1px solid var(--line); vertical-align: top; }
th { color: var(--ink); font-weight: 700; }

/* FAQ */
.faq details { border: 1px solid var(--line); border-radius: 14px; padding: 16px 20px; background: #fff; }
.faq details + details { margin-top: 12px; }
.faq summary { cursor: pointer; font-weight: 700; color: var(--ink); font-size: 19px; list-style: none; }
.faq summary::-webkit-details-marker { display: none; }
.faq summary::after { content: "+"; float: right; color: var(--red); font-weight: 800; }
.faq details[open] summary::after { content: "–"; }
.faq details p { margin-top: 10px; }

/* CTA band */
.cta-band { background: var(--ink); color: #fff; border-radius: 26px; padding: 44px 32px; text-align: center; }
.cta-band h2 { color: #fff; }
.cta-band p { color: #c9cad4; margin-bottom: 22px; }

/* Footer */
.site-footer { border-top: 1px solid var(--line); padding: 36px 0 44px; font-size: 15px; color: var(--muted); }
.site-footer .cols { display: flex; flex-wrap: wrap; gap: 28px; justify-content: space-between; }
.site-footer a { color: var(--muted); text-decoration: none; }
.site-footer a:hover { color: var(--ink); }
.site-footer nav { display: flex; flex-wrap: wrap; gap: 18px; }
