/* COGITO: the one stylesheet of the product pages (/en, /he and their privacy pages).
   Logical properties throughout, so the Hebrew pages (dir="rtl") need no overrides of their own. */

/* Rubik (SIL OFL, fonts/Rubik-OFL.txt): the clip's titles use it too */
@font-face {
  font-family: "Rubik";
  src: url("/fonts/Rubik.ttf") format("truetype");
  font-weight: 300 900;
  font-display: swap;
}

:root {
  --ink: #111816;
  --ink-2: #47564f;                    /* secondary text: holds 4.5:1 down to the page's deepest emerald */
  --line: rgba(17, 40, 31, .14);       /* the hairline every rule, divider and outline is drawn with */
  --emerald: #0e9f6e;
  --emerald-ink: #0b8059;              /* emerald dark enough to be read, and to carry white text */
  --alert: #a3341f;
  --sans: "Rubik", "Avenir Next", Avenir, "Segoe UI", sans-serif;
  --ease: cubic-bezier(.16, 1, .3, 1);
  --page: min(1080px, calc(100% - 48px));
  --gutter: clamp(24px, 5vw, 72px);
}

* { box-sizing: border-box; }
html, body { margin: 0; min-height: 100%; }
html { background: #ffffff; scroll-padding-top: 24px; }
@media (prefers-reduced-motion: no-preference) { html { scroll-behavior: smooth; } }

/* white easing into light emerald down the page, with a soft emerald glow drifting behind */
body {
  position: relative;
  isolation: isolate;
  display: flex;
  flex-direction: column;
  min-height: 100vh;
  color: var(--ink);
  background: linear-gradient(180deg, #ffffff 0%, #f1fcf6 32%, #ddf6ea 68%, #bfeedb 100%) fixed;
  font: 400 16px/1.5 var(--sans);
  -webkit-font-smoothing: antialiased;
  text-rendering: optimizeLegibility;
  caret-color: var(--emerald);
  accent-color: var(--emerald);
}
body::before {
  content: "";
  position: fixed;
  inset: -20vmax;
  z-index: -1;
  background:
    radial-gradient(40vmax 30vmax at 30% 70%, rgba(52, 211, 153, .22), transparent 70%),
    radial-gradient(36vmax 28vmax at 75% 35%, rgba(16, 185, 129, .14), transparent 70%);
  animation: drift 28s ease-in-out infinite alternate;
  pointer-events: none;
}
@keyframes drift {
  from { transform: translate3d(-4vmax, 2vmax, 0) rotate(0deg); }
  to   { transform: translate3d(4vmax, -3vmax, 0) rotate(8deg); }
}
::selection { background: rgba(16, 185, 129, .26); color: var(--ink); }
:focus-visible { outline: 2px solid var(--emerald-ink); outline-offset: 3px; }
a { color: inherit; text-decoration: none; }
.sr { position: absolute; width: 1px; height: 1px; overflow: hidden; clip-path: inset(50%); white-space: nowrap; }
[hidden] { display: none !important; }

/* ---- header ---- */
header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
  width: min(1200px, calc(100% - 32px));
  margin: 0 auto;
  padding: 22px 0 10px;
}
header img { display: block; width: clamp(96px, 24vw, 132px); height: auto; }
header nav { display: flex; gap: clamp(8px, 2vw, 12px); align-items: center; white-space: nowrap; }
header nav a {
  padding: 6px 14px;
  border-radius: 999px;
  font-size: 14px;
  line-height: 20px;
  transition: background .2s, color .2s, box-shadow .2s;
}
header nav a.go { background: var(--ink); color: #fff; font-weight: 500; }
header nav a.go:hover { background: var(--emerald-ink); }

main { flex: 1; width: 100%; }

/* ---- the stage: the clip, then the same scene as a 3D model (stage.js). The clip has no background (alpha
   video), so the page shows through; both edges fade, so a guitar cut by the frame melts away instead of ending
   on a line ---- */
.hero {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 6px;
  width: min(1280px, 100%);
  margin: 0 auto;
}
.stage {
  position: relative;
  width: 100%;
  max-width: 1280px;                   /* the clip's own pixels: never upscaled (the script corrects for dpr) */
  aspect-ratio: 16 / 9;
}
.stage > video, .stage > model-viewer {
  position: absolute;
  inset: 0;
  display: block;
  width: 100%;
  height: 100%;
  background: transparent;
  transition: opacity .7s ease;
  -webkit-mask-image: linear-gradient(to right, transparent, #000 3%, #000 97%, transparent),
                      linear-gradient(to bottom, transparent, #000 3.5%, #000 96.5%, transparent);
  -webkit-mask-composite: source-in;
  mask-image: linear-gradient(to right, transparent, #000 3%, #000 97%, transparent),
              linear-gradient(to bottom, transparent, #000 3.5%, #000 96.5%, transparent);
  mask-composite: intersect;
}
/* the voice track: the clip autoplays muted (browsers allow nothing else), this turns its sound on */
.sound {
  position: absolute;
  bottom: 7%;
  inset-inline-end: 5%;
  z-index: 1;
  display: inline-flex;
  align-items: center;
  gap: 7px;
  padding: 8px 14px;
  border: 0;
  border-radius: 999px;
  background: rgba(19, 32, 27, .82);
  color: #fff;
  font: 500 13px/1 var(--sans);
  cursor: pointer;
  -webkit-backdrop-filter: blur(6px);
  backdrop-filter: blur(6px);
  transition: opacity .4s ease, background .2s;
}
.sound:hover { background: var(--emerald-ink); }
.sound svg { width: 16px; height: 16px; }
.sound .on, .sound[aria-pressed="true"] .off { display: none; }
.sound[aria-pressed="true"] .on { display: inline; }
.sound[aria-pressed="true"] { padding: 8px; }
.stage.spin > .sound { opacity: 0; pointer-events: none; }
@media (max-width: 640px) { .sound { bottom: 4%; padding: 8px; } .sound span { display: none; } }
/* once the model has taken over: the way to the pre-order, in the frame's empty corner beside the guitar */
.stage > .buy {
  position: absolute;
  right: 5%;
  bottom: 8%;
  z-index: 1;
  display: flex;
  flex-direction: column;
  align-items: flex-end;
  gap: 10px;
  opacity: 0;
  visibility: hidden;
  transform: translateY(6px);
  transition: opacity .5s ease, transform .5s var(--ease), visibility 0s .5s;
}
:dir(rtl) .stage > .buy { align-items: flex-start; }   /* the same corner on the Hebrew page: the guitar isn't mirrored */
.stage.spin > .buy { opacity: 1; visibility: visible; transform: none; transition: opacity .7s ease .5s, transform .8s var(--ease) .5s; }
.buy:hover .btn { background: var(--emerald-ink); }
@media (max-width: 640px) {
  .stage > .buy { right: 4%; bottom: 4%; }
  .buy .btn.big { min-height: 36px; padding: 8px 14px; font-size: 13px; }
  .buy .btn svg { width: 14px; height: 14px; }
}
.stage > model-viewer { opacity: 0; pointer-events: none; --poster-color: transparent; --progress-bar-height: 0; }
.stage.spin > model-viewer { opacity: 1; pointer-events: auto; }
/* the clip's colour grade (Blender's "AgX Punchy") over the model, which the viewer tones with plain AgX: fitted on
   the clip's closing frame rendered both ways (mean error under 5 levels) */
.stage > model-viewer { filter: brightness(.85) contrast(1.2) saturate(1.1); }
.stage.spin > video { opacity: 0; pointer-events: none; }
/* the two parts a tap looks closer at: model-viewer keeps these on them. Nothing to see (the parts themselves
   glow, stage.js), they are there for the keyboard and to say where the parts are on screen */
.spot {
  width: 44px;
  height: 44px;
  padding: 0;
  border: 0;
  border-radius: 50%;
  background: none;
  pointer-events: none;
}
.spot:focus-visible { outline: 1.5px solid var(--ink); outline-offset: 0; }

.after {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 10px;
  min-height: 82px;                    /* kept while hidden: nothing jumps when the model takes over */
  opacity: 0;
  visibility: hidden;
  transition: opacity .7s ease .2s, visibility 0s .9s;
}
.stage.spin + .after { opacity: 1; visibility: visible; transition: opacity .7s ease .3s; }
.after p { margin: 0; padding: 0 16px; font-size: 13px; color: var(--ink-2); text-align: center; text-wrap: balance; }

/* ---- buttons and fields ---- */
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  min-height: 44px;
  padding: 10px 22px;
  border: 0;
  border-radius: 999px;
  background: var(--ink);
  color: #fff;
  font: 500 15px/1.2 var(--sans);
  cursor: pointer;
  box-shadow: 0 6px 22px rgba(14, 159, 110, .28);
  transition: background .2s, box-shadow .2s, transform .2s var(--ease);
}
.btn:hover { background: var(--emerald-ink); }
.btn:active { transform: scale(.98); }
.btn[disabled] { cursor: progress; background: var(--ink-2); box-shadow: none; }
.btn svg { width: 16px; height: 16px; flex: none; }
.btn.quiet { background: transparent; color: var(--ink); box-shadow: inset 0 0 0 1px rgba(17, 40, 31, .3); }   /* the second thing to do */
.btn.quiet:hover { background: rgba(17, 40, 31, .07); box-shadow: inset 0 0 0 1px rgba(17, 40, 31, .55); }
.btn.icon { width: 44px; padding: 0; }
.btn.icon svg { width: 18px; height: 18px; }
.btn.big { min-height: 52px; padding: 14px 28px; font-size: 16px; }
:dir(rtl) .btn svg.dir { transform: scaleX(-1); }

/* ---- the sections under the stage: hairline-ruled, no boxes ---- */
.band { width: var(--page); margin: clamp(80px, 11vw, 152px) auto 0; }
.hero + .band { margin-top: clamp(20px, 6vw, 88px); }
h1, h2, h3, p { margin: 0; }
h2, .prose h1 {
  margin-bottom: clamp(28px, 4vw, 44px);
  font-weight: 300;
  font-size: clamp(2.125rem, 5vw, 3.5rem);
  line-height: 1.08;
  letter-spacing: -0.025em;
  text-wrap: balance;
}
h3 {
  font-weight: 400;
  font-size: clamp(1.3125rem, 2.3vw, 1.75rem);
  line-height: 1.2;
  letter-spacing: -0.015em;
  text-wrap: balance;
}
h2 em { font-style: normal; color: #0c8f63; }
:lang(he) :is(h1, h2, h3) { letter-spacing: -0.005em; }
.band p { color: var(--ink-2); font-size: 1.0625rem; line-height: 1.55; text-wrap: pretty; }

/* the small figures: hairline geometry, one emerald mark each */
.ns { display: contents; }   /* a figure with letters in it, fenced off from search results' text (data-nosnippet) */
.fig { display: block; width: 168px; height: 96px; overflow: visible; color: var(--ink); fill: none; stroke: currentColor; stroke-width: 1; stroke-linecap: round; }
.fig * { vector-effect: non-scaling-stroke; }
.fig .em { stroke: var(--emerald); }
.fig .dot { fill: currentColor; stroke: none; }
.fig .dot.em { fill: var(--emerald); }
.fig text { fill: currentColor; stroke: none; font: 500 8.5px/1 var(--sans); direction: ltr; }   /* the chart's chord names */
.fig .move { transform-box: fill-box; transform-origin: center; }
:dir(rtl) :is(.fig-modes, .fig-tools) { transform: scaleX(-1); }   /* practice first, as its words read: the metronome on the right */
@media (prefers-reduced-motion: no-preference) {
  .fig-voice line { animation: speak 1.5s ease-in-out infinite alternate; animation-delay: calc(var(--i) * -.13s); }
  .fig-search .scan { animation: scan 5.2s cubic-bezier(.45, 0, .55, 1) infinite alternate; }
  .fig-search .found { animation: found 5.2s ease-in-out infinite alternate; }
  .fig-scroll .sheet { animation: creep 11s linear infinite; }
  .fig-modes .arm { transform-box: view-box; transform-origin: 46px 64px; animation: swing 1s cubic-bezier(.45, 0, .55, 1) infinite alternate; }
  .fig-modes .flame { transform-box: fill-box; transform-origin: 50% 100%; animation: flicker 1.7s ease-in-out infinite alternate; }
  .fig-tools .rec { animation: rec 1.1s ease-in-out infinite alternate; }
  .fig-tools .head { animation: head 4.5s linear infinite; }
  .fig.resting * { animation-play-state: paused; }
}
@keyframes speak { from { transform: scaleY(.5); } to { transform: scaleY(1); } }
@keyframes scan { from { transform: translateX(0); } to { transform: translateX(132px); } }
@keyframes found { 0%, 55% { opacity: .35; } 78%, 100% { opacity: 1; } }
@keyframes swing { from { transform: rotate(-15deg); } to { transform: rotate(15deg); } }
@keyframes flicker { from { transform: scale(.94, .86); } to { transform: scale(1.03, 1.08); } }
@keyframes rec { from { opacity: .3; } to { opacity: 1; } }
@keyframes head { to { transform: translateX(34px); } }
@keyframes creep { to { transform: translateY(-88px); } }

/* how it works: a ruled list, figure · name · what it does */
.steps { list-style: none; margin: 0; padding: 0; border-bottom: 1px solid var(--line); }
.steps li {
  display: grid;
  grid-template-columns: 168px minmax(0, 5fr) minmax(0, 6fr);
  column-gap: var(--gutter);
  align-items: center;
  padding: 30px 0;
  border-top: 1px solid var(--line);
}
.steps p { max-width: 46ch; }

/* pre-order */
.order {
  display: grid;
  grid-template-columns: minmax(0, 1fr) minmax(0, 440px);
  column-gap: var(--gutter);
  align-items: start;
  padding-block: clamp(36px, 5vw, 60px);
  border-block: 1px solid var(--line);
  margin-bottom: clamp(80px, 11vw, 152px);
}
.order h2 { margin-bottom: 14px; }
/* the order as it stands before paying: what is in it, and its total (shown once "Pre-order now" is pressed) */
.summary { animation: arrive .5s var(--ease); }
.summary h3 { margin-bottom: 10px; }
.summary dl { margin: 0 0 22px; border-bottom: 1px solid var(--line); }
.summary dl > div { display: flex; justify-content: space-between; align-items: baseline; gap: 16px; padding: 13px 0; border-top: 1px solid var(--line); }
.summary dt { color: var(--ink); }
.summary dt small { display: block; margin-top: 2px; color: var(--ink-2); font-size: 14px; }
.summary dd { margin: 0; flex: none; color: var(--ink); font-variant-numeric: lining-nums tabular-nums; }
.summary dd.in { color: var(--emerald-ink); }
.summary dd s { margin-inline-end: 10px; color: var(--ink-2); font-size: .875rem; text-decoration-thickness: 1px; }   /* the price before the pre-order's */
.summary .total { font-weight: 500; font-size: 1.125rem; }
.fields { animation: arrive .5s var(--ease); }
@keyframes arrive { from { opacity: 0; transform: translateY(6px); } }
.fields .first { margin-bottom: 18px; color: var(--ink); }   /* said before the email is asked for: no charge yet */
.fields label { display: block; margin-bottom: 8px; font-size: 14px; font-weight: 500; }
.fields .row { display: flex; gap: 8px; }
.fields input {
  flex: 1;
  min-width: 0;
  height: 52px;
  padding: 0 20px;
  border: 0;
  border-radius: 999px;
  background: rgba(255, 255, 255, .78);
  box-shadow: inset 0 0 0 1px rgba(17, 40, 31, .3);
  color: var(--ink);
  font: 400 16px/1 var(--sans);
  transition: box-shadow .2s, background .2s;
}
:is(.fields, .write) input::placeholder { color: #5d6d66; opacity: 1; }
:is(.fields input, .write input, .write textarea):hover { box-shadow: inset 0 0 0 1px rgba(17, 40, 31, .55); }
:is(.fields input, .write input, .write textarea):focus { outline: 0; background: #fff; box-shadow: inset 0 0 0 2px var(--emerald-ink); }
:is(.fields input, .write input, .write textarea)[aria-invalid="true"] { box-shadow: inset 0 0 0 2px var(--alert); }
.fields .btn { flex: none; }
.order .note { margin-top: 12px; font-size: 14px; }
.link { padding: 0; border: 0; background: none; color: inherit; font: inherit; cursor: pointer; }
.order .note a, .prose a, footer a, .link { text-decoration: underline; text-decoration-thickness: 1px; text-underline-offset: 3px; text-decoration-color: rgba(17, 40, 31, .35); transition: text-decoration-color .2s, color .2s; }
.order .note a:hover, .prose a:hover, footer a:hover, .link:hover { color: var(--ink); text-decoration-color: currentColor; }
.error { margin-top: 10px; color: var(--alert); font-size: 14px; font-weight: 500; }
.done { display: grid; grid-template-columns: 28px minmax(0, 1fr); column-gap: 14px; align-items: start; animation: arrive .6s var(--ease); }
.done:focus { outline: 0; }
.done svg { width: 28px; height: 28px; fill: none; stroke: var(--emerald-ink); stroke-width: 1.5; stroke-linecap: round; stroke-linejoin: round; }
.done svg path { stroke-dasharray: 24; stroke-dashoffset: 24; animation: tick .5s .25s var(--ease) forwards; }
@keyframes tick { to { stroke-dashoffset: 0; } }
.done strong { display: block; margin-bottom: 4px; color: var(--ink); font-weight: 500; font-size: 1.25rem; letter-spacing: -0.01em; }
.done bdi { color: var(--ink); overflow-wrap: anywhere; }

/* ---- the privacy pages: one column, to be read ---- */
.prose { width: min(640px, calc(100% - 48px)); margin: clamp(40px, 7vw, 88px) auto clamp(80px, 11vw, 152px); }
.prose h1 { margin-bottom: 18px; }
.prose > p { color: var(--ink-2); font-size: 1.125rem; line-height: 1.6; text-wrap: pretty; }
.prose dl { margin: clamp(32px, 5vw, 48px) 0 0; border-bottom: 1px solid var(--line); }
.prose dt { padding-top: 22px; border-top: 1px solid var(--line); font-weight: 500; font-size: 1.0625rem; }
.prose dd { margin: 6px 0 22px; color: var(--ink-2); line-height: 1.6; text-wrap: pretty; }
.prose .dated { margin-top: 22px; font-size: 14px; }

/* ---- write to us: the page's one dialog ---- */
html:has(dialog[open]) { overflow: hidden; }
.write {
  width: min(480px, calc(100% - 32px));
  max-height: calc(100dvh - 32px);
  padding: 28px;
  border: 0;
  border-radius: 16px;
  background: #fbfefc;
  color: var(--ink);
  box-shadow: 0 24px 64px rgba(10, 60, 42, .22);
  overflow: auto;
}
.write::backdrop { background: rgba(17, 32, 26, .42); }
.write[open] { animation: arrive .45s var(--ease); }
.write[open]::backdrop { animation: dim .3s ease; }
@keyframes dim { from { opacity: 0; } }
.write h2 { margin: 0 0 22px; padding-inline-end: 44px; font-size: 1.75rem; letter-spacing: -0.015em; }
.write .x {
  position: absolute;
  top: 18px;
  inset-inline-end: 18px;
  display: grid;
  place-items: center;
  width: 40px;
  height: 40px;
  padding: 0;
  border: 0;
  border-radius: 50%;
  background: none;
  color: var(--ink-2);
  cursor: pointer;
  transition: background .2s, color .2s;
}
.write .x:hover { background: rgba(17, 40, 31, .07); color: var(--ink); }
.write .x svg { width: 18px; height: 18px; }
.write label { display: block; margin: 18px 0 8px; font-size: 14px; font-weight: 500; }
.write label:first-of-type { margin-top: 0; }
.write input, .write textarea {
  display: block;
  width: 100%;
  border: 0;
  background: #fff;
  box-shadow: inset 0 0 0 1px rgba(17, 40, 31, .3);
  color: var(--ink);
  font: 400 16px/1.5 var(--sans);
  transition: box-shadow .2s;
}
.write input { height: 52px; padding: 0 20px; border-radius: 999px; }
.write textarea { min-height: 136px; padding: 14px 20px; border-radius: 18px; resize: vertical; }
.write .btn { margin-top: 22px; }
.write .done { padding-block: 6px 4px; }
.write .done p { color: var(--ink-2); font-size: 1.0625rem; line-height: 1.55; }

/* ---- footer ---- */
footer {
  display: flex;
  justify-content: space-between;
  gap: 16px;
  width: var(--page);
  margin: 0 auto;
  padding: 18px 0 26px;
  font-size: 13px;
  color: var(--ink-2);
}
footer .links { display: flex; gap: 20px; }
/* the networks' pages: their marks in the footer's own ink, emerald under the pointer; each a 36px target */
footer { align-items: center; flex-wrap: wrap; }
footer .social { display: flex; gap: 2px; direction: ltr; }
footer .social a { display: grid; place-items: center; width: 36px; height: 36px; border-radius: 50%; color: var(--ink-2); transition: color .2s, background-color .2s; }
footer .social svg { width: 17px; height: 17px; fill: currentColor; }
footer .social a:hover { color: var(--emerald-ink); background: rgba(14, 159, 110, .1); }
footer .social a:focus-visible { outline: 2px solid var(--emerald); outline-offset: 1px; }
@media (max-width: 560px) {          /* a row of their own above the line, centred */
  footer .social { order: -1; flex-basis: 100%; justify-content: center; gap: 10px; padding-bottom: 6px; }
}

@media (max-width: 760px) {
  .steps li { grid-template-columns: 112px minmax(0, 1fr); column-gap: 20px; align-items: start; padding: 24px 0; }
  .steps .fig { grid-row: span 2; width: 112px; height: 64px; }
  .steps p { margin-top: 6px; font-size: 1rem; }
  .order { grid-template-columns: 1fr; row-gap: 28px; }
}
@media (max-width: 420px) {
  .fields .row { flex-direction: column; }
  .fields input { flex: none; width: 100%; }
  .fields .btn { width: 100%; }
}
@media (prefers-reduced-motion: reduce) {
  body::before, .fields, .summary, .done, .done svg path, .write[open], .write[open]::backdrop { animation: none; }
  .done svg path { stroke-dashoffset: 0; }
}
