/* ============================================================
   renameafile — styles
   Aesthetic: refined Apple iOS/macOS. Light, airy, precise.
   ============================================================ */

:root {
  /* surfaces */
  --bg:        #ffffff;
  --bg-2:      #f5f5f7;
  --bg-3:      #fbfbfd;
  --panel:     #ffffff;

  /* ink — all three pass WCAG AA (4.5:1) on white */
  --ink:       #1d1d1f;
  --ink-2:     #65656a;
  --ink-3:     #76767b;

  /* lines */
  --line:      rgba(0, 0, 0, .10);
  --line-2:    rgba(0, 0, 0, .06);

  /* accents */
  --blue:      #0071e3;
  --blue-h:    #0077ed;
  --link:      #06c;

  /* chrome */
  --nav-bg:    rgba(255, 255, 255, .72);
  --menu-bg:   rgba(255, 255, 255, .92);

  /* geometry */
  --r-lg:      28px;
  --r:         20px;
  --r-sm:      12px;
  --nav-h:     52px;
  --maxw:      1080px;

  /* shadow */
  --shadow:    0 18px 50px -12px rgba(0, 0, 0, .14);
  --shadow-sm: 0 4px 18px rgba(0, 0, 0, .06);

  /* system font stack — already on every device, so nothing loads and nothing swaps */
  --font: -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto,
          "Helvetica Neue", Arial, sans-serif;

  color-scheme: light;
}

/* ───────────────── dark theme ───────────────── */
html[data-theme="dark"] {
  --bg:        #0b0b0d;
  --bg-2:      #151517;
  --bg-3:      #202023;
  --panel:     #1c1c1f;
  --ink:       #f5f5f7;
  --ink-2:     #a1a1a6;
  --ink-3:     #8a8a8f;
  --line:      rgba(255, 255, 255, .16);
  --line-2:    rgba(255, 255, 255, .09);
  --blue:      #0a84ff;
  --blue-h:    #409cff;
  --link:      #6cb3ff;
  --nav-bg:    rgba(18, 18, 20, .72);
  --menu-bg:   rgba(18, 18, 20, .96);
  --shadow:    0 18px 50px -12px rgba(0, 0, 0, .6);
  color-scheme: dark;
}

/* ───────────────── reset ───────────────── */
* { margin: 0; padding: 0; box-sizing: border-box; }

html { scroll-behavior: smooth; scroll-padding-top: calc(var(--nav-h) + 16px); -webkit-text-size-adjust: 100%; }

body {
  font-family: var(--font);
  color: var(--ink);
  background: var(--bg);
  line-height: 1.5;
  font-weight: 400;
  letter-spacing: -0.011em;
  -webkit-font-smoothing: antialiased;
  text-rendering: optimizeLegibility;
}

a { color: inherit; text-decoration: none; }
img, svg { display: block; max-width: 100%; }
button { font-family: inherit; cursor: pointer; }
ul, ol { list-style: none; }

/* visible keyboard focus */
a:focus-visible, button:focus-visible, summary:focus-visible {
  outline: 2px solid var(--blue);
  outline-offset: 2px;
  border-radius: 6px;
}

::selection { background: rgba(10, 132, 255, .22); }

.wrap { width: 100%; max-width: var(--maxw); margin-inline: auto; padding-inline: 22px; }
.wrap--narrow { max-width: 760px; }

/* monoline icon defaults (SF Symbols vibe) */
.ico {
  width: 100%; height: 100%;
  fill: none;
  stroke: currentColor;
  stroke-width: 1.7;
  stroke-linecap: round;
  stroke-linejoin: round;
}

/* ───────────────── shared bits ───────────────── */
.eyebrow {
  font-size: 14px;
  font-weight: 600;
  letter-spacing: .02em;
  color: var(--blue);
  text-transform: none;
}
.eyebrow .dot { color: var(--ink-3); margin-inline: 4px; }

.accent { color: var(--blue); }

/* ───────────────── buttons ───────────────── */
.btn {
  --pad-y: 12px; --pad-x: 22px;
  display: inline-flex; align-items: center; justify-content: center; gap: 6px;
  padding: var(--pad-y) var(--pad-x);
  border: 1px solid transparent;
  border-radius: 980px;
  font-size: 16px; font-weight: 600; letter-spacing: -0.01em;
  white-space: nowrap;
  transition: background-color .15s, color .15s;
}

.btn--primary { background: var(--blue); color: #fff; }
.btn--primary:hover { background: var(--blue-h); }

.btn--ghost { background: transparent; color: var(--blue); border-color: transparent; }
.btn--ghost:hover { color: var(--blue-h); }

.btn--small { --pad-y: 7px; --pad-x: 16px; font-size: 14.5px; }
.btn--lg { --pad-y: 15px; --pad-x: 32px; font-size: 18px; }
.btn--block { width: 100%; }

.btn:disabled { opacity: .42; cursor: not-allowed; box-shadow: none; }

.linklike {
  background: none; border: none; color: var(--link);
  font-size: inherit; font-weight: 600; padding: 0;
}
.linklike:hover { text-decoration: underline; }
.linklike--muted { color: var(--ink-3); font-weight: 500; font-size: 13.5px; }

/* ============================================================
   NAV
   ============================================================ */
.nav {
  position: sticky; top: 0; z-index: 100;
  background: var(--nav-bg);
  backdrop-filter: saturate(180%) blur(20px);
  -webkit-backdrop-filter: saturate(180%) blur(20px);
  border-bottom: 1px solid var(--line-2);
}
.nav__inner {
  height: var(--nav-h);
  max-width: var(--maxw); margin-inline: auto;
  padding-inline: 22px;
  display: flex; align-items: center; gap: 18px;
}

.brand { display: inline-flex; align-items: center; gap: 9px; }
.brand__mark { display: grid; place-items: center; line-height: 0; }
.brand__name {
  font-size: 18px; font-weight: 700; letter-spacing: -0.02em; color: var(--ink);
}
.brand__a { color: var(--blue); }
/* kept in the markup so crawlers read "renamer", hidden because the logo is the R */
.visually-hidden {
  position: absolute; width: 1px; height: 1px; padding: 0; margin: -1px;
  overflow: hidden; clip: rect(0 0 0 0); clip-path: inset(50%); white-space: nowrap; border: 0;
}

.nav__links {
  display: flex; gap: 4px; margin-left: auto;
}
.nav__links a {
  display: block; padding: 7px 13px;
  font-size: 14.5px; font-weight: 500; color: var(--ink-2);
  border-radius: 980px;
  transition: color .2s, background-color .2s;
}
.nav__links a:hover { color: var(--ink); background: var(--bg-2); }

.nav__toggle {
  display: none;
  width: 38px; height: 38px;
  border: none; background: transparent; border-radius: 10px;
  position: relative; margin-left: 4px;
}
.nav__toggle span {
  position: absolute; left: 9px; right: 9px; height: 1.6px; background: var(--ink);
  border-radius: 2px; transition: transform .3s, opacity .3s;
}
.nav__toggle span:first-child { top: 15px; }
.nav__toggle span:last-child  { bottom: 15px; }
.nav__toggle[aria-expanded="true"] span:first-child { transform: translateY(3.2px) rotate(45deg); }
.nav__toggle[aria-expanded="true"] span:last-child  { transform: translateY(-3.2px) rotate(-45deg); }

/* theme toggle (always visible, even on mobile) */
.theme-toggle {
  flex: none; width: 38px; height: 38px; margin-left: 6px;
  display: grid; place-items: center;
  border: none; background: transparent; border-radius: 10px;
  color: var(--ink-2); cursor: pointer;
  transition: background-color .2s, color .2s;
}
.theme-toggle:hover { background: var(--bg-2); color: var(--ink); }
.theme-toggle svg { width: 19px; height: 19px; fill: none; stroke: currentColor; stroke-width: 1.8; stroke-linecap: round; stroke-linejoin: round; }
.theme-toggle__sun { display: none; }
html[data-theme="dark"] .theme-toggle__moon { display: none; }
html[data-theme="dark"] .theme-toggle__sun  { display: block; }

@media (max-width: 860px) {
  .nav__links {
    position: fixed; inset: var(--nav-h) 0 auto 0;
    flex-direction: column; gap: 0; margin: 0;
    background: var(--menu-bg);
    backdrop-filter: saturate(180%) blur(24px);
    -webkit-backdrop-filter: saturate(180%) blur(24px);
    border-bottom: 1px solid var(--line);
    padding: 10px 14px 18px;
    transform: translateY(-12px); opacity: 0; pointer-events: none;
    transition: transform .3s cubic-bezier(.2,.7,.3,1), opacity .3s;
  }
  .nav__links.open { transform: translateY(0); opacity: 1; pointer-events: auto; }
  .nav__links a { padding: 13px 12px; font-size: 18px; font-weight: 600; color: var(--ink);
                  border-bottom: 1px solid var(--line-2); border-radius: 0; }
  .nav__links a:hover { background: transparent; }
  .theme-toggle { margin-left: auto; }
  .nav__toggle { display: block; }
}

/* ============================================================
   STAGE — fills the first screen so the SEO content below
   only appears once you scroll, on any device.
   ============================================================ */
.stage {
  position: relative;
  min-height: calc(100vh - var(--nav-h));
  min-height: calc(100svh - var(--nav-h));
  display: flex; flex-direction: column;
  align-items: center; justify-content: flex-start;
  text-align: center;
  padding: clamp(44px, 12vh, 130px) 0 72px;
  background: var(--bg);
}
.stage__inner { width: 100%; }
.hero__title {
  font-size: clamp(36px, 6.4vw, 66px);
  font-weight: 700; line-height: 1.04; letter-spacing: -0.035em;
  margin-top: 14px;
}
.hero__sub {
  max-width: 580px; margin: 18px auto 0;
  font-size: clamp(16px, 2.2vw, 20px); line-height: 1.5;
  color: var(--ink-2); font-weight: 400;
}

/* ============================================================
   SECTIONS
   ============================================================ */
.section { padding: clamp(64px, 10vw, 120px) 0; }
.section--alt { background: var(--bg-2); }

.section__head { text-align: center; max-width: 720px; margin: 0 auto clamp(40px, 6vw, 64px); }
.section__head .eyebrow { display: block; margin-bottom: 14px; }
.section__title {
  font-size: clamp(28px, 4.6vw, 48px); font-weight: 700;
  letter-spacing: -0.03em; line-height: 1.07;
}
.section__lede { margin-top: 16px; font-size: clamp(16px, 2.2vw, 20px); color: var(--ink-2); }

/* prose (SEO/about content) */
.prose { text-align: left; }
.prose p { color: var(--ink-2); font-size: 17px; line-height: 1.6; margin-bottom: 16px; }
.prose p:last-child { margin-bottom: 0; }
.prose h3 { font-size: 20px; font-weight: 600; letter-spacing: -0.01em; color: var(--ink); margin: 28px 0 8px; }

/* ============================================================
   BENTO FEATURES
   ============================================================ */
.bento { display: grid; grid-template-columns: repeat(3, 1fr); gap: 16px; }
.card {
  background: var(--panel); border: 1px solid var(--line-2);
  border-radius: var(--r-lg); padding: 28px;
  display: flex; flex-direction: column;
}
.card__icon {
  width: 44px; height: 44px; border-radius: 13px;
  background: var(--bg-2); color: var(--blue);
  display: grid; place-items: center; padding: 11px;
  margin-bottom: 16px;
}
.card h3 { font-size: 19px; font-weight: 600; letter-spacing: -0.02em; margin-bottom: 7px; }
.card p { color: var(--ink-2); font-size: 15px; line-height: 1.5; }

@media (max-width: 860px) { .bento { grid-template-columns: 1fr 1fr; } }
@media (max-width: 540px) { .bento { grid-template-columns: 1fr; } }

/* ============================================================
   HOW IT WORKS
   ============================================================ */
.steps { display: grid; grid-template-columns: repeat(3, 1fr); gap: 18px; counter-reset: s; }
.step {
  background: var(--bg); border: 1px solid var(--line-2);
  border-radius: var(--r); padding: 32px 28px;
}
.step__no {
  display: grid; place-items: center;
  width: 40px; height: 40px; border-radius: 50%;
  background: var(--blue); color: #fff; font-weight: 700; font-size: 18px;
  margin-bottom: 18px;
}
.step h3 { font-size: 20px; font-weight: 600; letter-spacing: -0.02em; margin-bottom: 7px; }
.step p { color: var(--ink-2); font-size: 16px; }
@media (max-width: 760px) { .steps { grid-template-columns: 1fr; } }

/* ============================================================
   FILE TYPES
   ============================================================ */
.types { display: grid; grid-template-columns: repeat(3, 1fr); gap: 16px; }
.type {
  background: var(--bg); border: 1px solid var(--line-2);
  border-radius: var(--r); padding: 26px;
}
.type__ico {
  width: 44px; height: 44px; padding: 10px; border-radius: 13px;
  background: var(--bg-2); color: var(--ink);
  display: grid; place-items: center; margin-bottom: 16px;
}
.type h3 { font-size: 18px; font-weight: 600; letter-spacing: -0.01em; margin-bottom: 6px; }
.type p { color: var(--ink-3); font-size: 13.5px; font-weight: 500; letter-spacing: .01em; }
@media (max-width: 760px) { .types { grid-template-columns: 1fr 1fr; } }
@media (max-width: 460px) { .types { grid-template-columns: 1fr; } }

/* ============================================================
   THE TOOL — dead simple: a button, then a name box per file
   ============================================================ */
.tool { width: 100%; margin-top: clamp(28px, 4vw, 44px); border-radius: var(--r-lg); transition: background-color .2s; }
.tool.drag { background: rgba(0,113,227,.04); }

/* empty state — just the button */
.picker {
  max-width: 560px; margin-inline: auto;
  background: var(--bg-3);
  border: 1.5px dashed var(--line);
  border-radius: var(--r-lg);
  padding: clamp(40px, 7vw, 64px) 28px;
  text-align: center;
  transition: border-color .2s, background-color .2s;
}
.tool.drag .picker { border-color: var(--blue); background: rgba(0,113,227,.06); }
.picker__hint { margin-top: 16px; color: var(--ink-3); font-size: 14px; }

/* fallback shown when JavaScript is disabled */
.noscript-note {
  max-width: 560px; margin: 0 auto;
  padding: 24px;
  border: 1px solid var(--line);
  border-radius: var(--r);
  background: var(--bg-3);
  text-align: center;
  color: var(--ink-2);
}

/* editor — one editable name box per file */
.editor {
  max-width: 640px; margin-inline: auto;
  background: var(--bg);
  border: 1px solid var(--line-2);
  border-radius: var(--r-lg);
  box-shadow: var(--shadow);
  padding: 14px 14px 18px;
}
.rows { display: flex; flex-direction: column; gap: 8px; }
.row { display: flex; align-items: center; gap: 10px; }
.row__field {
  flex: 1; min-width: 0;
  display: flex; align-items: center;
  background: var(--bg-3);
  border: 1px solid var(--line);
  border-radius: 12px;
  padding: 4px 6px 4px 14px;
  transition: border-color .2s, box-shadow .2s, background-color .2s;
}
.row__field:focus-within {
  border-color: var(--blue);
  box-shadow: 0 0 0 4px rgba(0,113,227,.14);
}
.row__input {
  flex: 1; min-width: 0;
  border: none; background: transparent; outline: none;
  font-family: inherit; font-size: 16px; color: var(--ink);
  padding: 9px 0;
}
.row__dot { flex: none; color: var(--ink-3); font-weight: 600; padding: 0 1px; }
.row__ext-input {
  flex: none; width: 62px; min-width: 0;
  border: none; background: transparent; outline: none;
  font-family: inherit; font-size: 16px; color: var(--ink-2);
  padding: 9px 0;
}
.row__ext-input::placeholder { color: var(--ink-3); }
.row__remove {
  flex: none;
  width: 30px; height: 30px; border-radius: 50%; border: none;
  background: var(--bg-2); color: var(--ink-3);
  display: grid; place-items: center; cursor: pointer;
  transition: background-color .2s, color .2s;
}
.row__remove svg {
  width: 15px; height: 15px;
  fill: none; stroke: currentColor; stroke-width: 2.1; stroke-linecap: round;
}
.row__remove:hover { background: #ffe1e1; color: #d70015; }

.editor__bar {
  display: flex; align-items: center; justify-content: space-between; gap: 14px;
  margin-top: 16px; padding: 0 4px; flex-wrap: wrap;
}
.editor__left { display: flex; align-items: center; gap: 18px; }
.editor__right { display: flex; align-items: center; gap: 10px; }
.fmt { position: relative; }
.fmt select {
  font-family: inherit; font-size: 14px; font-weight: 500; color: var(--ink);
  background: var(--panel); border: 1px solid var(--line); border-radius: 980px;
  padding: 10px 36px 10px 16px; -webkit-appearance: none; appearance: none; cursor: pointer;
}
.fmt::after {
  content: ""; position: absolute; right: 16px; top: 50%; width: 7px; height: 7px;
  border-right: 1.6px solid var(--ink-3); border-bottom: 1.6px solid var(--ink-3);
  transform: translateY(-70%) rotate(45deg); pointer-events: none;
}
.fmt select:focus { outline: none; border-color: var(--blue); box-shadow: 0 0 0 3px rgba(0,113,227,.14); }
.editor__warn { margin-top: 12px; padding: 0 4px; font-size: 12.5px; color: #b45309; text-align: center; }
.editor__risk { margin-top: 10px; padding: 0 4px; font-size: 12.5px; color: #d70015; text-align: center; }
.row__field--dupe  { border-color: #d97706; }
.row__field--risky { border-color: #d70015; }
html[data-theme="dark"] .editor__warn  { color: #fbbf24; }
html[data-theme="dark"] .editor__risk  { color: #ff6961; }
html[data-theme="dark"] .row__field--dupe  { border-color: #f59e0b; }
html[data-theme="dark"] .row__field--risky { border-color: #ff453a; }
html[data-theme="dark"] .row__remove:hover { background: rgba(255,69,58,.18); color: #ff6961; }

/* batch tools */
.batch { margin-bottom: 12px; border: 1px solid var(--line-2); border-radius: var(--r); background: var(--bg-3); overflow: hidden; }
.batch > summary { list-style: none; cursor: pointer; padding: 13px 16px; font-size: 14px; font-weight: 600; color: var(--ink); display: flex; align-items: center; gap: 8px; }
.batch > summary::-webkit-details-marker { display: none; }
.batch > summary::after { content: "+"; margin-left: auto; font-size: 18px; line-height: 1; color: var(--ink-3); }
.batch[open] > summary::after { content: "\2013"; }
.batch__hint { font-weight: 500; font-size: 12px; color: var(--ink-3); }
.batch__grid { padding: 4px 16px 16px; display: grid; }
.batch__group { display: grid; gap: 12px; padding: 14px 0; }
.batch__group:first-child { padding-top: 6px; }
.batch__group + .batch__group { border-top: 1px solid var(--line-2); }
.batch__legend { margin: 0; font-size: 11px; font-weight: 700; letter-spacing: .05em; text-transform: uppercase; color: var(--ink-3); }
.batch__row { display: grid; grid-template-columns: 1fr 1fr; gap: 10px; }
.batch__row--3 { grid-template-columns: 1.5fr 1fr 1fr; }
.batch__row label { display: block; font-size: 12px; font-weight: 600; color: var(--ink-2); margin-bottom: 4px; }
.batch input[type="text"], .batch input[type="number"], .batch select {
  width: 100%; font-family: inherit; font-size: 14px; color: var(--ink);
  background: var(--panel); border: 1px solid var(--line); border-radius: 9px; padding: 8px 10px;
  -webkit-appearance: none; appearance: none;
}
.batch input::placeholder { color: var(--ink-3); }
.batch input:focus, .batch select:focus { outline: none; border-color: var(--blue); box-shadow: 0 0 0 3px rgba(0,113,227,.14); }
.batch__check { display: flex; align-items: center; gap: 8px; font-size: 13.5px; font-weight: 500; color: var(--ink); cursor: pointer; }
.batch__check input { width: 16px; height: 16px; accent-color: var(--blue); margin: 0; }
.batch__note { margin: -2px 0 2px; font-size: 12px; color: var(--ink-3); }
.batch__apply { justify-self: start; margin-top: 4px; }
.batch__footer { padding: 12px 16px; border-top: 1px solid var(--line-2); }
.batch__undo {
  display: inline-flex; align-items: center; gap: 7px; cursor: pointer;
  padding: 7px 13px; font-size: 13px; font-weight: 600; color: var(--ink-2);
  background: var(--bg-2); border: 1px solid var(--line-2); border-radius: 8px;
}
.batch__undo:hover { color: var(--ink); border-color: var(--line); }
.batch__undo svg { width: 15px; height: 15px; fill: none; stroke: currentColor; stroke-width: 2; stroke-linecap: round; stroke-linejoin: round; }
.batch__undo:focus-visible { outline: none; border-color: var(--blue); box-shadow: 0 0 0 3px rgba(0,113,227,.14); }
@media (max-width: 480px) { .batch__row { grid-template-columns: 1fr; } }

@media (max-width: 540px) {
  .editor__bar { flex-direction: column; align-items: stretch; gap: 12px; }
  .editor__left { justify-content: space-between; }
  .editor__right { gap: 10px; }
  .fmt { flex: 1; }
  .fmt select { width: 100%; }
  .editor__right .btn { flex: 1; }
}

/* ============================================================
   FAQ
   ============================================================ */
.faq { display: grid; gap: 0; border-top: 1px solid var(--line); }
.qa { border-bottom: 1px solid var(--line); }
.qa summary {
  list-style: none; cursor: pointer;
  display: flex; align-items: center; justify-content: space-between; gap: 16px;
  padding: 24px 4px; font-size: clamp(17px, 2.4vw, 20px); font-weight: 600; letter-spacing: -0.02em;
}
.qa summary::-webkit-details-marker { display: none; }
.qa summary::after {
  content: "+"; font-size: 26px; font-weight: 300; color: var(--ink-3); line-height: 1;
  transition: transform .3s; flex: none;
}
.qa[open] summary::after { transform: rotate(45deg); }
.qa p {
  padding: 0 40px 26px 4px; color: var(--ink-2); font-size: 17px; line-height: 1.55;
  max-width: 640px;
}

/* ============================================================
   FOOTER
   ============================================================ */
.footer { background: var(--bg-2); border-top: 1px solid var(--line-2); padding: 56px 0 30px; font-size: 13px; }
.footer__inner {
  display: grid; grid-template-columns: 1.4fr 3fr; gap: 40px;
  padding-bottom: 36px; border-bottom: 1px solid var(--line);
}
.footer__brand .brand { margin-bottom: 14px; }
/* footer brand is a single wordmark: the R is a blue letter, joined to "enamer" */
.footer__brand .brand__mark { display: none; }
.footer__tag { color: var(--ink-2); font-size: 14px; max-width: 240px; }
.footer__cols { display: grid; grid-template-columns: repeat(3, 1fr); gap: 24px; }
.footer__col h2 { font-size: 13px; font-weight: 700; color: var(--ink); margin-bottom: 12px; }
.footer__col a { display: block; color: var(--ink-2); padding: 5px 0; transition: color .2s; }
.footer__col a:hover { color: var(--blue); }

.footer__bottom {
  display: flex; justify-content: space-between; flex-wrap: wrap; gap: 8px;
  padding-top: 22px; color: var(--ink-3);
}
@media (max-width: 760px) {
  .footer__inner { grid-template-columns: 1fr; gap: 28px; }
  .footer__cols { grid-template-columns: 1fr 1fr; }
}

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