/* Magnifying Glass Solutions — shared styles
   Palette: paper, ink, graphite, editor red, non-photo blue */

:root {
  --paper: #FDFCF9;
  --ink: #26241E;
  --graphite: #625E54;
  --red: #C5372B;
  --red-deep: #A72A20;
  --blue-wash: #E9F3F7;
  --rule: #E5E1D6;
  --serif: "Source Serif 4", Georgia, "Times New Roman", serif;
  --hand: "Caveat", "Segoe Script", cursive;
}

* { box-sizing: border-box; }

html { scroll-behavior: smooth; }

body {
  margin: 0;
  background: var(--paper);
  color: var(--ink);
  font-family: var(--serif);
  font-size: 1.0625rem;
  line-height: 1.68;
}

/* ---------- primitives ---------- */

.container {
  max-width: 66rem;
  margin: 0 auto;
  padding: 0 1.5rem;
}

.prose { max-width: 44rem; }
/* keep a .container.prose aligned with sibling containers, capping only its content */
.container.prose { max-width: 66rem; }
.container.prose > * { max-width: 44rem; }

h1, h2, h3 {
  line-height: 1.15;
  margin: 0 0 0.6em;
  font-weight: 600;
  letter-spacing: -0.01em;
}

h2 { font-size: clamp(1.7rem, 3vw, 2.15rem); }
h3 { font-size: 1.2rem; margin-bottom: 0.35em; }

p { margin: 0 0 1em; }

a { color: inherit; text-decoration-color: var(--red); text-decoration-thickness: 1.5px; text-underline-offset: 3px; }
a:hover { color: var(--red-deep); }

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

.skip-link {
  position: absolute;
  left: -999px;
  top: 0;
  background: var(--ink);
  color: var(--paper);
  padding: 0.6em 1em;
  z-index: 10;
}
.skip-link:focus { left: 1rem; top: 1rem; }

.btn {
  display: inline-block;
  background: var(--red);
  color: #fff;
  font-family: inherit;
  font-size: 1rem;
  font-weight: 600;
  line-height: 1.5;
  text-decoration: none;
  padding: 0.75em 1.5em;
  border: 0;
  border-radius: 6px;
  cursor: pointer;
}
.btn:hover { background: var(--red-deep); color: #fff; }

.text-link { font-weight: 600; }

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

.site-head {
  border-bottom: 1px solid var(--rule);
}

.site-head .container {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1rem 2rem;
  flex-wrap: wrap;
  padding-top: 1.1rem;
  padding-bottom: 1.1rem;
}

.brand {
  display: inline-flex;
  align-items: center;
  gap: 0.55rem;
  font-weight: 700;
  font-size: 1.15rem;
  text-decoration: none;
  letter-spacing: -0.01em;
}
.brand svg { flex: none; }

.site-nav {
  display: flex;
  align-items: center;
  gap: 1.2rem;
  flex-wrap: wrap;
}
.site-nav a { text-decoration: none; }
.site-nav a:hover { text-decoration: underline; text-decoration-color: var(--red); text-underline-offset: 4px; }
.site-nav .btn { padding: 0.5em 1.1em; }
.site-nav .btn:hover { text-decoration: none; }
.site-nav .nav-login { margin-left: 0.8rem; }

/* ---------- hero (home) ---------- */

.hero { padding: 6rem 0 5rem; }

.hero h1 {
  font-size: clamp(2.4rem, 6.5vw, 4.3rem);
  font-weight: 700;
  max-width: 14em;
  margin-bottom: 0.5em;
}

.hero .lede {
  font-size: 1.2rem;
  color: var(--graphite);
  max-width: 36em;
}

.hero-actions {
  display: flex;
  align-items: center;
  gap: 1.6rem;
  flex-wrap: wrap;
  margin-top: 2rem;
}

.hero-note {
  margin-top: 1.6rem;
  color: var(--graphite);
  font-size: 0.95rem;
}

/* the editor's correction in the headline */
.proof { position: relative; display: inline-block; }

.proof del {
  text-decoration: none;
  position: relative;
  color: inherit;
}
.proof del::after {
  content: "";
  position: absolute;
  left: -3%;
  right: -3%;
  top: 55%;
  height: 0.085em;
  border-radius: 2px;
  background: var(--red);
  transform: rotate(-2.5deg);
}

.proof ins {
  position: absolute;
  left: 50%;
  bottom: 92%;
  transform: translateX(-50%) rotate(-4deg);
  font-family: var(--hand);
  font-weight: 700;
  font-size: 0.75em;
  line-height: 1;
  color: var(--red);
  text-decoration: none;
  white-space: nowrap;
}

@media (prefers-reduced-motion: no-preference) {
  .proof del::after {
    transform-origin: left center;
    animation: strike 0.4s ease-out 0.7s backwards;
  }
  .proof ins {
    animation: jot 0.45s ease-out 1.15s backwards;
  }
  @keyframes strike {
    from { transform: rotate(-2.5deg) scaleX(0); }
  }
  @keyframes jot {
    from { opacity: 0; transform: translateX(-50%) rotate(-4deg) translateY(0.3em); }
  }
}

/* ---------- inner-page hero ---------- */

.page-hero { padding: 4.5rem 0 3.5rem; }
.page-hero h1 {
  font-size: clamp(2.1rem, 4.5vw, 3.1rem);
  font-weight: 700;
  max-width: 18em;
}
.page-hero .lede {
  font-size: 1.15rem;
  color: var(--graphite);
  max-width: 36em;
}
.page-hero .hero-actions { margin-top: 1.8rem; }

.crumb {
  color: var(--graphite);
  font-size: 0.92rem;
  margin-bottom: 1.6rem;
}
.crumb a { text-decoration: none; }
.crumb a:hover { text-decoration: underline; }

.rate-line { font-size: 1.05rem; margin-top: 1.2rem; }
.rate-line strong { font-size: 1.45rem; }

/* ---------- sections ---------- */

.section { padding: 4.5rem 0; }
.section + .section { border-top: 1px solid var(--rule); }

.section-intro {
  color: var(--graphite);
  max-width: 40em;
  margin-bottom: 2.5rem;
}

/* what we do / don't */
.scope-cols {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(17rem, 1fr));
  gap: 2.5rem 4rem;
  max-width: 56rem;
}

.scope-cols ul {
  list-style: none;
  margin: 0;
  padding: 0;
}
.scope-cols li {
  padding-left: 1.7em;
  position: relative;
  margin-bottom: 0.7em;
}
.scope-cols li::before {
  position: absolute;
  left: 0;
  font-weight: 700;
}
.scope-do li::before { content: "\2713"; color: var(--red); }
.scope-dont li::before { content: "\2715"; color: var(--graphite); }

/* generic checklist (service pages) */
.check-list {
  list-style: none;
  margin: 0;
  padding: 0;
  max-width: 46rem;
}
.check-list li {
  padding-left: 1.7em;
  position: relative;
  margin-bottom: 0.7em;
}
.check-list li::before {
  content: "\2713";
  color: var(--red);
  font-weight: 700;
  position: absolute;
  left: 0;
}
@media (min-width: 48rem) {
  .check-list.two-col {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 0 3.5rem;
    max-width: 56rem;
  }
}

/* ---------- services rate card ---------- */

.services-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 3rem 4rem;
}
@media (max-width: 47rem) {
  .services-grid { grid-template-columns: 1fr; gap: 2.5rem; }
}

.service-line {
  display: flex;
  align-items: baseline;
  gap: 0.6em;
}
.service-line h3 { margin: 0; }
.service-line h3 a { text-decoration: none; }
.service-line h3 a:hover { text-decoration: underline; text-decoration-color: var(--red); text-underline-offset: 4px; }
.service-line .leader {
  flex: 1;
  min-width: 1.5em;
  border-bottom: 2px dotted #CFC9BA;
  transform: translateY(-0.3em);
}
.service-line .price {
  margin: 0;
  font-weight: 700;
  white-space: nowrap;
}

.service .meta {
  color: var(--graphite);
  font-size: 0.92rem;
  margin: 0.3em 0 0.6em;
}
.service .bestfor {
  font-style: italic;
  color: var(--graphite);
  margin-bottom: 0;
}
.service .more { margin: 0.5em 0 0; }

/* ---------- before / after example panels ---------- */

.example-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(19rem, 1fr));
  gap: 1.5rem;
  max-width: 58rem;
}

.doc-panel {
  background: #fff;
  border: 1px solid var(--rule);
  padding: 1.6rem 1.8rem;
}
.doc-panel p:last-child { margin-bottom: 0; }

.panel-label {
  font-style: italic;
  color: var(--graphite);
  font-size: 0.95rem;
  margin: 0 0 0.8em;
}

.doc-panel del {
  color: inherit;
  text-decoration: line-through;
  text-decoration-color: var(--red);
  text-decoration-thickness: 2px;
}
.doc-panel ins {
  font-family: var(--hand);
  font-weight: 600;
  font-size: 1.15em;
  line-height: 1;
  color: var(--red);
  text-decoration: none;
  padding: 0 0.12em;
}

/* mini page thumbnails (formatting service) */
.mini-pages {
  display: flex;
  gap: 2.5rem;
  align-items: flex-start;
  flex-wrap: wrap;
}
.mini-pages figure { margin: 0; }
.mini-pages figcaption {
  font-style: italic;
  color: var(--graphite);
  font-size: 0.95rem;
  margin-top: 0.7rem;
}
.mini-page {
  width: 158px;
  min-height: 200px;
  background: #fff;
  border: 1px solid var(--rule);
  box-shadow: 2px 3px 0 rgba(38, 36, 30, 0.06);
  padding: 16px;
  display: flex;
  flex-direction: column;
  gap: 7px;
}
.mini-page .bar { height: 6px; border-radius: 3px; background: #DAD5C8; }
.mini-page .bar.head { height: 9px; background: #8F897B; }

/* ---------- packages table ---------- */

.table-wrap { overflow-x: auto; }

.tiers {
  width: 100%;
  border-collapse: collapse;
  min-width: 44rem;
}
.tiers th, .tiers td {
  text-align: left;
  vertical-align: top;
  padding: 1rem 1.2rem;
  border-bottom: 1px solid var(--rule);
}
.tiers thead th {
  background: var(--blue-wash);
  font-weight: 600;
  border-bottom: 1px solid #CBDFE9;
}
.tiers .tier-name { font-weight: 700; white-space: nowrap; }
.tiers .tier-price { font-weight: 700; font-size: 1.15rem; }
.tiers td:last-child { white-space: nowrap; }

.tiers-note {
  color: var(--graphite);
  font-size: 0.95rem;
  margin-top: 1.2rem;
}

/* ---------- how it works ---------- */

.steps {
  list-style: none;
  counter-reset: step;
  margin: 0;
  padding: 0;
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(15rem, 1fr));
  gap: 2.5rem 3rem;
  max-width: 60rem;
}
.steps li {
  counter-increment: step;
  position: relative;
  padding-top: 2.4rem;
}
.steps li::before {
  content: counter(step) ".";
  position: absolute;
  top: 0;
  left: 0;
  font-family: var(--hand);
  font-weight: 700;
  font-size: 1.9rem;
  line-height: 1;
  color: var(--red);
}
.steps h3 { margin-bottom: 0.3em; }
.steps p { margin: 0; color: var(--graphite); }

/* ---------- forms ---------- */

.form-grid { max-width: 36rem; }

.field { margin-bottom: 1.25rem; }
.field label {
  display: block;
  font-weight: 600;
  margin-bottom: 0.4rem;
}
.field input,
.field select,
.field textarea {
  width: 100%;
  font: inherit;
  color: inherit;
  background: #fff;
  border: 1.5px solid #CBC5B6;
  border-radius: 6px;
  padding: 0.6em 0.8em;
}
.field textarea { min-height: 9em; resize: vertical; }
.field .hint {
  color: var(--graphite);
  font-size: 0.9rem;
  margin: 0.35rem 0 0;
}

.callout {
  background: var(--blue-wash);
  border-left: 3px solid var(--red);
  padding: 1.1rem 1.4rem;
  margin: 1.5rem 0;
}
.callout p:last-child { margin-bottom: 0; }

/* ---------- auth pages ---------- */

.auth-main { padding: 4.5rem 0 5.5rem; }

.auth-card {
  max-width: 26.5rem;
  margin: 0 auto;
  background: #fff;
  border: 1px solid var(--rule);
  padding: 2.4rem 2.2rem;
}
.auth-card h1 { font-size: 1.7rem; }
.auth-card .auth-intro { color: var(--graphite); margin-bottom: 1.6rem; }
.auth-card .btn { width: 100%; text-align: center; }
.auth-alt { text-align: center; margin: 1.4rem 0 0; }
.auth-card .callout { margin-bottom: 0; }

/* ---------- FAQ ---------- */

.faq-list { max-width: 46rem; }
.faq-list details { border-bottom: 1px solid var(--rule); }
.faq-list summary {
  font-weight: 600;
  font-size: 1.08rem;
  padding: 1rem 0;
  cursor: pointer;
}
.faq-list summary::marker { color: var(--red); }
.faq-list details p { margin: 0.2rem 0 1.2rem; max-width: 42rem; }

/* ---------- contact ---------- */

.contact { background: var(--blue-wash); }
.contact .section-intro { margin-bottom: 1.8rem; }
.contact-email { font-size: 1.15rem; margin-top: 1.4rem; }

/* ---------- 404 ---------- */

.notfound { padding: 6rem 0 7rem; }
.circle-404 {
  position: relative;
  display: inline-block;
  font-size: clamp(4.5rem, 13vw, 7.5rem);
  font-weight: 700;
  line-height: 1;
  margin: 0 0 1.5rem;
}
.circle-404 svg {
  position: absolute;
  inset: -22% -26%;
  width: 152%;
  height: 144%;
  overflow: visible;
}
.circle-404 .jot-note {
  position: absolute;
  left: 104%;
  top: -18%;
  font-family: var(--hand);
  font-weight: 700;
  font-size: 0.32em;
  line-height: 1.1;
  color: var(--red);
  transform: rotate(6deg);
  white-space: nowrap;
}

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

.site-foot {
  border-top: 1px solid var(--rule);
  padding: 3.5rem 0;
  color: var(--graphite);
  font-size: 0.92rem;
}

.foot-grid {
  display: grid;
  grid-template-columns: 1.6fr 1fr 1fr 1fr;
  gap: 2.5rem 3rem;
  margin-bottom: 2.5rem;
}
@media (max-width: 52rem) {
  .foot-grid { grid-template-columns: 1fr 1fr; }
}
@media (max-width: 30rem) {
  .foot-grid { grid-template-columns: 1fr; }
}

.foot-grid h3 { font-size: 1rem; margin-bottom: 0.7em; }
.foot-grid ul { list-style: none; margin: 0; padding: 0; }
.foot-grid li { margin-bottom: 0.45em; }
.foot-grid a { text-decoration: none; }
.foot-grid a:hover { text-decoration: underline; }
.foot-name { font-weight: 700; color: var(--ink); margin-bottom: 0.3em; }
.foot-about p { margin-bottom: 0.4em; }

.disclaimer {
  border-top: 1px solid var(--rule);
  padding-top: 1.6rem;
  max-width: 56rem;
}
.foot-fine { margin-top: 1rem; margin-bottom: 0; }

/* ---------- terms & policy pages ---------- */

.page-title { padding: 4rem 0 0.5rem; }
.page-title h1 { font-size: clamp(2rem, 4.5vw, 3rem); font-weight: 700; }
.page-title .updated { color: var(--graphite); }

.terms-body { padding: 2rem 0 5rem; }
.terms-body h2 { font-size: 1.35rem; margin-top: 2.2em; }

@media (max-width: 40rem) {
  .hero { padding: 4rem 0 3.5rem; }
  .page-hero { padding: 3.5rem 0 3rem; }
  .section { padding: 3.5rem 0; }
}
