/* Catnap — website styles
   Palette is lifted straight from the app: amber #F59E0B on near-black zinc,
   which is also what the app icon does (orange cat on a black rounded square). */

:root {
  --bg: #08080a;
  --bg-soft: #0f0f12;
  --surface: #131316;
  --surface-2: #1a1a1e;
  --line: rgba(255, 255, 255, 0.08);
  --line-strong: rgba(255, 255, 255, 0.14);

  --text: #fafafa;
  --muted: #a1a1aa;
  --faint: #71717a;

  --ginger: #f59e0b;
  --toast: #d97706;
  --cream: #fcd9a0;

  --radius: 16px;
  --radius-sm: 10px;
  --maxw: 1080px;
}

* {
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
  scroll-padding-top: 88px;
}

body {
  margin: 0;
  background: var(--bg);
  color: var(--text);
  font-family: "Inter", system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
  font-size: 16px;
  line-height: 1.65;
  letter-spacing: -0.011em;
  -webkit-font-smoothing: antialiased;
  overflow-x: hidden;
}

img {
  max-width: 100%;
  display: block;
}

a {
  color: inherit;
}

h1,
h2,
h3 {
  letter-spacing: -0.03em;
  line-height: 1.15;
  margin: 0;
  font-weight: 700;
}

p {
  margin: 0;
}

.wrap {
  width: 100%;
  max-width: var(--maxw);
  margin: 0 auto;
  padding: 0 24px;
}

/* ---------------------------------------------------------------- nav */

.nav {
  position: sticky;
  top: 0;
  z-index: 50;
  backdrop-filter: blur(14px);
  -webkit-backdrop-filter: blur(14px);
  background: rgba(8, 8, 10, 0.72);
  border-bottom: 1px solid var(--line);
}

.nav-inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  height: 68px;
  gap: 16px;
}

.brand {
  display: flex;
  align-items: center;
  gap: 10px;
  text-decoration: none;
  font-weight: 700;
  letter-spacing: -0.02em;
  font-size: 17px;
}

.brand img {
  width: 32px;
  height: 32px;
  border-radius: 8px;
}

.nav-links {
  display: flex;
  align-items: center;
  gap: 28px;
}

.nav-links a {
  color: var(--muted);
  text-decoration: none;
  font-size: 14.5px;
  font-weight: 500;
  transition: color 0.15s ease;
}

.nav-links a:hover {
  color: var(--text);
}

/* `.nav-links a` would otherwise out-specify `.btn-primary` and mute the label. */
.nav-links a.btn-primary {
  padding: 8px 16px;
  font-size: 14px;
  color: #1a1205;
}

.nav-links a.btn-primary:hover {
  color: #1a1205;
}

/* ------------------------------------------------------------- buttons */

.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 9px;
  padding: 13px 22px;
  border-radius: 12px;
  font-size: 15px;
  font-weight: 600;
  letter-spacing: -0.01em;
  text-decoration: none;
  border: 1px solid transparent;
  cursor: pointer;
  transition: transform 0.12s ease, background 0.15s ease, border-color 0.15s ease;
  white-space: nowrap;
}

.btn:active {
  transform: scale(0.985);
}

.btn-primary {
  background: var(--ginger);
  color: #1a1205;
  box-shadow: 0 8px 32px -12px rgba(245, 158, 11, 0.7);
}

.btn-primary:hover {
  background: var(--toast);
}

.btn-ghost {
  background: var(--surface);
  color: var(--text);
  border-color: var(--line-strong);
}

.btn-ghost:hover {
  background: var(--surface-2);
  border-color: rgba(255, 255, 255, 0.24);
}

.btn svg {
  width: 17px;
  height: 17px;
  flex-shrink: 0;
}

.btn small {
  font-weight: 500;
  opacity: 0.65;
  font-size: 12.5px;
}

/* --------------------------------------------------------------- hero */

.hero {
  position: relative;
  padding: 96px 0 88px;
  text-align: center;
  overflow: hidden;
}

/* Warm glow behind the icon — echoes the amber ring in the app icon. */
.hero::before {
  content: "";
  position: absolute;
  top: -180px;
  left: 50%;
  transform: translateX(-50%);
  width: 760px;
  height: 620px;
  background: radial-gradient(closest-side, rgba(245, 158, 11, 0.2), transparent 72%);
  pointer-events: none;
  filter: blur(20px);
}

.hero-inner {
  position: relative;
}

.hero-logo {
  width: 132px;
  height: 132px;
  margin: 0 auto 30px;
  border-radius: 30px;
  box-shadow: 0 30px 70px -28px rgba(245, 158, 11, 0.55), 0 0 0 1px var(--line);
  animation: float 5s ease-in-out infinite;
}

@keyframes float {
  0%,
  100% {
    transform: translateY(0);
  }
  50% {
    transform: translateY(-8px);
  }
}

@media (prefers-reduced-motion: reduce) {
  .hero-logo {
    animation: none;
  }
  html {
    scroll-behavior: auto;
  }
}

.pill {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 6px 14px;
  border-radius: 999px;
  border: 1px solid var(--line-strong);
  background: var(--surface);
  font-size: 13px;
  font-weight: 500;
  color: var(--muted);
  margin-bottom: 22px;
}

.pill .dot {
  width: 6px;
  height: 6px;
  border-radius: 50%;
  background: var(--ginger);
}

.hero h1 {
  font-size: clamp(44px, 7vw, 68px);
  font-weight: 800;
  margin-bottom: 20px;
}

.hero h1 .accent {
  color: var(--ginger);
}

.lead {
  font-size: clamp(17px, 2.2vw, 19.5px);
  color: var(--muted);
  max-width: 640px;
  margin: 0 auto;
  line-height: 1.6;
}

.hero-actions {
  display: flex;
  gap: 14px;
  justify-content: center;
  flex-wrap: wrap;
  margin-top: 38px;
}

.hero-meta {
  margin-top: 22px;
  font-size: 13.5px;
  color: var(--faint);
}

.hero-meta span {
  white-space: nowrap;
}

.hero-meta .sep {
  opacity: 0.4;
  margin: 0 10px;
}

/* ----------------------------------------------------------- sections */

section {
  padding: 84px 0;
  border-top: 1px solid var(--line);
}

.section-head {
  max-width: 620px;
  margin-bottom: 48px;
}

.section-head.center {
  margin-left: auto;
  margin-right: auto;
  text-align: center;
}

.eyebrow {
  font-size: 12.5px;
  font-weight: 600;
  letter-spacing: 0.09em;
  text-transform: uppercase;
  color: var(--ginger);
  margin-bottom: 12px;
}

.section-head h2 {
  font-size: clamp(28px, 4vw, 38px);
  margin-bottom: 14px;
}

.section-head p {
  color: var(--muted);
  font-size: 16.5px;
}

/* --------------------------------------------------------- what it is */

.explainer {
  display: grid;
  grid-template-columns: 1.05fr 1fr;
  gap: 56px;
  align-items: center;
}

.explainer-copy p + p {
  margin-top: 18px;
}

.explainer-copy p {
  color: var(--muted);
  font-size: 16.5px;
}

.explainer-copy strong {
  color: var(--text);
  font-weight: 600;
}

/* A small mock of the break overlay: your desktop, dimmed, cat on top. */
.mock {
  border: 1px solid var(--line-strong);
  border-radius: var(--radius);
  background: linear-gradient(160deg, #17171b, #0c0c0e);
  padding: 0;
  overflow: hidden;
  box-shadow: 0 40px 90px -40px rgba(0, 0, 0, 0.9);
}

.mock-bar {
  display: flex;
  align-items: center;
  gap: 7px;
  padding: 12px 14px;
  border-bottom: 1px solid var(--line);
  background: rgba(255, 255, 255, 0.02);
}

.mock-bar i {
  width: 10px;
  height: 10px;
  border-radius: 50%;
  background: #2e2e34;
  display: block;
}

.mock-body {
  position: relative;
  padding: 34px 24px 28px;
  text-align: center;
  min-height: 250px;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 16px;
}

.mock-body::before {
  content: "";
  position: absolute;
  inset: 0;
  background: radial-gradient(circle at 50% 60%, rgba(245, 158, 11, 0.14), transparent 65%);
}

.mock-timer {
  position: relative;
  font-size: 46px;
  font-weight: 800;
  letter-spacing: -0.04em;
  font-variant-numeric: tabular-nums;
  color: var(--text);
}

.mock-label {
  position: relative;
  font-size: 13.5px;
  color: var(--cream);
  font-weight: 500;
  transition: opacity 0.26s ease;
}

.mock-label.is-swapping {
  opacity: 0;
}

@media (prefers-reduced-motion: reduce) {
  .mock-label {
    transition: none;
  }
}

.mock-cat {
  position: relative;
  width: 96px;
  height: 96px;
  border-radius: 22px;
  opacity: 0.96;
}

.mock-hint {
  position: relative;
  font-size: 12.5px;
  color: var(--faint);
}

/* ------------------------------------------------------------ feature */

.grid {
  display: grid;
  gap: 18px;
}

.grid-3 {
  grid-template-columns: repeat(3, 1fr);
}

.grid-4 {
  grid-template-columns: repeat(4, 1fr);
}

.card {
  background: var(--surface);
  border: 1px solid var(--line);
  border-radius: var(--radius);
  padding: 26px 24px;
  transition: border-color 0.18s ease, transform 0.18s ease;
}

.card:hover {
  border-color: var(--line-strong);
  transform: translateY(-2px);
}

.card .ico {
  width: 40px;
  height: 40px;
  border-radius: 11px;
  background: rgba(245, 158, 11, 0.12);
  color: var(--ginger);
  display: grid;
  place-items: center;
  margin-bottom: 16px;
}

.card .ico svg {
  width: 20px;
  height: 20px;
}

.card h3 {
  font-size: 16.5px;
  margin-bottom: 8px;
  font-weight: 650;
}

.card p {
  color: var(--muted);
  font-size: 14.5px;
  line-height: 1.6;
}

/* -------------------------------------------------------------- steps */

.steps {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 18px;
  counter-reset: step;
}

.step {
  background: var(--surface);
  border: 1px solid var(--line);
  border-radius: var(--radius);
  padding: 26px 24px;
}

.step-num {
  width: 30px;
  height: 30px;
  border-radius: 9px;
  background: var(--ginger);
  color: #1a1205;
  font-weight: 700;
  font-size: 14px;
  display: grid;
  place-items: center;
  margin-bottom: 16px;
}

.step h3 {
  font-size: 16.5px;
  margin-bottom: 8px;
  font-weight: 650;
}

.step p {
  color: var(--muted);
  font-size: 14.5px;
}

/* ------------------------------------------------------------ install */

.tabs {
  display: inline-flex;
  padding: 4px;
  gap: 4px;
  background: var(--surface);
  border: 1px solid var(--line);
  border-radius: 12px;
  margin-bottom: 32px;
}

.tab {
  padding: 9px 20px;
  border-radius: 9px;
  border: none;
  background: transparent;
  color: var(--muted);
  font-family: inherit;
  font-size: 14.5px;
  font-weight: 600;
  cursor: pointer;
  transition: background 0.15s ease, color 0.15s ease;
  display: inline-flex;
  align-items: center;
  gap: 8px;
}

.tab svg {
  width: 15px;
  height: 15px;
}

.tab[aria-selected="true"] {
  background: var(--ginger);
  color: #1a1205;
}

.tab:hover:not([aria-selected="true"]) {
  color: var(--text);
}

.panel[hidden] {
  display: none;
}

.stepslist {
  list-style: none;
  counter-reset: n;
  margin: 0;
  padding: 0;
  border-left: 2px solid var(--line);
}

.stepslist li {
  counter-increment: n;
  position: relative;
  padding: 0 0 30px 30px;
  margin-left: 14px;
}

.stepslist li::before {
  content: counter(n);
  position: absolute;
  left: -16px;
  top: 0;
  width: 30px;
  height: 30px;
  border-radius: 50%;
  background: var(--bg-soft);
  border: 1px solid var(--line-strong);
  color: var(--ginger);
  font-size: 13px;
  font-weight: 700;
  display: grid;
  place-items: center;
}

.stepslist li:last-child {
  padding-bottom: 0;
}

.stepslist h4 {
  margin: 3px 0 6px;
  font-size: 16px;
  font-weight: 650;
  letter-spacing: -0.02em;
}

.stepslist p {
  color: var(--muted);
  font-size: 14.8px;
}

.stepslist p + p {
  margin-top: 8px;
}

.kbd {
  display: inline-block;
  padding: 1px 7px;
  border-radius: 6px;
  background: var(--surface-2);
  border: 1px solid var(--line-strong);
  font-size: 13px;
  font-weight: 600;
  color: var(--text);
  white-space: nowrap;
}

.path {
  color: var(--cream);
  font-weight: 500;
}

.note {
  margin-top: 12px;
  padding: 13px 16px;
  border-radius: var(--radius-sm);
  background: rgba(245, 158, 11, 0.07);
  border: 1px solid rgba(245, 158, 11, 0.2);
  font-size: 14px;
  color: var(--cream);
}

.note strong {
  color: var(--ginger);
}

code {
  font-family: ui-monospace, SFMono-Regular, "SF Mono", Menlo, monospace;
  font-size: 13.5px;
  background: var(--surface-2);
  border: 1px solid var(--line);
  padding: 2px 7px;
  border-radius: 6px;
  color: var(--cream);
}

pre {
  margin: 10px 0 0;
  padding: 13px 16px;
  background: var(--bg-soft);
  border: 1px solid var(--line);
  border-radius: var(--radius-sm);
  overflow-x: auto;
}

pre code {
  background: none;
  border: none;
  padding: 0;
  color: var(--cream);
}

.aside-box {
  margin-top: 34px;
  padding: 24px;
  border: 1px dashed var(--line-strong);
  border-radius: var(--radius);
  background: var(--bg-soft);
}

.aside-box h4 {
  margin: 0 0 8px;
  font-size: 15.5px;
  font-weight: 650;
}

.aside-box p {
  color: var(--muted);
  font-size: 14.5px;
}

/* ----------------------------------------------------------- download */

.dl-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 18px;
}

.dl {
  background: var(--surface);
  border: 1px solid var(--line);
  border-radius: var(--radius);
  padding: 26px 24px;
  display: flex;
  flex-direction: column;
  transition: border-color 0.18s ease;
}

.dl.featured {
  border-color: rgba(245, 158, 11, 0.4);
  background: linear-gradient(180deg, rgba(245, 158, 11, 0.06), var(--surface));
}

.dl:hover {
  border-color: var(--line-strong);
}

.dl-top {
  display: flex;
  align-items: center;
  gap: 11px;
  margin-bottom: 14px;
}

.dl-top svg {
  width: 22px;
  height: 22px;
  color: var(--text);
}

.dl-top h3 {
  font-size: 16.5px;
  font-weight: 650;
}

.dl p {
  color: var(--muted);
  font-size: 14.5px;
  flex: 1;
  margin-bottom: 20px;
}

.dl .btn {
  width: 100%;
}

.dl-file {
  margin-top: 12px;
  font-size: 12.5px;
  color: var(--faint);
  text-align: center;
  word-break: break-all;
}

/* ---------------------------------------------------------------- faq */

.faq {
  border-top: 1px solid var(--line);
}

.faq details {
  border-bottom: 1px solid var(--line);
  padding: 20px 0;
}

.faq summary {
  cursor: pointer;
  list-style: none;
  font-weight: 600;
  font-size: 16px;
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 16px;
  letter-spacing: -0.02em;
}

.faq summary::-webkit-details-marker {
  display: none;
}

.faq summary::after {
  content: "+";
  color: var(--ginger);
  font-size: 22px;
  font-weight: 400;
  line-height: 1;
  flex-shrink: 0;
}

.faq details[open] summary::after {
  content: "−";
}

.faq details p {
  margin-top: 12px;
  color: var(--muted);
  font-size: 15px;
  max-width: 74ch;
}

/* ------------------------------------------------------------ preview */

.preview-frame {
  margin: 0;
  border: 1px solid var(--line-strong);
  border-radius: var(--radius);
  overflow: hidden;
  background: var(--bg-soft);
  box-shadow: 0 40px 90px -45px rgba(245, 158, 11, 0.5);
}

.preview-bar {
  display: flex;
  align-items: center;
  gap: 7px;
  padding: 12px 14px;
  border-bottom: 1px solid var(--line);
  background: rgba(255, 255, 255, 0.02);
}

.preview-bar i {
  width: 10px;
  height: 10px;
  border-radius: 50%;
  background: #2e2e34;
  display: block;
}

/* The clip is rendered on --bg-soft, so it blends into the frame with no seam. */
.preview-video {
  display: block;
  width: 100%;
  height: auto;
  background: var(--bg-soft);
}

.preview-cap {
  padding: 14px 18px;
  border-top: 1px solid var(--line);
  font-size: 13.5px;
  color: var(--faint);
  text-align: center;
}

/* ------------------------------------------------------------ support */

.support-card {
  background: linear-gradient(180deg, rgba(245, 158, 11, 0.07), var(--surface));
  border: 1px solid rgba(245, 158, 11, 0.28);
  border-radius: var(--radius);
  padding: 30px;
}

.support-goal {
  margin-bottom: 26px;
}

.goal-head {
  display: flex;
  align-items: baseline;
  justify-content: space-between;
  gap: 16px;
  flex-wrap: wrap;
  margin-bottom: 13px;
}

.goal-head h3 {
  font-size: 16.5px;
  font-weight: 650;
  letter-spacing: -0.02em;
}

.goal-num {
  font-size: 14px;
  color: var(--muted);
  white-space: nowrap;
}

.goal-num strong {
  color: var(--ginger);
  font-weight: 700;
  font-size: 16.5px;
}

.goal-bar {
  height: 10px;
  border-radius: 999px;
  background: var(--bg-soft);
  border: 1px solid var(--line);
  overflow: hidden;
}

.goal-fill {
  height: 100%;
  width: 0;
  border-radius: 999px;
  background: linear-gradient(90deg, var(--toast), var(--ginger));
  transition: width 0.7s ease;
}

@media (prefers-reduced-motion: reduce) {
  .goal-fill {
    transition: none;
  }
}

.goal-note {
  margin-top: 11px;
  font-size: 13.5px;
  color: var(--faint);
}

.support-body {
  color: var(--muted);
  font-size: 15px;
  max-width: 68ch;
}

.support-actions {
  display: flex;
  gap: 12px;
  flex-wrap: wrap;
  margin-top: 26px;
}

.support-fine {
  margin-top: 24px;
  padding-top: 20px;
  border-top: 1px solid var(--line);
  font-size: 13.8px;
  color: var(--faint);
  max-width: 68ch;
}

/* ------------------------------------------------------------- footer */

.footer {
  border-top: 1px solid var(--line);
  padding: 40px 0;
}

.footer-inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 20px;
  flex-wrap: wrap;
}

.footer .brand img {
  width: 26px;
  height: 26px;
  border-radius: 7px;
}

.footer .brand {
  font-size: 15px;
}

.footer p {
  color: var(--faint);
  font-size: 13.5px;
}

.footer p a,
.faq details p a {
  color: var(--ginger);
  text-decoration: none;
  border-bottom: 1px solid rgba(245, 158, 11, 0.35);
}

.footer p a:hover,
.faq details p a:hover {
  border-bottom-color: var(--ginger);
}

/* -------------------------------------------------------- responsive */

@media (max-width: 900px) {
  .explainer {
    grid-template-columns: 1fr;
    gap: 40px;
  }
  .grid-3,
  .grid-4,
  .steps,
  .dl-grid {
    grid-template-columns: repeat(2, 1fr);
  }
  .nav-links a:not(.btn) {
    display: none;
  }
}

@media (max-width: 620px) {
  section {
    padding: 62px 0;
  }
  .hero {
    padding: 66px 0 62px;
  }
  .grid-3,
  .grid-4,
  .steps,
  .dl-grid {
    grid-template-columns: 1fr;
  }
  .hero-actions .btn,
  .support-actions .btn {
    width: 100%;
  }
  .support-card {
    padding: 24px 20px;
  }
  .tabs {
    display: flex;
    width: 100%;
  }
  .tab {
    flex: 1;
    justify-content: center;
  }
  .hero-meta .sep {
    display: block;
    height: 0;
    overflow: hidden;
    margin: 2px 0;
  }
}
