:root {
  --ink: #102326;
  --muted: #5f7074;
  --line: #dbe7e5;
  --paper: #ffffff;
  --wash: #f4faf8;
  --teal: #0f766e;
  --teal-dark: #0a4f4b;
  --blue: #1d4ed8;
  --green: #16a34a;
  --mint: #ccfbf1;
  --gold: #f59e0b;
  --shadow: 0 22px 60px rgba(13, 54, 58, 0.14);
}

* {
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
}

body {
  margin: 0;
  color: var(--ink);
  background: var(--paper);
  font-family: Inter, ui-sans-serif, system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
  line-height: 1.5;
}

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

button,
input,
select {
  font: inherit;
}

.site-header {
  position: sticky;
  top: 0;
  z-index: 20;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 24px;
  min-height: 72px;
  padding: 14px clamp(18px, 4vw, 56px);
  background: rgba(255, 255, 255, 0.92);
  border-bottom: 1px solid var(--line);
  backdrop-filter: blur(18px);
}

.brand,
.header-actions,
.nav-links {
  display: flex;
  align-items: center;
}

.brand {
  gap: 10px;
  font-weight: 800;
  font-size: 1.05rem;
}

.brand img {
  display: block;
  width: min(210px, 46vw);
  height: 45px;
  object-fit: contain;
  object-position: left center;
  filter: brightness(0) saturate(100%) invert(30%) sepia(77%) saturate(785%) hue-rotate(133deg) brightness(92%) contrast(90%);
}

.nav-links {
  gap: 22px;
  color: #385053;
  font-size: 0.95rem;
}

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

.header-actions {
  gap: 10px;
}

.language-switch {
  display: inline-flex;
  align-items: center;
  gap: 5px;
  padding: 4px;
  border: 1px solid var(--line);
  border-radius: 999px;
  background: white;
}

.language-switch a {
  min-width: 38px;
  padding: 7px 9px;
  border-radius: 999px;
  color: var(--muted);
  font-size: 0.84rem;
  font-weight: 900;
  text-align: center;
}

.language-switch a[aria-current="true"] {
  color: white;
  background: var(--teal);
}

.button {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 44px;
  padding: 12px 18px;
  border: 1px solid transparent;
  border-radius: 8px;
  font-weight: 800;
  text-align: center;
  cursor: pointer;
}

.button-primary {
  color: white;
  background: var(--teal);
  box-shadow: 0 12px 30px rgba(15, 118, 110, 0.28);
}

.button-primary:hover {
  background: var(--teal-dark);
}

.button-secondary,
.button-ghost {
  color: var(--teal-dark);
  background: white;
  border-color: var(--line);
}

.button-ghost {
  background: rgba(255, 255, 255, 0.86);
}

.hero {
  position: relative;
  min-height: calc(100vh - 72px);
  overflow: hidden;
  background:
    linear-gradient(90deg, rgba(9, 42, 45, 0.9) 0%, rgba(9, 42, 45, 0.74) 38%, rgba(9, 42, 45, 0.1) 100%),
    url("assets/digitizecanada-hero-preview.png"),
    radial-gradient(circle at 72% 28%, #c7f9ee 0%, #eaf8ff 42%, #f8fbf9 100%);
  background-size: cover;
  background-position: center;
}

.hero-overlay {
  position: absolute;
  inset: 0;
  background:
    linear-gradient(180deg, rgba(255,255,255,0.04), rgba(255,255,255,0.16)),
    repeating-linear-gradient(90deg, rgba(255,255,255,0.04) 0 1px, transparent 1px 92px);
  pointer-events: none;
}

.hero-inner,
.section-inner {
  width: min(1160px, calc(100% - 36px));
  margin: 0 auto;
}

.hero-inner {
  position: relative;
  z-index: 1;
  display: grid;
  grid-template-columns: minmax(0, 1.02fr) minmax(320px, 0.62fr);
  gap: clamp(28px, 5vw, 78px);
  align-items: center;
  min-height: calc(100vh - 72px);
  padding: 72px 0 52px;
}

.hero-copy {
  max-width: 720px;
  color: white;
}

.eyebrow {
  margin: 0 0 12px;
  color: var(--teal);
  font-size: 0.78rem;
  font-weight: 900;
  text-transform: uppercase;
  letter-spacing: 0;
}

.hero .eyebrow {
  color: var(--mint);
}

h1,
h2,
h3,
p {
  overflow-wrap: anywhere;
}

h1,
h2,
h3 {
  margin: 0;
  line-height: 1.08;
  letter-spacing: 0;
}

h1 {
  max-width: 780px;
  font-size: clamp(2.55rem, 6vw, 5.65rem);
}

h2 {
  font-size: clamp(1.85rem, 4vw, 3.15rem);
}

h3 {
  font-size: 1.18rem;
}

.hero-lede {
  max-width: 660px;
  margin: 24px 0 0;
  color: rgba(255, 255, 255, 0.9);
  font-size: clamp(1.05rem, 2vw, 1.28rem);
}

.hero-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 12px;
  margin-top: 30px;
}

.trust-strip {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
  margin-top: 28px;
}

.trust-strip span {
  padding: 8px 10px;
  border: 1px solid rgba(255,255,255,0.22);
  border-radius: 8px;
  color: rgba(255,255,255,0.92);
  background: rgba(255,255,255,0.1);
}

.preview-panel {
  border: 1px solid rgba(255,255,255,0.42);
  border-radius: 8px;
  overflow: hidden;
  background: rgba(255,255,255,0.88);
  box-shadow: var(--shadow);
}

.browser-bar {
  display: flex;
  gap: 7px;
  padding: 14px;
  background: #edf7f5;
  border-bottom: 1px solid var(--line);
}

.browser-bar span {
  width: 10px;
  height: 10px;
  border-radius: 50%;
  background: var(--teal);
}

.browser-bar span:nth-child(2) {
  background: var(--gold);
}

.browser-bar span:nth-child(3) {
  background: var(--green);
}

.preview-card {
  padding: 24px;
}

.preview-label {
  margin: 0 0 8px;
  color: var(--muted);
  font-size: 0.82rem;
  font-weight: 800;
  text-transform: uppercase;
}

.preview-card h2 {
  font-size: 1.7rem;
}

.preview-card ul {
  display: grid;
  gap: 12px;
  padding: 0;
  margin: 22px 0 0;
  list-style: none;
}

.preview-card li {
  padding: 12px;
  border: 1px solid var(--line);
  border-radius: 8px;
  background: white;
}

.section {
  padding: clamp(64px, 9vw, 104px) 0;
}

.intro-band,
.muted {
  background: var(--wash);
}

.intro-grid,
.pricing-layout,
.form-layout,
.reviews-layout {
  display: grid;
  grid-template-columns: minmax(0, 0.9fr) minmax(0, 1.1fr);
  gap: clamp(28px, 5vw, 70px);
  align-items: center;
}

.intro-grid p,
.section-heading p,
.pricing-layout p,
.form-copy p {
  color: var(--muted);
  font-size: 1.05rem;
}

.section-heading {
  max-width: 760px;
  margin: 0 auto 34px;
  text-align: center;
}

.section-heading.align-left {
  margin: 0;
  text-align: left;
}

.tone-controls {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 10px;
  margin-bottom: 18px;
}

.tone-button {
  min-height: 56px;
  padding: 12px 14px;
  border: 1px solid var(--line);
  border-radius: 8px;
  color: var(--teal-dark);
  background: white;
  font-weight: 800;
  cursor: pointer;
}

.tone-button.active {
  color: white;
  background: var(--teal);
  border-color: var(--teal);
}

.tone-stage {
  display: grid;
  grid-template-columns: 1fr minmax(280px, 0.42fr);
  gap: 24px;
  align-items: center;
  padding: clamp(24px, 4vw, 38px);
  border: 1px solid var(--line);
  border-radius: 8px;
  background: white;
  box-shadow: var(--shadow);
}

.tone-kicker {
  margin: 0 0 10px;
  color: var(--teal);
  font-weight: 900;
}

.tone-stage h3 {
  font-size: clamp(1.6rem, 3vw, 2.55rem);
}

.tone-stage p {
  color: var(--muted);
  font-size: 1.08rem;
}

.tone-outcomes {
  display: grid;
  gap: 10px;
}

.tone-outcomes span {
  padding: 13px 14px;
  border-radius: 8px;
  background: var(--wash);
  color: var(--teal-dark);
  font-weight: 800;
}

.service-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 16px;
}

.service-card,
.process-grid article,
.review-card,
.price-card,
.preview-form {
  border: 1px solid var(--line);
  border-radius: 8px;
  background: white;
  box-shadow: 0 12px 32px rgba(15, 70, 74, 0.08);
}

.service-card {
  padding: 22px;
}

.service-card p,
.process-grid p,
.review-card figcaption,
.form-note {
  color: var(--muted);
}

.icon-box,
.step-number {
  display: grid;
  place-items: center;
  width: 44px;
  height: 44px;
  margin-bottom: 18px;
  border-radius: 8px;
  color: white;
  background: var(--teal);
  font-weight: 900;
}

.reviews-grid {
  display: grid;
  gap: 14px;
}

.review-card {
  margin: 0;
  padding: 18px;
}

.stars {
  color: var(--gold);
  font-size: 1rem;
  margin-bottom: 10px;
}

.review-card blockquote {
  margin: 0 0 12px;
  font-size: 1.02rem;
  font-weight: 700;
}

.process-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 16px;
}

.process-grid article {
  padding: 24px;
}

.pricing-band {
  color: white;
  background: linear-gradient(135deg, var(--teal-dark), #123b73 68%, #23513e);
}

.pricing-band .eyebrow,
.pricing-band p {
  color: rgba(255,255,255,0.82);
}

.price-card {
  padding: 28px;
  color: var(--ink);
}

.price-card p,
.price-card span {
  margin: 0;
  color: var(--muted);
}

.price-card strong {
  display: block;
  margin: 8px 0;
  color: var(--teal-dark);
  font-size: clamp(3rem, 7vw, 5.2rem);
  line-height: 1;
}

.final-cta {
  background:
    radial-gradient(circle at 12% 12%, rgba(204, 251, 241, 0.78), transparent 32%),
    linear-gradient(180deg, white, var(--wash));
}

.contact-list {
  margin-top: 24px;
  padding: 18px;
  border: 1px solid var(--line);
  border-radius: 8px;
  background: white;
}

.contact-list p {
  margin: 8px 0;
  font-size: 0.98rem;
}

.preview-form {
  display: grid;
  gap: 14px;
  padding: 24px;
}

.preview-form label {
  display: grid;
  gap: 7px;
  color: #294145;
  font-weight: 800;
}

.preview-form input,
.preview-form select {
  width: 100%;
  min-height: 46px;
  padding: 10px 12px;
  border: 1px solid #cbdcda;
  border-radius: 8px;
  background: white;
  color: var(--ink);
}

.form-row {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 12px;
}

.form-submit {
  width: 100%;
}

.form-note {
  margin: 0;
  font-size: 0.92rem;
}

.site-footer {
  display: flex;
  justify-content: space-between;
  gap: 16px;
  padding: 28px clamp(18px, 4vw, 56px);
  color: var(--muted);
  border-top: 1px solid var(--line);
}

.site-footer a {
  color: var(--teal-dark);
  font-weight: 800;
}

@media (max-width: 980px) {
  .nav-links {
    display: none;
  }

  .hero-inner,
  .intro-grid,
  .pricing-layout,
  .form-layout,
  .reviews-layout,
  .tone-stage {
    grid-template-columns: 1fr;
  }

  .hero {
    background:
      linear-gradient(180deg, rgba(9, 42, 45, 0.92) 0%, rgba(9, 42, 45, 0.78) 62%, rgba(9, 42, 45, 0.18) 100%),
      url("assets/digitizecanada-hero-preview.png"),
      radial-gradient(circle at 72% 28%, #c7f9ee 0%, #eaf8ff 42%, #f8fbf9 100%);
    background-size: cover;
    background-position: center;
  }

  .preview-panel {
    max-width: 560px;
  }

  .tone-controls,
  .service-grid {
    grid-template-columns: repeat(2, 1fr);
  }

  .process-grid {
    grid-template-columns: 1fr;
  }
}

@media (max-width: 640px) {
  .site-header {
    min-height: auto;
    align-items: flex-start;
    padding: 12px 16px;
  }

  .brand {
    font-size: 0.98rem;
  }

  .brand img {
    width: min(184px, 54vw);
    height: 40px;
  }

  .button-secondary {
    display: none;
  }

  .hero-inner {
    min-height: auto;
    padding: 56px 0 38px;
  }

  h1 {
    font-size: clamp(2.35rem, 13vw, 3.4rem);
  }

  .hero-actions,
  .trust-strip {
    display: grid;
  }

  .tone-controls,
  .service-grid,
  .form-row {
    grid-template-columns: 1fr;
  }

  .site-footer {
    display: grid;
  }
}
