/* PathRenamer website: dark, on a field of slowly drifting stars. */
:root {
  /* Dark, over the star background (stars.css, made by build.py) */
  --bg: #090a0f;
  --bg-alt: rgba(27, 39, 53, .55);
  --surface: rgba(22, 31, 42, .92);
  --text: #e8eef2;
  --muted: #a3afba;
  --border: rgba(160, 185, 210, .18);
  --accent: #6fd977;
  --accent-bg: #4cbb55;
  --accent-hover: #5ccc65;
  --on-accent: #03100a;
  --code-bg: rgba(10, 14, 20, .75);
  --shadow: 0 24px 64px rgba(0, 0, 0, .55);
  --radius: 14px;
  --font: -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, "Helvetica Neue", Arial, sans-serif;
  --mono: ui-monospace, "Cascadia Mono", "SFMono-Regular", Consolas, "Liberation Mono", monospace;
  color-scheme: dark;
}

* { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; min-height: 100%; background: radial-gradient(ellipse at bottom, #1b2735 0%, #090a0f 100%) fixed #090a0f; }
body {
  margin: 0;
  background: transparent;
  color: var(--text);
  font: 17px/1.62 var(--font);
}
img { max-width: 100%; height: auto; }
a { color: var(--accent); text-underline-offset: 2px; }
a:hover { text-decoration-thickness: 2px; }
h1, h2, h3 { line-height: 1.2; letter-spacing: -0.015em; margin: 0 0 .5em; }
h1 { font-size: clamp(2rem, 5vw, 3.3rem); }
h2 { font-size: clamp(1.5rem, 3vw, 2.1rem); }
h3 { font-size: 1.18rem; }
p { margin: 0 0 1em; }
code, pre { font-family: var(--mono); font-size: .9em; }
code { background: var(--code-bg); border: 1px solid var(--border); border-radius: 6px; padding: .08em .35em; overflow-wrap: anywhere; }
pre { background: var(--code-bg); border: 1px solid var(--border); border-radius: 10px; padding: 14px 16px; overflow-x: auto; line-height: 1.5; }
pre code { background: none; border: 0; padding: 0; overflow-wrap: normal; }
table { border-collapse: collapse; width: 100%; margin: 0 0 1.4em; font-size: .95em; }
th, td { text-align: left; padding: 10px 12px; border-bottom: 1px solid var(--border); vertical-align: top; }
th { color: var(--muted); font-weight: 600; }
.table-scroll { overflow-x: auto; }

.wrap { max-width: 1120px; margin: 0 auto; padding: 0 20px; }
.narrow { max-width: 780px; }
.skip { position: absolute; left: -999px; top: 8px; background: var(--surface); padding: 8px 12px; z-index: 10; }
.skip:focus { left: 8px; }
.small { font-size: .88rem; color: var(--muted); }
.muted { color: var(--muted); }
.center { text-align: center; }

/* Header */
.site-header {
  position: sticky; top: 0; z-index: 5;
  background: rgba(9, 10, 15, .72);
  backdrop-filter: blur(10px);
  border-bottom: 1px solid var(--border);
}
.header-row { display: flex; align-items: center; gap: 22px; min-height: 64px; }
.brand { display: inline-flex; align-items: center; gap: 10px; font-weight: 700; color: var(--text); text-decoration: none; font-size: 1.08rem; }
.site-header nav { display: flex; gap: 4px; flex: 1; flex-wrap: wrap; }
.site-header nav a { color: var(--muted); text-decoration: none; padding: 6px 10px; border-radius: 8px; font-size: .96rem; }
.site-header nav a:hover, .site-header nav a[aria-current="page"] { color: var(--text); background: var(--bg-alt); }

/* Buttons */
.button {
  display: inline-flex; align-items: center; justify-content: center; gap: 8px;
  padding: 12px 22px; border-radius: 10px; font-weight: 650; text-decoration: none;
  border: 1px solid var(--border); color: var(--text); background: var(--surface);
  transition: background .15s, transform .15s;
}
.button:hover { transform: translateY(-1px); }
.button.primary { background: var(--accent-bg); border-color: transparent; color: var(--on-accent); }
.button.primary:hover { background: var(--accent-hover); }
.small-button { padding: 8px 14px; font-size: .92rem; }
.actions { display: flex; flex-wrap: wrap; gap: 12px; align-items: center; margin: 22px 0 10px; }

/* Sections */
section { padding: 72px 0; }
section.alt { background: var(--bg-alt); border-block: 1px solid var(--border); }
.lead { font-size: 1.2rem; color: var(--muted); max-width: 46em; }
.eyebrow { display: inline-block; font-size: .8rem; font-weight: 700; letter-spacing: .08em; text-transform: uppercase; color: var(--accent); margin-bottom: 10px; }
.page-head { padding: 56px 0 28px; }
.page-head .lead { margin-bottom: 0; }

/* Hero */
.hero { padding: 72px 0 36px; text-align: center; }
.hero .lead { margin: 0 auto 6px; }
.hero .actions { justify-content: center; }
.shot {
  display: block; margin: 36px auto 0; border-radius: 12px; border: 1px solid var(--border);
  box-shadow: var(--shadow); background: var(--surface);
}

/* Before / after */
.rename { display: grid; gap: 14px; margin-top: 22px; }
.rename .row { display: grid; grid-template-columns: 1fr auto 1fr; gap: 14px; align-items: center; }
.rename .from, .rename .to {
  font-family: var(--mono); font-size: .86rem; line-height: 1.5; padding: 14px 16px;
  border-radius: 10px; border: 1px solid var(--border); background: var(--surface); overflow-wrap: anywhere;
}
.rename .to { border-color: color-mix(in srgb, var(--accent-bg) 55%, var(--border)); }
.rename .arrow { color: var(--accent); font-size: 1.4rem; }

/* Cards */
.grid { display: grid; gap: 18px; grid-template-columns: repeat(auto-fit, minmax(250px, 1fr)); margin-top: 26px; }
.grid.three { grid-template-columns: repeat(auto-fit, minmax(300px, 1fr)); }
.card { background: var(--surface); border: 1px solid var(--border); border-radius: var(--radius); padding: 22px; }
.card h3 { margin-bottom: .35em; }
.card p { margin: 0; color: var(--muted); }
.badge { display: inline-block; font-size: .72rem; font-weight: 700; letter-spacing: .04em; padding: 2px 8px; border-radius: 99px; background: color-mix(in srgb, var(--accent-bg) 22%, transparent); color: var(--accent); vertical-align: middle; margin-left: 6px; }
.steps { counter-reset: step; display: grid; gap: 18px; grid-template-columns: repeat(auto-fit, minmax(240px, 1fr)); margin-top: 26px; }
.steps .card::before { counter-increment: step; content: counter(step); display: grid; place-items: center; width: 34px; height: 34px; border-radius: 50%; background: var(--accent-bg); color: var(--on-accent); font-weight: 800; margin-bottom: 12px; }
.split { display: grid; gap: 34px; grid-template-columns: 1fr 1fr; align-items: center; }
.split img { border-radius: 12px; border: 1px solid var(--border); box-shadow: var(--shadow); }

/* Pricing */
.pricing { display: grid; gap: 18px; grid-template-columns: repeat(auto-fit, minmax(270px, 1fr)); margin-top: 30px; align-items: stretch; }
.plan { display: flex; flex-direction: column; background: var(--surface); border: 1px solid var(--border); border-radius: var(--radius); padding: 26px; }
.plan.featured { border: 2px solid var(--accent-bg); box-shadow: var(--shadow); }
.plan h2 { font-size: 1.4rem; margin-bottom: .2em; }
.plan .price { font-size: 2.2rem; font-weight: 800; margin: 10px 0 0; }
.plan .price-note { color: var(--muted); margin: 0 0 16px; }
.plan ul { padding-left: 1.2em; margin: 14px 0 22px; flex: 1; }
.plan li { margin: 6px 0; }
.plan .button { width: 100%; }

/* FAQ */
.faq { background: var(--surface); border: 1px solid var(--border); border-radius: 12px; margin: 10px 0; }
.faq summary { cursor: pointer; padding: 16px 18px; font-weight: 650; list-style: none; position: relative; padding-right: 44px; }
.faq summary::-webkit-details-marker { display: none; }
.faq summary::after { content: "+"; position: absolute; right: 18px; top: 12px; font-size: 1.4rem; color: var(--muted); }
.faq[open] summary::after { content: "–"; }
.faq > div { padding: 0 18px 16px; color: var(--muted); }
.faq > div p:last-child { margin-bottom: 0; }

/* Articles */
.article h2 { margin-top: 1.8em; }
.article h3 { margin-top: 1.4em; }
.article li { margin: .3em 0; }
.callout { border-left: 4px solid var(--accent-bg); background: var(--surface); border-radius: 0 10px 10px 0; padding: 14px 18px; margin: 1.4em 0; }
.callout p:last-child { margin: 0; }
.toc { background: var(--surface); border: 1px solid var(--border); border-radius: 12px; padding: 16px 22px; margin: 1.5em 0; }
.toc ol { margin: .4em 0 0; padding-left: 1.2em; }
.crumbs { font-size: .9rem; color: var(--muted); margin-bottom: 14px; }
.crumbs a { color: var(--muted); }
.notes { background: var(--surface); border: 1px solid var(--border); border-radius: 12px; padding: 18px 22px; }

/* Footer */
.site-footer { border-top: 1px solid var(--border); padding: 46px 0 26px; margin-top: 40px; background: var(--bg-alt); }
.footer-grid { display: grid; gap: 26px; grid-template-columns: 1.4fr 1fr 1.2fr 1fr; }
.footer-grid h2 { font-size: .82rem; text-transform: uppercase; letter-spacing: .08em; color: var(--muted); margin-bottom: 10px; }
.footer-grid a:not(.brand) { display: block; color: var(--text); text-decoration: none; margin: 6px 0; font-size: .95rem; }
.footer-grid a:not(.brand):hover { color: var(--accent); }
.legal { margin-top: 26px; border-top: 1px solid var(--border); padding-top: 16px; }

@media (max-width: 860px) {
  .split { grid-template-columns: 1fr; }
  .footer-grid { grid-template-columns: 1fr 1fr; }
  .rename .row { grid-template-columns: 1fr; }
  .rename .arrow { transform: rotate(90deg); justify-self: center; }
}
@media (max-width: 640px) {
  body { font-size: 16px; }
  .header-row { flex-wrap: wrap; gap: 6px 14px; padding: 10px 0; }
  .site-header nav { order: 3; flex-basis: 100%; overflow-x: auto; flex-wrap: nowrap; }
  .site-header .small-button { margin-left: auto; }
  section { padding: 52px 0; }
  .hero { padding-top: 44px; }
  .footer-grid { grid-template-columns: 1fr; }
}
@media (prefers-reduced-motion: reduce) {
  .button { transition: none; }
  .button:hover { transform: none; }
}

/* Star background: three layers of stars drifting up at different speeds
   (after "Parallax Star background in CSS" by sarazond on CodePen). The
   star positions are in stars.css, written by build.py. */
.starfield { position: fixed; inset: 0; z-index: -1; overflow: hidden; pointer-events: none; }
.starfield div { position: absolute; top: 0; left: 0; background: transparent; }
.starfield div::after { content: " "; position: absolute; top: 2000px; left: 0; width: inherit; height: inherit; background: transparent; box-shadow: inherit; }
.starfield .s1 { width: 1px; height: 1px; animation: star-drift 50s linear infinite; }
.starfield .s2 { width: 2px; height: 2px; animation: star-drift 100s linear infinite; }
.starfield .s3 { width: 3px; height: 3px; animation: star-drift 150s linear infinite; }
@keyframes star-drift { from { transform: translateY(0); } to { transform: translateY(-2000px); } }
@media (prefers-reduced-motion: reduce) { .starfield div { animation: none; } }
main:focus { outline: none; }
