/* Hourio — hourio.app */
:root {
  --bg: #0b0b10;
  --bg-2: #12121a;
  --panel: rgba(255, 255, 255, 0.045);
  --panel-strong: rgba(255, 255, 255, 0.07);
  --border: rgba(255, 255, 255, 0.09);
  --text: #f5f5f7;
  --muted: #a1a1aa;
  --dim: #71717a;
  --sun-1: #ffb35c;
  --sun-2: #ff7a59;
  --sun-3: #ff4f6d;
  --violet: #8b5cf6;
  --green: #34d399;
  --grad: linear-gradient(120deg, var(--sun-1) 0%, var(--sun-2) 45%, var(--sun-3) 100%);
  --radius: 22px;
  --max: 1180px;
  --font: -apple-system, BlinkMacSystemFont, "SF Pro Text", "Inter", "Segoe UI", Roboto, sans-serif;
  --font-display: -apple-system, BlinkMacSystemFont, "SF Pro Display", "Inter", "Segoe UI", Roboto, sans-serif;
}

*, *::before, *::after { box-sizing: border-box; }
html { scroll-behavior: smooth; -webkit-text-size-adjust: 100%; }
body {
  margin: 0;
  font-family: var(--font);
  font-size: 17px;
  line-height: 1.6;
  color: var(--text);
  background: var(--bg);
  -webkit-font-smoothing: antialiased;
  overflow-x: hidden;
}
img { max-width: 100%; height: auto; display: block; }
a { color: inherit; text-decoration: none; }
h1, h2, h3 { font-family: var(--font-display); line-height: 1.08; letter-spacing: -0.025em; margin: 0; }
p { margin: 0; }
.wrap { width: min(var(--max), 100% - 40px); margin-inline: auto; }
.grad-text { background: var(--grad); -webkit-background-clip: text; background-clip: text; color: transparent; }
.eyebrow {
  display: inline-flex; align-items: center; gap: 8px;
  font-size: 13px; font-weight: 600; letter-spacing: 0.14em; text-transform: uppercase; color: var(--sun-1);
}
.eyebrow::before { content: ""; width: 8px; height: 8px; border-radius: 50%; background: var(--grad); box-shadow: 0 0 14px var(--sun-2); }
section { position: relative; padding: 120px 0; }
.section-head { max-width: 720px; margin-bottom: 56px; }
.section-head h2 { font-size: clamp(34px, 5vw, 56px); font-weight: 800; margin: 14px 0 18px; }
.section-head p { font-size: 19px; color: var(--muted); }
.center { text-align: center; margin-inline: auto; }

/* Buttons */
.btn {
  display: inline-flex; align-items: center; gap: 10px;
  padding: 15px 26px; border-radius: 999px; font-weight: 650; font-size: 16px;
  transition: transform .2s ease, box-shadow .2s ease, background .2s ease;
}
.btn-primary { background: var(--grad); color: #1a0a06; box-shadow: 0 10px 40px -10px rgba(255, 110, 80, .7), inset 0 1px 0 rgba(255,255,255,.4); }
.btn-primary:hover { transform: translateY(-2px); box-shadow: 0 18px 50px -12px rgba(255, 110, 80, .85), inset 0 1px 0 rgba(255,255,255,.4); }
.btn-ghost { background: var(--panel); border: 1px solid var(--border); color: var(--text); backdrop-filter: blur(10px); }
.btn-ghost:hover { background: var(--panel-strong); transform: translateY(-2px); }
.btn svg { width: 18px; height: 18px; }

/* Nav */
.nav {
  position: fixed; inset: 0 0 auto; z-index: 50;
  transition: background .3s ease, border-color .3s ease, backdrop-filter .3s ease;
  border-bottom: 1px solid transparent;
}
.nav.scrolled { background: rgba(11, 11, 16, .72); backdrop-filter: saturate(160%) blur(18px); -webkit-backdrop-filter: saturate(160%) blur(18px); border-color: var(--border); }
.nav .wrap { display: flex; align-items: center; justify-content: space-between; height: 72px; }
.brand { display: flex; align-items: center; gap: 10px; font-weight: 750; font-size: 20px; letter-spacing: -0.02em; }
.brand img { width: 34px; height: 34px; border-radius: 9px; }
.nav-links { display: flex; align-items: center; gap: 30px; font-size: 15px; color: var(--muted); }
.nav-links a:hover { color: var(--text); }
.nav-right { display: flex; align-items: center; gap: 14px; }
.lang { font-size: 13px; font-weight: 650; color: var(--muted); border: 1px solid var(--border); border-radius: 999px; padding: 6px 12px; }
.lang:hover { color: var(--text); border-color: rgba(255,255,255,.2); }
.nav .btn { padding: 10px 18px; font-size: 14px; }

/* Hero */
.hero { padding: 168px 0 80px; text-align: center; overflow: hidden; }
.hero::before {
  content: ""; position: absolute; inset: -20% -10% auto; height: 900px; z-index: -1;
  background:
    radial-gradient(40% 50% at 50% 30%, rgba(255, 122, 89, .32), transparent 70%),
    radial-gradient(30% 40% at 20% 20%, rgba(255, 179, 92, .18), transparent 70%),
    radial-gradient(30% 40% at 80% 25%, rgba(139, 92, 246, .22), transparent 70%);
  filter: blur(10px);
}
.hero .grid-bg {
  position: absolute; inset: 0; z-index: -1; opacity: .35;
  background-image: linear-gradient(rgba(255,255,255,.05) 1px, transparent 1px), linear-gradient(90deg, rgba(255,255,255,.05) 1px, transparent 1px);
  background-size: 64px 64px;
  mask-image: radial-gradient(60% 50% at 50% 30%, #000, transparent 75%);
  -webkit-mask-image: radial-gradient(60% 50% at 50% 30%, #000, transparent 75%);
}
.pill {
  display: inline-flex; align-items: center; gap: 10px; padding: 7px 16px 7px 8px;
  border-radius: 999px; background: var(--panel); border: 1px solid var(--border); font-size: 14px; color: var(--muted);
  backdrop-filter: blur(10px);
}
.pill b { background: var(--grad); color: #1a0a06; padding: 3px 10px; border-radius: 999px; font-size: 12px; font-weight: 700; }
.hero h1 { font-size: clamp(48px, 8.6vw, 104px); font-weight: 850; margin: 26px auto 22px; max-width: 980px; }
.hero .sub { font-size: clamp(18px, 2vw, 22px); color: var(--muted); max-width: 680px; margin: 0 auto 38px; }
.cta-row { display: flex; gap: 14px; justify-content: center; flex-wrap: wrap; }
.hero-note { margin-top: 18px; font-size: 14px; color: var(--dim); }

.showcase { position: relative; margin: 80px auto 0; max-width: 1100px; perspective: 1600px; }
.showcase::before {
  content: ""; position: absolute; inset: 10% 8% -6%; z-index: -1; border-radius: 40px;
  background: var(--grad); filter: blur(90px); opacity: .45;
}
.js .showcase .shot { transform: rotateX(8deg) scale(.98); transform-origin: 50% 0; transition: transform 1.2s cubic-bezier(.2,.8,.2,1); }
.js .showcase.in .shot { transform: rotateX(0) scale(1); }
.float-card {
  position: absolute; z-index: 2; padding: 16px 20px; border-radius: 18px; text-align: left;
  background: rgba(24, 24, 32, .72); border: 1px solid rgba(255,255,255,.12);
  backdrop-filter: blur(20px) saturate(160%); -webkit-backdrop-filter: blur(20px) saturate(160%);
  box-shadow: 0 30px 60px -20px rgba(0,0,0,.7);
  animation: bob 6s ease-in-out infinite;
}
.float-card .k { font-size: 11px; font-weight: 700; letter-spacing: .12em; text-transform: uppercase; color: var(--dim); }
.float-card .v { font-family: var(--font-display); font-size: 28px; font-weight: 800; letter-spacing: -0.02em; }
.float-card .s { font-size: 13px; color: var(--muted); }
.float-card.income { left: -40px; top: 46%; }
.float-card.income .v { color: var(--green); }
.float-card.timer { right: -36px; top: -7%; animation-delay: -3s; }
.float-card.timer .v { display: flex; align-items: center; gap: 10px; font-variant-numeric: tabular-nums; }
.float-card.timer .dot { width: 10px; height: 10px; border-radius: 50%; background: var(--sun-3); box-shadow: 0 0 0 0 rgba(255,79,109,.7); animation: pulse 1.6s infinite; }
@keyframes bob { 0%,100% { transform: translateY(0); } 50% { transform: translateY(-12px); } }
@keyframes pulse { 0% { box-shadow: 0 0 0 0 rgba(255,79,109,.7); } 70% { box-shadow: 0 0 0 12px rgba(255,79,109,0); } 100% { box-shadow: 0 0 0 0 rgba(255,79,109,0); } }

/* Marquee strip */
.strip { padding: 34px 0; border-block: 1px solid var(--border); background: linear-gradient(180deg, rgba(255,255,255,.02), transparent); }
.strip ul { list-style: none; margin: 0; padding: 0; display: flex; flex-wrap: wrap; justify-content: center; gap: 14px 44px; color: var(--muted); font-weight: 600; font-size: 15px; }
.strip li { display: flex; align-items: center; gap: 10px; }
.strip li svg { width: 20px; height: 20px; color: var(--sun-2); }

/* Bento */
.bento { display: grid; grid-template-columns: repeat(6, 1fr); gap: 20px; }
.tile {
  position: relative; overflow: hidden; border-radius: var(--radius); padding: 32px;
  background: linear-gradient(180deg, rgba(255,255,255,.06), rgba(255,255,255,.02));
  border: 1px solid var(--border);
  display: flex; flex-direction: column;
  transition: border-color .3s ease, transform .3s ease;
}
.tile:hover { border-color: rgba(255,255,255,.18); transform: translateY(-3px); }
.tile::after {
  content: ""; position: absolute; inset: 0; pointer-events: none; opacity: 0; transition: opacity .3s ease;
  background: radial-gradient(400px circle at var(--mx, 50%) var(--my, 0%), rgba(255,122,89,.14), transparent 60%);
}
.tile:hover::after { opacity: 1; }
.tile h3 { font-size: 24px; font-weight: 750; margin-bottom: 10px; }
.tile p { color: var(--muted); font-size: 16px; }
.tile > p + .media, .tile > p + .big-num { margin-top: 28px; }
.tile .icon { width: 46px; height: 46px; border-radius: 13px; display: grid; place-items: center; margin-bottom: 20px; background: var(--grad); color: #1a0a06; box-shadow: 0 10px 30px -10px rgba(255,110,80,.8); }
.tile .icon svg { width: 24px; height: 24px; }
.tile .media { margin: auto -32px -32px; padding-top: 0; position: relative; top: 0; border-top: 1px solid var(--border); background: #0d0d12; }
.tile .media img { width: 100%; }
.t-wide { grid-column: span 4; }
.t-narrow { grid-column: span 2; }
.t-half { grid-column: span 3; }
.t-third { grid-column: span 2; }
.media.crop { flex: 1; min-height: 240px; overflow: hidden; }
.media.crop img { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; object-position: left top; }

/* Stats inside tiles */
.big-num { font-family: var(--font-display); font-size: 64px; font-weight: 850; letter-spacing: -0.04em; line-height: 1; margin: 18px 0 6px; }
.kbd { display: inline-block; font-family: var(--font); font-size: 15px; font-weight: 650; padding: 3px 10px; border-radius: 8px; background: var(--panel-strong); border: 1px solid var(--border); border-bottom-width: 3px; color: var(--text); }

/* Calculator */
.calc { display: grid; grid-template-columns: 1.05fr .95fr; gap: 28px; align-items: stretch; }
.calc-card { display: flex; flex-direction: column; border-radius: 28px; padding: 36px; background: linear-gradient(180deg, rgba(255,255,255,.07), rgba(255,255,255,.025)); border: 1px solid var(--border); }
.rates { display: grid; grid-template-columns: repeat(2, 1fr); gap: 12px; margin-top: 22px; }
.rate { display: flex; align-items: center; gap: 12px; padding: 12px 14px; border-radius: 14px; background: rgba(255,255,255,.04); border: 1px solid var(--border); font-size: 14px; }
.rate i { width: 12px; height: 12px; border-radius: 4px; flex: none; }
.rate b { margin-left: auto; font-variant-numeric: tabular-nums; }
.day-toggle { align-self: flex-start; display: inline-flex; padding: 4px; border-radius: 999px; background: rgba(255,255,255,.06); border: 1px solid var(--border); margin-bottom: 26px; }
.day-toggle button { appearance: none; border: 0; background: transparent; color: var(--muted); font: inherit; font-size: 14px; font-weight: 650; padding: 8px 18px; border-radius: 999px; cursor: pointer; }
.day-toggle button.on { background: var(--text); color: #111; }
.timeline { position: relative; height: 54px; border-radius: 14px; overflow: hidden; display: flex; background: rgba(255,255,255,.04); border: 1px solid var(--border); }
.timeline span { height: 100%; }
.sel { position: absolute; top: 0; bottom: 0; border: 2px solid #fff; border-radius: 12px; box-shadow: 0 0 0 9999px rgba(11,11,16,.55); pointer-events: none; transition: left .15s ease, width .15s ease; }
.ticks { display: flex; justify-content: space-between; font-size: 12px; color: var(--dim); margin: 8px 2px 24px; font-variant-numeric: tabular-nums; }
.slider-row { display: grid; grid-template-columns: 70px 1fr 64px; align-items: center; gap: 14px; margin: 12px 0; font-size: 15px; color: var(--muted); }
.slider-row output { color: var(--text); font-weight: 700; font-variant-numeric: tabular-nums; text-align: right; }
input[type=range] { -webkit-appearance: none; appearance: none; width: 100%; height: 6px; border-radius: 99px; background: rgba(255,255,255,.12); outline: none; }
input[type=range]::-webkit-slider-thumb { -webkit-appearance: none; width: 22px; height: 22px; border-radius: 50%; background: #fff; box-shadow: 0 0 0 5px rgba(255,122,89,.35); cursor: pointer; }
input[type=range]::-moz-range-thumb { width: 22px; height: 22px; border: 0; border-radius: 50%; background: #fff; box-shadow: 0 0 0 5px rgba(255,122,89,.35); cursor: pointer; }
.breakdown { list-style: none; margin: 0; padding: 0; }
.breakdown li { display: flex; align-items: center; gap: 12px; padding: 14px 0; border-bottom: 1px solid var(--border); font-size: 16px; }
.breakdown li i { width: 12px; height: 12px; border-radius: 4px; flex: none; }
.breakdown .m { color: var(--dim); font-variant-numeric: tabular-nums; }
.breakdown .r { margin-left: auto; font-weight: 700; font-variant-numeric: tabular-nums; }
.total { display: flex; align-items: baseline; justify-content: space-between; margin-top: auto; padding-top: 28px; }
.total span { color: var(--muted); font-weight: 600; }
.total strong { font-family: var(--font-display); font-size: 56px; font-weight: 850; letter-spacing: -0.03em; font-variant-numeric: tabular-nums; }
.calc-note { font-size: 13px; color: var(--dim); margin-top: 14px; }

/* Privacy */
.privacy { background: radial-gradient(60% 80% at 50% 0%, rgba(139,92,246,.14), transparent 70%); }
.priv-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 20px; }
.priv { padding: 30px; border-radius: var(--radius); border: 1px solid var(--border); background: var(--panel); }
.priv svg { width: 30px; height: 30px; color: var(--sun-1); margin-bottom: 18px; }
.priv h3 { font-size: 21px; margin-bottom: 8px; }
.priv p { color: var(--muted); font-size: 16px; }

/* Steps */
.steps { display: grid; grid-template-columns: repeat(3, 1fr); gap: 20px; counter-reset: s; }
.step { padding: 30px; border-radius: var(--radius); border: 1px solid var(--border); background: var(--panel); counter-increment: s; }
.step::before { content: "0" counter(s); display: block; font-family: var(--font-display); font-size: 52px; font-weight: 850; letter-spacing: -0.04em; margin-bottom: 14px; background: var(--grad); -webkit-background-clip: text; background-clip: text; color: transparent; }
.step h3 { font-size: 21px; margin-bottom: 8px; }
.step p { color: var(--muted); font-size: 16px; }

/* Languages */
.langs { display: flex; flex-wrap: wrap; justify-content: center; gap: 12px; margin-top: 30px; }
.lang-btn { appearance: none; font: inherit; font-weight: 600; color: var(--muted); cursor: pointer;
  padding: 10px 18px; border-radius: 999px; border: 1px solid var(--border); background: var(--panel);
  transition: color .2s ease, background .2s ease, border-color .2s ease, transform .2s ease; }
.lang-btn:hover { color: var(--text); border-color: rgba(255,255,255,.22); transform: translateY(-1px); }
.lang-btn.on { color: #1a0a06; background: var(--grad); border-color: transparent; box-shadow: 0 8px 24px -10px rgba(255,110,80,.8); }
#help-shot { transition: opacity .25s ease; }
#help-shot.swapping { opacity: 0; }

/* Early access */
.access { padding: 80px 0 120px; }
.access-card {
  position: relative; overflow: hidden; border-radius: 36px; padding: 80px 40px; text-align: center;
  background: radial-gradient(80% 120% at 50% 0%, rgba(255,122,89,.35), transparent 60%), linear-gradient(180deg, #1a1218, #110f16);
  border: 1px solid rgba(255,140,110,.25);
}
.access-card h2 { font-size: clamp(36px, 5.6vw, 64px); font-weight: 850; margin: 16px auto 18px; max-width: 760px; }
.access-card p { color: var(--muted); font-size: 19px; max-width: 620px; margin: 0 auto 34px; }
.access-card .icon-big { width: 96px; height: 96px; margin: 0 auto; border-radius: 24px; filter: drop-shadow(0 20px 40px rgba(255,90,80,.5)); }
.access-list { list-style: none; padding: 0; margin: 34px auto 0; display: flex; flex-wrap: wrap; justify-content: center; gap: 10px 28px; color: var(--muted); font-size: 15px; }
.access-list li::before { content: "✓"; color: var(--green); font-weight: 800; margin-right: 8px; }

/* FAQ */
.faq { max-width: 820px; margin: 0 auto; }
.faq details { border-bottom: 1px solid var(--border); padding: 6px 0; }
.faq summary { cursor: pointer; list-style: none; display: flex; justify-content: space-between; align-items: center; gap: 20px; padding: 20px 0; font-size: 19px; font-weight: 650; }
.faq summary::-webkit-details-marker { display: none; }
.faq summary::after { content: "+"; font-size: 26px; font-weight: 300; color: var(--muted); transition: transform .25s ease; }
.faq details[open] summary::after { transform: rotate(45deg); }
.faq details p { color: var(--muted); padding: 0 40px 22px 0; }

/* Footer */
footer { border-top: 1px solid var(--border); padding: 48px 0 60px; color: var(--dim); font-size: 14px; }
footer .wrap { display: flex; flex-wrap: wrap; gap: 20px; justify-content: space-between; align-items: center; }
footer nav { display: flex; gap: 22px; }
footer a:hover { color: var(--text); }

/* Reveal */
/* Hidden only when JavaScript runs (the html.js class), so content never
   stays invisible if the script fails to load. */
.js .reveal { opacity: 0; transform: translateY(28px); transition: opacity .8s ease, transform .8s cubic-bezier(.2,.8,.2,1); }
.js .reveal.in { opacity: 1; transform: none; }
.reveal.d1 { transition-delay: .08s; } .reveal.d2 { transition-delay: .16s; } .reveal.d3 { transition-delay: .24s; }

/* Responsive */
@media (max-width: 1100px) {
  .float-card.income { left: 10px; }
  .float-card.timer { right: 10px; }
}
@media (max-width: 960px) {
  .nav-links { display: none; }
  .bento { grid-template-columns: 1fr 1fr; }
  .t-wide, .t-narrow, .t-half, .t-third { grid-column: span 2; }
  .calc { grid-template-columns: 1fr; }
  .priv-grid, .steps { grid-template-columns: 1fr; }
  section { padding: 90px 0; }
}
@media (max-width: 640px) {
  body { font-size: 16px; }
  .nav .btn { display: none; }
  .hero { padding-top: 130px; }
  .float-card { display: none; }
  .showcase { margin-top: 50px; }
  .rates { grid-template-columns: 1fr; }
  .calc-card { padding: 24px; }
  .tile { padding: 24px; }
  .tile .media { margin: 22px -24px -24px; }
  .access-card { padding: 56px 22px; border-radius: 28px; }
  .total strong { font-size: 44px; }
  .breakdown li { flex-wrap: wrap; row-gap: 2px; }
  .breakdown .m { order: 3; width: 100%; padding-left: 24px; font-size: 14px; }
}
@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after { animation: none !important; transition: none !important; scroll-behavior: auto !important; }
  .js .reveal { opacity: 1; transform: none; }
  .js .showcase .shot { transform: none; }
}

/* Screenshot shown whole inside a tile, in a floating window frame */
.tile .media.framed { margin: 28px 0 0; border: 0; background: none; }
.tile .media.framed img { width: 100%; border-radius: 12px; border: 1px solid rgba(255,255,255,.12);
  box-shadow: 0 24px 50px -18px rgba(0,0,0,.8), 0 0 0 1px rgba(0,0,0,.4); }
.tile .media.framed::before { content: ""; position: absolute; inset: 10% 6% -4%; z-index: -1; border-radius: 30px;
  background: var(--grad); filter: blur(50px); opacity: .22; }
.tile .media.framed { position: relative; z-index: 0; margin-top: auto; padding-top: 28px; }
