:root {
  --ink: #074686;
  --text: #20364f;
  --muted: #3a5578;
  --fog: #f7f3ec;
  --surface: #fffdf9;
  --gold: #876538;
  --line: #d8cfbf;
  --focus: #876538;
  --shadow: 0 8px 24px rgba(7, 70, 134, 0.16);
}

*,
*::before,
*::after {
  box-sizing: border-box;
}

html {
  -webkit-text-size-adjust: 100%;
  text-size-adjust: 100%;
}

body {
  min-height: 100vh;
  min-height: 100dvh;
  margin: 0;
  background: var(--fog);
  color: var(--text);
  font-family: "Assistant", Arial, sans-serif;
  font-size: 18px;
  line-height: 1.65;
  -webkit-font-smoothing: antialiased;
  overflow-wrap: anywhere;
}

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

a {
  color: var(--ink);
  text-decoration-thickness: 0.09em;
  text-underline-offset: 0.18em;
}

a:hover {
  text-decoration-thickness: 0.14em;
}

a:focus-visible,
button:focus-visible,
[tabindex]:focus-visible {
  outline: 3px solid var(--focus);
  outline-offset: 4px;
  border-radius: 4px;
}

.skip-link {
  position: fixed;
  inset-inline-start: 12px;
  top: 12px;
  z-index: 1000;
  padding: 10px 16px;
  border: 2px solid #ffffff;
  border-radius: 8px;
  background: var(--ink);
  color: #ffffff;
  font-weight: 700;
  text-decoration: none;
  transform: translateY(-180%);
  transition: transform 0.15s ease;
}

.skip-link:focus {
  transform: translateY(0);
}

.site-main,
.document {
  width: min(100% - 32px, 680px);
  margin-inline: auto;
}

.site-main {
  padding: 12px 0 32px;
}

.hero {
  text-align: center;
}

.brand {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 2px;
  margin-bottom: 4px;
}

.brand img {
  width: 108px;
  height: auto;
}

.brand-tag {
  color: var(--muted);
  font-size: 0.78rem;
}

h1,
h2 {
  color: var(--ink);
  font-family: "Frank Ruhl Libre", Georgia, serif;
}

h1 {
  max-width: 20ch;
  margin: 10px auto 12px;
  font-size: clamp(1.8rem, 7.7vw, 2.55rem);
  line-height: 1.16;
  text-wrap: balance;
}

h2 {
  margin: 0 0 12px;
  font-size: clamp(1.35rem, 4vw, 1.65rem);
  line-height: 1.3;
}

.accent {
  display: block;
  margin-top: 2px;
  color: var(--gold);
}

.hero-summary {
  max-width: 41ch;
  margin: 0 auto;
  color: var(--text);
  font-size: 1rem;
  line-height: 1.55;
}

.cta {
  display: flex;
  align-items: center;
  justify-content: center;
  width: 100%;
  max-width: 420px;
  min-height: 62px;
  margin: 18px auto 0;
  padding: 12px 24px;
  gap: 11px;
  border: 2px solid var(--ink);
  border-radius: 14px;
  background: var(--ink);
  box-shadow: var(--shadow);
  color: #ffffff;
  font-size: 1.06rem;
  font-weight: 700;
  line-height: 1.25;
  text-decoration: none;
  touch-action: manipulation;
}

.cta:hover {
  box-shadow: 0 11px 28px rgba(7, 70, 134, 0.22);
  text-decoration: none;
}

.cta:focus-visible {
  outline-color: var(--focus);
  outline-offset: 4px;
}

.cta-icon {
  width: 26px;
  height: 26px;
  flex: 0 0 26px;
}

.cta-icon svg {
  width: 26px;
  height: 26px;
  fill: currentColor;
}

.cta-text {
  display: flex;
  flex-direction: column;
}

.cta small {
  font-size: 0.78rem;
  font-weight: 400;
  opacity: 0.95;
}

.trust-note {
  margin: 8px 0 0;
  color: var(--muted);
  font-size: 0.82rem;
  text-align: center;
}

.details {
  margin-top: 28px;
  padding: 22px;
  border: 1px solid var(--line);
  border-radius: 18px;
  background: var(--surface);
}

.section-kicker {
  margin: 0 0 4px;
  color: var(--gold);
  font-size: 0.84rem;
  font-weight: 700;
}

.score-row {
  display: flex;
  align-items: center;
  gap: 18px;
  margin: 4px 0 20px;
}

.score-ring {
  position: relative;
  width: 96px;
  height: 96px;
  flex: 0 0 96px;
}

.score-ring svg {
  width: 100%;
  height: 100%;
  transform: rotate(-90deg);
}

.score-track,
.score-fill {
  fill: none;
  stroke-width: 8;
}

.score-track {
  stroke: var(--line);
}

.score-fill {
  stroke: var(--gold);
  stroke-linecap: round;
  stroke-dasharray: 87 100;
  stroke-dashoffset: 0;
  animation: score-ring-fill 1.2s ease-out both;
}

@keyframes score-ring-fill {
  from {
    stroke-dasharray: 0 100;
  }
  to {
    stroke-dasharray: 87 100;
  }
}

.score-number {
  position: absolute;
  inset: 0;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  color: var(--ink);
  font-family: "Frank Ruhl Libre", Georgia, serif;
  font-weight: 700;
}

.score-number strong {
  font-size: 1.65rem;
  line-height: 1;
}

.score-number span {
  margin-top: 3px;
  color: var(--muted);
  font-family: "Assistant", Arial, sans-serif;
  font-size: 0.68rem;
  font-weight: 600;
}

.score-copy {
  margin: 0;
  color: var(--muted);
  font-size: 0.95rem;
}

.score-copy small {
  display: inline-block;
  margin-top: 5px;
  font-size: 0.8rem;
  line-height: 1.5;
}

.feature-list {
  margin: 0;
  padding: 0;
  list-style: none;
}

.feature-list li {
  position: relative;
  margin: 0 0 13px;
  padding-inline-start: 28px;
  font-size: 0.95rem;
  line-height: 1.6;
}

.feature-list li:last-child {
  margin-bottom: 0;
}

.feature-list li::before {
  content: "";
  position: absolute;
  inset-inline-start: 0;
  top: 0.78em;
  width: 14px;
  height: 3px;
  border-radius: 2px;
  background: var(--gold);
}

.secondary-cta {
  margin-top: 22px;
}

/* Floating (always-visible) WhatsApp CTA */
body.has-sticky-cta {
  padding-bottom: calc(88px + env(safe-area-inset-bottom));
}

.sticky-cta {
  position: fixed;
  left: 50%;
  bottom: calc(12px + env(safe-area-inset-bottom));
  transform: translateX(-50%);
  z-index: 900;
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 10px;
  width: min(100% - 24px, 460px);
  min-height: 58px;
  padding: 12px 22px;
  border: 2px solid var(--ink);
  border-radius: 14px;
  background: var(--ink);
  box-shadow: 0 8px 26px rgba(7, 70, 134, 0.32);
  color: #ffffff;
  font-size: 1.04rem;
  font-weight: 700;
  line-height: 1.2;
  text-decoration: none;
  touch-action: manipulation;
  transition: opacity 0.25s ease, transform 0.25s ease;
}

.sticky-cta.is-hidden {
  opacity: 0;
  transform: translateX(-50%) translateY(140%);
  pointer-events: none;
}

.sticky-cta:hover {
  box-shadow: 0 10px 30px rgba(7, 70, 134, 0.4);
  text-decoration: none;
}

.sticky-cta:focus-visible {
  outline-color: var(--focus);
  outline-offset: 4px;
}

.sticky-cta .cta-icon,
.sticky-cta .cta-icon svg {
  width: 24px;
  height: 24px;
  flex: 0 0 24px;
}

@media (forced-colors: active) {
  .sticky-cta {
    border: 2px solid CanvasText;
  }
}

@media print {
  .sticky-cta {
    display: none !important;
  }
}

.site-footer {
  margin-top: 8px;
  padding: 20px 16px calc(20px + env(safe-area-inset-bottom));
  border-top: 1px solid var(--line);
  color: var(--muted);
  font-size: 0.82rem;
  text-align: center;
}

.footer-tagline {
  margin: 0;
  color: var(--gold);
  font-family: "Frank Ruhl Libre", Georgia, serif;
  font-size: 0.9rem;
  font-weight: 700;
  letter-spacing: 0.05em;
}

.footer-hebrew {
  margin: 2px 0 0;
}

.footer-nav ul {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: 2px 10px;
  margin: 10px 0 0;
  padding: 0;
  list-style: none;
}

.footer-nav a {
  display: inline-flex;
  align-items: center;
  min-height: 32px;
  padding: 2px 3px;
  color: var(--muted);
}

.footer-legal {
  max-width: 58ch;
  margin: 8px auto 0;
  font-size: 0.73rem;
  line-height: 1.55;
}

.footer-copy {
  margin: 8px 0 0;
  font-size: 0.72rem;
}

.document {
  padding: 24px 0 56px;
}

.back-link {
  display: inline-flex;
  align-items: center;
  min-height: 44px;
  margin-bottom: 8px;
  color: var(--ink);
  font-weight: 600;
}

.document h1 {
  max-width: none;
  margin: 8px 0 4px;
  font-size: clamp(2rem, 7vw, 2.55rem);
}

.updated {
  margin: 0 0 24px;
  color: var(--muted);
  font-size: 0.84rem;
}

.document h2 {
  margin-top: 30px;
}

.document p,
.document li {
  max-width: 68ch;
}

.document p {
  margin: 0 0 12px;
}

.document ul,
.document ol {
  margin: 0 0 16px;
  padding-inline-start: 26px;
}

.document li {
  margin-bottom: 9px;
}

.notice {
  margin: 20px 0;
  padding: 16px 18px;
  border: 2px solid var(--gold);
  border-radius: 12px;
  background: var(--surface);
}

.notice p:last-child {
  margin-bottom: 0;
}

.contact-list {
  margin: 8px 0 0;
  padding: 0;
  list-style: none;
}

.contact-list li {
  margin-bottom: 8px;
}

.contact-list a {
  display: inline-flex;
  align-items: center;
  min-height: 44px;
  padding-block: 4px;
}

.doc-footer {
  margin-top: 42px;
  padding-top: 18px;
  border-top: 1px solid var(--line);
  color: var(--muted);
  font-size: 0.8rem;
}

.visually-hidden {
  position: absolute !important;
  width: 1px !important;
  height: 1px !important;
  padding: 0 !important;
  margin: -1px !important;
  overflow: hidden !important;
  clip: rect(0, 0, 0, 0) !important;
  white-space: nowrap !important;
  border: 0 !important;
}

@media (max-width: 480px) {
  body {
    font-size: 17px;
  }

  .site-main {
    padding-top: 8px;
  }

  .brand img {
    width: 98px;
  }

  h1 {
    margin-top: 7px;
  }

  .cta {
    max-width: none;
  }

  .details {
    margin-top: 24px;
    padding: 18px;
  }

  .score-row {
    gap: 14px;
  }
}

@media (max-width: 360px) {
  .site-main,
  .document {
    width: min(100% - 24px, 680px);
  }

  .score-ring {
    width: 82px;
    height: 82px;
    flex-basis: 82px;
  }

  .score-number strong {
    font-size: 1.45rem;
  }

  .details {
    padding: 15px;
  }
}

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

@media (prefers-contrast: more) {
  :root {
    --line: #6a5840;
  }

  .cta,
  .notice,
  .details {
    border-width: 3px;
  }
}

@media (forced-colors: active) {
  .cta,
  .notice,
  .details {
    border: 2px solid CanvasText;
  }

  .score-track,
  .score-fill {
    stroke: CanvasText;
  }

  .feature-list li::before {
    background: CanvasText;
  }
}

@media print {
  .skip-link,
  .cta,
  .footer-nav {
    display: none !important;
  }

  body {
    background: #ffffff;
    color: #000000;
  }
}
