@import url('https://fonts.googleapis.com/css2?family=Carlito:wght@400;700&family=Lora:ital,wght@0,500;0,600;1,400&display=swap');
:root { --bg:#FBF8F3; --panel:#F3EDE3; --line:#E6DCCC; --ink:#2F2A24; --text:#554C42; --dim:#8E8070;
        --accent:#7A4A2A; --good:#2F6B4F; --bad:#A0584A; }
* { box-sizing: border-box; margin: 0; padding: 0; }
body { background: var(--bg); color: var(--text); font: 17px/1.55 'Carlito', 'Helvetica Neue', Arial, sans-serif; }
h1, h2, h3 { font-family: 'Lora', Georgia, serif; color: var(--ink); font-weight: 600; line-height: 1.15; }
a { color: var(--accent); }
.wrap { max-width: 980px; margin: 0 auto; padding: 0 22px; }
header.top { border-bottom: 1px solid var(--line); }
header.top .wrap { display: flex; justify-content: space-between; align-items: center; height: 64px; }
.brand { display: flex; align-items: center; gap: 10px; font: 700 24px 'Lora', Georgia, serif; color: var(--ink); text-decoration: none; letter-spacing: -.01em; }
.brand img { width: 40px; height: 40px; }
.rainbow { background: linear-gradient(90deg,#FF2A2A,#FF8A00,#F5D000,#1FC93A,#00B8E6,#2B3BFF,#B000E6); -webkit-background-clip: text; background-clip: text; color: transparent; }
.hero .logo { width: 100%; max-width: 420px; display: block; margin: 0 auto; }
.tagline { font: 700 13px 'Carlito', sans-serif; letter-spacing: .22em; text-transform: uppercase; color: var(--ink); text-align: center; margin-top: 10px; }
.btn { display: inline-block; background: var(--ink); color: #fff; text-decoration: none; border: 0; cursor: pointer;
       padding: 13px 24px; border-radius: 6px; font: 700 15px 'Carlito', sans-serif; letter-spacing: .04em; }
.btn:hover { background: #000; }
.btn.light { background: #fff; color: var(--ink); border: 1px solid var(--line); }
.btn.good { background: var(--good); }
.eyebrow { font-size: 12px; letter-spacing: .2em; text-transform: uppercase; color: var(--dim); font-weight: 700; }

/* landing */
.hero { padding: 72px 0 48px; display: grid; grid-template-columns: 1.15fr .85fr; gap: 48px; align-items: center; }
.hero h1 { font-size: 54px; margin: 14px 0 18px; letter-spacing: -.01em; }
.hero p.big { font-size: 20px; color: #6B6156; max-width: 30em; }
.hero .cta { margin-top: 28px; display: flex; gap: 12px; flex-wrap: wrap; align-items: center; }
.swatchwall { display: grid; grid-template-columns: repeat(4, 1fr); gap: 8px; }
.swatchwall i { aspect-ratio: 1; border-radius: 6px; display: block; }
.steps { display: grid; grid-template-columns: repeat(3, 1fr); gap: 22px; padding: 40px 0; border-top: 1px solid var(--line); }
.steps h3 { font-size: 19px; margin: 6px 0; }
.steps .n { font: 600 28px 'Lora', serif; color: var(--accent); }
.get { padding: 34px 0 60px; border-top: 1px solid var(--line); }
.get ul { columns: 2; margin: 16px 0 0 20px; }
.get li { margin-bottom: 8px; break-inside: avoid; }
footer { border-top: 1px solid var(--line); padding: 22px 0 40px; font-size: 14px; color: var(--dim); }

/* forms */
.form { padding: 40px 0 70px; }
.form h1 { font-size: 36px; margin-bottom: 8px; }
.card { background: #fff; border: 1px solid var(--line); border-radius: 10px; padding: 22px; margin-top: 22px; }
.card h2 { font-size: 21px; margin-bottom: 4px; }
.card .hint { font-size: 15px; color: var(--dim); }
.row { display: grid; grid-template-columns: 1fr 1fr; gap: 16px; margin-top: 14px; }
label { display: block; font-weight: 700; color: var(--ink); font-size: 15px; margin-bottom: 5px; }
input[type=text], input[type=email], input[type=number], select, textarea {
  width: 100%; padding: 11px 12px; border: 1px solid var(--line); border-radius: 6px; font: inherit; background: #fff; color: var(--ink); }
textarea { min-height: 70px; }
.slots { display: grid; grid-template-columns: repeat(5, 1fr); gap: 12px; margin-top: 16px; }
.slot { border: 2px dashed var(--line); border-radius: 8px; padding: 10px; text-align: center; position: relative; background: var(--bg); }
.slot.filled { border-style: solid; border-color: var(--good); }
.slot img.pv { width: 100%; aspect-ratio: 3/4; object-fit: cover; border-radius: 4px; display: block; background: #eee; }
.slot img.pv[hidden] { display: none; }
.slot svg.pose { width: 100%; aspect-ratio: 3/4; display: block; border-radius: 4px; }
.slot .tip { font-size: 12px; color: var(--dim); margin-top: 2px; line-height: 1.3; }
.slot .added { display: none; font-size: 12px; font-weight: 700; color: var(--good); margin-top: 4px; }
.slot.filled .added { display: block; }
.slot.filled .tip { display: none; }
.slot .t { font-size: 13px; font-weight: 700; color: var(--ink); margin-top: 6px; line-height: 1.25; }
.slot input { position: absolute; inset: 0; opacity: 0; cursor: pointer; }
.check { display: flex; gap: 10px; align-items: flex-start; margin-top: 12px; font-size: 15px; }
.check input { margin-top: 4px; width: 18px; height: 18px; }
.errors { background: #FBEAE6; border: 1px solid #E8C0B6; color: #7A2E22; border-radius: 8px; padding: 14px 18px; margin-top: 18px; }
.rules { margin: 10px 0 0 20px; font-size: 15px; }
.rules li { margin-bottom: 4px; }
.notice { background: var(--panel); border-left: 4px solid var(--accent); padding: 14px 18px; border-radius: 4px; margin-top: 18px; font-size: 15px; }

/* admin */
.admin { padding: 26px 0 70px; }
table.list { width: 100%; border-collapse: collapse; margin-top: 16px; background: #fff; }
table.list th, table.list td { text-align: left; padding: 10px 12px; border-bottom: 1px solid var(--line); font-size: 15px; }
table.list th { font-size: 12px; letter-spacing: .12em; text-transform: uppercase; color: var(--dim); }
.pill { display: inline-block; padding: 2px 10px; border-radius: 20px; font-size: 13px; font-weight: 700; background: var(--panel); color: var(--ink); }
.pill.review { background: #FFF1CF; } .pill.approved { background: #DDF0E3; color: var(--good); } .pill.attention { background: #FBEAE6; color: var(--bad); }
.grid2 { display: grid; grid-template-columns: 1.1fr .9fr; gap: 22px; margin-top: 18px; }
.shots { display: grid; grid-template-columns: repeat(5, 1fr); gap: 8px; }
.shots img { width: 100%; border-radius: 4px; display: block; }
.big img { width: 100%; border-radius: 6px; display: block; }
.warn { background: #FFF6DE; border: 1px solid #F0DDA4; border-radius: 6px; padding: 10px 14px; margin-top: 8px; font-size: 15px; color: #6B5414; }
table.nums { width: 100%; border-collapse: collapse; font-size: 14px; }
table.nums td { padding: 5px 6px; border-bottom: 1px solid #F0E8DC; }
table.nums td.sw span { display: inline-block; width: 22px; height: 22px; border-radius: 4px; vertical-align: middle; border: 1px solid rgba(0,0,0,.1); }
.legend span { display: inline-block; margin-right: 12px; font-size: 13px; }
.legend i { display: inline-block; width: 12px; height: 12px; border-radius: 2px; margin-right: 4px; vertical-align: -1px; }
.drapes { display: grid; grid-template-columns: repeat(8, 1fr); gap: 6px; margin-top: 10px; }
.drapes img { width: 100%; border-radius: 4px; }
.drapes .c { font-size: 11px; text-align: center; }
.actions { display: flex; gap: 10px; flex-wrap: wrap; margin-top: 16px; }
.mini-pal { display: flex; gap: 2px; margin-top: 6px; }
.mini-pal i { flex: 1; height: 16px; display: block; }

@media (max-width: 780px) {
  .hero { grid-template-columns: 1fr; padding-top: 40px; }
  .hero h1 { font-size: 40px; }
  .steps { grid-template-columns: 1fr; }
  .get ul { columns: 1; }
  .slots { grid-template-columns: repeat(2, 1fr); }
  .row, .grid2 { grid-template-columns: 1fr; }
  .shots { grid-template-columns: repeat(3, 1fr); }
  .drapes { grid-template-columns: repeat(4, 1fr); }
}

/* Scroll reveal (static/reveal.js), ported from the AIRemodeling site.
   A rainbow panel wipes in from the left, then slides off to the right and uncovers the block. */
[data-rv] { position: relative; }
[data-rv]::after {
  content: ''; position: absolute; inset: 0; z-index: 5; border-radius: inherit; pointer-events: none;
  background: linear-gradient(90deg, #FF2A2A, #FF8A00, #F5D000, #1FC93A, #00B8E6, #2B3BFF, #B000E6);
  transform-origin: right center;
}
/* Hidden with opacity, not clip-path: a fully clipped block never reports as "on screen". */
[data-rv='armed'] { opacity: 0; }
[data-rv='in'] { animation: rv-clip 0.21s cubic-bezier(0.65, 0, 0.35, 1) var(--rv-delay, 0ms) both; }
[data-rv='in']::after { animation: rv-wipe 0.24s cubic-bezier(0.65, 0, 0.35, 1) calc(var(--rv-delay, 0ms) + 0.19s) both; }
@keyframes rv-clip { from { clip-path: inset(0 100% 0 0); } to { clip-path: inset(0 0 0 0); } }
@keyframes rv-wipe { from { transform: scaleX(1); } to { transform: scaleX(0); } }

/* Photo instructions on the upload page: tap to open */
.both { background: var(--panel); border-radius: 6px; padding: 10px 14px; margin: 10px 0 12px; font-size: 16px; }
.howto { margin-top: 18px; }
.howto details { background: #fff; border: 1px solid var(--line); border-radius: 10px; margin-bottom: 10px; overflow: hidden; }
.howto summary { list-style: none; cursor: pointer; display: flex; gap: 14px; align-items: center; padding: 14px 18px; }
.howto summary::-webkit-details-marker { display: none; }
.howto summary::after { content: '+'; margin-left: auto; font: 600 24px 'Lora', serif; color: var(--dim); transition: transform .2s; }
.howto details[open] summary::after { transform: rotate(45deg); }
.howto summary:hover { background: var(--bg); }
.howto summary .n { flex: none; width: 34px; height: 34px; border-radius: 50%; background: var(--ink); color: #fff;
  display: flex; align-items: center; justify-content: center; font: 600 16px 'Lora', serif; }
.howto summary b { display: block; color: var(--ink); font-size: 17px; }
.howto summary small { display: block; color: var(--dim); font-size: 14px; }
.howto .body { padding: 2px 18px 18px 66px; }
.howto .body p, .howto .body li { font-size: 15px; }
.howto .body ul { margin: 12px 0 0 18px; }
.howto .body li { margin-bottom: 5px; }
.howto .body h4 { font-family: 'Lora', serif; color: var(--ink); margin: 14px 0 6px; font-size: 15px; }
.howto .scenes, .howto .faces { display: grid; grid-template-columns: repeat(5, 1fr); gap: 10px; margin-top: 10px; }
.howto .scene svg, .howto .fx svg { width: 100%; display: block; }
.howto .fx svg { width: 80%; }
.howto .scene h4, .howto .fx h4 { font-size: 13px; margin: 6px 0 0; line-height: 1.2; }
.howto .scene p, .howto .fx p { font-size: 12px; color: var(--dim); line-height: 1.3; margin: 2px 0 0; }
.howto .pair { display: grid; grid-template-columns: 1fr 1fr; gap: 18px; max-width: 420px; margin-top: 8px; }
.howto .pair svg { width: 100%; display: block; border-radius: 6px; }
.howto figcaption { font-size: 13px; font-weight: 700; margin-top: 6px; }
.howto figcaption.yes { color: var(--good); } .howto figcaption.no { color: var(--bad); }
.howto svg.wide { width: 100%; max-width: 560px; display: block; margin-top: 8px; border-radius: 6px; }
.howto .pdf { font-size: 14px; color: var(--dim); margin-top: 6px; }
@media (max-width: 780px) {
  .howto .body { padding-left: 18px; }
  .howto .scenes, .howto .faces { grid-template-columns: repeat(3, 1fr); }
}

/* sign-in */
.navr { display: flex; align-items: center; gap: 16px; }
.navr > a:not(.btn) { color: var(--ink); text-decoration: none; font-weight: 700; font-size: 15px; }
.btn.google { display: flex; align-items: center; justify-content: center; gap: 10px; width: 100%; background: #fff; color: var(--ink); border: 1px solid var(--line); }
.btn.google:hover { background: var(--bg); }
.or { display: flex; align-items: center; gap: 12px; margin: 16px 0; color: var(--dim); font-size: 13px; }
.or::before, .or::after { content: ''; flex: 1; height: 1px; background: var(--line); }
