/* Timo landing — "מסמך חי" editorial design (TIMO-108).
   Theme A (default): emerald + gold, with the live intake-bot conversation in the hero.
   Theme B (html[data-theme="b"]): single-tone teal, live element hidden — kept for A/B. */

@font-face {
  font-family: "Heebo";
  font-style: normal;
  font-weight: 400 900;
  font-display: swap;
  src: url("/fonts/heebo-hebrew.woff2") format("woff2");
  unicode-range: U+0307-0308, U+0590-05FF, U+200C-2010, U+20AA, U+25CC, U+FB1D-FB4F;
}

@font-face {
  font-family: "Heebo";
  font-style: normal;
  font-weight: 400 900;
  font-display: swap;
  src: url("/fonts/heebo-latin.woff2") format("woff2");
  unicode-range: U+0000-00FF, U+0131, U+0152-0153, U+02BB-02BC, U+02C6, U+02DA, U+02DC, U+0304,
    U+0308, U+0329, U+2000-206F, U+20AC, U+2122, U+2191, U+2193, U+2212, U+2215, U+FEFF, U+FFFD;
}

@font-face {
  font-family: "Frank Ruhl Libre";
  font-style: normal;
  font-weight: 300 900;
  font-display: swap;
  src: url("/fonts/frl-hebrew.woff2") format("woff2");
  unicode-range: U+0307-0308, U+0590-05FF, U+200C-2010, U+20AA, U+25CC, U+FB1D-FB4F;
}

@font-face {
  font-family: "Frank Ruhl Libre";
  font-style: normal;
  font-weight: 300 900;
  font-display: swap;
  src: url("/fonts/frl-latin.woff2") format("woff2");
  unicode-range: U+0000-00FF, U+0131, U+0152-0153, U+02BB-02BC, U+02C6, U+02DA, U+02DC, U+0304,
    U+0308, U+0329, U+2000-206F, U+20AC, U+2122, U+2191, U+2193, U+2212, U+2215, U+FEFF, U+FFFD;
}

:root {
  --serif: "Frank Ruhl Libre", "Times New Roman", serif;
  --sans: "Heebo", -apple-system, BlinkMacSystemFont, "Segoe UI", Arial, sans-serif;

  --paper: #faf7f0;
  --paper-deep: #f1ece0;
  --card: #fffdf8;
  --ink: #21201c;
  --ink-panel: #1b1813;
  --on-dark: #efe9dc;
  --on-dark-muted: #b3aa97;
  --muted: #6b6555;
  --hairline: rgba(33, 32, 28, 0.16);
  --hairline-strong: rgba(33, 32, 28, 0.3);

  --accent: #0f7b5f;        /* emerald */
  --accent-ink: #0b5c47;
  --gold: #b3872e;          /* seals + approval moments */
  --gold-soft: rgba(179, 135, 46, 0.14);
  --error: #a1352c;
  --radius: 12px;
}

html[data-theme="b"] {
  --accent: #0d7c74;        /* single-tone teal */
  --accent-ink: #0a5f59;
  --gold: #0d7c74;          /* gold moments fall back to the accent */
  --gold-soft: rgba(13, 124, 116, 0.12);
}

html[data-theme="b"] .chat-demo { display: none; }

* { box-sizing: border-box; }

html { scroll-behavior: smooth; }

body {
  margin: 0;
  font-family: var(--sans);
  color: var(--ink);
  background: var(--paper);
  line-height: 1.7;
  font-size: 17px;
  -webkit-font-smoothing: antialiased;
  text-rendering: optimizeLegibility;
}

.container { max-width: 1040px; margin: 0 auto; padding: 0 24px; }

.container-narrow { max-width: 700px; }

h1, h2, h3 {
  font-family: var(--serif);
  color: var(--ink);
  line-height: 1.18;
  margin: 0 0 0.55em;
  font-weight: 800;
  letter-spacing: -0.005em;
}

h1 { font-size: clamp(2.1rem, 5.4vw, 3.5rem); font-weight: 900; }

h2 { font-size: clamp(1.55rem, 3.4vw, 2.25rem); }

a { color: var(--accent-ink); }

::selection { background: var(--gold-soft); }

/* ---------- Header (letterhead) ---------- */

.site-header {
  position: sticky;
  top: 0;
  z-index: 20;
  background: rgba(27, 24, 19, 0.86);
  backdrop-filter: blur(10px);
  -webkit-backdrop-filter: blur(10px);
  border-bottom: 1px solid rgba(239, 233, 220, 0.14);
}

.header-inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding-top: 13px;
  padding-bottom: 13px;
}

.logo {
  font-family: var(--serif);
  font-size: 1.55rem;
  font-weight: 900;
  color: var(--on-dark);
  letter-spacing: 0.01em;
}

.logo::after {
  content: "§";
  font-size: 0.8em;
  color: var(--gold);
  margin-inline-start: 8px;
  font-weight: 700;
}

/* ---------- Buttons ---------- */

.btn {
  display: inline-block;
  border: 1px solid transparent;
  border-radius: 10px;
  background: var(--accent);
  color: #fff;
  font-family: var(--sans);
  font-weight: 700;
  font-size: 1rem;
  padding: 13px 30px;
  text-decoration: none;
  cursor: pointer;
  transition: background 0.15s ease, transform 0.15s ease;
}

.btn:hover { background: var(--accent-ink); color: #fff; transform: translateY(-1px); }

.btn-small { padding: 8px 20px; font-size: 0.9rem; }

.btn[disabled] { opacity: 0.6; cursor: default; transform: none; }

/* ---------- Hero (flat ink, § watermark) ---------- */

.hero {
  position: relative;
  overflow: hidden;
  background: var(--ink-panel);
  color: var(--on-dark);
  text-align: center;
  padding: 96px 0 104px;
}

.hero::before {
  content: "§";
  position: absolute;
  inset-inline-start: -0.12em;
  bottom: -0.42em;
  font-family: var(--serif);
  font-size: 34rem;
  line-height: 1;
  color: rgba(239, 233, 220, 0.045);
  pointer-events: none;
}

.hero .container { position: relative; z-index: 1; }

.hero h1 {
  color: #fdfbf6;
  max-width: 18em;
  margin-inline: auto;
  margin-bottom: 0.5em;
}

.hero h1 .grad {
  background: none;
  -webkit-text-fill-color: currentColor;
  color: var(--gold);
}

html[data-theme="b"] .hero h1 .grad { color: #7fd6c8; }

.subhead {
  font-size: 1.13rem;
  color: var(--on-dark-muted);
  max-width: 37em;
  margin: 0 auto 2.1em;
}

/* ---------- The live intake-bot conversation (theme A) ---------- */

.chat-demo {
  max-width: 30em;
  margin: 0 auto 2.2em;
  background: var(--card);
  color: var(--ink);
  border: 1px solid var(--hairline);
  border-radius: var(--radius);
  text-align: start;
  box-shadow: 0 14px 40px -18px rgba(0, 0, 0, 0.55);
  overflow: hidden;
}

.chat-head {
  display: flex;
  align-items: center;
  gap: 9px;
  font-size: 0.82rem;
  letter-spacing: 0.05em;
  color: var(--muted);
  border-bottom: 1px solid var(--hairline);
  padding: 10px 18px;
}

.bot-avatar {
  flex: none;
  display: grid;
  place-items: center;
  width: 24px;
  height: 24px;
  border-radius: 50%;
  background: var(--accent);
  color: #fff;
  font-family: var(--serif);
  font-weight: 800;
  font-size: 0.8rem;
  line-height: 1;
}

.chat-body {
  padding: 14px 18px 18px;
  min-height: 288px;
  display: flex;
  flex-direction: column;
  align-items: stretch;
  gap: 9px;
  opacity: 1;
  transition: opacity 0.4s ease;
}

.chat-body.fade { opacity: 0; }

.chat-row { display: flex; gap: 8px; align-items: flex-end; }

.chat-row.user { justify-content: flex-end; }

.chat-row .bot-avatar { width: 22px; height: 22px; font-size: 0.72rem; margin-bottom: 2px; }

.msg {
  max-width: 84%;
  padding: 8px 13px;
  border-radius: 12px;
  font-size: 0.95rem;
  line-height: 1.5;
}

.msg.bot { background: var(--paper-deep); border-start-start-radius: 4px; }

.msg.user { background: rgba(15, 123, 95, 0.12); border-start-end-radius: 4px; }

html[data-theme="b"] .msg.user { background: rgba(13, 124, 116, 0.12); }

.chat-seal {
  display: inline-flex;
  align-items: center;
  gap: 9px;
  margin-top: 7px;
  align-self: center;
  font-weight: 700;
  font-size: 0.95rem;
  color: var(--gold);
}

.chat-seal .check {
  display: grid;
  place-items: center;
  width: 24px;
  height: 24px;
  border-radius: 50%;
  border: 2px solid var(--gold);
  color: var(--gold);
  font-size: 0.72rem;
  font-weight: 800;
  transform: rotate(-8deg);
}

.dots { display: inline-flex; gap: 4px; padding: 3px 2px; }

.dots i {
  width: 5px;
  height: 5px;
  border-radius: 50%;
  background: var(--muted);
  animation: dotpulse 1s ease-in-out infinite;
}

.dots i:nth-child(2) { animation-delay: 0.18s; }

.dots i:nth-child(3) { animation-delay: 0.36s; }

@keyframes dotpulse { 40% { opacity: 0.35; transform: translateY(-2px); } }

.caret {
  display: inline-block;
  width: 2px;
  height: 1.02em;
  background: var(--accent-ink);
  vertical-align: -0.15em;
  animation: blink 1.05s steps(1) infinite;
}

@keyframes blink { 50% { opacity: 0; } }

@media (prefers-reduced-motion: reduce) {
  .caret, .dots i { animation: none; }
}

.hero .btn { font-size: 1.05rem; }

/* ---------- Sections ---------- */

.section { padding: 84px 0; }

.section-alt { background: var(--paper-deep); }

.section > .container > h2 { margin-bottom: 1em; }

/* ---------- Pain list (editorial rows) ---------- */

.pain-list {
  list-style: none;
  padding: 0;
  margin: 0;
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 0 48px;
}

.pain-list li {
  border-top: 1px solid var(--hairline);
  padding: 18px 4px 18px 0;
  padding-inline-start: 34px;
  position: relative;
}

.pain-list li::before {
  content: "✕";
  position: absolute;
  inset-inline-start: 4px;
  top: 19px;
  font-size: 0.85rem;
  font-weight: 800;
  color: var(--error);
}

/* ---------- Feature paragraphs (serif, editorial) ---------- */

.onetpl p {
  font-family: var(--serif);
  font-size: 1.28rem;
  line-height: 1.9;
  max-width: 42em;
  margin: 0;
}

/* ---------- Steps (flat cards, serif numerals, seal on 3) ---------- */

.steps {
  list-style: none;
  padding: 0;
  margin: 0 0 8px;
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 26px;
}

.steps li {
  position: relative;
  background: var(--card);
  border: 1px solid var(--hairline);
  border-radius: var(--radius);
  padding: 22px 24px;
}

.steps li:not(:last-child)::after {
  content: "";
  position: absolute;
  top: 50%;
  inset-inline-end: -19px;
  transform: translateY(-50%);
  width: 0;
  height: 0;
  border-block: 6px solid transparent;
  border-inline-start: 9px solid var(--hairline-strong);
}

.steps p { margin: 0; color: var(--muted); font-size: 0.98rem; }

.step-head {
  display: flex;
  align-items: baseline;
  gap: 14px;
  padding-bottom: 13px;
  margin-bottom: 13px;
  border-bottom: 1px solid var(--hairline);
}

.step-head h3 { margin: 0; font-size: 1.16rem; line-height: 1.3; }

.step-num {
  flex: none;
  font-family: var(--serif);
  font-size: 2.1rem;
  font-weight: 900;
  line-height: 1;
  color: var(--accent);
  background: none;
  width: auto;
  height: auto;
  box-shadow: none;
}

.step-num::after { content: "."; }

.steps li.step-final { border: 1.5px solid var(--gold); }

.step-approval {
  display: inline-flex;
  align-items: center;
  gap: 9px;
  margin-top: 14px;
  font-weight: 700;
  color: var(--gold);
}

.step-approval .check {
  display: grid;
  place-items: center;
  width: 26px;
  height: 26px;
  border-radius: 50%;
  border: 2px solid var(--gold);
  color: var(--gold);
  font-size: 0.78rem;
  font-weight: 800;
  transform: rotate(-8deg);
}

.benefit-line {
  font-family: var(--serif);
  font-style: italic;
  font-weight: 500;
  color: var(--accent-ink);
  margin: 26px 0 0;
  padding-inline-start: 14px;
  border-inline-start: 3px solid var(--gold);
}

/* ---------- Guarantee (flat ink, seal) ---------- */

.guarantee {
  position: relative;
  overflow: hidden;
  background: var(--ink-panel);
  color: var(--on-dark);
  text-align: center;
  padding: 100px 0;
}

.guarantee::before {
  content: "§";
  position: absolute;
  inset-inline-end: -0.1em;
  top: -0.35em;
  font-family: var(--serif);
  font-size: 26rem;
  line-height: 1;
  color: rgba(239, 233, 220, 0.045);
  pointer-events: none;
}

.guarantee .container { position: relative; z-index: 1; }

.eyebrow {
  display: inline-block;
  font-size: 0.82rem;
  font-weight: 700;
  letter-spacing: 0.22em;
  color: var(--gold);
  background: none;
  border: none;
  border-top: 1px solid var(--gold);
  border-bottom: 1px solid var(--gold);
  border-radius: 0;
  padding: 7px 4px;
  margin: 0 0 26px;
}

.guarantee-headline {
  font-family: var(--serif);
  font-size: clamp(2rem, 5.4vw, 3.4rem);
  font-weight: 900;
  color: #fdfbf6;
  margin: 0 0 0.55em;
}

.guarantee-headline .grad {
  background: none;
  -webkit-text-fill-color: currentColor;
  color: var(--gold);
}

html[data-theme="b"] .guarantee-headline .grad { color: #7fd6c8; }

.guarantee-body {
  max-width: 40em;
  margin: 0 auto;
  font-size: 1.1rem;
  color: var(--on-dark-muted);
}

/* ---------- Signup ---------- */

.section-signup { background: var(--paper-deep); }

.signup-card {
  background: var(--card);
  border: 1px solid var(--hairline);
  border-radius: 14px;
  padding: 38px 38px 32px;
  margin-top: 24px;
}

form { margin: 0; }

.field { margin-bottom: 20px; }

.field label { display: block; font-weight: 600; color: var(--ink); margin-bottom: 7px; }

.req { color: var(--error); }

input[type="email"], select, textarea {
  width: 100%;
  padding: 12px 15px;
  border: 1px solid var(--hairline-strong);
  border-radius: 8px;
  background: #fff;
  font-family: var(--sans);
  font-size: 1rem;
  color: var(--ink);
  transition: border-color 0.15s ease, box-shadow 0.15s ease;
}

input[type="email"]:focus, select:focus, textarea:focus {
  outline: none;
  border-color: var(--accent);
  box-shadow: 0 0 0 3px rgba(15, 123, 95, 0.18);
}

textarea { resize: vertical; }

.hp-field {
  position: absolute;
  inset-inline-start: -9999px;
  width: 1px;
  height: 1px;
  overflow: hidden;
}

.form-error { color: var(--error); font-weight: 600; }

.privacy-microcopy { font-size: 0.84rem; color: var(--muted); margin: 18px 0 0; }

.form-success {
  background: var(--card);
  border: 1.5px solid var(--gold);
  border-radius: 14px;
  padding: 34px;
  font-weight: 600;
  color: var(--ink);
  margin-top: 24px;
  text-align: center;
}

/* ---------- FAQ ---------- */

.faq { margin: 0; }

.faq dt {
  font-family: var(--serif);
  font-weight: 700;
  color: var(--ink);
  font-size: 1.14rem;
  margin: 0;
  padding: 22px 0 6px;
}

.faq dd { margin: 0; padding: 0 0 22px; color: var(--muted); border-bottom: 1px solid var(--hairline); }

.faq dd:last-child { border-bottom: none; }

/* ---------- Footer ---------- */

.site-footer {
  background: var(--ink-panel);
  color: var(--on-dark-muted);
  padding: 32px 0;
  text-align: center;
  font-size: 0.95rem;
}

.site-footer a { color: var(--on-dark); text-decoration: none; }

.site-footer a:hover { text-decoration: underline; }

/* ---------- Inner pages ---------- */

.page-plain h1 { font-size: clamp(1.7rem, 4vw, 2.4rem); }

.page-plain h2 { font-size: 1.3rem; margin-top: 1.8em; }

/* ---------- Responsive ---------- */

@media (max-width: 760px) {
  .section { padding: 54px 0; }
  .hero { padding: 64px 0 72px; }
  .pain-list { grid-template-columns: 1fr; }
  .steps { grid-template-columns: 1fr; }
  .steps li:not(:last-child)::after {
    top: auto;
    bottom: -20px;
    inset-inline-end: 50%;
    transform: translateX(50%);
    border-inline: 6px solid transparent;
    border-block-start: 9px solid var(--hairline-strong);
    border-block-end: none;
  }
  .signup-card { padding: 26px 20px; }
  .hero::before, .guarantee::before { font-size: 18rem; }
}
