/* ============================================================
   DESIGN TOKENS
   Palette: ink #14171C, paper #F7F5F1, paper-alt #EFEBE3,
            cut-red #FF4D3D (signature "clipping path" accent),
            teal #0E7C74 (secondary accent), graphite #23262B,
            muted #6B7076
   Type: Fraunces (display), Inter (body), IBM Plex Mono (data/labels)
   Signature: animated dashed "marching ants" clipping-path line,
              used in the hero and as a recurring structural motif.
   ============================================================ */
:root {
  --ink: #14171c;
  --paper: #f7f5f1;
  --paper-alt: #efebe3;
  --cut-red: #ff4d3d;
  --teal: #0e7c74;
  --graphite: #23262b;
  --muted: #6b7076;
  --line: #dedad0;
  --white: #ffffff;

  --font-display: "Fraunces", serif;
  --font-body: "Inter", -apple-system, BlinkMacSystemFont, sans-serif;
  --font-mono: "IBM Plex Mono", monospace;

  --radius: 14px;
  --max-width: 1180px;
}

* { box-sizing: border-box; }
html { scroll-behavior: smooth; }

body {
  margin: 0;
  font-family: var(--font-body);
  color: var(--graphite);
  background: var(--paper);
  line-height: 1.55;
  -webkit-font-smoothing: antialiased;
}

img, svg { max-width: 100%; display: block; }
a { color: inherit; text-decoration: none; }

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

h1, h2, h3 {
  font-family: var(--font-display);
  font-weight: 600;
  line-height: 1.15;
  margin: 0 0 .5em;
  color: var(--ink);
}
h1 { font-size: clamp(2.2rem, 4vw, 3.4rem); }
h2 { font-size: clamp(1.6rem, 2.6vw, 2.3rem); }
h3 { font-size: 1.2rem; margin-bottom: .35em; }
p { margin: 0 0 1em; color: var(--muted); }

.eyebrow {
  font-family: var(--font-mono);
  text-transform: uppercase;
  letter-spacing: .12em;
  font-size: .72rem;
  color: var(--cut-red);
  margin: 0 0 .8em;
  font-weight: 500;
}

.cut-underline {
  position: relative;
  display: inline-block;
}
.cut-underline::after {
  content: "";
  position: absolute;
  left: 0; right: 0; bottom: .06em;
  height: .12em;
  border-bottom: 3px dashed var(--cut-red);
  animation: ants 18s linear infinite;
}

@keyframes ants {
  to { stroke-dashoffset: -200; background-position-x: -200px; }
}

/* ---------- Buttons ---------- */
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: .5em;
  padding: .85em 1.6em;
  border-radius: 999px;
  font-weight: 600;
  font-size: .95rem;
  border: 1.5px solid transparent;
  cursor: pointer;
  transition: transform .15s ease, background .2s ease, border-color .2s ease, color .2s ease;
}
.btn:hover { transform: translateY(-1px); }
.btn-primary { background: var(--cut-red); color: var(--white); }
.btn-primary:hover { background: #e6402f; }
.btn-ghost { background: transparent; border-color: var(--ink); color: var(--ink); }
.btn-ghost:hover { background: var(--ink); color: var(--white); }
.btn-lg { padding: 1em 2.1em; font-size: 1.05rem; }
.btn-small { padding: .55em 1.1em; font-size: .85rem; }
.btn-block { width: 100%; }

/* ---------- Header ---------- */
.site-header {
  position: sticky;
  top: 0;
  z-index: 50;
  background: rgba(247, 245, 241, .92);
  backdrop-filter: blur(8px);
  border-bottom: 1px solid var(--line);
}
.header-row {
  display: flex;
  align-items: center;
  justify-content: space-between;
  height: 76px;
}
.brand { display: flex; align-items: center; gap: .6em; }
.brand-mark-outline { fill: none; stroke: var(--ink); stroke-width: 1.6; stroke-dasharray: 3 3; }
.brand-mark-fill { fill: var(--cut-red); }
.brand-name {
  font-family: var(--font-display);
  font-weight: 700;
  font-size: 1.25rem;
  color: var(--ink);
}
.main-nav { display: flex; gap: 2em; }
.main-nav a {
  font-weight: 500;
  font-size: .95rem;
  color: var(--graphite);
  padding: .3em 0;
  border-bottom: 2px solid transparent;
}
.main-nav a:hover, .main-nav a.active { border-bottom-color: var(--cut-red); color: var(--ink); }

.header-actions { display: flex; align-items: center; gap: 1em; }
.nav-toggle {
  display: none;
  flex-direction: column;
  gap: 4px;
  background: none;
  border: none;
  cursor: pointer;
  padding: 8px;
}
.nav-toggle span { width: 22px; height: 2px; background: var(--ink); border-radius: 2px; }

.mobile-nav {
  display: none;
  flex-direction: column;
  gap: 1em;
  padding: 1em 24px 1.6em;
  border-top: 1px solid var(--line);
}
.mobile-nav a { font-weight: 500; padding: .3em 0; }
.mobile-nav.open { display: flex; }

@media (max-width: 860px) {
  .main-nav, .header-actions .btn-primary { display: none; }
  .nav-toggle { display: flex; }
}

/* ---------- Hero ---------- */
.hero { padding: 72px 0 40px; }
.hero-grid {
  display: grid;
  grid-template-columns: 1.05fr .95fr;
  gap: 48px;
  align-items: center;
}
.hero-sub { font-size: 1.08rem; max-width: 46ch; }
.hero-cta { display: flex; gap: 1em; margin: 1.6em 0 2.2em; flex-wrap: wrap; }
.hero-stats { display: flex; gap: 2.2em; flex-wrap: wrap; }
.hero-stats div { display: flex; flex-direction: column; }
.hero-stats strong { font-family: var(--font-mono); font-size: 1.15rem; color: var(--ink); }
.hero-stats span { font-size: .78rem; color: var(--muted); text-transform: uppercase; letter-spacing: .04em; }

.hero-visual { display: flex; flex-direction: column; align-items: center; gap: 12px; }
.cut-frame {
  width: 100%;
  max-width: 380px;
  aspect-ratio: 1 / 1;
  background: var(--paper-alt);
  border-radius: 24px;
  padding: 20px;
  cursor: pointer;
}
.cut-backdrop { fill: #e6e1d4; transition: opacity .4s ease; }
.cut-subject { fill: var(--ink); transition: transform .4s ease; }
.cut-subject-detail { stroke: var(--paper-alt); stroke-width: 2; fill: none; }
.marching-ants {
  stroke: var(--cut-red);
  stroke-width: 2.5;
  stroke-dasharray: 7 6;
  opacity: 0;
  transition: opacity .3s ease;
  animation: march 12s linear infinite;
}
@keyframes march { to { stroke-dashoffset: -260; } }

.cut-frame:hover .cut-backdrop { opacity: 0; }
.cut-frame:hover .marching-ants { opacity: 1; }
.cut-frame:hover .cut-subject { transform: translateY(-4px); }

.cut-caption { font-size: .8rem; color: var(--muted); font-family: var(--font-mono); }

/* ---------- Trust bar ---------- */
.trust-bar { background: var(--ink); padding: 22px 0; }
.trust-grid {
  display: flex;
  justify-content: space-between;
  flex-wrap: wrap;
  gap: 12px 24px;
}
.trust-grid span {
  color: var(--paper);
  font-size: .85rem;
  font-family: var(--font-mono);
}
.trust-grid div::before { content: "— "; color: var(--cut-red); }

/* ---------- Sections ---------- */
.section { padding: 84px 0; }
.section-alt { background: var(--paper-alt); }
.section-head {
  display: flex;
  justify-content: space-between;
  align-items: flex-end;
  gap: 1em;
  margin-bottom: 2.6em;
  flex-wrap: wrap;
}
.section-head.center { flex-direction: column; align-items: center; text-align: center; }
.link-more { font-weight: 600; color: var(--cut-red); white-space: nowrap; }

.page-hero { padding: 64px 0 24px; }

/* ---------- Service cards ---------- */
.service-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 20px;
}
.service-card {
  background: var(--white);
  border: 1px solid var(--line);
  border-radius: var(--radius);
  padding: 26px 22px;
  transition: border-color .2s ease, transform .2s ease;
  position: relative;
}
.service-card:hover {
  border-color: var(--cut-red);
  border-style: dashed;
  transform: translateY(-3px);
}
.service-icon { color: var(--cut-red); margin-bottom: 14px; }
.service-card p { font-size: .92rem; margin-bottom: 1em; }
.service-price {
  display: inline-block;
  font-family: var(--font-mono);
  font-size: .82rem;
  color: var(--ink);
  background: var(--paper-alt);
  padding: .3em .7em;
  border-radius: 6px;
}
.service-card-lg { padding: 30px 26px; }
.service-grid-detailed { grid-template-columns: repeat(3, 1fr); }
.service-grid-detailed .link-more { display: block; margin-top: .8em; }

@media (max-width: 980px) {
  .service-grid { grid-template-columns: repeat(2, 1fr); }
  .service-grid-detailed { grid-template-columns: repeat(2, 1fr); }
}
@media (max-width: 600px) {
  .service-grid, .service-grid-detailed { grid-template-columns: 1fr; }
}

/* ---------- Steps ---------- */
.steps {
  list-style: none;
  margin: 0;
  padding: 0;
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 24px;
}
.steps li { border-top: 3px dashed var(--cut-red); padding-top: 16px; }
.step-index {
  font-family: var(--font-mono);
  color: var(--cut-red);
  font-size: .85rem;
  display: block;
  margin-bottom: .4em;
}
.center-cta { text-align: center; margin-top: 2.4em; }

.steps-vertical {
  grid-template-columns: 1fr;
  max-width: 640px;
  margin: 0 auto;
}
.steps-vertical li {
  display: flex;
  gap: 20px;
  border-top: none;
  border-left: 3px dashed var(--cut-red);
  padding: 4px 0 28px 24px;
}
.steps-vertical li .step-index { flex-shrink: 0; margin-bottom: 0; }

@media (max-width: 860px) {
  .steps { grid-template-columns: repeat(2, 1fr); }
}
@media (max-width: 560px) {
  .steps { grid-template-columns: 1fr; }
}

/* ---------- Testimonials ---------- */
.testimonial-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 22px;
}
.testimonial-card {
  margin: 0;
  background: var(--white);
  border: 1px solid var(--line);
  border-radius: var(--radius);
  padding: 26px;
}
.testimonial-card blockquote { margin: 0 0 1.2em; font-family: var(--font-display); font-size: 1.05rem; color: var(--ink); }
.testimonial-card figcaption { display: flex; flex-direction: column; font-size: .85rem; }
.testimonial-card figcaption span { color: var(--muted); }

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

/* ---------- CTA band ---------- */
.cta-band { background: var(--ink); padding: 70px 0; }
.cta-band-inner { text-align: center; }
.cta-band-inner h2 { color: var(--white); }
.cta-band-inner p { color: #b7bcc4; }

/* ---------- Quote tool (pricing page) ---------- */
.quote-tool {
  background: var(--white);
  border: 1px solid var(--line);
  border-radius: var(--radius);
  padding: 32px;
  display: grid;
  grid-template-columns: repeat(3, 1fr) 1.2fr;
  gap: 20px;
  align-items: end;
  max-width: 980px;
  margin: 0 auto;
}
.quote-field { display: flex; flex-direction: column; gap: .5em; }
.quote-field label { font-size: .82rem; font-weight: 600; color: var(--ink); }
.quote-field select, .quote-field input {
  padding: .75em .9em;
  border: 1px solid var(--line);
  border-radius: 8px;
  font-family: var(--font-body);
  font-size: .95rem;
  background: var(--paper);
}
.quote-total {
  grid-column: 1 / -1;
  display: flex;
  align-items: baseline;
  gap: .6em;
  border-top: 3px dashed var(--cut-red);
  padding-top: 16px;
  flex-wrap: wrap;
}
.quote-total span { font-size: .85rem; color: var(--muted); }
.quote-total strong { font-family: var(--font-mono); font-size: 1.8rem; color: var(--ink); }
.quote-total small { font-family: var(--font-mono); color: var(--muted); font-size: .78rem; }
#qCta { grid-column: 1 / -1; }

@media (max-width: 860px) {
  .quote-tool { grid-template-columns: 1fr 1fr; }
}
@media (max-width: 560px) {
  .quote-tool { grid-template-columns: 1fr; }
}

/* ---------- Pay cards ---------- */
.pay-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 22px;
}
.pay-card {
  background: var(--white);
  border: 1px solid var(--line);
  border-radius: var(--radius);
  padding: 30px;
  position: relative;
}
.pay-card ul { padding-left: 1.1em; margin: 0 0 1.4em; color: var(--muted); font-size: .92rem; }
.pay-card li { margin-bottom: .4em; }
.pay-card-featured { border-color: var(--cut-red); border-width: 2px; }
.pay-badge {
  position: absolute;
  top: -12px; left: 24px;
  background: var(--cut-red);
  color: var(--white);
  font-family: var(--font-mono);
  font-size: .7rem;
  padding: .3em .8em;
  border-radius: 999px;
  text-transform: uppercase;
  letter-spacing: .06em;
}

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

/* ---------- Credit packs ---------- */
.credit-grid {
  display: grid;
  grid-template-columns: repeat(6, 1fr);
  gap: 16px;
}
.credit-card {
  background: var(--white);
  border: 1px solid var(--line);
  border-radius: var(--radius);
  padding: 22px 16px;
  text-align: center;
  display: flex;
  flex-direction: column;
  gap: .5em;
  position: relative;
}
.credit-card-best { border-color: var(--cut-red); border-width: 2px; }
.credit-bonus { font-size: .72rem; color: var(--teal); font-family: var(--font-mono); }
.credit-price { font-family: var(--font-mono); font-size: 1.25rem; color: var(--ink); margin: .3em 0; }

@media (max-width: 980px) {
  .credit-grid { grid-template-columns: repeat(3, 1fr); }
}
@media (max-width: 560px) {
  .credit-grid { grid-template-columns: repeat(2, 1fr); }
}

/* ---------- Breakdown grid ---------- */
.breakdown-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 24px;
}
.breakdown-grid > div { border-top: 3px dashed var(--cut-red); padding-top: 14px; }

@media (max-width: 860px) {
  .breakdown-grid { grid-template-columns: repeat(2, 1fr); }
}
@media (max-width: 560px) {
  .breakdown-grid { grid-template-columns: 1fr; }
}

/* ---------- FAQ ---------- */
.faq-list { max-width: 760px; margin: 0 auto; display: flex; flex-direction: column; gap: 10px; }
.faq-item {
  background: var(--white);
  border: 1px solid var(--line);
  border-radius: 10px;
  padding: 16px 20px;
}
.faq-item summary {
  cursor: pointer;
  font-weight: 600;
  color: var(--ink);
  list-style: none;
}
.faq-item summary::-webkit-details-marker { display: none; }
.faq-item summary::before { content: "+ "; color: var(--cut-red); font-family: var(--font-mono); }
.faq-item[open] summary::before { content: "− "; }
.faq-item p { margin: .8em 0 0; }

/* ---------- Contact ---------- */
.contact-grid {
  display: grid;
  grid-template-columns: 1.4fr 1fr;
  gap: 40px;
}
.contact-form { display: flex; flex-direction: column; gap: 14px; }
.contact-form label { font-weight: 600; font-size: .88rem; color: var(--ink); }
.contact-form input, .contact-form textarea {
  padding: .85em 1em;
  border: 1px solid var(--line);
  border-radius: 8px;
  font-family: var(--font-body);
  font-size: .95rem;
  background: var(--white);
}
.hp-field { position: absolute; left: -9999px; opacity: 0; }
.form-notice { padding: 12px 16px; border-radius: 8px; font-size: .9rem; }
.form-notice-success { background: #e4f5f0; color: var(--teal); }
.form-notice-error { background: #fdeceb; color: var(--cut-red); }
.contact-side h3 { margin-top: 1.4em; }
.contact-side p { margin: 0 0 .4em; }

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

/* ---------- Footer ---------- */
.site-footer { background: var(--ink); color: #cfd3d9; padding: 60px 0 20px; }
.footer-grid {
  display: grid;
  grid-template-columns: 1.4fr repeat(3, 1fr);
  gap: 32px;
  padding-bottom: 40px;
  border-bottom: 1px solid #2a2e35;
}
.footer-brand .brand-name { color: var(--white); }
.footer-brand p { color: #9aa0a8; max-width: 32ch; }
.footer-social { display: flex; gap: 10px; margin-top: 1em; }
.footer-social a {
  width: 32px; height: 32px;
  border: 1px solid #3a3f47;
  border-radius: 50%;
  display: flex; align-items: center; justify-content: center;
  font-size: .7rem;
  font-family: var(--font-mono);
}
.footer-col { display: flex; flex-direction: column; gap: .6em; }
.footer-col h4 { color: var(--white); font-family: var(--font-body); font-size: .85rem; text-transform: uppercase; letter-spacing: .06em; margin-bottom: .4em; }
.footer-col a, .footer-address { color: #9aa0a8; font-size: .92rem; }
.footer-col a:hover { color: var(--cut-red); }
.footer-bottom { padding-top: 20px; font-size: .8rem; color: #6b7076; }

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

/* ---------- Error pages ---------- */
.error-page { text-align: center; padding: 120px 0; }

/* ---------- Reduced motion ---------- */
@media (prefers-reduced-motion: reduce) {
  * { animation-duration: .001ms !important; animation-iteration-count: 1 !important; transition-duration: .001ms !important; }
}

/* ---------- Focus visibility ---------- */
a:focus-visible, button:focus-visible, input:focus-visible, select:focus-visible, textarea:focus-visible {
  outline: 2px solid var(--cut-red);
  outline-offset: 2px;
}
