/* ---------------------------------------------------------------------------
   shemot.benbasha.com - warm-paper web identity.
   Ports the theory.benbasha.com landing structure onto shemot's design tokens:
   warm paper, soft cards, gold accent, a flame/seed brand mark, Heebo type.
   Same page skeleton (sticky header, two-col hero, stats band, feature grid,
   dark gallery, pricing, final CTA, dark footer) - soft/warm, not bordered
   plates. Tokens mirror src/theme/tokens.ts.
--------------------------------------------------------------------------- */

:root {
  --bg: #FBF8F4;
  --surface: #FFFFFF;
  --surface-alt: #F4EFE8;
  --ink: #2A2622;
  --ink-soft: #6B635A;
  --ink-faint: #A79E93;
  --accent: #C9821E;
  --accent-soft: #F5E4C8;
  --line: #EBE4DA;

  /* Fixed dark tone for the always-dark gallery + footer (does not flip with
     the color scheme, like theory's asphalt band). Warm brown to sit under the
     gold-toned marketing screenshots. */
  --dark: #241E15;
  --dark-soft: #322A1E;
  --dark-ink: #F3ECDE;
  --dark-muted: #B7AB95;

  --shadow-soft: 0 8px 24px rgba(42, 38, 34, 0.07);
  --shadow-lift: 0 16px 34px rgba(42, 38, 34, 0.12);

  --font: 'Heebo', system-ui, sans-serif;
  --radius-card: 18px;
  --radius-button: 14px;
  --content: 1080px;
}

@media (prefers-color-scheme: dark) {
  :root {
    --bg: #1A1714;
    --surface: #232019;
    --surface-alt: #2C2820;
    --ink: #F2ECE2;
    --ink-soft: #B3A99C;
    --ink-faint: #7E7568;
    --accent: #E0A64A;
    --accent-soft: #3A2F1C;
    --line: #332E26;

    --shadow-soft: 0 8px 24px rgba(0, 0, 0, 0.35);
    --shadow-lift: 0 16px 34px rgba(0, 0, 0, 0.45);
  }
}

* { box-sizing: border-box; }

html { scroll-behavior: smooth; }

body {
  margin: 0;
  background: var(--bg);
  color: var(--ink);
  font-family: var(--font);
  font-size: 17px;
  line-height: 1.65;
  -webkit-font-smoothing: antialiased;
  /* Faint paper grain so the background never reads as sterile flat colour. */
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='160' height='160'%3E%3Cfilter id='n'%3E%3CfeTurbulence type='fractalNoise' baseFrequency='0.9' numOctaves='2'/%3E%3CfeColorMatrix values='0 0 0 0 0  0 0 0 0 0  0 0 0 0 0  0 0 0 0.022 0'/%3E%3C/filter%3E%3Crect width='160' height='160' filter='url(%23n)'/%3E%3C/svg%3E");
}

h1, h2, h3 {
  font-family: var(--font);
  font-weight: 800;
  line-height: 1.15;
  letter-spacing: -0.5px;
  margin: 0;
}

a { color: inherit; }

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

.wrap {
  max-width: var(--content);
  margin: 0 auto;
  padding: 0 24px;
}

/* Subtle dashed divider. */
.lane {
  border: 0;
  height: 1px;
  margin: 0;
  background: repeating-linear-gradient(
    to left,
    var(--line) 0 26px,
    transparent 26px 44px
  );
}

/* ------------------------------- brand mark ------------------------------ */
/* Flame/seed glyph, white on a gold rounded square. Reused in header,
   hero kicker, final CTA and footer at different sizes. */

.mark {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  flex: none;
  background: var(--accent);
  border-radius: 12px;
  width: 40px;
  height: 40px;
}

.mark svg { width: 62%; height: 62%; }

.mark-sm { width: 32px; height: 32px; border-radius: 10px; }

.mark-lg {
  width: 76px;
  height: 76px;
  border-radius: 22px;
  box-shadow: var(--shadow-soft);
}

/* --------------------------------- header -------------------------------- */

.site-header {
  position: sticky;
  top: 0;
  z-index: 20;
  background: rgba(251, 248, 244, 0.88);
  backdrop-filter: blur(10px);
  border-bottom: 1px solid var(--line);
}

@media (prefers-color-scheme: dark) {
  .site-header { background: rgba(26, 23, 20, 0.88); }
}

.site-header .wrap {
  display: flex;
  align-items: center;
  gap: 14px;
  min-height: 66px;
}

.brand {
  display: flex;
  align-items: center;
  gap: 11px;
  text-decoration: none;
}

.brand .mark { width: 38px; height: 38px; }

.brand strong {
  font-weight: 800;
  font-size: 23px;
  letter-spacing: -0.5px;
}

.header-nav {
  margin-inline-start: auto;
  display: flex;
  align-items: center;
  gap: 22px;
  font-size: 15px;
  font-weight: 600;
}

.header-nav a {
  text-decoration: none;
  color: var(--ink-soft);
  transition: color 0.15s ease;
}

.header-nav a:hover { color: var(--accent); }

/* ----------------------------- store badges ------------------------------ */

.store-badges {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 16px;
  flex-wrap: wrap;
}

.store-badge {
  display: inline-flex;
  align-items: center;
  position: relative;
}

.store-badge img { height: 54px; width: auto; }

/* Pre-launch: badge visible but marked "בקרוב" and inert. */
.store-badge.soon {
  pointer-events: none;
  filter: grayscale(0.2) opacity(0.85);
}

.store-badge.soon::after {
  content: 'בקרוב';
  position: absolute;
  top: -9px;
  inset-inline-end: -10px;
  background: var(--accent);
  color: #fff;
  border-radius: 999px;
  font-size: 12px;
  font-weight: 700;
  padding: 1px 10px;
}

/* --------------------------------- hero ---------------------------------- */

.hero {
  position: relative;
  overflow: hidden;
  padding: 76px 0 66px;
}

.hero .wrap {
  display: grid;
  grid-template-columns: minmax(0, 1.05fr) minmax(0, 0.95fr);
  gap: 48px;
  align-items: center;
}

.hero-copy > * {
  opacity: 0;
  animation: rise 0.7s cubic-bezier(0.2, 0.7, 0.2, 1) forwards;
}

.hero-copy > *:nth-child(2) { animation-delay: 0.08s; }
.hero-copy > *:nth-child(3) { animation-delay: 0.16s; }
.hero-copy > *:nth-child(4) { animation-delay: 0.24s; }
.hero-copy > *:nth-child(5) { animation-delay: 0.32s; }

@keyframes rise {
  from { opacity: 0; transform: translateY(18px); }
  to { opacity: 1; transform: none; }
}

.hero-kicker {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  font-weight: 700;
  font-size: 15px;
  color: var(--ink-soft);
}

.hero-kicker .mark { width: 30px; height: 30px; border-radius: 9px; }

.hero h1 {
  font-size: clamp(38px, 6vw, 62px);
  margin: 18px 0 16px;
}

/* Warm marker-highlight behind one keyword. Soft, not a bordered plate. */
.hero h1 mark {
  background: var(--accent-soft);
  color: inherit;
  padding: 0.02em 0.2em;
  border-radius: 12px;
  -webkit-box-decoration-break: clone;
  box-decoration-break: clone;
}

.hero-lead {
  font-size: 19px;
  color: var(--ink-soft);
  max-width: 32em;
  margin: 0 0 26px;
}

.hero-cta {
  display: flex;
  align-items: center;
  gap: 16px;
  flex-wrap: wrap;
}

.hero-note {
  font-size: 14px;
  color: var(--ink-faint);
  margin: 16px 0 0;
}

.hero-shot {
  position: relative;
  justify-self: center;
  opacity: 0;
  animation: rise 0.8s 0.2s cubic-bezier(0.2, 0.7, 0.2, 1) forwards;
}

.hero-shot img {
  width: min(330px, 78vw);
  border-radius: 30px;
  box-shadow: var(--shadow-lift);
}

.hero-shot::before {
  content: '';
  position: absolute;
  inset: -40px -50px;
  z-index: -1;
  background: radial-gradient(closest-side, var(--accent-soft), transparent 72%);
  opacity: 0.7;
}

/* --------------------------------- stats --------------------------------- */

.stats {
  background: var(--surface-alt);
  border-top: 1px solid var(--line);
  border-bottom: 1px solid var(--line);
}

.stats .wrap {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  text-align: center;
}

.stat { padding: 26px 12px; }

.stat + .stat {
  border-inline-start: 1px dashed var(--line);
}

.stat strong {
  display: block;
  font-weight: 800;
  font-size: clamp(24px, 3vw, 34px);
  letter-spacing: -0.5px;
  color: var(--accent);
}

.stat span {
  font-size: 14px;
  font-weight: 500;
  color: var(--ink-soft);
}

/* -------------------------------- features ------------------------------- */

.features { padding: 76px 0 66px; }

.section-title {
  font-size: clamp(28px, 4vw, 40px);
  margin-bottom: 10px;
}

.section-sub {
  color: var(--ink-soft);
  margin: 0 0 38px;
  max-width: 40em;
  font-size: 18px;
}

.feature-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 18px;
}

.feature {
  background: var(--surface);
  border: 1px solid var(--line);
  border-radius: var(--radius-card);
  padding: 26px 24px 28px;
  transition: transform 0.18s ease, box-shadow 0.18s ease, border-color 0.18s ease;
}

.feature:hover {
  transform: translateY(-4px);
  border-color: var(--accent-soft);
  box-shadow: var(--shadow-lift);
}

.feature .icon {
  width: 48px;
  height: 48px;
  display: flex;
  align-items: center;
  justify-content: center;
  background: var(--accent-soft);
  border-radius: 14px;
  margin-bottom: 18px;
}

.feature .icon svg {
  width: 26px;
  height: 26px;
  stroke: var(--accent);
  fill: none;
}

.feature h3 {
  font-size: 20px;
  margin-bottom: 8px;
}

.feature p {
  margin: 0;
  font-size: 15.5px;
  color: var(--ink-soft);
}

/* -------------------------------- gallery -------------------------------- */

.gallery {
  background: var(--dark);
  color: var(--dark-ink);
  padding: 66px 0 8px;
}

.gallery .section-title { color: var(--dark-ink); }
.gallery .section-sub { color: var(--dark-muted); }

.shots {
  display: flex;
  gap: 20px;
  overflow-x: auto;
  padding: 10px 24px 56px;
  scroll-snap-type: x mandatory;
  scrollbar-width: none;
}

.shots::-webkit-scrollbar { display: none; }

.shots img {
  width: 248px;
  flex: 0 0 auto;
  scroll-snap-align: center;
  border-radius: 22px;
  border: 1px solid var(--dark-soft);
  box-shadow: 0 14px 30px rgba(0, 0, 0, 0.35);
  transition: transform 0.18s ease;
}

.shots img:hover { transform: translateY(-6px); }

/* Fine gold dashed line at the foot of the dark band. */
.gallery::after {
  content: '';
  display: block;
  height: 3px;
  background: repeating-linear-gradient(
    to left,
    var(--accent) 0 40px,
    transparent 40px 76px
  );
  opacity: 0.55;
}

/* -------------------------------- pricing -------------------------------- */

.pricing { padding: 70px 0 82px; }

.price-grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 420px));
  justify-content: center;
  gap: 22px;
}

.plan {
  background: var(--surface);
  border: 1px solid var(--line);
  border-radius: var(--radius-card);
  padding: 32px 30px 34px;
}

.plan.premium {
  border-color: var(--accent);
  box-shadow: var(--shadow-lift);
}

.plan h3 { font-size: 24px; }

.plan .price {
  font-weight: 800;
  font-size: 40px;
  letter-spacing: -1px;
  margin: 8px 0 2px;
  color: var(--accent);
}

.plan .price small {
  font-weight: 500;
  font-size: 15px;
  letter-spacing: 0;
  color: var(--ink-soft);
}

.plan ul {
  list-style: none;
  padding: 0;
  margin: 20px 0 0;
}

.plan li {
  padding: 11px 0;
  border-bottom: 1px dashed var(--line);
  font-size: 15.5px;
  color: var(--ink-soft);
  display: flex;
  gap: 10px;
  align-items: flex-start;
}

.plan li:last-child { border-bottom: 0; }

.plan li::before {
  content: '✓';
  color: var(--accent);
  font-weight: 800;
  flex: none;
}

/* ------------------------------- final cta ------------------------------- */

.final-cta {
  text-align: center;
  padding: 8px 0 92px;
}

.final-cta .mark { margin: 0 auto 26px; }

.final-cta h2 {
  font-size: clamp(30px, 4.5vw, 44px);
  margin-bottom: 24px;
  max-width: 16em;
  margin-inline: auto;
}

/* --------------------------------- footer -------------------------------- */

.site-footer {
  background: var(--dark);
  color: var(--dark-muted);
  font-size: 14px;
  padding: 42px 0 50px;
}

.site-footer .wrap {
  display: grid;
  gap: 10px;
}

.site-footer a {
  color: var(--dark-ink);
  text-decoration-color: rgba(243, 236, 222, 0.4);
}

.footer-brand {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  color: var(--dark-ink);
  font-weight: 800;
  font-size: 19px;
  margin-bottom: 8px;
}

.footer-brand .mark { width: 30px; height: 30px; border-radius: 9px; }

.footer-links {
  display: flex;
  flex-wrap: wrap;
  gap: 8px 24px;
  font-weight: 600;
}

/* ------------------------------ legal pages ------------------------------ */

.legal-main { padding: 40px 0 80px; }

.legal-main .wrap { max-width: 760px; }

.legal-toggle {
  display: inline-flex;
  border: 1px solid var(--line);
  border-radius: 999px;
  overflow: hidden;
  margin-bottom: 28px;
  font-size: 15px;
  font-weight: 600;
  background: var(--surface);
}

.legal-toggle a {
  padding: 8px 22px;
  text-decoration: none;
  color: var(--ink-soft);
}

.legal-toggle a.active {
  background: var(--accent);
  color: #fff;
}

.legal-doc {
  background: var(--surface);
  border: 1px solid var(--line);
  border-radius: var(--radius-card);
  padding: 36px 40px 44px;
}

.legal-doc h1 {
  font-size: 34px;
  margin-bottom: 4px;
}

.legal-doc .effective,
.updated {
  color: var(--ink-faint);
  font-size: 14px;
  margin: 0 0 24px;
}

.legal-doc h2 {
  font-size: 21px;
  margin: 34px 0 10px;
  padding-bottom: 6px;
  border-bottom: 1px dashed var(--line);
}

.legal-doc h3 {
  font-size: 18px;
  margin: 26px 0 8px;
}

.legal-doc p,
.legal-doc li { color: var(--ink-soft); }

.legal-doc strong { color: var(--ink); }

.legal-doc ul { padding-inline-start: 22px; }

.legal-doc a {
  color: var(--accent);
  text-decoration-color: var(--accent);
  text-decoration-thickness: 2px;
}

.callout {
  background: var(--accent-soft);
  border: 1px solid var(--accent);
  border-radius: var(--radius-card);
  padding: 16px 20px;
  margin: 18px 0 4px;
}

.callout,
.callout strong { color: var(--ink); }

/* -------------------------- invite (join / couple) ----------------------- */

.invite-main {
  padding: 56px 0 88px;
  display: flex;
  justify-content: center;
}

.invite-card {
  background: var(--surface);
  border: 1px solid var(--line);
  border-radius: 24px;
  box-shadow: var(--shadow-soft);
  padding: 40px 34px 36px;
  max-width: 460px;
  width: 100%;
  text-align: center;
}

.invite-card .mark { margin: 0 auto 20px; }

.invite-card h1 {
  font-size: 27px;
  margin-bottom: 12px;
}

.invite-card p {
  color: var(--ink-soft);
  margin: 0 auto 6px;
  max-width: 26em;
}

.invite-card .code-label {
  font-size: 13px;
  color: var(--ink-faint);
  margin: 24px 0 8px;
  font-weight: 600;
}

.invite-card .code {
  font-size: 40px;
  font-weight: 800;
  letter-spacing: 10px;
  color: var(--ink);
  background: var(--surface-alt);
  border-radius: 16px;
  padding: 16px 8px;
  margin: 0 0 22px;
}

.btn-primary {
  display: inline-block;
  background: var(--accent);
  color: #fff;
  border-radius: var(--radius-button);
  padding: 13px 26px;
  text-decoration: none;
  font-weight: 700;
  font-size: 16px;
}

.invite-store {
  margin-top: 26px;
  display: flex;
  justify-content: center;
}

/* ------------------------------- responsive ------------------------------ */

@media (max-width: 900px) {
  .hero .wrap {
    grid-template-columns: 1fr;
    gap: 40px;
  }

  .hero-shot { order: -1; }

  .feature-grid { grid-template-columns: 1fr; }

  .stats .wrap { grid-template-columns: repeat(2, 1fr); }

  .stat:nth-child(3) { border-inline-start: 0; }

  .stat:nth-child(n + 3) { border-top: 1px dashed var(--line); }

  .price-grid { grid-template-columns: 1fr; }
}

@media (max-width: 640px) {
  .legal-doc { padding: 26px 22px 32px; }
  .header-nav { gap: 14px; font-size: 14px; }
  .invite-card { padding: 32px 22px 30px; }
}

@media (prefers-reduced-motion: reduce) {
  .hero-copy > *,
  .hero-shot {
    animation: none;
    opacity: 1;
  }
}
