/* Ell on ellwand.app: the face, the "Ask Ell" stage (assets/ell.js) and the Meet Ell page. Colours and type come from site.css. */

/* ---- Ell's face, as in the app (src/ui/EllFace.tsx) ---- */
.ell { overflow: visible; flex: none; }
.ell-head, .ell-lids { fill: #2f6f5c; }
.on-green .ell-head, .on-green .ell-lids { fill: #3f8a73; }
.ell-eyes ellipse { fill: var(--paper); }
.ell-shut { fill: none; stroke: var(--paper); stroke-width: 1.2; stroke-linecap: round; display: none; }
.ell-lids { display: none; }
.ell-smile { fill: none; stroke: var(--paper); stroke-width: 1.3; stroke-linecap: round; }
.ell-tape, .ell-tail path:first-child { fill: var(--brass); }
.ell-ticks { fill: none; stroke: var(--ink-2); stroke-width: .5; opacity: .6; }
.ell-z { font: 600 7px var(--font); fill: var(--brass); display: none; }
.ell-eyes, .ell-smile, .ell-tail { transform-box: fill-box; transform-origin: center; }
.ell-tail { transform-origin: 20% 0; }
.ell-eyes { animation: ell-blink 3.1s infinite; }
.ell.thinking .ell-eyes { animation: ell-glance 1.5s ease-in-out infinite; }
.ell.working .ell-eyes { transform: translate(.5px, .7px); animation: none; }
.ell.working .ell-smile { stroke: var(--brass); stroke-dasharray: .9 1.75; animation: ell-sew .5s linear infinite; }
.ell.working .ell-tail { animation: ell-wag .6s ease-in-out infinite alternate; }
.ell.talking .ell-smile { transform-origin: center top; animation: ell-talk .32s ease-in-out infinite alternate; }
.ell.tired .ell-lids { display: block; }
.ell.asleep .ell-eyes { display: none; }
.ell.asleep .ell-shut, .ell.asleep .ell-z { display: block; }
.ell.asleep .ell-z { animation: ell-z 3.6s ease-in-out infinite; }
@keyframes ell-blink { 0%, 95%, 100% { transform: scaleY(1); } 97.5% { transform: scaleY(.12); } }
@keyframes ell-glance { 0%, 100% { transform: translate(-1.1px, -.3px); } 50% { transform: translate(1.1px, -.3px); } }
@keyframes ell-sew { to { stroke-dashoffset: -2.65; } }
@keyframes ell-wag { from { transform: rotate(-5deg); } to { transform: rotate(5deg); } }
@keyframes ell-talk { from { transform: scaleY(1); } to { transform: scaleY(1.42); } }
@keyframes ell-z { 0% { opacity: 0; transform: translate(0, 1px); } 40% { opacity: 1; } 100% { opacity: 0; transform: translate(1.5px, -3px); } }
.batt { flex: none; color: var(--ink-2); }
.batt .case { fill: none; stroke: currentColor; stroke-width: 1.2; }
.batt .tip, .batt .fill { fill: currentColor; }
.batt.low { color: #c9772f; }
.batt.empty { color: var(--muted); }

/* ---- Ask Ell: pick a question, watch what Ell does with it ---- */
.ask { margin-top: clamp(28px, 5vh, 48px); background: #fff; border-radius: 28px; box-shadow: 0 0 0 1px var(--line), 0 40px 80px -50px rgba(27,53,46,.4); padding: clamp(16px, 2.4vw, 30px); }
/* Without the script the questions and answers are simply a list to read. */
.ask-plain { list-style: none; margin: 0; padding: 0; display: grid; gap: 18px; }
.ask-plain q { display: block; font-family: var(--display); font-size: 19px; color: var(--ink); quotes: '“' '”'; }
.ask-plain p { margin-top: 4px; color: var(--ink-2); }
.ask-chips { display: flex; flex-wrap: wrap; gap: 8px; }
.ask-chips button { font: 500 14.5px var(--display); letter-spacing: -.005em; color: var(--ink-2); background: var(--tint); border: 0; border-radius: 999px; padding: 9px 16px; cursor: pointer; transition: background .18s var(--ease), color .18s var(--ease), transform .18s var(--ease); }
.ask-chips button:hover { color: var(--ink); background: var(--wash-2); }
.ask-chips button:active { transform: scale(.97); }
.ask-chips button.on { background: var(--brand); color: #fff; }
.ask-stage { display: grid; grid-template-columns: minmax(0, 1.08fr) minmax(0, 1fr); gap: clamp(18px, 3vw, 44px); align-items: start; margin-top: clamp(14px, 2vw, 22px); }
.ask-sheet { position: relative; aspect-ratio: 1; border-radius: 18px; overflow: hidden; background: var(--paper) linear-gradient(rgba(47,93,80,.06) 1px, transparent 1px) 0 0 / 100% 16px, var(--paper) linear-gradient(90deg, rgba(47,93,80,.06) 1px, transparent 1px) 0 0 / 16px 100%; background-color: var(--paper); box-shadow: 0 0 0 1px var(--line); }
.ask-sheet svg.ask-draft { position: absolute; inset: 0; width: 100%; height: 100%; }
.ask-draft path, .ask-draft circle { transition: opacity .3s var(--ease); }
.ask-draft .g { fill: none; stroke: #a7b0aa; stroke-width: .09; stroke-dasharray: .55 .4; }
.ask-draft .p { fill: none; stroke: var(--ink); stroke-width: .2; stroke-linejoin: round; stroke-linecap: round; }
.ask-draft .lit { stroke: #2f6f5c; stroke-width: .34; }
.ask-draft .ghost { fill: none; stroke: var(--muted); stroke-width: .16; stroke-dasharray: .5 .5; }
.ask-draft .ring { fill: rgba(47,111,92,.1); stroke: #2f6f5c; stroke-width: .22; }
.ask-draft .sz { fill: none; stroke: var(--muted); stroke-width: .13; stroke-linejoin: round; }
.ask-draft .sz.mid { stroke: var(--ink); stroke-width: .2; }
.ask-draft .sk { fill: none; stroke: var(--ink); stroke-width: .26; stroke-linecap: round; stroke-linejoin: round; stroke-dasharray: 1; stroke-dashoffset: 1; }
.ask-draft .fl { fill: none; stroke: var(--ink); stroke-width: .3; stroke-linecap: round; stroke-linejoin: round; stroke-dasharray: 1; stroke-dashoffset: 1; }
.ask-draft .fl.s { stroke-width: .15; }
.ask-draft .sk.con { stroke: #a7b0aa; stroke-width: .14; }
.ask-draft .sk.now { stroke: #2f6f5c; }
.ask-draft.spot .base { opacity: .16; }
.ask-draft.spot .base.lit { opacity: 1; }
.ask-draft.bare .base { opacity: 0; }
/* A picture of the app, laid on the paper like a photograph. */
.ask-shot { position: absolute; left: 4%; top: 46%; width: 92%; height: auto; transform: translateY(-50%); border-radius: 8px; box-shadow: 0 0 0 1px rgba(30,43,39,.1), 0 24px 50px -24px rgba(27,53,46,.5); opacity: 0; transition: opacity .45s var(--ease); }
.ask-shot.in { opacity: 1; }
.ask-tag { position: absolute; transform: translate(-50%, -50%); background: var(--ink); color: #fff; font-size: 13px; font-weight: 500; line-height: 1.2; padding: 5px 11px; border-radius: 999px; white-space: nowrap; font-variant-numeric: tabular-nums; box-shadow: 0 8px 20px -8px rgba(30,43,39,.5); animation: ask-pop .3s var(--ease) both; }
.ask-tag.green { background: #2f6f5c; }
.ask-tag.foot { left: 50%; top: auto; bottom: 14px; transform: translateX(-50%); max-width: calc(100% - 28px); white-space: normal; text-align: center; border-radius: 12px; }
@keyframes ask-pop { from { opacity: 0; scale: .8; } }
.ask-review { position: absolute; left: 12px; right: 12px; bottom: 12px; display: flex; align-items: center; gap: 10px; flex-wrap: wrap; padding: 8px 8px 8px 14px; border-radius: 14px; background: #fcfcf9; box-shadow: 0 10px 30px rgba(30,43,39,.16), 0 0 0 1px rgba(30,43,39,.06); font-size: 14.5px; color: var(--ink); animation: ask-pop .3s var(--ease) both; }
.ask-review[hidden] { display: none; }
.ask-review .n { color: var(--muted); font-variant-numeric: tabular-nums; margin-right: 6px; }
.ask-mark { font-style: normal; font-size: 12px; font-weight: 600; letter-spacing: .02em; color: #234e42; background: #d7e8df; border-radius: 999px; padding: 2px 9px; }
.ask-mark.ok { color: #3e7f4f; background: none; padding-inline: 0; }
.ask-ok { margin-left: auto; font: 500 14.5px var(--font); color: #fff; background: #2f6f5c; border: 0; border-radius: 9px; padding: 8px 14px; cursor: pointer; transition: background .18s var(--ease), transform .18s var(--ease); }
.ask-ok:hover { background: #234e42; }
.ask-ok:active { transform: scale(.98); }
.ask-chat { display: flex; flex-direction: column; gap: 14px; min-height: 100%; }
.ask-you { align-self: flex-end; max-width: 92%; min-height: 50px; background: var(--wash); color: var(--ink); border-radius: 20px 20px 6px 20px; padding: 12px 18px; font-size: clamp(16.5px, 1.4vw, 18.5px); line-height: 1.4; }
.ask-you .caret { display: inline-block; width: 2px; height: 1.1em; vertical-align: -3px; margin-left: 1px; background: #2f6f5c; animation: ask-caret 1s steps(2) infinite; }
.ask-you.done .caret { display: none; }
@keyframes ask-caret { 50% { opacity: 0; } }
.ask-ell { display: flex; gap: 12px; align-items: flex-start; }
.ask-said { flex: 1; min-width: 0; min-height: 44px; background: var(--canvas); border-radius: 6px 20px 20px 20px; padding: 12px 18px; font-size: clamp(16px, 1.3vw, 17.5px); line-height: 1.46; color: var(--ink); }
.ask-said > * { animation: rise .5s var(--ease) both; }
.ask-said > * + * { margin-top: 10px; }
.ask-said b { font-weight: 600; }
.ask-dots { display: inline-flex; gap: 5px; padding: 8px 0; }
.ask-dots i { width: 7px; height: 7px; border-radius: 50%; background: var(--brass-deep); animation: ask-dot 1s ease-in-out infinite; }
.ask-dots i:nth-child(2) { animation-delay: .15s; }
.ask-dots i:nth-child(3) { animation-delay: .3s; }
@keyframes ask-dot { 0%, 60%, 100% { transform: none; } 30% { transform: translateY(-4px); } }
.ask-said table { border-collapse: collapse; width: 100%; font-size: 15px; font-variant-numeric: tabular-nums; }
.ask-said th { text-align: left; font-size: 11.5px; letter-spacing: .06em; text-transform: uppercase; color: var(--muted); font-weight: 600; padding: 0 10px 6px 0; }
.ask-said td { padding: 6px 10px 6px 0; border-top: 1px solid var(--line); }
.ask-said td.yes { color: #3e7f4f; font-weight: 600; }
.ask-said ol { list-style: none; margin: 10px 0 0; padding: 0; counter-reset: s; font-size: 15px; }
.ask-said ol li { counter-increment: s; display: flex; gap: 10px; padding: 5px 0; border-top: 1px solid var(--line); color: var(--muted); transition: color .2s var(--ease); }
.ask-said ol li::before { content: counter(s); width: 1.2em; text-align: right; font-variant-numeric: tabular-nums; }
.ask-said ol li.now { color: #234e42; }
.ask-said ol li.done { color: var(--ink); }
.ask-said ol li.done::after { content: '✓'; margin-left: auto; color: #3e7f4f; }
.ask-fine { margin-top: auto; padding-top: 6px; font-size: 13.5px; line-height: 1.45; color: var(--muted); }
@media (max-width: 820px) {
  .ask-stage { grid-template-columns: 1fr; }
  .ask-chips { flex-wrap: nowrap; overflow-x: auto; margin-inline: calc(-1 * clamp(16px, 2.4vw, 30px)); padding-inline: clamp(16px, 2.4vw, 30px); scrollbar-width: none; }
  .ask-chips::-webkit-scrollbar { display: none; }
  .ask-chips button { flex: none; }
  .ask { border-radius: 20px; }
}

/* ---- Ell's band on the home page ---- */
.meet-head { display: grid; grid-template-columns: auto minmax(0, 1fr); gap: clamp(18px, 3vw, 40px); align-items: center; }
.meet-head .ell { width: clamp(84px, 11vw, 150px); height: auto; filter: drop-shadow(0 14px 22px rgba(27,53,46,.22)); }
.meet-head .lede { margin-top: 16px; }
@media (max-width: 600px) { .meet-head { grid-template-columns: 1fr; } }
.keep { list-style: none; margin: clamp(30px, 5vh, 48px) 0 0; padding: 0; display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 0 clamp(20px, 3vw, 40px); color: var(--ink-2); font-size: clamp(15.5px, 1.25vw, 17px); line-height: 1.45; }
.keep li { padding: 16px 0 20px; border-top: 1px solid #dedfd4; }
.keep b { display: block; font-family: var(--display); font-weight: 500; font-size: clamp(17.5px, 1.45vw, 20px); letter-spacing: -.012em; color: var(--ink); margin-bottom: 5px; }
.dark .keep { color: var(--on-dark); }
.dark .keep li { border-color: rgba(255,255,255,.14); }
.dark .keep b { color: #fff; }
@media (max-width: 900px) { .keep { grid-template-columns: 1fr 1fr; } }
@media (max-width: 520px) { .keep { grid-template-columns: 1fr; } }
.meet-foot { display: flex; flex-wrap: wrap; align-items: center; gap: 14px 22px; margin-top: 26px; }
.meet-foot .fine { margin: 0; }

/* ---- the Meet Ell page ---- */
.ell-hero { position: relative; color: #fff; background: radial-gradient(90% 70% at 50% 0%, #2a5146 0%, var(--brand-deep) 62%); padding: clamp(96px, 15vh, 150px) 0 clamp(64px, 10vh, 110px); overflow: clip; text-align: center; }
.ell-hero::before { content: ""; position: absolute; inset: 0; background-image: linear-gradient(rgba(232,212,106,.05) 1px, transparent 1px), linear-gradient(90deg, rgba(232,212,106,.05) 1px, transparent 1px); background-size: 48px 48px; mask-image: radial-gradient(ellipse at 50% 30%, #000 25%, transparent 72%); -webkit-mask-image: radial-gradient(ellipse at 50% 30%, #000 25%, transparent 72%); pointer-events: none; }
.ell-hero > * { position: relative; }
.ell-hero .ell { width: clamp(120px, 15vw, 190px); height: auto; margin: 0 auto 10px; display: block; filter: drop-shadow(0 22px 34px rgba(5,16,12,.45)); }
.ell-hero .eyebrow { color: var(--brass); margin-bottom: 14px; }
.ell-hero .eyebrow .dot { background: var(--brass); }
.ell-hero h1 { font-size: clamp(54px, 9vw, 128px); line-height: .96; letter-spacing: -.042em; }
.ell-hero .hero-sub { font-size: clamp(19px, 1.9vw, 25px); line-height: 1.34; color: var(--on-dark); max-width: 27em; margin: 20px auto 0; padding-inline: var(--gutter); text-wrap: balance; }
.ell-hero .actions { justify-content: center; margin-top: 26px; padding-inline: var(--gutter); }
.more-grid { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: clamp(12px, 1.4vw, 20px); margin-top: clamp(28px, 5vh, 48px); }
.more-card { background: #fff; border-radius: 22px; box-shadow: 0 0 0 1px var(--line); padding: clamp(20px, 2.2vw, 30px); }
.more-card h3 { font-size: clamp(20px, 1.8vw, 24px); line-height: 1.12; letter-spacing: -.022em; }
.more-card p { margin-top: 8px; color: var(--ink-2); font-size: 16px; line-height: 1.45; }
.more-card .said { display: block; margin-top: 12px; font-size: 14.5px; color: var(--brand); }
@media (max-width: 900px) { .more-grid { grid-template-columns: 1fr 1fr; } }
@media (max-width: 560px) { .more-grid { grid-template-columns: 1fr; } }
.pass-grid { display: grid; grid-template-columns: minmax(0, 1.1fr) minmax(0, 1fr); gap: clamp(32px, 5vw, 80px); align-items: center; }
.pass-price { font-family: var(--display); font-size: clamp(44px, 5.4vw, 72px); line-height: 1; letter-spacing: -.035em; color: var(--brass); margin-top: 26px; font-variant-numeric: tabular-nums; }
.pass-price small { font: 400 16px var(--font); letter-spacing: 0; color: var(--on-dark); margin-left: 10px; }
.pass-grid .plain { margin-top: 22px; }
.pass-grid .actions { margin-top: 26px; }
.moods { display: grid; gap: 12px; }
.mood { display: flex; align-items: center; gap: 16px; padding: 16px 22px; border-radius: 20px; background: rgba(255,255,255,.07); box-shadow: inset 0 0 0 1px rgba(255,255,255,.12); color: #fff; }
.mood .ell { width: 56px; height: 56px; }
.mood .batt { color: #fff; width: 30px; height: auto; }
.mood .batt.low { color: #e9a15b; }
.mood .batt.empty { color: rgba(255,255,255,.45); }
/* The credits left, as the number Ellwand shows by Ell's face (in place of the battery, 23 Nov 2026). */
.mood .count { flex: none; min-width: 44px; text-align: right; font: 500 24px var(--display); font-variant-numeric: tabular-nums; color: #fff; }
.mood .count.low { color: #e9a15b; }
.mood .count.empty { color: rgba(255,255,255,.45); }
.mood b { font-family: var(--display); font-weight: 500; font-size: 19px; }
.mood span { display: block; color: var(--on-dark); font-size: 15px; line-height: 1.4; }
.mood > div { flex: 1; min-width: 0; }
@media (max-width: 860px) { .pass-grid { grid-template-columns: 1fr; } }
.ell-end { text-align: center; }
.ell-end .lede { margin-inline: auto; }
.ell-end .actions { justify-content: center; margin-top: 28px; }
