/* Digigami landing (v4): product-first hero with the interactive demo. Loaded only by index.html.
   The demo is its own opaque window (data-art="off"), so the art view's line passes behind it. */

.try-hero { padding: var(--space-lg) var(--space-md) var(--space-xl); }
.try-inner { max-width: 1320px; margin: 0 auto; display: grid; grid-template-columns: minmax(0, 1fr); gap: var(--space-lg); align-items: center; }
.try-inner > * { min-width: 0; }   /* wide demo content (the calendar) must never widen the column past the screen */
.demo section { padding: 0; }      /* the site's global section padding is for page sections, not the demo's panels */
.try-copy { max-width: 34rem; }
.try-title { font-size: clamp(2.1rem, 5.4vw, 3.9rem); margin-bottom: 0; }
.try-copy .hero-subtitle { margin: var(--space-md) 0 var(--space-lg); }
.try-copy .hero-actions { flex-direction: row; flex-wrap: wrap; }
.try-copy .hero-actions .btn { width: auto; }
.try-copy .crease { margin-left: 0; }
@media (min-width: 980px) {
    .try-inner { grid-template-columns: minmax(0, 0.85fr) minmax(0, 1.15fr); gap: var(--space-xl); }
    .try-hero { padding-top: var(--space-xl); }
}

/* ---------- the demo window ---------- */
.demo { position: relative; color: #e8e8f2; }
.demo-window {
    background: #0e0e14; border: 1px solid rgba(155, 109, 214, 0.35); border-radius: 18px; overflow: hidden;
    box-shadow: 0 30px 60px rgba(5, 5, 8, 0.45), 0 0 0 1px rgba(94, 213, 213, 0.08) inset;
}
.demo-titlebar { display: flex; align-items: center; gap: 0.75rem; padding: 0.6rem 0.9rem; background: #16161f; border-bottom: 1px solid #262632; font-size: 0.82rem; }
.demo-dots { display: inline-flex; gap: 6px; }
.demo-dots i { width: 10px; height: 10px; border-radius: 50%; background: #3a3a4a; display: block; }
.demo-dots i:nth-child(1) { background: var(--coral); } .demo-dots i:nth-child(2) { background: var(--yellow); } .demo-dots i:nth-child(3) { background: var(--green); }
.demo-title { color: #b8b8cc; }
.demo-chip { margin-left: auto; font-family: var(--font-mono); font-size: 0.7rem; text-transform: uppercase; letter-spacing: 0.06em; color: var(--green); border: 1px solid rgba(91, 214, 162, 0.5); border-radius: 100px; padding: 0.15rem 0.55rem; white-space: nowrap; }

.demo-tabs { display: flex; gap: 2px; padding: 0.4rem 0.5rem 0; background: #121219; overflow-x: auto; scrollbar-width: none; }
.demo-tabs::-webkit-scrollbar { display: none; }
.demo-tabs [role="tab"] {
    flex: 0 0 auto; font: 500 0.88rem var(--font-body); color: #a8a8bc; background: transparent; border: 1px solid transparent;
    border-bottom: 0; border-radius: 10px 10px 0 0; padding: 0.55rem 0.95rem; min-height: 40px; cursor: pointer; position: relative;
}
.demo-tabs [role="tab"][aria-selected="true"] { color: #fff; background: #1b1b26; border-color: #2c2c3a; }
.demo-tabs [role="tab"]:focus-visible { outline: 2px solid var(--cyan); outline-offset: -2px; }
.demo-tabs [role="tab"].is-done::after { content: ''; position: absolute; top: 8px; right: 6px; width: 6px; height: 6px; border-radius: 50%; background: var(--green); }
.demo-tabs [role="tab"].is-muted { color: #6e6e82; text-decoration: line-through; text-decoration-color: rgba(242, 141, 125, 0.7); }

.demo-body { position: relative; background: #1b1b26; padding: 1.1rem 1.1rem 1.3rem; min-height: 300px; display: grid; gap: 1rem; align-content: start; }
.demo-body > * { min-width: 0; }
.demo-panel { font-size: 0.95rem; line-height: 1.55; }
.demo-panel[hidden] { display: none; }
.muted { color: #9a9ab0; }
.mail-head { margin-bottom: 0.3rem; }
.mail-msg { background: #23232f; border-radius: 10px; padding: 0.7rem 0.85rem; margin: 0 0 0.8rem; }
.demo-label { display: block; font-size: 0.78rem; color: #9a9ab0; margin-bottom: 0.3rem; }
.mail-reply { min-height: 74px; background: #121219; border: 1px solid #30303e; border-radius: 10px; padding: 0.65rem 0.8rem; color: #f0f0f8; }
.mail-reply:empty::before { content: attr(data-empty); color: #6e6e82; }
.mail-reply:focus-visible { outline: 2px solid var(--cyan); outline-offset: 1px; }
.demo-row { display: flex; align-items: center; gap: 0.75rem; margin-top: 0.6rem; flex-wrap: wrap; }
.demo-btn { font: 600 0.85rem var(--font-body); color: #0e0e14; background: #d8d8e6; border: 0; border-radius: 8px; padding: 0.45rem 0.9rem; min-height: 36px; cursor: pointer; }
.demo-note, .demo-small { font-size: 0.8rem; color: #9a9ab0; }
.demo-small { margin-top: 0.5rem; }

.cal { display: grid; gap: 4px; font-size: 0.82rem; }
.cal-row { display: grid; grid-template-columns: repeat(5, minmax(0, 1fr)); gap: 4px; }
.cal-head span { color: #9a9ab0; text-align: center; padding: 0.2rem 0; }
.cal-row:not(.cal-head) span { min-height: 92px; background: #23232f; border-radius: 8px; padding: 0.35rem; display: flex; flex-direction: column; gap: 4px; }
.ev { font-weight: 500; font-size: 0.76rem; background: rgba(93, 165, 213, 0.22); border-left: 3px solid var(--blue); border-radius: 4px; padding: 0.25rem 0.35rem; }
.ev-me { background: rgba(243, 224, 110, 0.18); border-left-color: var(--yellow); }
.ev-new { background: rgba(91, 214, 162, 0.22); border-left-color: var(--green); }
.free { font-style: normal; font-size: 0.74rem; color: #8a8aa0; border: 1px dashed #3a3a4a; border-radius: 4px; padding: 0.25rem 0.35rem; }

.url-bar { font-family: var(--font-mono); font-size: 0.76rem; color: #9a9ab0; background: #121219; border-radius: 100px; padding: 0.35rem 0.8rem; margin-bottom: 0.8rem; }
.mini-form { display: grid; gap: 0.55rem; max-width: 26rem; }
.mini-form label { display: grid; gap: 0.2rem; font-size: 0.8rem; color: #b0b0c4; }
.mini-form input { font: 0.92rem var(--font-body); color: #f0f0f8; background: #121219; border: 1px solid #30303e; border-radius: 8px; padding: 0.45rem 0.6rem; min-height: 36px; }

.doc-title { font-family: var(--font-display); font-size: 1.05rem; margin: 0 0 0.6rem; }
.doc-table { border-collapse: collapse; min-width: 15rem; }
.doc-table th, .doc-table td { text-align: left; padding: 0.35rem 0.8rem 0.35rem 0; border-bottom: 1px solid #30303e; font-weight: 400; }
.doc-total th, .doc-total td { font-weight: 700; }

.set-stat { font-size: 1rem; margin-bottom: 0.7rem; }
.set-num { font-family: var(--font-display); font-size: 1.6rem; color: var(--coral); margin-right: 0.3rem; }
.set-row { display: flex; align-items: center; justify-content: space-between; gap: 1rem; background: #23232f; border-radius: 10px; padding: 0.6rem 0.8rem; }
.demo-switch { padding: 0; background: none; border: 0; cursor: pointer; }

/* ---------- the companion ---------- */
.dg { display: flex; align-items: flex-end; gap: 0.6rem; justify-self: end; max-width: 23rem; }
.dg[hidden] { display: none; }
.dg-avatar { width: 44px; height: 44px; flex: 0 0 44px; border-radius: 50%; background: #0e0e14; padding: 4px; box-shadow: 0 0 0 2px rgba(155, 109, 214, 0.6), 0 0 18px rgba(94, 213, 213, 0.35); }
.demo.demo-ready .dg:not([hidden]) .dg-avatar { animation: dgBob 3.2s ease-in-out infinite; }
@keyframes dgBob { 50% { transform: translateY(-4px); } }
.dg-bubble { background: #f4f4fb; color: #14141c; border-radius: 14px 14px 4px 14px; padding: 0.75rem 0.85rem; box-shadow: 0 10px 24px rgba(5, 5, 8, 0.4); order: -1; }
.dg-says { margin: 0 0 0.6rem; font-size: 0.92rem; line-height: 1.45; }
.dg-actions { display: flex; flex-wrap: wrap; gap: 0.4rem; }
.dg-btn { font: 600 0.82rem var(--font-body); border-radius: 100px; padding: 0.4rem 0.8rem; min-height: 36px; cursor: pointer; border: 1px solid #c8c8d8; background: #fff; color: #14141c; }
.dg-btn.dg-yes { background: #14141c; color: #fff; border-color: #14141c; }
.dg-btn:focus-visible { outline: 2px solid var(--purple); outline-offset: 2px; }
.dg.dg-preview .dg-bubble { border: 2px dashed #b8a200; }
.dg.dg-preview [data-answer="later"], .dg.dg-preview [data-answer="never"] { display: none; }
.dg.dg-preview .dg-yes::after { content: ' (close)'; font-weight: 400; }
.dg-quiet { justify-self: end; font-size: 0.84rem; color: #b8b8cc; background: #23232f; border-radius: 10px; padding: 0.5rem 0.75rem; max-width: 26rem; }
.dg-quiet[hidden] { display: none; }
.demo-link { font: inherit; font-size: 0.82rem; color: var(--cyan); background: none; border: 0; padding: 0.2rem 0; margin-left: 0.5rem; cursor: pointer; text-decoration: underline; text-underline-offset: 3px; }

/* ---------- consent ---------- */
.demo-consent { background: #121219; border-top: 1px solid #262632; padding: 0.8rem 1rem 0.9rem; display: grid; gap: 0.55rem; }
.consent-pick { border: 0; margin: 0; padding: 0; display: flex; flex-wrap: wrap; gap: 0.4rem; align-items: center; }
.consent-pick legend { font-size: 0.78rem; color: #9a9ab0; margin-bottom: 0.35rem; padding: 0; float: left; width: 100%; }
.cl { display: inline-flex; align-items: center; gap: 0.4rem; font: 500 0.8rem var(--font-body); color: #d0d0e0; background: #1b1b26; border: 1px solid #30303e; border-radius: 100px; padding: 0.35rem 0.75rem; min-height: 36px; cursor: pointer; }
.cl i { width: 9px; height: 9px; border-radius: 50%; display: block; }
.cl-full i { background: var(--green); } .cl-dim i { background: var(--yellow); } .cl-sus i { background: var(--coral); } .cl-emg i { background: var(--pink); }
.cl[aria-pressed="true"] { color: #fff; }
.cl-full[aria-pressed="true"] { border-color: var(--green); box-shadow: 0 0 0 1px var(--green) inset; }
.cl-dim[aria-pressed="true"] { border-color: var(--yellow); box-shadow: 0 0 0 1px var(--yellow) inset; }
.cl-sus[aria-pressed="true"] { border-color: var(--coral); box-shadow: 0 0 0 1px var(--coral) inset; }
.cl-emg[aria-pressed="true"] { border-color: var(--pink); box-shadow: 0 0 0 1px var(--pink) inset; }
.cl:focus-visible { outline: 2px solid var(--cyan); outline-offset: 2px; }
.consent-rule { font-size: 0.86rem; color: #c8c8dc; margin: 0; }
.demo[data-level="emergency"] .demo-window { border-color: var(--pink); }
.demo-log summary { cursor: pointer; min-height: 24px; font-size: 0.82rem; color: #b0b0c4; }
.demo-log ol { margin: 0.4rem 0 0.4rem 1.1rem; font-size: 0.82rem; color: #c8c8dc; display: grid; gap: 0.2rem; }
.log-count { color: #8a8aa0; }

/* ---------- your path (next steps after activation; all "Coming soon") ---------- */
.next-steps { padding: var(--space-xl) var(--space-md); }
.next-steps .section-title:focus { outline: none; }
.ns-lead { color: var(--text-secondary); max-width: 40rem; }
.ns-list { list-style: none; margin: var(--space-lg) 0 0; padding: 0; display: grid; gap: var(--space-md); }
@media (min-width: 900px) { .ns-list { grid-template-columns: repeat(4, minmax(0, 1fr)); } }
.ns-item { padding: var(--space-md) 0; border-top: 1px solid var(--line-strong); display: grid; gap: 0.45rem; align-content: start; }
.ns-num { font-family: var(--font-display); font-size: 1.6rem; color: var(--purple); line-height: 1; }
.ns-item h3 { font-family: var(--font-display); font-size: 1.15rem; margin: 0; }
.ns-item p { margin: 0; color: var(--text-secondary); }
.ns-item .status { justify-self: start; }
.ns-cta { font-weight: 600; text-underline-offset: 3px; }
.next-steps.is-arrived .ns-item { animation: nsIn 0.7s ease both; }
.next-steps.is-arrived .ns-item:nth-child(2) { animation-delay: 0.08s; } .next-steps.is-arrived .ns-item:nth-child(3) { animation-delay: 0.16s; }
.next-steps.is-arrived .ns-item:nth-child(4) { animation-delay: 0.24s; }
@keyframes nsIn { from { opacity: 0; } to { opacity: 1; } }
:root[data-motion="reduce"] .next-steps.is-arrived .ns-item { animation: none; }
:root[data-art-ready] .ns-item .status { background-color: #0a0a0f; }

/* ---------- scenes (mockup captions; each "Coming") ---------- */
.scenes { padding: var(--space-xl) var(--space-md); }
.scene-strip { list-style: none; margin: var(--space-lg) 0 0; padding: 0; display: grid; gap: var(--space-md); grid-template-columns: repeat(auto-fill, minmax(min(100%, 15rem), 1fr)); }
.scene { display: grid; gap: 0.45rem; align-content: start; }
.scene h3 { font-family: var(--font-display); font-size: 1.05rem; margin: 0; }
.scene p { margin: 0; color: var(--text-secondary); font-size: 0.95rem; }
.scene .status { justify-self: start; }
:root[data-art-ready] .scene .status { background-color: #0a0a0f; }
.scene-art { position: relative; height: 120px; border-radius: 14px; background: #0e0e14; border: 1px solid #2a2a38; overflow: hidden; }
.scene-art i, .scene-art b { position: absolute; display: block; }
/* The First Meeting: the mark's disc with eight nodes, some lit */
.art-meet i { left: 50%; top: 50%; width: 54px; height: 54px; margin: -27px 0 0 -27px; border-radius: 50%; border: 3px solid var(--purple); box-shadow: 0 0 16px rgba(94, 213, 213, 0.4); }
.art-meet b { left: 50%; top: 50%; width: 9px; height: 9px; margin: -4.5px 0 0 -4.5px; border-radius: 50%; background: #2a2a38; }
.art-meet b:nth-of-type(1) { transform: rotate(-90deg) translate(44px); background: var(--pink); }
.art-meet b:nth-of-type(2) { transform: rotate(-45deg) translate(44px); background: var(--coral); }
.art-meet b:nth-of-type(3) { transform: rotate(0deg) translate(44px); background: var(--orange); }
.art-meet b:nth-of-type(4) { transform: rotate(45deg) translate(44px); }
.art-meet b:nth-of-type(5) { transform: rotate(90deg) translate(44px); }
.art-meet b:nth-of-type(6) { transform: rotate(135deg) translate(44px); }
.art-meet b:nth-of-type(7) { transform: rotate(180deg) translate(44px); }
.art-meet b:nth-of-type(8) { transform: rotate(225deg) translate(44px); }
/* Stone: the disc, grey and still */
.art-stone i { left: 50%; top: 50%; width: 58px; height: 58px; margin: -29px 0 0 -29px; border-radius: 50%; background: #6b6b78; border: 3px solid #4a4a56; box-shadow: inset -8px -8px 0 rgba(0, 0, 0, 0.18); }
/* The larger self rises: a flat portal and a folded figure */
.art-rise i { left: 50%; bottom: 18px; width: 90px; height: 22px; margin-left: -45px; border-radius: 50%; border: 3px solid var(--purple); box-shadow: 0 0 14px rgba(94, 213, 213, 0.45); }
.art-rise b { left: 50%; bottom: 30px; width: 0; height: 0; margin-left: -18px; border-left: 18px solid transparent; border-right: 18px solid transparent; border-bottom: 64px solid var(--cyan); filter: drop-shadow(2px 0 0 #0a0a0f) drop-shadow(-2px 0 0 #0a0a0f); }
/* Rain where you are: thin streaks over the split */
.art-rain { background: linear-gradient(105deg, #0e0e14 58%, #f4f4fb 58%); }
.art-rain i { top: 0; width: 1px; height: 22px; background: rgba(160, 175, 205, 0.7); transform: rotate(8deg); }
.art-rain i:nth-child(1) { left: 14%; top: 18%; } .art-rain i:nth-child(2) { left: 30%; top: 52%; } .art-rain i:nth-child(3) { left: 46%; top: 26%; }
.art-rain i:nth-child(4) { left: 62%; top: 60%; } .art-rain i:nth-child(5) { left: 76%; top: 14%; } .art-rain i:nth-child(6) { left: 88%; top: 44%; }
/* Your key: a USB key */
.art-key i { left: 50%; top: 50%; width: 74px; height: 30px; margin: -15px 0 0 -46px; border-radius: 8px; background: var(--gradient-mystical); border: 2px solid #0a0a0f; }
.art-key b { left: 50%; top: 50%; width: 22px; height: 18px; margin: -9px 0 0 28px; background: #c8c8d8; border: 2px solid #0a0a0f; border-radius: 2px; }
/* Restored after loss: a circular arrow */
.art-restore i { left: 50%; top: 50%; width: 56px; height: 56px; margin: -28px 0 0 -28px; border-radius: 50%; border: 4px solid var(--green); border-right-color: transparent; }
.art-restore i::after { content: ''; position: absolute; right: -4px; top: 4px; border-left: 9px solid var(--green); border-top: 7px solid transparent; border-bottom: 7px solid transparent; transform: rotate(-30deg); }

/* ---------- the facts ---------- */
.try-facts { padding: var(--space-xl) var(--space-md); }
.try-facts-title { max-width: 40rem; }
.facts-grid { list-style: none; margin: var(--space-lg) 0 0; padding: 0; display: grid; gap: var(--space-md); }
@media (min-width: 820px) { .facts-grid { grid-template-columns: repeat(3, minmax(0, 1fr)); } }
.fact { padding: var(--space-md) 0; border-top: 1px solid var(--line-strong); display: grid; gap: 0.5rem; align-content: start; }
.fact h3 { font-family: var(--font-display); font-size: 1.25rem; margin: 0; }
.fact p { margin: 0; color: var(--text-secondary); }
.fact .status { justify-self: start; }
.try-more { margin-top: var(--space-lg); color: var(--text-secondary); }
.try-contact .contact-grid { margin-top: var(--space-md); }

/* Phones: the companion sits under the app, full width; the calendar scrolls inside its own window. */
@media (max-width: 640px) {
    .try-copy .hero-actions .btn { width: 100%; }
    .demo-body { padding: 0.9rem; min-height: 0; }
    .dg { justify-self: stretch; max-width: none; }
    .cal { overflow-x: auto; }
    .cal-row { min-width: 30rem; }
    .cal-row:not(.cal-head) span { min-height: 70px; }
}
@media (prefers-reduced-motion: reduce) { .demo .dg-avatar { animation: none !important; } }
:root[data-motion="reduce"] .demo .dg-avatar { animation: none !important; }

/* Art view: pieces with their own backgrounds keep their colours (same idea as .waitlist-box). */
:root[data-art-ready] .try-hero .hero-badge { background-color: #0a0a0f; }
:root[data-art-ready] .fact .status { background-color: #0a0a0f; }
