/* ===================== TimePills marketing site ===================== */
:root {
  --bg: #080b12;
  --bg-2: #0c1119;
  --surface: rgba(255, 255, 255, 0.04);
  --surface-2: rgba(255, 255, 255, 0.06);
  --border: rgba(255, 255, 255, 0.09);
  --border-strong: rgba(255, 255, 255, 0.16);
  --text: #eef1f7;
  --muted: #9aa4b6;
  --muted-2: #6b7688;
  --accent: #4c8dff;
  --accent-2: #7aa7ff;
  --accent-glow: rgba(76, 141, 255, 0.45);
  --radius: 16px;
  --radius-lg: 22px;
  --font-body: "DM Sans", system-ui, -apple-system, sans-serif;
  --font-display: "Space Grotesk", system-ui, sans-serif;
  --maxw: 1120px;
}

* { box-sizing: border-box; margin: 0; padding: 0; }
html { scroll-behavior: smooth; }
body {
  font-family: var(--font-body);
  background: var(--bg);
  color: var(--text);
  line-height: 1.6;
  -webkit-font-smoothing: antialiased;
  overflow-x: hidden;
  position: relative;
}
body::before {
  content: "";
  position: fixed; inset: 0;
  background:
    radial-gradient(1200px 600px at 50% -10%, rgba(76, 141, 255, 0.16), transparent 60%),
    linear-gradient(180deg, var(--bg-2), var(--bg) 40%);
  z-index: -2;
}

/* ambient orbs */
.bg-orbs { position: fixed; inset: 0; z-index: -1; overflow: hidden; pointer-events: none; }
.orb { position: absolute; border-radius: 50%; filter: blur(90px); opacity: 0.5; }
.orb-a { width: 520px; height: 520px; background: #3b6dff; top: -180px; left: -120px; animation: float 16s ease-in-out infinite; }
.orb-b { width: 460px; height: 460px; background: #7b61ff; top: 30%; right: -160px; opacity: 0.35; animation: float 20s ease-in-out infinite reverse; }
.orb-c { width: 400px; height: 400px; background: #22d3aa; bottom: -160px; left: 30%; opacity: 0.22; animation: float 24s ease-in-out infinite; }
@keyframes float { 0%,100% { transform: translateY(0); } 50% { transform: translateY(-40px); } }

a { color: inherit; text-decoration: none; }
h1, h2, h3 { font-family: var(--font-display); font-weight: 600; letter-spacing: -0.02em; line-height: 1.1; }
em { font-style: normal; color: var(--accent-2); }

/* ============================ nav ============================ */
.nav {
  position: sticky; top: 0; z-index: 50;
  display: flex; align-items: center; gap: 24px;
  max-width: var(--maxw); margin: 0 auto; width: 100%;
  padding: 16px 24px;
  backdrop-filter: blur(14px);
}
.nav::after {
  content: ""; position: absolute; inset: 0; z-index: -1;
  background: rgba(8, 11, 18, 0.55);
  border-bottom: 1px solid var(--border);
  mask: linear-gradient(180deg, #000 40%, transparent);
}
.brand { display: flex; align-items: center; gap: 10px; font-family: var(--font-display); font-weight: 600; font-size: 18px; }
.brand-mark {
  width: 26px; height: 26px; border-radius: 8px;
  background: linear-gradient(160deg, #1c2536, #0c1119);
  border: 1px solid var(--border-strong);
  position: relative; box-shadow: 0 2px 10px rgba(0,0,0,0.4);
}
.brand-mark::before, .brand-mark::after {
  content: ""; position: absolute; left: 5px; right: 5px; height: 3px; border-radius: 3px;
  background: rgba(255,255,255,0.18);
}
.brand-mark::before { top: 8px; }
.brand-mark::after { top: 15px; left: 5px; width: 9px; right: auto; background: var(--accent); box-shadow: 0 0 8px var(--accent-glow); }
.brand-mark.small { width: 20px; height: 20px; }
.nav-links { display: flex; gap: 22px; margin-left: auto; font-size: 15px; color: var(--muted); }
.nav-links a:hover { color: var(--text); }

/* ============================ buttons ============================ */
.btn {
  display: inline-flex; align-items: center; justify-content: center; gap: 8px;
  font-family: var(--font-body); font-weight: 600; font-size: 15px;
  padding: 12px 22px; border-radius: 999px; border: 1px solid transparent;
  cursor: pointer; transition: transform 0.15s ease, box-shadow 0.2s ease, background 0.2s ease; white-space: nowrap;
}
.btn:active { transform: translateY(1px); }
.btn-primary {
  color: #05070c;
  background: linear-gradient(180deg, var(--accent-2), var(--accent));
  box-shadow: 0 8px 24px -6px var(--accent-glow), inset 0 1px 0 rgba(255,255,255,0.4);
}
.btn-primary:hover { box-shadow: 0 12px 32px -6px var(--accent-glow), inset 0 1px 0 rgba(255,255,255,0.5); transform: translateY(-1px); }
.btn-primary strong { font-weight: 700; }
.btn-ghost { color: var(--text); background: var(--surface); border-color: var(--border-strong); }
.btn-ghost:hover { background: var(--surface-2); }
.btn-sm { padding: 9px 16px; font-size: 14px; }
.btn-lg { padding: 15px 30px; font-size: 17px; }

/* ============================ hero ============================ */
.hero { max-width: var(--maxw); margin: 0 auto; padding: 84px 24px 40px; text-align: center; }
.eyebrow {
  display: inline-block; font-size: 13px; font-weight: 600; letter-spacing: 0.06em; text-transform: uppercase;
  color: var(--accent-2); padding: 6px 14px; border-radius: 999px;
  background: rgba(76, 141, 255, 0.1); border: 1px solid rgba(76, 141, 255, 0.25); margin-bottom: 26px;
}
.hero-title { font-size: clamp(38px, 6.4vw, 74px); margin-bottom: 24px; }
.grad {
  background: linear-gradient(100deg, var(--accent-2), #a9c4ff 55%, #7b61ff);
  -webkit-background-clip: text; background-clip: text; color: transparent;
}
.hero-sub { max-width: 640px; margin: 0 auto 34px; font-size: clamp(17px, 2.1vw, 20px); color: var(--muted); }
.hero-cta { display: flex; gap: 14px; justify-content: center; flex-wrap: wrap; }
.hero-note { margin-top: 18px; font-size: 14px; color: var(--muted-2); }

/* hero stage — the live pill bar in a faux window */
.hero-stage {
  margin: 56px auto 0; max-width: 960px;
  border-radius: var(--radius-lg); border: 1px solid var(--border);
  background: linear-gradient(180deg, rgba(255,255,255,0.05), rgba(255,255,255,0.02));
  box-shadow: 0 40px 80px -30px rgba(0,0,0,0.8), inset 0 1px 0 rgba(255,255,255,0.08);
  overflow: hidden; backdrop-filter: blur(8px);
}
.window-chrome { display: flex; align-items: center; gap: 8px; padding: 13px 16px; border-bottom: 1px solid var(--border); background: rgba(0,0,0,0.2); }
.window-chrome .dot { width: 12px; height: 12px; border-radius: 50%; }
.dot.r { background: #ff5f57; } .dot.y { background: #febc2e; } .dot.g { background: #28c840; }
.window-time { margin-left: auto; font-size: 13px; color: var(--muted); font-variant-numeric: tabular-nums; letter-spacing: 0.02em; }
.desk {
  padding: 54px 28px 30px; position: relative;
  background:
    radial-gradient(600px 200px at 50% 120%, rgba(76,141,255,0.14), transparent 70%),
    repeating-linear-gradient(115deg, rgba(255,255,255,0.015) 0 22px, transparent 22px 44px);
  min-height: 190px; display: flex; flex-direction: column; justify-content: flex-end;
}
.desk-hint { text-align: center; font-size: 14px; color: var(--muted-2); margin-bottom: 22px; }

/* the pill bar itself */
.pillbar { display: flex; gap: 2px; align-items: flex-end; height: 34px; padding: 0 2px; }
.pillbar .pill {
  flex: 1 1 0; height: 8px; border-radius: 999px;
  background: rgba(255,255,255,0.11);
  transition: height 0.3s ease, background 0.3s ease;
  position: relative; overflow: hidden;
}
.pillbar .pill.past { background: rgba(255,255,255,0.05); }
.pillbar .pill.seg { opacity: 0.9; }
.pillbar .pill.current {
  height: 30px; background: rgba(255,255,255,0.14);
  box-shadow: 0 0 0 1px rgba(255,255,255,0.14), 0 0 24px var(--accent-glow);
}
.pillbar .pill.current .fill {
  position: absolute; inset: 0; border-radius: 999px;
  background: linear-gradient(180deg, var(--accent-2), var(--accent));
  transform-origin: left; box-shadow: inset 0 1px 0 rgba(255,255,255,0.5);
}

/* ============================ sections ============================ */
.section { max-width: var(--maxw); margin: 0 auto; padding: 92px 24px; }
.section-head { text-align: center; max-width: 720px; margin: 0 auto 52px; }
.kicker { font-size: 13px; font-weight: 600; letter-spacing: 0.08em; text-transform: uppercase; color: var(--accent-2); margin-bottom: 14px; }
.kicker.center { text-align: center; }
.section-head h2 { font-size: clamp(28px, 4.2vw, 46px); }

/* problem prose */
.prose { max-width: 680px; margin: 0 auto; font-size: 18px; color: var(--muted); display: grid; gap: 20px; text-align: center; }
.prose-lead { color: var(--text); font-size: 20px; }
.prose strong { color: var(--text); }

/* how — steps */
.steps { list-style: none; display: grid; grid-template-columns: repeat(3, 1fr); gap: 22px; }
.step { position: relative; padding: 30px 26px; border-radius: var(--radius); background: var(--surface); border: 1px solid var(--border); }
.step-n {
  display: inline-flex; align-items: center; justify-content: center; width: 38px; height: 38px; border-radius: 12px;
  font-family: var(--font-display); font-weight: 700; font-size: 18px; color: var(--accent-2);
  background: rgba(76,141,255,0.12); border: 1px solid rgba(76,141,255,0.25); margin-bottom: 18px;
}
.step h3 { font-size: 19px; margin-bottom: 8px; }
.step p { color: var(--muted); font-size: 15px; }

/* features bento */
.card {
  border-radius: var(--radius); border: 1px solid var(--border);
  background: linear-gradient(180deg, var(--surface-2), var(--surface));
  box-shadow: inset 0 1px 0 rgba(255,255,255,0.05);
}
.bento { display: grid; grid-template-columns: repeat(6, 1fr); gap: 18px; }
.feat { grid-column: span 2; padding: 28px 26px; transition: transform 0.2s ease, border-color 0.2s ease; }
.feat-wide { grid-column: span 3; }
.feat:hover { transform: translateY(-3px); border-color: var(--border-strong); }
.feat-icon {
  width: 46px; height: 46px; border-radius: 13px; display: grid; place-items: center; font-size: 22px;
  background: rgba(255,255,255,0.05); border: 1px solid var(--border); margin-bottom: 18px;
}
.feat h3 { font-size: 20px; margin-bottom: 9px; }
.feat p { color: var(--muted); font-size: 15px; }

/* screenshots */
.shots { display: grid; grid-template-columns: repeat(2, 1fr); gap: 22px; }
.shot { border-radius: var(--radius); overflow: hidden; border: 1px solid var(--border); background: var(--surface); }
.shot img { display: block; width: 100%; height: auto; background: #0a0e16; }
.shot figcaption { padding: 14px 18px; font-size: 14px; color: var(--muted); border-top: 1px solid var(--border); }
.shot.pending img { display: none; }
.shot.pending { min-height: 220px; display: flex; flex-direction: column; align-items: center; justify-content: center; text-align: center;
  background: repeating-linear-gradient(135deg, rgba(255,255,255,0.02) 0 12px, transparent 12px 24px); }
.shot.pending figcaption { border: 0; color: var(--muted-2); }
.shot.pending::before { content: "Screenshot coming soon"; font-size: 13px; color: var(--muted-2); letter-spacing: 0.04em; text-transform: uppercase; }

/* pricing */
.price-card { max-width: 460px; margin: 0 auto; padding: 44px 36px; text-align: center; }
.price { display: flex; align-items: baseline; justify-content: center; gap: 10px; margin: 8px 0 6px; }
.price-amt { font-family: var(--font-display); font-size: 72px; font-weight: 700; letter-spacing: -0.03em; }
.price-per { color: var(--muted); font-size: 18px; }
.price-sub { color: var(--muted); margin-bottom: 26px; }
.price-card .btn { width: 100%; }
.price-list { list-style: none; text-align: left; margin-top: 28px; display: grid; gap: 12px; }
.price-list li { position: relative; padding-left: 30px; color: var(--muted); font-size: 15px; }
.price-list li::before {
  content: "✓"; position: absolute; left: 0; top: 0; color: var(--accent-2); font-weight: 700;
  width: 20px; height: 20px; display: grid; place-items: center; border-radius: 50%;
  background: rgba(76,141,255,0.12); font-size: 12px;
}

/* faq */
.faq { max-width: 720px; margin: 0 auto; display: grid; gap: 12px; }
.faq details { border: 1px solid var(--border); border-radius: 14px; background: var(--surface); padding: 4px 20px; transition: background 0.2s; }
.faq details[open] { background: var(--surface-2); }
.faq summary { cursor: pointer; list-style: none; padding: 16px 0; font-weight: 600; font-size: 16px; display: flex; justify-content: space-between; align-items: center; }
.faq summary::-webkit-details-marker { display: none; }
.faq summary::after { content: "+"; color: var(--accent-2); font-size: 22px; font-weight: 400; transition: transform 0.2s; }
.faq details[open] summary::after { transform: rotate(45deg); }
.faq p { padding: 0 0 18px; color: var(--muted); font-size: 15px; }

/* final cta */
.final { text-align: center; padding: 100px 24px; max-width: 720px; margin: 0 auto; }
.final h2 { font-size: clamp(30px, 5vw, 52px); margin-bottom: 12px; }
.final p { color: var(--muted); font-size: 20px; margin-bottom: 30px; }

/* footer */
.footer { border-top: 1px solid var(--border); padding: 40px 24px; text-align: center; color: var(--muted-2); display: grid; gap: 8px; }
.footer-brand { display: inline-flex; gap: 8px; align-items: center; justify-content: center; font-family: var(--font-display); font-weight: 600; color: var(--text); }
.footer a { color: var(--muted); }
.footer a:hover { color: var(--accent-2); }
.footer-legal { font-size: 13px; }

/* ============================ responsive ============================ */
@media (max-width: 860px) {
  .nav-links { display: none; }
  .steps { grid-template-columns: 1fr; }
  .bento { grid-template-columns: 1fr; }
  .feat, .feat-wide { grid-column: span 1; }
  .shots { grid-template-columns: 1fr; }
}

@media (prefers-reduced-motion: reduce) {
  .orb { animation: none; }
  * { scroll-behavior: auto; }
}
