/* Cozy Me product page. The app's look: black around the room, coolvetica, the knob controls
   (a dark well that springs into a raised light cap), the panel tile (#1b1b1b at 86 %, radius 12),
   the amber accent #C08A40. Built by build-cozy-me-page.cjs. */
@font-face { font-family: coolvetica; src: url(/cozy-me/assets/coolvetica-rg.woff2) format("woff2"); font-display: swap; }
:root {
  --bg: #000; --tile: rgba(27, 27, 27, .86); --line: rgba(255, 255, 255, .14);
  --well: #151719; --edge: #777c82; --ink: #171a1d; --face: #eff1f2; --dim: #7c848b;
  --amber: #c08a40; --text: #fff; --soft: rgba(255, 255, 255, .72); --faint: rgba(255, 255, 255, .5);
  color-scheme: dark;
}
* { box-sizing: border-box; }
html { background: var(--bg); scroll-behavior: smooth; }
body { margin: 0; background: var(--bg); color: var(--text); font: 18px/1.45 coolvetica, "Helvetica Neue", Arial, sans-serif; letter-spacing: .01em; -webkit-font-smoothing: antialiased; }
img { display: block; max-width: 100%; height: auto; }
a { color: inherit; }
h1, h2, h3 { font-weight: 400; line-height: 1.08; margin: 0; letter-spacing: .005em; }
p { margin: 0; }
ul { list-style: none; margin: 0; padding: 0; }
.skip { position: absolute; left: -999px; top: 8px; z-index: 20; background: var(--face); color: var(--ink); padding: 8px 12px; border-radius: 8px; }
.skip:focus { left: 8px; }
:focus-visible { outline: 2px solid var(--amber); outline-offset: 3px; }

/* the raised light cap (the app's selected knob / chip) */
.cap { display: inline-flex; align-items: center; justify-content: center; min-height: 48px; padding: 0 22px; border-radius: 12px;
  background: linear-gradient(#fff, #c8cdd1); color: var(--ink); text-decoration: none; font-size: 18px;
  box-shadow: 0 2px 4px rgba(0, 0, 0, .4), inset 0 1px 0 #fff; transition: transform .15s; }
.cap:hover { transform: translateY(-1px); }
.cap:active { transform: translateY(1px); box-shadow: 0 1px 2px rgba(0, 0, 0, .4); }
.cap-small { min-height: 38px; padding: 0 14px; font-size: 15px; }
.cap .short { display: none; }
.soon { color: var(--soft); font-size: 15px; }
.actions { display: flex; flex-wrap: wrap; align-items: center; gap: 12px 18px; margin-top: 22px; }

/* header */
.top { position: absolute; z-index: 10; inset: 0 0 auto; display: flex; align-items: center; justify-content: space-between; gap: 12px;
  padding: 14px max(16px, 4vw); background: linear-gradient(rgba(0, 0, 0, .55), transparent); }
.mark { display: flex; align-items: center; gap: 10px; text-decoration: none; font-size: 20px; }
.mark img { border-radius: 9px; }
.top nav { display: flex; align-items: center; gap: 16px; }
.lang { font-size: 15px; color: var(--soft); text-decoration: none; }
.lang:hover { color: #fff; }

/* the hero: one room through the evening */
.stage { position: relative; min-height: 100svh; overflow: hidden; display: flex; flex-direction: column; }
.hours { position: absolute; inset: 0; }
.hour { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; object-position: 42% 55%; opacity: 0; transition: opacity 1.2s ease; }
.stage[data-stop="0"] .hour[data-stop="0"], .stage[data-stop="1"] .hour[data-stop="1"], .stage[data-stop="2"] .hour[data-stop="2"] { opacity: 1; }
.stage::after { content: ""; position: absolute; inset: 0; background: linear-gradient(180deg, rgba(0, 0, 0, .25) 0, transparent 30%, transparent 45%, rgba(0, 0, 0, .86) 82%); pointer-events: none; }
.brand { position: relative; z-index: 2; text-align: center; padding-top: max(76px, 10vh); }
.brand img { width: min(340px, 62vw); margin: 0 auto; filter: drop-shadow(0 4px 18px rgba(0, 0, 0, .45)); }
.brand p { margin-top: 2px; font-size: clamp(16px, 2vw, 22px); color: rgba(255, 255, 255, .86); text-shadow: 0 1px 8px rgba(0, 0, 0, .6); }
.copy { position: relative; z-index: 2; margin-top: auto; padding: 40px max(16px, 6vw) 56px; max-width: 760px; }
.chapter + .chapter { margin-top: 28px; }
.chapter h1 { font-size: clamp(36px, 5.4vw, 64px); }
.chapter .lede { margin: 14px 0 0; font-size: clamp(18px, 1.7vw, 21px); color: rgba(255, 255, 255, .88); max-width: 34em; }
.chapter .time-tag { color: var(--amber); font-size: 14px; letter-spacing: .12em; text-transform: uppercase; margin-top: 26px; }
.chapter .time-tag + p { color: rgba(255, 255, 255, .86); max-width: 30em; }
.hint { display: none; }

/* with JavaScript the hero holds still while the evening passes */
.js .evening { height: 300vh; }
.js .stage { position: sticky; top: 0; height: 100svh; }
.js .copy { display: grid; }
.js .chapter { grid-area: 1 / 1; margin: 0; opacity: 0; transform: translateY(14px); transition: opacity .6s, transform .6s; pointer-events: none; align-self: end; }
.js .chapter.is-active { opacity: 1; transform: none; pointer-events: auto; }
.js .chapter[data-stop="0"] .time-tag { margin-top: 22px; }
.js .hint { display: flex; align-items: center; gap: 6px; position: absolute; z-index: 2; right: max(16px, 4vw); bottom: 22px; color: var(--faint); font-size: 14px; transition: opacity .4s; }
.js .stage:not([data-stop="0"]) .hint { opacity: 0; }
.hint svg { width: 16px; height: 16px; fill: none; stroke: currentColor; stroke-width: 2; stroke-linecap: round; animation: nudge 2s ease-in-out infinite; }
@keyframes nudge { 50% { transform: translateY(3px); } }

/* sections */
main > section { padding: clamp(64px, 9vw, 120px) max(16px, 6vw) 0; max-width: 1240px; margin: 0 auto; }
main h2 { font-size: clamp(30px, 4vw, 46px); }
.intro { margin-top: 12px; color: var(--soft); max-width: 40em; }
.small { margin-top: 14px; color: var(--faint); font-size: 14px; }
.eyebrow { color: var(--amber); font-size: 13px; letter-spacing: .12em; text-transform: uppercase; margin-bottom: 8px; }

/* the control screen: 800x360 dp landscape, everything in dp (--dp) */
.deck { margin-top: 32px; overflow-x: auto; scrollbar-width: thin; padding: 6px 2px 10px; }
.screen { --dp: calc(100cqw / 800); container-type: inline-size; position: relative; aspect-ratio: 800 / 360; min-width: 680px; max-width: 1080px; margin: 0 auto;
  background: #000; border-radius: 34px; border: 1px solid #2a2d30; box-shadow: 0 0 0 7px #0d0e0f, 0 0 0 8px #33373b, 0 30px 80px rgba(0, 0, 0, .7); }
.screen .room { position: absolute; margin: 0; left: calc(80 * var(--dp)); top: calc(10 * var(--dp)); width: calc(640 * var(--dp)); height: calc(296 * var(--dp)); overflow: hidden; border-radius: calc(4 * var(--dp)); }
.screen .room img { width: 100%; height: 100%; object-fit: cover; transition: opacity .35s; }
.screen .room img.swap { opacity: 0; }
.col { position: absolute; top: calc(10 * var(--dp)); bottom: calc(10 * var(--dp)); width: calc(80 * var(--dp)); display: flex; flex-direction: column; align-items: center; }
.col-l { left: 0; justify-content: space-between; }
.col-r { left: calc(720 * var(--dp)); }
.modes, .app { display: flex; flex-direction: column; align-items: center; gap: calc(10 * var(--dp)); }
.item { all: unset; box-sizing: border-box; position: relative; display: flex; flex-direction: column; align-items: center; justify-content: center; gap: calc(4 * var(--dp));
  width: calc(72 * var(--dp)); height: calc(66 * var(--dp)); color: #fff; }
button.item { cursor: pointer; }
.knob { display: grid; place-items: center; width: calc(40 * var(--dp)); height: calc(40 * var(--dp)); border-radius: 50%;
  background: var(--well); color: var(--dim); box-shadow: inset 0 calc(2 * var(--dp)) calc(4 * var(--dp)) rgba(0, 0, 0, .8), 0 0 0 calc(1 * var(--dp)) #2c3034; transition: background .2s, color .2s; }
.knob .ic { width: 56%; height: 56%; fill: none; stroke: currentColor; stroke-width: 1.8; stroke-linecap: round; stroke-linejoin: round; }
.label { font-size: calc(12 * var(--dp)); line-height: 1.1; text-align: center; color: rgba(255, 255, 255, .6); white-space: nowrap; }
.item.on .knob { background: linear-gradient(#fff, #c8cdd1); color: var(--ink); box-shadow: 0 calc(2 * var(--dp)) calc(4 * var(--dp)) rgba(0, 0, 0, .4); }
.item.on .label, .item.choice .label { color: #fff; }
.item.choice .knob { color: #f4f6f7; }
.item.mode { height: calc(80 * var(--dp)); }
.item.mode .knob { width: calc(52 * var(--dp)); height: calc(52 * var(--dp)); color: var(--amber); }
.item.small { height: calc(50 * var(--dp)); opacity: .7; }
.item.small .knob { width: calc(30 * var(--dp)); height: calc(30 * var(--dp)); }
.item.small .label { font-size: calc(10 * var(--dp)); }
button.item:hover .knob { color: #fff; }
.bar { position: absolute; bottom: calc(1 * var(--dp)); width: calc(14 * var(--dp)); height: calc(2 * var(--dp)); border-radius: 2px; background: #fff; opacity: 0; }
button.item[aria-expanded="true"] .bar { opacity: 1; }
.props { position: absolute; left: calc(80 * var(--dp)); width: calc(640 * var(--dp)); bottom: 0; height: calc(58 * var(--dp)); display: flex; justify-content: center; }
.props[hidden] { display: none; }
.props .item { width: calc(80 * var(--dp)); height: calc(58 * var(--dp)); }
.panel { position: absolute; width: calc(160 * var(--dp)); padding: calc(10 * var(--dp)); border-radius: calc(12 * var(--dp)); background: var(--tile);
  display: flex; flex-direction: column; gap: calc(6 * var(--dp)); backdrop-filter: blur(6px); }
.panel[hidden] { display: none; }
.panel p { font-size: calc(12 * var(--dp)); color: rgba(255, 255, 255, .7); margin-bottom: calc(2 * var(--dp)); }
.panel-time { left: calc(554 * var(--dp)); top: calc(10 * var(--dp)); }
.panel-rooms { left: calc(84 * var(--dp)); bottom: calc(14 * var(--dp)); }
.opt { all: unset; box-sizing: border-box; cursor: pointer; padding: calc(7 * var(--dp)) calc(10 * var(--dp)); border-radius: calc(8 * var(--dp)); font-size: calc(13 * var(--dp)); line-height: 1.15;
  background: var(--well); color: rgba(255, 255, 255, .85); box-shadow: inset 0 calc(1 * var(--dp)) calc(3 * var(--dp)) rgba(0, 0, 0, .8); }
.opt.on { background: linear-gradient(#fff, #c8cdd1); color: var(--ink); box-shadow: 0 calc(2 * var(--dp)) calc(4 * var(--dp)) rgba(0, 0, 0, .4); }
.opt:focus-visible { outline: 2px solid var(--amber); }

/* rooms */
.rooms ul { margin-top: 36px; display: grid; grid-template-columns: repeat(3, 1fr); gap: 22px; }
.rooms li { background: #0e0f10; border: 1px solid #1d2023; border-radius: 16px; padding: 10px 10px 20px; }
.rooms figure { margin: 0 0 16px; border-radius: 10px; overflow: hidden; }
.rooms h3 { font-size: 24px; padding: 0 8px; }
.rooms li p { padding: 0 8px; margin-top: 8px; color: var(--soft); font-size: 17px; }
.rooms .touches { color: rgba(255, 255, 255, .86); font-size: 15px; }
.rooms .touches span { color: var(--amber); margin-right: 4px; }

/* modes */
.night-modes ul { margin-top: 32px; display: grid; grid-template-columns: 1fr 1fr; gap: 22px; }
.night-modes li { display: flex; gap: 20px; align-items: flex-start; background: var(--tile); border-radius: 12px; padding: 24px; border: 1px solid #222; }
.well { flex: none; display: grid; place-items: center; width: 64px; height: 64px; border-radius: 50%; background: var(--well); color: var(--amber);
  box-shadow: inset 0 2px 5px rgba(0, 0, 0, .85), 0 0 0 1px #2c3034, 0 0 26px rgba(192, 138, 64, .18); }
.sculpt { width: 32px; height: 32px; fill: none; stroke: currentColor; stroke-width: 1.7; stroke-linecap: round; stroke-linejoin: round; }
.night-modes h3 { font-size: 28px; }
.night-modes li p { margin-top: 8px; color: var(--soft); }
.night-modes li .small { margin-top: 10px; }

/* sound */
.sound ul { margin-top: 32px; display: grid; grid-template-columns: repeat(3, 1fr); gap: 28px; }
.sound .knob { --dp: 1px; width: 48px; height: 48px; color: #f4f6f7; margin-bottom: 14px; }
.sound h3 { font-size: 24px; }
.sound li p { margin-top: 8px; color: var(--soft); }

/* premium and privacy */
.trust { display: grid; grid-template-columns: 1fr 1fr; gap: 22px; }
.tile { background: var(--tile); border: 1px solid #222; border-radius: 12px; padding: 28px; }
.tile h2 { font-size: clamp(26px, 3vw, 34px); }
.tile ul { margin: 18px 0 20px; display: grid; gap: 12px; }
.tile li { display: flex; gap: 12px; color: rgba(255, 255, 255, .86); }
.tick { flex: none; width: 20px; height: 20px; margin-top: 2px; fill: none; stroke: var(--amber); stroke-width: 2.4; stroke-linecap: round; stroke-linejoin: round; }
.tile a { color: var(--soft); font-size: 15px; }
.tile a:hover { color: #fff; }

/* end */
.end { display: grid; grid-template-columns: 1.1fr 1fr; gap: clamp(24px, 4vw, 56px); align-items: center; }
.end img { width: 100%; border-radius: 16px; }
.end p { margin-top: 12px; color: var(--soft); }

.foot { max-width: 1240px; margin: clamp(64px, 9vw, 120px) auto 0; padding: 26px max(16px, 6vw) 40px; border-top: 1px solid var(--line);
  display: flex; flex-wrap: wrap; gap: 10px 24px; font-size: 14px; color: var(--faint); }
.foot a { color: var(--soft); text-decoration: none; }
.foot a:hover { color: #fff; text-decoration: underline; }

@media (max-width: 960px) {
  .rooms ul, .sound ul { grid-template-columns: 1fr; }
  .night-modes ul, .trust, .end { grid-template-columns: 1fr; }
  .rooms li { display: grid; }
}
@media (max-width: 560px) {
  body { font-size: 17px; }
  .cap .long { display: none; } .cap .short { display: inline; }
  .hour { object-position: 38% 60%; }
  .night-modes li { flex-direction: column; padding: 20px; }
  .tile { padding: 22px; }
  .copy { padding-bottom: 64px; }
  .js .hint { left: max(16px, 6vw); right: auto; bottom: 20px; }
  .deck { margin-left: -16px; margin-right: -16px; padding-left: 16px; padding-right: 16px; }
  .screen { min-width: 560px; }
  .label, .panel p { font-size: calc(14 * var(--dp)); }
  .item.small .label { font-size: calc(12 * var(--dp)); }
  .opt { font-size: calc(15 * var(--dp)); }
}
@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  .hour, .js .chapter, .screen .room img { transition: none; }
  .hint svg { animation: none; }
}
