/* Tectomight's look for the booking pages (task 9117, 12 Nov). Loaded only on the Tectomight door (meet.tectomight.com,
   <html class="tecto">), over base.css and public.css: the same layout, recoloured to the app's default skin Neon at
   night (ios/Phone/TCSkins.swift: shell, panel, raised, text, magenta accent, cyan accent2; Ink.onAccent on the accent),
   with the app's glass cards. Motion rides CSS scroll and view timelines only, never a scroll handler. */
html.tecto {
  color-scheme: dark;
  --t-shell: #0b0614; --t-panel: #150c22; --t-raised: #20122f; --t-text: #fbefff;
  --t-accent: #d946ef; --t-accent2: #22d3ee; --t-on-accent: rgba(0, 0, 0, .85);
  --t-dim: rgba(251, 239, 255, .62); --t-faint: rgba(251, 239, 255, .38); --t-line: rgba(217, 70, 239, .16);
  --ink: var(--t-text); --ink-2: rgba(251, 239, 255, .84); --muted: var(--t-dim); --line: var(--t-line); --line-2: rgba(255, 255, 255, .06);
  --bg: var(--t-shell); --surface: var(--t-panel); --navy: var(--t-raised); --navy-2: #2a1840;
  --sky: var(--t-accent); --sky-bright: #e879f9; --sky-2: rgba(217, 70, 239, .13); --sky-3: rgba(217, 70, 239, .32); --ice: var(--t-accent2);
  --ok: #4dd48c; --warn: #f9bf4d; --bad: #ff4540;
  --shadow: 0 1px 2px rgba(0, 0, 0, .3), 0 10px 30px -14px rgba(0, 0, 0, .6);
  --shadow-lg: 0 2px 4px rgba(0, 0, 0, .25), 0 30px 70px -34px rgba(0, 0, 0, .8);
  /* the hero's cells (home.js reads these) */
  --cell-idle: 251, 239, 255; --cell-lit: 217, 70, 239; --cell-lit2: 34, 211, 238; --cell-core: 253, 244, 255;
  /* the glass */
  --gloss: linear-gradient(180deg, rgba(255, 255, 255, .075), rgba(255, 255, 255, .015) 42%, rgba(255, 255, 255, 0));
  --rim: linear-gradient(160deg, rgba(255, 255, 255, .42), rgba(217, 70, 239, .5) 30%, rgba(255, 255, 255, .07) 62%, rgba(255, 255, 255, .05));
  --glow: 0 28px 70px -36px rgba(217, 70, 239, .42), 0 2px 6px rgba(0, 0, 0, .35);
  background: var(--t-shell);
}
html.tecto body { background: transparent; color: var(--ink); }
html.tecto a { color: var(--t-accent); }

/* the world behind every page: the neon night of the app; scrolling down brings up a cyan dawn (CSS timeline) */
html.tecto body::before, html.tecto body::after { content: ""; position: fixed; inset: 0; z-index: -1; pointer-events: none; }
html.tecto body::before {
  background: radial-gradient(1100px 620px at 78% -12%, rgba(217, 70, 239, .16), transparent 62%),
              radial-gradient(900px 560px at 6% 4%, rgba(34, 211, 238, .08), transparent 64%), var(--t-shell);
}
html.tecto body::after {
  opacity: 0;
  background: radial-gradient(1000px 640px at 50% 118%, rgba(34, 211, 238, .2), transparent 70%),
              radial-gradient(760px 520px at 100% 100%, rgba(217, 70, 239, .12), transparent 70%);
}

/* brand */
html.tecto .brand { color: var(--t-text); }
html.tecto .brand img { border-radius: 9px; width: 32px; height: 32px; filter: drop-shadow(0 4px 10px rgba(217, 70, 239, .35)); }
html.tecto .book-top .brand { color: var(--t-text); }

/* ---------- profile page ---------- */
html.tecto .hero { background: transparent; color: var(--t-text); }
html.tecto .hero canvas { -webkit-mask-image: linear-gradient(#000 62%, transparent); mask-image: linear-gradient(#000 62%, transparent); }
html.tecto .hero .top .brand { color: var(--t-text); }
html.tecto .host .avatar.initials {
  width: 96px; height: 96px; border-radius: 50%; margin: 0 auto 18px; display: grid; place-items: center;
  background: linear-gradient(150deg, #e879f9 0%, #c084fc 46%, #7dd3fc 100%);
  color: var(--t-on-accent); font: 800 34px/1 "Bricolage Grotesque", var(--font); letter-spacing: -.02em;
  box-shadow: 0 0 0 6px rgba(217, 70, 239, .1), 0 0 0 7px rgba(255, 255, 255, .06), 0 24px 54px -18px rgba(217, 70, 239, .6),
              inset 0 2px 0 rgba(255, 255, 255, .35);
}
html.tecto .host h1 { color: var(--t-text); }
html.tecto .host .role { color: var(--t-accent); }
html.tecto .host p { color: var(--t-dim); }

/* glass cards: panel fill, a top gloss, a rim from white to magenta to line, a soft magenta glow, the meeting's colour on top */
html.tecto .ev-card, html.tecto .empty-card, html.tecto .trust div, html.tecto .card, html.tecto .summary, html.tecto .he-hero-in {
  border: 1px solid transparent; box-shadow: var(--glow);
  background: var(--gloss) padding-box, linear-gradient(var(--t-panel), var(--t-panel)) padding-box, var(--rim) border-box;
}
html.tecto .ev-card { border-radius: 20px; border-top-width: 1px; color: var(--t-text); isolation: isolate; }
html.tecto .ev-card::before {  /* the meeting's own colour bar */
  content: ""; position: absolute; left: 0; right: 0; top: 0; height: 5px; background: var(--c, var(--t-accent));
  box-shadow: 0 0 22px 2px color-mix(in srgb, var(--c, var(--t-accent)) 55%, transparent);
}
html.tecto .ev-card::after {  /* the gloss band, crossing the glass once as the card arrives and again on hover */
  content: ""; position: absolute; inset: -40% -60%; z-index: -1; pointer-events: none;
  background: linear-gradient(105deg, transparent 43%, rgba(255, 255, 255, .09) 50%, transparent 57%);
  transform: translateX(-60%); animation: t-gloss 2.2s cubic-bezier(.16, 1, .3, 1) .35s both;
}
html.tecto .ev-card:hover::after { animation: t-gloss 1.1s cubic-bezier(.16, 1, .3, 1) both; }
@keyframes t-gloss { to { transform: translateX(60%); } }
html.tecto .ev-card:hover { box-shadow: 0 36px 80px -34px rgba(217, 70, 239, .55), 0 2px 6px rgba(0, 0, 0, .35); }
html.tecto .ev-card h2 { color: var(--t-text); }
html.tecto .ev-card p { color: var(--t-dim); }
html.tecto .ev-card .go { color: var(--t-accent); }
html.tecto .chip { background: rgba(255, 255, 255, .06); color: var(--ink-2); box-shadow: inset 0 0 0 1px var(--t-line); }
html.tecto .chip .icon { color: var(--t-accent2); }
html.tecto .empty-card { color: var(--t-dim); border-radius: 20px; }
html.tecto .trust div { border-radius: 18px; }
html.tecto .trust b { color: var(--t-text); }
html.tecto .trust b .icon { color: var(--t-accent); }
html.tecto .trust span { color: var(--t-dim); }
html.tecto footer.foot { color: var(--t-faint); }
html.tecto footer.foot a { color: var(--t-accent2); }

/* ---------- booking page ---------- */
html.tecto .book-body, html.tecto[lang="he"] .book-body { background: transparent; }
html.tecto .card { border-radius: 22px; }
html.tecto .info { border-color: var(--t-line); }
html.tecto .info .back { background: var(--t-raised); border-color: var(--t-line); color: var(--t-accent); }
html.tecto .info .back:hover { background: #2a1840; }
html.tecto .host-row .initials {
  width: 36px; height: 36px; border-radius: 50%; display: grid; place-items: center; flex: none; font-size: 14px; font-weight: 800;
  background: linear-gradient(150deg, #e879f9, #c084fc 46%, #7dd3fc); color: var(--t-on-accent);
}
html.tecto .stripe { box-shadow: 0 0 22px 2px color-mix(in srgb, var(--c, var(--t-accent)) 50%, transparent); }
html.tecto .meta-list div { color: var(--ink-2); }
html.tecto .meta-list .icon { color: var(--t-accent2); }
html.tecto .desc { color: var(--ink-2); border-color: var(--t-line); }
html.tecto .round { background: var(--sky-2); color: var(--t-accent); }
html.tecto .round:disabled { background: transparent; color: var(--t-faint); }
html.tecto .round:not(:disabled):hover { background: var(--sky-3); }
html.tecto .grid7 .dow { color: var(--t-faint); }
html.tecto .day { color: rgba(255, 255, 255, .26); }
html.tecto .day.avail { background: var(--sky-2); color: #f0abfc; box-shadow: inset 0 0 0 1px rgba(217, 70, 239, .22); }
html.tecto .day.avail:hover { background: var(--sky-3); color: #fff; }
html.tecto .day.sel { background: var(--t-accent) !important; color: var(--t-on-accent) !important; box-shadow: 0 8px 22px -8px rgba(217, 70, 239, .8); }
html.tecto .tz-select select { color: var(--ink-2); }
html.tecto .tz-select select option { background: var(--t-panel); color: var(--t-text); }
html.tecto .h24 { border-color: var(--t-line); }
html.tecto .h24 button { color: var(--t-dim); }
html.tecto .h24 button.on { background: var(--t-accent); color: var(--t-on-accent); }
html.tecto .times h3 { color: var(--ink-2); }
html.tecto .slot { background: rgba(255, 255, 255, .03); border-color: rgba(217, 70, 239, .38); color: #f0abfc; }
html.tecto .slot:hover { border-color: var(--t-accent); background: var(--sky-2); }
/* a day's times all show, two or three across on a wide screen: no list scrolling inside the card, so no time
   sits hidden under the edge of the card */
html.tecto .times-list { max-height: none; overflow: visible; }
@media (min-width: 901px) {
  html.tecto .times-list { grid-template-columns: repeat(auto-fill, minmax(96px, 1fr)); }
  html.tecto .slot-row.open { grid-column: 1 / -1; }
}
html.tecto .slot-row.open .slot { background: var(--t-raised); border-color: rgba(255, 255, 255, .16); color: var(--t-text); }
html.tecto .btn { background: var(--t-accent); color: var(--t-on-accent); box-shadow: 0 10px 24px -14px rgba(217, 70, 239, .9); }
html.tecto .btn:hover { background: #e879f9; }
html.tecto .btn.ghost { background: transparent; color: var(--t-text); border-color: rgba(255, 255, 255, .16); box-shadow: none; }
html.tecto .btn.ghost:hover { background: rgba(255, 255, 255, .06); }
html.tecto .btn.navy { background: var(--t-raised); color: var(--t-text); }
html.tecto .btn.danger { background: var(--bad); color: #fff; }
html.tecto .guest-toggle { background: transparent; border-color: var(--t-accent); color: var(--t-accent); }
html.tecto .field > span { color: var(--t-text); }
html.tecto .field small, html.tecto .legal { color: var(--t-dim); }
html.tecto .input, html.tecto .field input, html.tecto .field select, html.tecto .field textarea {
  background: var(--t-raised); border-color: rgba(255, 255, 255, .12); color: var(--t-text);
}
html.tecto .field input::placeholder, html.tecto .field textarea::placeholder { color: var(--t-faint); }
html.tecto .input:focus, html.tecto .field input:focus, html.tecto .field select:focus, html.tecto .field textarea:focus {
  border-color: var(--t-accent); box-shadow: 0 0 0 4px rgba(217, 70, 239, .18);
}
html.tecto .error-msg { color: #ff8a80; }
html.tecto .notice { background: var(--sky-2); border-color: var(--sky-3); color: var(--t-text); }
html.tecto .notice.bad { background: rgba(255, 69, 64, .12); border-color: rgba(255, 69, 64, .4); color: #ffb4ae; }
html.tecto .done .tick { background: rgba(77, 212, 140, .14); color: var(--ok); box-shadow: 0 0 0 1px rgba(77, 212, 140, .3); }
html.tecto .done .tick.gray { background: rgba(255, 255, 255, .06); color: var(--t-dim); box-shadow: none; }
html.tecto .done h1, html.tecto .done > .when-words { color: var(--t-text); }
html.tecto .done > p { color: var(--t-dim); }
html.tecto .summary { border-radius: 18px; }
html.tecto .manage-links { border-color: var(--t-line); }
html.tecto .spinner { border-color: var(--sky-3); border-top-color: var(--t-accent); }
html.tecto .toast { background: var(--t-raised); color: var(--t-text); box-shadow: 0 0 0 1px var(--t-line), var(--shadow-lg); }
html.tecto .toast.bad { background: #5a1614; }

/* the Hebrew invite's world (task 9337) in Neon: magenta cells on the night, the greeting on dark glass */
html.tecto .world-night { background: radial-gradient(1200px 620px at 75% -10%, rgba(217, 70, 239, .18), transparent 60%), var(--t-shell); }
html.tecto .world-dawn { background: radial-gradient(closest-side, rgba(34, 211, 238, .32), rgba(217, 70, 239, .12) 52%, rgba(217, 70, 239, 0) 100%); }
html.tecto .world-cells {
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='46' height='46'%3E%3Crect x='6' y='6' width='34' height='34' rx='8' fill='%23fbefff' fill-opacity='.05'/%3E%3C/svg%3E");
}
html.tecto .world-cells i { background: rgba(217, 70, 239, .5); }
html.tecto .he-hero { color: var(--t-text); }
html.tecto .he-hero-in { border-radius: 28px; }
html.tecto .he-pill { background: var(--t-raised); color: var(--t-accent2); border-color: var(--t-line); }
html.tecto .he-hi, html.tecto .he-cue { color: var(--t-accent2); }
html.tecto .he-sub { color: var(--ink-2); }
html.tecto[lang="he"]:not(.sunrise) .book-top .brand { background: var(--t-panel); border-color: var(--t-line); color: var(--t-text); }
html.tecto[lang="he"] .info { border-color: var(--t-line); }
html.tecto[lang="he"] .tz-row.il .icon { color: var(--t-accent); }

/* scrolling: the hero's field steps back, a cyan dawn rises behind the page, and every glass card arrives in depth and
   settles flat at the centre of the screen. CSS timelines only, so nothing jumps or shakes while the page scrolls. */
@supports (animation-timeline: scroll()) {
  @media (prefers-reduced-motion: no-preference) {
    html.tecto .hero canvas { transform-origin: 50% 30%; animation: t-field-away linear both; animation-timeline: scroll(root); animation-range: 0 520px; }
    html.tecto body::after { animation: t-dawn linear both; animation-timeline: scroll(root); }
    html.tecto .ev-card, html.tecto .trust div {
      transform-origin: 50% 100%; animation: t-depth linear both; animation-timeline: view(); animation-range: entry 0% cover 30%;
    }
    /* the last row of the page never travels far up the screen: it lies flat the moment it is whole on screen */
    html.tecto .trust div { animation-range: entry 0% entry 100%; }
  }
}
@keyframes t-field-away { to { opacity: .2; transform: scale(1.12); } }
@keyframes t-dawn { to { opacity: 1; } }
@keyframes t-depth { from { transform: perspective(1100px) rotateX(24deg) scale(.9); } to { transform: none; } }  /* glass stays opaque */
