/* aChordim marketing site — shared stylesheet (EN + HE).
   Logical properties throughout so one sheet serves dir="ltr" and dir="rtl". */

:root {
  --brand-25: #FCFAFF;
  --brand-50: #F9F5FF;
  --brand-100: #F4EBFF;
  --brand-200: #E9D7FE;
  --brand-600: #7F56D9;
  --brand-700: #6941C6;
  --brand-800: #53389E;
  --gray-25: #FCFCFD;
  --gray-50: #F9FAFB;
  --gray-100: #F2F4F7;
  --gray-200: #EAECF0;
  --gray-300: #D0D5DD;
  --gray-500: #667085;
  --gray-600: #475467;
  --gray-700: #344054;
  --gray-900: #101828;
  --success: #067647;
  --radius: 12px;
  --radius-lg: 16px;
  --shadow-xs: 0 1px 2px rgba(16, 24, 40, .05);
  --shadow-lg: 0 12px 16px -4px rgba(16, 24, 40, .08), 0 4px 6px -2px rgba(16, 24, 40, .03);
  --font: 'Inter', -apple-system, BlinkMacSystemFont, 'Segoe UI', system-ui, Roboto, Arial, sans-serif;
  --font-he: 'Inter', 'Heebo', -apple-system, BlinkMacSystemFont, 'Segoe UI', system-ui, Arial, sans-serif;
  --wrap: 1120px;
}

*, *::before, *::after { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; text-size-adjust: 100%; }
body {
  margin: 0;
  background: #fff;
  color: var(--gray-600);
  font-family: var(--font);
  font-size: 16px;
  line-height: 1.6;
  -webkit-font-smoothing: antialiased;
  overflow-x: hidden;
}
html[lang="he"] body { font-family: var(--font-he); }
img, svg { display: block; max-width: 100%; }
h1, h2, h3 { color: var(--gray-900); margin: 0; line-height: 1.2; letter-spacing: -0.02em; }
html[lang="he"] h1, html[lang="he"] h2, html[lang="he"] h3 { letter-spacing: 0; }
p { margin: 0; }
a { color: var(--brand-700); }
a:hover { color: var(--brand-800); }
:focus-visible { outline: 3px solid var(--brand-200); outline-offset: 2px; border-radius: 6px; }

.wrap { max-width: var(--wrap); margin: 0 auto; padding-inline: 16px; }
@media (min-width: 768px) { .wrap { padding-inline: 32px; } }

.skip { position: absolute; inset-inline-start: -999px; top: 8px; }
.skip:focus { inset-inline-start: 8px; background: #fff; padding: 8px 12px; z-index: 20; }

/* ---------- Header ---------- */
.site-header {
  position: sticky; top: 0; z-index: 10;
  background: rgba(255, 255, 255, .92);
  -webkit-backdrop-filter: saturate(180%) blur(8px);
  backdrop-filter: saturate(180%) blur(8px);
  border-bottom: 1px solid var(--gray-200);
}
.site-header .wrap { display: flex; align-items: center; gap: 12px; height: 64px; }
.brand { display: inline-flex; align-items: center; gap: 8px; text-decoration: none; color: var(--gray-900); font-weight: 700; font-size: 18px; margin-inline-end: auto; }
.brand img { width: 28px; height: 28px; border-radius: 7px; }
.brand:hover { color: var(--gray-900); }
.nav-link { color: var(--gray-600); text-decoration: none; font-weight: 600; font-size: 15px; padding: 8px 4px; }
.nav-link:hover { color: var(--gray-900); }
.nav-link[aria-current="page"] { color: var(--brand-700); }
.lang { font-weight: 600; font-size: 15px; color: var(--gray-700); text-decoration: none; padding: 6px 10px; border: 1px solid var(--gray-300); border-radius: 8px; }
.lang:hover { background: var(--gray-50); color: var(--gray-900); }
.site-header .wrap > * { flex: none; }
@media (max-width: 419px) {
  .nav-link.hide-xs { display: none; }
  .site-header .wrap { gap: 8px; }
  .brand { font-size: 17px; gap: 6px; }
  .lang { padding: 6px 8px; font-size: 14px; }
  .site-header .btn-sm { padding: 8px 12px; }
}

/* ---------- Buttons ---------- */
.btn {
  display: inline-flex; align-items: center; justify-content: center; gap: 8px;
  min-height: 44px; padding: 10px 18px;
  font: inherit; font-weight: 600; font-size: 16px; line-height: 1.25;
  border-radius: 8px; border: 1px solid transparent;
  text-decoration: none; white-space: nowrap; cursor: pointer;
  box-shadow: var(--shadow-xs);
  transition: background-color .15s, border-color .15s, color .15s;
}
.btn-primary { background: var(--brand-600); border-color: var(--brand-600); color: #fff; }
.btn-primary:hover { background: var(--brand-700); border-color: var(--brand-700); color: #fff; }
.btn-secondary { background: #fff; border-color: var(--gray-300); color: var(--gray-700); }
.btn-secondary:hover { background: var(--gray-50); color: var(--gray-900); }
.btn-sm { min-height: 40px; padding: 8px 14px; font-size: 14px; }
.btn-lg { min-height: 52px; padding: 14px 24px; font-size: 17px; }
.btn-block { width: 100%; }
.btn-row { display: flex; flex-wrap: wrap; gap: 12px; }
@media (max-width: 479px) { .btn-row .btn { flex: 1 1 100%; } }

/* ---------- Type helpers ---------- */
.eyebrow {
  display: inline-flex; align-items: center; gap: 6px;
  padding: 4px 12px; border-radius: 999px;
  background: var(--brand-50); border: 1px solid var(--brand-200);
  color: var(--brand-700); font-size: 14px; font-weight: 600;
}
.kicker { color: var(--brand-700); font-weight: 600; font-size: 15px; margin-bottom: 12px; }
.lead { font-size: 18px; color: var(--gray-600); }
@media (min-width: 768px) { .lead { font-size: 20px; } }
.muted { color: var(--gray-500); font-size: 14px; }

/* ---------- Sections ---------- */
.section { padding-block: 64px; }
@media (min-width: 768px) { .section { padding-block: 96px; } }
.section-alt { background: var(--gray-50); }
.section-head { max-width: 720px; margin-bottom: 40px; }
.section-head h2 { font-size: 30px; margin-bottom: 16px; }
@media (min-width: 768px) { .section-head h2 { font-size: 36px; } }
.center { text-align: center; margin-inline: auto; }

/* ---------- Hero ---------- */
.hero { padding-block: 48px 64px; background: linear-gradient(180deg, var(--brand-25) 0%, #fff 100%); }
@media (min-width: 768px) { .hero { padding-block: 80px 96px; } }
.hero-grid { display: grid; gap: 48px; align-items: center; }
@media (min-width: 960px) { .hero-grid { grid-template-columns: 1.05fr .95fr; gap: 64px; } }
.hero h1 { font-size: 38px; margin-block: 16px 20px; }
@media (min-width: 768px) { .hero h1 { font-size: 56px; } }
.hero .lead { margin-bottom: 32px; max-width: 580px; }
.hero .muted { margin-top: 16px; }

/* ---------- Chart demo (chords over syllables, works in both directions) ---------- */
.demo { position: relative; max-width: 480px; width: 100%; margin-inline: auto; }
.demo-card {
  background: #fff; border: 1px solid var(--gray-200); border-radius: var(--radius-lg);
  box-shadow: var(--shadow-lg); overflow: hidden;
}
.demo-bar { display: flex; align-items: center; gap: 8px; padding: 12px 16px; border-bottom: 1px solid var(--gray-200); background: var(--gray-25); }
.demo-dot { width: 10px; height: 10px; border-radius: 50%; background: var(--gray-200); }
.demo-title { margin-inline-start: 8px; font-weight: 600; color: var(--gray-900); font-size: 14px; }
.demo-body { padding: 20px 20px 24px; }
.demo-meta { display: flex; flex-wrap: wrap; gap: 8px; margin-bottom: 16px; }
.chip { display: inline-flex; align-items: center; gap: 4px; padding: 2px 10px; border-radius: 999px; font-size: 13px; font-weight: 600; background: var(--gray-100); color: var(--gray-700); }
.chip-brand { background: var(--brand-50); color: var(--brand-700); }
.tag { display: inline-block; font-size: 12px; font-weight: 700; text-transform: uppercase; letter-spacing: .06em; color: var(--brand-700); margin-bottom: 4px; }
html[lang="he"] .tag { letter-spacing: 0; }
.chart { color: var(--gray-900); font-size: 17px; }
.chart .ln { line-height: 1.35; margin-bottom: 6px; }
.ch { position: relative; display: inline-block; padding-top: 1.35em; }
.ch::before {
  content: attr(data-c);
  position: absolute; top: 0; inset-inline-start: 0;
  direction: ltr; unicode-bidi: isolate;
  color: var(--brand-600); font-weight: 700; font-size: 15px; white-space: nowrap;
}
.demo-foot { display: flex; align-items: center; justify-content: space-between; gap: 8px; padding: 12px 16px; border-top: 1px solid var(--gray-200); font-size: 14px; }
.stepper { display: inline-flex; align-items: center; border: 1px solid var(--gray-300); border-radius: 8px; overflow: hidden; }
.stepper span { padding: 4px 12px; color: var(--gray-700); font-weight: 600; }
.stepper span + span { border-inline-start: 1px solid var(--gray-300); }
.demo-float {
  position: absolute; inset-inline-end: -8px; bottom: -40px;
  display: flex; align-items: center; gap: 8px;
  background: #fff; border: 1px solid var(--gray-200); border-radius: 10px; box-shadow: var(--shadow-lg);
  padding: 8px 12px; font-size: 13px; font-weight: 600; color: var(--gray-700);
}
.pulse { width: 8px; height: 8px; border-radius: 50%; background: var(--success); flex: none; }
@media (max-width: 479px) { .demo-float { inset-inline-end: 8px; } }

/* ---------- Steps ---------- */
.steps { display: grid; gap: 24px; counter-reset: step; list-style: none; padding: 0; margin: 0; }
@media (min-width: 768px) { .steps { grid-template-columns: repeat(3, 1fr); gap: 32px; } }
.steps li { counter-increment: step; }
.steps li::before {
  content: counter(step);
  display: grid; place-items: center; width: 40px; height: 40px; margin-bottom: 16px;
  border-radius: 50%; background: var(--brand-100); color: var(--brand-700); font-weight: 700;
  border: 6px solid var(--brand-50); box-sizing: content-box;
}
.steps h3 { font-size: 20px; margin-bottom: 8px; }

/* ---------- Feature grid ---------- */
.grid { display: grid; gap: 20px; }
@media (min-width: 640px) { .grid-2 { grid-template-columns: repeat(2, 1fr); } }
@media (min-width: 960px) { .grid-3 { grid-template-columns: repeat(3, 1fr); } }
.card { background: #fff; border: 1px solid var(--gray-200); border-radius: var(--radius); padding: 24px; box-shadow: var(--shadow-xs); }
.card h3 { font-size: 18px; margin-block: 16px 8px; }
.icon {
  display: grid; place-items: center; width: 44px; height: 44px; border-radius: 10px;
  background: var(--brand-50); color: var(--brand-600); border: 1px solid var(--brand-100);
}
.icon svg { width: 22px; height: 22px; }

/* ---------- Split callout ---------- */
.split { display: grid; gap: 32px; align-items: center; }
@media (min-width: 960px) { .split { grid-template-columns: 1fr 1fr; gap: 64px; } }
.checks { list-style: none; padding: 0; margin: 24px 0 0; display: grid; gap: 12px; }
.checks li { position: relative; padding-inline-start: 32px; }
.checks li::before {
  content: ""; position: absolute; inset-inline-start: 0; top: 3px;
  width: 20px; height: 20px; border-radius: 50%;
  background: var(--brand-50) url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 20 20'%3E%3Cpath d='M5.5 10.5l3 3 6-6.5' fill='none' stroke='%237F56D9' stroke-width='2' stroke-linecap='round' stroke-linejoin='round'/%3E%3C/svg%3E") center / 14px no-repeat;
}

/* ---------- Pricing ---------- */
.plans { display: grid; gap: 20px; align-items: stretch; }
@media (min-width: 640px) { .plans { grid-template-columns: repeat(2, 1fr); } }
@media (min-width: 1040px) { .plans { grid-template-columns: repeat(4, 1fr); } }
.plan { display: flex; flex-direction: column; background: #fff; border: 1px solid var(--gray-200); border-radius: var(--radius-lg); padding: 24px; box-shadow: var(--shadow-xs); }
.plan.featured { border: 2px solid var(--brand-600); box-shadow: var(--shadow-lg); }
.plan-top { display: flex; align-items: center; justify-content: space-between; gap: 8px; min-height: 28px; }
.plan h3 { font-size: 18px; }
.price { margin-block: 16px 4px; color: var(--gray-900); font-size: 40px; font-weight: 700; letter-spacing: -0.02em; line-height: 1.1; }
.price small { font-size: 16px; font-weight: 500; color: var(--gray-500); letter-spacing: 0; }
.plan-blurb { font-size: 15px; min-height: 48px; }
.plan .checks { margin-block: 20px 24px; flex: 1; align-content: start; font-size: 15px; }
.plan .btn { margin-top: auto; }
.plans-note { margin-top: 24px; text-align: center; }

/* ---------- FAQ ---------- */
.faq { max-width: 760px; margin-inline: auto; }
.faq details { border-bottom: 1px solid var(--gray-200); padding-block: 20px; }
.faq summary { cursor: pointer; list-style: none; display: flex; justify-content: space-between; gap: 16px; font-weight: 600; color: var(--gray-900); font-size: 17px; }
.faq summary::-webkit-details-marker { display: none; }
.faq summary::after { content: "+"; color: var(--brand-600); font-weight: 400; font-size: 22px; line-height: 1; flex: none; }
.faq details[open] summary::after { content: "−"; }
.faq details p { margin-top: 12px; }

/* ---------- Prose (refunds / contact) ---------- */
.page-head { padding-block: 48px 24px; background: linear-gradient(180deg, var(--brand-25) 0%, #fff 100%); }
@media (min-width: 768px) { .page-head { padding-block: 72px 32px; } }
.page-head h1 { font-size: 34px; margin-bottom: 12px; }
@media (min-width: 768px) { .page-head h1 { font-size: 44px; } }
.prose { max-width: 720px; padding-bottom: 72px; }
.prose h2 { font-size: 22px; margin-block: 40px 12px; }
.prose p + p, .prose p + ul, .prose ul + p { margin-top: 12px; }
.prose ul { padding-inline-start: 20px; margin: 12px 0 0; }
.prose li + li { margin-top: 8px; }
.prose strong { color: var(--gray-900); }
.summary { background: var(--brand-25); border: 1px solid var(--brand-200); border-radius: var(--radius); padding: 20px 24px; }
.summary .checks { margin-top: 0; }
.email-box { display: flex; flex-wrap: wrap; align-items: center; gap: 12px 16px; margin-block: 24px; padding: 20px 24px; border: 1px solid var(--gray-200); border-radius: var(--radius); background: var(--gray-50); }
.email {
  font-size: 22px; font-weight: 700; color: var(--gray-900);
  direction: ltr; unicode-bidi: isolate;
  -webkit-user-select: all; user-select: all; overflow-wrap: anywhere;
}
@media (min-width: 480px) { .email { font-size: 26px; } }

/* ---------- CTA band ---------- */
.cta-band { background: var(--brand-50); border: 1px solid var(--brand-200); border-radius: var(--radius-lg); padding: 40px 24px; text-align: center; }
@media (min-width: 768px) { .cta-band { padding: 56px 48px; } }
.cta-band h2 { font-size: 28px; margin-bottom: 12px; }
@media (min-width: 768px) { .cta-band h2 { font-size: 34px; } }
.cta-band .lead { margin-bottom: 28px; max-width: 560px; margin-inline: auto; }
.cta-band .btn-row { justify-content: center; }

/* ---------- Footer ---------- */
.site-footer { border-top: 1px solid var(--gray-200); padding-block: 40px; font-size: 15px; }
.site-footer .wrap { display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between; gap: 20px; }
.foot-links { display: flex; flex-wrap: wrap; gap: 8px 20px; list-style: none; padding: 0; margin: 0; }
.foot-links a { color: var(--gray-600); text-decoration: none; font-weight: 500; }
.foot-links a:hover { color: var(--gray-900); text-decoration: underline; }

@media (prefers-reduced-motion: reduce) { * { transition: none !important; } }
