:root {
  --ink: #0c0b0a;
  --ink-2: #141210;
  --paper: #efebe4;
  --dim: #948e85;
  --line: #2a2724;
  --red: #c53a2c;
  --sans: "Archivo", "Helvetica Neue", Arial, sans-serif;

  --ui-bg: #f6f5f2;
  --ui-panel: #ffffff;
  --ui-line: #e7e4df;
  --ui-text: #1d1b19;
  --ui-mute: #7a756e;
}

* { box-sizing: border-box; margin: 0; padding: 0; }
html, body { background: var(--ink); }
body { color: var(--paper); font-family: var(--sans); font-size: 17px; line-height: 1.6; -webkit-font-smoothing: antialiased; overflow-x: hidden; }
a { color: inherit; text-decoration: none; }
img, svg { display: block; }

.wrap { max-width: 1180px; margin: 0 auto; padding-left: clamp(16px, 5vw, 48px); padding-right: clamp(16px, 5vw, 48px); }

/* Header */

.site-head { position: absolute; top: 0; left: 0; right: 0; z-index: 20; }
.site-head .wrap { display: flex; justify-content: space-between; align-items: center; padding-top: 24px; padding-bottom: 24px; }
.mark { font-weight: 700; font-size: 17px; letter-spacing: 0.02em; text-transform: uppercase; white-space: nowrap; }
.dot { display: inline-block; width: 8px; height: 8px; margin-left: 7px; border-radius: 50%; background: var(--red); vertical-align: 2px; animation: blink 1.6s steps(2) infinite; }
@keyframes blink { 50% { opacity: 0.15; } }
.site-head nav { display: flex; align-items: center; gap: clamp(16px, 2.6vw, 32px); font-size: 15px; }
.site-head nav a:not(.btn) { color: var(--dim); transition: color 0.2s; }
.site-head nav a:not(.btn):hover, .site-head nav a[aria-current] { color: var(--paper); }

.btn { display: inline-block; padding: 11px 20px; background: var(--paper); color: var(--ink); font-weight: 600; font-size: 15px; border: 1px solid var(--paper); transition: background 0.2s, color 0.2s; cursor: pointer; font-family: inherit; }
.btn:hover { background: transparent; color: var(--paper); }
.btn.ghost { background: transparent; color: var(--paper); border-color: #4a4540; }
.btn.ghost:hover { border-color: var(--paper); }
.btn.red { background: var(--red); border-color: var(--red); color: #fff; }
.btn.red:hover { background: transparent; color: var(--paper); }

/* Hero with moving light */

.hero { position: relative; overflow: hidden; padding-top: clamp(150px, 18vw, 210px); padding-bottom: clamp(64px, 8vw, 110px); }
.light { position: absolute; inset: -25%; pointer-events: none; filter: blur(60px); opacity: 0.9; }
.light.l1 { background: radial-gradient(30% 28% at 22% 28%, rgba(197, 58, 44, 0.65), transparent 70%), radial-gradient(26% 24% at 78% 22%, rgba(233, 150, 62, 0.4), transparent 70%); animation: sway1 19s ease-in-out infinite alternate; }
.light.l2 { background: radial-gradient(34% 30% at 62% 70%, rgba(72, 92, 170, 0.42), transparent 70%), radial-gradient(22% 20% at 30% 75%, rgba(197, 58, 44, 0.3), transparent 70%); animation: sway2 27s ease-in-out infinite alternate; }
@keyframes sway1 { 0% { transform: translate(0, 0) scale(1); } 50% { transform: translate(6%, 4%) scale(1.08); } 100% { transform: translate(-5%, 7%) scale(0.96); } }
@keyframes sway2 { 0% { transform: translate(0, 0) rotate(0deg); } 50% { transform: translate(-7%, -3%) rotate(8deg); } 100% { transform: translate(4%, -6%) rotate(-6deg); } }

.grain::after { content: ""; position: absolute; inset: -50%; pointer-events: none; opacity: 0.09; background-image: url("data:image/svg+xml;utf8,<svg xmlns='http://www.w3.org/2000/svg' width='220' height='220'><filter id='n'><feTurbulence type='fractalNoise' baseFrequency='0.85' numOctaves='2' stitchTiles='stitch'/></filter><rect width='100%' height='100%' filter='url(%23n)'/></svg>"); animation: grain 0.9s steps(5) infinite; }
@keyframes grain { 0% { transform: translate(0, 0); } 25% { transform: translate(-3%, 2%); } 50% { transform: translate(2%, -3%); } 75% { transform: translate(-2%, -1%); } 100% { transform: translate(1%, 3%); } }

/* The record light */

.tally { position: relative; z-index: 2; width: clamp(120px, 15vw, 190px); aspect-ratio: 1; margin: 0 auto clamp(44px, 5vw, 64px); }
.tally::before { content: ""; position: absolute; inset: -55%; border-radius: 50%; background: radial-gradient(circle, rgba(214, 56, 43, 0.38) 0%, rgba(214, 56, 43, 0.12) 38%, transparent 68%); animation: bloom 4.2s ease-in-out infinite; }
.tally .ring { position: absolute; inset: -14%; border-radius: 50%; border: 1px solid rgba(239, 235, 228, 0.12); }
.tally .ring.two { inset: -30%; border-color: rgba(239, 235, 228, 0.06); }
.tally .core { position: absolute; inset: 0; border-radius: 50%; background: radial-gradient(circle at 50% 50%, #ff5a44 0%, #e23b2b 34%, #b3251a 62%, #6e140d 86%, #3a0906 100%); box-shadow: 0 0 40px rgba(226, 59, 43, 0.75), 0 0 120px rgba(226, 59, 43, 0.35), inset 0 0 30px rgba(0, 0, 0, 0.45); animation: pulse 4.2s ease-in-out infinite; }
.tally .core::after { content: ""; position: absolute; inset: 30%; border-radius: 50%; background: radial-gradient(circle, rgba(255, 200, 180, 0.55), transparent 70%); filter: blur(6px); }
@keyframes pulse { 0%, 100% { filter: brightness(0.92); transform: scale(1); } 50% { filter: brightness(1.12); transform: scale(1.025); } }
@keyframes bloom { 0%, 100% { opacity: 0.7; transform: scale(0.96); } 50% { opacity: 1; transform: scale(1.06); } }

.hero-copy { position: relative; z-index: 2; }
.hero h1 { font-weight: 500; font-size: clamp(44px, 7.4vw, 104px); line-height: 1; letter-spacing: -0.03em; max-width: 11em; }
.hero p { max-width: 32em; margin-top: clamp(28px, 4vw, 44px); color: var(--dim); font-size: clamp(17px, 1.5vw, 20px); }
.hero .ctas { margin-top: 36px; display: flex; gap: 12px; flex-wrap: wrap; }
.hero p.source { margin-top: 22px; font-size: 13px; color: #6f6a63; }
.hero p.source a { border-bottom: 1px solid #4a4540; }

.hero-shot { position: relative; z-index: 2; margin-top: clamp(56px, 7vw, 90px); }

/* Product window (light UI, modeled on the real app) */

.win { font-size: clamp(7px, 0.98vw, 13.5px); background: var(--ui-bg); color: var(--ui-text); border: 1px solid rgba(255, 255, 255, 0.14); box-shadow: 0 50px 120px rgba(0, 0, 0, 0.6), 0 0 0 1px rgba(0, 0, 0, 0.4); overflow: hidden; }
.win-bar { display: flex; align-items: center; justify-content: center; height: 2.6em; background: #ecebe7; border-bottom: 1px solid var(--ui-line); color: var(--ui-mute); font-size: 0.9em; }
.win-body { display: grid; grid-template-columns: 13.5em 1fr; min-height: 34em; }
.side { background: var(--ui-panel); border-right: 1px solid var(--ui-line); padding: 1.4em 1em; }
.side .brand { font-weight: 700; letter-spacing: 0.02em; font-size: 1.05em; padding: 0 0.6em 1.2em; }
.side .brand i { display: inline-block; width: 0.55em; height: 0.55em; border-radius: 50%; background: var(--red); margin-left: 0.4em; vertical-align: 0.1em; }
.side a { display: flex; align-items: center; gap: 0.75em; padding: 0.55em 0.6em; border-radius: 0.4em; color: #4b4741; }
.side a svg { width: 1.3em; height: 1.3em; fill: none; stroke: currentColor; stroke-width: 2; stroke-linecap: round; stroke-linejoin: round; }
.side a.on { background: #fbeceb; color: var(--red); font-weight: 600; }
.main { padding: 1.6em 1.8em; display: grid; grid-template-columns: 1.55fr 1fr; gap: 1.2em; align-content: start; }
.main h4 { font-size: 1.35em; font-weight: 600; grid-column: 1 / -1; }
.panel { background: var(--ui-panel); border: 1px solid var(--ui-line); border-radius: 0.6em; padding: 1.1em 1.2em; }
.panel .label { color: var(--ui-mute); font-size: 0.85em; }
.timer { grid-column: 1 / -1; display: flex; align-items: center; gap: 1.2em; }
.timer .what { flex: 1; }
.timer .what b { display: block; font-weight: 600; }
.chip { display: inline-block; font-size: 0.82em; padding: 0.15em 0.6em; border-radius: 1em; margin-right: 0.4em; }
.chip.edit { background: #e8eaf6; color: #3f51b5; }
.chip.film { background: #fde7e7; color: #c62828; }
.chip.meet { background: #fdebe5; color: #e64a19; }
.chip.rec { background: #f3e5f5; color: #8e24aa; }
.timer .clock { font-variant-numeric: tabular-nums; font-size: 1.9em; font-weight: 600; letter-spacing: -0.01em; }
.timer .stop { width: 2.4em; height: 2.4em; border-radius: 50%; background: var(--red); display: grid; place-items: center; }
.timer .stop::after { content: ""; width: 0.75em; height: 0.75em; background: #fff; border-radius: 0.1em; }
.bars { display: flex; align-items: flex-end; gap: 0.7em; height: 9em; margin-top: 1em; }
.bars div { flex: 1; display: flex; flex-direction: column; align-items: center; gap: 0.4em; height: 100%; justify-content: flex-end; color: var(--ui-mute); font-size: 0.8em; }
.bars span { width: 100%; background: #ead6d3; border-radius: 0.25em 0.25em 0 0; transform-origin: bottom; animation: grow 1.4s cubic-bezier(.2, .7, .2, 1) both; }
.bars div:nth-child(4) span { background: var(--red); }
@keyframes grow { from { transform: scaleY(0); } }
.total { display: flex; justify-content: space-between; align-items: baseline; }
.total b { font-size: 1.6em; font-weight: 600; }
.entries .row { display: flex; justify-content: space-between; gap: 1em; padding: 0.65em 0; border-top: 1px solid var(--ui-line); }
.entries .row:first-of-type { border-top: 0; }
.entries .row span:last-child { font-variant-numeric: tabular-nums; color: var(--ui-mute); white-space: nowrap; }
.entries .row.new { animation: slidein 0.6s ease both; }
@keyframes slidein { from { opacity: 0; transform: translateY(-0.6em); } }
.proj .p { margin-top: 0.85em; }
.proj .p div { display: flex; justify-content: space-between; font-size: 0.92em; }
.proj .p em { font-style: normal; color: var(--ui-mute); }
.proj .meter { height: 0.45em; background: #f0eeea; border-radius: 1em; margin-top: 0.35em; overflow: hidden; }
.proj .meter i { display: block; height: 100%; background: var(--red); border-radius: 1em; animation: fill 1.6s cubic-bezier(.2, .7, .2, 1) both; }
@keyframes fill { from { width: 0; } }

/* Feature rows */

.feature { display: grid; grid-template-columns: 1fr 1.25fr; gap: clamp(32px, 6vw, 96px); align-items: center; padding: clamp(80px, 11vw, 150px) 0; border-top: 1px solid var(--line); }
.feature.flip { grid-template-columns: 1.25fr 1fr; }
.feature.flip .text { order: 2; }
.feature h2 { font-weight: 500; font-size: clamp(32px, 3.8vw, 54px); line-height: 1.05; letter-spacing: -0.03em; }
.feature p { margin-top: 20px; color: var(--dim); max-width: 26em; }

.first { border-top: 0; }

/* Receipt visual */

.receipt-scene { display: grid; grid-template-columns: 1fr 1.1fr; gap: 1.4em; align-items: center; font-size: clamp(8px, 1vw, 13.5px); }
.receipt { background: #f3efe6; color: #23201c; font-family: "Courier New", monospace; font-size: 0.92em; padding: 1.5em 1.2em; line-height: 1.5; box-shadow: 0 30px 70px rgba(0, 0, 0, 0.5); transform: rotate(-1.2deg); white-space: pre; overflow: hidden; }
.extract { background: var(--ui-bg); color: var(--ui-text); padding: 1.3em; border: 1px solid rgba(255, 255, 255, 0.14); }
.extract .head { display: flex; justify-content: space-between; color: var(--ui-mute); font-size: 0.9em; margin-bottom: 0.8em; }
.extract .head b { color: var(--red); font-weight: 600; }
.field { display: grid; grid-template-columns: 6.5em 1fr; padding: 0.65em 0.2em; border-top: 1px solid var(--ui-line); }
.field span { color: var(--ui-mute); }
.field strong { font-weight: 600; min-height: 1.5em; }
.field strong.typing::after { content: "▍"; color: var(--red); animation: blink 0.8s steps(2) infinite; }

/* Calendar visual */

.cal { background: var(--ui-bg); color: var(--ui-text); border: 1px solid rgba(255, 255, 255, 0.14); font-size: clamp(7.5px, 0.95vw, 13px); }
.cal-head { display: grid; grid-template-columns: 4em repeat(5, 1fr); border-bottom: 1px solid var(--ui-line); background: var(--ui-panel); }
.cal-head div { padding: 0.8em 0.6em; color: var(--ui-mute); font-size: 0.92em; }
.cal-head div b { color: var(--ui-text); font-weight: 600; margin-right: 0.3em; }
.cal-grid { position: relative; display: grid; grid-template-columns: 4em repeat(5, 1fr); height: 26em; }
.cal-grid .hours { display: flex; flex-direction: column; justify-content: space-between; padding: 0.4em; color: var(--ui-mute); font-size: 0.82em; border-right: 1px solid var(--ui-line); }
.cal-grid .day { border-right: 1px solid var(--ui-line); position: relative; background-image: repeating-linear-gradient(to bottom, transparent 0, transparent calc(16.666% - 1px), #ebe8e3 calc(16.666% - 1px), #ebe8e3 16.666%); }
.ev { position: absolute; left: 0.3em; right: 0.3em; border-radius: 0.35em; padding: 0.4em 0.5em; color: #fff; font-size: 0.86em; line-height: 1.3; overflow: hidden; animation: pop 0.6s ease both; }
.ev small { display: block; opacity: 0.85; }
.ev.film { background: #d50000; } .ev.rec { background: #8e24aa; } .ev.edit { background: #3f51b5; }
.ev.prod { background: #f4511e; } .ev.rel { background: #0b8043; } .ev.gen { background: #039be5; }
@keyframes pop { from { opacity: 0; transform: scale(0.96); } }
.legend { display: flex; flex-wrap: wrap; gap: 0.6em 1.2em; padding: 0.8em 1em; border-top: 1px solid var(--ui-line); color: var(--ui-mute); font-size: 0.86em; }
.legend i { display: inline-block; width: 0.7em; height: 0.7em; border-radius: 0.2em; margin-right: 0.4em; vertical-align: -0.05em; }

/* Four-up */

.more { display: grid; grid-template-columns: repeat(2, 1fr); border-top: 1px solid var(--line); }
.more div { padding: clamp(40px, 5vw, 64px) clamp(0px, 3vw, 48px) clamp(40px, 5vw, 64px) 0; }
.more div:nth-child(2n) { border-left: 1px solid var(--line); padding-left: clamp(20px, 3vw, 48px); }
.more div:nth-child(n + 3) { border-top: 1px solid var(--line); }
.more h3 { font-weight: 600; font-size: 22px; letter-spacing: -0.01em; }
.more p { color: var(--dim); margin-top: 10px; max-width: 30em; }

.scale { padding: clamp(100px, 13vw, 180px) 0; border-top: 1px solid var(--line); text-align: center; position: relative; overflow: hidden; }
.scale h2 { font-weight: 500; font-size: clamp(36px, 5.2vw, 72px); line-height: 1.05; letter-spacing: -0.035em; max-width: 15em; margin: 0 auto; }
.scale p { color: var(--dim); margin: 24px auto 0; max-width: 32em; }
.scale .ctas { margin-top: 36px; display: flex; gap: 12px; justify-content: center; flex-wrap: wrap; }
.scale .light { opacity: 0.45; }

/* Inner pages */

.page-hero { position: relative; overflow: hidden; padding: clamp(150px, 17vw, 210px) 0 clamp(60px, 8vw, 100px); }
.page-hero h1 { position: relative; z-index: 2; font-weight: 500; font-size: clamp(42px, 6vw, 84px); line-height: 1.02; letter-spacing: -0.035em; max-width: 14em; }
.page-hero p { position: relative; z-index: 2; color: #b7b0a6; max-width: 34em; margin-top: 24px; font-size: clamp(17px, 1.4vw, 19px); }
.page-hero .light { opacity: 0.55; }

.prose { max-width: 44em; padding: clamp(40px, 6vw, 80px) 0 clamp(100px, 12vw, 160px); }
.prose h2 { font-weight: 600; font-size: 24px; letter-spacing: -0.01em; margin-top: 56px; }
.prose h2:first-child { margin-top: 0; }
.prose p, .prose li { color: #c4bdb3; margin-top: 16px; }
.prose ul { padding-left: 1.2em; }
.prose a { border-bottom: 1px solid var(--red); }
.prose .meta { color: var(--dim); font-size: 15px; }

/* Pricing */

.plans { display: grid; grid-template-columns: 1fr 1fr; border: 1px solid var(--line); position: relative; z-index: 2; }
.plan { padding: clamp(32px, 4.5vw, 56px); }
.plan + .plan { border-left: 1px solid var(--line); }
.plan h2 { font-weight: 600; font-size: 22px; }
.plan .price { margin-top: 18px; font-size: clamp(44px, 5vw, 64px); font-weight: 500; letter-spacing: -0.03em; line-height: 1; }
.plan .price small { font-size: 17px; color: var(--dim); letter-spacing: 0; font-weight: 400; margin-left: 6px; }
.plan .sub { color: var(--dim); margin-top: 12px; }
.plan ul { list-style: none; margin-top: 28px; border-top: 1px solid var(--line); }
.plan li { padding: 13px 0; border-bottom: 1px solid var(--line); color: #c4bdb3; }
.plan .btn { margin-top: 32px; }
.seats { margin-top: 28px; display: flex; align-items: center; gap: 14px; flex-wrap: wrap; color: var(--dim); }
.seats input { width: 84px; padding: 10px 12px; background: transparent; border: 1px solid #4a4540; color: var(--paper); font: inherit; font-size: 17px; }
.seats input:focus { outline: none; border-color: var(--paper); }
.seats b { color: var(--paper); font-weight: 600; }

.faq { padding: clamp(80px, 10vw, 130px) 0 clamp(100px, 12vw, 160px); display: grid; grid-template-columns: repeat(2, 1fr); gap: 48px clamp(32px, 5vw, 80px); }
.faq h3 { font-weight: 600; font-size: 19px; }
.faq p { color: var(--dim); margin-top: 8px; }

/* Footer */

.site-foot { border-top: 1px solid var(--line); }
.site-foot .wrap { display: flex; justify-content: space-between; flex-wrap: wrap; gap: 14px 28px; padding-top: 28px; padding-bottom: 36px; color: var(--dim); font-size: 14px; }
.site-foot nav { display: flex; gap: 22px; flex-wrap: wrap; }
.site-foot a:hover { color: var(--paper); }

/* Small screens */

@media (max-width: 860px) {
  .site-head nav a.hide-sm { display: none; }
  .win-body { grid-template-columns: 1fr; }
  .side { display: none; }
  .main { grid-template-columns: 1fr; }
  .feature, .feature.flip { grid-template-columns: 1fr; }
  .feature.flip .text { order: 0; }
  .more { grid-template-columns: 1fr; }
  .more div, .more div:nth-child(2n) { border-left: 0; padding-left: 0; padding-right: 0; }
  .more div:nth-child(n + 2) { border-top: 1px solid var(--line); }
  .plans { grid-template-columns: 1fr; }
  .plan + .plan { border-left: 0; border-top: 1px solid var(--line); }
  .faq { grid-template-columns: 1fr; }
  .receipt-scene { grid-template-columns: 1fr; }
  .receipt { max-width: 70%; }
}

@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after { animation: none !important; }
}
