/* ── Tonelle landing — palette взята из бренд-лого ── */

:root {
  --bg:           #f4ebe2;     /* warm cream from logo */
  --bg-card:      #ffffff;
  --bg-elevated:  #ede2d6;
  --accent:       #a87169;     /* deeper rose for CTAs */
  --accent-soft:  rgba(168, 113, 105, 0.10);
  --accent-deep:  #7a4f49;
  --rose:         #c79993;     /* brand rose from drop */
  --gold:         #d4b076;     /* brand gold from drop */
  --text:         #3a2b1f;     /* deep brown from wordmark */
  --text-muted:   #6e5a4c;
  --text-dim:     #a08e7e;
  --border:       #e0d3c2;
  --success:      #2f8b5f;

  --radius-sm:  10px;
  --radius:     18px;
  --radius-lg:  28px;

  --shadow-sm: 0 1px 2px rgba(58, 43, 31, 0.05);
  --shadow:    0 8px 28px rgba(58, 43, 31, 0.08);
  --shadow-lg: 0 24px 60px rgba(58, 43, 31, 0.14);

  --font-display: 'Playfair Display', 'Didot', Georgia, serif;
  --font-sans:    'DM Sans', -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, sans-serif;
  --font-mono:    'JetBrains Mono', 'SF Mono', Menlo, monospace;
}

/* Hebrew typefaces (RTL): swap display + sans automatically */
html[lang="he"] {
  --font-display: 'Frank Ruhl Libre', 'Playfair Display', Georgia, serif;
  --font-sans:    'Heebo', 'DM Sans', -apple-system, BlinkMacSystemFont, 'Segoe UI', sans-serif;
}

* { box-sizing: border-box; -webkit-tap-highlight-color: transparent; }

html { scroll-behavior: smooth; }

body {
  margin: 0;
  font-family: var(--font-sans);
  background: var(--bg);
  color: var(--text);
  line-height: 1.55;
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
}

a { color: var(--accent); text-decoration: none; transition: color .15s ease; }
a:hover { color: var(--accent-deep); }

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

.container {
  width: 100%;
  max-width: 1140px;
  margin: 0 auto;
  padding: 0 24px;
}

/* ── Nav ─────────────────────────────────────────────── */
.nav {
  position: sticky;
  top: 0;
  z-index: 50;
  background: rgba(244, 235, 226, 0.85);
  backdrop-filter: saturate(180%) blur(14px);
  -webkit-backdrop-filter: saturate(180%) blur(14px);
  border-bottom: 1px solid transparent;
  transition: border-color .2s ease;
}
.nav.scrolled { border-bottom-color: var(--border); }
.nav__row {
  display: flex; align-items: center; justify-content: space-between;
  height: 64px;
}
.brand { display: flex; align-items: center; gap: 10px; text-decoration: none; }
.brand__logo {
  width: 44px; height: 44px;
  object-fit: contain;
  display: block;
  flex-shrink: 0;
}
.brand__name {
  font-family: var(--font-display);
  font-size: 24px;
  font-weight: 600;
  letter-spacing: -0.005em;
  color: var(--text);
  line-height: 1;
}
.nav__links { display: flex; gap: 28px; align-items: center; }
.nav__links a {
  color: var(--text-muted);
  font-size: 14.5px;
  font-weight: 500;
}
.nav__links a:hover { color: var(--text); }
@media (max-width: 920px) { .nav__links { display: none; } }

/* Language switcher */
.lang-switch {
  display: inline-flex;
  align-items: center;
  background: var(--bg-elevated);
  border-radius: 999px;
  padding: 3px;
  gap: 2px;
}
.lang-switch__btn {
  border: none;
  background: transparent;
  padding: 5px 11px;
  border-radius: 999px;
  font-family: var(--font-sans);
  font-size: 12px;
  font-weight: 600;
  color: var(--text-muted);
  cursor: pointer;
  letter-spacing: 0.02em;
  transition: all .15s ease;
  min-width: 32px;
  line-height: 1;
}
.lang-switch__btn:hover { color: var(--text); }
.lang-switch__btn.is-active {
  background: var(--bg-card);
  color: var(--text);
  box-shadow: var(--shadow-sm);
}

/* ── Buttons ────────────────────────────────────────── */
.btn {
  display: inline-flex; align-items: center; justify-content: center;
  gap: 8px;
  padding: 12px 20px;
  border-radius: 999px;
  font-family: var(--font-sans);
  font-size: 15px;
  font-weight: 600;
  cursor: pointer;
  border: 1px solid transparent;
  transition: transform .12s ease, box-shadow .15s ease, background .15s ease, color .15s ease;
  white-space: nowrap;
}
.btn:active { transform: scale(0.97); }
.btn--primary { background: var(--accent); color: #fff; box-shadow: var(--shadow-sm); }
.btn--primary:hover { background: var(--accent-deep); color: #fff; box-shadow: var(--shadow); }
.btn--ghost { background: var(--bg-card); color: var(--text); border-color: var(--border); }
.btn--ghost:hover { border-color: var(--accent); color: var(--accent); }
.btn--lg { padding: 16px 28px; font-size: 16px; }
.btn--sm { padding: 8px 16px; font-size: 14px; }

/* ── Hero ───────────────────────────────────────────── */
.hero { padding: 56px 0 60px; position: relative; overflow: hidden; }
.hero__lockup {
  display: block;
  height: 84px;
  width: auto;
  margin: 0 0 20px;
  filter: drop-shadow(0 4px 18px rgba(58, 43, 31, 0.08));
}
@media (max-width: 900px) {
  .hero__lockup { height: 72px; margin-left: auto; margin-right: auto; }
}
.hero::before {
  content: ""; position: absolute;
  top: -160px; right: -160px;
  width: 520px; height: 520px;
  background: radial-gradient(circle, rgba(199, 153, 147, 0.18) 0%, transparent 70%);
  pointer-events: none;
  z-index: 0;
}
.hero::after {
  content: ""; position: absolute;
  bottom: -200px; left: -120px;
  width: 480px; height: 480px;
  background: radial-gradient(circle, rgba(212, 176, 118, 0.16) 0%, transparent 70%);
  pointer-events: none;
  z-index: 0;
}
.hero__grid {
  display: grid;
  grid-template-columns: 1.1fr 0.9fr;
  gap: 60px;
  align-items: center;
  position: relative;
  z-index: 1;
}
@media (max-width: 900px) {
  .hero { padding: 56px 0 40px; }
  .hero__grid { grid-template-columns: 1fr; gap: 48px; }
}

.hero__pill {
  display: inline-flex; align-items: center; gap: 8px;
  padding: 6px 14px;
  background: rgba(168, 113, 105, 0.10);
  color: var(--accent-deep);
  border-radius: 999px;
  font-size: 13px;
  font-weight: 500;
  margin-bottom: 24px;
}
.hero__pill .dot {
  width: 6px; height: 6px; border-radius: 50%;
  background: linear-gradient(180deg, var(--rose) 0%, var(--gold) 100%);
}

.hero__title {
  font-family: var(--font-display);
  font-size: clamp(40px, 5.6vw, 64px);
  line-height: 1.05;
  letter-spacing: -0.02em;
  font-weight: 700;
  margin: 0 0 24px;
  color: var(--text);
}
.hero__title em {
  font-style: italic;
  color: var(--accent);
  font-weight: 400;
}
.hero__title > span,
.hero__title > em {
  display: block;
}
.hero__lead {
  font-size: 19px;
  color: var(--text-muted);
  max-width: 540px;
  margin: 0 0 36px;
}
.hero__cta { display: flex; gap: 12px; flex-wrap: wrap; align-items: center; }
.hero__small {
  margin-top: 16px;
  font-size: 13px;
  color: var(--text-dim);
  display: flex; align-items: center; gap: 8px;
}

/* ── Phone mockup ───────────────────────────────────── */
.mockup-wrap { display: flex; justify-content: center; }
.phone {
  width: 320px;
  aspect-ratio: 9 / 19.5;
  background: #1a1410;
  border-radius: 44px;
  padding: 14px;
  box-shadow:
    0 0 0 2px #2a201a,
    0 30px 60px rgba(58, 43, 31, 0.22),
    0 12px 32px rgba(58, 43, 31, 0.10);
  position: relative;
  transform: rotate(-3deg);
  transition: transform .4s cubic-bezier(.25,.46,.45,.94);
}
.phone:hover { transform: rotate(0deg) translateY(-6px); }
.phone__notch {
  position: absolute;
  top: 18px; left: 50%; transform: translateX(-50%);
  width: 100px; height: 28px;
  background: #1a1410;
  border-radius: 18px;
  z-index: 2;
}
.phone__screen {
  width: 100%; height: 100%;
  border-radius: 32px;
  background: #15110d;
  overflow: hidden;
  position: relative;
  display: flex; flex-direction: column;
  color: #f5ede0;
  font-size: 12px;
}
.screen__header {
  padding: 56px 18px 14px;
  display: flex; align-items: center; justify-content: space-between;
}
.screen__title {
  font-family: var(--font-display);
  font-size: 22px;
  letter-spacing: -0.01em;
  color: #f5ede0;
}
.screen__avatar {
  width: 32px; height: 32px;
  border-radius: 50%;
  background: rgba(199, 153, 147, 0.20);
  color: var(--rose);
  display: grid; place-items: center;
  font-weight: 700;
  font-size: 11px;
}
.screen__stats {
  margin: 8px 18px 14px;
  display: grid; grid-template-columns: repeat(3, 1fr); gap: 8px;
}
.stat {
  background: #221a13;
  border: 1px solid #2c2218;
  border-radius: 14px;
  padding: 10px;
  text-align: center;
}
.stat__value {
  font-family: var(--font-mono);
  font-size: 14px;
  font-weight: 700;
}
.stat__value--rose { color: var(--rose); }
.stat__value--gold { color: var(--gold); }
.stat__label {
  font-size: 9px;
  color: #8a786a;
  margin-top: 2px;
}
.screen__section-title {
  margin: 8px 18px 8px;
  font-size: 11px;
  font-weight: 600;
  color: #b3a290;
}
.visit-card {
  margin: 0 18px 8px;
  background: #221a13;
  border: 1px solid #2c2218;
  border-radius: 14px;
  padding: 12px;
}
.visit-card__top {
  display: flex; justify-content: space-between; align-items: center;
  margin-bottom: 4px;
}
.visit-card__name { font-size: 11px; color: var(--rose); font-weight: 600; }
.visit-card__price {
  font-family: var(--font-mono);
  color: var(--gold);
  font-size: 13px;
  font-weight: 700;
}
.visit-card__sub { font-size: 10px; color: #8a786a; }
.visit-card__formula {
  margin-top: 8px;
  padding: 8px;
  background: #1a140e;
  border: 1px solid #2c2218;
  border-radius: 10px;
  font-family: var(--font-mono);
  font-size: 9.5px;
  color: #b3a290;
  line-height: 1.6;
}
.tab-bar {
  margin-top: auto;
  padding: 10px 18px 26px;
  display: flex; justify-content: space-around;
  border-top: 1px solid #221a13;
}
.tab { display: flex; flex-direction: column; align-items: center; gap: 3px; color: #8a786a; font-size: 9px; }
.tab.active { color: var(--rose); }
.tab-icon {
  width: 20px; height: 20px;
  display: grid; place-items: center;
}

/* ── Section ───────────────────────────────────────── */
.section { padding: 90px 0; }
.section--alt { background: var(--bg-card); border-top: 1px solid var(--border); border-bottom: 1px solid var(--border); }
.section__header { text-align: center; max-width: 720px; margin: 0 auto 56px; }
.section__eyebrow {
  font-size: 13px;
  color: var(--accent);
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 0.08em;
  margin-bottom: 14px;
}
.section__title {
  font-family: var(--font-display);
  font-size: clamp(30px, 3.6vw, 44px);
  line-height: 1.1;
  letter-spacing: -0.015em;
  margin: 0 0 18px;
  color: var(--text);
}
.section__lead { font-size: 17px; color: var(--text-muted); margin: 0; }

/* ── Pain points ──────────────────────────────────── */
.pain {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 24px;
}
@media (max-width: 900px) { .pain { grid-template-columns: 1fr; } }

.pain__item {
  position: relative;
  padding: 32px 28px;
  background: var(--bg-card);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  overflow: hidden;
}
.pain__item::before {
  content: "";
  position: absolute;
  inset-inline-start: 0;
  inset-block-start: 0;
  width: 4px;
  height: 100%;
  background: linear-gradient(180deg, var(--rose) 0%, var(--gold) 100%);
}
.pain__num {
  font-family: var(--font-mono);
  font-size: 12px;
  font-weight: 700;
  color: var(--accent);
  letter-spacing: 0.10em;
  margin-bottom: 14px;
}
.pain__title {
  font-family: var(--font-display);
  font-size: 21px;
  font-weight: 600;
  letter-spacing: -0.01em;
  color: var(--text);
  margin: 0 0 10px;
}
.pain__text { color: var(--text-muted); font-size: 15.5px; margin: 0; line-height: 1.6; }

/* ── Features ──────────────────────────────────────── */
.features {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 20px;
}
@media (max-width: 900px) { .features { grid-template-columns: repeat(2, 1fr); } }
@media (max-width: 580px) { .features { grid-template-columns: 1fr; } }

.feature {
  background: var(--bg-card);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  padding: 28px;
  transition: transform .25s ease, box-shadow .25s ease, border-color .25s ease;
}
.feature:hover {
  transform: translateY(-3px);
  box-shadow: var(--shadow);
  border-color: rgba(199, 153, 147, 0.45);
}
.feature__icon {
  width: 44px; height: 44px;
  border-radius: 12px;
  background: rgba(212, 176, 118, 0.18);
  color: var(--accent-deep);
  display: grid; place-items: center;
  margin-bottom: 18px;
}
.feature__title {
  font-family: var(--font-display);
  font-size: 21px;
  margin: 0 0 8px;
  font-weight: 600;
  letter-spacing: -0.01em;
  color: var(--text);
}
.feature__text { font-size: 15px; color: var(--text-muted); margin: 0; }

/* ── How it works ──────────────────────────────────── */
.steps {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 24px;
  counter-reset: step;
}
@media (max-width: 760px) { .steps { grid-template-columns: 1fr; } }
.step { position: relative; padding: 28px; padding-top: 56px; background: var(--bg-card); border: 1px solid var(--border); border-radius: var(--radius); }
.step::before {
  counter-increment: step;
  content: counter(step);
  position: absolute;
  top: 22px; left: 28px;
  width: 30px; height: 30px;
  border-radius: 50%;
  background: linear-gradient(180deg, var(--rose) 0%, var(--gold) 100%);
  color: #fff;
  font-family: var(--font-mono);
  font-size: 14px;
  font-weight: 700;
  display: grid; place-items: center;
}
.step__title { font-family: var(--font-display); font-size: 19px; margin: 0 0 8px; font-weight: 600; color: var(--text); }
.step__text { color: var(--text-muted); font-size: 15px; margin: 0; }

/* ── CTA banner ────────────────────────────────────── */
.cta-banner {
  background: linear-gradient(135deg, var(--rose) 0%, var(--gold) 100%);
  border-radius: var(--radius-lg);
  padding: 60px 48px;
  text-align: center;
  color: #fff;
  position: relative;
  overflow: hidden;
}
.cta-banner::before {
  content: ""; position: absolute; inset: 0;
  background: radial-gradient(circle at 20% 30%, rgba(255,255,255,0.18) 0%, transparent 50%);
  pointer-events: none;
}
.cta-banner__title {
  font-family: var(--font-display);
  font-size: clamp(28px, 3.4vw, 40px);
  line-height: 1.1;
  margin: 0 0 14px;
  letter-spacing: -0.015em;
  position: relative;
  color: #fff;
}
.cta-banner__text { color: rgba(255,255,255,0.92); font-size: 17px; max-width: 540px; margin: 0 auto 28px; position: relative; }
.cta-banner .btn--primary {
  background: var(--text);
  color: #fff;
  border: none;
}
.cta-banner .btn--primary:hover { background: #1f160e; color: #fff; }

/* ── FAQ ───────────────────────────────────────────── */
.faq { max-width: 760px; margin: 0 auto; }
.faq__item {
  background: var(--bg-card);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  margin-bottom: 12px;
  overflow: hidden;
}
.faq__item summary {
  padding: 20px 24px;
  font-weight: 600;
  font-size: 16px;
  cursor: pointer;
  list-style: none;
  display: flex; justify-content: space-between; align-items: center; gap: 16px;
  color: var(--text);
}
.faq__item summary::-webkit-details-marker { display: none; }
.faq__item summary::after {
  content: "+";
  color: var(--accent);
  font-weight: 400;
  font-size: 24px;
  line-height: 1;
  transition: transform .2s ease;
}
.faq__item[open] summary::after { transform: rotate(45deg); }
.faq__answer {
  padding: 0 24px 22px;
  color: var(--text-muted);
  font-size: 15.5px;
}

/* ── Footer ─────────────────────────────────────────── */
.footer {
  padding: 56px 0 40px;
  background: var(--bg);
  border-top: 1px solid var(--border);
}
.footer__grid {
  display: grid;
  grid-template-columns: 1.5fr 1fr 1fr;
  gap: 48px;
  margin-bottom: 36px;
}
@media (max-width: 720px) { .footer__grid { grid-template-columns: 1fr; gap: 32px; } }
.footer__about { color: var(--text-muted); font-size: 14.5px; max-width: 360px; margin: 12px 0 0; }
.footer__heading { font-size: 13px; text-transform: uppercase; letter-spacing: 0.08em; color: var(--text-dim); margin: 0 0 14px; font-weight: 600; }
.footer__list { list-style: none; padding: 0; margin: 0; display: flex; flex-direction: column; gap: 10px; }
.footer__list a { color: var(--text-muted); font-size: 15px; }
.footer__list a:hover { color: var(--accent); }
.footer__bottom {
  display: flex; justify-content: space-between; align-items: center;
  padding-top: 24px; border-top: 1px solid var(--border);
  color: var(--text-dim); font-size: 13px;
  flex-wrap: wrap; gap: 12px;
}

/* ── Doc page (privacy / terms) ─────────────────────── */
.doc {
  max-width: 760px;
  margin: 0 auto;
  padding: 56px 24px 80px;
}
.doc h1 {
  font-family: var(--font-display);
  font-size: clamp(32px, 4vw, 44px);
  letter-spacing: -0.015em;
  margin: 0 0 8px;
  color: var(--text);
}
.doc__updated { color: var(--text-dim); font-size: 14px; margin-bottom: 36px; }
.doc h2 {
  font-family: var(--font-display);
  font-size: 24px;
  margin-top: 40px;
  margin-bottom: 12px;
  letter-spacing: -0.01em;
  color: var(--text);
}
.doc p, .doc li { color: var(--text-muted); font-size: 16px; line-height: 1.65; }
.doc ul { padding-left: 22px; }
.doc strong { color: var(--text); }

/* ── Reveal-on-scroll ────────────────────────────── */
.reveal { opacity: 0; transform: translateY(16px); transition: opacity .6s ease, transform .6s cubic-bezier(.25,.46,.45,.94); }
.reveal.in { opacity: 1; transform: none; }

@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after { transition: none !important; animation: none !important; }
  .reveal { opacity: 1; transform: none; }
}

/* ── RTL adjustments (Hebrew) ────────────────────── */
html[dir="rtl"] .hero::before { right: auto; left: -160px; }
html[dir="rtl"] .hero::after  { left: auto;  right: -120px; }
html[dir="rtl"] .phone        { transform: rotate(3deg); }
html[dir="rtl"] .phone:hover  { transform: rotate(0deg) translateY(-6px); }
html[dir="rtl"] .visit-card__formula {
  font-family: var(--font-mono); /* keep latin formula readable */
  direction: ltr;
  text-align: right;
}
html[dir="rtl"] .stat__value {
  direction: ltr;
  unicode-bidi: embed;
}

/* Hebrew typography slightly larger for readability */
html[lang="he"] body { font-size: 16.5px; }
html[lang="he"] .hero__title { letter-spacing: 0; }
html[lang="he"] .section__title { letter-spacing: 0; }
html[lang="he"] .feature__title,
html[lang="he"] .pain__title,
html[lang="he"] .step__title { letter-spacing: 0; }
