/* Hora Intelligence launch page.
   Layout: a centred Apple-style opening (mark, very large tagline, the desk as hero),
   then one idea per section on a 1200px measure, left aligned, with a pinned scroll story. */
:root {
  --bg: #F7F0E5;
  --card: #FFFCF7;
  --edge: #F1E7D8;
  --line: #E7DACA;
  --field-line: #8C7B6E;
  --ink: #2A211C;
  --muted: #52463D;
  --faint: #6B5C50;
  --primary: #241C17;
  --primary-fg: #FFFFFF;
  --accent: #AE412A;
  --on-accent: #FFFFFF;
  --soft: #F8E8E1;
  --soft-line: #E9C3B5;
  --mark: #B4432C;
  --dot: #D9CBB8;
  --shadow-1: 0 1px 2px rgba(42, 33, 28, .05), 0 8px 24px -12px rgba(42, 33, 28, .18);
  --shadow-2: 0 2px 4px rgba(42, 33, 28, .05), 0 24px 56px -20px rgba(42, 33, 28, .30);
  --shot-filter: none;
  --shot-line: #E7DACA;
  --shot-ring: 0 0 0 0 transparent;
  /* the screenshots and the paid-plan designs are light, so their frames keep the app's own light look in both themes */
  --app-card: #FFFCF7;
  --app-edge: #F1E7D8;
  --app-line: #E7DACA;
  --app-dot: #D9CBB8;
  --app-ink: #2A211C;
  --app-muted: #6B5C50;
  --app-accent: #AE412A;
  --app-chip: #F6E1DA;
  --app-chip-ink: #9E3F2A;
  --app-bubble: #EFE5D8;
  --app-btn: #29211B;

  --font: -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, sans-serif;
  --w-regular: 400;
  --w-medium: 500;
  --w-semi: 600;
  --t-meta: .75rem;
  --t-small: .875rem;
  --t-body: 1rem;
  --t-read: 1.125rem;
  --t-lede: 1.25rem;
  --t-h4: 1.25rem;
  --t-h3: clamp(1.5rem, 1.2rem + 1vw, 2rem);
  --t-h2: clamp(2.125rem, 1.4rem + 3vw, 4rem);
  --t-display: clamp(2.875rem, 15.5vw, 7rem);

  --measure: 1200px;
  --gutter-x: max(16px, env(safe-area-inset-left, 0px), 4vw);
  --gutter-r: max(16px, env(safe-area-inset-right, 0px), 4vw);
  --sec: clamp(88px, 6rem + 4vw, 168px);
  --radius-btn: 999px;
  --radius-card: 20px;

  --ease-out: cubic-bezier(.22, 1, .36, 1);
  --ease-move: cubic-bezier(.65, 0, .35, 1);
}
@media (prefers-color-scheme: dark) {
  :root:not([data-theme="light"]) {
    --bg: #1A1512; --card: #221C17; --edge: #1F1914; --line: #3A3028; --field-line: #85766A;
    --ink: #F2E9DF; --muted: #CDBFB1; --faint: #A99A8B;
    --primary: #F2E9DF; --primary-fg: #241C17; --accent: #E07A5F; --on-accent: #241C17;
    --soft: #3A2620; --soft-line: #5A3A2E; --mark: #F2E9DF; --dot: #4A3E34;
    --shadow-1: 0 1px 2px rgba(0, 0, 0, .3), 0 8px 24px -12px rgba(0, 0, 0, .6);
    --shadow-2: 0 2px 4px rgba(0, 0, 0, .3), 0 24px 56px -20px rgba(0, 0, 0, .7);
    --shot-filter: none;
    --shot-line: rgba(255, 255, 255, .08);
    --shot-ring: 0 0 0 6px rgba(255, 255, 255, .03);
    color-scheme: dark;
  }
}
:root[data-theme="dark"] {
  --bg: #1A1512; --card: #221C17; --edge: #1F1914; --line: #3A3028; --field-line: #85766A;
  --ink: #F2E9DF; --muted: #CDBFB1; --faint: #A99A8B;
  --primary: #F2E9DF; --primary-fg: #241C17; --accent: #E07A5F; --on-accent: #241C17;
  --soft: #3A2620; --soft-line: #5A3A2E; --mark: #F2E9DF; --dot: #4A3E34;
  --shadow-1: 0 1px 2px rgba(0, 0, 0, .3), 0 8px 24px -12px rgba(0, 0, 0, .6);
  --shadow-2: 0 2px 4px rgba(0, 0, 0, .3), 0 24px 56px -20px rgba(0, 0, 0, .7);
  --shot-filter: none;
  --shot-line: rgba(255, 255, 255, .08);
  --shot-ring: 0 0 0 6px rgba(255, 255, 255, .03);
  color-scheme: dark;
}

/* Base */
*, *::before, *::after { box-sizing: border-box; }
html { scroll-behavior: smooth; scroll-padding-top: 88px; -webkit-text-size-adjust: 100%; }
body {
  margin: 0;
  background: var(--bg);
  color: var(--ink);
  font-family: var(--font);
  font-size: var(--t-body);
  font-weight: var(--w-regular);
  line-height: 1.55;
  -webkit-font-smoothing: antialiased;
  overflow-x: clip;
}
body::before {
  content: ""; position: fixed; inset: 0 0 auto; height: env(safe-area-inset-top, 0px);
  z-index: 60; background: var(--bg);
}
img { max-width: 100%; height: auto; display: block; }
[hidden] { display: none !important; }
a { color: inherit; }
p { margin: 0; }
h1, h2, h3, h4 { margin: 0; font-weight: var(--w-semi); text-wrap: balance; }
:focus-visible { outline: 2px solid var(--ink); outline-offset: 3px; border-radius: 6px; }
.sr { position: absolute; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; }
.skip { position: absolute; left: 16px; top: -48px; z-index: 80; background: var(--card); color: var(--ink); padding: 8px 16px; border-radius: 8px; }
.skip:focus { top: calc(env(safe-area-inset-top, 0px) + 8px); }

.wrap {
  width: 100%;
  max-width: calc(var(--measure) + 2 * 4vw);
  margin-inline: auto;
  padding-left: var(--gutter-x);
  padding-right: var(--gutter-r);
}
.sec { padding-block: var(--sec); }

.h2 { font-size: var(--t-h2); line-height: 1.08; letter-spacing: -.028em; max-width: 20ch; }
.h3 { font-size: var(--t-h3); line-height: 1.16; letter-spacing: -.018em; }
.h4 { font-size: var(--t-h4); line-height: 1.25; letter-spacing: -.01em; }
.lede { font-size: var(--t-lede); line-height: 1.5; color: var(--muted); }
.eyebrow { font-size: var(--t-small); font-weight: var(--w-medium); letter-spacing: .01em; color: var(--accent); margin-bottom: 4px; }
.features .eyebrow { margin-bottom: 20px; }

/* Buttons */
.btn {
  display: inline-flex; align-items: center; justify-content: center;
  min-height: 48px; padding: 0 24px; border-radius: var(--radius-btn);
  font: inherit; font-size: var(--t-body); font-weight: var(--w-medium);
  text-decoration: none; cursor: pointer; border: 1px solid transparent;
  transition: transform 150ms var(--ease-out), opacity 150ms var(--ease-out);
  white-space: nowrap;
}
.btn:active { transform: scale(.98); }
.btn:disabled { opacity: .6; cursor: progress; }
.btn-primary { background: var(--primary); color: var(--primary-fg); }
.btn-primary:hover { opacity: .88; }
.btn-quiet { color: var(--ink); border-color: var(--line); background: transparent; }
.btn-quiet:hover { border-color: var(--faint); }
.btn-sm { min-height: 40px; padding: 0 16px; font-size: var(--t-small); }
.btn-block { width: 100%; }
.bar-cta .lbl-short { display: none; }
.bar-cta.reserved { background: transparent; color: var(--ink); border-color: var(--line); cursor: default; gap: 8px; }
.bar-cta.reserved:hover { opacity: 1; }
.bar-cta.reserved:active { transform: none; }
.bar-cta .rs-tick { width: 14px; height: 14px; flex: none; fill: none; stroke: var(--accent); stroke-width: 1.75; stroke-linecap: round; stroke-linejoin: round; }

/* Top bar */
.bar {
  position: sticky; top: env(safe-area-inset-top, 0px); z-index: 50;
  background: var(--bg);
  border-bottom: 1px solid transparent;
  transition: border-color 240ms var(--ease-out);
}
.bar.solid { border-bottom-color: var(--line); }
.bar-in { display: flex; align-items: center; justify-content: space-between; gap: 16px; height: 64px; }
.brand { display: inline-flex; align-items: center; gap: 8px; text-decoration: none; color: var(--ink); min-width: 0; }
.brand-mark { width: 28px; height: 28px; flex: none; fill: var(--mark); }
.brand-word { font-size: 1.125rem; letter-spacing: -.02em; font-weight: var(--w-regular); white-space: nowrap; }
.brand-word b { font-weight: var(--w-semi); }

/* Hero */
.hero { padding-top: clamp(28px, 1rem + 1.6vw, 44px); position: relative; }
.hero-in { display: flex; flex-direction: column; align-items: center; text-align: center; }
.hero-mark { width: clamp(48px, 2.5rem + 1.2vw, 60px); height: auto; aspect-ratio: 1; color: var(--mark); overflow: visible; }
.hero-mark .mk-fill, .done-mark .mk-fill, .close-mark .mk-fill { fill: currentColor; }
.hero-mark .mk-line, .done-mark .mk-line, .close-mark .mk-line { fill: none; stroke: currentColor; stroke-width: .7; stroke-dasharray: 1; stroke-dashoffset: 0; opacity: 0; }
.tagline {
  margin-top: 20px;
  font-size: var(--t-display);
  line-height: 1.02;
  letter-spacing: -.045em;
  font-weight: var(--w-semi);
}
.tagline .ln { display: block; overflow: clip; overflow-clip-margin: .14em; padding-inline: .04em; }
.tagline .ln > span { display: inline-block; }
.hero-lede { margin-top: 20px; max-width: 46ch; text-wrap: balance; }
.hero-actions { margin-top: 28px; }
.actions { display: flex; flex-wrap: wrap; gap: 12px; justify-content: center; }
.hero-shot-wrap { margin-top: clamp(36px, 1.5rem + 1.5vw, 48px); }

.mac {
  margin: 0; position: relative;
  background: var(--app-card);
  border: 1px solid var(--shot-line);
  border-radius: 14px;
  overflow: hidden;
  box-shadow: var(--shot-ring), var(--shadow-2);
}
.mac-bar, .hs-bar { height: 28px; display: flex; align-items: center; gap: 8px; padding-left: 14px; background: var(--app-edge); border-bottom: 1px solid var(--app-line); }
.mac-bar i, .hs-bar i { width: 11px; height: 11px; border-radius: 50%; background: var(--app-dot); display: block; }
.mac img { width: 100%; filter: var(--shot-filter); }
.hero-shot {
  -webkit-mask-image: linear-gradient(to bottom, #000 78%, transparent 100%);
  mask-image: linear-gradient(to bottom, #000 78%, transparent 100%);
  border-bottom: 0;
  border-bottom-left-radius: 0; border-bottom-right-radius: 0;
}
#hero-end { position: absolute; bottom: 0; height: 1px; width: 1px; }

/* Hero arrival (plays once; final state is the resting state) */
.js:not(.static):not(.rm) .hero-mark .mk-line { animation: mk-draw 1600ms var(--ease-move) both; }
.js:not(.static):not(.rm) .hero-mark .mk-fill { animation: fade-in 500ms var(--ease-out) 950ms both; }
.js:not(.static):not(.rm) .tagline .ln > span { animation: line-up 800ms var(--ease-out) both; }
.js:not(.static):not(.rm) .tagline .ln:nth-child(1) > span { animation-delay: 380ms; }
.js:not(.static):not(.rm) .tagline .ln:nth-child(2) > span { animation-delay: 470ms; }
.js:not(.static):not(.rm) .hero-lede { animation: rise 700ms var(--ease-out) 640ms both; }
.js:not(.static):not(.rm) .hero-actions { animation: rise 700ms var(--ease-out) 760ms both; }
.js:not(.static):not(.rm) .hero-shot { animation: lift 1000ms var(--ease-out) 880ms both; }
@keyframes mk-draw { 0% { stroke-dashoffset: 1; opacity: 1; } 72% { stroke-dashoffset: 0; opacity: 1; } 100% { stroke-dashoffset: 0; opacity: 0; } }
@keyframes fade-in { from { opacity: 0; } to { opacity: 1; } }
@keyframes line-up { from { transform: translateY(108%); } to { transform: none; } }
@keyframes rise { from { opacity: 0; transform: translateY(16px); } to { opacity: 1; transform: none; } }
@keyframes lift { from { opacity: 0; transform: translateY(32px) scale(.985); } to { opacity: 1; transform: none; } }
@keyframes tick { from { stroke-dashoffset: 1; } to { stroke-dashoffset: 0; } }

/* Reveal on scroll: only things below the first screen ever start hidden */
.js [data-reveal].pre { opacity: 0; transform: translateY(20px); }
.js [data-reveal] { transition: opacity 700ms var(--ease-out), transform 700ms var(--ease-out); }

/* Positioning */
.pos-grid { display: grid; grid-template-columns: minmax(0, 1.05fr) minmax(0, 1fr); gap: 48px 72px; align-items: start; }
.pos-h { max-width: 15ch; }
.pos-copy { display: grid; gap: 20px; font-size: var(--t-read); color: var(--muted); max-width: 52ch; padding-top: 8px; }
.pos-copy p:last-child { color: var(--ink); }

.pos-stage {
  margin-top: clamp(56px, 3rem + 3vw, 112px);
  position: relative; container-type: inline-size;
  max-width: 100%;
}
.pw {
  position: relative; margin-inline: auto; width: 74cqw;
  background: var(--app-card); border: 1px solid var(--shot-line); border-radius: 1.4cqw;
  box-shadow: var(--shot-ring), var(--shadow-2); filter: var(--shot-filter);
  transition: transform 900ms var(--ease-move);
}
.pw .mac-bar { height: 2.6cqw; border-radius: 1.4cqw 1.4cqw 0 0; gap: .7cqw; padding-left: 1.2cqw; }
.pw .mac-bar i { width: .9cqw; height: .9cqw; }
.pw-body { display: grid; grid-template-columns: 24cqw minmax(0, 1fr); gap: 2.4cqw; padding: 2.6cqw; align-items: center; }
.pw-chart {
  grid-column: 1; grid-row: 1; width: 100%; height: auto;
  border: 1px solid var(--app-line); border-radius: .8cqw;
  transition: opacity 700ms var(--ease-out);
}
.pl { grid-column: 2; grid-row: 1; display: flex; flex-direction: column; gap: 1.2cqw; }
.pc {
  width: 100%; display: flex; flex-direction: column; align-items: flex-start; gap: .5cqw;
  background: var(--app-card); border: 1px solid var(--app-line); border-radius: .8cqw;
  padding: .8cqw 1.1cqw 1cqw; box-shadow: var(--shadow-1);
  transition: transform 900ms var(--ease-move), opacity 500ms var(--ease-out);
  transition-delay: calc(200ms + var(--i) * 170ms);
}
.pc picture { display: contents; }
.pc-l { font-size: 12px; line-height: 1.3; font-weight: var(--w-medium); color: var(--app-muted); letter-spacing: .01em; }
/* every row keeps one scale, so the text is the same size in all four cards */
.pc img { width: calc(var(--sw) / 992 * 100%); height: auto; }
/* empty slots where each card will land */
.pl-ghost .pc {
  background: transparent; border: 1px dashed var(--app-dot); box-shadow: none; opacity: 0;
  transition: opacity 400ms var(--ease-out); transition-delay: calc(1100ms + var(--i) * 170ms);
}
.pl-ghost .pc > * , .pl-ghost .pc img { visibility: hidden; }
/* scattered start (set by script only when the stage is below the first screen) */
.pos-stage.scatter .pw { transform: translateX(11cqw); }
.pos-stage.scatter .pw-chart { opacity: .3; }
.pos-stage.scatter .pl-ghost .pc { opacity: 1; transition-delay: 0ms; }
.pos-stage.scatter .pl-live .pc:nth-child(1) { transform: translate(-50cqw, -6cqw) rotate(-3deg); }
.pos-stage.scatter .pl-live .pc:nth-child(2) { transform: translate(-42cqw, -1cqw) rotate(2deg); }
.pos-stage.scatter .pl-live .pc:nth-child(3) { transform: translate(-52cqw, 4cqw) rotate(-1.5deg); }
.pos-stage.scatter .pl-live .pc:nth-child(4) { transform: translate(-44cqw, 9cqw) rotate(2.5deg); }
.pos-stage .pw { transition-delay: 900ms; }
.pos-stage .pw-chart { transition-delay: 1350ms; }

/* Feature story */
.how-h { max-width: 18ch; }
.story { margin-top: clamp(48px, 2rem + 4vw, 96px); position: relative; }
.steps { display: grid; gap: 96px; }
.step { display: grid; gap: 32px; position: relative; }
.step-text { display: grid; gap: 16px; max-width: 46ch; }
.step-text p { font-size: var(--t-read); color: var(--muted); }
.step .sub { position: absolute; left: 0; width: 1px; pointer-events: none; }

.stage {
  position: relative; container-type: inline-size;
  aspect-ratio: 100 / var(--h, 64);
  max-width: 100%;
  background: var(--edge);
  border-radius: var(--radius-card);
}
.stage picture { display: contents; }
.stage .shot {
  position: absolute;
  left: calc((4 + var(--x) * .92) * 1cqw); top: calc((4 + var(--y) * .92) * 1cqw); width: calc(var(--w) * .92cqw);
  height: auto;
  border: 1px solid var(--shot-line);
  border-radius: max(6px, 1.1cqw);
  background: var(--app-card);
  box-shadow: var(--shot-ring), var(--shadow-1);
  filter: var(--shot-filter);
}
.stage-tiles .shot { border-radius: max(4px, .8cqw); }
/* screens that take turns in the pinned frame: everywhere else they stack, so nothing is hidden */
.stage.cycle { aspect-ratio: auto; display: flex; flex-direction: column; align-items: center; gap: 16px; padding: 3.68%; }
.stage.cycle .shot { position: static; width: calc(var(--sw, 100) * 1%); }
.frame { display: none; }
.stage .tile-phone { display: none; }
.story:not(.pinned) .step-alt { display: none; }

@media (min-width: 900px) {
  .step { grid-template-columns: minmax(0, 9fr) minmax(0, 16fr); gap: 64px; align-items: center; }
  /* pinned layout: only once the script has built the frame (story.pinned), so without it every step keeps its screen */
  .story.pinned { display: grid; grid-template-columns: minmax(0, 9fr) minmax(0, 16fr); gap: 64px; container-type: inline-size; }
  .story.pinned .steps { gap: 0; }
  .story.pinned .step { display: flex; align-items: center; min-height: min(60vh, 540px); padding-block: 24px; }
  .story.pinned .step[data-n] { min-height: calc(var(--n) * min(50vh, 440px)); align-items: flex-start; }
  .story.pinned .step[data-n] .step-text { position: sticky; top: calc(50vh - 128px); }
  .story.pinned .step .stage { display: none; }
  .step-text h3, .step-text p { transition: color 400ms var(--ease-out); }
  .story.pinned .step:not(.is-active) .step-text h3,
  .story.pinned .step:not(.is-active) .step-text p { color: var(--faint); }
  .story.pinned .frame {
    display: block; position: sticky; align-self: start; aspect-ratio: 100 / 64;
    /* half the frame's height is (story width - gap) x 16/25 x .64 / 2 */
    top: max(88px, calc(50vh - (100cqw - 64px) * .2048));
    margin-top: calc(min(60vh, 540px) / 2 - (100cqw - 64px) * .2048);
  }
  .story.pinned .frame .stage { position: absolute; inset: 0 0 auto 0; }
  .story.pinned .frame .stage.cycle { display: block; aspect-ratio: 100 / var(--h, 64); padding: 0; }
  .story.pinned .frame .stage.cycle .shot {
    position: absolute;
    left: calc((4 + var(--x) * .92) * 1cqw); top: calc((4 + var(--y) * .92) * 1cqw); width: calc(var(--w) * .92cqw);
  }
  .story.pinned .frame .stage .tile-phone { display: none; }
  /* the change overlaps: the old screen fades out over 200 ms while the new one rises in from 80 ms, so the frame is never empty */
  .frame .stage { background: var(--edge); opacity: 0; transition: opacity 200ms var(--ease-move); }
  .frame .stage.is-on { opacity: 1; transition: opacity 320ms var(--ease-out) 80ms; z-index: 1; }
  .frame .stage .shot { opacity: 0; transform: translateY(12px); transition: opacity 200ms var(--ease-move), transform 500ms var(--ease-out); }
  .frame .stage.is-on .shot { opacity: 1; transform: none; transition: opacity 360ms var(--ease-out), transform 600ms var(--ease-out); transition-delay: calc(80ms + var(--d, 0) * 90ms); }
  .frame .stage.cycle .shot { transform: none; transition: opacity 200ms var(--ease-move); }
  .frame .stage.cycle.is-on .shot.k-on { opacity: 1; transition: opacity 320ms var(--ease-out) 80ms; }
  .frame .stage.cycle.is-on .shot:not(.k-on) { opacity: 0; }
  .cyc-dots { position: absolute; left: 50%; bottom: 1.5cqw; transform: translateX(-50%); display: flex; gap: 6px; }
  .cyc-dots i { width: 6px; height: 6px; border-radius: 50%; background: var(--dot); transition: background-color 300ms var(--ease-out); }
  .cyc-dots i.on { background: var(--accent); }
  .frame-rail { position: absolute; left: -32px; top: 0; bottom: 0; width: 2px; background: var(--line); border-radius: 2px; }
  .frame-rail i { position: absolute; inset: 0 0 auto; height: 100%; background: var(--accent); border-radius: 2px; transform-origin: top; transform: scaleY(var(--p, 0)); transition: transform 600ms var(--ease-move); }
}
@media (min-width: 900px) and (max-height: 640px) {
  .story.pinned .frame { top: 80px; }
}

/* Depth */
.depth { background: var(--card); border-block: 1px solid var(--line); }
.depth-list {
  list-style: none; margin: clamp(40px, 2rem + 2vw, 72px) 0 0; padding: 0;
  display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 0 32px;
}
.depth-list li {
  padding: 24px 0 32px; border-top: 1px solid var(--line);
  font-size: clamp(1.125rem, 1rem + .5vw, 1.375rem); line-height: 1.3; font-weight: var(--w-medium); letter-spacing: -.01em;
}
.depth-list .n { color: var(--accent); font-variant-numeric: tabular-nums; font-weight: var(--w-semi); display: inline-block; text-align: left; }
.depth-list .n[data-count] { min-width: 2ch; }

/* Hora, the assistant in the paid plan */
.hora-row { display: grid; grid-template-columns: minmax(0, 5fr) minmax(0, 7fr); gap: 48px 72px; align-items: center; }
.hora-row-2 { margin-top: clamp(72px, 3rem + 5vw, 144px); grid-template-columns: minmax(0, 7fr) minmax(0, 5fr); }
.hora-row-2 .hora-fig { grid-column: 1; grid-row: 1; }
.hora-row-2 .hora-copy { grid-column: 2; grid-row: 1; }
.hora-copy { display: grid; gap: 20px; align-content: start; }
.hora-copy .h2 { max-width: 11ch; }
.hora-copy .lede { max-width: 34ch; }
.hora-copy > p:not(.lede):not(.eyebrow) { font-size: var(--t-read); color: var(--muted); max-width: 38ch; }
.hora-copy > .eyebrow { margin-bottom: -8px; }
.hora-fig { margin: 0; min-width: 0; }

/* The Hora design: real HTML in the app's light look, so it stays sharp and can play */
.hs-win {
  background: var(--app-card); color: var(--app-ink);
  border: 1px solid var(--shot-line); border-radius: 14px; overflow: hidden;
  box-shadow: var(--shot-ring), var(--shadow-2);
  font-size: 13px; line-height: 1.42; text-align: left;
}
.hs-body { display: grid; grid-template-columns: minmax(0, 37fr) minmax(0, 63fr); background: var(--app-edge); }
.hs-desk { padding: 14px; display: grid; gap: 10px; align-content: start; }
.hs-desk img { width: 100%; border: 1px solid var(--app-line); border-radius: 8px; background: var(--app-card); }
.hs-panel { background: var(--app-card); border-left: 1px solid var(--app-line); padding: 14px 16px 16px; display: flex; flex-direction: column; gap: 10px; }
.hs-head { display: flex; align-items: center; gap: 8px; }
.hs-head b { font-weight: var(--w-semi); }
.hs-tag { font-size: 11px; line-height: 1.3; padding: 1px 6px; border: 1px solid var(--app-line); border-radius: 4px; color: var(--app-muted); }
.hs-req { align-self: flex-end; max-width: 88%; background: var(--app-bubble); border-radius: 10px; padding: 8px 12px; }
.hs-card { border: 1px solid var(--app-line); border-radius: 10px; padding: 10px 12px; display: grid; gap: 4px; }
.hs-ct { display: flex; align-items: center; gap: 6px; font-weight: var(--w-semi); }
.hs-tick { width: 14px; height: 14px; flex: none; fill: none; stroke: var(--app-accent); stroke-width: 1.75; stroke-linecap: round; stroke-linejoin: round; }
.hs-tick path { stroke-dasharray: 1; stroke-dashoffset: 0; }
.hs-cm, .hs-cl { color: var(--app-muted); font-size: 12px; }
.hs-cf { display: flex; align-items: center; justify-content: space-between; flex-wrap: wrap; gap: 6px 12px; margin-top: 2px; }
.hs-btns { display: flex; gap: 6px; }
.hs-btns span { border: 1px solid var(--app-line); border-radius: 6px; padding: 2px 9px; font-size: 12px; background: var(--app-card); }
.hs-btns span:first-child { background: var(--app-btn); border-color: var(--app-btn); color: #FFFFFF; }
.hs-chips { display: flex; flex-wrap: wrap; align-items: center; gap: 6px; margin-top: 2px; }
.hs-chip { background: var(--app-chip); color: var(--app-chip-ink); border-radius: 999px; padding: 2px 8px; font-size: 12px; }
.hs-input { display: grid; margin-top: 2px; border: 1px solid var(--app-line); border-radius: 8px; padding: 8px 10px; color: var(--app-muted); }
.hs-input > span { grid-area: 1 / 1; }
.hs-typed { color: var(--app-ink); opacity: 0; }
.hs.pre .hs-req, .hs.pre .hs-card { opacity: 0; }
.js:not(.static):not(.rm) .hs.go .hs-ph { animation: ph-out 1100ms linear 150ms both; }
.js:not(.static):not(.rm) .hs.go .hs-typed { animation: typed-in 1100ms linear 150ms both; }
.js:not(.static):not(.rm) .hs.go .hs-req { animation: rise 520ms var(--ease-out) 1250ms both; }
.js:not(.static):not(.rm) .hs.go .hs-c1 { animation: rise 600ms var(--ease-out) 1900ms both; }
.js:not(.static):not(.rm) .hs.go .hs-c2 { animation: rise 600ms var(--ease-out) 2600ms both; }
.js:not(.static):not(.rm) .hs.go .hs-c3 { animation: rise 600ms var(--ease-out) 3300ms both; }
.js:not(.static):not(.rm) .hs.go .hs-c1 .hs-tick path { animation: tick 450ms var(--ease-move) 2250ms both; }
.js:not(.static):not(.rm) .hs.go .hs-c2 .hs-tick path { animation: tick 450ms var(--ease-move) 2950ms both; }
.js:not(.static):not(.rm) .hs.go .hs-c3 .hs-tick path { animation: tick 450ms var(--ease-move) 3650ms both; }
@keyframes ph-out { 0% { opacity: 1; } 14% { opacity: 0; } 86% { opacity: 0; } 100% { opacity: 1; } }
@keyframes typed-in { 0% { opacity: 0; } 14% { opacity: 1; } 80% { opacity: 1; } 100% { opacity: 0; } }

/* The booking page design: the real design image, with the client's three taps drawn over it */
.bk-win {
  position: relative; container-type: inline-size;
  background: var(--app-card); border: 1px solid var(--shot-line); border-radius: 14px; overflow: hidden;
  box-shadow: var(--shot-ring), var(--shadow-2);
}
.bk-win picture { display: block; }
.bk-win img { width: 100%; }
.bk-ring { position: absolute; border-radius: .9cqw; outline: 2px solid var(--app-accent); outline-offset: 3px; opacity: 0; pointer-events: none; }
.bk-r1 { left: 22.71%; top: 55.6%; width: 4.35%; height: 5.49%; }
.bk-r2 { left: 3.38%; top: 76.04%; width: 6.64%; height: 6.37%; }
.bk-r3, .bk-booked { left: 3.38%; top: 84.62%; width: 80.19%; height: 7.47%; }
.bk-r3 { border-radius: .72cqw; }
.bk-booked {
  position: absolute; display: flex; align-items: center; gap: .8cqw; padding-left: 1.69cqw;
  background: var(--app-btn); color: #FFFFFF; border-radius: .72cqw;
  font-size: 1.57cqw; font-weight: var(--w-medium); line-height: 1; white-space: nowrap;
}
.bk-booked svg { width: 1.9cqw; height: 1.9cqw; flex: none; fill: none; stroke: currentColor; stroke-width: 2; stroke-linecap: round; stroke-linejoin: round; }
.bk.pre .bk-booked { opacity: 0; }
.js:not(.static):not(.rm) .bk.go .bk-ring { animation: ring 900ms var(--ease-move) both; }
.js:not(.static):not(.rm) .bk.go .bk-r1 { animation-delay: 300ms; }
.js:not(.static):not(.rm) .bk.go .bk-r2 { animation-delay: 1150ms; }
.js:not(.static):not(.rm) .bk.go .bk-r3 { animation-delay: 2000ms; }
.js:not(.static):not(.rm) .bk.go .bk-booked { animation: fade-in 450ms var(--ease-out) 2700ms both; }
@keyframes ring { 0% { opacity: 0; transform: scale(1.04); } 22% { opacity: 1; transform: none; } 78% { opacity: 1; transform: none; } 100% { opacity: 0; transform: none; } }

/* Trust */
.trust-grid { margin-top: clamp(48px, 2rem + 3vw, 88px); display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 48px 40px; }
.trust-item { display: grid; gap: 12px; align-content: start; justify-items: start; }
.trust-item p { color: var(--muted); }
.ti { display: block; height: 32px; margin: 0 0 8px; overflow: visible; fill: none; stroke: var(--accent); stroke-width: 1.5; stroke-linecap: round; stroke-linejoin: round; }
.ti [pathLength] { stroke-dasharray: 1; stroke-dashoffset: 0; transition: stroke-dashoffset 1100ms var(--ease-move); transition-delay: calc(var(--o, 0) * 140ms); }
.js:not(.static):not(.rm) .trust-item.pre .ti [pathLength] { stroke-dashoffset: 1; }

/* Plans */
.plans { background: var(--edge); border-block: 1px solid var(--line); }
.plan-grid { margin-top: clamp(48px, 2rem + 3vw, 88px); display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 24px; align-items: start; }
.plan {
  border-radius: var(--radius-card); padding: clamp(28px, 1.25rem + 1.5vw, 48px);
  display: flex; flex-direction: column; gap: 20px;
  transition: transform 300ms var(--ease-out);
}
.plan:hover { transform: translateY(-4px); }
.plan-free { background: var(--card); border: 1.5px solid var(--soft-line); box-shadow: var(--shadow-2); }
.plan-paid { background: transparent; border: 1px solid var(--line); }
.pill {
  align-self: flex-start; display: inline-flex; align-items: center;
  font-size: 12px; font-weight: var(--w-medium); line-height: 1.3; letter-spacing: .01em;
  padding: 4px 10px; border-radius: 999px; color: var(--accent); background: var(--soft);
  margin-bottom: -6px;
}
.pill-solid { color: var(--on-accent); background: var(--accent); }
.plan-intro { font-size: var(--t-read); color: var(--muted); max-width: 44ch; }
.ticks { list-style: none; margin: 4px 0 0; padding: 0; display: grid; gap: 12px; }
.ticks li { position: relative; padding-left: 28px; line-height: 1.5; }
.ticks li::before {
  content: ""; position: absolute; left: 2px; top: .42em; width: 12px; height: 7px;
  border-left: 1.75px solid var(--accent); border-bottom: 1.75px solid var(--accent);
  transform: rotate(-45deg); transform-origin: center;
}
.plan-paid .ticks li { color: var(--muted); }
.plan-cta { margin-top: 12px; align-self: flex-start; }

/* Pre-book, opened by the closing band */
.prebook { padding-bottom: calc(var(--sec) * .5); }
.prebook + .faq { padding-top: calc(var(--sec) * .5); }
.close-band { display: flex; flex-direction: column; align-items: center; text-align: center; }
.close-mark { width: clamp(48px, 3rem + 1.5vw, 64px); height: auto; aspect-ratio: 1; color: var(--mark); overflow: visible; }
.close-tag { margin-top: 20px; font-size: clamp(2.5rem, 1.2rem + 5.4vw, 5.5rem); line-height: 1.04; letter-spacing: -.04em; }
.close-band .lede { margin-top: 20px; max-width: 34ch; }
.close-band.pre .mk-fill, .close-band.pre .close-tag, .close-band.pre .lede { opacity: 0; }
.js:not(.static):not(.rm) .close-band.go .mk-line { animation: mk-draw 1600ms var(--ease-move) both; }
.js:not(.static):not(.rm) .close-band.go .mk-fill { animation: fade-in 500ms var(--ease-out) 950ms both; }
.js:not(.static):not(.rm) .close-band.go .close-tag { animation: rise 700ms var(--ease-out) 300ms both; }
.js:not(.static):not(.rm) .close-band.go .lede { animation: rise 700ms var(--ease-out) 450ms both; }

.pb-card { margin: clamp(40px, 2rem + 2vw, 64px) auto 0; max-width: 640px; background: var(--card); border: 1px solid var(--line); border-radius: var(--radius-card); padding: clamp(24px, 1rem + 2vw, 40px); box-shadow: var(--shadow-1); }
.pb-form { display: grid; gap: 20px; }
.pb-intro { color: var(--muted); font-size: var(--t-read); }
.field { display: grid; gap: 8px; margin: 0; padding: 0; border: 0; min-width: 0; }
.field label, .field legend { font-size: var(--t-small); font-weight: var(--w-medium); color: var(--ink); padding: 0; }
.field legend { margin-bottom: 8px; }
.field input[type="text"], .field input[type="email"], .field input[type="tel"] {
  width: 100%; min-height: 48px; padding: 0 16px;
  border: 1px solid var(--field-line); border-radius: 12px; background: var(--bg); color: var(--ink);
  font: inherit; font-size: var(--t-body);
  transition: border-color 150ms var(--ease-out);
}
.field input:hover { border-color: var(--faint); }
.field input:focus-visible { outline: 2px solid var(--ink); outline-offset: 2px; border-color: var(--ink); }
.field input[aria-invalid="true"] { border-color: var(--accent); }
.seg { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 8px; }
.seg input { position: absolute; opacity: 0; width: 1px; height: 1px; }
.seg label {
  display: flex; align-items: center; justify-content: center; text-align: center;
  min-height: 48px; padding: 8px 10px; border-radius: 12px;
  border: 1px solid var(--field-line); background: var(--bg); color: var(--ink);
  font-weight: var(--w-regular); font-size: var(--t-small); line-height: 1.3; white-space: nowrap; cursor: pointer;
  transition: border-color 150ms var(--ease-out), background-color 150ms var(--ease-out);
}
.seg label:hover { border-color: var(--faint); }
.seg input:checked + label { background: var(--soft); border-color: var(--accent); color: var(--ink); font-weight: var(--w-medium); }
.seg input:focus-visible + label { outline: 2px solid var(--ink); outline-offset: 2px; }
.role[aria-invalid="true"] .seg label { border-color: var(--accent); }
.hp { position: absolute !important; left: -9999px; width: 1px; height: 1px; opacity: 0; }
.fine { font-size: var(--t-small); color: var(--faint); }
.fine a { color: var(--muted); }
.pb-error { font-size: var(--t-small); color: var(--accent); }
.pb-done { display: grid; justify-items: start; gap: 20px; padding-block: 16px; outline: none; }
.done-mark { width: 56px; height: 56px; color: var(--mark); }
.done-text { font-size: var(--t-lede); line-height: 1.5; color: var(--ink); max-width: 34ch; }
.js:not(.rm) .pb-done.play .mk-line { animation: mk-draw 1300ms var(--ease-move) both; }
.js:not(.rm) .pb-done.play .mk-fill { animation: fade-in 400ms var(--ease-out) 800ms both; }
.js:not(.rm) .pb-done.play .done-text { animation: rise 600ms var(--ease-out) 300ms both; }

/* Questions */
.faq-grid { display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 2fr); gap: 32px 72px; align-items: start; }
.faq-list { border-top: 1px solid var(--line); }
.faq-list details { border-bottom: 1px solid var(--line); }
.faq-list summary {
  list-style: none; cursor: pointer; display: flex; justify-content: space-between; align-items: center; gap: 24px;
  padding: 24px 0; font-size: var(--t-h4); font-weight: var(--w-medium); letter-spacing: -.01em; line-height: 1.3;
}
.faq-list summary::-webkit-details-marker { display: none; }
.faq-list summary::after {
  content: ""; flex: none; width: 12px; height: 12px; margin-right: 4px;
  border-right: 1.5px solid var(--faint); border-bottom: 1.5px solid var(--faint);
  transform: translateY(-3px) rotate(45deg); transition: transform 200ms var(--ease-out);
}
.faq-list details[open] summary::after { transform: translateY(3px) rotate(-135deg); }
.faq-list details p { padding: 0 48px 28px 0; color: var(--muted); font-size: var(--t-read); max-width: 64ch; }
.js:not(.rm) .faq-list details[open] p { animation: fade-in 200ms var(--ease-out); }

/* Footer */
.foot { border-top: 1px solid var(--line); padding-block: 56px calc(40px + env(safe-area-inset-bottom, 0px)); }
.foot-in { display: grid; grid-template-columns: 1fr auto; gap: 32px; align-items: start; }
.foot-tag { margin-top: 12px; color: var(--muted); }
.foot-nav { display: flex; flex-wrap: wrap; gap: 8px 28px; }
.foot-nav a { text-decoration: none; color: var(--muted); font-size: var(--t-small); min-height: 32px; display: inline-flex; align-items: center; }
.foot-nav a:hover { color: var(--ink); }
.foot-copy { grid-column: 1 / -1; font-size: var(--t-meta); color: var(--faint); padding-top: 24px; border-top: 1px solid var(--line); }

/* Tablet and phone */
@media (max-width: 1080px) {
  .depth-list { grid-template-columns: repeat(3, minmax(0, 1fr)); }
  .trust-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); }
}
@media (max-width: 899px) {
  .pos-grid, .faq-grid { grid-template-columns: minmax(0, 1fr); }
  .plan-grid { grid-template-columns: minmax(0, 1fr); }
  .hora-row, .hora-row-2 { grid-template-columns: minmax(0, 1fr); gap: 32px; }
  .hora-row-2 .hora-fig, .hora-row-2 .hora-copy { grid-column: 1; grid-row: auto; }
  .steps { gap: 80px; }
  .depth-list { grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 0 24px; }
}
@media (max-width: 640px) {
  .bar-in { height: 56px; gap: 8px; }
  .brand-mark { width: 24px; height: 24px; }
  .brand-word { font-size: 1rem; }
  .btn-sm { min-height: 40px; padding: 0 14px; font-size: .8125rem; }
  .hero-actions { width: 100%; flex-direction: column; align-items: stretch; }
  .hero-lede { font-size: 1.125rem; }
  .mac-bar, .hs-bar { height: 20px; gap: 6px; padding-left: 10px; }
  .mac-bar i, .hs-bar i { width: 8px; height: 8px; }
  .mac { border-radius: 10px; }
  .trust-grid { grid-template-columns: minmax(0, 1fr); gap: 40px; }
  .depth-list { grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 0 16px; }
  .depth-list li { padding: 16px 0 20px; font-size: var(--t-small); }
  .seg { grid-template-columns: minmax(0, 1fr); }
  .seg label { justify-content: flex-start; padding-inline: 16px; font-size: var(--t-body); }
  .foot-in { grid-template-columns: minmax(0, 1fr); }
  .foot-nav { gap: 8px 20px; }
  .faq-list details p { padding-right: 0; }
  .stage, .stage.cycle { border-radius: 14px; aspect-ratio: auto; display: flex; flex-direction: column; gap: 12px; padding: 12px; }
  .stage .shot, .stage.cycle .shot { position: static; width: 100%; border-radius: 8px; }
  .stage-tiles .tile-extra, .stage-tiles .tile-main { display: none; }
  .stage .tile-phone { display: block; }

  /* positioning stage, phone composition: no chart, the four rows stacked at full width, text at 11 px or more */
  .pw { width: 100cqw; border-radius: 3.5cqw; }
  .pw .mac-bar { height: 6cqw; border-radius: 3.5cqw 3.5cqw 0 0; gap: 1.6cqw; padding-left: 3cqw; }
  .pw .mac-bar i { width: 2.2cqw; height: 2.2cqw; }
  .pw-body { grid-template-columns: minmax(0, 1fr); padding: 4cqw; }
  .pw-chart { display: none; }
  .pl { grid-column: 1; gap: 2.4cqw; }
  .pc { padding: 2.2cqw 2.8cqw 2.6cqw; border-radius: 2cqw; gap: 1.2cqw; }
  .pc img { width: calc(var(--psw) / 690 * 100%); }
  .pos-stage.scatter .pw { transform: none; }
  .pos-stage.scatter .pl-live .pc:nth-child(1) { transform: translate(-6cqw, -4cqw) rotate(-4deg); }
  .pos-stage.scatter .pl-live .pc:nth-child(2) { transform: translate(5cqw, 6cqw) rotate(3deg); }
  .pos-stage.scatter .pl-live .pc:nth-child(3) { transform: translate(-4cqw, 14cqw) rotate(-2deg); }
  .pos-stage.scatter .pl-live .pc:nth-child(4) { transform: translate(6cqw, 24cqw) rotate(3deg); }
  .pos-stage .pw { transition-delay: 0ms; }

  /* Hora designs on a phone: the panel alone, and the booking page cropped to its left part */
  .hs-body { grid-template-columns: minmax(0, 1fr); }
  .hs-desk { display: none; }
  .hs-panel { border-left: 0; padding: 12px; }
  .hs-win, .bk-win { border-radius: 10px; }
  /* the phone crop ends just past the pay button, so the overlay keeps the button's own two round ends */
  .bk-r1 { left: 26.11%; width: 5%; }
  .bk-r2 { left: 3.89%; width: 7.64%; }
  .bk-r3, .bk-booked { left: 3.89%; width: 92.22%; }
  .bk-r3, .bk-booked { border-radius: .83cqw; }
  .bk-booked { font-size: 1.81cqw; padding-left: 1.94cqw; gap: .92cqw; }
  .bk-booked svg { width: 2.18cqw; height: 2.18cqw; }
  .bk-ring { border-radius: 1.04cqw; }
}
@media (max-width: 480px) {
  .bar-cta { min-height: 40px; padding: 10px 16px; }
  .bar-cta .lbl-long { display: none; }
  .bar-cta .lbl-short { display: inline; }
}

/* Reduced motion: final state, no travel; short fades only */
@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  .js [data-reveal] { transition: opacity 150ms linear; transform: none !important; }
  .pw, .pc, .pw-chart { transition: none !important; }
  .plan, .btn, .faq-list summary::after { transition: none; }
  .plan:hover { transform: none; }
  .ti [pathLength] { transition: none !important; stroke-dashoffset: 0 !important; }
}
/* Static switch for screenshots: everything at rest */
.static *, .static *::before, .static *::after { animation: none !important; transition: none !important; }
.static [data-reveal].pre { opacity: 1; transform: none; }
