/* Coulisse: a dark theatre, one warm spotlight, the panel as the only lit object.
   Single dark look on purpose: the product itself is a dark panel. */
:root {
  color-scheme: dark;
  --house: #141012;
  --house-2: #1c1619;
  --velvet: #2a2020;
  --ink: #eadfcb;
  --ink-soft: #c9bba3;
  --ink-dim: #9a8e7b;
  --beige: #dcc8a4;
  --gold: #c8a978;
  --amber: #f2b457;
  --line: rgba(220, 200, 164, 0.14);
  /* The app's own panel colours, so the live mockup matches the screenshots */
  --app-bg: #14161a;
  --app-panel: #1c1f26;
  --app-border: #2a2e37;
  --app-text: #e8eaee;
  --app-muted: #8b92a0;
  --app-green: #3ddbb0;
  --app-red: #ef5350;
  --display: 'Cormorant Garamond', 'Iowan Old Style', Georgia, serif;
  --body: Karla, 'Segoe UI', system-ui, sans-serif;
  --hand: 'Nothing You Could Do', 'Segoe Script', cursive;
  --spot-x: 70%;
  --spot-y: 18%;
}

* {
  box-sizing: border-box;
}
html {
  scroll-behavior: smooth;
}
body {
  margin: 0;
  background: var(--house);
  color: var(--ink);
  font: 17px/1.65 var(--body);
  -webkit-font-smoothing: antialiased;
  /* The soft light behind the hero panel reaches past the edge; never a sideways scroll */
  overflow-x: clip;
}
img {
  max-width: 100%;
  display: block;
}
a {
  color: inherit;
}

/* The spotlight: fixed, follows the scroll position slowly (main.js) */
.spot {
  position: fixed;
  inset: 0;
  pointer-events: none;
  z-index: 0;
  background:
    radial-gradient(
      ellipse 42vmax 34vmax at var(--spot-x) var(--spot-y),
      rgba(220, 190, 140, 0.13),
      rgba(220, 190, 140, 0.04) 45%,
      transparent 70%
    ),
    radial-gradient(ellipse 80% 60% at 50% 120%, rgba(42, 32, 32, 0.9), transparent 70%);
  transition: background-position 0.2s linear;
}

.top,
main,
.foot {
  position: relative;
  z-index: 1;
  padding-left: max(20px, env(safe-area-inset-left, 0px));
  padding-right: max(20px, env(safe-area-inset-right, 0px));
}

.top {
  max-width: 1120px;
  margin: 0 auto;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
  padding-block: 22px;
}
.wordmark {
  font: 30px/1 var(--hand);
  color: var(--beige);
  text-decoration: none;
  text-shadow:
    0 1px 0 rgba(0, 0, 0, 0.7),
    0 0 18px rgba(220, 200, 164, 0.28);
}
.top nav {
  display: flex;
  flex-wrap: wrap;
  gap: 4px 22px;
  font-size: 15px;
}
.top nav a {
  color: var(--ink-dim);
  text-decoration: none;
  transition: color 0.3s;
}
.top nav a:hover,
.top nav a:focus-visible {
  color: var(--beige);
}
@media (max-width: 560px) {
  .top nav {
    display: none;
  }
}

main {
  max-width: 1120px;
  margin: 0 auto;
}

/* Hero */
.hero {
  display: grid;
  grid-template-columns: minmax(0, 1.05fr) minmax(0, 0.95fr);
  gap: clamp(32px, 6vw, 80px);
  align-items: center;
  padding-block: clamp(32px, 7vw, 88px) clamp(56px, 9vw, 120px);
}
@media (max-width: 860px) {
  .hero {
    grid-template-columns: minmax(0, 1fr);
  }
}
.eyebrow {
  margin: 0 0 18px;
  font-size: 13px;
  letter-spacing: 0.16em;
  text-transform: uppercase;
  color: var(--gold);
}
h1,
.section-title {
  font-family: var(--display);
  font-weight: 500;
  font-style: italic;
  text-wrap: balance;
  margin: 0;
  color: #f3e9d6;
}
h1 {
  font-size: clamp(40px, 6.2vw, 74px);
  line-height: 1.02;
  letter-spacing: -0.01em;
}
.lead {
  margin: 26px 0 0;
  max-width: 52ch;
  color: var(--ink-soft);
  font-size: clamp(16px, 1.6vw, 19px);
}
.actions {
  display: flex;
  flex-wrap: wrap;
  gap: 12px;
  margin-top: 34px;
}
.btn {
  display: inline-flex;
  align-items: center;
  padding: 11px 20px;
  border-radius: 999px;
  border: 1px solid var(--line);
  text-decoration: none;
  font-size: 15px;
  color: var(--ink);
  transition:
    border-color 0.3s,
    background 0.3s;
}
.btn:hover,
.btn:focus-visible {
  border-color: rgba(220, 200, 164, 0.45);
}
.btn.primary {
  background: var(--beige);
  color: #1b1416;
  border-color: var(--beige);
  font-weight: 600;
}
.btn.primary:hover,
.btn.primary:focus-visible {
  background: #e8d7b8;
}
a:focus-visible {
  outline: 2px solid var(--beige);
  outline-offset: 3px;
}

/* The stage around the live panel */
.stage {
  position: relative;
  display: grid;
  justify-items: center;
}
.stage::before {
  content: '';
  position: absolute;
  inset: -12% -8% -6%;
  background: radial-gradient(ellipse at 50% 30%, rgba(220, 200, 164, 0.12), transparent 65%);
  pointer-events: none;
}

/* Live panel: a faithful copy of the app's panel in its own colours */
.live,
.mini {
  position: relative;
  background: var(--app-bg);
  color: var(--app-text);
  border-radius: 14px;
  font:
    13px/1.45 'Segoe UI',
    system-ui,
    sans-serif;
  box-shadow:
    0 0 0 1px rgba(255, 255, 255, 0.06),
    0 40px 90px rgba(0, 0, 0, 0.6),
    0 0 60px rgba(220, 200, 164, 0.06);
  overflow: hidden;
}
.live {
  width: min(360px, 100%);
}
.p-brand {
  text-align: center;
  padding: 10px 0 2px;
  font: 21px/1 var(--hand);
  color: var(--beige);
  text-shadow:
    0 1px 0 rgba(0, 0, 0, 0.7),
    0 0 14px rgba(220, 200, 164, 0.22);
}
.p-bar {
  display: flex;
  align-items: center;
  gap: 8px;
  padding: 6px 10px 8px;
  border-bottom: 0.5px solid var(--app-border);
}
.p-dot {
  width: 8px;
  height: 8px;
  border-radius: 50%;
  background: var(--app-red);
  animation: breathe 1.8s ease-in-out infinite;
}
@keyframes breathe {
  50% {
    opacity: 0.35;
  }
}
.p-time {
  font-variant-numeric: tabular-nums;
}
.p-status {
  flex: 1;
  color: var(--app-muted);
  font-size: 11px;
}
.p-chip {
  font-size: 11px;
  padding: 2px 8px;
  border-radius: 999px;
  border: 0.5px solid var(--app-border);
  background: var(--app-panel);
  color: var(--app-muted);
}
.p-body {
  height: 400px;
  display: grid;
  grid-template-rows: minmax(0, 1fr) auto;
}
.p-cards {
  display: grid;
  gap: 8px;
  padding: 10px 10px 4px;
  align-content: start;
  overflow: hidden;
}
.p-lines {
  display: grid;
  gap: 3px;
  padding: 8px 10px 12px;
  border-top: 0.5px solid var(--app-border);
  font-size: 12px;
  color: var(--app-muted);
  min-height: 96px;
  align-content: end;
}
.line {
  opacity: 0;
  transform: translateY(5px);
  transition:
    opacity 0.6s ease,
    transform 0.6s ease;
}
.line.on {
  opacity: 1;
  transform: none;
}
.line b {
  color: var(--app-text);
  font-weight: 600;
  margin-right: 6px;
}
.card {
  background: var(--app-panel);
  border: 0.5px solid var(--app-border);
  border-radius: 8px;
  padding: 8px 10px;
  display: grid;
  gap: 3px;
  opacity: 0;
  transform: translateY(-6px);
  transition:
    opacity 1s ease,
    transform 1s cubic-bezier(0.2, 0.8, 0.2, 1);
}
.card.on {
  opacity: 1;
  transform: none;
}
.card .k {
  font-size: 10.5px;
  font-weight: 600;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  color: var(--app-green);
}
.card.claim .k {
  color: var(--amber);
}
.card .q {
  font-size: 11.5px;
  color: var(--app-muted);
}
.card .a {
  font-weight: 600;
  font-size: 13px;
}
.card .quote {
  font-style: italic;
  font-size: 12px;
}
.card .s {
  font-size: 11px;
  color: var(--app-muted);
}
.card .f {
  font-size: 12px;
}

/* Sections */
section {
  padding-block: clamp(48px, 8vw, 104px);
}
.section-title {
  font-size: clamp(32px, 4.4vw, 52px);
  line-height: 1.08;
  margin-bottom: clamp(28px, 4vw, 52px);
  max-width: 20ch;
}
h3 {
  font-family: var(--body);
  font-weight: 600;
  font-size: 19px;
  margin: 0;
  color: #f3e9d6;
}
p {
  margin: 0;
}

.trio {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: clamp(20px, 3vw, 36px);
}
@media (max-width: 860px) {
  .trio {
    grid-template-columns: minmax(0, 1fr);
  }
}
.act {
  display: grid;
  gap: 12px;
  align-content: start;
}
.act p {
  color: var(--ink-soft);
  font-size: 16px;
}
.mini {
  height: 190px;
  margin-bottom: 8px;
  padding: 12px;
  display: grid;
  align-content: start;
  gap: 8px;
  box-shadow:
    0 0 0 1px rgba(255, 255, 255, 0.05),
    0 24px 50px rgba(0, 0, 0, 0.45);
}

/* Steps with real screenshots */
.step {
  display: grid;
  grid-template-columns: minmax(0, 0.8fr) minmax(0, 1.2fr);
  gap: clamp(28px, 6vw, 88px);
  align-items: center;
  padding-block: clamp(20px, 4vw, 44px);
}
.step.flip .shot {
  order: 2;
}
@media (max-width: 760px) {
  .step {
    grid-template-columns: minmax(0, 1fr);
  }
  .step.flip .shot {
    order: 0;
  }
}
.shot {
  margin: 0;
  justify-self: center;
  width: min(340px, 100%);
  max-height: 560px;
  overflow: hidden;
  border-radius: 14px;
  box-shadow:
    0 0 0 1px rgba(255, 255, 255, 0.06),
    0 40px 90px rgba(0, 0, 0, 0.6);
  /* The bottom of a tall screenshot fades into the house */
  -webkit-mask-image: linear-gradient(to bottom, #000 78%, transparent);
  mask-image: linear-gradient(to bottom, #000 78%, transparent);
}
.shot img {
  width: 100%;
  height: auto;
}
.step-text {
  display: grid;
  gap: 14px;
  max-width: 54ch;
}
.num {
  font-size: 13px;
  letter-spacing: 0.16em;
  text-transform: uppercase;
  color: var(--gold);
}
.step-text h3 {
  font-family: var(--display);
  font-style: italic;
  font-weight: 500;
  font-size: clamp(28px, 3.2vw, 38px);
  line-height: 1.1;
}
.step-text p {
  color: var(--ink-soft);
}
.step-text .small {
  font-size: 15px;
  color: var(--ink-dim);
}

/* Calm */
.calm-list {
  list-style: none;
  margin: 0;
  padding: 0;
  display: grid;
  border-top: 1px solid var(--line);
}
.calm-list li {
  display: grid;
  grid-template-columns: minmax(0, 220px) minmax(0, 1fr);
  gap: 8px 24px;
  padding-block: 18px;
  border-bottom: 1px solid var(--line);
  color: var(--ink-soft);
}
.calm-list strong {
  font-family: var(--display);
  font-style: italic;
  font-weight: 500;
  font-size: 24px;
  color: var(--beige);
  line-height: 1.2;
}
@media (max-width: 640px) {
  .calm-list li {
    grid-template-columns: minmax(0, 1fr);
  }
}

/* Privacy */
.facts {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: clamp(16px, 3vw, 32px);
}
@media (max-width: 860px) {
  .facts {
    grid-template-columns: minmax(0, 1fr);
  }
}
.fact {
  display: grid;
  gap: 10px;
  align-content: start;
  padding: 22px;
  border-radius: 12px;
  background: linear-gradient(180deg, var(--house-2), rgba(28, 22, 25, 0.4));
  border: 1px solid var(--line);
}
.fact p {
  color: var(--ink-soft);
  font-size: 15.5px;
}

/* The final curtain */
.curtain {
  text-align: center;
  display: grid;
  gap: 18px;
  justify-items: center;
  padding-block: clamp(64px, 10vw, 140px);
}
.curtain-line {
  font-family: var(--display);
  font-style: italic;
  font-size: clamp(24px, 3vw, 34px);
  color: var(--ink-soft);
  max-width: 30ch;
  text-wrap: balance;
}
.signature {
  font: clamp(48px, 8vw, 92px)/1 var(--hand);
  color: var(--beige);
  text-shadow: 0 0 30px rgba(220, 200, 164, 0.25);
}

.foot {
  max-width: 1120px;
  margin: 0 auto;
  display: flex;
  flex-wrap: wrap;
  justify-content: space-between;
  gap: 8px 24px;
  padding-block: 28px 40px;
  border-top: 1px solid var(--line);
  font-size: 13px;
  color: var(--ink-dim);
}

/* Reveal on scroll: visible at rest; only lifts in when the script is running */
.js [data-reveal] {
  opacity: 0;
  transform: translateY(18px);
  transition:
    opacity 1s ease,
    transform 1s cubic-bezier(0.2, 0.8, 0.2, 1);
}
.js [data-reveal].seen {
  opacity: 1;
  transform: none;
}

@media (prefers-reduced-motion: reduce) {
  html {
    scroll-behavior: auto;
  }
  .js [data-reveal],
  .line,
  .card {
    opacity: 1;
    transform: none;
    transition: none;
  }
  .p-dot {
    animation: none;
  }
}
