/*
  Layout: the same quiet frame as Nudge's site, warmed up.
  One hot colour (ember) does the talking. The demo panel looks like the real menu.
*/
@font-face { font-family: Familjen; src: url(assets/fonts/familjen.woff2) format("woff2"); font-weight: 400 700; font-display: swap }
@font-face { font-family: Newsreader; src: url(assets/fonts/newsreader-italic.woff2) format("woff2"); font-weight: 400 600; font-style: italic; font-display: swap }

:root {
  --bg: #fbf8f5;
  --surface: #fff;
  --text: #1f1712;
  --muted: #6b5f57;
  --line: #e6ddd5;
  --ember: #e8572a;
  --ember-deep: #c63d1c;
  --nav: rgb(255 255 255 / .88);
  --panel: rgb(246 244 242 / .92);
  --ui: Familjen, system-ui, sans-serif;
  --serif: Newsreader, Georgia, serif;
  --ease: cubic-bezier(.23, 1, .32, 1);
  color-scheme: light;
}
@media (prefers-color-scheme: dark) {
  :root:not([data-theme="light"]) {
    --bg: #15110e; --surface: #1f1915; --text: #f5ede6; --muted: #b0a297;
    --line: #362c25; --ember: #ff7448; --nav: rgb(31 25 21 / .88); --panel: rgb(40 36 34 / .94); color-scheme: dark;
  }
}
:root[data-theme="dark"] {
  --bg: #15110e; --surface: #1f1915; --text: #f5ede6; --muted: #b0a297;
  --line: #362c25; --ember: #ff7448; --nav: rgb(31 25 21 / .88); --panel: rgb(40 36 34 / .94); color-scheme: dark;
}

*, *::before, *::after { box-sizing: border-box }
[hidden] { display: none !important }
html { scroll-behavior: smooth; scroll-padding-top: 72px }
body { margin: 0; background: var(--bg); color: var(--text); font: 17px/1.5 var(--ui); -webkit-font-smoothing: antialiased }
main, footer { width: 100%; max-width: 1312px; margin: 0 auto; padding-inline: 24px }
img { display: block; max-width: 100% }
h1, h2, h3, p { margin: 0 }
h1, h2 { text-wrap: balance }
h2 { font-size: clamp(30px, 3.4vw, 46px); line-height: 1.08; font-weight: 600 }
a { color: inherit }
button { font: inherit; color: inherit; cursor: pointer }
:focus-visible { outline: 3px solid var(--ember); outline-offset: 3px }

/* Floating nav */
.nav {
  position: fixed; top: 16px; right: 24px; z-index: 10;
  display: flex; align-items: center; gap: 2px; padding: 5px;
  background: var(--nav); backdrop-filter: blur(12px);
  border: 1px solid var(--line); border-radius: 10px; font-size: 15px;
}
.nav a, .nav button {
  display: flex; align-items: center; justify-content: center; min-height: 36px; padding: 0 12px;
  border: 0; border-radius: 6px; background: none; text-decoration: none; white-space: nowrap;
}
.nav a:hover, .nav button:hover { background: var(--bg) }
.nav .home { padding: 0 5px }

/* Hero */
.hero { display: grid; grid-template-columns: 1.25fr 1fr; gap: 24px 64px; align-items: end; padding: 122px 0 36px }
.hero h1 { font-size: clamp(46px, 6.5vw, 88px); line-height: 1.04; font-weight: 600; letter-spacing: -.015em }
.hero h1 em { font: italic 500 1.08em/1 var(--serif); color: var(--ember) }
.pitch { display: grid; gap: 20px; padding-bottom: 6px }
.pitch > p:first-child { font-size: 21px; line-height: 1.4; max-width: 36ch }
.actions { display: flex; flex-wrap: wrap; align-items: center; gap: 12px 24px }
.download {
  display: inline-flex; align-items: center; min-height: 50px; padding: 0 24px;
  background: var(--ember); color: #fff; border-radius: 9px; font-weight: 600; text-decoration: none;
  transition: transform .15s var(--ease), filter .15s;
}
.download:hover { filter: brightness(1.08) }
.download:active { transform: scale(.97) }
.source { text-underline-offset: 5px }
.needs { color: var(--muted); font-size: 15px }

/* The demo */
.stage {
  display: grid; grid-template-columns: minmax(0, 1fr) 380px; gap: 32px 64px; align-items: center;
  padding: 56px; border-radius: 14px; color: #fff;
  background: radial-gradient(120% 140% at 85% 110%, #ffb54d 0%, #f0762b 38%, #c9341b 100%);
}
.stage-copy { display: grid; gap: 16px; max-width: 46ch }
.stage-copy h2 { font-size: clamp(36px, 4.4vw, 60px) }
.stage-copy p { font-size: 19px; line-height: 1.45 }
.stage-copy .hint { font-size: 15px; opacity: .8 }
#play {
  justify-self: start; display: inline-flex; align-items: center; gap: 10px; min-height: 50px; padding: 0 22px;
  border: 0; border-radius: 9px; background: #fff; color: #9e2d12; font-weight: 600;
  transition: transform .15s var(--ease);
}
#play:active { transform: scale(.97) }
#play .icon { font-size: 13px }

.panel {
  color: var(--text); background: var(--panel); backdrop-filter: blur(20px);
  border-radius: 12px; box-shadow: 0 0 0 1px rgb(0 0 0 / .12), 0 18px 40px rgb(80 20 0 / .35);
  font-size: 14px; overflow: hidden;
}
.panel-head, .panel-foot { display: flex; align-items: baseline; gap: 8px; padding: 12px 16px }
.panel-head { border-bottom: 1px solid var(--line) }
.panel-head span, .panel-foot { color: var(--muted) }
.panel-head button { margin-left: auto; padding: 0; border: 0; background: none; color: var(--ember-deep); font-size: 13px }
:root[data-theme="dark"] .panel-head button { color: var(--ember) }
.panel-foot { justify-content: space-between; border-top: 1px solid var(--line); font-size: 13px }
.panel-foot label { display: flex; gap: 6px; align-items: center }
#mixer { list-style: none; margin: 0; padding: 8px 6px }
#mixer li { display: grid; grid-template-columns: 30px minmax(0, 1fr) 28px; gap: 10px; align-items: center; padding: 6px 8px; border-radius: 7px }
#mixer li:hover { background: rgb(127 127 127 / .1) }
.app-icon { width: 30px; height: 30px; border-radius: 7px; display: grid; place-items: center; color: #fff; font-size: 16px }
.app-top { display: flex; justify-content: space-between; gap: 8px }
.app-top output { color: var(--muted); font-variant-numeric: tabular-nums }
.meter { height: 3px; margin: 3px 0 2px; border-radius: 2px; background: rgb(127 127 127 / .18); overflow: hidden }
.meter i { display: block; height: 100%; width: 0; background: #34c759; border-radius: 2px; transition: width .08s linear }
input[type="range"] { width: 100%; margin: 0; accent-color: var(--ember) }
.mute { width: 28px; height: 28px; padding: 0; border: 0; border-radius: 6px; background: none; color: var(--muted); font-size: 16px }
.mute[aria-pressed="true"] { color: #e5372b }
li.muted .app-icon, li.muted .app-name { opacity: .5 }

/* Sections */
.section { padding-top: 104px }
.section-head { display: grid; gap: 12px; margin-bottom: 32px }
.section-head p { color: var(--muted); max-width: 62ch }
.steps { list-style: none; margin: 0; padding: 0; display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 24px; counter-reset: step }
.steps li {
  counter-increment: step; display: grid; gap: 6px; padding: 24px;
  background: var(--surface); border: 1px solid var(--line); border-radius: 9px;
}
.steps li::before { content: counter(step); font: italic 600 40px/1 var(--serif); color: var(--ember) }
.steps b { font-size: 19px; font-weight: 600 }
.steps span { color: var(--muted); font-size: 16px }

.privacy h2 { font-size: clamp(30px, 4.3vw, 58px) }
.privacy em { font: italic 500 1.08em/1.05 var(--serif); color: var(--muted) }
.privacy dl { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 28px 48px; margin: 40px 0 0 }
.privacy dt { font-weight: 600; margin-bottom: 4px }
.privacy dd { margin: 0; color: var(--muted); font-size: 16px }

.install {
  margin-top: 104px; padding: 64px 56px; display: grid; grid-template-columns: 1fr 1fr; gap: 22px 64px; align-items: center;
  border-radius: 14px; background: #ffd9a8; color: #3a1a08;
}
.install h2 { grid-row: span 3; font-size: clamp(44px, 6vw, 84px); line-height: .98 }
.install ol { margin: 0; padding-left: 22px; display: grid; gap: 8px; font-size: 19px }
.install .download { justify-self: start; background: #3a1a08; color: #fff }
.install .needs { color: #7a4a26 }
footer { display: flex; flex-wrap: wrap; gap: 8px 24px; padding-block: 32px 40px; color: var(--muted); font-size: 15px }
footer span { margin-right: auto }

@media (max-width: 1080px) {
  .hero { grid-template-columns: minmax(0, 1fr) }
  .stage { grid-template-columns: minmax(0, 1fr); justify-items: start }
  .panel { width: 100%; max-width: 420px }
}
@media (max-width: 720px) {
  main, footer { padding-inline: 16px }
  .nav { top: 10px; right: 12px }
  .nav .wide { display: none }
  .hero { padding-top: 104px }
  .hero h1 { font-size: clamp(38px, 12vw, 64px); line-height: 1.12 }
  .pitch > p:first-child { font-size: 19px }
  .stage { padding: 28px 16px }
  .section { padding-top: 72px }
  .steps, .privacy dl, .install { grid-template-columns: minmax(0, 1fr) }
  .install { margin-top: 72px; padding: 36px 22px }
  .install h2 { grid-row: auto }
}
@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto }
  *, *::before, *::after { animation: none !important; transition: none !important }
}
