/* Hemma website. Outfit (SIL Open Font License, see fonts/OFL.txt) is the app's own typeface. */
@font-face { font-family: Outfit; font-weight: 300; font-display: swap; src: url(fonts/Outfit-Light.ttf) format("truetype"); }
@font-face { font-family: Outfit; font-weight: 400; font-display: swap; src: url(fonts/Outfit-Regular.ttf) format("truetype"); }
@font-face { font-family: Outfit; font-weight: 500; font-display: swap; src: url(fonts/Outfit-Medium.ttf) format("truetype"); }
@font-face { font-family: Outfit; font-weight: 600; font-display: swap; src: url(fonts/Outfit-SemiBold.ttf) format("truetype"); }

:root {
  --bg: #120c09;
  --bg-2: #1b130e;
  --text: #fff;
  --text-2: rgba(255, 255, 255, .74);
  --text-3: rgba(255, 255, 255, .5);
  --gold: #F6C445;
  --on-gold: #2A1C0A;
  --glass: rgba(255, 236, 216, .10);
  --glass-strong: rgba(255, 236, 216, .16);
  --line: rgba(255, 255, 255, .14);
  --radius: 26px;
  --max: 1180px;
  color-scheme: dark;
}

* { box-sizing: border-box; }
html { scroll-behavior: smooth; -webkit-text-size-adjust: 100%; }
body {
  margin: 0; background: var(--bg); color: var(--text);
  font: 400 18px/1.55 Outfit, -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
  -webkit-font-smoothing: antialiased; overflow-x: hidden;
}
img { display: block; max-width: 100%; }
a { color: inherit; }
h1, h2, h3 { margin: 0; font-weight: 600; letter-spacing: -.02em; line-height: 1.05; }
p { margin: 0; }
.wrap { width: min(var(--max), 100% - 32px); margin-inline: auto; }
.gold { color: var(--gold); }
.eyebrow { display: inline-flex; align-items: center; gap: 10px; color: var(--gold); font-weight: 600; font-size: 14px;
  letter-spacing: .14em; text-transform: uppercase; }
.eyebrow::before { content: ""; width: 8px; height: 8px; border-radius: 4px; background: var(--gold); box-shadow: 0 0 12px var(--gold); }

/* Navigation */
.nav { position: fixed; inset: 12px 0 auto; z-index: 20; }
.nav .wrap { display: flex; align-items: center; gap: 18px; padding: 10px 12px 10px 14px; border-radius: 999px;
  background: rgba(30, 21, 15, .55); border: 1px solid var(--line);
  backdrop-filter: blur(24px) saturate(1.2); -webkit-backdrop-filter: blur(24px) saturate(1.2); }
.brand { display: flex; align-items: center; gap: 10px; font-weight: 600; font-size: 20px; text-decoration: none; }
.brand img { width: 32px; height: 32px; border-radius: 8px; }
.nav nav { display: flex; gap: 22px; margin-left: auto; font-size: 15px; }
.nav nav a { text-decoration: none; color: var(--text-2); }
.nav nav a:hover { color: var(--text); }

/* Buttons */
.btn { display: inline-flex; align-items: center; gap: 10px; padding: 14px 24px; border-radius: 999px; font: 600 16px Outfit, sans-serif;
  text-decoration: none; border: 0; cursor: pointer; transition: transform .2s, background .2s; }
.btn:hover { transform: translateY(-1px); }
.btn-gold { background: var(--gold); color: var(--on-gold); }
.btn-glass { background: var(--glass); color: var(--text); border: 1px solid var(--line); }
.btn svg { width: 20px; height: 20px; }
.nav .btn { padding: 10px 18px; font-size: 14px; }

/* Hero: the living room, its lamps going on and off */
.hero { position: relative; min-height: max(720px, 100svh); display: flex; align-items: center; overflow: hidden; }
.room { position: absolute; inset: 0; }
.room img { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; object-position: 30% 50%; transform: scaleX(-1); }
.room .layer { opacity: 0; transition: opacity 1.6s cubic-bezier(.4, 0, .2, 1); }
.room .layer.on { opacity: 1; }
.hero::after { content: ""; position: absolute; inset: 0; pointer-events: none;
  background: linear-gradient(90deg, rgba(18, 12, 9, .94) 0%, rgba(18, 12, 9, .6) 34%, rgba(18, 12, 9, 0) 56%),
              linear-gradient(0deg, var(--bg) 0%, rgba(18, 12, 9, 0) 22%); }
.hero .wrap { position: relative; z-index: 2; padding-top: 80px; }
.hero .copy { max-width: 600px; }
.hero h1 { font-size: clamp(44px, 6.4vw, 86px); margin: 18px 0 22px; }
.hero p.lead { font-size: clamp(18px, 1.6vw, 21px); color: var(--text-2); max-width: 520px; }
.hero .ctas { display: flex; flex-wrap: wrap; gap: 12px; margin-top: 32px; }
.hero .note { margin-top: 18px; font-size: 14px; color: var(--text-3); }

/* Glass widgets that switch the hero's lamps */
.controls { display: grid; grid-template-columns: 1fr 1fr; gap: 12px; margin-top: 36px; max-width: 560px; }
.widget { display: flex; align-items: center; gap: 14px; padding: 16px 18px; border-radius: var(--radius);
  background: var(--glass); border: 1px solid var(--line); backdrop-filter: blur(30px) saturate(1.2);
  -webkit-backdrop-filter: blur(30px) saturate(1.2); color: var(--text); font: 500 17px Outfit, sans-serif; text-align: left;
  cursor: pointer; width: 100%; transition: background .3s; }
.widget small { display: block; color: var(--text-2); font-weight: 400; font-size: 14px; }
.widget .dot { margin-left: auto; width: 46px; height: 46px; border-radius: 23px; display: grid; place-items: center;
  border: 2px solid rgba(255, 255, 255, .6); transition: background .3s, border-color .3s, box-shadow .3s; }
.widget .dot svg { width: 22px; height: 22px; stroke: #fff; transition: stroke .3s; }
.widget[aria-pressed="true"] .dot { background: var(--gold); border-color: var(--gold); box-shadow: 0 0 26px rgba(246, 196, 69, .55); }
.widget[aria-pressed="true"] .dot svg { stroke: var(--on-gold); }
.widget:focus-visible, .btn:focus-visible, .compare input:focus-visible + .handle { outline: 3px solid var(--gold); outline-offset: 3px; }
.controls .hint { grid-column: 1 / -1; font-size: 13px; color: var(--text-3); }

/* Sections */
section { padding: 120px 0; }
.section-head { max-width: 760px; margin-bottom: 56px; }
.section-head h2 { font-size: clamp(36px, 4.6vw, 60px); margin: 16px 0 18px; }
.section-head p { color: var(--text-2); font-size: 20px; }

/* How the AI backgrounds work */
.steps { display: grid; grid-template-columns: repeat(3, 1fr); gap: 22px; }
.step { border-radius: var(--radius); background: var(--bg-2); border: 1px solid var(--line); overflow: hidden; }
.step figure { margin: 0; aspect-ratio: 16 / 10; overflow: hidden; position: relative; }
.step figure img { width: 100%; height: 100%; object-fit: cover; object-position: 28% 50%; }
.step .tag { position: absolute; left: 14px; top: 14px; padding: 6px 12px; border-radius: 999px; font-size: 13px; font-weight: 500;
  background: rgba(18, 12, 9, .72); border: 1px solid var(--line); }
.step div.txt { padding: 22px 24px 26px; }
.step h3 { font-size: 22px; margin-bottom: 8px; }
.step p { color: var(--text-2); font-size: 16px; }
.step .num { color: var(--gold); font-weight: 600; font-size: 14px; letter-spacing: .1em; }
.step .playground { animation: draw 7s ease-in-out infinite; }
@keyframes draw { 0%, 18% { clip-path: inset(0 100% 0 0); } 55%, 100% { clip-path: inset(0 0 0 0); } }

/* Before and after */
.compare { position: relative; margin-top: 40px; border-radius: 32px; overflow: hidden; aspect-ratio: 2.4 / 1; border: 1px solid var(--line);
  --at: 30%; user-select: none; }
.compare img { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; }
.compare .after { clip-path: inset(0 0 0 var(--at)); }
.compare .bar { position: absolute; top: 0; bottom: 0; left: var(--at); width: 3px; margin-left: -1.5px; background: #fff; box-shadow: 0 0 20px rgba(0, 0, 0, .6); pointer-events: none; }
.compare .handle { position: absolute; top: 50%; left: var(--at); transform: translate(-50%, -50%); padding: 10px 16px; border-radius: 999px;
  background: rgba(18, 12, 9, .8); border: 2px solid #fff; font-size: 13px; font-weight: 600; letter-spacing: .1em; pointer-events: none; white-space: nowrap; }
.compare .handle b { color: var(--gold); font-weight: 600; }
.compare input { position: absolute; inset: 0; width: 100%; height: 100%; opacity: 0; cursor: ew-resize; margin: 0; }
.compare-caption { display: flex; justify-content: space-between; gap: 16px; margin-top: 14px; color: var(--text-3); font-size: 14px; }
.fine { margin-top: 34px; display: grid; grid-template-columns: repeat(3, 1fr); gap: 22px; }
.fine div { padding: 22px 24px; border-radius: var(--radius); background: var(--glass); border: 1px solid var(--line); }
.fine h3 { font-size: 18px; margin-bottom: 6px; }
.fine p { color: var(--text-2); font-size: 15px; }

/* The whole house, lighting up room by room */
.house { display: grid; grid-template-columns: repeat(5, 1fr); gap: 14px; }
.card { position: relative; border-radius: 22px; overflow: hidden; aspect-ratio: 1 / 1; border: 1px solid var(--line); background: #0b0806; }
.card img { width: 100%; height: 100%; object-fit: cover; filter: brightness(.32) saturate(.45) hue-rotate(-12deg); transition: filter 1.4s ease; }
.card.lit img { filter: none; }
.card span { position: absolute; left: 14px; bottom: 12px; font-weight: 500; font-size: 16px; text-shadow: 0 1px 8px rgba(0, 0, 0, .7); }
.card span::before { content: ""; display: inline-block; width: 8px; height: 8px; border-radius: 4px; margin-right: 8px; background: rgba(255, 255, 255, .4); transition: background .6s, box-shadow .6s; }
.card.lit span::before { background: var(--gold); box-shadow: 0 0 10px var(--gold); }

/* Features */
.features { display: grid; grid-template-columns: repeat(3, 1fr); gap: 22px; }
.feature { padding: 28px; border-radius: var(--radius); background: var(--bg-2); border: 1px solid var(--line); }
.feature .icon { width: 48px; height: 48px; border-radius: 14px; display: grid; place-items: center; background: rgba(246, 196, 69, .12); margin-bottom: 18px; }
.feature .icon svg { width: 24px; height: 24px; stroke: var(--gold); }
.feature h3 { font-size: 21px; margin-bottom: 8px; }
.feature p { color: var(--text-2); font-size: 16px; }

/* Screens */
.gallery { display: grid; grid-auto-flow: column; grid-auto-columns: min(760px, 86vw); gap: 26px; overflow-x: auto; scroll-snap-type: x mandatory;
  padding: 10px max(16px, (100vw - var(--max)) / 2) 30px; scrollbar-width: none; }
.gallery::-webkit-scrollbar { display: none; }
.ipad { scroll-snap-align: center; margin: 0; }
.ipad .frame { padding: 14px; border-radius: 40px; background: linear-gradient(160deg, #3a3a3c, #111113 45%); box-shadow: 0 30px 80px rgba(0, 0, 0, .55), inset 0 0 0 1px rgba(255, 255, 255, .1); }
.ipad img { border-radius: 26px; width: 100%; aspect-ratio: 2388 / 1668; object-fit: cover; }
.ipad figcaption { margin-top: 16px; color: var(--text-2); font-size: 16px; text-align: center; }

/* Privacy and the maker */
.split { display: grid; grid-template-columns: 1fr 1fr; gap: 22px; }
.panel { padding: 40px; border-radius: 32px; background: var(--bg-2); border: 1px solid var(--line); }
.panel h2 { font-size: clamp(30px, 3.4vw, 44px); margin: 14px 0 16px; }
.panel p { color: var(--text-2); }
.panel ul { list-style: none; padding: 0; margin: 22px 0 0; display: grid; gap: 12px; }
.panel li { display: flex; gap: 12px; align-items: flex-start; }
.panel li::before { content: ""; flex: none; width: 8px; height: 8px; border-radius: 4px; margin-top: 10px; background: var(--gold); }
.maker { background: radial-gradient(600px 300px at 80% 0%, rgba(246, 196, 69, .18), transparent 70%), var(--bg-2); }
.tips { display: flex; gap: 10px; flex-wrap: wrap; margin-top: 24px; }
.tips span { padding: 10px 16px; border-radius: 999px; background: var(--glass); border: 1px solid var(--line); font-size: 15px; }

/* Final call */
.final { text-align: center; }
.final img.icon { width: 120px; height: 120px; border-radius: 27px; margin: 0 auto 28px; box-shadow: 0 20px 60px rgba(246, 196, 69, .18); }
.final h2 { font-size: clamp(36px, 5vw, 64px); margin-bottom: 18px; }
.final p { color: var(--text-2); font-size: 20px; margin-bottom: 30px; }

footer { padding: 40px 0 60px; border-top: 1px solid var(--line); color: var(--text-3); font-size: 14px; }
footer .wrap { display: flex; flex-wrap: wrap; gap: 18px 28px; align-items: center; }
footer nav { display: flex; gap: 22px; margin-left: auto; }
footer a { text-decoration: none; color: var(--text-2); }
footer a:hover { color: var(--text); }

/* Plain pages: privacy and support */
.doc { padding: 150px 0 100px; }
.doc .wrap { max-width: 760px; }
.doc h1 { font-size: clamp(40px, 5vw, 60px); margin: 16px 0 14px; }
.doc .updated { color: var(--text-3); font-size: 15px; margin-bottom: 40px; }
.doc h2 { font-size: 26px; margin: 44px 0 12px; }
.doc p, .doc li { color: var(--text-2); }
.doc p + p { margin-top: 14px; }
.doc ul { padding-left: 22px; margin: 12px 0 0; }
.doc li + li { margin-top: 8px; }
.doc a { color: var(--gold); }
.faq details { border-bottom: 1px solid var(--line); padding: 18px 0; }
.faq summary { cursor: pointer; font-weight: 500; font-size: 19px; list-style: none; display: flex; justify-content: space-between; gap: 16px; }
.faq summary::after { content: "+"; color: var(--gold); font-size: 24px; line-height: 1; }
.faq details[open] summary::after { content: "–"; }
.faq details p { margin-top: 12px; }
.contact { margin-top: 30px; padding: 28px; border-radius: var(--radius); background: var(--bg-2); border: 1px solid var(--line); }

/* Smaller screens */
@media (max-width: 980px) {
  .steps, .features, .fine { grid-template-columns: 1fr 1fr; }
  .house { grid-template-columns: repeat(3, 1fr); }
  .split { grid-template-columns: 1fr; }
  .nav nav { display: none; }
  .nav .btn { margin-left: auto; }
}
@media (max-width: 640px) {
  body { font-size: 17px; }
  section { padding: 84px 0; }
  .hero { align-items: flex-end; padding-bottom: 40px; }
  .hero::after { background: linear-gradient(0deg, var(--bg) 0%, rgba(18, 12, 9, .86) 48%, rgba(18, 12, 9, .1) 100%); }
  .room img { object-position: 40% 30%; }
  .steps, .features, .fine { grid-template-columns: 1fr; }
  .house { grid-template-columns: repeat(2, 1fr); }
  .compare { aspect-ratio: 4 / 3; }
  .compare img { object-position: 30% 50%; }
  .panel { padding: 28px; }
  footer nav { margin-left: 0; }
}
@media (prefers-reduced-motion: reduce) {
  * { transition-duration: .01ms !important; animation: none !important; scroll-behavior: auto !important; }
}
