/* Name Changer: site styles */

@font-face {
  font-family: "Open Sans";
  font-style: normal;
  font-weight: 400;
  font-display: swap;
  src: url("fonts/open-sans-400.woff2") format("woff2");
}
@font-face {
  font-family: "Open Sans";
  font-style: normal;
  font-weight: 700;
  font-display: swap;
  src: url("fonts/open-sans-700.woff2") format("woff2");
}

:root {
  --purple: #5f4def;
  --purple-dark: #4b39d9;
  --purple-soft: #f4f3fe;
  --ink: #23213a;
  --muted: #5d5b72;
  --line: #e3e1f3;
  --white: #ffffff;
  --radius: 14px;
  --shadow: 0 10px 30px rgba(35, 33, 58, 0.12);
}

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

html {
  scroll-padding-top: 88px;
}
@media (prefers-reduced-motion: no-preference) {
  html {
    scroll-behavior: smooth;
  }
}

body {
  margin: 0;
  font-family: "Open Sans", system-ui, -apple-system, "Segoe UI", Roboto, Arial, sans-serif;
  font-size: 1.0625rem;
  line-height: 1.65;
  color: var(--ink);
  background: var(--white);
  -webkit-font-smoothing: antialiased;
}

img {
  max-width: 100%;
  height: auto;
}

a {
  color: var(--purple);
}

h1,
h2,
h3 {
  line-height: 1.2;
  margin: 0 0 0.5em;
}

p {
  margin: 0 0 1em;
}

.container {
  width: 100%;
  max-width: 1120px;
  margin: 0 auto;
  padding: 0 24px;
}
.narrow {
  max-width: 780px;
}

.visually-hidden {
  position: absolute;
  width: 1px;
  height: 1px;
  overflow: hidden;
  clip: rect(0 0 0 0);
  white-space: nowrap;
}

.skip-link {
  position: absolute;
  left: 12px;
  top: -60px;
  z-index: 100;
  padding: 8px 14px;
  border-radius: 8px;
  background: var(--white);
  color: var(--ink);
}
.skip-link:focus {
  top: 12px;
}

:focus-visible {
  outline: 3px solid #ffbf47;
  outline-offset: 2px;
}

/* Buttons */
.btn {
  display: inline-block;
  padding: 14px 26px;
  border: 2px solid transparent;
  border-radius: 999px;
  font: inherit;
  font-weight: 700;
  font-size: 1rem;
  line-height: 1.2;
  text-align: center;
  text-decoration: none;
  cursor: pointer;
  transition:
    background-color 0.15s,
    color 0.15s;
}
.btn-primary {
  background: var(--purple);
  color: var(--white);
}
.btn-primary:hover {
  background: var(--purple-dark);
}
.btn-light {
  background: var(--white);
  color: var(--purple);
}
.btn-light:hover {
  background: var(--purple-soft);
}
.btn-small {
  padding: 9px 18px;
  font-size: 0.9375rem;
}

/* Header */
.site-header {
  position: sticky;
  top: 0;
  z-index: 50;
  background: var(--purple);
}
.nav {
  display: flex;
  align-items: center;
  gap: 24px;
  min-height: 72px;
}
.brand img {
  display: block;
  width: 110px;
  height: auto;
}
.site-header nav {
  margin-left: auto;
}
.nav-links {
  display: flex;
  gap: 28px;
  margin: 0;
  padding: 0;
  list-style: none;
}
.nav-links a {
  color: var(--white);
  font-weight: 700;
  font-size: 0.9375rem;
  text-decoration: none;
  opacity: 0.9;
}
.nav-links a:hover {
  opacity: 1;
  text-decoration: underline;
}

/* Hero */
.hero {
  background: var(--purple);
  color: var(--white);
  padding: 56px 0 24px;
}
.hero-grid {
  display: grid;
  grid-template-columns: minmax(0, 1.05fr) minmax(0, 0.95fr);
  gap: 56px;
  align-items: start;
}
.eyebrow {
  display: inline-block;
  margin-bottom: 18px;
  padding: 5px 14px;
  border-radius: 999px;
  background: rgba(255, 255, 255, 0.16);
  font-size: 0.875rem;
  font-weight: 700;
  letter-spacing: 0.02em;
}
.hero h1 {
  font-size: clamp(2.25rem, 5vw, 3.375rem);
  letter-spacing: -0.01em;
}
.lead {
  font-size: 1.1875rem;
  max-width: 34em;
  opacity: 0.95;
}

/* Register form */
.register-form {
  margin-top: 28px;
  padding: 28px;
  border-radius: var(--radius);
  background: var(--white);
  color: var(--ink);
  box-shadow: var(--shadow);
  max-width: 520px;
}
.register-form h2 {
  font-size: 1.375rem;
  margin-bottom: 16px;
}
.field {
  margin-bottom: 14px;
}
.field label {
  display: block;
  margin-bottom: 4px;
  font-weight: 700;
  font-size: 0.9375rem;
}
.field label span {
  font-weight: 400;
  color: var(--muted);
}
.field input,
.field select {
  width: 100%;
  height: 48px;
  padding: 0 14px;
  border: 1.5px solid #cfcce6;
  border-radius: 10px;
  background: var(--white);
  color: var(--ink);
  font: inherit;
}
.field input:focus,
.field select:focus {
  border-color: var(--purple);
  outline: 3px solid rgba(95, 77, 239, 0.25);
  outline-offset: 0;
}
.register-form .btn {
  width: 100%;
  margin-top: 6px;
}
.register-form .btn[disabled] {
  opacity: 0.7;
  cursor: wait;
}
.small-print {
  margin: 12px 0 0;
  font-size: 0.8125rem;
  color: var(--muted);
}
.trap {
  position: absolute;
  left: -9999px;
}
.register-status:not(:empty) {
  margin-top: 14px;
  padding: 12px 14px;
  border-radius: 10px;
  background: var(--purple-soft);
  font-size: 0.9375rem;
}
.register-status p {
  margin: 0;
}

/* Change list illustration */
.changelist {
  margin: 12px 0 0;
  padding: 24px;
  border-radius: var(--radius);
  background: var(--white);
  color: var(--ink);
  box-shadow: var(--shadow);
  transform: rotate(1.5deg);
}
.cl-head {
  display: flex;
  justify-content: space-between;
  align-items: baseline;
  gap: 12px;
  font-weight: 700;
}
.cl-count {
  font-size: 0.875rem;
  font-weight: 400;
  color: var(--muted);
}
.cl-bar {
  height: 8px;
  margin: 12px 0 8px;
  border-radius: 999px;
  background: var(--purple-soft);
  overflow: hidden;
}
.cl-bar span {
  display: block;
  width: 43%;
  height: 100%;
  background: var(--purple);
}
.changelist ul {
  margin: 0;
  padding: 0;
  list-style: none;
}
.changelist li {
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 12px;
  padding: 11px 0;
  border-bottom: 1px solid var(--line);
  font-size: 0.9375rem;
}
.changelist li:last-child {
  border-bottom: 0;
}
.tag {
  flex-shrink: 0;
  padding: 2px 10px;
  border-radius: 999px;
  background: #efeff3;
  color: var(--muted);
  font-size: 0.8125rem;
  font-weight: 700;
}
.tag-done {
  background: #e3f6ea;
  color: #1d6b3c;
}
.tag-progress {
  background: #ecebfd;
  color: var(--purple-dark);
}

/* Waves */
.wave {
  display: block;
  width: 100%;
  height: 60px;
  fill: var(--purple);
}
.wave-hero {
  transform: scaleY(-1);
  margin-top: -1px;
}
.wave-footer {
  background: var(--purple-soft);
  margin-bottom: -1px;
}
.page + .wave-footer {
  background: var(--white);
}

/* Sections */
.section {
  padding: 80px 0;
}
.section-soft {
  background: var(--purple-soft);
}
.section-title {
  font-size: clamp(1.75rem, 3.5vw, 2.25rem);
  text-align: center;
}
.section-intro {
  max-width: 36em;
  margin: 0 auto 48px;
  text-align: center;
  color: var(--muted);
}

.cards-3 {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 32px;
}

.feature {
  text-align: center;
}
.feature img {
  margin-bottom: 16px;
}
.feature h3 {
  font-size: 1.25rem;
}
.feature p {
  color: var(--muted);
}

/* Steps */
.steps {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 32px;
  margin: 0;
  padding: 0;
  list-style: none;
  counter-reset: step;
}
.steps li {
  position: relative;
  padding: 28px;
  border-radius: var(--radius);
  background: var(--white);
  counter-increment: step;
}
.steps li::before {
  content: counter(step);
  display: flex;
  align-items: center;
  justify-content: center;
  width: 40px;
  height: 40px;
  margin-bottom: 16px;
  border-radius: 50%;
  background: var(--purple);
  color: var(--white);
  font-weight: 700;
}
.steps h3 {
  font-size: 1.1875rem;
}
.steps p {
  margin: 0;
  color: var(--muted);
}

/* Packages */
.packages-2 {
  display: grid;
  grid-template-columns: minmax(0, 2fr) minmax(0, 3fr);
  gap: 32px;
  align-items: start;
  max-width: 1000px;
  margin: 0 auto;
}
.package {
  padding: 28px;
  border: 1px solid var(--line);
  border-top: 6px solid var(--accent);
  border-radius: var(--radius);
  background: var(--white);
}
.package h3 {
  margin-bottom: 12px;
  font-size: 1.25rem;
  text-transform: uppercase;
  letter-spacing: 0.06em;
  color: var(--accent-text);
}
.package-diy {
  --accent: #b9b1f8;
  --accent-text: var(--muted);
}
.package-main {
  --accent: var(--purple);
  --accent-text: var(--purple);
}
.price-rows {
  margin-bottom: 16px;
  border-bottom: 1px solid var(--line);
}
.price-row {
  display: grid;
  grid-template-columns: 5.5rem minmax(0, 1fr);
  gap: 16px;
  align-items: baseline;
  padding: 12px 0;
  border-top: 1px solid var(--line);
}
.price-row p {
  margin: 0;
}
.price {
  font-size: 1.75rem;
  font-weight: 700;
  line-height: 1.1;
  color: var(--ink);
}
.includes {
  margin: 0 0 4px;
  font-size: 0.9375rem;
  color: var(--muted);
}
.package-you {
  margin: 12px 0 0;
  font-size: 0.9375rem;
  color: var(--muted);
}
.packages-note {
  max-width: 44em;
  margin: 28px auto 0;
  text-align: center;
  font-size: 0.9375rem;
  color: var(--muted);
}
.ticks {
  margin: 0;
  padding: 0;
  list-style: none;
}
.ticks li {
  display: flex;
  gap: 10px;
  padding: 6px 0;
}
.ticks svg {
  flex-shrink: 0;
  width: 16px;
  height: 16px;
  margin-top: 6px;
  fill: var(--purple);
}

/* Testimonials */
.quotes {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 32px;
}
.quote {
  margin: 0;
  padding: 28px;
  border-radius: var(--radius);
  background: var(--white);
}
.quote img {
  display: block;
  width: 72px;
  height: 72px;
  margin-bottom: 16px;
  border-radius: 50%;
}
.quote blockquote {
  margin: 0;
  font-style: italic;
}
.quote figcaption {
  font-weight: 700;
  font-size: 0.9375rem;
}
.quote figcaption span {
  display: block;
  font-weight: 400;
  color: var(--muted);
}

/* FAQs */
details {
  border-bottom: 1px solid var(--line);
}
details:first-of-type {
  border-top: 1px solid var(--line);
}
summary {
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 16px;
  padding: 18px 0;
  font-weight: 700;
  cursor: pointer;
  list-style: none;
}
summary::-webkit-details-marker {
  display: none;
}
summary::after {
  content: "+";
  flex-shrink: 0;
  font-size: 1.5rem;
  line-height: 1;
  color: var(--purple);
}
details[open] summary::after {
  content: "\2212";
}
details p {
  margin: 0 0 18px;
  color: var(--muted);
}

/* Call to action */
.cta {
  padding: 72px 0;
  background: var(--purple-soft);
  text-align: center;
}
.cta h2 {
  font-size: clamp(1.75rem, 3.5vw, 2.25rem);
}
.cta p {
  color: var(--muted);
  margin-bottom: 24px;
}

/* Footer */
.site-footer {
  background: var(--purple);
  color: var(--white);
  padding: 40px 0 28px;
  font-size: 0.9375rem;
}
.site-footer a {
  color: var(--white);
}
.footer-grid {
  display: grid;
  grid-template-columns: 1.3fr 1fr 1fr;
  gap: 32px;
}
.footer-grid img {
  display: block;
  width: 110px;
  margin-bottom: 12px;
}
.footer-grid h2 {
  font-size: 1rem;
  margin-bottom: 8px;
}
.footer-grid p {
  opacity: 0.9;
}
.social {
  display: flex;
  gap: 10px;
  margin: 0;
  padding: 0;
  list-style: none;
}
.social a {
  display: flex;
  align-items: center;
  justify-content: center;
  width: 40px;
  height: 40px;
  border-radius: 50%;
  background: rgba(255, 255, 255, 0.16);
}
.social a:hover {
  background: rgba(255, 255, 255, 0.28);
}
.social svg {
  width: 18px;
  height: 18px;
  fill: var(--white);
}
.footer-bottom {
  display: flex;
  justify-content: space-between;
  gap: 16px;
  flex-wrap: wrap;
  margin-top: 36px;
  padding-top: 20px;
  border-top: 1px solid rgba(255, 255, 255, 0.25);
  opacity: 0.9;
}

.legal {
  margin: 16px 0 0;
  font-size: 0.8125rem;
  opacity: 0.8;
}

.footer-links {
  display: flex;
  gap: 20px;
}

/* Guide cards (home page and guides index) */
.guide-cards {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 20px;
  margin: 0;
  padding: 0;
  list-style: none;
}
.guide-cards-4 {
  grid-template-columns: repeat(4, minmax(0, 1fr));
}
.guide-cards a {
  display: block;
  height: 100%;
  padding: 24px;
  border: 1px solid var(--line);
  border-radius: var(--radius);
  background: var(--white);
  color: var(--ink);
  text-decoration: none;
  transition: border-color 0.15s, box-shadow 0.15s;
}
.guide-cards a:hover {
  border-color: var(--purple);
  box-shadow: var(--shadow);
}
.guide-cards a > h2,
.guide-cards a > h3 {
  margin: 0 0 8px;
  font-size: 1.125rem;
  color: var(--purple-dark);
}
.guide-cards p {
  margin: 0;
  color: var(--muted);
  font-size: 0.9375rem;
}

/* Simple text pages (privacy policy, 404) */
.page {
  padding: 56px 0 80px;
}
.page h1 {
  font-size: clamp(2rem, 4vw, 2.75rem);
}
.page h2 {
  font-size: 1.375rem;
  margin-top: 1.6em;
}
.page .updated {
  color: var(--muted);
}
.page .lead {
  max-width: none;
}

/* Guides */
.breadcrumb {
  margin-bottom: 20px;
  font-size: 0.875rem;
  color: var(--muted);
}
.breadcrumb a {
  color: var(--muted);
}
.guide h2 {
  margin-top: 1.8em;
}
.guide h3 {
  margin: 1.4em 0 0.4em;
  font-size: 1.125rem;
}
.guide ul {
  padding-left: 1.25em;
}
.guide li {
  margin-bottom: 0.4em;
}
.checklist {
  list-style: none;
  padding-left: 0 !important;
}
.checklist li {
  position: relative;
  padding-left: 32px;
}
.checklist li::before {
  content: "";
  position: absolute;
  left: 0;
  top: 0.3em;
  width: 18px;
  height: 18px;
  border: 2px solid var(--purple);
  border-radius: 5px;
}
.sources {
  font-size: 0.9375rem;
}
.cta-box {
  margin: 40px 0;
  padding: 28px;
  border-radius: var(--radius);
  background: var(--purple-soft);
}
.cta-box h2 {
  margin-top: 0;
}
.related {
  margin-top: 48px;
  padding-top: 24px;
  border-top: 1px solid var(--line);
}
.related h2 {
  margin-top: 0;
  font-size: 1.125rem;
}

/* Tablets */
@media (max-width: 900px) {
  .hero-grid {
    grid-template-columns: minmax(0, 1fr);
    gap: 40px;
  }
  .changelist {
    max-width: 520px;
    transform: none;
  }
  .cards-3,
  .steps {
    grid-template-columns: minmax(0, 1fr);
    max-width: 520px;
    margin-left: auto;
    margin-right: auto;
  }
  .quotes {
    grid-template-columns: minmax(0, 1fr);
  }
  .packages-2 {
    grid-template-columns: minmax(0, 1fr);
    max-width: 560px;
  }
  .guide-cards-4 {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }
  .footer-grid {
    grid-template-columns: minmax(0, 1fr);
  }
}

/* Phones */
@media (max-width: 640px) {
  .container {
    padding: 0 16px;
  }
  .nav {
    gap: 12px;
    min-height: 64px;
  }
  .site-header nav {
    display: none;
  }
  .site-header .btn {
    margin-left: auto;
  }
  .brand img {
    width: 96px;
  }
  .hero {
    padding-top: 36px;
  }
  .lead {
    font-size: 1.0625rem;
  }
  .register-form,
  .changelist,
  .steps li,
  .package,
  .quote {
    padding: 22px 18px;
  }
  .price-row {
    grid-template-columns: 4.5rem minmax(0, 1fr);
    gap: 12px;
  }
  .section {
    padding: 56px 0;
  }
  .section-intro {
    margin-bottom: 32px;
  }
  .wave {
    height: 32px;
  }
  .guide-cards,
  .guide-cards-4 {
    grid-template-columns: minmax(0, 1fr);
  }
  .footer-links {
    gap: 16px;
  }
}
