/* Clara AI — landing + privacy. Plum ink on rose-white; the chat is the hero. */
:root {
  --paper: #fbf6f7;      /* rose-white */
  --ink: #2a1430;        /* deep plum */
  --soft: #6e5a72;       /* muted plum for secondary text */
  --rose: #b23a5b;       /* lipstick rosewood — actions only */
  --rose-deep: #8f2a47;
  --nude: #ecdcd6;       /* powder / lines */
  --bubble-in: #ffffff;
  --bubble-out: #dcf8c6; /* WhatsApp's own sent-bubble green */
  --chat: #efe7de;
  --display: "Frank Ruhl Libre", "David", serif;
  --body: "Assistant", "Arial Hebrew", Arial, sans-serif;
}

* { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; }
body {
  margin: 0;
  background: var(--paper);
  color: var(--ink);
  font: 400 18px/1.6 var(--body);
}
a { color: inherit; }
a:focus-visible, button:focus-visible { outline: 3px solid var(--rose); outline-offset: 3px; border-radius: 6px; }

.top {
  display: flex;
  align-items: center;
  justify-content: space-between;
  max-width: 1120px;
  margin: 0 auto;
  padding: 20px 20px 0;
}
.logo {
  font: 900 28px/1 var(--display);
  text-decoration: none;
  letter-spacing: -0.01em;
  direction: ltr;
}
.logo span {
  font: 700 13px/1 var(--body);
  color: var(--rose);
  margin-inline-start: 4px;
  vertical-align: super;
}
.top-cta {
  font-weight: 700;
  text-decoration: none;
  border-bottom: 2px solid var(--rose);
  padding-bottom: 2px;
}

main { max-width: 1120px; margin: 0 auto; padding: 0 20px; }

/* ---------- hero ---------- */
.hero {
  display: grid;
  grid-template-columns: 1.1fr 0.9fr;
  gap: 56px;
  align-items: center;
  padding: 48px 0 72px;
}
.clock {
  margin: 0;
  font: 900 clamp(88px, 15vw, 168px)/0.9 var(--display);
  color: var(--nude);
  letter-spacing: -0.03em;
  direction: ltr;
  text-align: right;
  font-variant-numeric: lining-nums;
}
h1 {
  margin: -0.2em 0 20px;
  font: 700 clamp(32px, 4.6vw, 52px)/1.12 var(--display);
  letter-spacing: -0.01em;
  max-width: 18ch;
  position: relative;
}
.lead { margin: 0 0 28px; color: var(--soft); max-width: 46ch; font-size: 19px; }
.cta {
  display: inline-block;
  background: var(--rose);
  color: #fff;
  font-weight: 700;
  font-size: 18px;
  text-decoration: none;
  padding: 15px 26px;
  border-radius: 999px;
  transition: background 0.15s;
}
.cta:hover { background: var(--rose-deep); }
.fine { margin: 10px 0 0; font-size: 15px; color: var(--soft); }

/* the demo: profession tabs over the phone */
.demo {
  justify-self: center;
  width: 100%;
  max-width: 380px;
  display: flex;
  flex-direction: column;
  gap: 14px;
}
.tabs {
  display: flex;
  gap: 6px;
  justify-content: center;
}
.tabs button {
  font: 600 15px/1 var(--body);
  color: var(--soft);
  background: transparent;
  border: 1.5px solid var(--nude);
  border-radius: 999px;
  padding: 9px 14px;
  cursor: pointer;
}
.tabs button[aria-selected="true"] {
  color: var(--paper);
  background: var(--ink);
  border-color: var(--ink);
}

/* the phone */
.phone {
  background: var(--chat);
  border: 10px solid var(--ink);
  border-radius: 38px;
  overflow: hidden;
  width: 100%;
  box-shadow: 0 30px 60px -30px rgba(42, 20, 48, 0.45);
}
.phone-bar {
  display: flex;
  align-items: center;
  gap: 10px;
  background: #075e54;
  color: #fff;
  padding: 14px 16px;
}
.phone-bar b { display: block; font-size: 16px; line-height: 1.2; }
.phone-bar small { font-size: 13px; opacity: 0.85; }
.avatar {
  display: grid;
  place-items: center;
  width: 38px;
  height: 38px;
  border-radius: 50%;
  background: var(--nude);
  color: var(--ink);
  font: 700 18px/1 var(--display);
}
.chat {
  list-style: none;
  margin: 0;
  padding: 16px 12px 20px;
  display: flex;
  flex-direction: column;
  gap: 8px;
  min-height: 360px;
}
.chat li {
  max-width: 86%;
  padding: 8px 11px;
  border-radius: 10px;
  font-size: 15.5px;
  line-height: 1.45;
  box-shadow: 0 1px 1px rgba(0, 0, 0, 0.08);
  animation: msg 0.45s ease-out both;
  animation-delay: calc(0.4s + var(--d) * 1.3s);
}
/* RTL: the bride's messages come in on the left, the replies (sent from the business) sit on the right */
.chat .in { align-self: flex-end; background: var(--bubble-in); }
.chat .out { align-self: flex-start; background: var(--bubble-out); }
@keyframes msg {
  from { opacity: 0; transform: translateY(8px); }
  to { opacity: 1; transform: none; }
}

/* ---------- what it does ---------- */
h2 {
  font: 700 clamp(28px, 3.4vw, 40px)/1.15 var(--display);
  margin: 0 0 32px;
}
.does { padding: 64px 0; border-top: 1px solid var(--nude); }
.does-grid {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 40px 56px;
}
.does h3 { font: 700 21px/1.3 var(--body); margin: 0 0 6px; }
/* a feature that isn't connected yet — said plainly on the card */
.soon {
  display: inline-block;
  vertical-align: middle;
  margin-inline-start: 6px;
  padding: 2px 9px;
  border: 1px solid currentColor;
  border-radius: 999px;
  font-size: 13px;
  font-weight: 700;
  line-height: 1.4;
  opacity: 0.75;
}
.does p { margin: 0; color: var(--soft); max-width: 44ch; }

/* ---------- how ---------- */
.how { padding: 64px 0; border-top: 1px solid var(--nude); }
.steps {
  margin: 0;
  padding: 0;
  list-style: none;
  counter-reset: step;
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 32px;
}
.steps li { counter-increment: step; color: var(--soft); }
.steps li::before {
  content: counter(step);
  display: block;
  font: 900 56px/1 var(--display);
  color: var(--rose);
  margin-bottom: 10px;
}
.steps b { display: block; color: var(--ink); font-size: 19px; margin-bottom: 4px; }

/* ---------- closing ---------- */
.last {
  margin: 32px 0 80px;
  padding: 56px 40px;
  background: var(--ink);
  color: var(--paper);
  border-radius: 28px;
}
.last h2 { margin-bottom: 10px; max-width: 22ch; }
.last p { margin: 0 0 28px; opacity: 0.85; }

/* ---------- legal footer ---------- */
.legal {
  max-width: 1120px;
  margin: 0 auto;
  padding: 28px 20px 40px;
  border-top: 1px solid var(--nude);
  font-size: 15px;
  color: var(--soft);
}
.legal p { margin: 0 0 4px; }

/* ---------- privacy page ---------- */
.doc { max-width: 720px; padding: 32px 20px 64px; }
.doc h1 { max-width: none; margin: 0 0 8px; font-size: clamp(30px, 4vw, 42px); }
.doc .updated { color: var(--soft); margin: 0 0 32px; }
.doc h2 { font-size: 24px; margin: 36px 0 10px; }
.doc p, .doc li { color: var(--ink); }
.doc ul { padding-inline-start: 22px; }
.doc li { margin-bottom: 6px; }

/* ---------- small screens ---------- */
@media (max-width: 860px) {
  .hero { grid-template-columns: 1fr; gap: 40px; padding: 28px 0 56px; }
  .clock { text-align: right; }
  .does-grid, .steps { grid-template-columns: 1fr; gap: 28px; }
  .last { padding: 40px 24px; }
}

@media (prefers-reduced-motion: reduce) {
  .chat li { animation: none; }
  .cta { transition: none; }
}

/* ---------- accessibility & legal ---------- */
.skip {
  position: absolute;
  inset-inline-start: 12px;
  top: -60px;
  z-index: 50;
  background: var(--ink);
  color: var(--paper);
  padding: 10px 16px;
  border-radius: 8px;
  font-weight: 700;
  text-decoration: none;
}
.skip:focus { top: 12px; }
.fine a { color: var(--ink); }
.demo-note {
  margin: 0;
  text-align: center;
  font-size: 14px;
  color: var(--soft);
}
.legal .legal-links {
  display: flex;
  flex-wrap: wrap;
  gap: 6px 20px;
  margin-top: 8px;
}
.nw { white-space: nowrap; }
