/* Ozer welcome page. Tokens copied from the app (mankal-assistant web/src/styles.css).
   Marker yellow is reserved for text quoted from a circular. */
:root {
  --ink: #1e2b38;
  --muted: #5d6b78;
  --paper: #ffffff;
  --canvas: #eef1f4;
  --rule: #d8dee4;
  --pine: #1e5b4f;
  --pine-soft: #eaf3f0;
  --marker: #fce79a;
  --ui-font: "IBM Plex Sans Hebrew", "Arial Hebrew", Arial, sans-serif;
  --source-font: "Frank Ruhl Libre", "Times New Roman", serif;
  --shell: 64rem;
  --gutter: 1.5rem;
}

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

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

body {
  margin: 0;
  background: var(--paper);
  color: var(--ink);
  font-family: var(--ui-font);
  font-size: 1.0625rem;
  line-height: 1.7;
  -webkit-font-smoothing: antialiased;
  overflow-wrap: break-word;
}

h1,
h2,
h3,
p,
dl,
dd,
ol,
ul,
figure,
blockquote {
  margin: 0;
}

a {
  color: var(--pine);
  text-underline-offset: 0.2em;
}

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

.visually-hidden {
  position: absolute;
  inline-size: 1px;
  block-size: 1px;
  overflow: hidden;
  clip-path: inset(50%);
  white-space: nowrap;
}

.skip-link {
  position: absolute;
  inset-block-start: 0.5rem;
  inset-inline-start: 0.5rem;
  z-index: 10;
  padding: 0.5rem 1rem;
  background: var(--ink);
  color: #fff;
  border-radius: 8px;
  transform: translateY(-200%);
}
.skip-link:focus {
  transform: none;
}

.shell {
  max-inline-size: var(--shell);
  margin-inline: auto;
  padding-inline: var(--gutter);
}

/* Buttons: the app's pill shape */
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-block-size: 2.5rem;
  padding: 0.4rem 1.1rem;
  border-radius: 999px;
  font-size: 0.9375rem;
  font-weight: 500;
  line-height: 1.2;
  font-family: inherit;
  text-decoration: none;
  white-space: nowrap;
  cursor: pointer;
  transition: background-color 120ms, color 120ms, border-color 120ms;
}
.btn:disabled {
  opacity: 0.6;
  cursor: default;
}
.btn-primary {
  background: var(--pine);
  color: #fff;
  border: 1px solid var(--pine);
}
.btn-primary:hover {
  background: #17483e;
}
.btn-ghost {
  color: var(--ink);
  background: transparent;
  border: 1px solid var(--rule);
}
.btn-ghost:hover {
  border-color: var(--pine);
  color: var(--pine);
}
.btn-large {
  min-block-size: 3rem;
  padding-inline: 1.6rem;
  font-size: 1rem;
}

/* 1. Bar */
.bar {
  border-block-end: 1px solid var(--rule);
}
.bar-inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1rem;
  min-block-size: 4rem;
}
.wordmark {
  color: var(--pine);
  font-size: 1.375rem;
  font-weight: 600;
  text-decoration: none;
  letter-spacing: -0.01em;
}
.bar-actions {
  display: flex;
  gap: 0.5rem;
}

/* 2. Headline and the three steps */
.hero {
  padding-block: clamp(3rem, 7vw, 5.5rem) clamp(2.5rem, 5vw, 4rem);
}
.hero h1 {
  max-inline-size: 14ch;
  font-size: clamp(2.375rem, 1.3rem + 4.4vw, 4rem);
  font-weight: 600;
  line-height: 1.12;
  letter-spacing: -0.015em;
  text-wrap: balance;
}
.lede {
  max-inline-size: 34rem;
  margin-block-start: 1.25rem;
  color: var(--muted);
  font-size: clamp(1.125rem, 1rem + 0.5vw, 1.3125rem);
  line-height: 1.6;
}

/* A real sequence: numbered stations joined by one rule, read from right to left. */
.steps {
  list-style: none;
  padding: 0;
  margin-block-start: clamp(2.5rem, 5vw, 3.5rem);
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 2rem;
  position: relative;
}
.steps::before {
  content: "";
  position: absolute;
  inset-block-start: 1rem;
  inset-inline: 1rem calc((100% - 4rem) / 3 - 1rem);
  border-block-start: 1px solid var(--rule);
}
.steps li {
  position: relative;
}
.step-num {
  position: relative;
  display: block;
  inline-size: 2rem;
  block-size: 2rem;
  border-radius: 50%;
  background: var(--pine);
  color: #fff;
  box-shadow: 0 0 0 6px var(--paper);
  font-size: 0.9375rem;
  font-weight: 600;
  line-height: 2rem;
  text-align: center;
}
.steps p {
  margin-block-start: 1rem;
  max-inline-size: 18rem;
  color: var(--muted);
  line-height: 1.6;
}
.steps strong {
  color: var(--ink);
  font-weight: 600;
}

/* 4. The example: one app screen on the canvas band */
.example {
  background: var(--canvas);
  padding-block: clamp(3rem, 6vw, 4.5rem);
}
.example h2,
.block h2 {
  font-size: clamp(1.5rem, 1.2rem + 1vw, 1.875rem);
  font-weight: 600;
  line-height: 1.3;
  letter-spacing: -0.01em;
}
.screen {
  max-inline-size: 44rem;
  padding: clamp(1.25rem, 3.5vw, 2.25rem);
  background: var(--paper);
  border: 1px solid var(--rule);
  border-radius: 1.25rem;
  box-shadow: 0 1px 2px rgba(30, 43, 56, 0.06), 0 12px 32px rgba(30, 43, 56, 0.07);
  display: flex;
  flex-direction: column;
}
/* The question bubble, as in the app */
.question {
  align-self: flex-start;
  max-inline-size: 85%;
  padding: 0.6rem 1rem;
  background: var(--canvas);
  border-radius: 1.125rem;
  border-start-start-radius: 0.375rem;
  line-height: 1.6;
}
.answer {
  margin-block-start: 1.5rem;
  line-height: 1.75;
}
.cite {
  display: inline-block;
  min-inline-size: 1.25rem;
  margin-inline: 2px;
  padding-inline: 4px;
  border-radius: 999px;
  font-family: var(--ui-font);
  font-size: 0.75rem;
  font-weight: 600;
  line-height: 1.25rem;
  text-align: center;
  vertical-align: 0.3em;
  background: var(--pine-soft);
  color: var(--pine);
}
.sources-title {
  margin-block-start: 1.75rem;
  margin-block-end: 0.4rem;
  font-size: 1.0625rem;
  font-weight: 600;
}
/* Sources: a ruled list, not cards */
.sources {
  list-style: none;
  padding: 0;
  border-block-start: 1px solid var(--rule);
}
.sources li {
  display: grid;
  grid-template-columns: 1.75rem minmax(0, 1fr);
  gap: 0.25rem 0.5rem;
  padding-block: 0.85rem;
  border-block-end: 1px solid var(--rule);
}
.sources .cite {
  vertical-align: baseline;
  justify-self: start;
  margin: 0.2rem 0 0;
}
.source-meta {
  font-size: 0.8125rem;
  color: var(--muted);
  align-self: center;
}
.source-quote {
  grid-column: 2;
  font-family: var(--source-font);
  font-size: 1.125rem;
  line-height: 1.85;
}

/* The page's one motion: the marker drawn across the quote, right to left, as in the app.
   Without script, or with reduced motion, the highlight is simply there. */
.source-quote mark {
  color: inherit;
  background: linear-gradient(var(--marker), var(--marker)) no-repeat right / 100% 100%;
  box-decoration-break: clone;
  -webkit-box-decoration-break: clone;
  padding-inline: 2px;
  border-radius: 2px;
}
.js .source-quote mark {
  background-size: 0% 100%;
}
.js .is-drawn .source-quote mark {
  animation: marker-draw 900ms 150ms ease-out forwards;
}
@keyframes marker-draw {
  to {
    background-size: 100% 100%;
  }
}
@media (prefers-reduced-motion: reduce) {
  .js .source-quote mark,
  .js .is-drawn .source-quote mark {
    animation: none;
    background-size: 100% 100%;
  }
}

/* 5–7. Plain sections: heading beside ruled rows on wide screens */
.block {
  padding-block: clamp(3rem, 6vw, 4.5rem) 0;
}
.section-line {
  margin-block-start: 0.5rem;
  max-inline-size: 40rem;
  color: var(--muted);
}

/* Sections: heading above the content on phones, in a margin column beside it on wide screens. */
.section-body {
  margin-block-start: 1.5rem;
}
@media (min-width: 900px) {
  .split {
    display: grid;
    grid-template-columns: 15rem minmax(0, 1fr);
    column-gap: 3.5rem;
    align-items: start;
  }
  .split > .section-body {
    margin-block-start: 0.35rem;
  }
  .split .section-line {
    font-size: 0.9375rem;
    line-height: 1.6;
  }
}

.faq {
  border-block-start: 1px solid var(--rule);
}
.faq-row {
  padding-block: 1.1rem;
  border-block-end: 1px solid var(--rule);
}
.faq dt {
  font-weight: 600;
  line-height: 1.6;
}
.faq dd {
  margin-block-start: 0.25rem;
  max-inline-size: 38rem;
  color: var(--ink);
  line-height: 1.7;
}

.prices {
  max-inline-size: 40rem;
}
.price-list {
  border-block-start: 1px solid var(--rule);
}
.price-row {
  display: flex;
  align-items: baseline;
  justify-content: space-between;
  flex-wrap: wrap;
  gap: 0.25rem 1.5rem;
  padding-block: 1rem;
  border-block-end: 1px solid var(--rule);
}
.price-row dt {
  color: var(--ink);
}
.price-amount {
  font-size: 1.75rem;
  font-weight: 600;
  line-height: 1.2;
  font-variant-numeric: tabular-nums;
}
.price-amount.is-on-request {
  font-size: 1.0625rem;
  font-weight: 500;
  color: var(--muted);
}
.price-extra {
  display: block;
  margin-block-start: 0.25rem;
  font-size: 0.875rem;
  color: var(--muted);
}
.price-deal {
  margin-block-start: 0.75rem;
  font-weight: 500;
  color: var(--pine);
}
.price-note {
  margin-block-start: 0.75rem;
  font-size: 0.875rem;
  color: var(--muted);
}
.price-fallback {
  padding-block: 1rem;
  border-block: 1px solid var(--rule);
  font-size: 1.25rem;
  font-weight: 500;
}

.contact {
  padding-block-end: clamp(3.5rem, 7vw, 5.5rem);
}
.contact-actions {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 0.75rem 1.25rem;
}

/* Contact form: a dialog over the page */
.contact-dialog {
  inline-size: min(34rem, 100% - 2rem);
  max-block-size: calc(100dvh - 2rem);
  padding: 0;
  border: 0;
  border-radius: 1.25rem;
  background: var(--paper);
  color: var(--ink);
}
.contact-dialog::backdrop {
  background: rgba(30, 43, 56, 0.45);
}
.contact-dialog-head {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 1.25rem 1.5rem 0;
}
.contact-dialog-head h2 {
  margin: 0;
  font-size: 1.375rem;
  font-weight: 600;
}
.contact-close {
  display: grid;
  place-items: center;
  inline-size: 2.25rem;
  block-size: 2.25rem;
  border: 0;
  border-radius: 999px;
  background: transparent;
  color: var(--muted);
  cursor: pointer;
}
.contact-close:hover {
  background: var(--canvas);
  color: var(--ink);
}
.contact-form,
.contact-sent {
  display: grid;
  gap: 1rem;
  padding: 0.75rem 1.5rem 1.5rem;
}
.contact-dialog [hidden] {
  display: none;
}
.contact-intro {
  margin: 0;
  color: var(--muted);
  font-size: 0.9375rem;
}
.field {
  display: grid;
  gap: 0.35rem;
  min-inline-size: 0;
}
.field label {
  font-size: 0.9375rem;
  font-weight: 500;
}
.field .optional {
  color: var(--muted);
  font-weight: 400;
}
.field input,
.field textarea {
  inline-size: 100%;
  padding: 0.6rem 0.8rem;
  border: 1px solid var(--rule);
  border-radius: 0.6rem;
  background: var(--paper);
  color: var(--ink);
  font: inherit;
  font-size: 1rem;
}
.field input[dir="ltr"] {
  text-align: end;
}
.field textarea {
  resize: vertical;
  min-block-size: 7rem;
  line-height: 1.6;
}
.field input:focus-visible,
.field textarea:focus-visible {
  outline: 2px solid var(--pine);
  outline-offset: 0;
  border-color: var(--pine);
}
.field [aria-invalid="true"] {
  border-color: #b4232a;
}
.field-pair {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 1rem;
}
.contact-trap {
  position: absolute;
  inset-inline-start: -10000px;
  inline-size: 1px;
  block-size: 1px;
  overflow: hidden;
}
.contact-error {
  margin: 0;
  color: #b4232a;
  font-size: 0.9375rem;
}
.contact-error:empty {
  display: none;
}
.contact-buttons {
  display: flex;
  flex-wrap: wrap;
  gap: 0.75rem;
}
.contact-sent-title {
  margin: 0;
  font-size: 1.125rem;
  font-weight: 600;
  color: var(--pine);
}
.contact-sent p {
  margin: 0;
}
.contact-sent .btn {
  justify-self: start;
}
@media (max-width: 480px) {
  .field-pair {
    grid-template-columns: 1fr;
  }
}

/* 8. Footer */
.footer {
  background: var(--canvas);
  border-block-start: 1px solid var(--rule);
  padding-block: 1.5rem;
  font-size: 0.875rem;
  color: var(--muted);
}

/* Phone width */
@media (max-width: 720px) {
  :root {
    --gutter: 1rem;
  }
  .steps {
    grid-template-columns: minmax(0, 1fr);
    gap: 1.5rem;
  }
  /* The rule runs down from each number to the next instead of across. */
  .steps::before {
    content: none;
  }
  .steps li:not(:last-child)::after {
    content: "";
    position: absolute;
    inset-block: 2rem -1.5rem;
    inset-inline-start: 1rem;
    border-inline-start: 1px solid var(--rule);
  }
  .steps li {
    display: grid;
    grid-template-columns: 2rem minmax(0, 1fr);
    gap: 1rem;
    align-items: start;
  }
  .steps p {
    margin-block-start: 0.2rem;
  }
  .question {
    max-inline-size: 92%;
  }
}

@media (max-width: 380px) {
  .bar-actions .btn {
    padding-inline: 0.8rem;
  }
}
