/* Ponderica — the Nov 12 redesign's additions: grid floor, section rail, real footage, the camera try-it,
   hold-for-yes, the control menu, pricing, FAQ, the ask bar and the small pages. Builds on site.css. */

/* ---------- Hero: a perspective grid floor under the orb ---------- */
.hero { overflow: hidden; }
.grid-floor {
  position: absolute; left: -30%; right: -30%; bottom: -8%; height: 58%; z-index: 0; pointer-events: none;
  background:
    linear-gradient(rgba(255, 31, 61, 0.34) 1px, transparent 1px) 0 0 / 100% 56px,
    linear-gradient(90deg, rgba(255, 31, 61, 0.34) 1px, transparent 1px) 0 0 / 56px 100%;
  transform: perspective(520px) rotateX(64deg); transform-origin: 50% 0;
  -webkit-mask-image: radial-gradient(ellipse 60% 78% at 50% 0%, #000 0%, transparent 72%);
  mask-image: radial-gradient(ellipse 60% 78% at 50% 0%, #000 0%, transparent 72%);
  animation: floorRun 3.2s linear infinite; opacity: 0.55;
}
@keyframes floorRun { to { background-position: 0 56px, 0 0; } }
.hero-copy, .mic-row, .scroll-cue { position: relative; z-index: 1; }
.platforms { display: inline-flex; gap: 10px; align-items: center; margin-top: 14px; font-size: 11px; letter-spacing: 0.2em; color: var(--muted); }
.platforms b { color: var(--text); font-weight: 600; }
.platforms i { width: 6px; height: 6px; background: var(--done); box-shadow: 0 0 8px var(--done); display: inline-block; }
.platforms i.soon { background: var(--warn); box-shadow: 0 0 8px var(--warn); }
.ask-hint { margin: 18px 0 0; font-size: 11px; letter-spacing: 0.2em; color: var(--faint); }
.ask-hint kbd { margin: 0 4px; }

/* ---------- Section rail (wide screens) ---------- */
.rail { position: fixed; left: 18px; top: 50%; transform: translateY(-50%); z-index: 22; display: none; flex-direction: column; gap: 14px; }
.rail a { display: flex; align-items: center; gap: 10px; text-decoration: none; color: var(--faint); font-size: 9.5px; letter-spacing: 0.22em; }
.rail a::before { content: ""; width: 14px; height: 1px; background: currentColor; transition: width 0.25s, background 0.25s, box-shadow 0.25s; }
.rail a span { opacity: 0; transform: translateX(-4px); transition: opacity 0.2s, transform 0.2s; }
.rail a:hover span, .rail a.on span { opacity: 1; transform: none; }
.rail a.on { color: var(--text); }
.rail a.on::before { width: 30px; background: var(--accent); box-shadow: 0 0 8px var(--accent); }
@media (min-width: 1500px) { .rail { display: flex; } }

/* ---------- Proof: the real overlay, recorded ---------- */
.proof { position: relative; max-width: none; padding-bottom: 90px; }
.proof::before {
  content: ""; position: absolute; inset: 0; z-index: -1; opacity: 0.5;
  background: url("../img/night-office.webp") center / cover no-repeat;
  -webkit-mask-image: linear-gradient(transparent, #000 22%, #000 70%, transparent);
  mask-image: linear-gradient(transparent, #000 22%, #000 70%, transparent);
}
.proof-inner { max-width: var(--max); margin: 0 auto; }
.screen {
  position: relative; margin: 0; background: #05020a; border: 1px solid rgba(255, 220, 226, 0.3);
  box-shadow: 0 0 0 1px rgba(255, 31, 61, 0.25), 0 40px 120px rgba(0, 0, 0, 0.75), 0 0 90px rgba(255, 31, 61, 0.22);
}
.screen video { display: block; width: 100%; height: auto; aspect-ratio: 16 / 10; background: #05020a; }
.screen .corner { position: absolute; width: 22px; height: 22px; border: 2px solid var(--accent); pointer-events: none; }
.screen .corner:nth-of-type(1) { left: -8px; top: -8px; border-right: 0; border-bottom: 0; }
.screen .corner:nth-of-type(2) { right: -8px; top: -8px; border-left: 0; border-bottom: 0; }
.screen .corner:nth-of-type(3) { left: -8px; bottom: -8px; border-right: 0; border-top: 0; }
.screen .corner:nth-of-type(4) { right: -8px; bottom: -8px; border-left: 0; border-top: 0; }
.screen-tag { position: absolute; left: 12px; bottom: 12px; padding: 4px 8px; background: rgba(5, 2, 10, 0.85); border: 1px solid var(--line); font-size: 10px; letter-spacing: 0.2em; color: var(--text); }
.screen-tag b { color: var(--accent); }
.beats { display: flex; flex-wrap: wrap; gap: 8px; align-items: center; margin-top: 18px; }
.beat { padding: 8px 14px; border: 1px solid var(--line); background: rgba(10, 3, 6, 0.7); color: var(--muted); font-size: 11px; letter-spacing: 0.18em; cursor: pointer; text-transform: uppercase; font-weight: 600; transition: color 0.2s, border-color 0.2s, box-shadow 0.2s; }
.beat:hover { color: var(--text); border-color: #fff; }
.beat.on { color: #fff; border-color: var(--accent); box-shadow: 0 0 14px rgba(255, 31, 61, 0.45), inset 0 0 12px rgba(255, 31, 61, 0.25); }
.beat:focus-visible, .seg button:focus-visible, .hold:focus-visible, .obj:focus-visible, .ask input:focus-visible { outline: 2px solid #fff; outline-offset: 3px; }
.fineprint { margin: 14px 0 0; font-size: 12.5px; color: var(--faint); max-width: 720px; }

/* ---------- Eyes: point at things ---------- */
.eyes-grid { display: grid; grid-template-columns: 1.7fr 1fr; gap: 18px; align-items: stretch; }
.lens { position: relative; margin: 0; overflow: hidden; border: 1px solid rgba(255, 31, 61, 0.75); background: #120a06; aspect-ratio: 1600 / 895; cursor: crosshair; }
.lens img { position: absolute; inset: -2%; width: 104%; height: 104%; object-fit: cover; filter: saturate(0.9) contrast(1.05); transition: transform 0.35s ease-out; }
.lens .layer { position: absolute; inset: -2%; transition: transform 0.35s ease-out; }
.lens::after { content: ""; position: absolute; inset: 0; pointer-events: none; background: repeating-linear-gradient(transparent 0 3px, rgba(0, 0, 0, 0.16) 3px 4px); }
.sweep { position: absolute; left: 0; right: 0; top: -20%; height: 18%; pointer-events: none; opacity: 0; background: linear-gradient(transparent, rgba(255, 31, 61, 0.38) 85%, rgba(255, 220, 226, 0.9)); }
.lens.scanning .sweep { animation: sweep 1.25s cubic-bezier(.4, 0, .6, 1) forwards; }
@keyframes sweep { 0% { top: -20%; opacity: 1; } 100% { top: 102%; opacity: 0.2; } }
.obj { position: absolute; border: 0; background: transparent; padding: 0; cursor: crosshair; color: inherit; }
.obj i { position: absolute; inset: 0; border: 1.5px solid transparent; transition: border-color 0.2s, box-shadow 0.2s, inset 0.3s cubic-bezier(.2, 1.4, .4, 1); }
.obj:hover i { border-color: rgba(255, 220, 226, 0.4); border-style: dashed; }
.obj em { position: absolute; left: -1.5px; bottom: 100%; padding: 2px 6px; background: var(--accent); color: #fff; font-style: normal; font-size: 10px; letter-spacing: 0.16em; font-weight: 600; white-space: nowrap; opacity: 0; transform: translateY(4px); transition: opacity 0.2s, transform 0.2s; }
.obj.on i { border-color: var(--accent); border-style: solid; box-shadow: 0 0 14px rgba(255, 31, 61, 0.7), inset 0 0 18px rgba(255, 31, 61, 0.22); animation: snap 0.4s cubic-bezier(.2, 1.5, .4, 1); }
.obj.on em { opacity: 1; transform: none; }
@keyframes snap { from { inset: -14px; opacity: 0.2; } to { inset: 0; opacity: 1; } }
.lens-tag { position: absolute; left: 10px; top: 10px; z-index: 2; padding: 3px 7px; background: rgba(5, 2, 10, 0.8); border: 1px solid var(--line); font-size: 9.5px; letter-spacing: 0.2em; color: var(--muted); }
.lens-live { position: absolute; right: 10px; top: 10px; z-index: 2; display: flex; align-items: center; gap: 6px; font-size: 9.5px; letter-spacing: 0.2em; color: var(--text); }
.lens-live::before { content: ""; width: 7px; height: 7px; border-radius: 50%; background: var(--accent); box-shadow: 0 0 8px var(--accent); animation: blinkDot 1.4s steps(2) infinite; }
@keyframes blinkDot { 50% { opacity: 0.25; } }
.eyes-side { display: flex; flex-direction: column; gap: 14px; }
.eyes-side .chips { display: flex; flex-direction: column; gap: 8px; }
.eyes-side .chip { text-align: left; }
.seen { min-height: 4.6em; margin: 0 !important; color: var(--text) !important; font-size: 15px !important; }
.seen-count { font-family: var(--title); font-size: 44px; font-weight: 700; line-height: 1; color: var(--text); }
.seen-count small { font-family: var(--ui); font-size: 11px; letter-spacing: 0.2em; color: var(--muted); margin-left: 8px; font-weight: 600; }

/* ---------- Hands: hold for yes ---------- */
.yes-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 18px; align-items: stretch; }
.folders { display: grid; grid-template-columns: 1fr 1fr; gap: 12px; margin-top: 14px; }
.folder { border: 1px solid var(--line); padding: 10px; min-height: 236px; background: rgba(5, 2, 10, 0.5); transition: border-color 0.3s, box-shadow 0.3s; }
.folder.target { border-color: var(--accent); box-shadow: inset 0 0 22px rgba(255, 31, 61, 0.18); }
.folder h4 { margin: 0 0 10px; font-size: 10.5px; letter-spacing: 0.2em; color: var(--muted); font-weight: 600; display: flex; justify-content: space-between; }
.folder h4 b { color: var(--text); }
.files { display: flex; flex-wrap: wrap; gap: 6px; align-content: flex-start; }
.file { padding: 4px 7px; border: 1px solid rgba(255, 220, 226, 0.3); font-size: 11px; color: var(--text); background: rgba(46, 10, 18, 0.55); animation: fileIn 0.35s cubic-bezier(.2, .8, .2, 1) backwards; }
@keyframes fileIn { from { opacity: 0; transform: translateY(8px) scale(0.92); } }
.ask-card { display: flex; flex-direction: column; gap: 14px; }
.ask-line { font-family: var(--title); font-weight: 700; font-size: clamp(22px, 2.6vw, 30px); line-height: 1.12; margin: 6px 0 0; color: var(--text); }
.yes-row { display: flex; gap: 18px; align-items: center; flex-wrap: wrap; margin-top: auto; }
.hold {
  --p: 0; position: relative; width: 132px; height: 132px; border-radius: 50%; border: 0; cursor: pointer; flex: none;
  background: radial-gradient(circle at 46% 40%, #2a0c13, #0b0306 70%); color: #fff; touch-action: none; user-select: none; -webkit-user-select: none;
  font-family: var(--title); font-weight: 800; font-size: 15px; letter-spacing: 0.14em; line-height: 1.2;
  box-shadow: 0 0 0 1px rgba(255, 220, 226, 0.25), 0 0 calc(18px + var(--p) * 46px) rgba(255, 31, 61, calc(0.25 + var(--p) * 0.6));
  transform: scale(calc(1 - var(--p) * 0.05)); transition: transform 0.1s;
}
.hold::before { content: ""; position: absolute; inset: -9px; border-radius: 50%; background: conic-gradient(var(--accent) calc(var(--p) * 360deg), rgba(255, 220, 226, 0.14) 0); -webkit-mask: radial-gradient(circle, transparent 66px, #000 67px); mask: radial-gradient(circle, transparent 66px, #000 67px); }
.hold small { display: block; font-family: var(--ui); font-size: 9px; letter-spacing: 0.2em; color: var(--muted); font-weight: 600; margin-top: 4px; }
.hold:disabled { opacity: 0.35; cursor: default; }
.yes-side { display: flex; flex-direction: column; gap: 10px; align-items: flex-start; }
.yes-status { margin: 0 !important; min-height: 3em; font-size: 14px !important; }
.yes-log { list-style: none; margin: 0; padding: 0; display: grid; gap: 5px; font-size: 11px; letter-spacing: 0.12em; color: var(--muted); }
.yes-log li::before { content: "› "; color: var(--accent); }
.yes-log li.undo { color: var(--warn); }

/* ---------- Control menu ---------- */
.menu-card { grid-column: 1 / -1; }
.menu-rows { display: grid; grid-template-columns: 1fr 1fr; gap: 6px 34px; margin-top: 16px; }
.menu-row { display: flex; align-items: center; justify-content: space-between; gap: 14px; padding: 10px 0; border-bottom: 1px solid rgba(255, 220, 226, 0.1); }
.menu-row b { display: block; color: var(--text); font-size: 15px; font-weight: 600; }
.menu-row span { display: block; color: var(--muted); font-size: 12.5px; }
.seg { display: inline-flex; flex: none; border: 1px solid var(--line); }
.seg button { border: 0; background: transparent; color: var(--muted); padding: 7px 10px; font-size: 10px; letter-spacing: 0.14em; font-weight: 600; cursor: pointer; text-transform: uppercase; }
.seg button + button { border-left: 1px solid var(--line); }
.seg button[aria-pressed="true"] { background: var(--accent); color: #fff; box-shadow: 0 0 14px rgba(255, 31, 61, 0.5); }
.seg button[data-v="ask"][aria-pressed="true"] { background: var(--warn); color: #1a1400; box-shadow: 0 0 14px rgba(242, 210, 75, 0.4); }
.seg button[data-v="off"][aria-pressed="true"] { background: #3a3136; color: #fff; box-shadow: none; }
.menu-note { margin-top: 14px !important; min-height: 1.5em; color: var(--text) !important; font-size: 14px !important; }

/* ---------- Pricing ---------- */
.price-grid { display: grid; grid-template-columns: 1.1fr 1fr 1fr; gap: 18px; align-items: stretch; }
.price { font-family: var(--title); font-weight: 800; font-size: clamp(54px, 7vw, 88px); line-height: 0.95; margin: 14px 0 6px; color: var(--text); text-shadow: 0 0 30px rgba(255, 31, 61, 0.5); }
.price small { font-family: var(--ui); font-size: 13px; letter-spacing: 0.18em; color: var(--muted); font-weight: 600; margin-left: 8px; text-shadow: none; }
.ticks { list-style: none; margin: 14px 0 20px; padding: 0; display: grid; gap: 9px; }
.ticks li { position: relative; padding-left: 22px; color: var(--muted); font-size: 14.5px; }
.ticks li::before { content: ""; position: absolute; left: 0; top: 0.5em; width: 8px; height: 8px; background: var(--accent); box-shadow: 0 0 8px var(--accent); }
.ticks b { color: var(--text); }
.spec { display: grid; grid-template-columns: auto 1fr; gap: 8px 16px; margin: 14px 0 0; font-size: 14px; }
.spec dt { color: var(--muted); font-size: 10.5px; letter-spacing: 0.2em; text-transform: uppercase; padding-top: 3px; }
.spec dd { margin: 0; color: var(--text); }
.tag-req, .tag-opt { display: inline-block; margin-left: 6px; padding: 1px 6px; font-size: 9.5px; letter-spacing: 0.16em; font-weight: 600; vertical-align: 2px; }
.tag-req { background: var(--accent); color: #fff; }
.tag-opt { border: 1px solid var(--line); color: var(--muted); }

/* ---------- FAQ ---------- */
.faq { max-width: 860px; display: grid; gap: 10px; }
.faq details { border: 1px solid var(--line); background: var(--panel); transition: border-color 0.2s, box-shadow 0.2s; }
.faq details[open] { border-color: var(--accent); box-shadow: 0 0 22px rgba(255, 31, 61, 0.18); }
.faq summary { cursor: pointer; padding: 16px 48px 16px 18px; font-family: var(--title); font-weight: 700; font-size: 18px; list-style: none; position: relative; }
.faq summary::-webkit-details-marker { display: none; }
.faq summary::after { content: "+"; position: absolute; right: 18px; top: 50%; transform: translateY(-50%); color: var(--accent); font-size: 22px; font-weight: 400; transition: transform 0.2s; }
.faq details[open] summary::after { transform: translateY(-50%) rotate(45deg); }
.faq summary:focus-visible { outline: 2px solid #fff; outline-offset: 3px; }
.faq p { margin: 0; padding: 0 18px 18px; color: var(--muted); font-size: 15px; max-width: 70ch; }

/* ---------- The ask bar ---------- */
.ask { position: fixed; z-index: 30; left: 50%; bottom: 18px; transform: translateX(-50%); width: min(620px, calc(100vw - 220px)); transition: opacity 0.3s, transform 0.3s; }
.killed .ask { opacity: 0.35; pointer-events: none; }
.ask-panel { margin-bottom: 8px; padding: 14px 16px; background: rgba(8, 3, 6, 0.96); border: 1px solid var(--accent); box-shadow: 0 0 30px rgba(255, 31, 61, 0.3), 0 20px 60px rgba(0, 0, 0, 0.7); }
.ask-panel[hidden] { display: none; }
.ask-answer { margin: 0 0 12px; min-height: 3em; color: var(--text); font-size: 15px; line-height: 1.5; }
.ask-answer .pill { margin-right: 8px; }
.ask-chips { display: flex; flex-wrap: wrap; gap: 6px; }
.ask-chips button { border: 1px solid var(--line); background: transparent; color: var(--muted); padding: 5px 9px; font-size: 11px; cursor: pointer; letter-spacing: 0.04em; }
.ask-chips button:hover { color: #fff; border-color: #fff; }
.ask form { display: flex; align-items: center; gap: 10px; padding: 0 6px 0 14px; background: rgba(8, 3, 6, 0.92); border: 1px solid rgba(255, 220, 226, 0.45); outline: 1px solid rgba(255, 220, 226, 0.14); outline-offset: 2px; backdrop-filter: blur(10px); -webkit-backdrop-filter: blur(10px); box-shadow: 0 10px 40px rgba(0, 0, 0, 0.6); transition: border-color 0.2s, box-shadow 0.2s; }
.ask form:focus-within { border-color: var(--accent); box-shadow: 0 0 26px rgba(255, 31, 61, 0.4), 0 10px 40px rgba(0, 0, 0, 0.6); }
.ask form > span { color: var(--accent); font-family: var(--title); font-weight: 700; }
.ask input { flex: 1; min-width: 0; background: transparent; border: 0; padding: 13px 0; font-size: 15px; color: var(--text); outline: 0; }
.ask input::placeholder { color: var(--faint); }
.ask kbd { color: var(--faint); border-color: rgba(255, 220, 226, 0.2); font-size: 11px; }
.ask-close { border: 0; background: transparent; color: var(--muted); cursor: pointer; font-size: 18px; line-height: 1; padding: 8px; float: right; margin: -10px -10px 0 0; }
.ask-close:hover { color: #fff; }
main { padding-bottom: 40px; }
.footer { padding-bottom: 96px; }
.footer a { color: var(--muted); }
.footer nav { display: flex; gap: 18px; flex-wrap: wrap; }

/* ---------- The small pages (privacy, terms) ---------- */
.doc { max-width: 760px; margin: 0 auto; padding: 120px var(--gutter) 80px; }
.doc h1 { font-family: var(--title); font-weight: 700; font-size: clamp(34px, 5vw, 54px); line-height: 1.03; margin: 10px 0 8px; }
.doc h2 { font-family: var(--title); font-weight: 700; font-size: 22px; margin: 38px 0 10px; }
.doc p, .doc li { color: var(--muted); font-size: 16px; }
.doc li { margin-bottom: 8px; }
.doc b { color: var(--text); }
.doc .draft { border: 1px solid var(--warn); color: var(--warn); padding: 10px 14px; font-size: 13px; letter-spacing: 0.04em; margin: 18px 0 0; }

/* ---------- Responsive ---------- */
@media (max-width: 1080px) {
  .eyes-grid, .yes-grid { grid-template-columns: 1fr; }
  .price-grid { grid-template-columns: 1fr 1fr; }
  .price-grid .card:first-child { grid-column: 1 / -1; }
  .menu-rows { grid-template-columns: 1fr; }
}
@media (max-width: 720px) {
  .price-grid { grid-template-columns: 1fr; }
  .folders { grid-template-columns: 1fr; }
  .folder { min-height: 0; }
  .menu-row { flex-direction: column; align-items: flex-start; }
  .ask { left: 12px; right: 96px; width: auto; transform: none; bottom: 12px; }
  .ask kbd { display: none; }
  .ask-hint { display: none; }
  .yes-row { justify-content: center; }
  .grid-floor { height: 40%; }
}
@media (prefers-reduced-motion: reduce) {
  .grid-floor, .lens-live::before { animation: none; }
  .lens img, .lens .layer { transition: none; }
}

/* ---------- Fixes after the first on-screen check (Nov 12) ---------- */
[hidden] { display: none !important; }
/* The ask bar stays out of the hero's way: it appears once you scroll, or when "/" focuses it. */
.ask { opacity: 0; pointer-events: none; }
.docked .ask, .ask:focus-within, .ask.open { opacity: 1; pointer-events: auto; }
.killed .ask { opacity: 0.35; pointer-events: none; }
/* Type sizes that .card p was flattening. */
.card p.micro { font-size: 10.5px; color: var(--faint); }
.card p.price { font-size: clamp(54px, 7vw, 88px); color: var(--text); margin: 14px 0 6px; }
.card p.seen-count { font-size: 44px; color: var(--text); }
.card p.ask-line { font-size: clamp(22px, 2.6vw, 30px); color: var(--text); }
/* The camera picture keeps to its own column. */
.eyes-grid { align-items: start; }
.eyes-grid > * { min-width: 0; }
.lens { width: 100%; }
.proof { overflow: hidden; }
.ask input:focus-visible { outline: 0; }
.lens-live { top: auto; bottom: 10px; }
