/* HourSlip site — dark, monochrome, quiet. One accent (violet), used sparingly. */
:root {
  --bg: #000;
  --panel: #0b0b0d;
  --panel-2: #111114;
  --line: #1d1d22;
  --line-2: #2a2a31;
  --ink: #f5f5f7;
  --ink-2: #a1a1aa;
  --ink-3: #6b6b75;
  --accent: #8b7cff;
  --accent-soft: rgba(139, 124, 255, 0.14);
  --green: #4ade80;
  --radius: 16px;
  --wrap: 1120px;
}
* { box-sizing: border-box; }
html { scroll-behavior: smooth; -webkit-text-size-adjust: 100%; }
body {
  margin: 0;
  background: var(--bg);
  color: var(--ink);
  font-family: "Inter", -apple-system, BlinkMacSystemFont, system-ui, sans-serif;
  font-feature-settings: "cv11", "ss01";
  -webkit-font-smoothing: antialiased;
  line-height: 1.55;
  overflow-x: hidden;
}
a { color: inherit; text-decoration: none; }
img { max-width: 100%; height: auto; display: block; }
code, kbd {
  font-family: ui-monospace, "SF Mono", Menlo, monospace; font-size: 0.85em;
  background: var(--panel-2); border: 1px solid var(--line); border-radius: 6px; padding: 1px 6px; color: var(--ink);
}
.wrap { width: min(var(--wrap), calc(100% - 40px)); margin: 0 auto; }
.center { text-align: center; }

h1, h2, h3 { margin: 0; font-weight: 500; letter-spacing: -0.035em; }
h1 { font-size: clamp(44px, 7.2vw, 76px); line-height: 1.02; }
h2 { font-size: clamp(32px, 4.4vw, 48px); line-height: 1.08; }
h3 { font-size: 17px; letter-spacing: -0.015em; font-weight: 500; }
.muted { color: var(--ink-2); }
.dim { color: var(--ink-3); }

/* Pills */
.pill {
  display: inline-flex; align-items: center; gap: 8px;
  font-size: 13px; color: var(--ink-2);
  padding: 5px 13px; border: 1px solid var(--line-2); border-radius: 999px; background: rgba(255,255,255,0.02);
}
.pill .dot { width: 6px; height: 6px; border-radius: 50%; background: var(--green); box-shadow: 0 0 10px var(--green); }

/* Buttons */
.btn {
  display: inline-flex; align-items: center; justify-content: center; gap: 8px;
  font: 500 15px/1 "Inter", system-ui, sans-serif; letter-spacing: -0.01em;
  padding: 13px 22px; border-radius: 999px; border: 1px solid transparent;
  transition: background .15s, transform .12s, opacity .12s;
  cursor: pointer;
}
.btn:active { transform: scale(0.98); }
.btn svg { width: 16px; height: 16px; margin-top: -2px; }
.btn-light { background: #fff; color: #000; }
.btn-light:hover { background: #e7e7ea; }
.btn-dark { background: var(--panel-2); color: var(--ink); border-color: var(--line-2); }
.btn-dark:hover { background: #18181c; }
.btn-sm { padding: 9px 15px; font-size: 14px; }
.btn[aria-disabled="true"] { opacity: .55; pointer-events: none; }

/* Nav */
.nav {
  position: sticky; top: 0; z-index: 20;
  background: rgba(0, 0, 0, 0.72);
  backdrop-filter: saturate(160%) blur(18px); -webkit-backdrop-filter: saturate(160%) blur(18px);
  border-bottom: 1px solid transparent; transition: border-color .2s;
}
.nav.scrolled { border-bottom-color: var(--line); }
.nav-inner { display: grid; grid-template-columns: 1fr auto 1fr; align-items: center; height: 64px; }
.brand { display: flex; align-items: center; gap: 10px; font-weight: 600; font-size: 16px; letter-spacing: -0.02em; }
.brand img { width: 28px; height: 28px; border-radius: 7px; }
.links { display: flex; gap: 28px; font-size: 14px; color: var(--ink-2); }
.links a:hover { color: var(--ink); }
.nav-cta { justify-self: end; }

/* Hero */
.hero { padding: 104px 0 0; text-align: center; position: relative; }
.hero h1 { margin: 26px auto 0; max-width: 820px; }
.hero .lede { font-size: 19px; color: var(--ink-2); max-width: 560px; margin: 22px auto 0; letter-spacing: -0.01em; }
.hero .cta { margin-top: 34px; display: flex; justify-content: center; gap: 12px; flex-wrap: wrap; }
.hero .fine { margin-top: 16px; font-size: 13.5px; color: var(--ink-3); }
.stage { position: relative; margin: 78px auto 0; max-width: 1080px; }
.stage::before {
  content: ""; position: absolute; left: 10%; right: 10%; top: 18%; bottom: -6%; z-index: -1;
  background: radial-gradient(closest-side, rgba(139,124,255,.32), transparent 72%);
  filter: blur(40px);
}
.frame {
  border-radius: 14px; border: 1px solid var(--line-2); overflow: hidden; background: var(--panel);
  box-shadow: 0 50px 120px -40px rgba(0,0,0,.9), 0 0 0 1px rgba(255,255,255,.02) inset;
}
.stage .panel-shot {
  position: absolute; right: -2.5%; bottom: -9%; width: 23%;
  border-radius: 14px; border: 1px solid var(--line-2); box-shadow: 0 40px 80px -20px rgba(0,0,0,.95);
}
.stage-fade { height: 120px; margin-top: -120px; position: relative; background: linear-gradient(transparent, var(--bg)); pointer-events: none; }

/* Promo video */
.promo { position: relative; margin: 48px auto 0; max-width: 1080px; }
.promo video { display: block; width: 100%; height: auto; aspect-ratio: 16 / 9; }
.promo-play {
  position: absolute; left: 50%; top: 50%; transform: translate(-50%, -50%);
  width: 76px; height: 76px; border-radius: 50%; border: 0; cursor: pointer;
  display: grid; place-items: center; background: #fff; color: #000;
  transition: background .15s, transform .15s;
}
.promo-play:hover { background: #e7e7ea; }
.promo-play:active { transform: translate(-50%, -50%) scale(0.96); }
.promo-play svg { width: 30px; height: 30px; margin-left: 4px; }
.promo.playing .promo-play { display: none; }
@media (max-width: 640px) {
  .promo { margin-top: 32px; }
  .promo-play { width: 56px; height: 56px; }
  .promo-play svg { width: 22px; height: 22px; margin-left: 3px; }
}

/* Sections */
.section { padding: 150px 0 0; }
.section-head { max-width: 560px; }
.section-head h2 { margin-top: 18px; }
.section-head p { margin: 14px 0 0; color: var(--ink-2); font-size: 17px; }
.section-head.center { margin: 0 auto; }

/* Steps grid (animated minis) */
.steps { display: grid; grid-template-columns: repeat(4, 1fr); gap: 14px; margin-top: 56px; }
.step .mini {
  height: 220px; border: 1px solid var(--line); border-radius: var(--radius); background: var(--panel);
  position: relative; overflow: hidden; padding: 18px;
}
.step h3 { margin: 20px 4px 6px; }
.step p { margin: 0 4px; color: var(--ink-2); font-size: 14.5px; }

/* mini 1: menu bar timer */
.m-bar { display: flex; justify-content: flex-end; gap: 10px; align-items: center; font-size: 11px; color: var(--ink-3); border-bottom: 1px solid var(--line); padding-bottom: 10px; }
.m-bar .clock { display: inline-flex; align-items: center; gap: 0; color: var(--ink); font-variant-numeric: tabular-nums; line-height: 1.2em; }
.m-bar .clock .rec { margin-right: 6px; }
.m-bar .rec { width: 7px; height: 7px; border-radius: 50%; background: #f0506e; animation: pulse 1.6s ease-in-out infinite; }
.m-rows { margin-top: 12px; display: grid; gap: 6px; }
.m-row { display: flex; align-items: center; gap: 9px; padding: 8px 10px; border-radius: 9px; font-size: 12.5px; color: var(--ink-2); }
.m-row i { width: 7px; height: 7px; border-radius: 50%; flex: none; }
.m-row b { margin-left: auto; font-weight: 500; font-size: 10.5px; color: var(--ink-3); }
.m-row.on { background: var(--panel-2); color: var(--ink); animation: rowOn 6s ease-in-out infinite; }
.digits { display: inline-block; height: 1.2em; line-height: 1.2em; overflow: hidden; vertical-align: top; }
.digits span { display: block; animation: tick 10s steps(10) infinite; }
.digits span em { display: block; font-style: normal; height: 1.2em; }

/* mini 2: clients */
.m-client { display: flex; align-items: center; gap: 10px; padding: 10px; border: 1px solid var(--line); border-radius: 11px; margin-bottom: 8px; background: var(--panel-2); opacity: 0; transform: translateY(6px); animation: rise 6s ease-out infinite; }
.m-client:nth-child(2) { animation-delay: .35s; }
.m-client:nth-child(3) { animation-delay: .7s; }
.m-client .av { width: 26px; height: 26px; border-radius: 8px; display: grid; place-items: center; font-size: 12px; font-weight: 600; }
.m-client .nm { font-size: 12.5px; }
.m-client .nm small { display: block; color: var(--ink-3); font-size: 10.5px; }
.m-client .rt { margin-left: auto; font-size: 11.5px; color: var(--ink-2); font-variant-numeric: tabular-nums; }

/* mini 3: invoice build */
.m-inv-head { display: flex; justify-content: space-between; font-size: 11px; color: var(--ink-3); margin-bottom: 12px; }
.m-inv-head strong { color: var(--ink); font-weight: 500; font-size: 12.5px; }
.m-line { display: flex; justify-content: space-between; font-size: 12px; color: var(--ink-2); padding: 7px 0; border-bottom: 1px dashed var(--line-2); opacity: 0; animation: rise 6s ease-out infinite; font-variant-numeric: tabular-nums; }
.m-line:nth-of-type(2) { animation-delay: .4s; }
.m-line:nth-of-type(3) { animation-delay: .8s; }
.m-total { display: flex; justify-content: space-between; margin-top: 12px; font-size: 14px; font-weight: 500; opacity: 0; animation: rise 6s ease-out 1.2s infinite; font-variant-numeric: tabular-nums; }
.m-total span:last-child { color: var(--ink); }

/* mini 4: PDF export */
.m-pdf { position: absolute; left: 50%; top: 22px; width: 120px; height: 150px; margin-left: -60px; background: #fafafa; border-radius: 6px; padding: 14px 12px; box-shadow: 0 20px 40px -10px rgba(0,0,0,.8); animation: float 6s ease-in-out infinite; }
.m-pdf .t { height: 8px; width: 46px; background: #111; border-radius: 2px; margin-left: auto; }
.m-pdf .l { height: 5px; background: #d9d9de; border-radius: 3px; margin-top: 9px; }
.m-pdf .l.s { width: 60%; }
.m-pdf .tot { height: 7px; width: 40px; background: #111; border-radius: 2px; margin: 14px 0 0 auto; }
.m-saved { position: absolute; left: 50%; bottom: 16px; transform: translateX(-50%); display: inline-flex; align-items: center; gap: 6px; font-size: 11.5px; color: var(--ink); background: var(--panel-2); border: 1px solid var(--line-2); padding: 6px 11px; border-radius: 999px; white-space: nowrap; opacity: 0; animation: saved 6s ease-out infinite; }
.m-saved svg { width: 12px; height: 12px; color: var(--green); }

/* Bento */
.bento { display: grid; grid-template-columns: 1.55fr 1fr; gap: 14px; margin-top: 56px; }
.tile { border: 1px solid var(--line); border-radius: 20px; background: var(--panel); overflow: hidden; display: flex; flex-direction: column; }
.tile .copy { padding: 28px 28px 0; }
.tile .copy h3 { font-size: 20px; }
.tile .copy p { color: var(--ink-2); margin: 8px 0 0; font-size: 15px; max-width: 440px; }
.tile .shot { margin: 26px 0 0 28px; border-top-left-radius: 12px; border: 1px solid var(--line-2); border-right: 0; border-bottom: 0; overflow: hidden; }
.tile .shot.menubar { margin: 26px auto 0; width: 62%; border-radius: 14px 14px 0 0; border-right: 1px solid var(--line-2); }
.tile.wide { grid-column: 1 / -1; }
.tile.wide .shot { margin-left: 28px; }

/* Detail grid */
.details { display: grid; grid-template-columns: repeat(4, 1fr); margin-top: 56px; border: 1px solid var(--line); border-radius: 20px; overflow: hidden; }
.detail { padding: 26px 24px 28px; border-right: 1px solid var(--line); border-bottom: 1px solid var(--line); background: var(--panel); }
.detail:nth-child(4n) { border-right: 0; }
.detail:nth-last-child(-n+4) { border-bottom: 0; }
.detail svg { width: 22px; height: 22px; color: var(--ink); opacity: .9; }
.detail h3 { margin: 18px 0 6px; }
.detail p { margin: 0; color: var(--ink-2); font-size: 14px; }

/* Pricing */
.plans { display: grid; grid-template-columns: repeat(2, minmax(0, 400px)); justify-content: center; gap: 14px; margin-top: 56px; }
.plan { border: 1px solid var(--line); border-radius: 22px; background: var(--panel); padding: 30px; display: flex; flex-direction: column; }
.plan.featured { border-color: var(--line-2); background: linear-gradient(180deg, #121217, var(--panel)); }
.plan .tag { align-self: flex-start; }
.plan h3 { margin-top: 20px; font-size: 18px; }
.plan .price { font-size: 48px; font-weight: 500; letter-spacing: -0.04em; margin: 10px 0 2px; }
.plan .price small { font-size: 15px; color: var(--ink-3); letter-spacing: 0; font-weight: 400; }
.plan .note { color: var(--ink-2); font-size: 14px; margin: 0 0 22px; }
.checks { list-style: none; padding: 0; margin: 0 0 28px; display: grid; gap: 11px; font-size: 14.5px; color: var(--ink-2); }
.checks li { display: flex; gap: 10px; align-items: flex-start; }
.checks li::before { content: ""; flex: none; width: 16px; height: 16px; margin-top: 3px; border-radius: 50%; background: var(--panel-2) url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 16 16'%3E%3Cpath d='m4.5 8.2 2.3 2.3 4.7-5' fill='none' stroke='%23f5f5f7' stroke-width='1.6' stroke-linecap='round' stroke-linejoin='round'/%3E%3C/svg%3E") center/100% no-repeat; border: 1px solid var(--line-2); }
.plan .btn { margin-top: auto; width: 100%; }

/* Install strip */
.install { display: grid; grid-template-columns: repeat(3, 1fr); gap: 14px; margin-top: 44px; }
.install li { list-style: none; border: 1px solid var(--line); border-radius: var(--radius); background: var(--panel); padding: 22px; }
.install .n { font-size: 12px; color: var(--ink-3); font-variant-numeric: tabular-nums; }
.install h3 { margin: 10px 0 6px; }
.install p { margin: 0; color: var(--ink-2); font-size: 14.5px; }
.install ol { padding: 0; margin: 0; display: contents; }

/* FAQ */
.faq { max-width: 820px; margin: 56px auto 0; display: grid; gap: 8px; }
.faq details { border: 1px solid var(--line); border-radius: 14px; background: var(--panel); }
.faq summary { list-style: none; cursor: pointer; display: flex; justify-content: space-between; align-items: center; gap: 20px; padding: 20px 22px; font-size: 15.5px; }
.faq summary::-webkit-details-marker { display: none; }
.faq summary::after { content: "+"; flex: none; width: 28px; height: 28px; display: grid; place-items: center; border: 1px solid var(--line-2); border-radius: 8px; color: var(--ink-2); transition: transform .2s; }
.faq details[open] summary::after { transform: rotate(45deg); }
.faq details p { margin: 0; padding: 0 22px 20px; color: var(--ink-2); font-size: 15px; max-width: 700px; }

/* Closer */
.closer { padding: 170px 0 150px; text-align: center; }
.closer img { width: 72px; height: 72px; margin: 0 auto 28px; border-radius: 16px; }
.closer p { color: var(--ink-2); margin: 14px 0 30px; font-size: 17px; }

/* Footer */
.footer { border-top: 1px solid var(--line); padding: 32px 0 40px; color: var(--ink-3); font-size: 13.5px; }
.footer-inner { display: flex; justify-content: space-between; align-items: center; gap: 20px; flex-wrap: wrap; }
.footer nav { display: flex; gap: 22px; }
.footer a:hover { color: var(--ink); }

/* Document pages (privacy, support, changelog, 404) */
.doc { max-width: 720px; padding: 90px 0 140px; }
.doc h1 { font-size: clamp(38px, 6vw, 52px); margin: 18px 0 10px; }
.doc h2 { font-size: 21px; letter-spacing: -0.02em; margin: 40px 0 8px; }
.doc p, .doc li { color: var(--ink-2); }
.doc a { color: var(--ink); text-decoration: underline; text-underline-offset: 3px; text-decoration-color: var(--line-2); }

/* Motion */
@keyframes pulse { 0%, 100% { opacity: 1; } 50% { opacity: .35; } }
@keyframes tick { from { transform: translateY(0); } to { transform: translateY(-12em); } }
@keyframes rowOn { 0%, 15% { background: transparent; } 25%, 100% { background: var(--panel-2); } }
@keyframes rise { 0% { opacity: 0; transform: translateY(6px); } 12%, 88% { opacity: 1; transform: translateY(0); } 100% { opacity: 0; transform: translateY(0); } }
@keyframes float { 0%, 100% { transform: translateY(0); } 50% { transform: translateY(-5px); } }
@keyframes saved { 0%, 40% { opacity: 0; transform: translate(-50%, 6px); } 52%, 90% { opacity: 1; transform: translate(-50%, 0); } 100% { opacity: 0; } }
@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after { animation: none !important; transition: none !important; }
  .m-client, .m-line, .m-total, .m-saved { opacity: 1; transform: none; }
  .m-saved { transform: translateX(-50%); }
  html { scroll-behavior: auto; }
}

/* Responsive */
@media (max-width: 980px) {
  .steps, .details { grid-template-columns: repeat(2, 1fr); }
  .detail:nth-child(4n) { border-right: 1px solid var(--line); }
  .detail:nth-child(2n) { border-right: 0; }
  .detail:nth-last-child(-n+4) { border-bottom: 1px solid var(--line); }
  .detail:nth-last-child(-n+2) { border-bottom: 0; }
  .bento { grid-template-columns: 1fr; }
  .install { grid-template-columns: 1fr; }
}
@media (max-width: 640px) {
  .links { display: none; }
  .nav-inner { grid-template-columns: 1fr auto; }
  .hero { padding-top: 70px; }
  .hero .lede { font-size: 17px; }
  .stage .panel-shot { display: none; }
  .section { padding-top: 110px; }
  .steps, .details, .plans { grid-template-columns: 1fr; }
  .detail { border-right: 0 !important; border-bottom: 1px solid var(--line) !important; }
  .detail:last-child { border-bottom: 0 !important; }
  .footer-inner { flex-direction: column; align-items: flex-start; }
}
