/* awaken.co.il — the threshold.
   Palette is the site's own: void navy through deep teal-navy, gold as the single
   luminous accent. Nothing else earns a colour here. */
:root{
  /* Retokened 2026-08-22 to the photographs' own material (hue 28°) so the app rooms and
     the public site are one substance. The app pages stay DARK — they are instruments, not
     editorial. Every app stylesheet @imports this file, so this block is the ONE home for
     the palette.
     31/08: the founder moved the site's dark rooms from umber to deep navy, so these moved
     with them — the point of the 8/22 note was that the two worlds share a substance, and
     that is still the rule even though the substance changed. The token names were already
     --navy and --void; they now mean what they say. */
  --void:#101725; --navy:#141d2e; --deep:#1c2740;
  /* Surfaces, so the next palette change is one edit and not a hunt for hand-mixed rgba.
     31/08: ten literals across four stylesheets were still umber after the tokens above had
     moved to navy -- cards and wells that had been mixed by eye rather than taken from the
     palette, which is why the room looked brown on a navy ground. */
  --card-a:rgba(28,39,64,.86); --card-b:rgba(20,29,46,.94); --well:rgba(16,23,37,.62);
  --gold:#c9a05a; --gold-lit:#e6c98a; --teal:#5cb8ad;
  --ink:#f2efed;
  --mist:rgba(242,239,237,.70);
  --faint:rgba(242,239,237,.40);
  --hair:rgba(242,239,237,.14);
  --bad:#ff9a8a;
  --sans:'Manrope',-apple-system,'Segoe UI',Arial,sans-serif;
  --serif:'Cormorant Garamond',Georgia,serif;
  --ease:cubic-bezier(.22,.61,.36,1);
}
html[dir="rtl"]{ --sans:'Assistant',Arial,sans-serif; }

*{box-sizing:border-box}
html,body{height:100%}
body{
  margin:0; background:var(--void); color:var(--ink); font-family:var(--sans);
  font-size:16px; line-height:1.6; -webkit-font-smoothing:antialiased;
  overflow-x:hidden;
}
/* The ground: two light sources, one gold, one teal, on deep navy. */
body::before{
  content:""; position:fixed; inset:0; z-index:0; pointer-events:none;
  background:
    radial-gradient(58% 48% at 74% 16%, rgba(201,160,90,.14), transparent 62%),
    radial-gradient(52% 46% at 12% 88%, rgba(92,184,173,.10), transparent 60%),
    linear-gradient(155deg,var(--void) 0%,var(--navy) 46%,var(--deep) 100%);
}
/* A faint measured grid — the "university" note, not decoration for its own sake. */
body::after{
  content:""; position:fixed; inset:0; z-index:0; pointer-events:none; opacity:.5;
  background-image:linear-gradient(var(--hair) 1px,transparent 1px),
                   linear-gradient(90deg,var(--hair) 1px,transparent 1px);
  background-size:88px 88px;
  mask-image:radial-gradient(70% 60% at 50% 40%,#000 30%,transparent 78%);
  -webkit-mask-image:radial-gradient(70% 60% at 50% 40%,#000 30%,transparent 78%);
}

.shell{position:relative;z-index:1;min-height:100%;display:flex;flex-direction:column;
  /* The figure is wider than its column by design. Clip at the full-width shell so it can
     spill past the card on desktop without ever giving the page a sideways scrollbar.
     Clipping on .stage instead cut the star's own top and bottom points off. */
  overflow-x:hidden}

/* ---------- top bar ---------- */
.top{display:flex;align-items:center;gap:20px;padding:22px clamp(20px,5vw,56px);
  /* see community.css: a row that cannot fit wraps, at any width */
  flex-wrap:wrap;row-gap:10px}
.mark{display:flex;align-items:center;gap:12px;text-decoration:none;color:inherit}
.mark img{width:42px;height:42px;object-fit:contain}
.mark b{font-weight:800;font-size:.94rem;letter-spacing:.01em;display:block;line-height:1.15}
.mark span{font-size:.6rem;letter-spacing:.24em;text-transform:uppercase;color:var(--faint);font-weight:700}
.top nav{margin-inline-start:auto;display:flex;gap:6px}
.top nav button{
  background:transparent;border:1px solid transparent;color:var(--faint);font-family:inherit;
  font-weight:700;font-size:.72rem;letter-spacing:.1em;padding:7px 12px;border-radius:999px;cursor:pointer;
  transition:color .2s,border-color .2s,background .2s;
}
.top nav button:hover{color:var(--ink)}
.top nav button[aria-pressed="true"]{color:var(--void);background:var(--gold-lit);border-color:var(--gold-lit)}
.back{color:var(--faint);text-decoration:none;font-size:.82rem;font-weight:600}
.back:hover{color:var(--ink)}

/* ---------- layout ---------- */
.wrap{
  flex:1;display:grid;grid-template-columns:1.02fr .98fr;align-items:center;
  gap:clamp(32px,6vw,88px);
  max-width:1180px;margin-inline:auto;width:100%;
  padding:clamp(24px,4vw,56px) clamp(20px,5vw,56px) clamp(48px,7vw,88px);
}
@media(max-width:940px){
  .wrap{grid-template-columns:1fr;gap:40px;padding-top:8px}
  .stage{min-height:520px}
  .merkaba{width:min(112%,430px)}
  .said{order:2;text-align:center}
  .stage{order:1}
}

/* ---------- left: the claim ---------- */
.eyebrow{
  display:flex;align-items:center;gap:12px;
  font-size:.68rem;letter-spacing:.26em;text-transform:uppercase;font-weight:800;color:var(--gold);
  margin-bottom:26px;
}
.eyebrow::before{content:"";width:38px;height:1px;background:var(--gold);opacity:.7}
@media(max-width:940px){.eyebrow{justify-content:center}}

h1{
  font-size:clamp(2.5rem,5.6vw,4.15rem); line-height:.98; margin:0 0 26px;
  font-weight:800; letter-spacing:-.035em;
}
h1 .lit{
  color:transparent;
  background:linear-gradient(96deg,var(--gold-lit),var(--gold) 58%,#b98f45);
  -webkit-background-clip:text;background-clip:text;
  display:inline-block;
}
/* The one serif on the page, and the only italic. It is the motto, and nothing else. */
.said p{color:var(--mist);max-width:44ch;margin:0 0 32px;font-size:1.02rem}
.said p.motto{
  font-family:var(--serif); font-style:italic; font-weight:500;
  font-size:clamp(1.45rem,2.6vw,2rem); line-height:1.3; color:var(--gold-lit);
  margin:0 0 30px; max-width:30ch; padding-inline-start:20px;
  border-inline-start:1px solid rgba(210,169,95,.42);
}
@media(max-width:940px){.said p.motto{margin-inline:auto;border:0;padding-inline-start:0;max-width:26ch}}

@media(max-width:940px){.said p{margin-inline:auto}}

/* Three facts, each true and checkable — not features, guarantees. */
.facts{list-style:none;margin:0;padding:0;display:grid;gap:13px;max-width:40ch}
@media(max-width:940px){.facts{margin-inline:auto;text-align:start}}
.facts li{display:flex;gap:13px;align-items:flex-start;font-size:.9rem;color:var(--mist)}
.facts svg{flex:0 0 16px;margin-top:4px;stroke:var(--teal);fill:none;stroke-width:1.6}

/* ---------- right: the star + the card ---------- */
.stage{position:relative;display:grid;place-items:center;min-height:640px}
.merkaba{
  position:absolute;inset:50% auto auto 50%;transform:translate(-50%,-50%);
  /* Deliberately larger than the card: the figure has to read AROUND it, otherwise the
     one idea on this page is hidden behind a panel. */
  width:min(178%,900px);aspect-ratio:1;pointer-events:none;
}
.merkaba svg{width:100%;height:100%;overflow:visible}
.merkaba .ring{fill:none;stroke:rgba(226,238,242,.11);stroke-width:1}
.merkaba .spin{transform-origin:50% 50%;animation:spin 150s linear infinite}
.merkaba .spin-r{transform-origin:50% 50%;animation:spin 210s linear infinite reverse}
@keyframes spin{to{transform:rotate(360deg)}}

/* Both triangles draw on load; the second is the one that completes on success. */
.tri{fill:none;stroke-linejoin:round;stroke-width:1.4;
     stroke-dasharray:var(--len);stroke-dashoffset:var(--len)}
.tri-a{stroke:rgba(210,169,95,.62); animation:draw 1500ms var(--ease) 200ms forwards}
.tri-b{stroke:rgba(43,154,145,.5); animation:draw 1500ms var(--ease) 620ms forwards}
@keyframes draw{to{stroke-dashoffset:0}}

/* Six vertices, six digits. A vertex lights when its digit is typed. */
.vtx{fill:var(--void);stroke:rgba(226,238,242,.3);stroke-width:1.2;r:5;
     transition:fill .35s var(--ease),stroke .35s var(--ease),r .35s var(--ease)}
.vtx.on{fill:var(--gold-lit);stroke:var(--gold-lit);r:7.5;filter:url(#glow)}
.core{fill:var(--gold-lit);opacity:0;transition:opacity .5s}
.stage.done .core{opacity:1;animation:pulse 2.4s var(--ease) infinite}
@keyframes pulse{0%,100%{opacity:.55;r:5}50%{opacity:1;r:11}}

/* ---------- the card ---------- */
.card{
  position:relative;width:min(100%,428px);
  background:linear-gradient(168deg,rgba(28,39,64,.86),rgba(20,29,46,.94));
  border:1px solid var(--hair);border-radius:22px;
  padding:34px clamp(22px,4vw,34px);
  backdrop-filter:blur(18px) saturate(140%);
  box-shadow:0 40px 90px -30px rgba(0,0,0,.75), inset 0 1px 0 rgba(255,255,255,.07);
  opacity:0;transform:translateY(20px);
  animation:rise 900ms var(--ease) 900ms forwards;
}
@keyframes rise{to{opacity:1;transform:none}}
.card h2{font-size:1.34rem;font-weight:800;margin:0 0 6px;letter-spacing:-.015em}
.card .sub{color:var(--mist);font-size:.9rem;margin:0 0 24px}
.card .sub b{color:var(--gold-lit);font-weight:700}

label{display:block;font-size:.7rem;letter-spacing:.16em;text-transform:uppercase;
      font-weight:800;color:var(--faint);margin-bottom:9px}
input{
  width:100%;padding:15px 17px;font-size:1rem;font-family:inherit;color:var(--ink);
  background:rgba(16,23,37,.62);border:1px solid var(--hair);border-radius:13px;
  transition:border-color .2s,box-shadow .2s,background .2s;
}
input::placeholder{color:rgba(226,238,242,.28)}
input:focus{outline:none;border-color:var(--gold);background:rgba(16,23,37,.85);
            box-shadow:0 0 0 4px rgba(210,169,95,.16)}
input.code{
  text-align:center;font-size:1.9rem;font-weight:800;letter-spacing:.42em;
  text-indent:.42em;font-variant-numeric:tabular-nums;padding:17px;
}

.btn{
  width:100%;display:flex;align-items:center;justify-content:center;gap:10px;
  padding:15px 20px;font-family:inherit;font-size:.96rem;font-weight:800;
  border-radius:13px;border:1px solid transparent;cursor:pointer;
  transition:transform .18s var(--ease),box-shadow .2s,filter .2s,opacity .2s;
}
.btn:hover:not(:disabled){transform:translateY(-2px)}
.btn:active:not(:disabled){transform:translateY(0)}
.btn:disabled{opacity:.45;cursor:not-allowed}
.btn-gold{background:linear-gradient(96deg,var(--gold-lit),var(--gold));color:#231703;
          box-shadow:0 14px 34px -12px rgba(210,169,95,.6)}
.btn-gold:hover:not(:disabled){filter:brightness(1.06)}
.btn-ghost{background:rgba(226,238,242,.055);color:var(--ink);border-color:var(--hair)}
.btn-ghost:hover:not(:disabled){background:rgba(226,238,242,.1);border-color:rgba(226,238,242,.28)}
.btn + .btn{margin-top:11px}
.stack{margin-top:20px}

.rule{display:flex;align-items:center;gap:14px;margin:22px 0;
      color:var(--faint);font-size:.7rem;letter-spacing:.18em;text-transform:uppercase;font-weight:700}
.rule::before,.rule::after{content:"";flex:1;height:1px;background:var(--hair)}

.note{font-size:.76rem;color:var(--faint);margin:16px 0 0;line-height:1.55}
.linkish{background:none;border:0;color:var(--mist);font-family:inherit;font-size:.84rem;
         font-weight:700;cursor:pointer;padding:10px;width:100%;margin-top:4px}
.linkish:hover{color:var(--ink)}

.msg{margin-top:16px;padding:12px 14px;border-radius:11px;font-size:.85rem;display:none}
.msg.show{display:block}
.msg.err{background:rgba(255,154,138,.1);border:1px solid rgba(255,154,138,.32);color:var(--bad)}
.msg.ok{background:rgba(43,154,145,.12);border:1px solid rgba(43,154,145,.36);color:#8fd8cf}

.hidden{display:none !important}
:focus-visible{outline:2px solid var(--gold-lit);outline-offset:3px;border-radius:6px}

@media(prefers-reduced-motion:reduce){
  *,*::before,*::after{animation:none !important;transition-duration:.01ms !important}
  .tri{stroke-dashoffset:0}
  .card{opacity:1;transform:none}
}

/* Measured at 390px: the header row (wordmark + language + back link) is ~434px wide and
   pushed the page sideways. The logo already links home, so the wordmark text is the part
   that can go; the back link and the language switcher both stay reachable. */
@media(max-width:560px){
  .top{padding-inline:16px;gap:10px;flex-wrap:nowrap}
  .mark > span{display:none}
  .mark img{width:36px;height:36px}
  .mark b{font-size:.86rem}
  .top nav button{padding:8px 10px}
  .back{font-size:.8rem}
  /* Nothing in this row may wrap onto a second line: at 390px "My dashboard" and "Sign out"
     each broke in half and the header became three ragged lines (founder, 04/09). */
  /* Two tidy rows beat one clipped one: the logo and the language sit together, and the two
     ways out line up under them at full size. Nothing is cut off the edge, nothing wraps
     inside a button. */
  .top{flex-wrap:wrap;row-gap:10px}
  .top > *{flex:0 0 auto}
  .mark{order:1}
  .top nav{order:2;margin-inline-start:auto}
  /* a deliberate line break after the language chips, so the two ways out share one tidy row
     of their own instead of one of them dangling alone */
  .top::after{content:"";order:2;flex-basis:100%;height:0}
  .top .signout,.top .back,.top .roomlink,.top .mybtn{order:3;white-space:nowrap}
  /* whichever way out a room offers, the group hangs on the right of its own row */
  .top .roomlink,.top .back,.top .mybtn,.top .signout{margin-inline-start:auto}
  .top .roomlink ~ .signout,.top .back ~ .signout,.top .mybtn ~ .signout{margin-inline-start:10px}
}

/* ---------- the hand, not the mouse (04/09) ----------
   Half of what a member touches in these rooms was under 40px tall — the sign-out, the back
   link, the language chips, the switches on a profile. A control you can see is not a control
   you can press. */
.signout,.back,.roomlink{display:inline-flex;align-items:center;justify-content:center;
  min-height:38px;border-radius:10px}
@media(pointer:coarse){
  .signout,.back,.roomlink,.namebtn{min-height:44px}
  .top nav button{min-height:44px;min-width:44px;font-size:.76rem}
  /* the box is 22px; the ROW is the target — a switch you press with a thumb, not a fingertip */
  label:has(> input[type=checkbox]),label:has(> input[type=radio]),.o-pub{min-height:44px;
    display:flex;align-items:center;gap:12px}
  label input[type=checkbox],label input[type=radio]{width:24px;height:24px;flex:0 0 auto}
  input[type=file]{min-height:44px}
}
/* A label of nine pixels is decoration, not writing. Nothing that carries meaning goes below
   twelve on a phone. */
@media(max-width:560px){
  .mark span,.eyebrow,.rows dt,.stat .k,.k{font-size:.75rem!important;letter-spacing:.14em}
  .sub,.note,.hint,.rows dd small{font-size:.82rem}
}

/* Shared by the dashboard, the studio and the admin rail. Defined here, in the base, so
   a page that forgets to import a second stylesheet cannot lose it. */
.signout{
  background:none;border:0;color:var(--faint);font-family:inherit;font-size:.8rem;
  font-weight:700;cursor:pointer;padding:6px 10px;border-radius:8px;
}
.signout:hover{color:var(--bad)}

/* 8/31 — the Google button was hidden by JS (`el.hidden = true`) and stayed on screen:
   .btn and .rule both set display:flex, which outranks the user-agent [hidden] rule, so a
   member clicked a provider that is not enabled and landed on Supabase's raw JSON error.
   The class fix, not the one button: on this page hidden means hidden. */
[hidden]{display:none!important}

/* The three kinds of account (client, 31/08). Deliberately radio buttons and not a select:
   the difference between them matters enough to be read, not opened. */
.roles{border:0;margin:0 0 22px;padding:0;display:flex;flex-direction:column;gap:8px}
.roles legend{padding:0;margin-bottom:11px;font-size:.72rem;font-weight:800;
  letter-spacing:.12em;text-transform:uppercase;color:var(--faint,rgba(226,238,242,.5))}
/* This page styles bare `label` and `input`, which is right for the email field and wrong
   for a radio row: the label's uppercase 11px and the input's width:100% both land here and
   the radio grew to the full width, shoving the text out of the card. Undone explicitly
   rather than by raising specificity elsewhere. */
.role{display:flex;align-items:flex-start;gap:12px;padding:13px 15px;cursor:pointer;
  border:1px solid var(--hair);border-radius:12px;margin-bottom:0;
  font-size:1rem;letter-spacing:0;text-transform:none;color:var(--ink);font-weight:600;
  transition:border-color .18s,background .18s}
.role:hover{border-color:rgba(226,238,242,.3)}
.role input{width:auto;flex:0 0 auto;margin:3px 0 0;padding:0;background:none;border:0;
  border-radius:0;accent-color:var(--gold,#d9b26a)}
.role span{display:flex;flex-direction:column;gap:2px;min-width:0}
.role b{font-size:.95rem;font-weight:800}
.role small{font-size:.8rem;opacity:.62;line-height:1.35}
/* NOT :has(input:checked) -- it was written that way first and the browser did not
   re-evaluate it when the choice changed, so the first option stayed highlighted while a
   different one was actually selected. A class set on change is boring and correct. */
.role.is-picked{border-color:var(--gold,#d9b26a);
  background:color-mix(in srgb,var(--gold,#d9b26a) 9%,transparent)}
.role input:focus-visible{outline:2px solid var(--gold,#d9b26a);outline-offset:3px}

/* Sign in, or join — two acts, not one (31/08). */
.modes{display:flex;gap:4px;padding:4px;margin-bottom:20px;border-radius:12px;
  border:1px solid var(--hair);background:rgba(16,23,37,.35)}
.mode{flex:1;padding:10px 12px;border:0;border-radius:9px;background:transparent;
  color:var(--faint);font:inherit;font-size:.86rem;font-weight:800;cursor:pointer;
  transition:background .18s,color .18s}
.mode:hover{color:var(--ink)}
.mode.is-on{background:rgba(226,238,242,.09);color:var(--ink)}
.mode:focus-visible{outline:2px solid var(--gold);outline-offset:2px}

/* audit 03 H3 / 01: a finger needs 44px; on coarse pointers the language buttons grow, on a mouse they keep their size */
@media(pointer:coarse){ .top nav button{min-height:44px;min-width:44px} }


/* ---------- the type floor (04/09) ----------
   A phone is held at arm's length and often in the sun. Eyebrows, badges and field labels sat
   at nine and ten pixels across these rooms — decoration, not writing. Nothing that carries
   meaning goes below twelve on a small screen; the letter-spacing comes down with it so the
   words stay one shape. */
@media(max-width:560px){
  .eyebrow,.lbl,.k,.pb,.w-badge,.onair,.playlist h2,.playlist li time,
  .mark span span,.panel h2,.block > h2,.owner label,.roles legend,.session .lbl,
  .earn .k,.top nav button,.tiers .you,label > span:first-child,
  form label,label[for]{
    font-size:.78rem;letter-spacing:.1em}
}
