@import url("https://fonts.googleapis.com/css2?family=Fraunces:opsz,wght@9..144,500;9..144,600&family=Instrument+Sans:wght@400;500;600&display=swap");
/*
 * Desk Light -- the public site.
 *
 * The palette is the product: amber is the light itself, set against the cool
 * blue of an unlit room, so the page carries the same warm-against-dark idea
 * that the thing on the wall does.
 *
 * The page says what the product does for you and stops there. How it works is
 * not marketing material.
 */
:root {
  --night: #0a0d14;      /* an unlit room */
  --night-2: #101725;    /* one shade up, for panels */
  --edge: #222c40;
  --text: #eef1f6;
  --muted: #94a0b5;
  --lamp: #ffc75a;       /* the lit lamp */
  --lamp-warm: #ff9f45;  /* the deeper end of the same glow */
  --good: #58e08e;

  --measure: 62ch;
  --safe-top: env(safe-area-inset-top, 0px);
}

* { box-sizing: border-box; }
html { scroll-behavior: smooth; }

body {
  margin: 0;
  background: var(--night);
  color: var(--text);
  font-family: "Instrument Sans", -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, system-ui, sans-serif;
  font-size: 17px;
  line-height: 1.6;
  -webkit-font-smoothing: antialiased;
  overflow-x: hidden;
}

h1, h2, h3 {
  font-family: Fraunces, Georgia, "Times New Roman", serif;
  font-weight: 600;
  letter-spacing: -.015em;
  text-wrap: balance;
  margin: 0;
}

a { color: var(--lamp); }
:focus-visible { outline: 2px solid var(--lamp); outline-offset: 3px; border-radius: 4px; }

.wrap { max-width: 1120px; margin: 0 auto; padding: 0 24px; }
.narrow { max-width: 720px; margin: 0 auto; }

/* ---------------- header ---------------- */

.site-head {
  position: sticky; top: 0; z-index: 40;
  padding-top: var(--safe-top);
  background: rgba(10, 13, 20, .82);
  backdrop-filter: blur(12px) saturate(140%);
  border-bottom: 1px solid transparent;
  transition: border-color .3s ease;
}
.site-head.stuck { border-bottom-color: var(--edge); }
.site-head__in { display: flex; align-items: center; justify-content: space-between; gap: 18px; min-height: 66px; }

.logo { display: flex; align-items: center; gap: 10px; color: var(--text); text-decoration: none; font-weight: 600; font-size: 17px; }
.logo svg { width: 22px; height: 22px; fill: none; stroke: var(--lamp); stroke-width: 1.5; stroke-linecap: round; stroke-linejoin: round; }

.btn {
  display: inline-block; font: inherit; font-size: 15px; font-weight: 600;
  padding: 11px 20px; border-radius: 11px; cursor: pointer;
  text-decoration: none; border: 1px solid var(--edge); background: transparent; color: var(--text);
  transition: transform .12s ease, box-shadow .25s ease;
}
.btn--lamp {
  background: linear-gradient(180deg, var(--lamp), var(--lamp-warm));
  color: #1a1307; border-color: transparent;
  box-shadow: 0 6px 26px rgba(255, 159, 69, .22);
}
.btn--lamp:hover { box-shadow: 0 8px 34px rgba(255, 159, 69, .34); }
.btn:active { transform: translateY(1px); }
.btn--big { font-size: 16px; padding: 14px 26px; }

/* ---------------- hero ---------------- */

.hero { position: relative; padding: 64px 0 88px; overflow: hidden; }
.hero::before {
  content: ""; position: absolute; top: -12%; left: 50%; transform: translateX(-50%);
  width: min(900px, 120vw); aspect-ratio: 1; border-radius: 50%;
  background: radial-gradient(circle, rgba(255, 159, 69, .15), transparent 62%);
  pointer-events: none;
}
.hero__grid { position: relative; display: grid; grid-template-columns: 1fr 1fr; gap: 48px; align-items: center; }

.eyebrow {
  display: inline-flex; align-items: center; gap: 8px;
  font-size: 12.5px; font-weight: 600; letter-spacing: .1em; text-transform: uppercase;
  color: var(--lamp); background: rgba(255, 199, 90, .09);
  border: 1px solid rgba(255, 199, 90, .22); border-radius: 999px; padding: 6px 14px;
  margin-bottom: 22px;
}
.eyebrow .dot { width: 6px; height: 6px; border-radius: 50%; background: var(--good); box-shadow: 0 0 8px var(--good); }

.hero h1 { font-size: clamp(38px, 6vw, 62px); line-height: 1.04; margin-bottom: 20px; }
.hero h1 em { font-style: normal; color: var(--lamp); }
.hero__lede { font-size: 19px; color: var(--muted); max-width: 42ch; margin: 0 0 32px; }
.hero__cta { display: flex; gap: 12px; flex-wrap: wrap; }

.hero__points { display: flex; gap: 24px; margin-top: 34px; flex-wrap: wrap; font-size: 14.5px; color: var(--muted); }
.hero__points div { display: flex; align-items: center; gap: 8px; }
.hero__points svg { width: 17px; height: 17px; flex: none; fill: none; stroke: var(--good); stroke-width: 2; stroke-linecap: round; stroke-linejoin: round; }

/* ================= the demonstration =================
 *
 * One 14s timeline drives the house and the phone together, so each room lights
 * because that switch was tapped -- not merely at the same time as it.
 */

/* House and phone sit side by side rather than stacked. Overlapping them looked
   better in a mockup and then covered the garage at real column widths. */
.demo {
  position: relative; display: flex; align-items: center; justify-content: center;
  gap: 16px; min-height: 440px;
}

.house {
  position: relative; flex: 1 1 300px; min-width: 0; max-width: 360px;
  border: 1px solid var(--edge); border-radius: 22px;
  background: linear-gradient(180deg, var(--night-2), #0b1018);
  padding: 20px; overflow: hidden;
}
.house svg { display: block; width: 100%; height: auto; }

/* Each room's warm wash, and the fitting that casts it. */
.room-glow { opacity: 0; }
.room-label { fill: #4a5670; transition: none; }

#lounge-glow  { animation: loungeLit  14s linear infinite; }
#kitchen-glow { animation: kitchenLit 14s linear infinite; }
#garage-glow  { animation: garageLit  14s linear infinite; }

#lounge-bulb  { animation: loungeBulb  14s linear infinite; }
#kitchen-bulb { animation: kitchenBulb 14s linear infinite; }
#garage-bulb  { animation: garageBulb  14s linear infinite; }

#lounge-label  { animation: loungeLabel  14s linear infinite; }
#kitchen-label { animation: kitchenLabel 14s linear infinite; }
#garage-label  { animation: garageLabel  14s linear infinite; }

/* Lounge: on at 12%, off at 66%. */
@keyframes loungeLit   { 0%,11% { opacity: 0 } 13%,65% { opacity: .28 } 67%,100% { opacity: 0 } }
@keyframes loungeBulb  { 0%,11% { fill: #1b2436 } 13%,65% { fill: #ffca66 } 67%,100% { fill: #1b2436 } }
@keyframes loungeLabel { 0%,11% { fill: #4a5670 } 13%,65% { fill: #ffca66 } 67%,100% { fill: #4a5670 } }

/* Kitchen: on at 30%, off at 80%. Overlaps the lounge on purpose -- more than
   one room is lit at once, which is what a house actually looks like. */
@keyframes kitchenLit   { 0%,29% { opacity: 0 } 31%,79% { opacity: .28 } 81%,100% { opacity: 0 } }
@keyframes kitchenBulb  { 0%,29% { fill: #1b2436 } 31%,79% { fill: #ffca66 } 81%,100% { fill: #1b2436 } }
@keyframes kitchenLabel { 0%,29% { fill: #4a5670 } 31%,79% { fill: #ffca66 } 81%,100% { fill: #4a5670 } }

/* Garage: on at 48%, off at 92%. */
@keyframes garageLit   { 0%,47% { opacity: 0 } 49%,91% { opacity: .28 } 93%,100% { opacity: 0 } }
@keyframes garageBulb  { 0%,47% { fill: #1b2436 } 49%,91% { fill: #ffca66 } 93%,100% { fill: #1b2436 } }
@keyframes garageLabel { 0%,47% { fill: #4a5670 } 49%,91% { fill: #ffca66 } 93%,100% { fill: #4a5670 } }

/* ---------------- the phone ---------------- */

.phone {
  position: relative; flex: 0 0 178px; width: 178px;
  border-radius: 34px; padding: 7px;
  background: linear-gradient(160deg, #2a3446, #141a26);
  box-shadow: 0 30px 70px rgba(0, 0, 0, .6), 0 0 0 1px rgba(255, 255, 255, .05);
}
/* The side button, so the shape reads as a handset rather than a card. */
.phone::after {
  content: ""; position: absolute; right: -2px; top: 92px; width: 3px; height: 40px;
  border-radius: 2px; background: #2f3a4e;
}
.phone__screen { background: #0b0f17; border-radius: 28px; overflow: hidden; padding: 0 0 10px; }

.phone__status {
  display: flex; align-items: center; justify-content: space-between;
  padding: 9px 16px 4px; font-size: 9px; color: #7b879d; font-weight: 600;
}
.phone__status .bars { display: flex; gap: 2px; align-items: flex-end; }
.phone__status .bars i { display: block; width: 2px; background: #7b879d; border-radius: 1px; }
.phone__status .bars i:nth-child(1) { height: 3px }
.phone__status .bars i:nth-child(2) { height: 5px }
.phone__status .bars i:nth-child(3) { height: 7px }
.phone__batt { width: 15px; height: 7px; border: 1px solid #7b879d; border-radius: 2px; position: relative; }
.phone__batt::after { content: ""; position: absolute; inset: 1px; right: 4px; background: #7b879d; border-radius: 1px; }

/* The notch sits over the status row, the way it does on a real screen. */
.phone__notch {
  position: absolute; top: 7px; left: 50%; transform: translateX(-50%);
  width: 68px; height: 17px; background: #0b0f17; border-radius: 0 0 11px 11px; z-index: 2;
}

.phone__app { padding: 8px 12px 0; }
.phone__title { font-size: 12px; font-weight: 650; margin-bottom: 9px; }

.sw-row {
  display: flex; align-items: center; justify-content: space-between; gap: 8px;
  padding: 9px 10px; border-radius: 11px; margin-bottom: 6px;
  background: #121a27; position: relative;
}
.sw-row span { font-size: 10.5px; color: #c3ccdb; }

.sw { width: 32px; height: 19px; border-radius: 99px; background: #28324a; position: relative; flex: none; }
.sw i {
  position: absolute; top: 2px; left: 2px; width: 15px; height: 15px;
  border-radius: 50%; background: #6d7a92; display: block;
}

#sw-lounge  { animation: swLoungeTrack  14s linear infinite; }
#sw-kitchen { animation: swKitchenTrack 14s linear infinite; }
#sw-garage  { animation: swGarageTrack  14s linear infinite; }
#sw-lounge i  { animation: swLoungeKnob  14s linear infinite; }
#sw-kitchen i { animation: swKitchenKnob 14s linear infinite; }
#sw-garage i  { animation: swGarageKnob  14s linear infinite; }

@keyframes swLoungeTrack  { 0%,11% { background: #28324a } 13%,65% { background: #ffab4d } 67%,100% { background: #28324a } }
@keyframes swKitchenTrack { 0%,29% { background: #28324a } 31%,79% { background: #ffab4d } 81%,100% { background: #28324a } }
@keyframes swGarageTrack  { 0%,47% { background: #28324a } 49%,91% { background: #ffab4d } 93%,100% { background: #28324a } }

@keyframes swLoungeKnob  { 0%,11% { transform: none; background: #6d7a92 } 13%,65% { transform: translateX(13px); background: #2a1f08 } 67%,100% { transform: none; background: #6d7a92 } }
@keyframes swKitchenKnob { 0%,29% { transform: none; background: #6d7a92 } 31%,79% { transform: translateX(13px); background: #2a1f08 } 81%,100% { transform: none; background: #6d7a92 } }
@keyframes swGarageKnob  { 0%,47% { transform: none; background: #6d7a92 } 49%,91% { transform: translateX(13px); background: #2a1f08 } 93%,100% { transform: none; background: #6d7a92 } }

/* A finger landing on the row that is about to change. */
.tap {
  position: absolute; right: 14px; top: 50%; width: 30px; height: 30px;
  margin-top: -15px; border-radius: 50%; border: 2px solid rgba(255, 255, 255, .8);
  opacity: 0; pointer-events: none;
}
#tap-lounge  { animation: tapLounge  14s linear infinite; }
#tap-kitchen { animation: tapKitchen 14s linear infinite; }
#tap-garage  { animation: tapGarage  14s linear infinite; }

/* Each row is tapped twice: once on, once off. */
@keyframes tapLounge {
  0%,8% { opacity: 0; transform: scale(.4) }
  10% { opacity: .9; transform: scale(.8) }
  13% { opacity: 0; transform: scale(1.6) }
  62% { opacity: 0; transform: scale(.4) }
  64% { opacity: .9; transform: scale(.8) }
  67%,100% { opacity: 0; transform: scale(1.6) }
}
@keyframes tapKitchen {
  0%,26% { opacity: 0; transform: scale(.4) }
  28% { opacity: .9; transform: scale(.8) }
  31% { opacity: 0; transform: scale(1.6) }
  76% { opacity: 0; transform: scale(.4) }
  78% { opacity: .9; transform: scale(.8) }
  81%,100% { opacity: 0; transform: scale(1.6) }
}
@keyframes tapGarage {
  0%,44% { opacity: 0; transform: scale(.4) }
  46% { opacity: .9; transform: scale(.8) }
  49% { opacity: 0; transform: scale(1.6) }
  88% { opacity: 0; transform: scale(.4) }
  90% { opacity: .9; transform: scale(.8) }
  93%,100% { opacity: 0; transform: scale(1.6) }
}

.phone__home { width: 62px; height: 3px; border-radius: 99px; background: #2c3648; margin: 10px auto 0; }

/* ---------------- sections ---------------- */

section { padding: 84px 0; }
.band { background: linear-gradient(180deg, transparent, var(--night-2) 18%, var(--night-2) 82%, transparent); }

.section-head { margin-bottom: 40px; text-align: center; }
.section-head h2 { font-size: clamp(27px, 4vw, 38px); line-height: 1.12; margin-bottom: 14px; }
.section-head p { color: var(--muted); font-size: 17.5px; max-width: var(--measure); margin: 0 auto; }

.values { display: grid; grid-template-columns: repeat(auto-fit, minmax(230px, 1fr)); gap: 18px; }
.value {
  border: 1px solid var(--edge); border-radius: 16px; padding: 26px 24px;
  background: rgba(255, 255, 255, .012); text-align: center;
}
.value svg { width: 26px; height: 26px; fill: none; stroke: var(--lamp); stroke-width: 1.5; stroke-linecap: round; stroke-linejoin: round; margin-bottom: 14px; }
.value h3 { font-size: 17.5px; margin-bottom: 7px; }
.value p { color: var(--muted); font-size: 15px; margin: 0; }

/* ---------------- what you can do ---------------- */

.checks {
  list-style: none; margin: 0 auto; padding: 0; max-width: 840px;
  display: grid; grid-template-columns: repeat(auto-fit, minmax(260px, 1fr)); gap: 15px 30px;
}
.checks li { position: relative; padding-left: 30px; color: var(--muted); font-size: 16.5px; }
.checks li::before {
  content: ""; position: absolute; left: 5px; top: .35em;
  width: 6px; height: 11px; border: solid var(--good); border-width: 0 2px 2px 0;
  transform: rotate(45deg);
}

/* ---------------- getting set up ---------------- */

.steps {
  list-style: none; margin: 0; padding: 0;
  display: grid; grid-template-columns: repeat(auto-fit, minmax(240px, 1fr)); gap: 18px;
}
.steps li {
  border: 1px solid var(--edge); border-radius: 16px; padding: 26px 24px;
  background: rgba(255, 255, 255, .012);
}
.steps__n {
  display: inline-flex; align-items: center; justify-content: center;
  width: 30px; height: 30px; border-radius: 50%; margin-bottom: 14px;
  background: rgba(255, 199, 90, .1); border: 1px solid rgba(255, 199, 90, .3);
  color: var(--lamp); font-size: 14px; font-weight: 700;
}
.steps h3 { font-size: 17.5px; margin-bottom: 7px; }
.steps p { color: var(--muted); font-size: 15px; margin: 0; }

/* ---------------- questions ---------------- */

.faq { display: grid; grid-template-columns: repeat(auto-fit, minmax(290px, 1fr)); gap: 26px 40px; }
.faq__q h3 { font-size: 17px; margin-bottom: 8px; }
.faq__q p { color: var(--muted); font-size: 15.5px; margin: 0; }

/* ---------------- contact ---------------- */

.contact-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 52px; align-items: start; }

.form-row { display: grid; grid-template-columns: 1fr 1fr; gap: 16px; }
.f { margin-bottom: 18px; }
.f label { display: block; font-size: 13.5px; font-weight: 600; margin-bottom: 7px; }
.f .opt { font-weight: 400; color: var(--muted); }
.f input, .f textarea {
  width: 100%; padding: 13px 15px; border-radius: 12px;
  border: 1px solid var(--edge); background: rgba(255, 255, 255, .02); color: var(--text);
  font: inherit; font-size: 16px;
}
.f textarea { min-height: 128px; resize: vertical; }
.f input:focus, .f textarea:focus { outline: 2px solid var(--lamp); outline-offset: 1px; border-color: transparent; }

/* Off-screen rather than display:none -- some bots skip hidden fields, almost
   none skip one that is merely positioned away. */
.hp { position: absolute; left: -9999px; width: 1px; height: 1px; overflow: hidden; }

.form-msg { margin-top: 16px; font-size: 15px; min-height: 24px; }
.form-msg[data-tone="ok"] { color: var(--good); }
.form-msg[data-tone="bad"] { color: #ff8b8b; }

/* ---------------- footer ---------------- */

.site-foot { border-top: 1px solid var(--edge); padding: 32px 0; color: var(--muted); font-size: 14px; text-align: center; }

/* ---------------- reveal ---------------- */

/* Scoped to a class the reveal script sets on itself. If that script never runs
   -- an error above it, scripting switched off -- nothing is ever hidden, and
   the page is merely static rather than blank. */
.js-reveal .reveal { opacity: 0; transform: translateY(18px); transition: opacity .7s ease, transform .7s ease; }
.js-reveal .reveal.in { opacity: 1; transform: none; }

/* ---------------- responsive ---------------- */

@media (max-width: 920px) {
  .hero__grid, .contact-grid { grid-template-columns: 1fr; gap: 44px; }
  .hero { padding: 44px 0 60px; }
  .demo { min-height: 400px; }
  .house { max-width: 420px; }
  .phone { flex-basis: 190px; width: 190px; }
  section { padding: 62px 0; }
}

@media (max-width: 520px) {
  .form-row { grid-template-columns: 1fr; }
  body { font-size: 16.5px; }
  .demo { gap: 10px; }
  .phone { flex-basis: 142px; width: 142px; }
}

/* Motion is decoration here: the page says the same thing without it, and the
   demonstration settles on a lit house rather than a dark one. */
@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  *, *::before, *::after { animation: none !important; transition: none !important; }
  .reveal { opacity: 1; transform: none; }
  .room-glow { opacity: .28; }
  .room-bulb { fill: #ffca66 !important; }
  .room-label { fill: #ffca66 !important; }
  .sw { background: #ffab4d !important; }
  .sw i { transform: translateX(13px) !important; background: #2a1f08 !important; }
}
