/* ==========================================================================
   LocaleReady — design system
   Palette, spacing and typography follow the approved specification exactly.
   ========================================================================== */

:root {
  --navy: #101d32;
  --navy-secondary: #172943;
  --code-panel: #20334e;
  --green: #10b981;
  --green-hover: #059669;
  --white: #ffffff;
  --section-bg: #f4f7fa;
  --text: #172033;
  --muted: #64748b;
  --border: #e2e8f0;
  --success-bg: #ecfdf5;
  --success-text: #047857;
  --error-bg: #fff1f2;
  --error-text: #be123c;
  --footer-bg: #0b1627;
  --star: #f59e0b;

  --container: 1280px;
  --pad: 24px;
  --radius-card: 20px;
  --radius-btn: 10px;

  --shadow-sm: 0 1px 2px rgba(16, 29, 50, 0.06);
  --shadow-md: 0 12px 32px rgba(16, 29, 50, 0.08);
  --shadow-lg: 0 32px 64px rgba(6, 15, 28, 0.35);

  --mono: ui-monospace, SFMono-Regular, "SF Mono", Menlo, Consolas, "Liberation Mono", monospace;
}

/* --------------------------------------------------------------------------
   Reset
   -------------------------------------------------------------------------- */

*,
*::before,
*::after {
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
  scroll-padding-top: 88px;
  -webkit-text-size-adjust: 100%;
}

body {
  margin: 0;
  font-family: Inter, Arial, Helvetica, sans-serif;
  font-size: 16px;
  line-height: 1.62;
  color: var(--text);
  background: var(--white);
  -webkit-font-smoothing: antialiased;
  overflow-x: hidden;
}

h1,
h2,
h3,
h4,
p,
ul,
ol,
figure {
  margin: 0;
}

ul,
ol {
  padding: 0;
  list-style: none;
}

a {
  color: inherit;
  text-decoration: none;
}

img,
svg {
  display: block;
  max-width: 100%;
}

button,
input,
select,
textarea {
  font: inherit;
  color: inherit;
}

:focus-visible {
  outline: 3px solid rgba(16, 185, 129, 0.5);
  outline-offset: 2px;
  border-radius: 6px;
}

::selection {
  background: rgba(16, 185, 129, 0.22);
}

/* --------------------------------------------------------------------------
   Layout primitives
   -------------------------------------------------------------------------- */

.container {
  width: 100%;
  max-width: var(--container);
  margin-inline: auto;
  padding-inline: var(--pad);
}

.section {
  padding-block: 96px;
}

.section--muted {
  background: var(--section-bg);
}

.section--dark {
  background: var(--navy);
  color: var(--white);
}

.section-head {
  max-width: 760px;
  margin: 0 auto 56px;
  text-align: center;
}

.eyebrow {
  font-size: 12.5px;
  font-weight: 700;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: var(--muted);
  margin-bottom: 14px;
}

.eyebrow--green {
  color: var(--green);
}

.section-title {
  font-size: clamp(1.85rem, 2.9vw, 2.5rem);
  line-height: 1.18;
  letter-spacing: -0.02em;
  font-weight: 700;
  color: var(--text);
}

.section-title--light {
  color: var(--white);
}

.section-lead {
  margin-top: 18px;
  font-size: 17px;
  color: var(--muted);
}

.section-lead--light {
  color: rgba(255, 255, 255, 0.74);
}

.accent {
  color: var(--green);
}

.check {
  color: var(--green);
  font-weight: 700;
}

.skip-link {
  position: absolute;
  left: 16px;
  top: -60px;
  z-index: 200;
  background: var(--green);
  color: var(--white);
  padding: 10px 16px;
  border-radius: var(--radius-btn);
  font-weight: 600;
  transition: top 0.15s ease;
}

.skip-link:focus {
  top: 12px;
}

/* --------------------------------------------------------------------------
   Buttons
   -------------------------------------------------------------------------- */

.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  padding: 12px 22px;
  border: 1px solid transparent;
  border-radius: var(--radius-btn);
  font-size: 15px;
  font-weight: 600;
  line-height: 1.2;
  cursor: pointer;
  white-space: nowrap;
  transition: background-color 0.18s ease, border-color 0.18s ease,
    color 0.18s ease, box-shadow 0.18s ease;
}

.btn-primary {
  background: var(--green);
  color: var(--white);
  box-shadow: var(--shadow-sm);
}

.btn-primary:hover {
  background: var(--green-hover);
}

.btn-outline {
  background: var(--white);
  color: var(--text);
  border-color: var(--border);
}

.btn-outline:hover {
  background: var(--section-bg);
  border-color: #cbd5e1;
}

.btn-ghost {
  background: transparent;
  color: rgba(255, 255, 255, 0.92);
  border-color: rgba(255, 255, 255, 0.28);
}

.btn-ghost:hover {
  background: rgba(255, 255, 255, 0.08);
  border-color: rgba(255, 255, 255, 0.42);
}

.btn-lg {
  padding: 15px 28px;
  font-size: 16px;
}

.btn-block {
  width: 100%;
}

.btn[disabled] {
  opacity: 0.6;
  cursor: not-allowed;
}

/* --------------------------------------------------------------------------
   01 · Header
   -------------------------------------------------------------------------- */

.site-header {
  position: sticky;
  top: 0;
  z-index: 100;
  background: var(--white);
  border-bottom: 1px solid var(--border);
}

.header-inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 24px;
  min-height: 72px;
}

.brand {
  font-size: 21px;
  font-weight: 800;
  letter-spacing: -0.02em;
  color: var(--navy);
  white-space: nowrap;
}

.brand-accent {
  color: var(--green);
}

.brand-dot {
  color: var(--navy);
}

.primary-nav {
  display: flex;
  align-items: center;
  gap: 30px;
}

.nav-link {
  position: relative;
  font-size: 15px;
  font-weight: 500;
  color: var(--muted);
  padding: 6px 0;
  transition: color 0.16s ease;
}

.nav-link:hover,
.nav-link:focus-visible {
  color: var(--navy);
}

.nav-cta {
  margin-left: 6px;
}

.nav-toggle {
  display: none;
  flex-direction: column;
  justify-content: center;
  gap: 5px;
  width: 42px;
  height: 42px;
  padding: 0 9px;
  background: var(--white);
  border: 1px solid var(--border);
  border-radius: 10px;
  cursor: pointer;
}

.nav-toggle-bar {
  display: block;
  height: 2px;
  width: 100%;
  background: var(--navy);
  border-radius: 2px;
  transition: transform 0.2s ease, opacity 0.2s ease;
}

.nav-toggle[aria-expanded="true"] .nav-toggle-bar:nth-child(1) {
  transform: translateY(7px) rotate(45deg);
}

.nav-toggle[aria-expanded="true"] .nav-toggle-bar:nth-child(2) {
  opacity: 0;
}

.nav-toggle[aria-expanded="true"] .nav-toggle-bar:nth-child(3) {
  transform: translateY(-7px) rotate(-45deg);
}

/* --------------------------------------------------------------------------
   02 · Hero
   -------------------------------------------------------------------------- */

.hero {
  background: radial-gradient(1100px 520px at 82% -12%, var(--navy-secondary) 0%, var(--navy) 58%);
  color: var(--white);
  padding-block: 84px 100px;
}

.hero-grid {
  display: grid;
  grid-template-columns: minmax(0, 1.02fr) minmax(0, 0.98fr);
  align-items: center;
  gap: 64px;
}

.hero-title {
  font-size: clamp(2.15rem, 4vw, 3.5rem);
  line-height: 1.1;
  letter-spacing: -0.025em;
  font-weight: 800;
  color: var(--white);
  margin-bottom: 22px;
}

.hero-lead {
  font-size: 18px;
  line-height: 1.65;
  color: rgba(255, 255, 255, 0.76);
  max-width: 34em;
}

.hero-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 14px;
  margin-top: 34px;
}

.trust-points {
  display: flex;
  flex-wrap: wrap;
  gap: 12px 26px;
  margin-top: 34px;
  font-size: 14px;
  color: rgba(255, 255, 255, 0.68);
}

.trust-points li {
  display: flex;
  align-items: center;
  gap: 8px;
}

.trust-points li::before {
  content: "✓";
  color: var(--green);
  font-weight: 700;
}

/* Code editor card ---------------------------------------------------------*/

.code-card {
  background: var(--code-panel);
  border: 1px solid rgba(255, 255, 255, 0.09);
  border-radius: 18px;
  overflow: hidden;
  box-shadow: var(--shadow-lg);
}

.code-card--flat {
  box-shadow: 0 24px 48px rgba(6, 15, 28, 0.28);
}

.code-card-bar {
  display: flex;
  align-items: center;
  gap: 12px;
  padding: 13px 18px;
  background: rgba(9, 20, 36, 0.42);
  border-bottom: 1px solid rgba(255, 255, 255, 0.07);
}

.window-dots {
  display: flex;
  gap: 6px;
}

.window-dots i {
  width: 9px;
  height: 9px;
  border-radius: 50%;
  background: rgba(255, 255, 255, 0.22);
}

.code-filename {
  font-family: var(--mono);
  font-size: 12.5px;
  color: rgba(255, 255, 255, 0.72);
}

.code-badge {
  margin-left: auto;
  font-size: 11px;
  font-weight: 600;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  color: var(--green);
  border: 1px solid rgba(16, 185, 129, 0.35);
  background: rgba(16, 185, 129, 0.1);
  border-radius: 999px;
  padding: 3px 10px;
}

.code-card-body {
  display: grid;
  grid-template-columns: 1fr;
  gap: 2px;
}

.code-block {
  padding: 18px 20px 20px;
}

.code-block + .code-block {
  border-top: 1px solid rgba(255, 255, 255, 0.07);
}

.code-label {
  display: block;
  font-family: var(--mono);
  font-size: 11px;
  letter-spacing: 0.12em;
  color: rgba(255, 255, 255, 0.42);
  margin-bottom: 10px;
}

.code-label--accent {
  color: rgba(16, 185, 129, 0.85);
}

pre.code {
  margin: 0;
  overflow-x: auto;
  font-family: var(--mono);
  font-size: 13.5px;
  line-height: 1.72;
  color: #e7eef7;
  tab-size: 2;
}

pre.code code {
  font-family: inherit;
  white-space: pre;
}

.tok-k {
  color: #8fa6c4;
}

.tok-s {
  color: #e7eef7;
}

.tok-v {
  color: var(--green);
  font-weight: 600;
}

.tok-p {
  color: #5e7391;
}

.validation-list {
  display: grid;
  gap: 9px;
  padding: 18px 20px 20px;
  border-top: 1px solid rgba(255, 255, 255, 0.07);
  background: rgba(16, 185, 129, 0.06);
  font-size: 13.5px;
  color: rgba(255, 255, 255, 0.82);
}

.validation-list li {
  display: flex;
  align-items: center;
  gap: 9px;
}

.validation-strip {
  display: flex;
  align-items: center;
  gap: 9px;
  padding: 14px 20px;
  border-top: 1px solid rgba(255, 255, 255, 0.07);
  background: rgba(16, 185, 129, 0.09);
  color: var(--green);
  font-size: 13.5px;
  font-weight: 600;
}

/* --------------------------------------------------------------------------
   03 · Formats bar
   -------------------------------------------------------------------------- */

.formats-bar {
  background: var(--white);
  border-bottom: 1px solid var(--border);
  padding-block: 22px;
}

.formats-inner {
  display: flex;
  align-items: center;
  gap: 28px;
}

.formats-label {
  font-size: 12px;
  font-weight: 700;
  letter-spacing: 0.13em;
  text-transform: uppercase;
  color: var(--muted);
  padding-right: 28px;
  border-right: 1px solid var(--border);
  white-space: nowrap;
}

.formats-list {
  display: flex;
  flex-wrap: wrap;
  gap: 10px 30px;
  font-size: 13.5px;
  color: var(--muted);
}

/* --------------------------------------------------------------------------
   04 · Comparison
   -------------------------------------------------------------------------- */

.compare-grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 28px;
}

.compare-card {
  background: var(--white);
  border: 1px solid var(--border);
  border-radius: var(--radius-card);
  padding: 28px;
  box-shadow: var(--shadow-sm);
}

.compare-head {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  margin-bottom: 20px;
}

.compare-head h3 {
  font-size: 20px;
  font-weight: 700;
  letter-spacing: -0.01em;
}

.compare-card--bad .compare-head h3 {
  color: var(--error-text);
}

.compare-card--good .compare-head h3 {
  color: var(--success-text);
}

.pill {
  font-size: 10.5px;
  font-weight: 700;
  letter-spacing: 0.09em;
  text-transform: uppercase;
  padding: 5px 10px;
  border-radius: 999px;
  white-space: nowrap;
}

.pill--error {
  background: var(--error-bg);
  color: var(--error-text);
  border: 1px solid rgba(190, 18, 60, 0.18);
}

.pill--success {
  background: var(--success-bg);
  color: var(--success-text);
  border: 1px solid rgba(4, 120, 87, 0.18);
}

.compare-example {
  background: var(--error-bg);
  border-radius: 14px;
  padding: 18px 20px;
}

.compare-card--good .compare-example {
  background: var(--success-bg);
}

.compare-example + .compare-example {
  margin-top: 14px;
}

.compare-source {
  font-size: 13.5px;
  color: var(--muted);
  margin-bottom: 6px;
}

.compare-source strong {
  color: var(--text);
  font-weight: 600;
}

.compare-result {
  display: flex;
  align-items: center;
  gap: 10px;
  font-size: 22px;
  font-weight: 700;
  letter-spacing: 0.01em;
  color: var(--error-text);
  margin-bottom: 6px;
}

.compare-card--good .compare-result {
  color: var(--success-text);
}

.mark {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 22px;
  height: 22px;
  border-radius: 50%;
  font-size: 13px;
  font-weight: 700;
  flex: none;
}

.mark--bad {
  background: rgba(190, 18, 60, 0.12);
  color: var(--error-text);
}

.mark--good {
  background: rgba(4, 120, 87, 0.12);
  color: var(--success-text);
}

.compare-note {
  font-size: 14px;
  color: var(--muted);
}

/* --------------------------------------------------------------------------
   05 · Killer feature
   -------------------------------------------------------------------------- */

.feature-grid {
  display: grid;
  grid-template-columns: minmax(0, 1fr) minmax(0, 1fr);
  align-items: center;
  gap: 64px;
}

.feature-checks {
  display: grid;
  gap: 14px;
  margin-top: 30px;
  font-size: 14.5px;
  color: rgba(255, 255, 255, 0.8);
}

.feature-checks li {
  display: flex;
  align-items: flex-start;
  gap: 10px;
  line-height: 1.6;
}

.feature-checks .check {
  margin-top: 1px;
}

.feature-checks code {
  font-family: var(--mono);
  font-size: 13px;
  color: var(--green);
  background: rgba(16, 185, 129, 0.1);
  border: 1px solid rgba(16, 185, 129, 0.2);
  border-radius: 6px;
  padding: 1px 6px;
}

/* --------------------------------------------------------------------------
   06 · How it works
   -------------------------------------------------------------------------- */

.steps-grid {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 24px;
}

.step-card {
  background: var(--white);
  border: 1px solid var(--border);
  border-radius: var(--radius-card);
  padding: 30px 28px;
  box-shadow: var(--shadow-sm);
}

.step-icon {
  display: grid;
  place-items: center;
  width: 46px;
  height: 46px;
  border-radius: 12px;
  background: var(--success-bg);
  color: var(--green);
}

.step-icon svg {
  width: 23px;
  height: 23px;
}

.step-number {
  margin-top: 22px;
  font-size: 11.5px;
  font-weight: 700;
  letter-spacing: 0.13em;
  text-transform: uppercase;
  color: var(--muted);
}

.step-card h3 {
  margin-top: 8px;
  font-size: 20px;
  font-weight: 700;
  letter-spacing: -0.01em;
}

.step-card p:not(.step-number) {
  margin-top: 10px;
  font-size: 15px;
  color: var(--muted);
}

/* --------------------------------------------------------------------------
   07 · Pricing
   -------------------------------------------------------------------------- */

.pricing-grid {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 24px;
  align-items: stretch;
}

.price-card {
  position: relative;
  display: flex;
  flex-direction: column;
  background: var(--white);
  border: 1px solid var(--border);
  border-radius: var(--radius-card);
  padding: 32px 28px;
  box-shadow: var(--shadow-sm);
}

.price-card--featured {
  border-color: var(--green);
  box-shadow: 0 0 0 1px var(--green), 0 18px 44px rgba(16, 185, 129, 0.13);
}

.price-badge {
  position: absolute;
  top: -13px;
  left: 28px;
  background: var(--green);
  color: var(--white);
  font-size: 10.5px;
  font-weight: 700;
  letter-spacing: 0.11em;
  padding: 6px 12px;
  border-radius: 999px;
}

.price-name {
  font-size: 13px;
  font-weight: 700;
  letter-spacing: 0.13em;
  color: var(--muted);
}

.price-desc {
  margin-top: 8px;
  font-size: 15px;
  color: var(--muted);
}

.price-amount {
  display: flex;
  align-items: baseline;
  flex-wrap: wrap;
  gap: 8px;
  margin: 20px 0 24px;
  padding-bottom: 24px;
  border-bottom: 1px solid var(--border);
}

.price-value {
  font-size: 40px;
  font-weight: 800;
  letter-spacing: -0.025em;
  line-height: 1.1;
}

.price-suffix {
  font-size: 14px;
  color: var(--muted);
}

.price-features {
  display: grid;
  gap: 12px;
  font-size: 15px;
  margin-bottom: 28px;
}

.price-features li {
  display: flex;
  align-items: flex-start;
  gap: 10px;
  line-height: 1.55;
}

.price-features li::before {
  content: "✓";
  color: var(--green);
  font-weight: 700;
  flex: none;
}

.price-card .btn {
  margin-top: auto;
}

.pricing-note {
  margin-top: 40px;
  text-align: center;
  font-size: 15px;
  color: var(--muted);
}

/* --------------------------------------------------------------------------
   08 · Testimonials
   -------------------------------------------------------------------------- */

.testimonial-grid {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 24px;
}

.testimonial-card {
  display: flex;
  flex-direction: column;
  background: var(--white);
  border: 1px solid var(--border);
  border-radius: var(--radius-card);
  padding: 28px;
  box-shadow: var(--shadow-sm);
}

.rating {
  display: flex;
  align-items: center;
  gap: 8px;
  color: var(--star);
  font-size: 15px;
  letter-spacing: 1.5px;
}

.rating-value {
  font-size: 13px;
  font-weight: 600;
  letter-spacing: 0;
  color: var(--muted);
}

.testimonial-card h3 {
  margin-top: 16px;
  font-size: 19px;
  font-weight: 700;
  line-height: 1.4;
  letter-spacing: -0.01em;
}

.testimonial-body {
  margin-top: 12px;
  font-size: 15px;
  color: var(--muted);
}

.testimonial-author {
  margin-top: 20px;
  padding-top: 16px;
  border-top: 1px solid var(--border);
  font-size: 12.5px;
  font-weight: 700;
  letter-spacing: 0.09em;
  text-transform: uppercase;
  color: var(--text);
}

.testimonials-note {
  max-width: 680px;
  margin: 32px auto 0;
  text-align: center;
  font-size: 13px;
  line-height: 1.6;
  color: var(--muted);
}

/* --------------------------------------------------------------------------
   09 · Contact
   -------------------------------------------------------------------------- */

.section--contact {
  padding-block: 96px;
}

.contact-grid {
  display: grid;
  grid-template-columns: minmax(0, 0.92fr) minmax(0, 1.08fr);
  align-items: start;
  gap: 64px;
}

.contact-checks {
  display: grid;
  gap: 13px;
  margin-top: 30px;
  font-size: 15px;
  color: rgba(255, 255, 255, 0.82);
}

.contact-checks li {
  display: flex;
  align-items: center;
  gap: 10px;
}

.contact-direct {
  margin-top: 30px;
  font-size: 14.5px;
  color: rgba(255, 255, 255, 0.6);
  overflow-wrap: anywhere;
}

.contact-direct a {
  color: var(--green);
  font-weight: 600;
}

.contact-direct a:hover {
  color: var(--green-hover);
  text-decoration: underline;
}

.contact-form-card {
  background: var(--white);
  border-radius: var(--radius-card);
  padding: 32px;
  box-shadow: var(--shadow-lg);
}

.form-title {
  font-size: 21px;
  font-weight: 700;
  letter-spacing: -0.01em;
  margin-bottom: 22px;
}

.field {
  margin-bottom: 16px;
}

.field label {
  display: block;
  font-size: 13px;
  font-weight: 600;
  color: var(--text);
  margin-bottom: 6px;
}

.field input,
.field select,
.field textarea {
  width: 100%;
  padding: 12px 14px;
  background: var(--white);
  border: 1px solid var(--border);
  border-radius: var(--radius-btn);
  font-size: 15px;
  color: var(--text);
  transition: border-color 0.16s ease, box-shadow 0.16s ease;
  appearance: none;
}

.field textarea {
  resize: vertical;
  min-height: 120px;
  line-height: 1.6;
}

.field input::placeholder,
.field textarea::placeholder {
  color: #94a3b8;
}

.field input:focus,
.field select:focus,
.field textarea:focus {
  outline: none;
  border-color: var(--green);
  box-shadow: 0 0 0 3px rgba(16, 185, 129, 0.16);
}

.select-wrap {
  position: relative;
}

.select-wrap::after {
  content: "";
  position: absolute;
  right: 16px;
  top: 50%;
  width: 8px;
  height: 8px;
  border-right: 2px solid var(--muted);
  border-bottom: 2px solid var(--muted);
  transform: translateY(-70%) rotate(45deg);
  pointer-events: none;
}

.field--invalid input,
.field--invalid select,
.field--invalid textarea {
  border-color: var(--error-text);
  background: var(--error-bg);
}

.field-error {
  margin-top: 6px;
  font-size: 12.5px;
  color: var(--error-text);
}

.hp-field {
  position: absolute;
  left: -9999px;
  width: 1px;
  height: 1px;
  overflow: hidden;
}

.form-note {
  margin-top: 14px;
  font-size: 12.5px;
  line-height: 1.6;
  color: var(--muted);
}

.form-note a {
  color: var(--green);
  font-weight: 600;
  text-decoration: underline;
}

.form-status {
  margin-top: 14px;
  font-size: 14px;
  line-height: 1.55;
}

.form-status:not(:empty) {
  padding: 13px 15px;
  border-radius: var(--radius-btn);
}

.form-status.is-success {
  background: var(--success-bg);
  color: var(--success-text);
  border: 1px solid rgba(4, 120, 87, 0.18);
}

.form-status.is-error {
  background: var(--error-bg);
  color: var(--error-text);
  border: 1px solid rgba(190, 18, 60, 0.18);
}

/* --------------------------------------------------------------------------
   10 · Footer
   -------------------------------------------------------------------------- */

.site-footer {
  background: var(--footer-bg);
  color: rgba(255, 255, 255, 0.7);
  padding-block: 56px 28px;
}

.footer-inner {
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  flex-wrap: wrap;
  gap: 32px;
}

.brand--footer {
  color: var(--white);
}

.footer-tagline {
  margin-top: 10px;
  font-size: 14px;
  color: rgba(255, 255, 255, 0.58);
}

.footer-nav {
  display: flex;
  flex-wrap: wrap;
  gap: 12px 26px;
  font-size: 14px;
}

.footer-nav a {
  color: rgba(255, 255, 255, 0.72);
  transition: color 0.16s ease;
}

.footer-nav a:hover {
  color: var(--white);
}

.footer-legal {
  margin-top: 40px;
  padding-top: 22px;
  border-top: 1px solid rgba(255, 255, 255, 0.1);
  font-size: 13px;
  color: rgba(255, 255, 255, 0.46);
}

/* --------------------------------------------------------------------------
   Legal pages
   -------------------------------------------------------------------------- */

.legal-body {
  margin-top: 36px;
  font-size: 15.5px;
  color: var(--muted);
}

.legal-body h2 {
  margin-top: 34px;
  margin-bottom: 10px;
  font-size: 20px;
  font-weight: 700;
  color: var(--text);
}

.legal-body p + p {
  margin-top: 12px;
}

.legal-body a {
  color: var(--green);
  font-weight: 600;
  text-decoration: underline;
  overflow-wrap: anywhere;
}

/* --------------------------------------------------------------------------
   Responsive
   -------------------------------------------------------------------------- */

@media (max-width: 1080px) {
  .hero-grid,
  .feature-grid,
  .contact-grid {
    gap: 44px;
  }

  .nav-link {
    font-size: 14.5px;
  }

  .primary-nav {
    gap: 22px;
  }
}

@media (max-width: 960px) {
  .nav-toggle {
    display: flex;
  }

  .primary-nav {
    position: absolute;
    top: 100%;
    left: 0;
    right: 0;
    display: none;
    flex-direction: column;
    align-items: stretch;
    gap: 4px;
    padding: 14px var(--pad) 22px;
    background: var(--white);
    border-bottom: 1px solid var(--border);
    box-shadow: 0 16px 28px rgba(16, 29, 50, 0.08);
  }

  .primary-nav.is-open {
    display: flex;
  }

  .nav-link {
    padding: 12px 4px;
    font-size: 16px;
    border-bottom: 1px solid var(--border);
  }

  .nav-link:last-of-type {
    border-bottom: 0;
  }

  .nav-cta {
    margin: 12px 0 0;
    width: 100%;
  }

  .hero {
    padding-block: 64px 76px;
  }

  .hero-grid,
  .feature-grid,
  .contact-grid {
    grid-template-columns: minmax(0, 1fr);
    gap: 44px;
  }

  .hero-lead {
    max-width: none;
  }

  .section {
    padding-block: 78px;
  }

  .section-head {
    margin-bottom: 44px;
  }

  .steps-grid {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }

  .pricing-grid {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }

  .testimonial-grid {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }
}

@media (max-width: 768px) {
  .compare-grid,
  .steps-grid,
  .pricing-grid,
  .testimonial-grid {
    grid-template-columns: minmax(0, 1fr);
  }

  .formats-inner {
    flex-direction: column;
    align-items: flex-start;
    gap: 12px;
  }

  .formats-label {
    padding-right: 0;
    border-right: 0;
  }

  .formats-list {
    gap: 8px 20px;
  }

  .price-card--featured {
    order: -1;
  }

  .contact-form-card {
    padding: 26px;
  }
}

@media (max-width: 560px) {
  :root {
    --pad: 18px;
  }

  body {
    font-size: 15.5px;
  }

  .hero {
    padding-block: 52px 62px;
  }

  .hero-title {
    font-size: clamp(1.95rem, 8.4vw, 2.5rem);
  }

  .hero-lead {
    font-size: 16px;
  }

  .hero-actions {
    flex-direction: column;
    align-items: stretch;
    gap: 12px;
    margin-top: 26px;
  }

  .hero-actions .btn {
    width: 100%;
  }

  .trust-points {
    gap: 10px 18px;
    font-size: 13px;
    margin-top: 26px;
  }

  .section {
    padding-block: 62px;
  }

  .section-title {
    font-size: clamp(1.6rem, 7vw, 2rem);
  }

  .section-lead {
    font-size: 15.5px;
  }

  .eyebrow {
    font-size: 11.5px;
  }

  .code-block {
    padding: 15px 15px 17px;
  }

  pre.code {
    font-size: 12px;
    line-height: 1.7;
  }

  .code-card-bar {
    padding: 11px 14px;
  }

  .validation-list,
  .validation-strip {
    padding: 14px 15px;
    font-size: 12.5px;
  }

  .compare-card,
  .step-card,
  .price-card,
  .testimonial-card {
    padding: 24px 22px;
  }

  .price-value {
    font-size: 34px;
  }

  .contact-form-card {
    padding: 22px;
  }

  .footer-inner {
    flex-direction: column;
    gap: 26px;
  }
}

@media (prefers-reduced-motion: reduce) {
  html {
    scroll-behavior: auto;
  }

  *,
  *::before,
  *::after {
    transition-duration: 0.01ms !important;
    animation-duration: 0.01ms !important;
  }
}

/* ==========================================================================
   WhatsApp buttons — same design as northsources.com (user-approved addition)
   ========================================================================== */

.btn-wa {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  background: #25d366;
  color: #fff !important;
  border: none;
  border-radius: 9px;
  padding: 8px 13px;
  font-size: 13px;
  font-weight: 700;
  text-decoration: none;
  box-shadow: 0 2px 8px rgba(37, 211, 102, 0.35);
  transition: transform 0.15s, box-shadow 0.15s;
  white-space: nowrap;
}

.btn-wa:hover {
  transform: translateY(-1px);
  box-shadow: 0 4px 14px rgba(37, 211, 102, 0.5);
}

#wa-float {
  position: fixed;
  right: 18px;
  bottom: 20px;
  z-index: 9999;
  display: flex;
  align-items: center;
  gap: 9px;
  background: #25d366;
  color: #fff !important;
  text-decoration: none;
  font-weight: 700;
  font-size: 14px;
  padding: 12px 18px 12px 14px;
  border-radius: 999px;
  box-shadow: 0 6px 20px rgba(37, 211, 102, 0.45);
  transition: transform 0.18s, box-shadow 0.18s;
  animation: wa-pulse 2.6s ease-out infinite;
}

#wa-float:hover {
  transform: scale(1.06);
  box-shadow: 0 8px 26px rgba(37, 211, 102, 0.6);
  animation: none;
}

@keyframes wa-pulse {
  0% {
    box-shadow: 0 6px 20px rgba(37, 211, 102, 0.45), 0 0 0 0 rgba(37, 211, 102, 0.42);
  }
  70% {
    box-shadow: 0 6px 20px rgba(37, 211, 102, 0.45), 0 0 0 16px rgba(37, 211, 102, 0);
  }
  100% {
    box-shadow: 0 6px 20px rgba(37, 211, 102, 0.45), 0 0 0 0 rgba(37, 211, 102, 0);
  }
}

.footer-entity {
  margin-top: 6px;
}

.footer-entity a {
  color: rgba(255, 255, 255, 0.72);
  text-decoration: underline;
}

.pricing-payment {
  margin-top: 14px;
  text-align: center;
  font-size: 15px;
  color: var(--muted);
}

.pay-badge {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 20px;
  height: 20px;
  margin-right: 6px;
  border-radius: 6px;
  background: #1677ff;
  color: #fff;
  font-size: 12px;
  font-weight: 700;
  vertical-align: -4px;
}

@media (max-width: 960px) {
  .btn-wa {
    padding: 8px 10px;
  }
  .btn-wa .wa-txt {
    display: none;
  }
}

@media (max-width: 720px) {
  #wa-float span {
    display: none;
  }
  #wa-float {
    padding: 14px;
    right: 14px;
    bottom: 16px;
  }
}

/* ==========================================================================
   About page (user-approved addition)
   ========================================================================== */

.header-actions {
  display: flex;
  align-items: center;
  gap: 12px;
}

.header-actions .btn-primary .cta-short {
  display: none;
}

@media (max-width: 720px) {
  .header-actions {
    gap: 8px;
  }
  .header-actions .btn-primary {
    padding: 8px 12px;
    font-size: 12.5px;
    white-space: nowrap;
  }
}

@media (max-width: 480px) {
  .header-actions .btn-primary .cta-full {
    display: none;
  }
  .header-actions .btn-primary .cta-short {
    display: inline;
  }
}

.about-hero {
  display: flex;
  align-items: center;
  gap: 40px;
  margin-top: 44px;
  padding: 36px;
  border: 1px solid var(--border);
  border-radius: var(--radius-card);
  background: var(--white);
  box-shadow: var(--shadow-sm);
}

.about-avatar {
  flex: 0 0 auto;
}

.about-avatar img {
  width: 168px;
  height: 168px;
  border-radius: 50%;
  object-fit: cover;
  border: 6px solid var(--white);
  box-shadow: 0 0 0 1px var(--border), var(--shadow-md);
}

.about-intro p {
  color: var(--text);
  font-size: 17px;
  line-height: 1.7;
}

.about-facts {
  margin-top: 18px;
  display: grid;
  gap: 8px;
  font-size: 15px;
  color: var(--muted);
}

.about-facts li {
  display: flex;
  align-items: flex-start;
  gap: 8px;
}

.about-facts .check {
  color: var(--green);
  font-weight: 700;
}

.about-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 14px;
  margin-top: 32px;
}

/* Buttons inside .legal-body must keep their own colours (no green-on-green) */
.legal-body .btn,
.legal-body .btn:hover {
  text-decoration: none;
}

.legal-body .btn-primary,
.legal-body .btn-primary:hover {
  color: var(--white);
}

.legal-body .btn-outline,
.legal-body .btn-outline:hover {
  color: var(--text);
}

.about-note {
  margin-top: 26px;
  font-size: 14px;
  color: var(--muted);
}

.about-note a {
  color: var(--green-hover);
  text-decoration: underline;
}

@media (max-width: 720px) {
  .about-hero {
    flex-direction: column;
    text-align: center;
    padding: 28px 22px;
    gap: 24px;
  }
  .about-facts li {
    justify-content: center;
  }
  .about-actions {
    flex-direction: column;
  }
  .about-actions .btn {
    width: 100%;
  }
}

/* ==========================================================================
   FAQ accordion (SEO / GEO addition)
   ========================================================================== */
.faq-list {
  max-width: 860px;
  margin: 0 auto;
  display: grid;
  gap: 12px;
}

.faq-item {
  background: var(--white);
  border: 1px solid var(--border);
  border-radius: 14px;
  padding: 0 22px;
  transition: border-color 0.2s ease, box-shadow 0.2s ease;
}

.faq-item[open] {
  border-color: var(--green-hover);
  box-shadow: 0 10px 30px rgba(16, 29, 50, 0.07);
}

.faq-item summary {
  cursor: pointer;
  list-style: none;
  padding: 18px 34px 18px 0;
  font-weight: 650;
  font-size: 1.02rem;
  color: var(--text);
  position: relative;
}

.faq-item summary::-webkit-details-marker {
  display: none;
}

.faq-item summary::after {
  content: "+";
  position: absolute;
  right: 0;
  top: 50%;
  transform: translateY(-50%);
  font-size: 1.35rem;
  font-weight: 400;
  line-height: 1;
  color: var(--green-hover);
  transition: transform 0.2s ease;
}

.faq-item[open] summary::after {
  content: "−";
}

.faq-item summary:focus-visible {
  outline: 2px solid var(--green-hover);
  outline-offset: 4px;
  border-radius: 6px;
}

.faq-answer {
  padding: 0 0 20px;
  color: var(--muted);
  line-height: 1.7;
}

.faq-answer p {
  margin: 0;
}

.faq-answer code {
  font-family: ui-monospace, SFMono-Regular, Menlo, Consolas, monospace;
  font-size: 0.9em;
  background: rgba(16, 29, 50, 0.06);
  border-radius: 4px;
  padding: 1px 5px;
}

@media (max-width: 720px) {
  .faq-item {
    padding: 0 16px;
  }
  .faq-item summary {
    font-size: 0.97rem;
    padding: 15px 28px 15px 0;
  }
}
