@import url("/fonts/fonts.css");

/* chewy: white page, warm ink, clay accent taken from the app's own bubble */
:root {
  --paper: #ffffff;
  --wash: #fbf6f2;
  --line: #ece2da;
  --ink: #2a211c;
  --ink-2: #5b4f47;
  --clay: #d97757;      /* decoration, bubble borders, large type only */
  --clay-btn: #c2603f;  /* buttons: bold 21px+ white text */
  --clay-ink: #a9472a;  /* links and small accent text */
  --focus: #1f5fbf;
  --serif: "Frank Ruhl Libre", "David", Georgia, serif;
  --sans: "Rubik", "Arial Hebrew", Arial, sans-serif;
  --measure: 34em;
  --pad: clamp(1.25rem, 5vw, 3rem);
}

html[lang="he"] [data-l="en"],
html[lang="en"] [data-l="he"] { display: none !important; }

* { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; scroll-behavior: smooth; }
@media (prefers-reduced-motion: reduce) { html { scroll-behavior: auto; } }

body {
  margin: 0;
  background: var(--paper);
  color: var(--ink);
  font: 400 1.25rem/1.6 var(--sans);
}
@media (min-width: 900px) { body { font-size: 1.3125rem; } }

h1, h2, h3 { font-family: var(--serif); font-weight: 700; line-height: 1.15; margin: 0 0 .5em; color: var(--ink); }
h1 { font-size: clamp(2.6rem, 7vw, 4.4rem); letter-spacing: -0.01em; }
h2 { font-size: clamp(2rem, 4.4vw, 2.75rem); }
h3 { font-size: 1.45rem; }
p { margin: 0 0 1em; max-width: var(--measure); }
a { color: var(--clay-ink); text-underline-offset: .18em; }
a:hover { color: var(--ink); }
:focus-visible { outline: 3px solid var(--focus); outline-offset: 3px; border-radius: 6px; }

.skip { position: absolute; inset-inline-start: 1rem; top: -4rem; background: var(--ink); color: #fff; padding: .6rem 1rem; border-radius: 8px; z-index: 10; }
.skip:focus { top: 1rem; }

.wrap { max-width: 72rem; margin: 0 auto; padding-inline: var(--pad); }

/* header */
.top { display: flex; align-items: center; justify-content: space-between; gap: 1rem; padding-block: 1.1rem; }
.mark { font: 700 1.9rem/1 var(--sans); color: var(--clay-ink); text-decoration: none; letter-spacing: -0.02em; display: inline-flex; align-items: center; gap: .45rem; }
.mark img { width: 2.75rem; height: 2.75rem; image-rendering: pixelated; }
.top nav { display: flex; align-items: center; gap: .6rem; }
.lang {
  font: 500 1.05rem/1 var(--sans); color: var(--ink); background: var(--paper);
  border: 2px solid var(--line); border-radius: 999px; padding: .75rem 1.1rem; min-height: 48px; cursor: pointer;
}
.lang:hover { border-color: var(--clay); }

/* buttons */
.btn {
  display: inline-flex; align-items: center; justify-content: center; min-height: 60px; padding: .9rem 1.6rem;
  font: 700 1.3rem/1.2 var(--sans); text-decoration: none; border-radius: 14px; border: 2px solid transparent; cursor: pointer;
}
.btn-main { background: var(--clay-btn); color: #fff; }
.btn-main:hover { background: #a9472a; color: #fff; }
.btn-quiet { background: var(--paper); color: var(--ink); border-color: var(--ink); }
.btn-quiet:hover { background: var(--wash); color: var(--ink); }
.btn-small { min-height: 48px; padding: .6rem 1.1rem; font-size: 1.05rem; }

/* hero: the conversation is the picture */
.hero { display: grid; gap: 2.5rem; padding-block: 2rem 4rem; align-items: center; }
@media (min-width: 900px) { .hero { grid-template-columns: 1.1fr .9fr; gap: 4rem; padding-block: 3rem 6rem; } }
.hero .lead { font-size: 1.4rem; color: var(--ink-2); }
.hero .actions { display: flex; flex-wrap: wrap; gap: .9rem; margin-top: 1.6rem; }

.talk { display: flex; flex-direction: column; gap: 1.1rem; }
.bubble { max-width: 24rem; padding: 1.05rem 1.3rem; border-radius: 22px; font-size: 1.35rem; line-height: 1.45; }
.bubble small { display: block; font-size: .95rem; font-weight: 500; margin-bottom: .2rem; }
.bubble.her { align-self: flex-start; background: var(--wash); border: 2px solid var(--line); border-end-start-radius: 6px; }
.bubble.her small { color: var(--ink-2); }
.bubble.him { align-self: flex-end; background: var(--paper); border: 2px solid var(--clay); border-end-end-radius: 6px; box-shadow: 0 10px 30px -18px rgba(169, 71, 42, .55); }
.bubble.him small { color: var(--clay-ink); }
.bubble.step { font-size: 1.15rem; color: var(--ink-2); border-style: dashed; box-shadow: none; }

/* one orchestrated moment: the three bubbles arrive in order, once */
@media (prefers-reduced-motion: no-preference) {
  .talk .bubble { opacity: 0; transform: translateY(10px); animation: arrive .5s ease-out forwards; }
  .talk .bubble:nth-child(1) { animation-delay: .25s; }
  .talk .bubble:nth-child(2) { animation-delay: 1.15s; }
  .talk .bubble:nth-child(3) { animation-delay: 2.1s; }
  @keyframes arrive { to { opacity: 1; transform: none; } }
}

section { padding-block: clamp(3rem, 8vw, 6rem); }
.band { background: var(--wash); border-block: 1px solid var(--line); }
.intro { max-width: var(--measure); }
.intro p { color: var(--ink-2); }

/* videos: real phones */
.clips { display: grid; gap: 3rem; margin-top: 2.5rem; }
@media (min-width: 900px) { .clips { grid-template-columns: repeat(3, 1fr); gap: 2.5rem; } }
.clip h3 { margin-top: 1.25rem; }
.clip p { color: var(--ink-2); font-size: 1.15rem; }
.phone {
  position: relative; margin: 0 auto; width: min(100%, 330px); aspect-ratio: 1080 / 2340;
  border-radius: 38px; padding: 10px; background: #1d1714; box-shadow: 0 30px 60px -35px rgba(42, 33, 28, .6);
}
.phone video { width: 100%; height: 100%; display: block; border-radius: 29px; background: #fff; object-fit: cover; }
.note { font-size: 1.05rem; color: var(--ink-2); margin-top: 2rem; }

/* steps: an actual sequence, so numbers */
.steps { list-style: none; padding: 0; margin: 2.5rem 0 0; display: grid; gap: 1.6rem; counter-reset: s; }
@media (min-width: 900px) { .steps { grid-template-columns: repeat(3, 1fr); gap: 2.5rem; } }
.steps li { counter-increment: s; display: grid; grid-template-columns: auto 1fr; gap: 1rem; align-items: start; }
.steps li::before {
  content: counter(s); font: 700 1.6rem/1 var(--serif); color: var(--clay-ink);
  width: 3rem; height: 3rem; border-radius: 50%; border: 2px solid var(--clay); display: grid; place-items: center;
}
.steps strong { display: block; font-size: 1.3rem; margin-bottom: .2rem; }
.steps span { color: var(--ink-2); }

/* pricing */
.plans { display: grid; gap: 1.5rem; margin-top: 2.5rem; max-width: 52rem; }
@media (min-width: 760px) { .plans { grid-template-columns: 1fr 1fr; } }
.plan { border: 2px solid var(--line); border-radius: 22px; padding: 1.8rem; display: flex; flex-direction: column; gap: .4rem; background: var(--paper); }
.plan.two { border-color: var(--clay); }
.plan h3 { margin: 0; }
.price { font: 700 3rem/1.1 var(--serif); margin: .4rem 0 0; }
.price span { font: 400 1.15rem var(--sans); color: var(--ink-2); }
.plan p { color: var(--ink-2); margin: 0 0 1.2rem; }
.plan .btn { margin-top: auto; }
.fine { color: var(--ink-2); font-size: 1.05rem; margin-top: 1.2rem; }

/* safety */
.safe { display: grid; gap: 1.1rem; max-width: 46rem; margin: 0; padding: 0; list-style: none; }
.safe li { font-size: 1.45rem; font-family: var(--serif); font-weight: 500; line-height: 1.35; padding-inline-start: 1.4rem; border-inline-start: 4px solid var(--clay); }

/* faq */
.faq { max-width: 46rem; margin-top: 2rem; }
.faq details { border-bottom: 2px solid var(--line); }
.faq summary {
  cursor: pointer; list-style: none; padding: 1.2rem 0; font-weight: 500; font-size: 1.3rem; min-height: 48px;
  display: flex; justify-content: space-between; gap: 1rem; align-items: center;
}
.faq summary::-webkit-details-marker { display: none; }
.faq summary::after { content: "+"; font: 400 1.9rem/1 var(--sans); color: var(--clay-ink); }
.faq details[open] summary::after { content: "−"; }
.faq details p { color: var(--ink-2); padding-bottom: 1.2rem; margin: 0; }

/* footer */
footer { border-top: 1px solid var(--line); padding-block: 2.5rem 3rem; color: var(--ink-2); font-size: 1.05rem; }
footer .wrap { display: flex; flex-wrap: wrap; gap: 1rem 2rem; justify-content: space-between; }
footer nav { display: flex; flex-wrap: wrap; gap: .5rem 1.5rem; }
footer a { color: var(--ink); }

/* legal + thanks pages */
.doc { max-width: 46rem; padding-block: 2rem 5rem; }
.doc h1 { font-size: clamp(2.2rem, 5vw, 3rem); }
.doc h2 { font-size: 1.6rem; margin-top: 2rem; }
.doc li { margin-bottom: .5em; }
.updated { color: var(--ink-2); font-size: 1rem; }
.keys { display: grid; gap: 1rem; margin: 1.5rem 0 2rem; }
.key { display: flex; flex-wrap: wrap; align-items: center; gap: 1rem; border: 2px solid var(--clay); border-radius: 18px; padding: 1.1rem 1.3rem; }
.key code { font: 700 clamp(1.6rem, 6vw, 2.3rem)/1.2 ui-monospace, "SFMono-Regular", Menlo, monospace; letter-spacing: .06em; direction: ltr; unicode-bidi: isolate; }
.status { font-size: 1.3rem; }

.get { margin-top: 2.5rem; display: grid; gap: .8rem; max-width: 40rem; }
.get p { color: var(--ink-2); font-size: 1.1rem; margin: 0; }
.get .btn { justify-self: start; }
