/* ==========================================================================
   Ovad — Design System v3
   עברית / RTL, Mobile-first
   Direction: restrained, precise, "elite 2026 tech company" — one accent
   color used sparingly (buttons, links, focus, small status), neutrals
   (near-black / white / gray) do almost all the work, hairline borders
   over heavy shadows, small-radius rectangles over pill shapes.
   ========================================================================== */

:root{
  /* --- Neutrals: do ~90% of the visual work ------------------------------*/
  /* warm off-white base (not stark white) — pure white (--white) is
     reserved for elevated surfaces (cards, header), which is what gives
     the page its quiet sense of depth instead of drop-shadows doing it */
  --paper:         #FAF9F5;
  --paper-alt:     #F2F0EA;
  --paper-deep:    #E9E6DD;
  --ink:           #0B0B0F;
  --ink-soft:      #55555F;
  --ink-faint:     #8B8B95;
  --line:          #E5E2D9;
  --line-strong:   #D2CEC1;

  /* "forest-*" = dark-surface ramp (near-black), used for the footer and
     other deliberate dark sections — kept name for internal continuity */
  --forest-900:    #0B0B0F;
  --forest-800:    #17171C;
  --forest-700:    #28282F;
  --forest-600:    #3F3F49;
  --forest-500:    #5E5E69;
  --forest-100:    #F1F1F4;

  /* --- The ONE signature accent — a teal-emerald green (matched from the
     reference mockup), used only for primary actions, links, focus rings
     and small status indicators; everything else stays neutral. Ramp is
     contrast-checked at 4.5:1+ against white. "amber-*"/"violet-*" names
     kept for internal continuity with earlier markup — values are green
     now, not indigo. ---------------------------------------------------*/
  --amber-800:     #054A38;
  --amber-700:     #076B4F;
  --amber-600:     #0A7F5E;
  --amber-500:     #4FD8AE;
  --amber-100:     #E1FBF1;

  --violet-600:    #076B4F;
  --violet-500:    #4FD8AE;
  --violet-100:    #E1FBF1;

  /* reserved for the one deliberate "glow wash" on dark sections — not
     used on buttons/logo/icons, which stay solid */
  --brand-gradient: linear-gradient(135deg, #0A7F5E 0%, #4FD8AE 100%);
  --brand-gradient-soft: linear-gradient(135deg, #E1FBF1 0%, #FFFFFF 100%);

  --success:       #17845A;
  --success-tint:  #E8F6EF;
  --danger:        #C0392B;
  --danger-tint:   #FBEAE8;
  --white:         #FFFFFF;

  /* --- Type: one family, tight tracking on large sizes -------------------*/
  --font-display: 'Heebo', -apple-system, 'Segoe UI', sans-serif;
  --font-body: 'Heebo', -apple-system, 'Segoe UI', sans-serif;

  /* --- Sizing: small-radius rectangles, pill reserved for tags/toggles ---*/
  --container: 1200px;
  --radius-btn: 10px;
  --radius-sm: 8px;
  --radius-md: 14px;
  --radius-lg: 20px;
  --radius-pill: 999px;

  --shadow-sm: 0 1px 2px rgba(11,11,15,0.05), 0 1px 1px rgba(11,11,15,0.04);
  --shadow-md: 0 8px 24px rgba(11,11,15,0.08);
  --shadow-lg: 0 24px 60px rgba(11,11,15,0.14);
  --shadow-accent: 0 8px 20px rgba(10,127,94,0.20);

  --ease: cubic-bezier(.22,.9,.3,1);
}

/* --- Reset ---------------------------------------------------------------*/
*, *::before, *::after{ box-sizing: border-box; }
html{ scroll-behavior: smooth; }
body, h1, h2, h3, h4, p, figure, blockquote, dl, dd, ul, ol{ margin: 0; }
ul, ol{ list-style: none; padding: 0; }
img, picture{ max-width: 100%; display: block; }
input, button, textarea, select{ font: inherit; color: inherit; }
button{ background: none; border: none; cursor: pointer; }
a{ color: inherit; text-decoration: none; }

@media (prefers-reduced-motion: reduce){
  *, *::before, *::after{
    animation-duration: 0.01ms !important;
    animation-iteration-count: 1 !important;
    transition-duration: 0.01ms !important;
    scroll-behavior: auto !important;
  }
}

html, body{
  direction: rtl;
  background: var(--paper);
  color: var(--ink);
}

body{
  font-family: var(--font-body);
  font-size: 17px;
  line-height: 1.65;
  -webkit-font-smoothing: antialiased;
  overflow-x: hidden;
}

h1, h2, h3, h4{
  font-family: var(--font-display);
  color: var(--ink);
  line-height: 1.1;
  font-weight: 700;
  letter-spacing: -0.035em;
}
h3, h4{ letter-spacing: -0.015em; font-weight: 600; }

h1{ font-size: clamp(2.4rem, 7.5vw, 4.25rem); }
h2{ font-size: clamp(1.8rem, 5vw, 2.75rem); }
h3{ font-size: clamp(1.2rem, 3.2vw, 1.5rem); }
h4{ font-size: 1.08rem; }

p.lede{
  font-size: clamp(1.05rem, 3vw, 1.2rem);
  color: var(--ink-soft);
  line-height: 1.6;
  font-weight: 400;
}

.eyebrow{
  display: inline-flex;
  align-items: center;
  gap: 8px;
  font-size: 0.82rem;
  font-weight: 700;
  letter-spacing: 0.02em;
  color: var(--amber-600);
}
.eyebrow::before{
  content: "";
  width: 5px; height: 5px;
  border-radius: 50%;
  background: var(--amber-600);
  flex: none;
}
/* modifier for eyebrows placed on a dark surface (e.g. inside .upsell-banner) */
.eyebrow-invert{ color: rgba(255,255,255,0.85); }
.eyebrow-invert::before{ background: var(--amber-500); }
.hero-lede-invert{ color: rgba(255,255,255,0.88); }

/* --- Layout ---------------------------------------------------------------*/
.container{
  width: 100%;
  max-width: var(--container);
  margin-inline: auto;
  padding-inline: 20px;
}
@media (min-width: 640px){ .container{ padding-inline: 32px; } }

section{ position: relative; }
.section{ padding: 72px 0; }
.section-tight{ padding: 44px 0; }
@media (min-width: 900px){
  .section{ padding: 140px 0; }
  .section-tight{ padding: 84px 0; }
}

.section-alt{ background: var(--paper-alt); }

.stack{ display: flex; flex-direction: column; }
.center{ text-align: center; }
.max-w-copy{ max-width: 620px; }
.mx-auto{ margin-inline: auto; }

/* --- Buttons ---------------------------------------------------------------*/
.btn{
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 10px;
  padding: 13px 24px;
  border-radius: var(--radius-btn);
  font-weight: 600;
  font-size: 0.98rem;
  letter-spacing: -0.01em;
  white-space: nowrap;
  transition: transform .18s var(--ease), box-shadow .18s var(--ease), background-color .18s var(--ease), color .18s var(--ease), border-color .18s var(--ease);
  cursor: pointer;
  border: 1px solid transparent;
}
.btn:active{ transform: scale(0.98); }

.btn-primary{
  background: var(--amber-600);
  color: var(--white);
  box-shadow: var(--shadow-accent);
}
.btn-primary:hover{ background: var(--amber-700); transform: translateY(-1px); box-shadow: 0 10px 24px rgba(10,127,94,0.28); }

/* used on dark surfaces (upsell banners) — inverted solid button */
.btn-amber{
  background: var(--white);
  color: var(--ink);
  box-shadow: var(--shadow-sm);
}
.btn-amber:hover{ transform: translateY(-1px); background: var(--paper-alt); }

.btn-ghost{
  background: transparent;
  border-color: var(--line-strong);
  color: var(--ink);
}
.btn-ghost:hover{ background: var(--forest-100); border-color: var(--ink-faint); }
/* A couple of ghost links carry a full sentence as their label (e.g. "how
   we protect trust & control"); at very narrow widths that plus the icon
   no longer fits on one line and overflows the viewport, so let ghost
   buttons specifically wrap instead of forcing nowrap like other CTAs. */
@media (max-width: 400px){
  .btn-ghost{ white-space: normal; text-align: center; line-height: 1.35; }
}

.btn-light{
  background: var(--white);
  color: var(--ink);
  border-color: var(--line);
  box-shadow: var(--shadow-sm);
}
.btn-light:hover{ transform: translateY(-1px); box-shadow: var(--shadow-md); }

.btn-sm{ padding: 9px 16px; font-size: 0.88rem; }
.btn-block{ width: 100%; }
.btn[disabled]{ opacity: 0.5; cursor: not-allowed; }

.btn .icon{ width: 18px; height: 18px; flex: none; }
.btn .icon svg{ width: 100%; height: 100%; display: block; }

/* rtl arrow flips */
.arrow{ transition: transform .2s var(--ease); }
a:hover .arrow, button:hover .arrow{ transform: translateX(-3px); }

/* --- Badges (pill is the one accepted place for a full pill shape) -------*/
.badge{
  display: inline-flex;
  align-items: center;
  gap: 6px;
  font-size: 0.75rem;
  font-weight: 700;
  padding: 4px 11px;
  border-radius: var(--radius-pill);
  border: 1px solid transparent;
}
.badge-active{ background: var(--success-tint); color: var(--success); border-color: rgba(23,132,90,0.18); }
.badge-active::before{ content:""; width:6px; height:6px; border-radius:50%; background: var(--success); }
.badge-soon{ background: var(--paper-alt); color: var(--ink-faint); border-color: var(--line-strong); }

/* --- Header ---------------------------------------------------------------*/
.site-header{
  position: sticky;
  top: 0;
  z-index: 100;
  background: rgba(255,255,255,0.82);
  backdrop-filter: blur(14px) saturate(1.1);
  -webkit-backdrop-filter: blur(14px) saturate(1.1);
  border-bottom: 1px solid var(--line);
}
.site-header .container{
  display: flex;
  align-items: center;
  justify-content: space-between;
  height: 68px;
}
.brand{
  display: flex;
  align-items: center;
  flex: none;
}
.brand-logo{
  display: block;
  height: 30px;
  width: auto;
}

.main-nav{
  display: none;
  align-items: center;
  gap: 30px;
}
.main-nav a{
  position: relative;
  padding: 6px 1px;
  font-weight: 500;
  color: var(--ink-soft);
  font-size: 0.92rem;
  transition: color .2s;
}
.main-nav a::after{
  content: "";
  position: absolute;
  right: 0; left: 0; bottom: -2px;
  height: 2px;
  background: var(--amber-600);
  border-radius: 2px;
  transform: scaleX(0);
  transform-origin: center;
  transition: transform .22s var(--ease);
}
.main-nav a:hover, .main-nav a.active{ color: var(--ink); }
.main-nav a:hover::after, .main-nav a.active::after{ transform: scaleX(1); }

.header-actions{ display: flex; align-items: center; gap: 8px; }
.header-actions .btn{ padding: 10px 18px; font-size: 0.88rem; }
.header-actions .btn-ghost{ display: none; border-color: transparent; }
@media (min-width: 640px){ .header-actions .btn-ghost{ display: inline-flex; } }

.nav-toggle{
  display: flex;
  flex-direction: column;
  width: 38px; height: 38px;
  align-items: center; justify-content: center;
  border-radius: var(--radius-sm);
  flex: none;
}
.nav-toggle span, .nav-toggle::before, .nav-toggle::after{
  content: "";
  display: block;
  width: 19px; height: 1.5px;
  background: var(--ink);
  border-radius: 2px;
  transition: transform .3s var(--ease), opacity .3s var(--ease);
}
.nav-toggle span{ margin: 4px 0; }
.nav-toggle.is-open span{ opacity: 0; }
.nav-toggle.is-open::before{ transform: translateY(5.5px) rotate(45deg); }
.nav-toggle.is-open::after{ transform: translateY(-5.5px) rotate(-45deg); }

.mobile-nav{
  position: fixed;
  inset: 68px 0 0 0;
  background: var(--paper);
  z-index: 99;
  padding: 20px 20px;
  transform: translateY(-12px);
  opacity: 0;
  pointer-events: none;
  transition: transform .3s var(--ease), opacity .3s var(--ease);
  overflow-y: auto;
}
.mobile-nav.is-open{ transform: translateY(0); opacity: 1; pointer-events: auto; }
.mobile-nav a{
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 17px 4px;
  border-bottom: 1px solid var(--line);
  font-size: 1.08rem;
  font-weight: 500;
  color: var(--ink);
}
.mobile-nav .mobile-cta{ margin-top: 22px; display: flex; flex-direction: column; gap: 12px; }

@media (min-width: 980px){
  .main-nav{ display: flex; }
  .nav-toggle{ display: none; }
  .mobile-nav{ display: none; }
}

/* --- Hero -------------------------------------------------------------- */
.hero{
  padding: 44px 0 48px;
  overflow: hidden;
  background-image: radial-gradient(rgba(11,11,15,0.05) 1px, transparent 1px);
  background-size: 24px 24px;
  background-position: -12px -12px;
  -webkit-mask-image: linear-gradient(to bottom, black 0%, black 55%, transparent 100%);
  mask-image: linear-gradient(to bottom, black 0%, black 55%, transparent 100%);
}
/* slow-drifting mesh wash behind the whole hero — very low-alpha, moves
   via the standalone `translate` property (cheap, compositor-only) so it
   never fights the entrance transitions running on the actual content */
.hero::before{
  content: "";
  position: absolute;
  z-index: -1;
  inset: -20% -10%;
  background:
    radial-gradient(38% 42% at 18% 22%, rgba(85,70,232,0.09), transparent 70%),
    radial-gradient(34% 38% at 84% 74%, rgba(122,111,240,0.08), transparent 70%);
  animation: meshDrift 22s ease-in-out infinite alternate;
  pointer-events: none;
}
@keyframes meshDrift{
  0%{ translate: 0 0; }
  100%{ translate: 3% 4%; }
}
@media (prefers-reduced-motion: reduce){ .hero::before{ animation: none; } }
/* full-viewport, vertically-centered hero — desktop only. Flex is scoped
   to this breakpoint on purpose: applying it unscoped hits the classic
   flex-item "min-width:auto" bug, where a fixed-width descendant (the
   phone mockup) stops the row from ever shrinking below its own content
   width, blowing out the layout on narrow screens. */
@media (min-width: 900px){
  .hero{ padding: 64px 0 60px; min-height: calc(100vh - 68px); display: flex; align-items: center; }
}

/* --- Cinematic hero ---------------------------------------------------
   Scroll-pin-and-zoom animation is OFF for now (per explicit request,
   2.8.2026) — the hero is a plain static photo with the laptop screen
   shown embedded at its natural photographed angle (the perspective
   warp is still computed once in main.js, just no longer driven by
   scroll). Kept the --p custom property plumbing in place rather than
   ripping it out, since this is meant to be temporary and re-enabling
   later should just mean restoring the sticky/tall-wrapper rules below
   and the scroll listener in main.js. --------------------------------*/
.hero-scroll-wrap{ position: relative; }

.hero-cinematic{
  position: relative;
  overflow: hidden;
  background: #0A0F0D;
  color: #fff;
  display: flex;
  flex-direction: column;
  min-height: 640px;
}
@media (min-width: 900px){
  .hero-cinematic{ height: calc(100vh - 68px); min-height: 560px; }
}

/* the real desk photo — full-bleed, cropped to cover. inset used to be
   pulled in -6%/-3% to leave headroom for a parallax scale-up during the
   scroll animation; with that animation off for now, the extra inset was
   just cropping the photo tighter than it needs to be for no reason —
   set back to 0 so more of the actual photo is visible. */
.hero-photo{
  position: absolute;
  inset: 0;
  z-index: 0;
  background-image: none; /* photo removed: no page using site.css shows the hero */
  background-size: cover;
  background-position: center 42%;
}
.hero-scrim{
  position: absolute; inset: 0; z-index: 1;
  background:
    linear-gradient(90deg, rgba(5,12,10,0.86) 0%, rgba(5,12,10,0.6) 30%, rgba(5,12,10,0.08) 56%, rgba(5,12,10,0.32) 100%),
    linear-gradient(0deg, rgba(5,12,10,0.55) 0%, rgba(5,12,10,0) 24%);
  opacity: calc(1 - var(--p, 0) * 0.55);
}

/* --- Headline block, sits over the dark shelf area on the left of the
   photo. Deliberately `position:absolute; left:` with a PHYSICAL offset,
   not a logical margin-inline-start — this is pinned to a specific empty
   region of a real photo. margin-inline-start would resolve to the right
   side in this RTL site and land the headline directly on the laptop. */
.hero-photo-copy{
  position: absolute;
  z-index: 2;
  left: clamp(20px, 6vw, 88px);
  top: clamp(64px, 15vh, 160px);
  max-width: 460px;
  padding-inline: 4px;
  text-align: right;
  opacity: calc(1 - var(--p, 0) * 1.6);
  transform: translateY(calc(var(--p, 0) * -24px));
}
.hero-photo-copy > *{ margin-block: 0; }
.hero-photo-copy > * + *{ margin-top: 14px; }
.hero-photo-copy .hero-actions{ justify-content: flex-end; margin-top: 22px; }
/* explicit request: the secondary "how it works" action should read as
   MORE prominent than the primary signup button in this hero specifically.
   Selector is deliberately over-specific (.hero-actions .btn.hero-btn-
   emphasis) so it beats .btn-lg's own padding/font-size shorthand, which
   is declared later in the file and would otherwise win on equal
   specificity with a plain .hero-btn-emphasis class selector. */
.hero-actions .btn.hero-btn-emphasis{ font-size: 1.22rem; padding: 19px 34px; }
.hero-photo-title{ color: #fff; }
.hero-photo-title .text-gradient{ color: var(--amber-500); }
.hero-photo-title .hero-photo-subtitle{
  display: block;
  font-size: 0.42em;
  font-weight: 600;
  letter-spacing: -0.01em;
  color: rgba(255,255,255,0.88);
  margin-top: 12px;
}

@media (max-width: 899px){
  .hero-cinematic{ min-height: 700px; }
  .hero-photo-copy{
    max-width: 100%;
    margin-inline: 0;
    padding-inline: 20px;
    top: 18px;
    text-align: center;
  }
  .hero-photo-copy > * + *{ margin-top: 10px; }
  .hero-photo-copy .lede{ font-size: 0.92rem; }
  .hero-photo-copy .hero-actions{ justify-content: center; margin-top: 16px; }
  /* The desktop scrim is a left-to-right gradient tuned so the text
     column (pinned to the left, `.hero-photo-copy`'s `left` offset)
     sits in its darkest band. On mobile the same text becomes centered
     and full-width, which put it right over that gradient's lightest
     midpoint (~56%) — nearly transparent there — so it sat directly on
     the photo with barely any scrim behind it. Swapping to a vertical
     gradient (uniformly dark enough everywhere on the x-axis) fixes
     that regardless of where the laptop happens to fall in the crop. */
  .hero-scrim{
    background: linear-gradient(180deg, rgba(5,12,10,0.74) 0%, rgba(5,12,10,0.6) 38%, rgba(5,12,10,0.72) 100%);
  }
}

/* Laptop-screen dashboard image removed per explicit request (2.8.2026)
   — "doesn't sit well", just the photo now. Hidden unconditionally
   (not only on mobile) rather than deleting the markup/JS below, so
   it's easy to bring back later if a better-fitting image shows up. */
.hero-laptop-screen{ display: none; }

/* --- The laptop screen: ONE element, its own box FIXED at the final
   "flat, grown" position/size the whole time. What moves is a true
   perspective corner-pin warp (CSS matrix3d, computed per scroll frame
   in main.js) that bends this box's four corners from the exact skewed
   quad measured in the source photo (so at rest it sits flush in the
   glass, matching the camera angle) to an identity rectangle (no warp)
   at full scroll. Earlier versions either crossfaded two shapes (read as
   a disconnected pop) or used clip-path alone (cuts a trapezoid outline
   but doesn't bend the pixels inside it to match the photo's angle, so
   it still read as "pasted on" rather than sitting in the screen). A
   real homography warp is what actually fixes that. */
.hero-laptop-screen{
  position: absolute;
  z-index: 2;
  left: 9%;
  top: 9%;
  width: 82%;
  height: 82%;
  transform-origin: 0 0;
  border-radius: calc(6px + var(--p, 0) * 10px);
  overflow: hidden;
  background: #060a09;
  filter: drop-shadow(0 calc(var(--p, 0) * 50px) calc(var(--p, 0) * 130px) rgba(0,0,0,0.55));
}
.hero-laptop-screen img{
  position: absolute; inset: 0;
  width: 100%; height: 100%;
  object-fit: cover;
  object-position: top center;
}
/* subtle dark scrim for screen-glass realism. Used to ease from 0.55→0
   as the scroll animation "woke up" the screen; with that off for now
   the screen is static, so this is just a light fixed glass tint that
   keeps the dashboard content clearly legible instead of dimmed. */
.hero-laptop-screen::after{
  content: "";
  position: absolute; inset: 0;
  background: #060a09;
  opacity: 0.1;
}

@media (max-width: 899px){
  /* static fallback: photo still shows, but the fiddly aligned overlays
     (screen UI, robot cluster, phone) are hidden — see the display:none
     rule above — and --p never gets set by JS at this width anyway. */
  .hero-photo{ background-position: 66% center; }
}

.hero-grid{
  display: grid;
  /* minmax(0,1fr) — NOT the "auto" an implicit single-column grid gets by
     default — is what lets this column shrink to the viewport instead of
     stretching to the max-content width of whatever's inside (the hero
     buttons/phone mockup), which is what was blowing the layout out past
     390px and clipping the copy off-screen. */
  grid-template-columns: minmax(0, 1fr);
  gap: 40px;
  align-items: center;
  width: 100%;
}
@media (min-width: 980px){
  .hero-grid{ grid-template-columns: minmax(0,1fr) minmax(0,1fr); gap: 40px; }
}

.hero-copy{ max-width: 560px; min-width: 0; }
.hero-visual{ min-width: 0; }
.hero-copy h1{ margin-block: 20px 20px; }
.hero-actions{ display: flex; flex-wrap: wrap; gap: 12px; margin-top: 32px; }
.hero-note{ margin-top: 18px; font-size: 0.88rem; color: var(--ink-faint); }

/* hero CTA reads a size up from the rest of the site's buttons — the one
   deliberate place a button is allowed extra visual weight, since it's
   the single decision the whole page is built around */
.btn-lg{ padding: 17px 30px; font-size: 1.04rem; }

/* deliberately neutered — soft color blur "blobs" read as generic SaaS
   template filler, not the restrained fintech look we're matching now.
   Kept in markup harmlessly (display:none) rather than edited out of
   every page, since the flow/markup itself is out of scope here. */
.hero-blob{ display: none; }

/* single-color emphasis on a headline phrase — no rainbow clip-text */
.text-gradient{
  color: var(--amber-600);
}

/* --- Trust strip ---------------------------------------------------------*/
.trust-strip{
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 1px;
  margin-top: 40px;
  background: var(--line);
  border: 1px solid var(--line);
  border-radius: var(--radius-md);
  overflow: hidden;
}
@media (min-width: 640px){ .trust-strip{ grid-template-columns: repeat(3, 1fr); } }
.trust-item{
  display: flex;
  align-items: center;
  gap: 10px;
  background: var(--white);
  padding: 16px 16px;
  font-size: 0.84rem;
  font-weight: 500;
  color: var(--ink);
}
.trust-item .dot{
  width: 28px; height:28px; border-radius: 50%;
  background: var(--paper-alt); color: var(--ink);
  display:flex; align-items:center; justify-content:center; flex: none;
}

/* --- Phone mockup ----------------------------------------------------- */
.phone-stage{
  position: relative;
  display: flex;
  justify-content: center;
  padding: 36px 0;
}
/* soft "product stage" behind the phone — the thing that turns a small
   floating mockup into something that reads as a deliberate product shot,
   the way Mercury/Linear frame their dashboard screenshots in a spotlight
   rather than dropping them straight onto the page background */
.phone-stage::before{
  content: "";
  position: absolute;
  inset: 0;
  margin: auto;
  width: min(480px, 92%);
  aspect-ratio: 1 / 1;
  background: radial-gradient(circle, rgba(10,127,94,0.16) 0%, rgba(10,127,94,0.05) 45%, transparent 72%);
  z-index: -1;
}
.phone-frame{
  width: min(340px, 82vw);
  aspect-ratio: 9 / 19.5;
  background: var(--forest-900);
  border-radius: 46px;
  padding: 12px;
  box-shadow: var(--shadow-lg), 0 0 0 1px rgba(11,11,15,0.06);
  position: relative;
  transform: rotate(-1deg);
}
.phone-frame::before{
  content: "";
  position: absolute;
  top: 12px; left: 50%; transform: translateX(-50%);
  width: 40%; height: 20px;
  background: var(--forest-900);
  border-radius: 0 0 14px 14px;
  z-index: 3;
}
.phone-screen{
  width: 100%; height: 100%;
  background: var(--paper);
  border-radius: 30px;
  overflow: hidden;
  position: relative;
  display: flex;
  flex-direction: column;
}
.phone-screen .chat-head{
  background: var(--forest-800);
  color: var(--white);
  padding: 32px 16px 12px;
  display: flex;
  align-items: center;
  gap: 10px;
  font-size: 0.8rem;
  font-weight: 600;
}
.phone-screen .chat-head .av{
  width: 28px; height: 28px; border-radius: 50%;
  background: var(--amber-600);
  display: flex; align-items: center; justify-content: center;
  color: var(--white); font-weight: 700; font-size: 0.76rem;
}
.chat-body{
  flex: 1;
  padding: 14px 12px;
  display: flex;
  flex-direction: column;
  gap: 9px;
  overflow: hidden;
}
.bubble{
  max-width: 82%;
  padding: 10px 13px;
  border-radius: 14px;
  font-size: 0.76rem;
  line-height: 1.5;
  box-shadow: 0 1px 2px rgba(11,11,15,0.05);
}
.bubble-in{
  align-self: flex-start;
  background: var(--paper-alt);
  border-bottom-right-radius: 3px;
  color: var(--ink-soft);
}
.bubble-out{
  align-self: flex-end;
  background: var(--amber-100);
  border-bottom-left-radius: 3px;
  color: var(--amber-800);
}
.bubble-skel{ display: flex; flex-direction: column; gap: 6px; padding: 12px 14px; }
.bubble-skel span{
  display: block; height: 8px; border-radius: 5px;
  background: currentColor; opacity: 0.18;
}
.bubble-skel span:nth-child(1){ width: 92px; }
.bubble-skel span:nth-child(2){ width: 58px; }

/* a small loop that makes the phone screen feel alive — bubbles arrive
   one after another and hold, instead of sitting static on the screen.
   No real conversation text is invented here (still a placeholder per
   the phone-slot-note below it) — this only animates the same skeleton
   bars that were already there. */
.chat-body .bubble{ animation: bubbleCycle 6.6s ease infinite; }
.chat-body .bubble:nth-child(1){ animation-delay: 0s; }
.chat-body .bubble:nth-child(2){ animation-delay: .55s; }
.chat-body .bubble:nth-child(3){ animation-delay: 1.1s; }
@keyframes bubbleCycle{
  0%{ opacity: 0; transform: translateY(10px); }
  8%, 80%{ opacity: 1; transform: translateY(0); }
  92%, 100%{ opacity: 0; transform: translateY(-6px); }
}
@media (prefers-reduced-motion: reduce){ .chat-body .bubble{ animation: none; opacity: 1; transform: none; } }

.phone-slot-note{
  /* stays absolute (and wraps, capped by max-width) at every size — it
     used to drop to position:static + white-space:nowrap on narrow
     screens, which put a long unbreakable Hebrew string into normal
     flex flow and blew the phone-stage out to its full text width
     (~480px on a 390px viewport). Wrapping in place is simpler and
     can't do that regardless of viewport width. */
  position: absolute;
  inset: auto -14px -30px auto;
  max-width: 168px;
  text-align: center;
  background: var(--white);
  border: 1px solid var(--line-strong);
  color: var(--ink-faint);
  font-size: 0.72rem;
  font-weight: 600;
  line-height: 1.4;
  padding: 7px 13px;
  border-radius: var(--radius-md);
  box-shadow: var(--shadow-sm);
}

/* --- Floating capability chips around the phone — the "product shot"
   comes alive with a few small notification-style cards that drift and
   fade in with stagger, instead of sitting static next to a device ------ */
/* animates the standalone `translate` property, not `transform` — the
   entrance pop-in (below) animates `transform` via a transition, and
   `translate`/`scale`/`rotate`/`transform` compose independently per spec,
   so the continuous bob and the one-time entrance never fight over the
   same property (which would make the transition get clipped/skipped). */
@keyframes floaty{
  0%, 100%{ translate: 0 0; }
  50%{ translate: 0 -9px; }
}
.float-card{
  position: absolute;
  display: flex;
  align-items: center;
  gap: 8px;
  background: var(--white);
  border: 1px solid var(--line);
  box-shadow: var(--shadow-md);
  border-radius: var(--radius-pill);
  padding: 10px 16px 10px 14px;
  font-size: 0.82rem;
  font-weight: 600;
  color: var(--ink);
  white-space: nowrap;
  z-index: 2;
  animation: floaty 5s ease-in-out infinite;
}
@media (prefers-reduced-motion: reduce){
  .float-card{ animation: none; }
}
.float-card-icon{
  width: 22px; height: 22px; border-radius: 50%;
  background: var(--amber-100); color: var(--amber-600);
  display: flex; align-items: center; justify-content: center; flex: none;
}
.float-card-a{ top: 6%; right: -6%; animation-delay: .2s; }
.float-card-b{ top: 46%; left: -14%; animation-delay: 1.3s; }
.float-card-c{ bottom: 22%; right: -8%; animation-delay: 2.4s; }
@media (max-width: 560px){
  .float-card{ font-size: 0.72rem; padding: 8px 13px 8px 11px; }
  .float-card-icon{ width: 19px; height: 19px; }
  .float-card-a{ right: -3%; }
  .float-card-b{ left: -7%; }
  .float-card-c{ right: -1%; bottom: 18%; }
}
/* pop-in entrance for the floating chips — a touch more motion than the
   plain fade/slide .reveal used everywhere else, reserved for these.
   Compound selector (.reveal.reveal-pop) so it beats .reveal's own
   transform on specificity regardless of source order. */
.reveal.reveal-pop{ transform: translateY(10px) scale(.9); }
.reveal.reveal-pop.is-visible{ transform: translateY(0) scale(1); }

.mic-pill{
  margin: auto 12px 16px;
  background: var(--white);
  border: 1px solid var(--line);
  border-radius: var(--radius-pill);
  display: flex; align-items: center; gap: 8px;
  padding: 9px 13px;
  box-shadow: var(--shadow-sm);
}
.mic-pill .waveform{ display: flex; align-items: center; gap: 3px; flex: 1; height: 18px; }
.mic-pill .waveform span{
  width: 2.5px; border-radius: 2px; background: var(--amber-600);
  animation: wave 1.2s ease-in-out infinite;
}
.mic-pill .waveform span:nth-child(odd){ animation-delay: -0.6s; }
@keyframes wave{
  0%, 100%{ height: 5px; } 50%{ height: 16px; }
}
.mic-pill .mic-btn{
  width: 24px; height: 24px; border-radius: 50%;
  background: var(--amber-600); color: var(--white);
  display: flex; align-items: center; justify-content: center; flex: none;
}

/* --- Reveal on scroll ----------------------------------------------------*/
.reveal{ opacity: 0; transform: translateY(30px) scale(.98); transition: opacity .9s var(--ease), transform .9s var(--ease); }
.reveal.is-visible{ opacity: 1; transform: translateY(0) scale(1); }
.reveal-delay-1{ transition-delay: .1s; }
.reveal-delay-2{ transition-delay: .2s; }
.reveal-delay-3{ transition-delay: .3s; }

/* --- Problem / how cards ---------------------------------------------------*/
.grid-3{ display: grid; gap: 1px; grid-template-columns: 1fr; background: var(--line); border: 1px solid var(--line); border-radius: var(--radius-lg); overflow: hidden; }
.grid-2{ display: grid; gap: 16px; grid-template-columns: 1fr; }
@media (min-width: 720px){
  .grid-3{ grid-template-columns: repeat(3, 1fr); }
  .grid-2{ grid-template-columns: repeat(2, 1fr); }
}
.grid-3 .card{ border: none; border-radius: 0; }

.card{
  background: var(--white);
  border: 1px solid var(--line);
  border-radius: var(--radius-lg);
  padding: 34px 28px;
  transition: box-shadow .25s var(--ease);
}
.card:hover{ box-shadow: var(--shadow-md); }

.card-icon{
  width: 40px; height: 40px;
  border-radius: 10px;
  background: var(--paper-alt);
  border: 1px solid var(--line);
  color: var(--ink);
  display: flex; align-items: center; justify-content: center;
  margin-bottom: 18px;
}
.card-icon svg{ width: 20px; height: 20px; }

.card h3{ margin-bottom: 8px; }
.card p{ color: var(--ink-soft); font-size: 0.94rem; }

.pain-card{
  background: var(--white);
  border: 1px solid var(--line);
  border-radius: var(--radius-md);
  padding: 18px 20px;
  display: flex;
  gap: 12px;
  align-items: flex-start;
}
.pain-card .quote-mark{ font-family: var(--font-display); font-size: 1.9rem; color: var(--line-strong); line-height: 0.5; flex: none; font-weight: 700; }
.pain-card p{ font-weight: 500; color: var(--ink); }

/* --- Steps ---------------------------------------------------------------*/
.steps{ position: relative; }
.step{
  display: grid;
  grid-template-columns: 40px 1fr;
  gap: 16px;
  position: relative;
  padding-bottom: 30px;
}
.step:last-child{ padding-bottom: 0; }
.step-num{
  width: 40px; height: 40px;
  border-radius: 50%;
  background: var(--ink);
  color: var(--white);
  display: flex; align-items: center; justify-content: center;
  font-weight: 700;
  font-size: 0.95rem;
  font-family: var(--font-display);
  position: relative;
  z-index: 1;
  flex: none;
}
.step::before{
  content: "";
  position: absolute;
  top: 40px; bottom: 0;
  right: 20px;
  width: 1px;
  background: var(--line-strong);
}
.step:last-child::before{ display: none; }
.step-body h4{ margin-bottom: 6px; }
.step-body p{ color: var(--ink-soft); font-size: 0.94rem; }

/* --- Principles (trust promise) -------------------------------------------*/
.principle{
  display: flex;
  gap: 16px;
  padding: 20px 0;
  border-bottom: 1px solid var(--line);
}
.principle:last-child{ border-bottom: none; }
.principle .num{
  font-family: var(--font-display);
  font-size: 1.2rem;
  font-weight: 700;
  color: var(--line-strong);
  flex: none;
  width: 36px;
}

/* --- Pricing --------------------------------------------------------------*/
.pricing-grid{
  display: grid;
  gap: 20px;
  grid-template-columns: 1fr;
}
@media (min-width: 900px){ .pricing-grid{ grid-template-columns: repeat(3, 1fr); align-items: stretch; } }

.price-card{
  background: var(--white);
  border: 1px solid var(--line);
  border-radius: var(--radius-lg);
  padding: 36px 30px;
  display: flex;
  flex-direction: column;
  position: relative;
  transition: box-shadow .25s var(--ease), border-color .25s var(--ease);
}
.price-card.is-active{
  border-color: var(--amber-600);
  box-shadow: var(--shadow-lg);
}
.price-card.is-active::before{
  content: "הכי פופולרי";
  position: absolute;
  top: -12px; right: 26px;
  background: var(--amber-600);
  color: var(--white);
  font-size: 0.72rem;
  font-weight: 700;
  padding: 5px 12px;
  border-radius: var(--radius-pill);
}
.price-card.is-soon{ background: var(--paper-alt); }
.price-card:hover{ box-shadow: var(--shadow-md); }

.price-head{ margin-bottom: 16px; }
.price-name{ font-size: 1.2rem; margin-bottom: 6px; font-weight: 700; letter-spacing: -0.01em; }
.price-value{ display: flex; align-items: baseline; gap: 6px; margin: 14px 0; }
.price-value .amount{ font-family: var(--font-display); font-size: 2.2rem; color: var(--ink); font-weight: 700; letter-spacing: -0.02em; }
.price-value .unit{ color: var(--ink-faint); font-size: 0.88rem; }
.price-soon-value{ font-family: var(--font-display); font-size: 1.3rem; color: var(--ink-faint); margin: 14px 0; font-weight: 600; }

.price-list{ display: flex; flex-direction: column; gap: 11px; margin: 18px 0 26px; flex: 1; }
.price-list li{ display: flex; align-items: flex-start; gap: 10px; font-size: 0.9rem; color: var(--ink-soft); }
.price-list .check{
  width: 18px; height: 18px; border-radius: 50%;
  background: var(--paper-alt); color: var(--ink);
  display: flex; align-items: center; justify-content: center; flex: none; margin-top: 1px;
  font-size: 0.7rem;
}
.price-list.is-locked .check{ background: transparent; border: 1px solid var(--line-strong); color: var(--ink-faint); }
.price-list.is-locked li{ color: var(--ink-faint); }

/* --- Upsell teaser (deliberate dark section — the one place for a bit of
   drama: near-black surface, single accent glow, faint grain) ------------- */
.upsell-banner{
  border-radius: var(--radius-lg);
  padding: 30px 26px;
  background: var(--forest-900);
  color: var(--white);
  position: relative;
  overflow: hidden;
}
.upsell-banner::after{
  content: "";
  position: absolute;
  width: 340px; height: 340px;
  background: radial-gradient(circle, rgba(79,216,174,0.14), transparent 70%);
  top: -120px; left: -80px;
  pointer-events: none;
}
.upsell-banner::before{
  content: "";
  position: absolute;
  inset: 0;
  opacity: 0.5;
  pointer-events: none;
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='90' height='90'%3E%3Cfilter id='n'%3E%3CfeTurbulence type='fractalNoise' baseFrequency='0.9' numOctaves='2' stitchTiles='stitch'/%3E%3C/filter%3E%3Crect width='100%25' height='100%25' filter='url(%23n)' opacity='0.06'/%3E%3C/svg%3E");
  mix-blend-mode: overlay;
}
.upsell-banner > *{ position: relative; z-index: 1; }
.upsell-banner h3{ color: var(--white); }
.upsell-banner p{ color: rgba(255,255,255,0.68); }
.unlock-row{ display: flex; flex-wrap: wrap; gap: 8px; margin-top: 18px; }
.unlock-chip{
  display: flex; align-items: center; gap: 8px;
  background: rgba(255,255,255,0.06);
  border: 1px solid rgba(255,255,255,0.14);
  padding: 8px 13px;
  border-radius: var(--radius-pill);
  font-size: 0.8rem;
  font-weight: 500;
}
.unlock-chip .lock{ opacity: 0.7; }

.locked-card{
  border: 1px solid var(--line);
  border-radius: var(--radius-md);
  padding: 16px 18px;
  background: var(--paper-alt);
  display: flex;
  align-items: center;
  gap: 14px;
}
.locked-card .lock-icon{
  width: 36px; height: 36px; border-radius: 9px;
  background: var(--white); color: var(--ink-faint);
  display: flex; align-items: center; justify-content: center; flex: none;
  border: 1px solid var(--line);
}
.locked-card .lock-body{ flex: 1; }
.locked-card .lock-body strong{ display: block; color: var(--ink); font-size: 0.92rem; font-weight: 600; }
.locked-card .lock-body span{ font-size: 0.8rem; color: var(--ink-faint); }

/* --- Comparison table -------------------------------------------------- */
.compare-scroll{ overflow-x: auto; border-radius: var(--radius-md); border: 1px solid var(--line); background: var(--white); }
table.compare{ width: 100%; border-collapse: collapse; min-width: 620px; }
table.compare th, table.compare td{ padding: 15px 18px; text-align: center; border-bottom: 1px solid var(--line); font-size: 0.88rem; }
table.compare th:first-child, table.compare td:first-child{ text-align: right; color: var(--ink-soft); font-weight: 500; }
table.compare thead th{ font-family: var(--font-display); font-size: 0.94rem; font-weight: 700; color: var(--ink); padding-top: 20px; }
table.compare tbody tr:last-child td{ border-bottom: none; }
table.compare .yes{ color: var(--ink); font-weight: 700; }
table.compare .no{ color: var(--line-strong); }

/* --- FAQ / accordion -------------------------------------------------- */
.faq-item{
  border-bottom: 1px solid var(--line);
}
.faq-q{
  width: 100%;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
  padding: 20px 2px;
  text-align: right;
  font-weight: 600;
  font-size: 0.98rem;
  color: var(--ink);
}
.faq-q .plus{
  width: 24px; height: 24px; flex: none;
  border-radius: 50%;
  border: 1px solid var(--line-strong);
  color: var(--ink);
  display: flex; align-items: center; justify-content: center;
  transition: transform .3s var(--ease);
  font-size: 1rem;
  font-weight: 400;
}
.faq-item.is-open .faq-q .plus{ transform: rotate(45deg); }
.faq-a{
  max-height: 0;
  overflow: hidden;
  transition: max-height .35s var(--ease);
}
.faq-a p{ padding: 0 2px 20px; color: var(--ink-soft); font-size: 0.92rem; }

/* --- Forms ---------------------------------------------------------------*/
.field{ display: flex; flex-direction: column; gap: 7px; margin-bottom: 16px; }
.field label{ font-size: 0.85rem; font-weight: 600; color: var(--ink); }
.field input, .field select, .field textarea{
  border: 1px solid var(--line-strong);
  background: var(--white);
  border-radius: var(--radius-sm);
  padding: 12px 14px;
  font-size: 0.98rem;
  transition: border-color .2s, box-shadow .2s;
}
.field input:focus, .field select:focus, .field textarea:focus{
  outline: none;
  border-color: var(--amber-600);
  box-shadow: 0 0 0 3px var(--amber-100);
}
.field small{ color: var(--ink-faint); font-size: 0.78rem; }
.field-row{ display: grid; gap: 16px; grid-template-columns: 1fr; }
@media (min-width: 600px){ .field-row{ grid-template-columns: 1fr 1fr; } }

/* --- Toggle switch ---------------------------------------------------- */
.setting-row{
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
  padding: 17px 2px;
  border-bottom: 1px solid var(--line);
}
.setting-row:last-child{ border-bottom: none; }
.setting-copy strong{ display: block; font-size: 0.95rem; font-weight: 600; color: var(--ink); margin-bottom: 3px; }
.setting-copy span{ font-size: 0.83rem; color: var(--ink-faint); }

.switch{
  position: relative;
  width: 42px; height: 25px;
  flex: none;
}
.switch input{ opacity: 0; width: 0; height: 0; position: absolute; }
.switch .track{
  position: absolute; inset: 0;
  background: var(--line-strong);
  border-radius: var(--radius-pill);
  transition: background .25s var(--ease);
}
.switch .thumb{
  position: absolute; top: 2.5px; right: 2.5px;
  width: 20px; height: 20px;
  background: var(--white);
  border-radius: 50%;
  box-shadow: var(--shadow-sm);
  transition: transform .25s var(--ease);
}
.switch input:checked + .track{ background: var(--amber-600); }
.switch input:checked + .track + .thumb{ transform: translateX(-17px); }

/* --- Stepper (signup flow) ---------------------------------------------- */
.progress-track{
  display: flex;
  align-items: center;
  gap: 6px;
  margin-bottom: 34px;
}
.progress-track .seg{
  flex: 1;
  height: 3px;
  border-radius: var(--radius-pill);
  background: var(--line);
  overflow: hidden;
}
.progress-track .seg i{ display: block; height: 100%; width: 0%; background: var(--amber-600); border-radius: var(--radius-pill); transition: width .4s var(--ease); }
.progress-track .seg.is-done i{ width: 100%; }
.progress-track .seg.is-current i{ width: 55%; }

.plan-pick{
  border: 1px solid var(--line-strong);
  border-radius: var(--radius-md);
  padding: 17px 18px;
  display: flex;
  align-items: center;
  gap: 14px;
  cursor: pointer;
  transition: border-color .2s, background .2s;
  margin-bottom: 12px;
  background: var(--white);
}
.plan-pick input{ width: 18px; height: 18px; accent-color: var(--amber-600); flex: none; }
.plan-pick.is-selected{ border-color: var(--amber-600); background: var(--amber-100); }
.plan-pick.is-disabled{ opacity: 0.5; cursor: not-allowed; }
.plan-pick .plan-body{ flex: 1; }
.plan-pick .plan-body strong{ display: flex; align-items: center; gap: 8px; color: var(--ink); font-weight: 600; }
.plan-pick .plan-body p{ font-size: 0.83rem; color: var(--ink-faint); margin-top: 2px; }

.auth-card{
  background: var(--white);
  border: 1px solid var(--line);
  border-radius: var(--radius-lg);
  padding: clamp(24px, 6vw, 44px);
  box-shadow: var(--shadow-md);
}

.google-btn{
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 12px;
  width: 100%;
  padding: 13px 20px;
  border-radius: var(--radius-btn);
  border: 1px solid var(--line-strong);
  background: var(--white);
  font-weight: 600;
  font-size: 0.95rem;
  color: var(--ink);
  transition: box-shadow .2s, transform .2s, border-color .2s;
}
.google-btn:hover{ box-shadow: var(--shadow-sm); border-color: var(--ink-faint); }
.google-btn img, .google-btn svg{ width: 18px; height: 18px; }

.success-check{
  width: 76px; height: 76px;
  border-radius: 50%;
  background: var(--success-tint);
  color: var(--success);
  display: flex; align-items: center; justify-content: center;
  margin: 0 auto 22px;
}
.success-check svg{ width: 36px; height: 36px; }

/* --- Numbered explainer steps (portal connection page) ----------------- */
.explain-step{
  display: flex;
  gap: 18px;
  padding: 18px 0;
  border-bottom: 1px solid var(--line);
}
.explain-step:last-child{ border: none; }
.explain-step .n{
  font-family: var(--font-display);
  font-size: 1.2rem;
  font-weight: 700;
  color: var(--line-strong);
  flex: none;
  width: 32px;
}
.shot-frame{
  margin-top: 14px;
  border: 1px dashed var(--line-strong);
  border-radius: var(--radius-md);
  background: var(--paper-alt);
  min-height: 140px;
  display: flex;
  align-items: center;
  justify-content: center;
  color: var(--ink-faint);
  font-size: 0.8rem;
  font-weight: 500;
  gap: 8px;
  text-align: center;
  padding: 14px;
}

/* --- Footer ---------------------------------------------------------------*/
.site-footer{
  background: var(--forest-900);
  color: rgba(255,255,255,0.65);
  padding: 52px 0 26px;
  margin-top: 40px;
  position: relative;
  overflow: hidden;
}
.footer-grid{
  display: grid;
  gap: 32px;
  grid-template-columns: 1fr;
  margin-bottom: 40px;
  position: relative;
  z-index: 1;
}
@media (min-width: 780px){ .footer-grid{ grid-template-columns: 1.3fr 1fr 1fr 1fr; } }
.footer-brand .brand{ margin-bottom: 12px; }
.brand-logo-footer{ height: 26px; }
.footer-brand p{ font-size: 0.88rem; max-width: 320px; color: rgba(255,255,255,0.5); }
.footer-col h4{ color: var(--white); font-size: 0.88rem; font-weight: 600; margin-bottom: 16px; font-family: var(--font-body); }
.footer-col ul{ display: flex; flex-direction: column; gap: 12px; }
.footer-col a{ font-size: 0.88rem; color: rgba(255,255,255,0.55); transition: color .2s; }
.footer-col a:hover{ color: var(--white); }
.footer-bottom{
  border-top: 1px solid rgba(255,255,255,0.1);
  padding-top: 22px;
  display: flex;
  flex-wrap: wrap;
  gap: 12px;
  justify-content: space-between;
  align-items: center;
  font-size: 0.8rem;
  color: rgba(255,255,255,0.4);
  position: relative;
  z-index: 1;
}
.footer-contact-links{ display: flex; gap: 10px; }
.footer-contact-links a{
  display: flex; align-items: center; gap: 8px;
  background: rgba(255,255,255,0.06);
  border: 1px solid rgba(255,255,255,0.1);
  padding: 8px 13px;
  border-radius: var(--radius-pill);
  color: var(--white);
  font-size: 0.82rem;
  font-weight: 500;
}
.footer-contact-links a:hover{ background: rgba(255,255,255,0.12); }

/* --- Portal bottom tab bar (mobile) --------------------------------------*/
.tab-bar{
  position: fixed;
  bottom: 0; left: 0; right: 0;
  background: rgba(255,255,255,0.9);
  backdrop-filter: blur(16px);
  border-top: 1px solid var(--line);
  display: flex;
  z-index: 90;
  padding-bottom: env(safe-area-inset-bottom, 0);
}
.tab-bar a{
  flex: 1;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 4px;
  padding: 10px 4px 8px;
  font-size: 0.68rem;
  font-weight: 600;
  color: var(--ink-faint);
}
.tab-bar a svg{ width: 21px; height: 21px; }
.tab-bar a.active{ color: var(--amber-600); }
@media (min-width: 980px){ .tab-bar{ display: none; } }
.has-tab-bar{ padding-bottom: 84px; }

/* --- Misc ---------------------------------------------------------------*/
.divider{ height: 1px; background: var(--line); border: none; margin: 8px 0; }
.text-muted{ color: var(--ink-faint); }
.mt-8{ margin-top: 8px;} .mt-16{ margin-top:16px;} .mt-24{ margin-top:24px;} .mt-32{ margin-top:32px;} .mt-48{ margin-top:48px;}
.gap-tag{ display:inline-flex; align-items:center; gap:6px; }

.skip-link{
  position: absolute; right: -999px; top: 0; background: var(--ink); color: var(--white); padding: 10px 16px; border-radius: 0 0 8px 8px; z-index: 200;
}
.skip-link:focus{ right: 0; }

::selection{ background: var(--amber-100); color: var(--ink); }

/* --- Auth-state slots (placeholder client-side toggle; wire to real
   session/auth check on the backend — see comment in <head>) -------------
   Specificity note: `.header-actions .btn-ghost{ display:inline-flex }`
   (2 classes) outranks a bare `.auth-member{ display:none }` (1 class), so
   at >=640px the ghost auth-member link was winning the cascade and
   showing "האזור האישי" twice. Every rule here is written at least as
   specific as `.header-actions .btn-ghost` so the auth-state toggle always
   wins regardless of viewport width. */
.header-actions .auth-member{ display: none; }
html.is-member .header-actions .auth-guest{ display: none; }
html.is-member .header-actions .auth-member{ display: inline-flex; }

/* --- Portal login card — visible by default (guest), hidden once
   `.is-member` is set on <html> (same convention as the header's
   .auth-guest/.auth-member pair). Real access-gating of the REST of the
   portal's content is a separate, bigger piece (see portal.js comment)
   — this only controls the login card itself. */
.portal-login-card{ display: block; }
html.is-member .portal-login-card{ display: none; }

/* --- Safety net for the `hidden` attribute: any class that sets its own
   `display` (e.g. `.field{ display:flex }`) silently defeats the browser's
   default `[hidden]{ display:none }` UA rule, because that default lives
   in the lowest-priority stylesheet origin and loses to ANY author rule
   regardless of selector specificity — not just more-specific ones. Found
   via #ravit-fields (class="field", toggled with .hidden in portal.js)
   staying visible despite `hidden` being set. `!important` here is
   intentional and the standard fix: `hidden` should always win. */
[hidden]{ display: none !important; }

/* --- Inline status/error text (Google OAuth failure, webhook error
   reasons) — reuses the same visual language as the existing success
   message style (.token-status success color), just in --danger. */
.status-msg-error{ font-size: 0.86rem; font-weight: 700; color: var(--danger); }
.status-msg-success{ font-size: 0.86rem; font-weight: 700; color: var(--success); }
.status-msg-muted{ font-size: 0.86rem; font-weight: 600; color: var(--ink-faint); }

/* --- DEV MODE only (?dev=1 in the URL) — a small fixed ribbon plus a
   per-step "skip" control that jumps the signup flow forward with dummy
   data. Purely client-side navigation; never calls the Google OAuth
   redirect or any webhook. Never rendered unless the dev query param is
   present, so it's inert (and invisible) in normal production use. Strip
   the DEV_MODE block in signup.js entirely before a hardened launch if
   you'd rather not ship the code path at all. */
.dev-mode-ribbon{
  position: fixed;
  z-index: 999;
  bottom: 14px;
  left: 14px;
  background: #1a1a1a;
  color: #ffd43b;
  font-size: 0.72rem;
  font-weight: 800;
  letter-spacing: 0.04em;
  padding: 6px 10px;
  border-radius: 6px;
  box-shadow: 0 4px 16px rgba(0,0,0,0.3);
}
.dev-skip-btn{
  display: inline-block;
  margin-top: 14px;
  font-size: 0.78rem;
  font-weight: 700;
  color: #1a1a1a;
  background: #ffd43b;
  border: none;
  border-radius: 8px;
  padding: 7px 12px;
  cursor: pointer;
}
