/* Retirology — site-wide custom styles. Tailwind handles 99% of layout; this file
   carries brand gradient tokens, prose tweaks, and a few details Tailwind utilities
   alone can't express cleanly. */

:root {
  --brand-red:    #dc2626;
  --brand-amber:  #f59e0b;
  --brand-green:  #16a34a;
  --slate-900:    #0f172a;
  --slate-700:    #334155;
  --slate-500:    #64748b;
  --slate-300:    #cbd5e1;
  --slate-100:    #f1f5f9;
  --slate-50:     #f8fafc;
}

html {
  scroll-behavior: smooth;
  -webkit-text-size-adjust: 100%;
  scroll-padding-top: 5rem;
}

body {
  font-family: 'Inter', ui-sans-serif, system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", Helvetica, Arial, sans-serif;
  font-feature-settings: "cv02", "cv03", "cv04", "cv11";
  text-rendering: optimizeLegibility;
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
}

/* Brand gradient — matches the logo's red → amber → green diagonal sweep. */
.brand-gradient {
  background-image: linear-gradient(135deg, #dc2626 0%, #f59e0b 50%, #16a34a 100%);
}

.brand-gradient-text {
  background-image: linear-gradient(135deg, #dc2626 0%, #f59e0b 50%, #16a34a 100%);
  -webkit-background-clip: text;
  background-clip: text;
  color: transparent;
}

/* Hero halo: a soft, low-opacity radial wash so the page doesn't feel flat. */
.hero-halo {
  background:
    radial-gradient(60rem 30rem at 15% -10%, rgba(22,163,74,0.08), transparent 60%),
    radial-gradient(50rem 28rem at 95% -5%,  rgba(245,158,11,0.10), transparent 60%),
    radial-gradient(40rem 22rem at 50% 110%, rgba(220,38,38,0.06),  transparent 60%);
}

/* Subtle hairline above section dividers. */
.hairline {
  border-top: 1px solid var(--slate-300);
}

/* Pricing — "suggested" tier subtle ring */
.tier-recommended {
  position: relative;
  box-shadow:
    0 1px 0 rgba(15,23,42,0.04),
    0 30px 60px -20px rgba(22,163,74,0.18);
}
.tier-recommended::before {
  content: "";
  position: absolute;
  inset: -1px;
  border-radius: inherit;
  padding: 1px;
  background: linear-gradient(135deg, #dc2626, #f59e0b, #16a34a);
  -webkit-mask:
    linear-gradient(#000 0 0) content-box,
    linear-gradient(#000 0 0);
  -webkit-mask-composite: xor;
          mask-composite: exclude;
  pointer-events: none;
}

/* <details> chevron */
details > summary {
  list-style: none;
  cursor: pointer;
}
details > summary::-webkit-details-marker { display: none; }
details > summary .chev {
  transition: transform 200ms ease;
}
details[open] > summary .chev {
  transform: rotate(90deg);
}

/* Screenshot frame — a tiny chrome around screenshots so they don't float. */
.shot {
  background: linear-gradient(180deg, #ffffff, #f8fafc);
  border: 1px solid var(--slate-300);
  border-radius: 0.75rem;
  padding: 0.5rem;
  box-shadow:
    0 1px 0 rgba(15,23,42,0.04),
    0 24px 48px -24px rgba(15,23,42,0.18);
}
.shot img {
  display: block;
  width: 100%;
  height: auto;
  border-radius: 0.4rem;
  border: 1px solid var(--slate-300);
}

/* Code chips — for OS paths, install steps. */
.kbd {
  font-family: ui-monospace, SFMono-Regular, "SF Mono", Menlo, Consolas, monospace;
  font-size: 0.85em;
  background: var(--slate-100);
  border: 1px solid var(--slate-300);
  border-radius: 0.375rem;
  padding: 0.1rem 0.4rem;
  color: var(--slate-900);
}

/* Long-form prose (privacy/changelog pages) */
.prose-rt h2 {
  font-size: 1.5rem;
  font-weight: 700;
  color: var(--slate-900);
  margin-top: 2.5rem;
  margin-bottom: 0.75rem;
}
.prose-rt h3 {
  font-size: 1.125rem;
  font-weight: 600;
  color: var(--slate-900);
  margin-top: 1.5rem;
  margin-bottom: 0.5rem;
}
.prose-rt p,
.prose-rt li {
  color: var(--slate-700);
  line-height: 1.7;
}
.prose-rt p { margin-bottom: 1rem; }
.prose-rt ul {
  list-style: disc;
  padding-left: 1.5rem;
  margin-bottom: 1rem;
}
.prose-rt ol {
  list-style: decimal;
  padding-left: 1.5rem;
  margin-bottom: 1rem;
}
.prose-rt a {
  color: var(--brand-green);
  text-decoration: underline;
  text-underline-offset: 2px;
}
.prose-rt a:hover { color: #15803d; }

/* Focus states — visible everywhere for keyboard users. */
a:focus-visible,
button:focus-visible,
summary:focus-visible {
  outline: 2px solid var(--brand-green);
  outline-offset: 3px;
  border-radius: 6px;
}

/* Respect reduced motion. */
@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  * { animation: none !important; transition: none !important; }
}
