/* ============================================================
   Raz Leshem, systems & automation for companies
   Palette drawn from Raz's portrait: ink navy shirt, slate wall,
   warm amber wood + lights. Paper-white base for trust and air.
   ============================================================ */

:root {
  --ink: #182740;
  --ink-2: #223652;
  --ink-3: #2c4468;
  --paper: #fbf9f4;
  --paper-2: #f4f0e7;
  --line: #e5dfd1;
  --line-strong: #d5cdb9;
  --muted: #3d4a5e;
  --muted-on-ink: #bfcbdd;
  --blue: #1e3d8f;
  --blue-bright: #2a4fae;
  --amber: #c96f1f;
  --amber-deep: #a1560e;
  --amber-tint: #f8e8d2;
  --green: #2f7d5b;
  --green-tint: #e3efe8;
  --radius: 14px;
  --shadow-card: 0 1px 2px rgba(24, 39, 64, 0.05), 0 12px 32px -16px rgba(24, 39, 64, 0.18);
  --font-display: "Suez One", serif;
  --font-body: "IBM Plex Sans Hebrew", "IBM Plex Sans", system-ui, sans-serif;
  --font-mono: "IBM Plex Mono", monospace;
}

html[lang="en"] {
  --font-body: "IBM Plex Sans", "IBM Plex Sans Hebrew", system-ui, sans-serif;
}

* { margin: 0; padding: 0; box-sizing: border-box; }

html { scroll-behavior: smooth; }

body {
  font-family: var(--font-body);
  background: var(--paper);
  color: var(--ink);
  font-size: 1.0625rem;
  line-height: 1.65;
  -webkit-font-smoothing: antialiased;
}

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

a { color: inherit; }

.wrap {
  max-width: 1080px;
  margin-inline: auto;
  padding-inline: 24px;
}

/* ---------- type ---------- */

h1, h2, .step-name, .trust-lead, .total-value {
  font-family: var(--font-display);
  font-weight: 400;
  line-height: 1.18;
  letter-spacing: 0;
}

h1 {
  font-size: clamp(2.3rem, 5.8vw, 3.9rem);
  max-width: 21ch;
}

h2 {
  font-size: clamp(1.85rem, 4vw, 2.65rem);
  max-width: 26ch;
}

.eyebrow {
  font-family: var(--font-body);
  font-weight: 700;
  font-size: 0.98rem;
  letter-spacing: 0.03em;
  text-transform: uppercase;
  color: var(--amber-deep);
  margin-block-end: 14px;
}

.lede {
  font-size: clamp(1.05rem, 1.8vw, 1.2rem);
  color: var(--muted);
  max-width: 58ch;
}

/* ---------- buttons ---------- */

.btn {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  font-family: var(--font-body);
  font-weight: 600;
  font-size: 1rem;
  text-decoration: none;
  border-radius: 10px;
  padding: 14px 26px;
  border: 1.5px solid transparent;
  cursor: pointer;
  transition: background-color 160ms ease, border-color 160ms ease, transform 160ms ease;
}

.btn:active { transform: translateY(1px); }

.btn-solid {
  background: var(--blue);
  color: #fff;
}
.btn-solid:hover { background: var(--blue-bright); }

.btn-ghost {
  border-color: var(--line-strong);
  color: var(--ink);
  background: transparent;
}
.btn-ghost:hover { border-color: var(--ink); }

.btn-on-ink {
  background: #fff;
  color: var(--blue);
}
.btn-on-ink:hover { background: #e9e6dc; }

.btn-ghost-on-ink {
  border-color: rgba(255, 255, 255, 0.35);
  color: #fff;
}
.btn-ghost-on-ink:hover { border-color: #fff; }

.btn-small { padding: 9px 18px; font-size: 0.92rem; }

.btn svg { flex: none; }

:focus-visible {
  outline: 2.5px solid var(--amber-deep);
  outline-offset: 3px;
  border-radius: 4px;
}

/* ---------- header ---------- */

.site-header {
  position: sticky;
  top: 0;
  z-index: 40;
  background: rgba(251, 249, 244, 0.88);
  backdrop-filter: blur(10px);
  border-block-end: 1px solid var(--line);
}

.header-inner {
  display: flex;
  align-items: center;
  gap: 28px;
  min-height: 66px;
}

.brand {
  font-family: var(--font-display);
  font-size: 1.35rem;
  text-decoration: none;
  color: var(--ink);
  white-space: nowrap;
}

.brand .brand-dot { color: var(--amber); }

.site-nav {
  display: flex;
  gap: 24px;
  margin-inline-start: auto;
}

.site-nav a {
  text-decoration: none;
  font-size: 0.95rem;
  font-weight: 500;
  color: var(--muted);
  transition: color 140ms ease;
}
.site-nav a:hover { color: var(--ink); }

.header-actions {
  display: flex;
  align-items: center;
  gap: 12px;
}

.lang-toggle {
  font-family: var(--font-body);
  font-size: 0.88rem;
  font-weight: 600;
  background: transparent;
  color: var(--ink);
  border: 1.5px solid var(--line-strong);
  border-radius: 10px;
  padding: 8px 14px;
  cursor: pointer;
  transition: border-color 140ms ease, background-color 140ms ease;
}
.lang-toggle:hover { border-color: var(--ink); background: var(--paper-2); }

/* ---------- hero ---------- */

.hero {
  padding-block: clamp(72px, 11vw, 128px) clamp(64px, 9vw, 104px);
}

.hero-rule {
  width: 72px;
  height: 4px;
  background: var(--amber);
  border-radius: 2px;
  margin-block-end: 28px;
}

.hero .lede {
  margin-block-start: 26px;
}

.hero-ctas {
  display: flex;
  flex-wrap: wrap;
  gap: 14px;
  margin-block-start: 36px;
}

.hero-note {
  margin-block-start: 18px;
  font-size: 0.92rem;
  color: var(--muted);
}

/* ---------- generic section rhythm ---------- */

.section { padding-block: clamp(64px, 9vw, 108px); }

.section-head { margin-block-end: clamp(32px, 5vw, 52px); }

.section-head .lede { margin-block-start: 14px; }

.section-alt {
  background: var(--paper-2);
  border-block: 1px solid var(--line);
}

/* ---------- "sound familiar" ---------- */

.familiar-list {
  list-style: none;
  display: grid;
  gap: 0;
  border-block-start: 1px solid var(--line-strong);
}

.familiar-list li {
  display: flex;
  gap: 20px;
  align-items: baseline;
  padding-block: 22px;
  border-block-end: 1px solid var(--line);
  font-size: clamp(1.02rem, 1.6vw, 1.15rem);
  max-width: 62ch;
}

.familiar-mark {
  flex: none;
  font-family: var(--font-mono);
  font-size: 0.85rem;
  color: var(--amber-deep);
  transform: translateY(-2px);
}

.familiar-closer {
  margin-block-start: 30px;
  font-size: clamp(1.1rem, 2vw, 1.3rem);
  font-weight: 600;
}

.familiar-closer .accent {
  background: linear-gradient(transparent 62%, var(--amber-tint) 62%);
  padding-inline: 2px;
}

/* ---------- the day ledger (signature) ---------- */

.day-card {
  background: #fff;
  border: 1px solid var(--line);
  border-radius: var(--radius);
  box-shadow: var(--shadow-card);
}

.day-toolbar {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
  flex-wrap: wrap;
  padding: 18px 24px;
  border-block-end: 1px solid var(--line);
  background: var(--paper);
  border-radius: var(--radius) var(--radius) 0 0;
  /* stays visible while scrolling through the table, so the toggle is always reachable */
  position: sticky;
  top: 65px;
  z-index: 5;
}

.day-title {
  font-family: var(--font-body);
  font-weight: 600;
  font-size: 0.9rem;
  letter-spacing: 0.03em;
  color: var(--muted);
}

.day-toggle {
  display: inline-flex;
  background: var(--paper-2);
  border: 1px solid var(--line-strong);
  border-radius: 10px;
  padding: 4px;
  gap: 4px;
}

.seg {
  font-family: var(--font-body);
  font-size: 0.92rem;
  font-weight: 600;
  color: var(--muted);
  background: transparent;
  border: none;
  border-radius: 7px;
  padding: 8px 18px;
  cursor: pointer;
  transition: background-color 160ms ease, color 160ms ease, box-shadow 160ms ease;
}

.seg[aria-pressed="true"] {
  background: var(--blue);
  color: #fff;
  box-shadow: 0 2px 6px rgba(30, 61, 143, 0.3);
}

.seg-nudge { animation: nudge 1.1s ease 1.2s 2; }

@keyframes nudge {
  0%, 100% { transform: translateY(0); }
  30% { transform: translateY(-3px); }
  60% { transform: translateY(0); }
}

.day-rows { list-style: none; }

.day-row {
  display: grid;
  grid-template-columns: 64px 1fr auto;
  align-items: center;
  gap: 18px;
  padding: 16px 24px;
  border-block-end: 1px solid var(--line);
}

.day-time {
  font-family: var(--font-mono);
  font-size: 0.9rem;
  color: var(--muted);
}

.day-task {
  font-size: 1rem;
  transition: color 320ms ease, opacity 320ms ease;
}

.day-chips {
  display: grid;
  justify-items: end;
}

.chip {
  grid-area: 1 / 1;
  display: inline-flex;
  align-items: center;
  gap: 7px;
  font-size: 0.84rem;
  font-weight: 600;
  border-radius: 999px;
  padding: 5px 13px;
  white-space: nowrap;
  transition: opacity 320ms ease, transform 320ms ease;
}

.chip-today {
  background: var(--amber-tint);
  color: var(--amber-deep);
}

.chip-after {
  background: var(--green-tint);
  color: var(--green);
}

.chip-human {
  background: #e8edf4;
  color: var(--ink-3);
}

/* state machine: card without .after shows today chips */
.day-card .chip-after { opacity: 0; transform: translateY(6px); pointer-events: none; }
.day-card .chip-today { opacity: 1; }

.day-card.after .chip-after { opacity: 1; transform: translateY(0); }
.day-card.after .chip-today { opacity: 0; transform: translateY(-6px); }

.day-card.after .day-row[data-kind="auto"] .day-task {
  color: var(--muted);
  opacity: 0.55;
  text-decoration: line-through;
  text-decoration-color: var(--amber);
  text-decoration-thickness: 1.5px;
}

/* gentle stagger on flip */
.day-row:nth-child(2) .chip, .day-row:nth-child(2) .day-task { transition-delay: 40ms; }
.day-row:nth-child(3) .chip, .day-row:nth-child(3) .day-task { transition-delay: 80ms; }
.day-row:nth-child(4) .chip, .day-row:nth-child(4) .day-task { transition-delay: 120ms; }
.day-row:nth-child(5) .chip, .day-row:nth-child(5) .day-task { transition-delay: 160ms; }
.day-row:nth-child(6) .chip, .day-row:nth-child(6) .day-task { transition-delay: 200ms; }
.day-row:nth-child(7) .chip, .day-row:nth-child(7) .day-task { transition-delay: 240ms; }

.day-total {
  display: flex;
  align-items: baseline;
  justify-content: space-between;
  gap: 16px;
  flex-wrap: wrap;
  padding: 20px 24px;
  background: var(--paper);
  border-radius: 0 0 var(--radius) var(--radius);
}

.total-label { font-size: 0.95rem; font-weight: 600; color: var(--muted); }

.total-value { font-size: clamp(1.25rem, 2.6vw, 1.7rem); }

.day-card .lbl-after { display: none; }
.day-card.after .lbl-after { display: inline; }
.day-card.after .lbl-today { display: none; }

.day-card .total-value .lbl-today { color: var(--amber-deep); }
.day-card.after .total-value .lbl-after { color: var(--green); }

.day-foot {
  margin-block-start: 22px;
  font-size: 0.92rem;
  color: var(--muted);
  max-width: 64ch;
}

/* ---------- how it works ---------- */

.steps {
  list-style: none;
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 28px;
  counter-reset: step;
}

.step {
  border-block-start: 3px solid var(--amber);
  padding-block-start: 22px;
}

.step-num {
  font-family: var(--font-body);
  font-weight: 700;
  font-size: 0.92rem;
  color: var(--amber-deep);
  letter-spacing: 0.03em;
  display: block;
  margin-block-end: 10px;
}

.step-name {
  font-size: 1.5rem;
  margin-block-end: 12px;
}

.step p { color: var(--muted); font-size: 0.99rem; }

/* ---------- trust ---------- */

.trust-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 34px 44px;
}

.trust-item {
  padding-inline-start: 20px;
  border-inline-start: 3px solid var(--line-strong);
  transition: border-color 200ms ease;
}

.trust-item:hover { border-inline-start-color: var(--amber); }

.trust-lead {
  font-size: 1.45rem;
  margin-block-end: 8px;
}

.trust-item p { color: var(--muted); font-size: 0.99rem; }

/* ---------- about ---------- */

.about-grid {
  display: grid;
  grid-template-columns: 0.9fr 1.1fr;
  gap: clamp(32px, 6vw, 72px);
  align-items: center;
}

.about-photo {
  position: relative;
}

.about-photo img {
  border-radius: var(--radius);
  aspect-ratio: 4 / 4.5;
  object-fit: cover;
  object-position: 50% 6%;
  position: relative;
  z-index: 1;
}

.about-photo::before {
  content: "";
  position: absolute;
  inset: 0;
  border-radius: var(--radius);
  background: var(--amber-tint);
  border: 1px solid var(--line-strong);
  transform: translate(12px, 12px);
}

html[dir="rtl"] .about-photo::before { transform: translate(-12px, 12px); }

.about-text h2 { margin-block-end: 4px; }

.about-text .eyebrow { margin-block-end: 10px; }

.about-text p {
  margin-block-start: 18px;
  color: var(--ink-2);
}

.about-text p.about-honest {
  color: var(--muted);
}

/* ---------- faq ---------- */

.faq-list { border-block-start: 1px solid var(--line-strong); max-width: 780px; }

.faq-item {
  border-block-end: 1px solid var(--line);
}

.faq-item summary {
  list-style: none;
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 20px;
  padding-block: 20px;
  font-weight: 600;
  font-size: 1.06rem;
}

.faq-item summary::-webkit-details-marker { display: none; }

.faq-icon {
  flex: none;
  width: 26px;
  height: 26px;
  border-radius: 50%;
  border: 1.5px solid var(--line-strong);
  display: grid;
  place-items: center;
  color: var(--amber-deep);
  font-weight: 600;
  font-size: 1rem;
  line-height: 1;
  transition: transform 200ms ease, background-color 200ms ease;
}

.faq-item[open] .faq-icon {
  transform: rotate(45deg);
  background: var(--amber-tint);
  border-color: var(--amber);
}

.faq-item p {
  padding-block-end: 22px;
  color: var(--muted);
  max-width: 62ch;
}

/* ---------- CTA ---------- */

.cta {
  background: var(--ink);
  color: #fff;
}

.cta h2 { max-width: 20ch; }

.cta .lede { color: var(--muted-on-ink); margin-block-start: 16px; }

.cta-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 14px;
  margin-block-start: 34px;
}

.cta-mail {
  font-size: 0.98rem;
  color: var(--muted-on-ink);
  margin-block-start: 22px;
}

.cta-mail a { color: #fff; text-decoration-color: var(--amber); text-underline-offset: 4px; }

/* ---------- floating whatsapp ---------- */

.wa-float {
  position: fixed;
  z-index: 60;
  bottom: 22px;
  right: 22px;
  width: 58px;
  height: 58px;
  border-radius: 50%;
  background: #25d366;
  color: #fff;
  display: grid;
  place-items: center;
  box-shadow: 0 6px 20px rgba(24, 39, 64, 0.28);
  transition: transform 160ms ease, box-shadow 160ms ease;
}

.wa-float:hover {
  transform: scale(1.06);
  box-shadow: 0 8px 26px rgba(24, 39, 64, 0.34);
}

.wa-float:active { transform: scale(0.98); }

@media (max-width: 480px) {
  .wa-float { width: 52px; height: 52px; bottom: 16px; right: 16px; }
}

/* ---------- footer ---------- */

.site-footer {
  background: var(--ink);
  color: var(--muted-on-ink);
  border-block-start: 1px solid rgba(255, 255, 255, 0.09);
  padding-block: 26px;
  font-size: 0.88rem;
}

.footer-inner {
  display: flex;
  justify-content: space-between;
  gap: 16px;
  flex-wrap: wrap;
}

/* ---------- reveal on scroll ---------- */

.reveal {
  opacity: 0;
  transform: translateY(18px);
  transition: opacity 600ms ease, transform 600ms ease;
}

.reveal.visible {
  opacity: 1;
  /* "none" (not translateY(0)) so the card doesn't become a containing block that breaks the sticky toolbar */
  transform: none;
}

@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  .reveal { opacity: 1; transform: none; transition: none; }
  .chip, .day-task, .seg, .btn { transition: none !important; }
  .seg-nudge { animation: none; }
}

/* ---------- responsive ---------- */

@media (max-width: 900px) {
  .steps { grid-template-columns: 1fr; gap: 34px; }
  .about-grid { grid-template-columns: 1fr; }
  .about-photo { max-width: 420px; }
}

@media (max-width: 760px) {
  .site-nav { display: none; }
  .trust-grid { grid-template-columns: 1fr; gap: 28px; }
  .day-row {
    grid-template-columns: 52px 1fr;
    row-gap: 10px;
  }
  .day-chips {
    grid-column: 2;
    justify-items: start;
  }
  .chip { white-space: normal; }
  .header-inner { gap: 14px; }
}

@media (max-width: 480px) {
  .btn { width: 100%; justify-content: center; }
  .hero-ctas .btn { width: 100%; }
  .header-actions .btn { width: auto; }
  .day-toolbar { justify-content: center; padding-block: 12px; }
  .day-title { display: none; }
}
