@font-face { font-family: "Dela Gothic One"; src: url("/assets/fonts/dela-gothic-one.woff2") format("woff2"); font-weight: 400 900; font-display: swap; }
@font-face { font-family: "Open Sauce Sans"; src: url("/assets/fonts/open-sauce-sans-400.woff") format("woff"); font-weight: 400; font-display: swap; }
@font-face { font-family: "Open Sauce Sans"; src: url("/assets/fonts/open-sauce-sans-500.woff2") format("woff2"); font-weight: 500; font-display: swap; }
@font-face { font-family: "Open Sauce Sans"; src: url("/assets/fonts/open-sauce-sans-600.woff2") format("woff2"); font-weight: 600; font-display: swap; }
@font-face { font-family: "Open Sauce Sans"; src: url("/assets/fonts/open-sauce-sans-700.woff2") format("woff2"); font-weight: 700 900; font-display: swap; }
/* Clean House — "a day in a tidy house".
   The page colour follows the day: body[data-tone] is set by whichever section is in view,
   and every colour eases over 0.9s, the same trick CrushPaper uses. */
:root {
  --display: "Dela Gothic One", "Open Sauce Sans", system-ui, sans-serif;
  --body: "Open Sauce Sans", -apple-system, BlinkMacSystemFont, system-ui, sans-serif;
  --sub: "Open Sauce Sans", system-ui, sans-serif;
  --honey: #FFC94D;
  --honey-2: #F2A93B;
  --ease: cubic-bezier(.2, .7, .2, 1);
  --spring: cubic-bezier(.3, .7, .4, 1.4);
  --wrap: 1480px;
}
body[data-tone="morning"]   { --bg: #CDEAF8; --soft: #3E8DBA; --muted: #4E6A7E; --line: rgba(15,36,51,.12); --card: rgba(255,255,255,.62); --accent: #2F8FC2; }
body[data-tone="noon"]      { --bg: #F5FAFD; --soft: #6A93AD; --muted: #5A7184; --line: rgba(15,36,51,.10); --card: #FFFFFF;             --accent: #2F8FC2; }
body[data-tone="afternoon"] { --bg: #FFF3DC; --soft: #C2822F; --muted: #76664F; --line: rgba(42,30,16,.12); --card: rgba(255,255,255,.7); --accent: #C2822F; }
body[data-tone="evening"]   { --bg: #DDF1F5; --soft: #2A93A8; --muted: #4F6E78; --line: rgba(15,36,51,.11); --card: rgba(255,255,255,.7); --accent: #1F8AA0; }
body[data-tone="night"]     { --bg: #EEF6FC; --soft: #5F8FB5; --muted: #5A7184; --line: rgba(15,36,51,.10); --card: #FFFFFF;             --accent: #2F8FC2; }
body[data-tone="midnight"]  { --bg: #BFE3F6; --soft: #2C7EAE; --muted: #45657A; --line: rgba(15,36,51,.12); --card: rgba(255,255,255,.6); --accent: #2C7EAE; }
:root { --ink: #0F2433; }

* { box-sizing: border-box; margin: 0; padding: 0; }
[hidden] { display: none !important; }
html { scroll-behavior: smooth; scroll-padding-top: 80px; }
body {
  background: var(--bg); color: var(--ink);
  font: 400 17px/1.55 var(--body);
  -webkit-font-smoothing: antialiased; -moz-osx-font-smoothing: grayscale;
  overflow-x: hidden;
  transition: background-color .9s ease, color .9s ease;
}
a { color: inherit; text-decoration: none; }
img { display: block; max-width: 100%; height: auto; }
.wrap { max-width: var(--wrap); margin: 0 auto; padding: 0 clamp(28px, 4vw, 64px); }
.sr { position: absolute; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); }
.skip { position: absolute; left: -999px; top: 8px; z-index: 100; background: #000; color: #fff; padding: 8px 14px; border-radius: 10px; }
.skip:focus { left: 12px; }
:focus-visible { outline: 2px solid var(--accent); outline-offset: 3px; border-radius: 8px; }

.grain {
  position: fixed; inset: 0; z-index: 50; pointer-events: none; opacity: .045; mix-blend-mode: multiply;
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='180' height='180'%3E%3Cfilter id='n'%3E%3CfeTurbulence type='fractalNoise' baseFrequency='.9' numOctaves='3' stitchTiles='stitch'/%3E%3C/filter%3E%3Crect width='100%25' height='100%25' filter='url(%23n)'/%3E%3C/svg%3E");
}

/* Type */
h1, h2 { font-family: var(--display); font-weight: 400; }
.brand { font-family: var(--sub); font-weight: 700; }
h3 { font-family: var(--display); }
h1 { font-size: clamp(42px, 6.2vw, 78px); line-height: 1.06; letter-spacing: -0.01em; }
h2 { font-size: clamp(32px, 4.4vw, 56px); line-height: 1.1; letter-spacing: -0.005em; }
h3 { font-size: 21px; font-weight: 400; line-height: 1.2; letter-spacing: 0; }
.soft { color: var(--soft); transition: color .9s ease; }
.eyebrow { font: 600 13px var(--body); letter-spacing: .08em; text-transform: uppercase; color: var(--muted); margin-bottom: 22px; }
.lede { font-size: clamp(18px, 1.5vw, 20px); color: var(--muted); max-width: 30em; margin-top: 26px; transition: color .9s; }
.sub { font-size: 19px; color: var(--muted); max-width: 32em; margin-top: 20px; transition: color .9s; }
.fine { font-size: 14px; color: var(--muted); margin-top: 28px; }
.mark { position: relative; white-space: nowrap; }
.mark::after { content: ""; position: absolute; left: -2%; right: -2%; bottom: .06em; height: .32em; z-index: -1; border-radius: 6px; background: var(--honey); opacity: .55; transform: scaleX(0); transform-origin: left; transition: transform 1s var(--ease) .3s; }
.reveal.in .mark::after, .in .mark::after { transform: scaleX(1); }

/* Nav */
.nav {
  position: sticky; top: 12px; z-index: 40;
  display: flex; align-items: center; justify-content: space-between;
  max-width: calc(var(--wrap) - 2 * clamp(28px, 4vw, 64px) + 32px); margin: 12px auto 0; padding: 8px 8px 8px 16px; border-radius: 999px;
  background: color-mix(in srgb, var(--bg) 72%, transparent);
  backdrop-filter: blur(20px) saturate(1.6); -webkit-backdrop-filter: blur(20px) saturate(1.6);
  border: 1px solid var(--line);
  transition: background-color .9s ease, border-color .9s ease;
}
.brand { display: inline-flex; align-items: center; gap: 10px; font-weight: 800; font-size: 17px; letter-spacing: -0.01em; }
.brand img { width: 28px; height: 28px; border-radius: 7px; }
.nav nav { display: flex; align-items: center; gap: 22px; font-size: 15px; font-weight: 500; }
.nav nav a:not(.btn) { color: var(--muted); transition: color .2s; }
.nav nav a:not(.btn):hover { color: var(--ink); }

/* Buttons */
.btn {
  display: inline-flex; align-items: center; gap: 10px;
  background: var(--honey); color: #241603;
  font: 700 16px var(--body); padding: 16px 26px; border-radius: 999px; border: 0; cursor: pointer;
  box-shadow: 0 12px 30px -12px rgba(214, 150, 20, .75), inset 0 1px 0 rgba(255,255,255,.7);
  transition: transform .2s var(--spring);
}
.btn:hover { transform: translateY(-2px) scale(1.02); }
.btn:active { transform: scale(.96); }
.btn svg { width: 18px; height: 18px; fill: none; stroke: currentColor; stroke-width: 2.2; stroke-linecap: round; stroke-linejoin: round; }
.btn-small { padding: 9px 18px; font-size: 14px; }

/* Terminal install chip */
.hero-copy, .hero-art { min-width: 0; }
.term { margin-top: 22px; max-width: 520px; width: 100%; }
.term-label { font-size: 13.5px; color: var(--muted); margin-bottom: 10px; }
.term-label a { color: var(--ink); text-decoration: underline; text-decoration-color: var(--line); text-underline-offset: 3px; }
.cmd { all: unset; box-sizing: border-box; cursor: pointer; display: flex; align-items: center; gap: 10px; width: 100%; max-width: 520px;
  padding: 12px 12px 12px 16px; border-radius: 14px; background: #0F1B2A; color: #DCE8F2;
  box-shadow: 0 14px 30px -18px rgba(15, 27, 42, .7), inset 0 1px 0 rgba(255,255,255,.06); transition: transform .2s var(--spring); }
.cmd:hover { transform: translateY(-1px); }
.cmd:focus-visible { outline: 2px solid var(--accent); outline-offset: 3px; }
.cmd .prompt { color: #6FD3A0; font: 600 14px ui-monospace, SFMono-Regular, Menlo, monospace; }
.cmd code { flex: 1; min-width: 0; white-space: normal; overflow-wrap: anywhere; line-height: 1.5; scrollbar-width: none; font: 500 13.5px ui-monospace, SFMono-Regular, Menlo, monospace; }
.cmd code::-webkit-scrollbar { display: none; }
.cmd .copy-label { flex: none; font: 600 12.5px var(--body); padding: 6px 12px; border-radius: 999px; background: rgba(255,255,255,.1); color: #fff; transition: background-color .2s; }
.cmd.copied .copy-label { background: #2FA56F; }
.final-term { width: 100%; max-width: 520px; margin: 22px auto 0; }

/* Sections */
section { position: relative; padding: 150px 0; }

/* Hero */
.hero { padding: 56px 0 140px; overflow: hidden; }
.clouds i { position: absolute; border-radius: 50%; background: radial-gradient(closest-side, rgba(255,255,255,.9), rgba(255,255,255,0)); animation: drift 46s ease-in-out infinite alternate; pointer-events: none; }
.clouds i:nth-child(1) { width: 620px; height: 200px; top: 40px; left: -160px; }
.clouds i:nth-child(2) { width: 760px; height: 240px; top: 300px; right: -260px; animation-duration: 60s; }
.clouds i:nth-child(3) { width: 480px; height: 160px; bottom: 30px; left: 30%; opacity: .7; animation-duration: 52s; }
@keyframes drift { to { transform: translateX(70px); } }
.hero-grid { position: relative; display: grid; grid-template-columns: .9fr 1.1fr; gap: 40px; align-items: center; }
.cta-row { margin-top: 36px; }
.trust { margin-top: 26px; font-size: 14.5px; color: var(--muted); display: flex; flex-wrap: wrap; gap: 6px 10px; }
.hero-art { position: relative; perspective: 1800px; }
.shot-cap { display: flex; align-items: center; gap: 10px; margin-top: 22px; font-size: 14px; color: var(--muted); }
.shot-cap img { width: 22px; height: 22px; border-radius: 6px; }
.shot-cap b { color: var(--ink); font: 400 15px var(--display); white-space: nowrap; }
.shot-cap span::before { content: "·"; margin-right: 10px; opacity: .5; }
.hero-shot { display: block; width: 100%; height: auto; aspect-ratio: 1600 / 1058; object-fit: cover; max-width: none; border-radius: 14px; box-shadow: 0 60px 110px -40px rgba(16, 60, 95, .5), 0 24px 48px -24px rgba(16, 60, 95, .3), 0 0 0 1px rgba(255,255,255,.5); transform: rotateY(calc(-14deg * (1 - var(--p, 0)))) rotateX(calc(4deg * (1 - var(--p, 0)))) scale(calc(1 + .04 * var(--p, 0))); transform-origin: 0 50%; animation: shotIn 1.4s var(--ease) .25s backwards; }
@keyframes shotIn { from { opacity: 0; transform: rotateY(-24deg) rotateX(6deg) translateX(60px); } to { opacity: 1; } }
.up { animation: up .9s var(--ease) both; animation-delay: calc(var(--d) * 110ms + 80ms); }
.lines .ln { display: block; overflow: hidden; padding-bottom: .08em; margin-bottom: -.08em; }
.lines .ln > span { display: inline-block; animation: lineUp 1.1s var(--ease) both; animation-delay: calc(var(--d) * 120ms); }
@keyframes lineUp { from { transform: translateY(105%) rotate(2deg); } to { transform: none; } }
.trust { list-style: none; }
.trust li { display: inline-flex; align-items: center; gap: 7px; font-weight: 600; color: var(--ink); }
.trust svg { width: 16px; height: 16px; fill: none; stroke: #2FA56F; stroke-width: 2; stroke-linecap: round; stroke-linejoin: round; stroke-dasharray: 14; stroke-dashoffset: 14; animation: draw .6s var(--ease) forwards; }
.trust li:nth-child(1) svg { animation-delay: 1s; } .trust li:nth-child(2) svg { animation-delay: 1.15s; } .trust li:nth-child(3) svg { animation-delay: 1.3s; }
@keyframes draw { to { stroke-dashoffset: 0; } }
.btn { position: relative; overflow: hidden; }
.btn::after { content: ""; position: absolute; inset: 0; background: linear-gradient(110deg, transparent 30%, rgba(255,255,255,.55) 50%, transparent 70%); transform: translateX(-120%); }
.btn:hover::after { transform: translateX(120%); transition: transform .8s var(--ease); }
.hero .cta-row .btn::after { animation: sheen 1.1s var(--ease) 1.6s; }
@keyframes sheen { from { transform: translateX(-120%); } to { transform: translateX(120%); } }
@keyframes up { from { opacity: 0; transform: translateY(18px); } to { opacity: 1; transform: none; } }

/* Why (noon) */
.why-grid { display: grid; grid-template-columns: .9fr 1.1fr; gap: 80px; align-items: start; }
.why-head { position: sticky; top: 120px; }
.facts { list-style: none; border-top: 1px solid var(--line); }
.facts li { display: grid; grid-template-columns: 170px 1fr; gap: 24px; align-items: baseline; padding: 26px 0; border-bottom: 1px solid var(--line); }
.facts .k { font: 800 21px var(--display); letter-spacing: -0.015em; }
.facts .v { color: var(--muted); font-size: 17px; }
.facts li.reveal { transform: translateX(-18px); }
.facts li.reveal.in { transform: none; }
.facts li:nth-child(2) { transition-delay: .06s; } .facts li:nth-child(3) { transition-delay: .12s; }
.facts li:nth-child(4) { transition-delay: .18s; } .facts li:nth-child(5) { transition-delay: .24s; } .facts li:nth-child(6) { transition-delay: .3s; }

/* Safety (afternoon) */
.steps { list-style: none; display: grid; grid-template-columns: repeat(3, 1fr); gap: 0; margin-top: 64px; border-top: 1px solid var(--line); }
.steps li { padding: 32px 32px 8px 0; }
.steps li + li { padding-left: 32px; border-left: 1px solid var(--line); }
.steps .n { display: block; font: 800 15px var(--display); color: var(--accent); margin-bottom: 40px; letter-spacing: .02em; }
.steps p { color: var(--muted); margin-top: 10px; font-size: 16px; max-width: 22em; }

/* Rooms (evening) */
.room-list { margin-top: 72px; display: grid; gap: 120px; }
.room { display: grid; grid-template-columns: 1.55fr 1fr; gap: 64px; align-items: center; }
.room.flip { grid-template-columns: 1fr 1.55fr; }
.room.flip .room-img { order: 2; }
.room-img { border-radius: 22px; overflow: hidden; aspect-ratio: 1600 / 974; background: #E7DCC8;
  box-shadow: 0 60px 110px -50px rgba(16, 60, 95, .5), 0 18px 36px -22px rgba(16, 60, 95, .25);
  clip-path: inset(8% 8% 8% 8% round 22px); transition: clip-path 1.2s var(--ease); }
.room-img img { width: 100%; transform: scale(1.12) translateY(var(--py, 0px)); transition: transform 1.4s var(--ease); will-change: transform; }
.room-img.in { clip-path: inset(0 0 0 0 round 22px); }
.room-img.in img { transform: scale(1.02) translateY(var(--py, 0px)); }
.room-copy .n { display: block; font: 800 15px var(--display); color: var(--accent); margin-bottom: 18px; }
.room-copy h3 { font-size: clamp(26px, 2.6vw, 34px); line-height: 1.12; letter-spacing: 0; font-weight: 400; }
.room-copy h3 .soft { display: block; }
.room-copy p { color: var(--muted); font-size: 18px; margin-top: 16px; max-width: 24em; }

/* Compare + FAQ (night) */
.table-wrap { margin-top: 56px; overflow-x: auto; border-top: 1px solid var(--line); }
table { width: 100%; border-collapse: collapse; min-width: 720px; font-size: 15.5px; }
th, td { text-align: left; padding: 20px 18px 20px 0; border-bottom: 1px solid var(--line); vertical-align: top; }
thead th { font-size: 13px; color: var(--muted); font-weight: 600; letter-spacing: .03em; }
tbody th { font-weight: 600; width: 28%; }
td { color: var(--muted); }
.us { color: var(--ink); font-weight: 650; }
thead th.us { color: var(--accent); }
.faq { padding-top: 40px; }
.faq-grid { display: grid; grid-template-columns: .7fr 1.3fr; gap: 64px; align-items: start; }
.faq-list { border-top: 1px solid var(--line); }
details { border-bottom: 1px solid var(--line); }
summary { list-style: none; cursor: pointer; display: flex; justify-content: space-between; align-items: center; gap: 24px; padding: 22px 0; font: 700 18px var(--display); letter-spacing: -0.01em; }
summary::-webkit-details-marker { display: none; }
summary::after { content: "+"; font: 400 24px var(--body); color: var(--muted); transition: transform .3s var(--ease); }
details[open] summary::after { transform: rotate(45deg); }
details p { color: var(--muted); padding: 0 40px 24px 0; max-width: 38em; }

/* Final (midnight) */
.final { padding: 170px 0 180px; overflow: hidden; text-align: center; }
.final-inner { position: relative; display: flex; flex-direction: column; align-items: center; }
.final-icon { width: 104px; height: 104px; margin-bottom: 32px; filter: drop-shadow(0 24px 30px rgba(20, 70, 110, .3)); }
.final h2 { margin-bottom: 36px; }
.meta { margin-top: 18px; font-size: 14px; color: var(--muted); }

/* Footer */
.footer { border-top: 1px solid var(--line); padding: 40px 0 36px; font-size: 14.5px; }
.footer-grid { display: flex; justify-content: space-between; align-items: center; gap: 20px; flex-wrap: wrap; }
.footer nav { display: flex; gap: 22px; color: var(--muted); }
.footer nav a:hover { color: var(--ink); }
.footer-base { display: flex; justify-content: space-between; gap: 16px; flex-wrap: wrap; margin-top: 28px; font-size: 13px; color: var(--muted); }
.footer-base a { text-decoration: underline; text-underline-offset: 3px; }

/* Toast */
.toast { position: fixed; left: 50%; bottom: 24px; transform: translateX(-50%); width: min(92vw, 460px); line-height: 1.45; z-index: 60; padding: 14px 20px; border-radius: 14px; background: #10172b; color: #fff; font-size: 14.5px; box-shadow: 0 20px 40px -16px rgba(0,0,0,.5); }

/* Reveal */
.reveal { opacity: 0; transform: translateY(26px); transition: opacity .9s var(--ease), transform .9s var(--ease); }
.reveal.in { opacity: 1; transform: none; }
.steps .reveal:nth-child(2) { transition-delay: .1s; }
.steps .reveal:nth-child(3) { transition-delay: .2s; }

@media (max-width: 960px) {
  .nav { margin: 12px 12px 0; }
  .nav nav a:not(.btn) { display: none; }
  .hero { padding: 80px 0 120px; }
  .hero-grid { grid-template-columns: 1fr; }
  .hero { padding-bottom: 64px; }
  .shot-cap { flex-wrap: wrap; row-gap: 2px; }
  .shot-cap span { flex-basis: 100%; padding-left: 32px; }
  .shot-cap span::before { display: none; }
  .hero-art { margin: 44px 0 0; }
  .hero-shot { transform: none; animation: up 1s var(--ease) .3s both; border-radius: 12px; }
  .why-grid, .faq-grid { grid-template-columns: 1fr; gap: 48px; }
  .why-head { position: static; }
  .room, .room.flip { grid-template-columns: 1fr; gap: 28px; }
  .room.flip .room-img { order: 0; }
  .room-list { gap: 80px; margin-top: 48px; }
}
@media (max-width: 640px) {
  body { font-size: 16px; }
  .wrap { padding: 0 20px; }
  section { padding: 100px 0; }
  .cta-row .btn { width: 100%; justify-content: center; }
  .facts li { grid-template-columns: 1fr; gap: 6px; padding: 20px 0; }
  .room-img { border-radius: 16px; }
  .steps { grid-template-columns: 1fr; }
  .steps li, .steps li + li { padding: 26px 0; border-left: 0; border-bottom: 1px solid var(--line); }
  .steps .n { margin-bottom: 14px; }
  details p { padding-right: 0; }
  .final { padding: 120px 0 140px; }
}
@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after { animation: none !important; transition: none !important; }
  .reveal { opacity: 1; transform: none; }
}
