@font-face {
  font-family: "DM Serif Text";
  src: url("/assets/fonts/dm-serif-text-400.ttf") format("truetype");
  font-style: normal;
  font-weight: 400;
  font-display: swap;
}

@font-face {
  font-family: "Source Sans 3";
  src: url("/assets/fonts/source-sans-3-400.ttf") format("truetype");
  font-style: normal;
  font-weight: 400;
  font-display: swap;
}

@font-face {
  font-family: "Source Sans 3";
  src: url("/assets/fonts/source-sans-3-600.ttf") format("truetype");
  font-style: normal;
  font-weight: 600;
  font-display: swap;
}

@font-face {
  font-family: "Source Sans 3";
  src: url("/assets/fonts/source-sans-3-700.ttf") format("truetype");
  font-style: normal;
  font-weight: 700;
  font-display: swap;
}

:root {
  color-scheme: light;
  --navy: #073763;
  --navy-dark: #052b4d;
  --ink: #111923;
  --muted: #52616d;
  --surface: #f3f7fb;
  --border: #b9c9d8;
  --success: #55b947;
  --white: #ffffff;
  --focus: #c86718;
  --shadow: 0 20px 50px rgba(7, 55, 99, 0.11);
  --wrap: min(1380px, calc(100% - 112px));
}

* { box-sizing: border-box; }

html {
  scroll-behavior: smooth;
  background: var(--white);
}

body {
  margin: 0;
  background: var(--white);
  color: var(--ink);
  font-family: "Source Sans 3", Arial, Helvetica, sans-serif;
  font-size: 18px;
  line-height: 1.5;
  text-rendering: optimizeLegibility;
}

img, svg { display: block; }
a { color: var(--navy); text-underline-offset: 0.18em; }
a:hover { color: var(--navy-dark); }
button, a { -webkit-tap-highlight-color: transparent; }

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

.wrap { width: var(--wrap); margin-inline: auto; }
.visually-hidden { position: absolute; width: 1px; height: 1px; padding: 0; margin: -1px; overflow: hidden; clip: rect(0, 0, 0, 0); white-space: nowrap; border: 0; }
.skip-link { position: fixed; z-index: 100; left: 20px; top: 16px; transform: translateY(-150%); padding: 10px 16px; color: var(--white); background: var(--navy); border-radius: 8px; }
.skip-link:focus { transform: none; }

.site-header {
  min-height: 126px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 32px;
}

.brand { display: inline-flex; width: 158px; height: 100px; align-items: center; overflow: hidden; }
.brand img { width: 158px; height: auto; }
.help-link { margin: 0; font-size: 16px; }
.help-link a { margin-left: 5px; font-weight: 600; }
.help-short { display: none; }
.header-actions { display: flex; align-items: center; justify-content: flex-end; gap: 22px; }
.language-switcher { display: inline-flex; align-items: center; gap: 4px; padding: 3px; border: 1px solid var(--border); border-radius: 9px; background: var(--surface); }
.language-button { min-width: 50px; height: 34px; display: inline-flex; align-items: center; justify-content: center; gap: 5px; border: 0; border-radius: 6px; padding: 0 7px; color: var(--muted); background: transparent; font: 700 12px/1 "Source Sans 3", Arial, sans-serif; cursor: pointer; transition: background-color 140ms ease, color 140ms ease, box-shadow 140ms ease; }
.language-button:hover { color: var(--navy); background: var(--white); }
.language-button[aria-pressed="true"] { color: var(--navy); background: var(--white); box-shadow: 0 1px 5px rgba(7, 55, 99, 0.16); }
.language-button .flag { font-size: 17px; line-height: 1; }

.hero {
  display: grid;
  grid-template-columns: minmax(0, 1.23fr) minmax(390px, 0.77fr);
  gap: clamp(64px, 8vw, 134px);
  align-items: center;
  min-height: 446px;
  padding-block: 28px 62px;
}

h1, h2, h3 { color: var(--navy); font-family: "DM Serif Text", Georgia, serif; font-weight: 400; }
.hero h1 { margin: 0; max-width: 790px; font-size: clamp(56px, 5.6vw, 84px); line-height: 0.98; letter-spacing: -0.025em; }
.hero-intro { max-width: 760px; margin: 28px 0 0; font-size: clamp(20px, 1.55vw, 24px); line-height: 1.38; }

.hero-actions { display: flex; align-items: stretch; flex-wrap: wrap; gap: 16px; margin-top: 32px; }
.button {
  appearance: none;
  min-height: 64px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 13px;
  border: 1px solid var(--navy);
  border-radius: 10px;
  padding: 16px 20px;
  font: 700 17px/1.15 "Source Sans 3", Arial, sans-serif;
  text-align: center;
  text-decoration: none;
  cursor: pointer;
  transition: transform 160ms ease, box-shadow 160ms ease, background-color 160ms ease, color 160ms ease;
}
.button svg { width: 22px; height: 22px; fill: none; stroke: currentColor; stroke-width: 1.9; stroke-linecap: round; stroke-linejoin: round; flex: 0 0 auto; }
.button .button-arrow { width: 20px; margin-left: 6px; }
.button-primary { min-width: 348px; color: var(--white); background: var(--navy); box-shadow: 0 9px 24px rgba(7, 55, 99, 0.18); }
.button-secondary { min-width: 280px; color: var(--navy); background: var(--white); }
.button:hover { transform: translateY(-2px); box-shadow: 0 12px 28px rgba(7, 55, 99, 0.18); }
.button-primary:hover { color: var(--white); background: var(--navy-dark); }
.button-secondary:hover { color: var(--navy); background: var(--surface); }
.button-compact { min-width: 0; min-height: 48px; padding: 12px 18px; font-size: 16px; }

.secure-note { display: flex; align-items: center; gap: 9px; margin: 18px 0 0; color: var(--muted); font-size: 15px; }
.secure-note svg { width: 17px; height: 17px; fill: none; stroke: var(--navy); stroke-width: 2; stroke-linecap: round; stroke-linejoin: round; }
.other-versions { margin-top: 8px; color: var(--muted); font-size: 14px; }
.other-versions summary { width: fit-content; cursor: pointer; }
.other-versions p { margin: 5px 0 0 18px; }

.support-visual { position: relative; min-height: 350px; display: grid; place-items: center; }
.brand-frame { position: absolute; inset: 6px 5% 6px 5%; border: 11px solid var(--navy); }
.brand-frame::before, .brand-frame::after { content: ""; position: absolute; z-index: 1; left: -18px; right: -18px; height: 42%; background: var(--white); }
.brand-frame::before { top: 17%; }
.brand-frame::after { bottom: 17%; }
.instruction-panel { position: relative; z-index: 2; width: min(95%, 440px); padding: 32px 34px 30px; border: 1px solid #8eafd0; border-radius: 12px; background: linear-gradient(135deg, #f7fbff 0%, #eef5fb 100%); box-shadow: var(--shadow); text-align: center; }
.instruction-icon { width: 72px; height: 72px; margin: 0 auto 18px; fill: none; stroke: var(--navy); stroke-width: 2.5; stroke-linecap: round; stroke-linejoin: round; }
.instruction-title { margin: 0; color: var(--navy); font: 400 28px/1.1 "DM Serif Text", Georgia, serif; }
.instruction-copy { max-width: 320px; margin: 10px auto 0; color: var(--muted); font-size: 17px; line-height: 1.4; }

.steps { border-block: 1px solid var(--border); }
.steps ol { display: grid; grid-template-columns: repeat(3, 1fr); list-style: none; margin: 0; padding: 28px 0; }
.steps li { display: grid; grid-template-columns: auto 1fr; gap: 18px; padding: 0 42px; }
.steps li:first-child { padding-left: 0; }
.steps li:last-child { padding-right: 0; }
.steps li + li { border-left: 1px solid var(--border); }
.step-number { color: var(--navy); font: 400 38px/1 "DM Serif Text", Georgia, serif; }
.steps h3 { margin: 0 0 4px; font-size: 29px; line-height: 1.05; }
.steps p { margin: 0; color: var(--muted); font-size: 16px; line-height: 1.35; }

.mac-section { margin-block: 36px; padding: 28px 36px 30px; border-radius: 12px; background: var(--surface); }
.mac-heading { display: flex; gap: 18px; align-items: flex-start; }
.mac-heading > svg { width: 29px; height: 29px; margin-top: 3px; fill: none; stroke: var(--navy); stroke-width: 1.8; stroke-linecap: round; stroke-linejoin: round; flex: 0 0 auto; }
.mac-heading h2 { margin: 0; font-size: 31px; line-height: 1.1; }
.mac-heading p { margin: 3px 0 0; color: var(--muted); font-size: 16px; }
.mac-details { margin: 12px 0 0 47px; }
.mac-details summary { width: fit-content; color: var(--navy); font-weight: 600; text-decoration: underline; text-underline-offset: 0.2em; cursor: pointer; }
.mac-content { margin-top: 18px; padding: 24px; border: 1px solid #a9bfd3; border-radius: 10px; background: var(--white); }
.mac-content h3 { margin: 0 0 12px; font-family: "Source Sans 3", Arial, sans-serif; font-size: 18px; font-weight: 700; }
.mac-buttons { display: flex; flex-wrap: wrap; gap: 10px; }
.small { margin: 10px 0 0; color: var(--muted); font-size: 14px; }
.mac-steps { margin: 22px 0 0; padding-left: 22px; }
.mac-steps li { padding-left: 5px; margin-top: 8px; }
.config-row { display: flex; align-items: center; flex-wrap: wrap; gap: 12px; margin-top: 22px; }
.copy-status { margin: 0; color: var(--navy); font-size: 15px; }

.site-footer { min-height: 91px; display: flex; align-items: center; justify-content: space-between; gap: 30px; border-top: 1px solid var(--border); color: var(--muted); font-size: 14px; }
.footer-brand { display: flex; align-items: center; gap: 15px; }
.footer-brand img { width: 62px; height: auto; }
.site-footer nav { display: flex; align-items: center; gap: 26px; }

.legal { max-width: 780px; padding-block: 52px 90px; }
.legal h1 { margin: 0 0 32px; font-size: 64px; line-height: 1; }
.legal h2 { margin: 35px 0 8px; font-size: 28px; }
.legal p { color: #303b45; }
.not-found { min-height: 100vh; display: grid; place-content: center; justify-items: start; max-width: 700px; }
.not-found img { width: 150px; height: auto; }
.not-found-top { width: min(100%, 570px); display: flex; align-items: center; justify-content: space-between; gap: 24px; }
.not-found h1 { margin: 20px 0 5px; font-size: 64px; }
.not-found p { margin: 0 0 25px; }

@media (max-width: 1120px) {
  :root { --wrap: min(100% - 64px, 980px); }
  .hero { grid-template-columns: 1fr 0.72fr; gap: 50px; }
  .hero h1 { font-size: clamp(52px, 6vw, 70px); }
  .hero-actions { flex-direction: column; align-items: flex-start; }
  .button-primary, .button-secondary { width: min(100%, 390px); }
  .support-visual { min-height: 330px; }
  .steps li { padding-inline: 25px; }
  .steps h3 { font-size: 24px; }
}

@media (max-width: 800px) {
  :root { --wrap: calc(100% - 40px); }
  body { font-size: 17px; }
  .site-header { min-height: 100px; }
  .brand { width: 126px; height: 86px; }
  .brand img { width: 126px; }
  .help-link { font-size: 14px; }
  .help-link { max-width: 160px; text-align: right; }
  .header-actions { flex-direction: column; align-items: flex-end; gap: 8px; }
  .hero { grid-template-columns: 1fr; gap: 30px; padding-block: 20px 46px; }
  .hero h1 { font-size: clamp(49px, 12vw, 68px); }
  .hero-intro { font-size: 20px; }
  .hero-actions { align-items: stretch; }
  .button-primary, .button-secondary { width: 100%; min-width: 0; }
  .support-visual { min-height: 270px; }
  .brand-frame { inset-inline: 10%; border-width: 9px; }
  .instruction-panel { width: min(86%, 430px); padding: 28px 25px; }
  .steps ol { grid-template-columns: 1fr; padding-block: 10px; }
  .steps li { padding: 22px 0; }
  .steps li + li { border-left: 0; border-top: 1px solid var(--border); }
  .mac-section { width: 100%; margin-block: 0; border-radius: 0; padding: 32px 20px; }
  .mac-details { margin-left: 0; }
  .mac-content { padding: 20px; }
  .site-footer { padding-block: 22px; align-items: flex-start; flex-direction: column; }
  .site-footer nav { flex-direction: column; align-items: flex-start; gap: 8px; }
}

@media (max-width: 470px) {
  :root { --wrap: calc(100% - 28px); }
  .site-header { gap: 12px; }
  .help-link { max-width: none; }
  .help-label, .help-email { display: none; }
  .help-short { display: inline; }
  .language-button { min-width: 46px; }
  .hero h1 { font-size: 44px; }
  .hero-intro { font-size: 18px; }
  .button { padding-inline: 16px; font-size: 16px; }
  .support-visual { min-height: 245px; }
  .brand-frame { inset-inline: 4%; }
  .instruction-panel { width: 91%; }
  .mac-heading { gap: 12px; }
  .mac-heading h2 { font-size: 27px; }
  .legal h1, .not-found h1 { font-size: 46px; }
}

@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  *, *::before, *::after { transition-duration: 0.01ms !important; }
}

@media print {
  .hero-actions, .mac-section, .other-versions { display: none; }
}
