/* AutoRefits — design tokens */
:root {
  --white: #FFFFFF;
  --charcoal: #1A1A1A;
  --blue: #007AFF;
  --blue-dark: #0062CC;
  --grey-bg: #F5F7FA;
  --grey-line: #E3E6EA;
  --grey-text: #6E6E73;

  --font-body: -apple-system, BlinkMacSystemFont, "Inter", "Helvetica Neue", Arial, sans-serif;

  --h1: 64px;
  --h2: 40px;
  --h3: 28px;
  --body: 22px;
  --small: 17px;
  --btn: 18px;

  --max-width: 1200px;
}

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

html { scroll-behavior: smooth; }

body {
  font-family: var(--font-body);
  color: var(--charcoal);
  background: var(--white);
  line-height: 1.5;
  -webkit-font-smoothing: antialiased;
}

img { max-width: 100%; display: block; }

a { color: inherit; text-decoration: none; }

:focus-visible {
  outline: 3px solid var(--blue);
  outline-offset: 3px;
}

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

/* ---- Header ---- */
.site-header {
  position: sticky;
  top: 0;
  z-index: 100;
  background: rgba(255,255,255,0.85);
  backdrop-filter: saturate(180%) blur(20px);
  border-bottom: 1px solid var(--grey-line);
}

.site-header .wrap {
  display: flex;
  align-items: center;
  justify-content: space-between;
  height: 64px;
}

.logo {
  font-size: 20px;
  font-weight: 700;
  letter-spacing: -0.02em;
}

.nav-links {
  display: flex;
  gap: 32px;
  list-style: none;
}

.nav-links a {
  font-size: 15px;
  color: var(--charcoal);
  font-weight: 500;
}

.nav-links a:hover { color: var(--blue); }

.nav-cta {
  background: var(--blue);
  color: var(--white);
  padding: 10px 20px;
  border-radius: 980px;
  font-size: 15px;
  font-weight: 600;
}

.nav-cta:hover { background: var(--blue-dark); }

.nav-toggle { display: none; }

/* ---- Buttons ---- */
.btn {
  display: inline-block;
  font-size: var(--btn);
  font-weight: 600;
  padding: 16px 36px;
  border-radius: 980px;
  border: none;
  cursor: pointer;
}

.btn-primary {
  background: var(--blue);
  color: var(--white);
}
.btn-primary:hover { background: var(--blue-dark); }

.btn-secondary {
  background: var(--white);
  color: var(--blue);
  border: 1.5px solid var(--blue);
}
.btn-secondary:hover { background: #EAF3FF; }

/* ---- Hero ---- */
.hero {
  position: relative;
  min-height: 88vh;
  display: flex;
  align-items: flex-end;
  color: var(--white);
  background: linear-gradient(180deg, rgba(0,0,0,0.15) 0%, rgba(0,0,0,0.65) 100%), var(--charcoal) center/cover no-repeat;
}

.hero.placeholder-img {
  background-image: linear-gradient(180deg, rgba(0,0,0,0.1) 0%, rgba(0,0,0,0.7) 100%),
    repeating-linear-gradient(135deg, #2b2b2b 0 40px, #232323 40px 80px);
}

.hero-content {
  padding: 0 32px 80px;
  max-width: var(--max-width);
  margin: 0 auto;
  width: 100%;
}

.hero h1 {
  font-size: var(--h1);
  font-weight: 700;
  letter-spacing: -0.02em;
  line-height: 1.05;
  max-width: 620px;
}

.hero p {
  font-size: var(--body);
  font-weight: 400;
  color: rgba(255,255,255,0.9);
  margin-top: 20px;
  max-width: 560px;
}

.hero-actions {
  margin-top: 36px;
  display: flex;
  gap: 16px;
  align-items: center;
  flex-wrap: wrap;
}

.hero-checks {
  margin-top: 28px;
  display: flex;
  gap: 24px;
  flex-wrap: wrap;
  font-size: var(--small);
  color: rgba(255,255,255,0.85);
}

.hero-checks span::before {
  content: "✓ ";
  color: #4CD964;
  font-weight: 700;
}

/* ---- Section basics ---- */
section {
  padding: 100px 0;
}

.section-alt { background: var(--grey-bg); }

.section-head {
  text-align: center;
  max-width: 720px;
  margin: 0 auto 56px;
}

.eyebrow {
  font-size: var(--small);
  font-weight: 600;
  color: var(--blue);
  text-transform: uppercase;
  letter-spacing: 0.06em;
  margin-bottom: 12px;
}

h2 {
  font-size: var(--h2);
  font-weight: 700;
  letter-spacing: -0.02em;
  line-height: 1.1;
}

h3 {
  font-size: var(--h3);
  font-weight: 600;
  letter-spacing: -0.01em;
}

p { font-size: var(--body); color: var(--grey-text); }

.lede {
  font-size: var(--body);
  color: var(--grey-text);
  margin-top: 16px;
}

/* ---- Before / After ---- */
.compare {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 4px;
  border-radius: 20px;
  overflow: hidden;
}

.compare-img {
  aspect-ratio: 4/3;
  background: #ddd;
  display: flex;
  align-items: center;
  justify-content: center;
  color: var(--grey-text);
  font-size: var(--small);
  position: relative;
}

.compare-img.before {
  background: repeating-linear-gradient(135deg, #d8dbe0 0 30px, #ccd0d6 30px 60px);
}
.compare-img.after {
  background: repeating-linear-gradient(135deg, #dce9ff 0 30px, #cfe1ff 30px 60px);
}

.compare-tag {
  position: absolute;
  top: 16px;
  left: 16px;
  background: rgba(26,26,26,0.75);
  color: var(--white);
  font-size: 13px;
  font-weight: 600;
  padding: 6px 12px;
  border-radius: 980px;
  letter-spacing: 0.02em;
}

.compare-text {
  text-align: center;
  max-width: 640px;
  margin: 48px auto 0;
}

/* ---- Service cards ---- */
.service-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 24px;
}

.service-card {
  background: var(--grey-bg);
  border-radius: 24px;
  overflow: hidden;
  display: flex;
  flex-direction: column;
}

.service-img {
  aspect-ratio: 16/10;
  background: repeating-linear-gradient(135deg, #e4e7eb 0 30px, #dadde2 30px 60px);
}

.service-body {
  padding: 32px;
}

.service-body p { margin: 12px 0 20px; font-size: var(--small); }

/* ---- Pricing tables ---- */
.price-table-wrap {
  border: 1px solid var(--grey-line);
  border-radius: 20px;
  overflow: hidden;
  margin-bottom: 48px;
}

.price-table-head {
  padding: 24px 32px;
  background: var(--grey-bg);
  border-bottom: 1px solid var(--grey-line);
}

.price-table-head h3 { font-size: 20px; }

table.price-table {
  width: 100%;
  border-collapse: collapse;
}

table.price-table td {
  padding: 18px 32px;
  font-size: var(--small);
  border-top: 1px solid var(--grey-line);
}

table.price-table tr:first-child td { border-top: none; }

table.price-table td:last-child {
  text-align: right;
  font-weight: 600;
  white-space: nowrap;
  color: var(--charcoal);
}

table.price-table td:first-child { color: var(--charcoal); }

.price-note {
  max-width: 720px;
  margin: 0 auto 56px;
  text-align: center;
}

.price-note p { font-size: var(--small); }

/* ---- Package cards ---- */
.package-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 24px;
}

.package-card {
  border: 1.5px solid var(--grey-line);
  border-radius: 20px;
  padding: 32px;
  display: flex;
  flex-direction: column;
}

.package-card.best {
  border-color: var(--blue);
  position: relative;
}

.package-badge {
  position: absolute;
  top: -14px;
  left: 32px;
  background: var(--blue);
  color: var(--white);
  font-size: 13px;
  font-weight: 600;
  padding: 6px 14px;
  border-radius: 980px;
}

.package-card ul {
  list-style: none;
  margin: 20px 0;
  flex: 1;
}

.package-card li {
  font-size: var(--small);
  color: var(--charcoal);
  padding: 8px 0;
  border-top: 1px solid var(--grey-line);
}

.package-card li:first-child { border-top: none; }

.package-note {
  font-size: 14px;
  font-weight: 600;
  color: var(--blue);
  margin-bottom: 4px;
}

/* ---- Checklist ---- */
.checklist {
  list-style: none;
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 16px 32px;
  max-width: 720px;
  margin: 0 auto;
}

.checklist li {
  font-size: var(--body);
  color: var(--charcoal);
  padding-left: 32px;
  position: relative;
}

.checklist li::before {
  content: "✓";
  position: absolute;
  left: 0;
  color: #4CD964;
  font-weight: 700;
}

/* ---- Simple bullet list ---- */
.plain-list {
  max-width: 560px;
  margin: 0 auto;
  list-style: none;
}

.plain-list li {
  font-size: var(--body);
  color: var(--charcoal);
  padding: 10px 0;
  border-top: 1px solid var(--grey-line);
}

.plain-list li:first-child { border-top: none; }

/* ---- Why-us photo rows ---- */
.feature-row {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 64px;
  align-items: center;
}

.feature-row:not(:last-child) { margin-bottom: 96px; }

.feature-row.reverse .feature-img { order: 2; }

.feature-img {
  aspect-ratio: 4/3;
  border-radius: 20px;
  background: repeating-linear-gradient(135deg, #eceef1 0 30px, #e2e5e9 30px 60px);
}

/* ---- Compatibility form ---- */
.compat-box {
  background: var(--charcoal);
  color: var(--white);
  border-radius: 28px;
  padding: 72px 56px;
  text-align: center;
}

.compat-box h2 { color: var(--white); }
.compat-box p { color: rgba(255,255,255,0.75); }

.compat-box .btn-primary {
  margin-top: 32px;
}

/* ---- Reviews ---- */
.review-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 24px;
}

.review-card {
  border: 1px solid var(--grey-line);
  border-radius: 20px;
  padding: 28px;
}

.review-stars { color: var(--blue); font-size: 18px; margin-bottom: 12px; }
.review-card p { font-size: var(--small); color: var(--charcoal); }
.review-source { margin-top: 16px; font-size: 14px; color: var(--grey-text); }

/* ---- Portfolio ---- */
.portfolio-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 32px;
}

.portfolio-card {
  border-radius: 20px;
  overflow: hidden;
  border: 1px solid var(--grey-line);
}

.portfolio-thumb {
  aspect-ratio: 16/9;
  background: repeating-linear-gradient(135deg, #e4e7eb 0 30px, #dadde2 30px 60px);
}

.portfolio-info { padding: 24px; }

.portfolio-tags {
  display: flex;
  gap: 8px;
  flex-wrap: wrap;
  margin-top: 12px;
}

.tag {
  font-size: 13px;
  font-weight: 600;
  background: var(--grey-bg);
  color: var(--charcoal);
  padding: 6px 12px;
  border-radius: 980px;
}

/* ---- Contact form ---- */
.contact-form {
  max-width: 560px;
  margin: 0 auto;
  display: grid;
  gap: 20px;
}

.field label {
  display: block;
  font-size: var(--small);
  font-weight: 600;
  margin-bottom: 8px;
}

.field input,
.field select,
.field textarea {
  width: 100%;
  font-size: 17px;
  font-family: var(--font-body);
  padding: 14px 16px;
  border: 1.5px solid var(--grey-line);
  border-radius: 12px;
  background: var(--white);
}

.field input:focus,
.field select:focus,
.field textarea:focus {
  border-color: var(--blue);
}

.field-file {
  border: 1.5px dashed var(--grey-line);
  border-radius: 12px;
  padding: 24px;
  text-align: center;
  color: var(--grey-text);
  font-size: var(--small);
}

/* ---- Footer ---- */
.site-footer {
  background: var(--charcoal);
  color: rgba(255,255,255,0.6);
  padding: 56px 0;
}

.footer-grid {
  display: flex;
  justify-content: space-between;
  flex-wrap: wrap;
  gap: 32px;
}

.footer-links {
  display: flex;
  gap: 24px;
  list-style: none;
  font-size: 15px;
}

.footer-links a:hover { color: var(--white); }

.footer-bottom {
  margin-top: 40px;
  padding-top: 24px;
  border-top: 1px solid rgba(255,255,255,0.12);
  font-size: 14px;
  display: flex;
  justify-content: space-between;
  flex-wrap: wrap;
  gap: 12px;
}

/* ---- Placeholder note ---- */
.ph-note {
  position: absolute;
  bottom: 12px;
  right: 12px;
  background: rgba(0,0,0,0.6);
  color: #fff;
  font-size: 12px;
  padding: 4px 10px;
  border-radius: 6px;
}
.service-img, .feature-img, .portfolio-thumb, .compare-img { position: relative; }

/* ---- Reduced motion ---- */
@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
}

/* ---- Mobile ---- */
@media (max-width: 900px) {
  :root {
    --h1: 40px;
    --h2: 30px;
    --h3: 22px;
    --body: 18px;
  }

  .nav-links, .nav-cta { display: none; }
  .nav-toggle {
    display: block;
    background: none;
    border: none;
    font-size: 24px;
  }

  .nav-links.nav-open {
    display: flex;
    flex-direction: column;
    position: absolute;
    top: 64px;
    left: 0;
    right: 0;
    background: var(--white);
    border-bottom: 1px solid var(--grey-line);
    padding: 24px 32px;
    gap: 20px;
  }

  section { padding: 64px 0; }

  .service-grid,
  .feature-row,
  .compare,
  .review-grid,
  .portfolio-grid,
  .package-grid,
  .checklist {
    grid-template-columns: 1fr;
  }

  table.price-table, table.price-table tbody, table.price-table tr, table.price-table td {
    display: block;
    width: 100%;
  }

  table.price-table tr {
    padding: 14px 20px;
    border-top: 1px solid var(--grey-line);
  }

  table.price-table tr:first-child { border-top: none; }

  table.price-table td { padding: 0; border: none; }

  table.price-table td:first-child {
    font-weight: 600;
    margin-bottom: 4px;
  }

  table.price-table td:last-child { text-align: left; }

  .price-table-head { padding: 20px; }

  .feature-row.reverse .feature-img { order: 0; }

  .compat-box { padding: 48px 24px; }

  .hero { min-height: 80vh; }
  .hero-content { padding-bottom: 48px; }

  .btn { width: 100%; text-align: center; }
  .hero-actions { flex-direction: column; align-items: stretch; }
}
