/* NameItRight — marketing site styles.
 *
 * No build step, no external requests: no CDN, no web fonts, no analytics.
 * That keeps the site deployable by copying this folder, and means there is
 * nothing to disclose about third-party tracking in the privacy policy.
 */

:root {
  --bg: #fdfcfa;
  --bg-raised: #ffffff;
  --bg-sunken: #f4f2ee;
  --ink: #1a1814;
  --ink-muted: #6b6558;
  /* --ink-faint is for borders and hover states only. It does not clear 4.5:1
   * on this background, so it must never be used for text. */
  --ink-faint: #96907f;
  --border: #e5e0d6;
  --accent: #b45309;
  --accent-ink: #ffffff;
  --accent-wash: #fef6ec;
  --good: #15803d;
  --radius: 10px;
  --measure: 68ch;
  --page: 1080px;
}

@media (prefers-color-scheme: dark) {
  :root {
    --bg: #14130f;
    --bg-raised: #1d1b16;
    --bg-sunken: #100f0c;
    --ink: #f2efe8;
    --ink-muted: #a8a294;
    --ink-faint: #6f6a5d;
    --border: #322e26;
    --accent: #f0a755;
    --accent-ink: #1a1814;
    --accent-wash: #241f16;
    --good: #4ade80;
  }
}

*,
*::before,
*::after {
  box-sizing: border-box;
}

html {
  -webkit-text-size-adjust: 100%;
  scroll-behavior: smooth;
}

body {
  margin: 0;
  background: var(--bg);
  color: var(--ink);
  font: 17px/1.65 -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, 'Helvetica Neue',
    Arial, sans-serif;
  -webkit-font-smoothing: antialiased;
}

/* ---- layout ---------------------------------------------------------- */

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

.prose {
  max-width: var(--measure);
}

section {
  padding: 72px 0;
}

section + section {
  border-top: 1px solid var(--border);
}

/* ---- type ------------------------------------------------------------ */

h1,
h2,
h3 {
  line-height: 1.18;
  letter-spacing: -0.02em;
  margin: 0 0 0.5em;
  font-weight: 660;
}

h1 {
  font-size: clamp(2.1rem, 5vw, 3.1rem);
}

h2 {
  font-size: clamp(1.5rem, 3vw, 2rem);
  margin-top: 0;
}

h3 {
  font-size: 1.12rem;
  font-weight: 640;
}

p {
  margin: 0 0 1.1em;
}

a {
  color: var(--accent);
  text-decoration-thickness: 1px;
  text-underline-offset: 2px;
}

a:hover {
  text-decoration-thickness: 2px;
}

.lede {
  font-size: 1.2rem;
  color: var(--ink-muted);
  max-width: 58ch;
}

.eyebrow {
  font-size: 0.78rem;
  font-weight: 700;
  letter-spacing: 0.09em;
  text-transform: uppercase;
  color: var(--accent);
  margin: 0 0 14px;
}

small,
.fine {
  font-size: 0.875rem;
  color: var(--ink-muted);
}

code,
kbd {
  font-family: ui-monospace, SFMono-Regular, 'SF Mono', Consolas, monospace;
  font-size: 0.9em;
  background: var(--bg-sunken);
  border: 1px solid var(--border);
  border-radius: 4px;
  padding: 0.1em 0.38em;
}

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

.site-head {
  border-bottom: 1px solid var(--border);
  position: sticky;
  top: 0;
  background: color-mix(in srgb, var(--bg) 88%, transparent);
  backdrop-filter: blur(8px);
  z-index: 10;
}

.site-head .wrap {
  display: flex;
  align-items: center;
  gap: 28px;
  min-height: 62px;
  flex-wrap: wrap;
}

.brand {
  font-weight: 700;
  letter-spacing: -0.02em;
  color: var(--ink);
  text-decoration: none;
  font-size: 1.06rem;
  display: inline-flex;
  align-items: center;
  gap: 9px;
}

.brand .mark {
  width: 22px;
  height: 22px;
  border-radius: 6px;
  background: var(--accent);
  color: var(--accent-ink);
  display: grid;
  place-items: center;
  font-size: 13px;
  font-weight: 800;
  flex: none;
}

.site-nav {
  margin-left: auto;
  display: flex;
  gap: 22px;
  align-items: center;
  flex-wrap: wrap;
}

.site-nav a {
  color: var(--ink-muted);
  text-decoration: none;
  font-size: 0.95rem;
  font-weight: 500;
}

.site-nav a:hover,
.site-nav a[aria-current='page'] {
  color: var(--ink);
}

.site-foot {
  border-top: 1px solid var(--border);
  background: var(--bg-sunken);
  padding: 40px 0;
  margin-top: 24px;
}

.site-foot .cols {
  display: flex;
  gap: 40px;
  flex-wrap: wrap;
  justify-content: space-between;
  align-items: flex-start;
}

.site-foot nav {
  display: flex;
  gap: 20px;
  flex-wrap: wrap;
}

.site-foot a {
  color: var(--ink-muted);
  text-decoration: none;
  font-size: 0.92rem;
}

.site-foot a:hover {
  color: var(--ink);
  text-decoration: underline;
}

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

.btn {
  display: inline-block;
  padding: 11px 20px;
  border-radius: var(--radius);
  font-weight: 600;
  font-size: 0.98rem;
  text-decoration: none;
  border: 1px solid transparent;
  cursor: pointer;
  transition: transform 0.06s ease;
}

.btn:active {
  transform: translateY(1px);
}

.btn-primary {
  background: var(--accent);
  color: var(--accent-ink);
}

.btn-primary:hover {
  filter: brightness(1.07);
}

.btn-quiet {
  border-color: var(--border);
  color: var(--ink);
  background: var(--bg-raised);
}

.btn-quiet:hover {
  border-color: var(--ink-faint);
}

.btn-row {
  display: flex;
  gap: 12px;
  flex-wrap: wrap;
  align-items: center;
  margin-top: 28px;
}

/* ---- hero rename demo ------------------------------------------------ */

.hero {
  padding: 84px 0 72px;
}

.hero-grid {
  display: grid;
  grid-template-columns: 1fr;
  gap: 48px;
  align-items: center;
}

@media (min-width: 900px) {
  .hero-grid {
    grid-template-columns: 1.05fr 0.95fr;
    gap: 64px;
  }
}

.renames {
  background: var(--bg-raised);
  border: 1px solid var(--border);
  border-radius: 14px;
  padding: 8px;
  box-shadow: 0 1px 2px rgb(0 0 0 / 0.04), 0 12px 32px -12px rgb(0 0 0 / 0.12);
  overflow-x: auto;
}

.renames-head {
  display: flex;
  align-items: center;
  gap: 7px;
  padding: 10px 12px 14px;
}

.renames-head i {
  width: 10px;
  height: 10px;
  border-radius: 50%;
  background: var(--border);
  display: block;
}

.renames-head span {
  margin-left: auto;
  font-size: 0.78rem;
  color: var(--ink-muted);
  letter-spacing: 0.04em;
  text-transform: uppercase;
  font-weight: 600;
}

.rename {
  display: grid;
  gap: 3px;
  padding: 11px 13px;
  border-radius: 8px;
  font-family: ui-monospace, SFMono-Regular, 'SF Mono', Consolas, monospace;
  font-size: 0.84rem;
  white-space: nowrap;
}

.rename:nth-child(even) {
  background: var(--bg-sunken);
}

/* --ink-muted, not --ink-faint: this is the actual old filename, so it has to
 * clear 4.5:1 on both the plain and alternating row backgrounds. The
 * line-through already carries the "before" meaning without needing low
 * contrast to do it. */
.rename .from {
  color: var(--ink-muted);
  text-decoration: line-through;
  text-decoration-color: color-mix(in srgb, currentColor 55%, transparent);
}

.rename .to {
  color: var(--ink);
  font-weight: 600;
}

.rename .to::before {
  content: '→ ';
  color: var(--accent);
  font-weight: 700;
}

/* ---- generic cards / grids ------------------------------------------- */

.grid {
  display: grid;
  gap: 22px;
  grid-template-columns: repeat(auto-fit, minmax(255px, 1fr));
  margin-top: 40px;
}

.card {
  background: var(--bg-raised);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  padding: 24px;
}

.card h3 {
  margin-bottom: 8px;
}

.card p:last-child {
  margin-bottom: 0;
}

.card p {
  color: var(--ink-muted);
  font-size: 0.96rem;
}

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

.steps {
  counter-reset: step;
  list-style: none;
  padding: 0;
  margin: 40px 0 0;
  display: grid;
  gap: 26px;
  grid-template-columns: repeat(auto-fit, minmax(240px, 1fr));
}

.steps li {
  counter-increment: step;
  padding-top: 44px;
  position: relative;
}

.steps li::before {
  content: counter(step);
  position: absolute;
  top: 0;
  left: 0;
  width: 30px;
  height: 30px;
  border-radius: 8px;
  background: var(--accent-wash);
  color: var(--accent);
  border: 1px solid color-mix(in srgb, var(--accent) 26%, transparent);
  display: grid;
  place-items: center;
  font-weight: 700;
  font-size: 0.9rem;
}

.steps strong {
  display: block;
  margin-bottom: 5px;
}

.steps p {
  color: var(--ink-muted);
  font-size: 0.96rem;
  margin: 0;
}

/* ---- pricing --------------------------------------------------------- */

.plans {
  display: grid;
  gap: 22px;
  grid-template-columns: repeat(auto-fit, minmax(270px, 1fr));
  margin-top: 44px;
  align-items: start;
}

.plan {
  background: var(--bg-raised);
  border: 1px solid var(--border);
  border-radius: 14px;
  padding: 28px;
  display: flex;
  flex-direction: column;
  height: 100%;
}

.plan.featured {
  border-color: var(--accent);
  box-shadow: 0 0 0 1px var(--accent);
  position: relative;
}

.plan.featured::after {
  content: 'Best value';
  position: absolute;
  top: -11px;
  left: 28px;
  background: var(--accent);
  color: var(--accent-ink);
  font-size: 0.7rem;
  font-weight: 800;
  letter-spacing: 0.07em;
  text-transform: uppercase;
  padding: 4px 10px;
  border-radius: 20px;
}

.plan h3 {
  font-size: 1rem;
  color: var(--ink-muted);
  text-transform: uppercase;
  letter-spacing: 0.07em;
  font-size: 0.78rem;
  font-weight: 700;
}

.price {
  font-size: 2.5rem;
  font-weight: 700;
  letter-spacing: -0.03em;
  line-height: 1;
  margin: 6px 0 4px;
}

.price small {
  font-size: 0.95rem;
  font-weight: 500;
  color: var(--ink-muted);
  letter-spacing: 0;
}

.plan ul {
  list-style: none;
  padding: 0;
  margin: 20px 0 18px;
  display: grid;
  gap: 10px;
  font-size: 0.96rem;
}

/* The credits line sits between the feature list and the button as a footnote —
 * plans are quoted in files, per BLUEPRINT.md §3. */
.plan ul + .fine {
  margin: 0 0 22px;
  padding-top: 14px;
  border-top: 1px solid var(--border);
}

.plan li {
  padding-left: 25px;
  position: relative;
  color: var(--ink-muted);
}

.plan li::before {
  content: '✓';
  position: absolute;
  left: 0;
  color: var(--good);
  font-weight: 700;
}

.plan .btn {
  margin-top: auto;
  text-align: center;
}

/* ---- tables ---------------------------------------------------------- */

.table-scroll {
  overflow-x: auto;
  margin: 28px 0;
  border: 1px solid var(--border);
  border-radius: var(--radius);
}

table {
  border-collapse: collapse;
  width: 100%;
  font-size: 0.96rem;
}

th,
td {
  text-align: left;
  padding: 12px 16px;
  border-bottom: 1px solid var(--border);
}

th {
  background: var(--bg-sunken);
  font-weight: 650;
  font-size: 0.85rem;
  letter-spacing: 0.03em;
  text-transform: uppercase;
  color: var(--ink-muted);
  white-space: nowrap;
}

tbody tr:last-child td {
  border-bottom: none;
}

/* ---- notices --------------------------------------------------------- */

.notice {
  border: 1px solid var(--border);
  border-left: 3px solid var(--accent);
  background: var(--accent-wash);
  padding: 18px 20px;
  border-radius: var(--radius);
  margin: 0 0 32px;
}

.notice p:last-child {
  margin-bottom: 0;
}

.notice strong {
  color: var(--ink);
}

/* ---- legal pages ----------------------------------------------------- */

.legal {
  padding: 56px 0 8px;
}

.legal h2 {
  margin-top: 44px;
  font-size: 1.25rem;
}

.legal h2:first-of-type {
  margin-top: 32px;
}

.legal ul,
.legal ol {
  padding-left: 22px;
  margin: 0 0 1.1em;
}

.legal li {
  margin-bottom: 0.5em;
}

.legal .updated {
  color: var(--ink-muted);
  font-size: 0.9rem;
  margin-bottom: 28px;
}

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

details {
  border-bottom: 1px solid var(--border);
  padding: 18px 0;
}

details summary {
  cursor: pointer;
  font-weight: 600;
  list-style: none;
  display: flex;
  align-items: center;
  gap: 12px;
}

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

details summary::after {
  content: '+';
  margin-left: auto;
  color: var(--accent);
  font-weight: 700;
  font-size: 1.25rem;
  line-height: 1;
}

details[open] summary::after {
  content: '−';
}

details p {
  margin: 12px 0 0;
  color: var(--ink-muted);
  max-width: var(--measure);
}

/* ---- accessibility --------------------------------------------------- */

:focus-visible {
  outline: 2px solid var(--accent);
  outline-offset: 2px;
  border-radius: 3px;
}

.skip {
  position: absolute;
  left: -9999px;
}

.skip:focus {
  left: 16px;
  top: 12px;
  z-index: 99;
  background: var(--accent);
  color: var(--accent-ink);
  padding: 9px 15px;
  border-radius: 7px;
  text-decoration: none;
}

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