/* Signal — landing page.
   Palette sampled straight from the feather logo (dusty plum → mauve, soft).
   Type matches eslingshot.com: Space Grotesk (display) + Manrope (body).
   Keeps the CSS-3D hero. Self-contained (isolated from site.css). */

:root {
  --paper:       #f7f5f6;
  --paper-2:     #ffffff;
  --paper-deep:  #f0eaf0;   /* soft mauve tint */
  --ink:         #272330;
  --ink-soft:    #5a5560;
  --ink-faint:   #938d99;
  --line:        #e8e2e9;
  --line-strong: #d9d1da;

  /* brand — sampled from signal-icon.png (the feather) */
  --plum:        #6f5f7e;   /* feather's deep tone = primary accent */
  --plum-deep:   #4f4360;
  --plum-2:      #7d6c8a;
  --mauve:       #a18a9e;   /* feather mid tone (decorative) */
  --mauve-lt:    #c9bdc9;   /* feather light tone (decorative) */
  --plum-wash:   #efe9f1;

  /* muted semantic urgency, tuned to the soft palette */
  --danger:      #b0483f;  --danger-wash: #f6e7e4;
  --warn:        #a9781f;  --warn-wash:   #f6ecd9;
  --ok:          #5a7d63;  --ok-wash:     #e8f0ea;

  --display: "Space Grotesk", "Manrope", -apple-system, "Segoe UI", sans-serif;
  --logo:    "Space Grotesk", "Manrope", sans-serif;
  --body:    "Manrope", -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, Helvetica, Arial, sans-serif;
  --mono: ui-monospace, SFMono-Regular, "SF Mono", Menlo, Consolas, monospace;

  --wrap: 1140px;
  --radius: 16px;
  --shadow: 0 1px 2px rgba(39,35,48,.05), 0 14px 34px -14px rgba(39,35,48,.16);
  --shadow-lg: 0 2px 4px rgba(39,35,48,.06), 0 34px 64px -22px rgba(79,67,96,.30);
}

* { box-sizing: border-box; }
html { scroll-behavior: smooth; }
@media (prefers-reduced-motion: reduce) { html { scroll-behavior: auto; } }

body { margin: 0; font-family: var(--body); color: var(--ink); background: var(--paper); line-height: 1.6; -webkit-font-smoothing: antialiased; text-rendering: optimizeLegibility; }
a { color: inherit; text-decoration: none; }
img { max-width: 100%; display: block; }
h1, h2, h3, h4 { font-family: var(--display); font-weight: 700; letter-spacing: -0.02em; line-height: 1.1; margin: 0; text-wrap: balance; }
p { margin: 0; }

.wrap { max-width: var(--wrap); margin: 0 auto; padding: 0 1.5rem; }
.eyebrow { font-size: 0.78rem; font-weight: 600; letter-spacing: 0.16em; text-transform: uppercase; color: var(--plum); margin: 0 0 0.9rem; }
.muted { color: var(--ink-soft); }

/* ---------- buttons ---------- */
.btn { display: inline-flex; align-items: center; justify-content: center; gap: 0.5rem; font-family: var(--body); font-weight: 600; font-size: 0.98rem; padding: 0.8rem 1.4rem; border-radius: 999px; border: 1px solid transparent; cursor: pointer; transition: transform .15s ease, box-shadow .15s ease, background .15s ease, border-color .15s; white-space: nowrap; }
.btn:hover { transform: translateY(-1px); }
.btn-primary { background: var(--ink); color: #fff; }
.btn-primary:hover { background: #000; }
.btn-purple { background: var(--plum); color: #fff; }
.btn-purple:hover { background: var(--plum-deep); box-shadow: 0 12px 28px -12px rgba(79,67,96,.55); }
.btn-cream { background: #f3eef3; color: var(--plum-deep); }
.btn-cream:hover { background: #fff; box-shadow: 0 12px 30px -14px rgba(0,0,0,.45); }
.btn-ghost { background: transparent; color: var(--ink); border-color: var(--line-strong); }
.btn-ghost:hover { background: var(--paper-2); border-color: var(--plum); color: var(--plum-deep); }
.btn-ghost-light { background: rgba(255,255,255,.08); color: #fff; border-color: rgba(255,255,255,.4); }
.btn-ghost-light:hover { background: rgba(255,255,255,.16); border-color: #fff; }
.btn-lg { padding: 0.95rem 1.7rem; font-size: 1.05rem; }
.btn-sm { padding: 0.55rem 1rem; font-size: 0.9rem; }

/* ---------- nav ---------- */
.nav { position: sticky; top: 0; z-index: 50; background: rgba(247,245,246,.85); backdrop-filter: saturate(140%) blur(12px); -webkit-backdrop-filter: saturate(140%) blur(12px); border-bottom: 1px solid var(--line); }
.nav-inner { display: flex; align-items: center; gap: 1.75rem; min-height: 70px; max-width: var(--wrap); margin: 0 auto; padding: 0.5rem 1.5rem; }
.brand { display: inline-flex; align-items: center; gap: 0.55rem; color: var(--ink); }
.brand .wm { font-family: var(--logo); font-weight: 700; font-size: 1.31rem; letter-spacing: -0.02em; line-height: 1; background: linear-gradient(120deg, var(--plum-deep), var(--mauve)); -webkit-background-clip: text; background-clip: text; color: transparent; }
.brand-logo { height: 30px; width: auto; display: block; }
.brand-home { display: inline-flex; align-items: center; }
.brand-stack { display: inline-flex; flex-direction: column; justify-content: center; gap: 1px; line-height: 1; }
.brand-by { font-family: var(--body); font-size: 0.6rem; font-weight: 600; letter-spacing: 0.06em; text-transform: uppercase; color: var(--ink-faint); transition: color .15s ease; white-space: nowrap; direction: ltr; }
.brand-by:hover { color: var(--plum); }
[dir="rtl"] .brand-stack { align-items: flex-end; }
.nav-links { display: flex; align-items: center; gap: 1.6rem; margin: 0 auto 0 0.75rem; padding: 0; list-style: none; }
.nav-links a { color: var(--ink-soft); font-weight: 500; font-size: 0.97rem; transition: color .15s; }
.nav-links a:hover { color: var(--plum); }
.nav-cta { display: flex; align-items: center; gap: 0.85rem; margin-left: auto; }
.nav-login { color: var(--ink-soft); font-weight: 500; font-size: 0.97rem; }
.nav-login:hover { color: var(--ink); }
.nav-toggle { display: none; background: none; border: 0; font-size: 1.4rem; cursor: pointer; color: var(--ink); }

/* breadcrumb */
.breadcrumb { display: flex; flex-wrap: wrap; gap: 0.4rem; align-items: center; font-size: 0.85rem; color: var(--ink-faint); padding: 1.1rem 0 0; }
.breadcrumb a { color: var(--ink-soft); }
.breadcrumb a:hover { color: var(--plum); }
.breadcrumb .sep { color: var(--line-strong); }
.breadcrumb [aria-current="page"] { color: var(--ink); font-weight: 500; }

/* ---------- HERO (soft dusty-plum + 3D) ---------- */
.hero {
  position: relative; overflow: hidden; color: #fff; isolation: isolate;
  background:
    radial-gradient(115% 90% at 84% -12%, #8a7690 0%, transparent 55%),
    radial-gradient(90% 82% at 6% 14%, #6b5c7a 0%, transparent 50%),
    linear-gradient(152deg, #352c43 0%, #4e4260 52%, #6f6079 100%);
}
.hero-blob { position: absolute; border-radius: 50%; filter: blur(72px); opacity: .4; z-index: -1; pointer-events: none; }
.hero-blob.a { width: 460px; height: 460px; background: var(--mauve); top: -140px; right: -60px; animation: drift 18s ease-in-out infinite; }
.hero-blob.b { width: 380px; height: 380px; background: var(--plum); bottom: -160px; left: -90px; animation: drift 22s ease-in-out infinite reverse; }
@keyframes drift { 0%,100% { transform: translate(0,0) scale(1); } 50% { transform: translate(22px,-16px) scale(1.07); } }

.hero-inner { position: relative; display: grid; grid-template-columns: 1.02fr 0.98fr; gap: 3.5rem; align-items: center; padding: clamp(3.2rem, 7vw, 6.5rem) 0 clamp(3.5rem, 7vw, 6.5rem); }
.hero .eyebrow { color: #dbccdf; }
.hero h1 { font-size: clamp(2.4rem, 5.1vw, 3.9rem); color: #fff; font-weight: 700; }
.hero .lead { font-size: clamp(1.08rem, 1.6vw, 1.26rem); color: rgba(255,255,255,.85); margin: 1.4rem 0 0; max-width: 35ch; }
.hero .lead b { color: #fff; font-weight: 600; box-shadow: inset 0 -0.5em 0 rgba(201,189,201,.4); }
.hero-cta { display: flex; flex-wrap: wrap; gap: 0.9rem; margin-top: 2.1rem; }
.hero-trust { margin-top: 1.5rem; font-size: 0.9rem; color: rgba(255,255,255,.62); }
.hero-trust a { color: #e6d9ea; border-bottom: 1px solid rgba(230,217,234,.4); }

/* 3D scene */
.hero-3d { perspective: 1500px; display: flex; justify-content: center; align-items: center; min-height: 440px; }
.scene { position: relative; width: 370px; height: 400px; transform-style: preserve-3d; transform: rotateY(-19deg) rotateX(7deg); transition: transform .25s ease-out; will-change: transform; }
.panel { position: absolute; inset: 0; background: var(--paper-2); color: var(--ink); border-radius: 20px; box-shadow: 0 50px 90px -30px rgba(20,12,30,.65), 0 0 0 1px rgba(255,255,255,.05); padding: 1.15rem 1.15rem 1.3rem; animation: bob 7s ease-in-out infinite; }
@keyframes bob { 0%,100% { transform: translateY(0); } 50% { transform: translateY(-8px); } }
.panel-head { display: flex; align-items: center; justify-content: space-between; padding: 0.15rem 0.4rem 0.85rem; border-bottom: 1px solid var(--line); margin-bottom: 0.55rem; }
.panel-head .wt { font-family: var(--display); font-weight: 600; font-size: 0.98rem; }
.panel-head .wc { font-size: 0.72rem; color: var(--ink-faint); font-weight: 600; letter-spacing: .06em; text-transform: uppercase; }
.trow { display: flex; align-items: center; gap: 0.8rem; padding: 0.7rem 0.45rem; }
.trow + .trow { border-top: 1px solid var(--line); }
.trow .dot { width: 9px; height: 9px; border-radius: 50%; flex: none; }
.trow .tm { min-width: 0; flex: 1; }
.trow .tt { font-weight: 600; font-size: 0.92rem; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.trow .ts { font-size: 0.76rem; color: var(--ink-faint); white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.pill { font-family: var(--mono); font-size: 0.72rem; font-weight: 600; padding: 0.26rem 0.55rem; border-radius: 999px; white-space: nowrap; flex: none; }
.pill.d { background: var(--danger-wash); color: var(--danger); }
.pill.w { background: var(--warn-wash); color: var(--warn); }
.pill.n { background: var(--paper-deep); color: var(--ink-soft); }
.pill.o { background: var(--ok-wash); color: var(--ok); }
.dot.d { background: var(--danger); } .dot.w { background: var(--warn); } .dot.n { background: var(--line-strong); } .dot.o { background: var(--ok); }

/* elements that pop OUT of the panel toward the viewer */
.pop { position: absolute; border-radius: 14px; font-weight: 600; box-shadow: 0 26px 50px -16px rgba(20,12,30,.55); }
.pop.alert { top: -26px; right: -34px; transform: translateZ(95px); background: #fff; color: var(--ink); padding: 0.7rem 0.9rem; display: flex; align-items: center; gap: 0.6rem; font-size: 0.85rem; animation: pop-float-1 5.5s ease-in-out infinite; }
.pop.alert .badge { background: var(--danger); color: #fff; font-family: var(--mono); font-size: 0.72rem; padding: 0.16rem 0.5rem; border-radius: 999px; }
.pop.sent { bottom: -22px; left: -30px; transform: translateZ(78px); background: linear-gradient(120deg, var(--ok), #47694f); color: #fff; padding: 0.7rem 0.95rem; display: flex; align-items: center; gap: 0.55rem; font-size: 0.85rem; animation: pop-float-2 6.5s ease-in-out infinite; }
.pop.sent .chk { width: 18px; height: 18px; border-radius: 50%; background: rgba(255,255,255,.25); display: grid; place-items: center; font-size: 0.72rem; }
@keyframes pop-float-1 { 0%,100% { transform: translateZ(95px) translateY(0); } 50% { transform: translateZ(95px) translateY(-12px); } }
@keyframes pop-float-2 { 0%,100% { transform: translateZ(78px) translateY(0); } 50% { transform: translateZ(78px) translateY(10px); } }

@media (prefers-reduced-motion: reduce) { .hero-blob, .panel, .pop.alert, .pop.sent { animation: none; } }

/* ---------- generic section ---------- */
.section { padding: clamp(3.5rem, 7vw, 6rem) 0; }
.section-alt { background: var(--paper-deep); border-block: 1px solid var(--line); }
.section-head { max-width: 46ch; margin: 0 0 2.6rem; }
.section-head.center { margin-inline: auto; text-align: center; }
.section-head h2 { font-size: clamp(1.85rem, 3.3vw, 2.6rem); }
.section-head p { margin-top: 0.9rem; font-size: 1.08rem; color: var(--ink-soft); }

/* pains */
.pains { display: grid; grid-template-columns: repeat(2, 1fr); gap: 1rem; }
.pain { display: grid; grid-template-columns: auto 1fr; gap: 0.5rem 1rem; align-items: start; background: var(--paper-2); border: 1px solid var(--line); border-radius: 14px; padding: 1.4rem 1.5rem; transition: border-color .15s, transform .15s; }
.pain:hover { border-color: var(--plum); transform: translateY(-2px); }
.pain .qmark { font-family: var(--display); font-weight: 700; font-size: 1.2rem; color: var(--plum); line-height: 1; grid-row: span 2; padding-top: 2px; }
.pain p { font-size: 1.02rem; color: var(--ink); font-weight: 500; }
.pain .cost { font-size: 0.8rem; font-weight: 700; letter-spacing: .03em; text-transform: uppercase; color: var(--danger); }
.pains-turn { text-align: center; margin-top: 2.4rem; }
.pains-turn p { font-family: var(--display); font-weight: 600; font-size: clamp(1.3rem, 2.6vw, 1.8rem); color: var(--ink); max-width: 25ch; margin: 0 auto; }
.pains-turn .accent { color: var(--plum); }

/* two costs */
.costs { display: grid; grid-template-columns: 1fr 1fr; gap: 1.4rem; }
.cost-card { background: var(--paper-2); border: 1px solid var(--line); border-radius: var(--radius); padding: 2rem; box-shadow: var(--shadow); }
.cost-card .tag { display: inline-block; font-size: 0.78rem; font-weight: 700; letter-spacing: .04em; text-transform: uppercase; padding: 0.28rem 0.7rem; border-radius: 999px; margin-bottom: 1.1rem; }
.cost-card.waste .tag { background: var(--warn-wash); color: var(--warn); }
.cost-card.risk .tag { background: var(--danger-wash); color: var(--danger); }
.cost-card h3 { font-size: 1.35rem; margin-bottom: 0.6rem; }
.cost-card > p { color: var(--ink-soft); }
.cost-list { list-style: none; margin: 1.2rem 0 0; padding: 0; }
.cost-list li { display: flex; gap: 0.6rem; align-items: flex-start; padding: 0.5rem 0; font-size: 0.98rem; }
.cost-list li::before { content: ""; width: 7px; height: 7px; border-radius: 50%; background: var(--plum); margin-top: 0.5rem; flex: none; }

/* how it works */
.steps { display: grid; grid-template-columns: repeat(4, 1fr); gap: 1rem; }
.step { background: var(--paper-2); border: 1px solid var(--line); border-radius: 14px; padding: 1.6rem 1.4rem; position: relative; overflow: hidden; }
.step::before { content: ""; position: absolute; top: 0; left: 0; right: 0; height: 3px; background: linear-gradient(90deg, var(--plum), var(--mauve)); }
.step .n { font-family: var(--mono); font-size: 0.8rem; font-weight: 700; color: var(--plum); }
.step h3 { font-size: 1.1rem; margin: 0.5rem 0 0.4rem; }
.step p { font-size: 0.94rem; color: var(--ink-soft); }

/* how it works — connected animated flow */
.hiw { list-style: none; margin: 0; padding: 0; display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 1.1rem; position: relative; }
.hiw::before { content: ""; position: absolute; top: 3.35rem; left: 9%; right: 9%; height: 2px; z-index: 0; background: linear-gradient(90deg, transparent, var(--mauve) 12%, var(--mauve) 88%, transparent); opacity: 0.55; }
.hiw-step { min-width: 0; position: relative; z-index: 1; background: var(--paper-2); border: 1px solid var(--line); border-radius: 18px; padding: 1.7rem 1.5rem; box-shadow: var(--shadow); display: flex; flex-direction: column; opacity: 0; transform: translateY(18px); transition: opacity .55s ease, transform .55s ease; }
.hiw.in .hiw-step { opacity: 1; transform: none; }
.hiw.in .hiw-step:nth-child(2) { transition-delay: .09s; }
.hiw.in .hiw-step:nth-child(3) { transition-delay: .18s; }
.hiw.in .hiw-step:nth-child(4) { transition-delay: .27s; }
.hiw-top { display: flex; align-items: center; justify-content: space-between; margin-bottom: 1.1rem; }
.hiw-num { display: inline-grid; place-items: center; width: 48px; height: 48px; border-radius: 15px; background: linear-gradient(135deg, var(--plum-2), var(--plum-deep)); color: #fff; font-family: var(--display); font-weight: 700; font-size: 1.3rem; box-shadow: 0 12px 24px -8px rgba(79,67,96,.6); }
.hiw-ic { width: 27px; height: 27px; color: var(--plum); opacity: 0.85; }
.hiw-step h3 { font-size: 1.14rem; margin: 0 0 0.45rem; }
.hiw-step p { font-size: 0.93rem; color: var(--ink-soft); margin: 0 0 1.2rem; flex: 1; }
.hiw-mini { display: flex; align-items: center; gap: 0.5rem; padding: 0.6rem 0.75rem; background: var(--paper); border: 1px solid var(--line); border-radius: 12px; font-size: 0.82rem; font-weight: 600; }
.hiw-mini-t { flex: 1; min-width: 0; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; color: var(--ink); }
.hiw-mini-ic { width: 16px; height: 16px; color: var(--plum); flex: none; }
.hiw-mini.hiw-chips { gap: 0.4rem; }
.hiw-chip { background: var(--plum-wash); color: var(--plum-deep); border-radius: 999px; padding: 0.26rem 0.62rem; font-family: var(--mono); font-size: 0.76rem; font-weight: 600; }
@media (max-width: 900px) { .hiw { grid-template-columns: repeat(2, minmax(0, 1fr)); } .hiw::before { display: none; } }
@media (max-width: 560px) { .hiw { grid-template-columns: minmax(0, 1fr); } }
@media (prefers-reduced-motion: reduce) { .hiw-step { opacity: 1; transform: none; transition: none; } }

/* what you track */
.track-grid { display: flex; flex-wrap: wrap; gap: 0.7rem; }
.track-chip { display: inline-flex; align-items: center; gap: 0.55rem; background: var(--paper-2); border: 1px solid var(--line); border-radius: 999px; padding: 0.6rem 1.05rem; font-weight: 500; font-size: 0.96rem; transition: border-color .15s; }
.track-chip:hover { border-color: var(--plum); }
.track-chip .d { width: 8px; height: 8px; border-radius: 50%; background: var(--plum); flex: none; }

/* features */
.features { display: grid; grid-template-columns: repeat(3, 1fr); gap: 1rem; }
.feature { background: var(--paper-2); border: 1px solid var(--line); border-radius: 14px; padding: 1.6rem; }
.feature .ic { width: 42px; height: 42px; border-radius: 12px; background: linear-gradient(135deg, var(--plum-2), var(--plum-deep)); color: #fff; display: grid; place-items: center; margin-bottom: 0.9rem; box-shadow: 0 8px 20px -8px rgba(79,67,96,.5); }
.feature .ic svg { width: 20px; height: 20px; }
.feature h3 { font-size: 1.06rem; margin-bottom: 0.35rem; }
.feature p { font-size: 0.94rem; color: var(--ink-soft); }

/* solutions */
.sol-grid { display: grid; grid-template-columns: repeat(4, 1fr); gap: 0.7rem; }
.sol { display: flex; align-items: center; gap: 0.6rem; background: var(--paper-2); border: 1px solid var(--line); border-radius: 12px; padding: 0.95rem 1.1rem; font-weight: 500; font-size: 0.95rem; transition: border-color .15s, transform .15s, box-shadow .15s; }
.sol:hover { border-color: var(--plum); transform: translateY(-2px); box-shadow: var(--shadow); }
.sol .f { width: 16px; flex: none; }
.sol-more { text-align: center; margin-top: 2rem; }

/* solutions marquee — two rows drifting opposite ways, pause on hover */
.marquee { position: relative; overflow: hidden; padding: 0.4rem 0; margin-top: 0.5rem;
  -webkit-mask-image: linear-gradient(90deg, transparent, #000 7%, #000 93%, transparent);
  mask-image: linear-gradient(90deg, transparent, #000 7%, #000 93%, transparent); }
.marquee-track { display: flex; gap: 0.9rem; width: max-content; padding: 0.55rem 0; will-change: transform; animation: marquee-l 46s linear infinite; }
.marquee-track.reverse { animation: marquee-r 54s linear infinite; margin-top: 0.9rem; }
.marquee:hover .marquee-track { animation-play-state: paused; }
@keyframes marquee-l { from { transform: translateX(0); } to { transform: translateX(-50%); } }
@keyframes marquee-r { from { transform: translateX(-50%); } to { transform: translateX(0); } }
.sol-chip { display: inline-flex; align-items: center; gap: 0.6rem; flex: none; background: var(--paper-2); border: 1px solid var(--line); border-radius: 999px; padding: 0.7rem 1.25rem; font-weight: 600; font-size: 0.96rem; color: var(--ink); white-space: nowrap; box-shadow: 0 1px 2px rgba(39,35,48,.04); transition: border-color .18s ease, transform .18s ease, box-shadow .18s ease, background .18s ease, color .18s ease; }
.sol-chip img { width: 18px; height: auto; opacity: 0.95; }
.sol-chip:hover { border-color: var(--plum); background: var(--plum-wash); color: var(--plum-deep); transform: translateY(-3px) scale(1.03); box-shadow: 0 14px 30px -12px rgba(79,67,96,.4); }
@media (prefers-reduced-motion: reduce) {
  .marquee { -webkit-mask-image: none; mask-image: none; padding-inline: 1.5rem; }
  .marquee-track, .marquee-track.reverse { animation: none; flex-wrap: wrap; width: auto; justify-content: center; margin-top: 0.9rem; }
}

/* pricing */
.price-band { display: grid; grid-template-columns: 1.1fr 0.9fr; gap: 2rem; align-items: center; background: var(--paper-2); border: 1px solid var(--line); border-radius: 20px; padding: clamp(1.8rem, 3vw, 2.8rem); box-shadow: var(--shadow); }
.price-band h2 { font-size: clamp(1.6rem, 3vw, 2.2rem); }
.price-band p { margin-top: 0.8rem; color: var(--ink-soft); }
.price-badge { text-align: center; padding: 1.8rem; border-radius: 16px; background: linear-gradient(150deg, var(--plum-2), var(--plum-deep)); color: #fff; box-shadow: 0 20px 44px -18px rgba(79,67,96,.55); }
.price-badge .big { font-family: var(--display); font-weight: 700; font-size: 2.6rem; }
.price-badge .sm { font-size: 0.95rem; opacity: .9; }

/* final cta */
.cta-final { text-align: center; color: #fff; border-radius: 24px; padding: clamp(2.6rem, 5vw, 4.4rem) 1.5rem; margin: clamp(3rem,6vw,5rem) 0; position: relative; overflow: hidden; isolation: isolate; background: linear-gradient(150deg, #352c43 0%, #4f4360 60%, #6f6079 100%); }
.cta-final::after { content:""; position:absolute; inset:0; z-index:-1; background: radial-gradient(60% 130% at 50% 0%, rgba(161,138,158,.45), transparent 70%); }
.cta-final h2 { font-size: clamp(1.9rem, 4vw, 2.9rem); color: #fff; }
.cta-final p { margin: 1rem auto 0; max-width: 42ch; color: rgba(255,255,255,.84); font-size: 1.1rem; }
.cta-final .hero-cta { justify-content: center; margin-top: 2rem; }
.cta-final .fineprint { margin-top: 1.1rem; font-size: 0.85rem; color: rgba(255,255,255,.6); }

/* footer */
.footer { background: var(--paper-deep); border-top: 1px solid var(--line); padding: clamp(3rem,6vw,4.5rem) 0 2.5rem; font-size: 0.93rem; }
.footer-grid { display: grid; grid-template-columns: 1.4fr 1fr 1fr 1fr; gap: 2rem; }
.footer-brand .brand { margin-bottom: 0.8rem; }
.footer-brand p { color: var(--ink-soft); max-width: 30ch; }
.footer h4 { font-family: var(--body); font-size: 0.78rem; font-weight: 700; letter-spacing: .08em; text-transform: uppercase; color: var(--ink-faint); margin: 0 0 0.9rem; }
.footer ul { list-style: none; margin: 0; padding: 0; display: grid; gap: 0.55rem; }
.footer ul a { color: var(--ink-soft); }
.footer ul a:hover { color: var(--plum); }
.footer-bottom { display: flex; justify-content: space-between; flex-wrap: wrap; gap: 0.6rem; margin-top: 2.6rem; padding-top: 1.6rem; border-top: 1px solid var(--line); color: var(--ink-faint); font-size: 0.85rem; }

/* responsive */
@media (max-width: 900px) {
  .hero-inner { grid-template-columns: 1fr; gap: 3rem; }
  .hero-3d { min-height: 380px; }
  .scene { transform: rotateY(-14deg) rotateX(5deg); }
  .pains, .costs, .steps, .features, .sol-grid, .price-band, .footer-grid { grid-template-columns: 1fr 1fr; }
}
/* collapse the nav to a hamburger before it gets cramped (full nav needs ~760px) */
@media (max-width: 768px) {
  .nav-links { display: none; }
  .nav-toggle { display: block; order: 3; }
  .nav-cta .nav-login { display: none; }
  /* the "Start free" button is redundant on mobile (big CTA sits in the hero) —
     dropping it keeps brand + language + theme + hamburger within the viewport */
  .nav-cta .btn { display: none; }
}
@media (max-width: 620px) {
  /* tighten the top bar so it fits the smallest phones (down to 320px) */
  .nav-inner { padding-left: 1rem; padding-right: 1rem; gap: 0.75rem; }
  .nav-cta { gap: 0.5rem; }
  .pains, .costs, .features, .sol-grid, .price-band, .footer-grid, .steps { grid-template-columns: 1fr; }
  .hero .lead { max-width: none; }
  .scene { transform: none; width: 320px; height: auto; }
  .panel { position: static; }
  .pop { display: none !important; }
  .hero-3d { perspective: none; }
}

a:focus-visible, .btn:focus-visible, button:focus-visible { outline: 2px solid var(--plum); outline-offset: 3px; border-radius: 6px; }

/* ---------- nav CTA icons + theme toggle ---------- */
.nav-login { display: inline-flex; align-items: center; gap: 0.4rem; }
.cta-ic { width: 16px; height: 16px; flex: none; }
.btn .cta-ic { width: 15px; height: 15px; }
.theme-toggle { display: inline-grid; place-items: center; width: 38px; height: 38px; border-radius: 10px; border: 1px solid var(--line-strong); background: transparent; color: var(--ink-soft); cursor: pointer; transition: color .15s ease, border-color .15s ease; }
.theme-toggle:hover { color: var(--plum); border-color: var(--plum); }
.theme-toggle svg { width: 18px; height: 18px; }
.theme-toggle .ic-sun { display: none; }
[data-theme="dark"] .theme-toggle .ic-moon { display: none; }
[data-theme="dark"] .theme-toggle .ic-sun { display: block; }

/* ---------- dark mode ---------- */
:root { color-scheme: light; }
[data-theme="dark"] {
  color-scheme: dark;
  --paper: #17131f; --paper-2: #221d2e; --paper-deep: #1e1928;
  --ink: #f2eef7; --ink-soft: #bcb4c9; --ink-faint: #8c8499;
  --line: rgba(255,255,255,.10); --line-strong: rgba(255,255,255,.18);
  --plum: #c3aed4; --plum-deep: #d8cbe1; --plum-2: #b19dc0; --mauve: #a18a9e; --plum-wash: rgba(160,138,158,.16);
  --danger: #e59a90; --danger-wash: rgba(229,154,144,.16);
  --warn: #d9ad6a; --warn-wash: rgba(217,173,106,.16);
  --ok: #86c99a; --ok-wash: rgba(134,201,154,.16);
  --shadow: 0 1px 2px rgba(0,0,0,.5), 0 14px 34px -14px rgba(0,0,0,.65);
  --shadow-lg: 0 2px 4px rgba(0,0,0,.5), 0 34px 64px -22px rgba(0,0,0,.75);
}
[data-theme="dark"] .nav { background: rgba(23,19,31,.82); }
[data-theme="dark"] .btn-primary { color: #17131f; }
[data-theme="dark"] .btn-purple { background: #7d6c8a; color: #fff; }
[data-theme="dark"] .btn-cream { background: #2c2638; color: #f2eef7; }
[data-theme="dark"] .btn-cream:hover { background: #362f45; }
[data-theme="dark"] .btn-ghost:hover { background: var(--paper-2); }
[data-theme="dark"] .feature .ic,
[data-theme="dark"] .hiw-num,
[data-theme="dark"] .price-badge { background: linear-gradient(135deg, #7d6c8a, #5b4f6b); }
[data-theme="dark"] .panel { box-shadow: 0 50px 90px -30px rgba(0,0,0,.7), 0 0 0 1px rgba(255,255,255,.06); }
[data-theme="dark"] .pop.alert { background: #2c2638; }

/* ---------- RTL / Arabic ---------- */
/* Match eslingshot.com: swap both display + body to IBM Plex Sans Arabic
   for the whole document, via the font-family tokens (mono stays mono). */
:root[lang="ar"], [dir="rtl"] {
  --display: "IBM Plex Sans Arabic", "Manrope", system-ui, sans-serif;
  --body:    "IBM Plex Sans Arabic", "Manrope", system-ui, sans-serif;
}
[dir="rtl"] h1, [dir="rtl"] h2, [dir="rtl"] h3, [dir="rtl"] h4 { letter-spacing: 0; line-height: 1.28; }
[dir="rtl"] .hero h1 { line-height: 1.2; }
[dir="rtl"] .eyebrow { letter-spacing: 0.04em; }
[dir="rtl"] .nav-links { margin: 0 auto 0 0.5rem; }
[dir="rtl"] .nav-cta { margin-left: 0; margin-right: auto; }
[dir="rtl"] .pop.alert { right: auto; left: -34px; }
[dir="rtl"] .pop.sent { left: auto; right: -30px; }
/* keep the "Signal" wordmark and mono day-chips left-to-right */
[dir="rtl"] .brand .wm, [dir="rtl"] .pill, [dir="rtl"] .hiw-chip { direction: ltr; unicode-bidi: isolate; }

/* ---------- language switcher (matches eslingshot.com .lang-link) ---------- */
.lang-link { display: inline-flex; align-items: center; gap: 6px; background: transparent; border: 0; padding: 8px 12px; cursor: pointer; flex-shrink: 0; font-family: var(--display); font-size: 0.86rem; font-weight: 600; letter-spacing: 0.02em; color: var(--ink-soft); position: relative; transition: color .25s ease; }
.lang-link__icon { flex-shrink: 0; opacity: 0.85; transition: transform .4s ease, opacity .25s ease; }
.lang-link:hover .lang-link__icon { transform: rotate(20deg); opacity: 1; }
.lang-link::after { content: ""; position: absolute; left: 12px; right: 12px; bottom: 5px; height: 1px; background: var(--plum); transform: scaleX(0); transform-origin: left; transition: transform .3s ease; }
.lang-link:hover { color: var(--plum); }
.lang-link:hover::after { transform: scaleX(1); }
[dir="rtl"] .lang-link::after { transform-origin: right; }
.lang-link__label:lang(ar) { font-family: "IBM Plex Sans Arabic", "Manrope", sans-serif; direction: rtl; }
.lang-link__label:lang(en) { font-family: "Space Grotesk", "Manrope", sans-serif; direction: ltr; }
