/* Shimi marketing site. Palette follows the Android app (AppLook.kt). */
:root {
  --ink: #1C1917;
  --ink-2: #44403C;
  --line: #E7E5E4;
  --teal: #0F766E;
  --teal-hi: #2DD4BF;
  --teal-soft: #CCFBF1;
  --amber: #B45309;
  --amber-hi: #F59E0B;
  --coral: #FB7185;
  --hero-ink: #1C1917;
  --gut: clamp(16px, 4vw, 56px);
  --f-body: "Space Grotesk", "Rubik", system-ui, sans-serif;
  --f-hand: "Playpen Sans Hebrew", "Rubik", cursive;
  --ease: cubic-bezier(.2, .7, .1, 1);
  color-scheme: light;
}

* { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; }
body {
  margin: 0;
  background: #A9C4EA;
  color: var(--ink);
  font-family: var(--f-body);
  font-size: 18px;
  line-height: 1.55;
  -webkit-font-smoothing: antialiased;
  overflow-x: hidden;
}
body.no-webgl { background: linear-gradient(#7FB2F0, #E6F4F1 30%, #F7FCF8 70%, #062033); }
h1, h2, h3, p { margin: 0; }
a { color: inherit; }
.skip { position: absolute; inset-inline-start: -999px; top: 8px; }
.skip:focus { inset-inline-start: 8px; z-index: 100; background: var(--ink); color: #fff; padding: 8px 12px; border-radius: 8px; }
:focus-visible { outline: 2px solid var(--teal-hi); outline-offset: 3px; border-radius: 6px; }

/* the 3D world sits behind every section */
.world { position: fixed; inset: 0; width: 100vw; height: 100vh; height: 100lvh; z-index: 0; display: block; }
main, .foot { position: relative; z-index: 1; }

/* ---------- header ---------- */
.top {
  position: fixed; inset: 0 0 auto 0; z-index: 50;
  display: flex; align-items: center; justify-content: space-between; gap: 16px;
  padding: 18px var(--gut);
  color: var(--hero-ink);
  transition: color .5s var(--ease), background .4s var(--ease);
}
.top.is-solid { background: rgba(255,255,255,.62); backdrop-filter: blur(14px); -webkit-backdrop-filter: blur(14px); color: var(--ink); }
.top.is-solid.is-dark { background: rgba(4,17,31,.55); color: #F5F5F4; }
.top.is-solid.is-dark .btn-small, body[data-tod="night"] .top:not(.is-solid) .btn-small { background: #F5F5F4; color: var(--ink); }
.brand { display: flex; align-items: center; gap: 10px; text-decoration: none; font-weight: 700; font-size: 22px; letter-spacing: -.02em; direction: ltr; }
.brand svg { width: 32px; height: 32px; }
.brand rect { fill: var(--teal); }
.brand path { stroke: #fff; stroke-width: 2.4; stroke-linecap: round; fill: none; }
.nav { display: flex; gap: clamp(14px, 2.4vw, 34px); font-size: 16px; }
.nav a { text-decoration: none; overflow: hidden; display: inline-block; height: 1.5em; }
.nav a span { display: inline-block; position: relative; transition: transform .45s var(--ease); }
.nav a span::after { content: attr(data-t); position: absolute; inset-inline-start: 0; top: 100%; color: var(--teal); }
.nav a:hover span, .nav a:focus-visible span { transform: translateY(-100%); }
.btn {
  display: inline-flex; align-items: center; gap: 8px;
  background: var(--ink); color: #fff; text-decoration: none;
  padding: 16px 30px; border-radius: 999px; font-weight: 600; font-size: 18px;
  transition: transform .3s var(--ease), background .3s;
}
.btn:hover { transform: translateY(-2px); background: var(--teal); }
.btn-small { padding: 9px 20px; font-size: 15px; }

.progress { position: fixed; z-index: 51; inset: 0 0 auto 0; height: 3px; }
.progress i { display: block; height: 100%; width: 100%; background: linear-gradient(90deg, var(--amber-hi), var(--teal-hi)); transform-origin: right; transform: scaleX(0); }

/* ---------- hero ---------- */
.hero { position: relative; height: 100svh; min-height: 640px; color: var(--hero-ink); transition: color .8s var(--ease); }
body[data-tod="night"] { --hero-ink: #E8F6F3; }
.hero-title {
  position: absolute; top: clamp(84px, 12vh, 120px); inset-inline: var(--gut);
  text-align: center; font-weight: 500; letter-spacing: -.03em;
  font-size: clamp(40px, 6.2vw, 94px); line-height: 1.02;
}
.hero-title .line { display: block; animation: rise 1.3s var(--ease) both; }
.hero-title .line + .line { animation-delay: .14s; }
.hero-intro {
  position: absolute; inset-inline-start: var(--gut); bottom: clamp(28px, 6vh, 56px);
  max-width: 400px; font-size: 17px; font-weight: 500; line-height: 1.5;
  animation: fade 1.4s .6s both;
}
.hero-intro strong { font-weight: 700; }
.scroll-cue { position: absolute; inset-inline-end: var(--gut); bottom: clamp(28px, 6vh, 56px); display: grid; justify-items: center; gap: 8px; font-family: var(--f-hand); font-size: 15px; animation: fade 1.4s 1s both; }
.scroll-cue i { width: 2px; height: 46px; background: linear-gradient(currentColor 50%, transparent 0) 0 0 / 2px 12px; animation: cue 1.2s linear infinite; }

/* handwritten notes */
.note { position: absolute; display: flex; align-items: flex-start; gap: 6px; font-family: var(--f-hand); font-size: 17px; line-height: 1.35; font-weight: 600; pointer-events: none; }
.note svg { width: 96px; height: 56px; flex: none; overflow: visible; }
.note path { fill: none; stroke: currentColor; stroke-width: 1.6; stroke-linecap: round; stroke-linejoin: round; stroke-dasharray: 220; stroke-dashoffset: 220; transition: stroke-dashoffset 1.2s .3s var(--ease); }
.note span { white-space: nowrap; opacity: 0; transform: translateY(6px); transition: opacity .8s .9s, transform .8s .9s var(--ease); }
.note.is-in path { stroke-dashoffset: 0; }
.note.is-in span { opacity: 1; transform: none; }
.note-hero { left: max(var(--gut), calc(50% - 560px)); top: 44%; }
.note-hero svg { transform: scaleX(-1) rotate(-12deg); }

/* time of day switch */
.tod { position: absolute; bottom: clamp(24px, 5vh, 48px); left: 50%; transform: translateX(-50%); display: flex; flex-wrap: wrap; justify-content: center; gap: 4px; width: 300px; animation: fade 1.4s .6s both; }
.tod button {
  appearance: none; border: 0; background: none; color: inherit; cursor: pointer;
  display: grid; justify-items: center; gap: 4px; padding: 6px 12px; border-radius: 12px;
  font: 500 13px var(--f-body); opacity: .6; transition: opacity .3s, background .3s;
}
.tod button svg { width: 22px; height: 22px; fill: none; stroke: currentColor; stroke-width: 1.6; stroke-linecap: round; }
.tod button[aria-checked="true"] { opacity: 1; background: rgba(255,255,255,.32); }
body[data-tod="night"] .tod button[aria-checked="true"] { background: rgba(45,212,191,.18); }
.tod button:hover { opacity: 1; }
.tod-caption { width: 100%; text-align: center; font-size: 14px; margin-top: 6px; opacity: .85; min-height: 1.5em; }

/* ---------- stops: copy on the start side (right in RTL), 3D on the other ---------- */
.stop { position: relative; min-height: 100svh; display: flex; align-items: center; padding: 120px var(--gut); }
.copy { width: min(540px, 46vw); display: grid; gap: 18px; }
.copy > p { font-size: 19px; color: var(--ink-2); }
.kicker { color: var(--teal); font-weight: 600; font-size: 16px; }
.mega { font-weight: 500; letter-spacing: -.035em; line-height: .98; font-size: clamp(44px, 6.4vw, 104px); }
.mega span { display: block; }
.mega .accent { color: var(--teal); }
.mega .accent-amber { color: var(--amber); }
.section-title { font-weight: 500; letter-spacing: -.03em; line-height: 1.02; font-size: clamp(38px, 5vw, 76px); }
.muted { color: #78716C; }
.statement .copy { width: min(640px, 52vw); }

/* reveal */
[data-reveal] { opacity: 0; transform: translateY(28px); transition: opacity 1s var(--ease), transform 1s var(--ease); }
[data-reveal].is-in { opacity: 1; transform: none; }

/* story */
.story-intro { position: relative; padding: 140px var(--gut) 0; }
.note-story { position: relative; margin-top: 26px; color: var(--teal); }
.step h3 { font-size: clamp(32px, 3.6vw, 52px); font-weight: 500; letter-spacing: -.025em; line-height: 1.05; }
.ui { margin-top: 8px; background: #0E1A19; color: #F5F5F4; border-radius: 24px; padding: 18px; font-family: "Rubik", var(--f-body); box-shadow: 0 30px 60px -30px rgba(15,118,110,.55); max-width: 400px; }
.ui-call { display: grid; grid-template-columns: auto 1fr; gap: 6px 14px; align-items: center; }
.ui-call b { display: block; font-weight: 500; font-size: 19px; }
.ui-call span { font-size: 14px; color: #A8A29E; display: flex; align-items: center; gap: 6px; }
.ui-avatar { width: 52px; height: 52px; border-radius: 50%; display: grid; place-items: center; font-size: 24px; background: linear-gradient(140deg, var(--teal), #134E4A); }
.rec { width: 8px; height: 8px; border-radius: 50%; background: #EF4444; animation: blink 1.4s infinite; }
.wave { grid-column: 1 / -1; display: flex; gap: 4px; align-items: center; height: 44px; justify-content: center; }
.wave i { width: 5px; border-radius: 3px; background: var(--teal-hi); height: 20%; animation: bar 1.1s ease-in-out infinite; }
.wave i:nth-child(3n) { animation-delay: -.3s; } .wave i:nth-child(3n+1) { animation-delay: -.7s; } .wave i:nth-child(4n) { animation-duration: .8s; }
.ui-chat { display: flex; flex-direction: column; gap: 10px; }
.bubble { max-width: 82%; padding: 10px 14px; border-radius: 18px; font-size: 15px; line-height: 1.35; }
.bubble.them { align-self: flex-start; background: #F5F5F4; color: var(--ink); border-start-start-radius: 6px; }
.bubble.me { align-self: flex-end; background: var(--teal); border-start-end-radius: 6px; }
.ui-facts { margin: 8px 0 0; display: grid; }
.ui-facts div { display: flex; justify-content: space-between; gap: 10px; padding: 10px 4px; border-bottom: 1px solid rgba(255,255,255,.1); font-size: 15px; }
.ui-facts div:last-child { border: 0; }
.ui-facts dt { color: #A8A29E; } .ui-facts dd { margin: 0; font-weight: 500; }
.ui-tasks { list-style: none; display: grid; gap: 10px; }
.ui-tasks li { position: relative; display: grid; gap: 2px; padding: 12px 46px 12px 14px; background: rgba(255,255,255,.07); border-radius: 14px; }
.ui-tasks li::before { content: ""; position: absolute; right: 14px; top: 15px; width: 18px; height: 18px; border-radius: 6px; border: 2px solid var(--teal-hi); }
.ui-tasks b { font-weight: 500; } .ui-tasks span { font-size: 13px; color: #A8A29E; }
.ui-draft small { color: #A8A29E; }
.ui-draft p { background: #F5F5F4; color: var(--ink); border-radius: 16px; padding: 12px 14px; margin: 8px 0 12px; font-size: 15px; line-height: 1.45; }
.ui-actions { display: flex; gap: 10px; }
.pill { flex: 1; text-align: center; padding: 10px; border-radius: 999px; border: 1px solid rgba(255,255,255,.25); font-size: 15px; }
.pill-solid { background: var(--amber-hi); border-color: var(--amber-hi); color: #451A03; font-weight: 600; }

/* drive (dusk) */
.drive { color: #FAFAF9; }
.drive .copy > p { color: #F5F5F4; }
.drive .kicker { color: #FDE68A; }
.drive .mega { text-shadow: 0 2px 30px rgba(15,23,42,.25); font-size: clamp(40px, 4.8vw, 78px); }
.drive .copy { width: min(600px, 50vw); }
.voice { display: grid; gap: 14px; margin: 18px 0 6px; padding: 20px; border-radius: 22px; background: rgba(12,20,32,.42); backdrop-filter: blur(10px); -webkit-backdrop-filter: blur(10px); }
.voice-wave { display: flex; gap: 6px; height: 38px; align-items: center; }
.voice-wave i { width: 6px; height: 18%; border-radius: 3px; background: var(--amber-hi); animation: bar 1s ease-in-out infinite; }
.voice-wave i:nth-child(2n) { animation-delay: -.4s; } .voice-wave i:nth-child(3n) { animation-delay: -.7s; animation-duration: .7s; }
.voice:not(.is-talking) .voice-wave i { animation-play-state: paused; }
.voice-line { display: flex; gap: 14px; align-items: baseline; font-size: clamp(18px, 1.8vw, 23px); line-height: 1.35; min-height: 1.4em; }
.voice-line .who { flex: none; font-size: 14px; color: #D6D3D1; width: 40px; }
.voice-line.shimi .typed { color: var(--teal-hi); }
.typed::after { content: ""; display: inline-block; width: 2px; height: 1em; background: currentColor; margin-inline-start: 3px; vertical-align: -.12em; opacity: 0; }
.typed.is-typing::after { opacity: 1; animation: blink .9s steps(1) infinite; }

/* features panel */
.does { padding: 140px var(--gut); }
.panel { background: rgba(255,255,255,.74); backdrop-filter: blur(18px) saturate(1.2); -webkit-backdrop-filter: blur(18px) saturate(1.2); border-radius: 36px; padding: clamp(28px, 5vw, 72px); box-shadow: 0 40px 80px -50px rgba(28,25,23,.35); }
.features { list-style: none; margin: 50px 0 0; padding: 0; display: grid; grid-template-columns: repeat(3, 1fr); border-top: 1px solid var(--ink); }
.features li { padding: 28px 24px 40px 0; border-bottom: 1px solid var(--line); display: grid; align-content: start; gap: 12px; }
.features li:nth-child(3n+2), .features li:nth-child(3n+3) { padding-inline-start: 24px; border-inline-start: 1px solid var(--line); }
.features h3 { font-size: clamp(22px, 2vw, 30px); font-weight: 500; letter-spacing: -.02em; }
.features p { color: var(--ink-2); font-size: 16px; }
.tag { justify-self: start; font-size: 13px; font-weight: 600; padding: 4px 12px; border-radius: 999px; }
.tag-now { background: var(--teal-soft); color: #134E4A; }
.tag-soon { background: #FFEDD5; color: #7C2D12; }

/* trust */
.trust .copy { width: min(620px, 50vw); }
.rules { display: grid; grid-template-columns: 1fr 1fr; gap: 26px 30px; margin-top: 20px; }
.rule { border-top: 2px solid var(--ink); padding-top: 16px; display: grid; gap: 8px; align-content: start; }
.rule h3 { font-size: 19px; font-weight: 600; line-height: 1.25; }
.rule p { color: var(--ink-2); font-size: 15px; }

/* beta: join over WhatsApp */
.wa-card { position: relative; display: grid; gap: 12px; justify-items: start; margin-top: 10px; }
.btn-wa { background: var(--teal); font-size: 19px; padding: 18px 30px; box-shadow: 0 24px 40px -24px rgba(15,118,110,.8); }
.btn-wa:hover { background: #134E4A; }
.btn-wa svg { width: 24px; height: 24px; fill: none; stroke: currentColor; stroke-width: 1.8; stroke-linecap: round; stroke-linejoin: round; }
.wa-hint { font-size: 15px; color: var(--ink-2); }
.note-wa { position: relative; color: var(--teal); margin-top: 6px; }
.finale-actions { display: flex; flex-wrap: wrap; align-items: center; gap: 14px 22px; margin-top: 8px; }
.link-quiet { color: #D6D3D1; font-size: 16px; }
.link-quiet:hover { color: var(--teal-hi); }

/* finale (night) */
.finale { color: #F5F5F4; }
.finale .copy > p { color: #D6D3D1; }
.finale .btn { background: #F5F5F4; color: var(--ink); }
.finale .btn:hover { background: var(--teal-hi); }

/* ---------- footer ---------- */
.foot { color: #D6D3D1; display: flex; flex-wrap: wrap; gap: 16px 30px; justify-content: space-between; align-items: center; padding: 26px var(--gut) 34px; font-size: 15px; border-top: 1px solid rgba(255,255,255,.12); }
.foot-brand { font-weight: 700; color: #fff; direction: ltr; } .foot-brand span { font-weight: 400; color: #A8A29E; }
.foot-clock { display: flex; align-items: center; gap: 8px; }
.foot-clock b { font-weight: 500; color: #fff; direction: ltr; unicode-bidi: isolate; }
.live { width: 8px; height: 8px; border-radius: 50%; background: var(--teal-hi); animation: pulse 2s infinite; }
.foot-top { text-decoration: none; }
.foot-top:hover { color: var(--teal-hi); }

/* ---------- keyframes ---------- */
@keyframes bar { 0%, 100% { height: 18%; } 50% { height: 100%; } }
@keyframes blink { 50% { opacity: 0; } }
@keyframes pulse { 0% { box-shadow: 0 0 0 0 rgba(45,212,191,.6); } 70%, 100% { box-shadow: 0 0 0 9px rgba(45,212,191,0); } }
@keyframes rise { from { opacity: 0; transform: translateY(40px); } }
@keyframes fade { from { opacity: 0; } }
@keyframes cue { to { background-position: 0 12px; } }

/* ---------- responsive ---------- */
@media (max-width: 980px) {
  .features { grid-template-columns: 1fr 1fr; }
  .features li:nth-child(n) { padding-inline-start: 0; border-inline-start: 0; }
  .features li:nth-child(2n) { padding-inline-start: 22px; border-inline-start: 1px solid var(--line); }
  .copy, .statement .copy, .trust .copy { width: min(560px, 58vw); }
  .rules { grid-template-columns: 1fr; }
}
@media (max-width: 760px) {
  body { font-size: 17px; }
  .nav, .scroll-cue, .note-hero { display: none; }
  .hero-title { font-size: clamp(34px, 10vw, 54px); }
  .hero-intro { inset-inline: var(--gut); bottom: 128px; max-width: none; font-size: 15px; }
  .tod { bottom: 22px; }
  /* on phones the copy rides in a card in the upper part, Shimi walks below it */
  .stop { align-items: flex-start; min-height: 125svh; padding: 92px var(--gut) 52svh; }
  .copy, .statement .copy, .trust .copy, .drive .copy { width: 100%; padding: 22px; border-radius: 26px; background: rgba(255,255,255,.72); backdrop-filter: blur(14px); -webkit-backdrop-filter: blur(14px); }
  .drive .copy, .finale .copy { background: rgba(4,17,31,.45); }
  .mega { font-size: clamp(36px, 11vw, 56px); }
  .ui { max-width: none; }
  .features, .rules { grid-template-columns: 1fr; }
  .features li:nth-child(n) { padding-inline-start: 0; border-inline-start: 0; }
  .story-intro { padding-top: 110px; }
  .panel { border-radius: 26px; }
  .foot { flex-direction: column; align-items: flex-start; }
}
@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after { animation: none !important; transition: none !important; }
  [data-reveal], .note span { opacity: 1; transform: none; }
  .note path { stroke-dashoffset: 0; }
}
