@font-face {
  font-family: Manrope;
  src: url("/assets/manrope.ttf") format("truetype");
  font-weight: 400;
  font-display: swap;
}
@font-face {
  font-family: Manrope;
  src: url("/assets/manrope-500.ttf") format("truetype");
  font-weight: 500;
  font-display: swap;
}
@font-face {
  font-family: Manrope;
  src: url("/assets/manrope-600.ttf") format("truetype");
  font-weight: 600;
  font-display: swap;
}
@font-face {
  font-family: Manrope;
  src: url("/assets/manrope-700.ttf") format("truetype");
  font-weight: 700;
  font-display: swap;
}
.ph { font-family: system-ui, sans-serif; font-style: normal; }
.ph-arrow-down::before { content: "↓"; }
.ph-arrow-right::before { content: "→"; }
.ph-check::before { content: "✓"; }
.ph-check-circle::before { content: "✓"; }
.ph-plus::before { content: "+"; }
.ph-file::before { content: "▤"; }
.ph-floppy-disk::before { content: "▣"; }
.nav { max-width: 850px; }
.hero .clock-line, .hero .hint, .hero .scroll-cue { color: #aea595; }
.hero .copy { max-width: min(44vw, 565px); }
.hero .sub { max-width: 39ch; }
.hero .lamp-stage {
  width: min(48vw, 73svh, 760px);
  height: auto;
  aspect-ratio: 1440 / 1515;
  position: absolute;
  inset: 52% max(2.5%, calc((100% - 1440px) / 2)) auto auto;
  transform: translateY(-50%);
  isolation: isolate;
}
.hero .lamp-stage .plan { background-position: center; background-size: contain; background-repeat: no-repeat; }
@media (min-width: 768px) {
  .hero .plan.dim { background-image: url("/assets/plan-light.webp?v=3"); }
  .hero .plan.lit { background-image: url("/assets/plan-lamp.webp?v=3"); }
}
.hero .plan.dim { opacity: .46; }
.hero .halo { z-index: -1; }
.entry[id] { scroll-margin-top: 24px; }
.entry:target { opacity: 1; }
.standalone { background: var(--day); color: var(--ink); min-height: 100svh; display: flex; flex-direction: column; }
.standalone main { flex: 1; }
.sub-header {
  display: flex; justify-content: space-between; align-items: center;
  min-height: 80px; border-bottom: 1px solid var(--line);
}
.sub-header nav { display: flex; align-items: center; gap: clamp(12px, 2.5vw, 36px); }
.sub-header nav a { color: var(--ink-2); text-decoration: none; padding: 12px 0; }
.sub-header nav a:hover, .standalone main a:hover { text-decoration: underline; }
.standalone .section { padding: clamp(48px, 8vw, 130px) 0; }
.standalone .footer { border-top: 1px solid var(--line); }
.download {
  display: grid; grid-template-columns: 1.45fr 1fr;
  gap: clamp(40px, 9vw, 150px);
  align-items: start;
  padding-block: clamp(56px, 10vw, 150px);
}
.download-copy, .download-action { display: grid; justify-items: start; gap: 22px; }
.download-copy > .title-2 { color: var(--ink-2); max-width: 44ch; }
.download-action { margin-top: 10px; gap: 14px; }
.download .btn { white-space: normal; text-align: center; }
.install-steps { list-style: decimal; padding-left: 1.35em; margin: 20px 0; }
.install-steps li { padding-left: .25em; margin: 12px 0; }
.download-spec { border-top: 2px solid var(--ink); padding-top: 20px; }
.download-spec dt { color: var(--ink-2); }
.download-spec dl { margin: 20px 0; }
.download-spec dl > div {
  display: grid; grid-template-columns: minmax(115px,.85fr) 1fr; gap: 12px;
  padding: 14px 0; border-bottom: 1px solid var(--line);
}
.download-spec dd { margin: 0; }
.download-spec p + p { margin-top: 12px; }
@media (min-width: 768px) and (max-width: 1000px) {
  .hero h1 { font-size: 48px; line-height: 1; }
}
@media (max-width: 767px) {
  .hero .copy { max-width: none; }
  .hero .sub { order: 3; align-self: stretch; max-width: none; margin-bottom: 24px; }
  .hero .actions { margin-bottom: 0; }
  .entry[id] { scroll-margin-top: 72px; }
  .standalone .sub-header { min-height: 64px; font-size: 14px; }
  .download { grid-template-columns: 1fr; gap: 48px; }
  .download h1 { font-size: clamp(40px, 11vw, 58px); line-height: 1.04; }
}
@media (max-width: 767px), (pointer: coarse) and (max-height: 500px) {
  .hero .lamp-stage { display: none; }
  .panel-shot::before { content: none; background-image: none; }
}
@media (min-width: 768px) and (pointer: coarse) and (max-height: 500px) {
  .hero .copy { max-width: 650px; }
  .hero .scroll-cue { display: none; }
}

#email-demo { margin: 1.25rem 0; }
#email-demo [hidden] { display: none !important; }
#email-demo label { display: grid; gap: .35rem; margin: .8rem 0; }
#email-demo input { box-sizing: border-box; width: 100%; max-width: 32rem; min-height: 44px; color: #171717; background: white; border: 1px solid #85817a; border-radius: .5rem; padding: .6rem .75rem; font: inherit; }
#email-demo label.consent { display: flex; align-items: flex-start; gap: .6rem; max-width: 32rem; cursor: pointer; }
#email-demo label.consent input { width: 1.15rem; height: 1.15rem; min-height: 0; margin: .15rem 0 0; padding: 0; flex: none; accent-color: #171717; cursor: pointer; }
#email-demo [data-back] { display: block; background: none; border: 0; padding: .3rem 0; color: inherit; text-decoration: underline; font: inherit; cursor: pointer; }
#email-demo .btn { margin-top: .8rem; cursor: pointer; }
#email-demo [role=status]:empty { display: none; }

/* ---------- documents: privacy, terms, consent, 404 ---------- */
.doc { max-width: 760px; padding-block: var(--sp-600) var(--sp-900); display: grid; grid-template-columns: minmax(0, 1fr); gap: var(--sp-200); align-content: start; overflow-wrap: anywhere; }
.doc h1 { margin: 0; }
.doc h2 { margin: var(--sp-300) 0 0; }
.doc p, .doc ul { margin: 0; color: var(--ink-2); }
.doc ul { padding-left: 20px; display: grid; gap: var(--sp-75); list-style: disc; }
.doc b, .doc strong { color: var(--ink); font-weight: 600; }
.doc a:not(.btn) { color: var(--ink); text-underline-offset: 0.2em; }
.doc .draft { border: 1px dashed var(--red); color: var(--red); border-radius: 12px; padding: var(--sp-100) var(--sp-200); }
.btn-ghost { border-color: var(--line-strong); background: transparent; color: var(--ink); }
.btn-ghost:hover { background: var(--day-2); }

/* Night lamp: a soft warm light follows the cursor while the home page is dark (night.js) */
.night-lamp { position: fixed; left: 0; top: 0; width: 640px; height: 640px; margin: -320px 0 0 -320px; border-radius: 50%; background: radial-gradient(circle, rgba(233, 184, 114, 0.17), rgba(233, 184, 114, 0.06) 38%, transparent 68%); pointer-events: none; z-index: -1; opacity: 0; transition: opacity .6s ease; will-change: transform, opacity; }
.night-lamp.on { opacity: 1; }
.day .night-lamp { opacity: 0; }
