/* Landing page (ginatmind.com/). Same world as the app: warm ground, deep green, coral, Rubik. */
:root {
  --bg: #FAF6EF;
  --bg-2: #F3EDE3;
  --surface: #FFFFFF;
  --sage: #E4EEE9;
  --ink: #1E2A2C;
  --ink-2: #4E5B5D;
  --line: #E2D8C8;
  --primary: #1E6B66;
  --primary-hover: #185852;
  --primary-deep: #12443F;
  --coral: #C9614A;
  --radius: 22px;
  --shadow: 0 1px 0 rgba(30, 42, 44, .05), 0 14px 34px rgba(30, 42, 44, .09);
  --wrap: 1180px;
}

* { box-sizing: border-box; }
html { scroll-behavior: smooth; -webkit-text-size-adjust: 100%; overflow-x: clip; }
@media (prefers-reduced-motion: reduce) { html { scroll-behavior: auto; } }
body {
  margin: 0;
  font-family: Rubik, "Segoe UI", Arial, sans-serif;
  font-size: 19px;
  line-height: 1.6;
  color: var(--ink);
  background: var(--bg);
  overflow-x: clip;
}
img { max-width: 100%; display: block; }
a { color: inherit; }
h1, h2 { margin: 0; line-height: 1.12; letter-spacing: -0.01em; text-wrap: balance; }
p { margin: 0; }
::selection { background: #CFE3DE; color: var(--ink); }
/* No blinking text cursor when someone clicks on text (the page has no fields to type in) */
html { caret-color: transparent; }
:focus-visible { outline: 3px solid var(--primary); outline-offset: 3px; border-radius: 8px; }
.wrap { width: min(var(--wrap), 100% - 48px); margin-inline: auto; }
.narrow { width: min(820px, 100% - 48px); }
.center { text-align: center; }

/* ---------- Buttons ---------- */
.btn {
  display: inline-flex; align-items: center; justify-content: center; gap: 14px;
  min-height: 52px; padding: 10px 26px;
  font: inherit; font-weight: 600; font-size: 1rem; text-decoration: none;
  color: #fff; background: var(--primary);
  border: 0; border-radius: 16px;
  box-shadow: 0 4px 0 var(--primary-deep);
  cursor: pointer;
  transition: background-color .15s, transform .15s, box-shadow .15s;
}
.btn:hover { background: var(--primary-hover); }
.btn:active { transform: translateY(3px); box-shadow: 0 1px 0 var(--primary-deep); }
.btn-lg { min-height: 64px; padding: 14px 34px; font-size: 1.15rem; border-radius: 18px; }
.btn-sm { min-height: 48px; padding: 8px 20px; font-size: .95rem; border-radius: 14px; box-shadow: 0 3px 0 var(--primary-deep); }
.btn-ghost {
  color: var(--primary); background: var(--surface);
  box-shadow: inset 0 0 0 2px var(--primary);
}
.btn-ghost:hover { background: #EEF5F2; }
.btn-ghost:active { transform: translateY(1px); box-shadow: inset 0 0 0 2px var(--primary); }
.btn svg { width: 24px; height: 24px; fill: none; stroke: currentColor; stroke-width: 2.4; stroke-linecap: round; stroke-linejoin: round; flex: none; }
[dir="ltr"] .btn .arrow { transform: scaleX(-1); }

/* ---------- Header ---------- */
.top { background: var(--surface); border-bottom: 1px solid var(--line); position: sticky; top: 0; z-index: 10; }
.top-row { display: flex; align-items: center; gap: 28px; min-height: 76px; }
.brand { display: inline-flex; align-items: center; gap: 10px; color: var(--primary); font-weight: 700; font-size: 1.3rem; text-decoration: none; }
.nav { display: flex; gap: 30px; margin-inline-start: 24px; }
.nav a { text-decoration: none; font-weight: 500; font-size: .98rem; color: var(--ink); padding: 6px 0; border-bottom: 2px solid transparent; transition: border-color .15s, color .15s; }
.nav a:hover { color: var(--primary); border-color: var(--primary); }
.top-actions { display: flex; align-items: center; gap: 18px; margin-inline-start: auto; }
.lang-btn {
  font: inherit; font-size: .92rem; font-weight: 600; color: var(--ink);
  min-height: 48px; padding: 6px 16px; border-radius: 12px;
  background: var(--surface); border: 1.5px solid var(--line); cursor: pointer;
  transition: border-color .15s;
}
.lang-btn:hover { border-color: var(--primary); }
.login { font-weight: 600; font-size: .98rem; color: var(--primary); text-decoration: none; padding: 10px 4px; }
.login:hover { text-decoration: underline; text-underline-offset: 5px; }

/* ---------- Decorative sprigs ---------- */
.sprig { position: absolute; pointer-events: none; user-select: none; z-index: 0; }

/* ---------- Hero ---------- */
.hero { position: relative; overflow: clip; padding: 56px 0 72px; background: linear-gradient(180deg, var(--bg) 0%, var(--bg-2) 100%); }
.hero-grid { position: relative; z-index: 1; display: grid; grid-template-columns: 1fr 1.08fr; align-items: center; gap: 40px; }
.hero h1 { font-size: clamp(2.6rem, 5.2vw, 4.3rem); font-weight: 800; color: var(--primary); }
.hero h1 span, .hero h1 em { display: block; }
/* English runs longer than the Hebrew: a wider text column and a slightly smaller size keep it to two lines */
@media (min-width: 1061px) {
  [dir="ltr"] .hero-grid { grid-template-columns: 1.12fr 1fr; }
  [dir="ltr"] .hero h1 { font-size: clamp(2.2rem, 3.9vw, 3.2rem); }
}
.hero h1 em, .games h2 em { font-style: normal; color: var(--coral); }
.lede { margin-top: 22px; font-size: 1.22rem; line-height: 1.6; color: var(--ink-2); max-width: 30em; }
.cta-col { display: grid; gap: 14px; margin-top: 34px; max-width: 420px; }
.facts { margin-top: 18px; font-size: .95rem; color: var(--ink-2); }
.hero-art { position: relative; margin: 0; }
.hero-img {
  width: 100%; height: auto;
  -webkit-mask-image: linear-gradient(180deg, #000 82%, transparent 100%), linear-gradient(90deg, transparent 0%, #000 6%, #000 94%, transparent 100%);
  -webkit-mask-composite: source-in;
  mask-image: linear-gradient(180deg, #000 82%, transparent 100%), linear-gradient(90deg, transparent 0%, #000 6%, #000 94%, transparent 100%);
  mask-composite: intersect;
}
.sprig-hero-a { width: 170px; bottom: -110px; inset-inline-start: -95px; opacity: .85; transform: rotate(-8deg); }
.sprig-hero-b { width: 170px; top: 40px; inset-inline-end: -40px; opacity: .55; transform: rotate(20deg); }

/* ---------- How a session works ---------- */
.how { padding: 96px 0 88px; }
.how h2, .faq h2, .research h2 { font-size: clamp(2rem, 3.4vw, 2.75rem); font-weight: 700; }
.steps { list-style: none; margin: 56px 0 0; padding: 0; display: grid; grid-template-columns: repeat(3, 1fr); gap: 56px; counter-reset: s; }
.step { position: relative; text-align: center; }
.shot {
  aspect-ratio: 1640 / 1000; overflow: hidden; border-radius: var(--radius);
  background: var(--surface); border: 1px solid var(--line); box-shadow: var(--shadow);
}
.shot img { width: 100%; height: 100%; object-fit: cover; }
.num {
  position: absolute; top: -18px; inset-inline-start: -14px;
  width: 46px; height: 46px; display: grid; place-items: center;
  font-weight: 700; font-size: 1.15rem; color: var(--primary);
  background: var(--sage); border: 3px solid var(--bg); border-radius: 50%;
}
.step p { margin-top: 22px; font-size: 1.12rem; line-height: 1.5; color: var(--ink); max-width: 17em; margin-inline: auto; }
/* the path between steps */
.step:not(:last-child)::after {
  content: ""; position: absolute; top: 36%; inset-inline-end: -48px; width: 40px; height: 28px;
  background: no-repeat center / contain url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 40 28' fill='none' stroke='%231E6B66' stroke-width='2.4' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpath d='M38 8C28 2 14 4 4 18'/%3E%3Cpath d='M3 9l1 9 9-1'/%3E%3C/svg%3E");
}
[dir="ltr"] .step:not(:last-child)::after { transform: scaleX(-1); }

/* ---------- Games ---------- */
.games { padding: 40px 0 104px; }
.games-grid { display: grid; grid-template-columns: 1fr 1.05fr; gap: 56px; align-items: center; }
.games h2 { font-size: clamp(2.3rem, 4.2vw, 3.4rem); font-weight: 800; color: var(--primary); }
.games h2 span, .games h2 em { display: block; }
.games-copy p { margin-top: 22px; font-size: 1.15rem; color: var(--ink-2); max-width: 28em; }
.games-copy .btn { margin-top: 30px; }
.fan {
  position: relative; height: 500px;
  background: radial-gradient(70% 70% at 50% 55%, var(--sage) 0%, rgba(228,238,233,0) 72%);
}
.fan .card {
  position: absolute; top: 50%; left: 50%; width: 66%;
  overflow: hidden; border-radius: 20px; background: var(--surface);
  box-shadow: 0 2px 4px rgba(30, 42, 44, .06), 0 18px 36px rgba(30, 42, 44, .13);
  transition: transform .5s cubic-bezier(.2, .7, .2, 1);
}
.fan .card img { width: 100%; height: auto; } /* each board keeps its own shape */
.fan .c1, .fan .c3 { width: 52%; }
.fan .c1 { transform: translate(-88%, -60%) rotate(-7deg); }
.fan .c3 { transform: translate(-2%, -38%) rotate(7deg); }
.fan .c2 { transform: translate(-50%, -54%); z-index: 2; }
.fan:hover .c1 { transform: translate(-94%, -62%) rotate(-10deg); }
.fan:hover .c3 { transform: translate(4%, -36%) rotate(10deg); }

/* ---------- Research ---------- */
.research { position: relative; overflow: clip; padding: 88px 0; background: var(--sage); }
.research .wrap { position: relative; z-index: 1; }
.research p { margin-top: 18px; font-size: 1.15rem; color: var(--ink-2); }
.timeline { margin: 44px auto 0; max-width: 680px; }
.tl-track { display: flex; align-items: center; gap: 0; }
.tl-dot, .tl-boost { flex: none; width: 18px; height: 18px; border-radius: 50%; }
.tl-dot { background: var(--primary); box-shadow: 0 0 0 4px var(--sage); position: relative; }
.tl-dot + .tl-dot { margin-inline-start: 26px; }
.tl-dot + .tl-dot::before { content: ""; position: absolute; inset-inline-end: 100%; top: 8px; width: 26px; height: 2px; background: var(--primary); opacity: .45; }
.tl-gap { flex: 1; min-width: 18px; height: 0; border-top: 2px dashed rgba(30, 107, 102, .45); margin-inline: 6px; }
.tl-boost { background: var(--surface); border: 4px solid var(--coral); }
.tl-labels { display: flex; justify-content: space-between; gap: 20px; margin-top: 14px; font-size: .95rem; font-weight: 500; color: var(--ink); }
.tl-labels span:last-child { color: #A8432F; text-align: end; } /* small text: the darker coral reads at 4.5:1 */
.note { margin-top: 34px !important; font-size: .95rem !important; }
.sprig-res-a { width: 210px; top: -30px; inset-inline-start: -50px; opacity: .7; transform: rotate(12deg); }
.sprig-res-b { width: 220px; bottom: -60px; inset-inline-end: -40px; opacity: .7; transform: rotate(-14deg); }

/* ---------- FAQ ---------- */
.faq { padding: 72px 0 96px; }
.qa { margin-top: 40px; display: grid; gap: 14px; }
.qa details { background: var(--surface); border: 1px solid var(--line); border-radius: 18px; box-shadow: 0 1px 0 rgba(30, 42, 44, .04); }
.qa summary {
  list-style: none; cursor: pointer; display: flex; align-items: center; justify-content: space-between; gap: 16px;
  min-height: 64px; padding: 14px 24px; font-weight: 600; font-size: 1.12rem;
}
.qa summary::-webkit-details-marker { display: none; }
.qa summary::after {
  content: ""; flex: none; width: 12px; height: 12px; margin-top: -4px;
  border-right: 2.5px solid var(--primary); border-bottom: 2.5px solid var(--primary);
  transform: rotate(45deg); transition: transform .2s;
}
.qa details[open] summary::after { transform: rotate(225deg); margin-top: 6px; }
.qa details p { padding: 0 24px 22px; color: var(--ink-2); font-size: 1.05rem; max-width: 40em; }

/* ---------- Closing ---------- */
.closing { position: relative; overflow: clip; padding: 72px 0 88px; background: var(--bg-2); }
.closing-row { position: relative; z-index: 1; display: flex; align-items: center; justify-content: center; gap: 36px; }
.noa { width: 150px; height: 150px; border-radius: 50%; background: var(--sage); border: 5px solid var(--surface); box-shadow: var(--shadow); object-fit: cover; }
.closing h2 { font-size: clamp(1.7rem, 3vw, 2.3rem); font-weight: 700; margin-bottom: 22px; }
.sprig-close-a { width: 200px; bottom: -50px; inset-inline-start: 4%; opacity: .85; transform: rotate(-6deg); }
.sprig-close-b { width: 190px; bottom: -40px; inset-inline-end: 4%; opacity: .85; transform: rotate(8deg); }

/* ---------- Footer ---------- */
.foot { background: var(--surface); border-top: 1px solid var(--line); }
.foot-row { display: flex; align-items: center; gap: 28px; min-height: 84px; }
.foot-links { display: flex; gap: 26px; margin-inline-start: auto; }
.foot-links a { text-decoration: none; color: var(--ink-2); font-size: .95rem; }
.foot-links a:hover { color: var(--primary); text-decoration: underline; text-underline-offset: 5px; }

/* ---------- Privacy / terms ---------- */
.doc { padding: 56px 0 88px; }
.doc article + article { margin-top: 72px; padding-top: 56px; border-top: 1px solid var(--line); }
.doc h1 { font-size: clamp(2rem, 4vw, 2.8rem); font-weight: 800; color: var(--primary); }
.doc .updated { margin-top: 6px; color: var(--ink-2); font-size: .95rem; }
.doc h2 { margin: 36px 0 10px; font-size: 1.3rem; font-weight: 700; }
.doc p, .doc li { font-size: 1.05rem; color: var(--ink); max-width: 40em; }
.doc ul { padding-inline-start: 1.2em; margin: 0; display: grid; gap: 8px; }
.doc a { color: var(--primary); font-weight: 600; }

/* ---------- Reveal (only when script runs; content is visible without it) ---------- */
.js .reveal { opacity: 0; transform: translateY(22px); transition: opacity .7s cubic-bezier(.2, .7, .2, 1), transform .7s cubic-bezier(.2, .7, .2, 1); }
.js .reveal.in { opacity: 1; transform: none; }
.js .steps .reveal:nth-child(2) { transition-delay: .08s; }
.js .steps .reveal:nth-child(3) { transition-delay: .16s; }
@media (prefers-reduced-motion: reduce) {
  .js .reveal { opacity: 1; transform: none; transition: none; }
  .fan .card { transition: none; }
}

/* ---------- Tablet ---------- */
@media (max-width: 1060px) {
  .nav { display: none; }
  .hero-grid, .games-grid { grid-template-columns: 1fr; }
  .hero-copy { text-align: center; }
  .hero-copy .lede { margin-inline: auto; }
  .cta-col { margin-inline: auto; }
  .hero-art { max-width: 640px; margin-inline: auto; }
  .games-copy { text-align: center; }
  .games-copy p { margin-inline: auto; }
}

/* ---------- Phone ---------- */
@media (max-width: 700px) {
  body { font-size: 18px; }
  .wrap, .narrow { width: calc(100% - 32px); }
  .top-row { min-height: 64px; gap: 10px; }
  .brand { font-size: 1.1rem; }
  .brand svg { width: 26px; height: 26px; }
  .top .btn-sm { display: none; }
  .top-actions { gap: 8px; }
  .hero { padding: 32px 0 48px; }
  .steps { grid-template-columns: 1fr; gap: 48px; max-width: 420px; margin-inline: auto; }
  .step:not(:last-child)::after { display: none; }
  .how { padding: 64px 0; }
  .games { padding: 24px 0 56px; }
  .fan { height: 270px; }
  .fan .card { width: 60%; }
  .fan .c1 { transform: translate(-78%, -58%) rotate(-6deg); }
  .fan .c3 { transform: translate(-22%, -42%) rotate(6deg); }
  .research { padding: 64px 0; }
  .tl-dot { width: 10px; height: 10px; box-shadow: none; }
  .tl-dot + .tl-dot { margin-inline-start: 8px; }
  .tl-dot + .tl-dot::before { width: 8px; top: 4px; }
  .tl-gap { min-width: 8px; margin-inline: 3px; }
  .tl-boost { width: 12px; height: 12px; border-width: 3px; }
  .tl-labels { font-size: .85rem; }
  .closing-row { flex-direction: column; text-align: center; gap: 20px; }
  .foot-row { flex-wrap: wrap; justify-content: center; padding: 18px 0; gap: 14px 22px; }
  .foot-row .brand { flex-basis: 100%; justify-content: center; }
  .foot-links { margin-inline-start: 0; }
  .sprig-hero-b, .sprig-res-a, .sprig-res-b, .sprig-close-a { display: none; }
  .sprig-close-b { width: 120px; bottom: -40px; inset-inline-end: -30px; opacity: .6; }
}
