/* TESSA Site Core. Tokens come from theme.json (--wp--preset--*). */

:where(.wp-site-blocks) { overflow-x: clip; }
.wp-site-blocks > * + * { margin-block-start: 0; }
.wp-site-blocks { padding-bottom: 5.5rem; }
.screen-reader-text { border: 0; clip: rect(1px, 1px, 1px, 1px); clip-path: inset(50%); height: 1px; margin: -1px; overflow: hidden; padding: 0; position: absolute; width: 1px; word-wrap: normal !important; }
:focus-visible { outline: 3px solid var(--wp--preset--color--yellow); outline-offset: 2px; }
a:where(:not(.wp-element-button)) { text-underline-offset: 3px; }
::selection { background: var(--wp--preset--color--yellow); color: #17152A; }

/* Header */
.tessa-header { position: sticky; top: 0; z-index: 20; background: color-mix(in srgb, var(--wp--preset--color--base) 92%, transparent); backdrop-filter: blur(8px); border-bottom: 1px solid var(--wp--preset--color--line); }
.admin-bar .tessa-header { top: var(--wp-admin--admin-bar--height, 32px); }
.tessa-mark { display: inline-flex; align-items: center; gap: .6rem; text-decoration: none; }
.tessa-mark svg { width: 22px; height: 28px; flex: none; }
.tessa-mark .wp-block-site-title { margin: 0; }

/* Type helpers */
.is-style-eyebrow { font-family: var(--wp--preset--font-family--mono); font-size: var(--wp--preset--font-size--label); letter-spacing: .14em; text-transform: uppercase; color: var(--wp--preset--color--yellow); margin: 0; }
.is-style-chip { display: inline-block; border: 1.5px solid var(--wp--preset--color--line); border-radius: 8px; padding: .3rem .7rem; font-size: var(--wp--preset--font-size--small); font-weight: 500; margin: 0; }
.mono-note { font-family: var(--wp--preset--font-family--mono); font-size: var(--wp--preset--font-size--label); letter-spacing: .06em; color: var(--wp--preset--color--muted); }

/* Panels: the outlined cards from the product itself */
.wp-block-group.is-style-panel,
.wp-block-group.is-style-panel-solid { background: var(--wp--preset--color--panel); border: 1.5px dashed var(--panel-color, var(--wp--preset--color--line)); border-radius: var(--wp--custom--radius--panel); padding: 1rem 1.15rem; }
.wp-block-group.is-style-panel-solid { border-style: solid; }
.panel-cyan { --panel-color: var(--wp--preset--color--cyan); }
.panel-yellow { --panel-color: var(--wp--preset--color--yellow); }
.panel-pink { --panel-color: var(--wp--preset--color--pink); }
.panel-core { --panel-color: var(--wp--preset--color--core); }
.panel-cyan .is-style-eyebrow { color: var(--wp--preset--color--cyan); }
.panel-pink .is-style-eyebrow { color: var(--wp--preset--color--pink); }
.panel-core .is-style-eyebrow { color: var(--wp--preset--color--core); }
.wp-block-group.is-style-panel > * + *,
.wp-block-group.is-style-panel-solid > * + * { margin-block-start: .4rem; }

/* The T: the one brick motif. Six-stud Core brick over a centered two-stud stem. */
.tessa-t { width: min(100%, 300px); margin-inline: auto; display: flex; flex-direction: column; align-items: center; padding-top: 12px; }
.tessa-t__core, .tessa-t__mod { position: relative; display: flex; align-items: center; justify-content: center; font-weight: 700; color: #17152A; box-shadow: inset 0 -5px 0 rgba(0,0,0,.16), 0 3px 0 rgba(0,0,0,.35); }
.tessa-t__core { width: 100%; height: 64px; border-radius: 8px; background: #F4F4F6; font-size: .95rem; letter-spacing: .16em; text-transform: uppercase; }
.tessa-t__core::before { content: ""; position: absolute; left: 0; right: 0; top: -9px; height: 10px; background: radial-gradient(circle at 50% 100%, #F4F4F6 0 7.5px, transparent 8px) 0 0 / calc(100% / 6) 10px repeat-x; }
.tessa-t__mod { width: 33.333%; height: 54px; border-radius: 6px; margin-top: 6px; font-size: .8rem; background: var(--c); }
.tessa-t__mod::before { content: ""; position: absolute; left: 0; right: 0; top: -7px; height: 8px; background: radial-gradient(circle at 50% 100%, var(--c) 0 5.5px, transparent 6px) 0 0 / 50% 8px repeat-x; }
.tessa-t__mod--cyan { --c: #43AEE6; }
.tessa-t__mod--yellow { --c: #F4C54E; }
.tessa-t__mod--pink { --c: #DB4A82; }
.tessa-t__mod--ghost { background: transparent; border: 1.5px dashed var(--wp--preset--color--line); color: var(--wp--preset--color--muted); box-shadow: none; }
.tessa-t__mod--ghost::before { display: none; }

/* Sections */
.tessa-hero { padding-block: clamp(3rem, 8vw, 6rem); }
.tessa-hero h1 { font-size: var(--wp--preset--font-size--hero); line-height: .98; letter-spacing: -.035em; text-wrap: balance; }
.tessa-band { background: var(--wp--preset--color--base-2); border-block: 1px solid var(--wp--preset--color--line); }
.tessa-flow { display: grid; grid-template-columns: repeat(auto-fit, minmax(170px, 1fr)); gap: .75rem; }
.tessa-flow > * { margin: 0 !important; }
.tessa-bubble { background: var(--wp--preset--color--panel); border: 1.5px solid var(--wp--preset--color--cyan); border-radius: 12px 12px 12px 4px; padding: .7rem 1rem; margin: 0; max-width: 34rem; }
.tessa-bubble--q { border-color: var(--wp--preset--color--line); border-radius: 12px 12px 4px 12px; margin-left: auto; background: var(--wp--preset--color--base-2); }
.tessa-bubble--pink { border-color: var(--wp--preset--color--pink); border-style: dashed; }
.tessa-bubble--yellow { border-color: var(--wp--preset--color--yellow); border-style: dashed; }
.tessa-grid-3 { display: grid; grid-template-columns: repeat(auto-fit, minmax(min(100%, 260px), 1fr)); gap: 1rem; }
.tessa-grid-3 > * { margin: 0 !important; }
@media (max-width: 781px) { .tessa-hero .wp-block-columns { gap: 2rem; } }

/* Footer */
.tessa-footer { border-top: 1px solid var(--wp--preset--color--line); }

/* Dock */
.tessa-dock { position: fixed; left: 0; right: 0; bottom: 0; z-index: 30; padding: 1.75rem 1rem calc(.9rem + env(safe-area-inset-bottom, 0px)); background: linear-gradient(transparent, var(--wp--preset--color--base) 30%); pointer-events: none; }
.tessa-dock__inner { max-width: 760px; margin-inline: auto; display: flex; gap: .75rem; align-items: flex-end; pointer-events: auto; position: relative; }
.tessa-bot { flex: none; width: 46px; height: 66px; overflow: visible; transform-origin: 50% 100%; animation: tessa-bob 3.4s ease-in-out infinite; transition: margin-left .9s ease-in-out; }
.tessa-dock__talk { flex: 1; min-width: 0; display: flex; flex-direction: column; gap: .5rem; }
.tessa-dock__bubble, .tessa-dock__links { display: none; }
.tessa-dock[data-state="open"] .tessa-dock__bubble { display: block; background: var(--wp--preset--color--panel); color: var(--wp--preset--color--contrast); border: 1.5px solid var(--wp--preset--color--cyan); border-radius: 12px 12px 12px 4px; padding: .65rem .9rem; font-size: .9rem; line-height: 1.5; max-height: 30vh; overflow: auto; }
.tessa-dock[data-state="open"] .tessa-dock__links { display: flex; flex-wrap: wrap; gap: .4rem; }
.tessa-dock__tag { display: block; font-family: var(--wp--preset--font-family--mono); font-size: .68rem; letter-spacing: .12em; text-transform: uppercase; color: var(--wp--preset--color--cyan); margin-bottom: .15rem; }
.tessa-dock__links a { background: var(--wp--preset--color--base-2); border: 1.5px solid var(--wp--preset--color--line); border-radius: 999px; padding: .3rem .8rem; font-size: .78rem; font-weight: 500; text-decoration: none; color: var(--wp--preset--color--contrast); min-height: 32px; display: inline-flex; align-items: center; }
.tessa-dock__links a:hover { border-color: var(--wp--preset--color--yellow); }
.tessa-dock__ask { display: flex; gap: .4rem; background: #F4F4F8; border-radius: 10px; padding: 3px 3px 3px .9rem; align-items: center; }
.tessa-dock__ask:focus-within { box-shadow: 0 0 0 3px var(--wp--preset--color--yellow); }
.tessa-dock__ask input { flex: 1; min-width: 0; border: 0; background: transparent; color: #17152A; font: 500 .95rem var(--wp--preset--font-family--poppins); min-height: 42px; outline: 0; }
.tessa-dock__ask input::placeholder { color: #5D5A78; }
.tessa-dock__ask button { background: #17152A; color: #fff; border: 0; border-radius: 7px; padding: 0 1rem; min-height: 40px; font-weight: 700; font-size: .85rem; cursor: pointer; }
.tessa-dock__toggle { position: absolute; right: 0; top: -1.6rem; width: 32px; height: 32px; border-radius: 50%; border: 1.5px solid var(--wp--preset--color--line); background: var(--wp--preset--color--base-2); color: var(--wp--preset--color--contrast); cursor: pointer; font-size: 1.1rem; line-height: 1; }
@media (max-width: 560px) { .tessa-bot { width: 36px; height: 52px; } }

/* TESSA motion */
@keyframes tessa-bob { 50% { transform: translateY(-3px); } }
.tessa-bot .eye { transform-box: fill-box; transform-origin: center; animation: tessa-blink 4.8s infinite; }
@keyframes tessa-blink { 0%, 93%, 100% { transform: scaleY(1); } 96% { transform: scaleY(.08); } }
.tessa-bot .mouth, .tessa-bot .ant { transform-box: fill-box; transform-origin: center; }
.tessa-bot .ant { transform-origin: 50% 100%; }
.tessa-bot.talking .mouth, .tessa-bot.speaking .mouth { animation: tessa-talk .2s ease-in-out infinite alternate; }
@keyframes tessa-talk { from { transform: scaleY(1); } to { transform: scaleY(2.6) scaleX(.85); } }
.tessa-bot.talking .ant, .tessa-bot.speaking .ant { animation: tessa-ping .5s ease-in-out infinite alternate; }
@keyframes tessa-ping { from { transform: scaleY(1); fill: #DB4A82; } to { transform: scaleY(1.35); fill: #F4C54E; } }
.tessa-bot .arm { transform-box: fill-box; transform-origin: 50% 8%; }
.tessa-bot.talking .arml, .tessa-bot.speaking .arml { animation: tessa-gl 1.1s ease-in-out infinite alternate; }
.tessa-bot.talking .armr, .tessa-bot.speaking .armr { animation: tessa-gr 1.3s ease-in-out infinite alternate; }
@keyframes tessa-gl { from { transform: rotate(8deg); } to { transform: rotate(-16deg); } }
@keyframes tessa-gr { from { transform: rotate(-8deg); } to { transform: rotate(18deg); } }
.tessa-bot.waving .armr { animation: tessa-wave .45s ease-in-out 4 alternate; }
@keyframes tessa-wave { from { transform: rotate(-20deg); } to { transform: rotate(-150deg); } }
.tessa-bot .leg { transform-box: fill-box; transform-origin: 50% 0; }
.tessa-bot.walking .legl { animation: tessa-step .35s ease-in-out infinite alternate; }
.tessa-bot.walking .legr { animation: tessa-step .35s ease-in-out infinite alternate-reverse; }
@keyframes tessa-step { from { transform: rotate(14deg); } to { transform: rotate(-14deg); } }
.tessa-bot.walking .arml { animation: tessa-gl .35s ease-in-out infinite alternate; }
.tessa-bot.walking .armr { animation: tessa-gr .35s ease-in-out infinite alternate; }
@media (prefers-reduced-motion: reduce) {
	.tessa-bot, .tessa-bot * { animation: none !important; transition: none !important; }
	html { scroll-behavior: auto; }
}

.tessa-header__row { padding-block: .75rem; gap: 1rem; }
.tessa-section .wp-block-heading + p, .tessa-band .wp-block-heading + p { margin-top: .75rem; }
.tessa-hero-title { font-size: var(--wp--preset--font-size--hero); line-height: .98; letter-spacing: -.035em; text-wrap: balance; }

.tessa-header__right { flex: 1 1 auto; min-width: 0; justify-content: flex-end; }
.tessa-header__right .wp-block-navigation { flex: 0 1 auto; min-width: 0; }
.tessa-header__right .wp-block-buttons { flex: none; }
.tessa-inner p, .alignwide > p, .alignwide > .wp-block-heading + p { max-width: 64ch; }
.tessa-hero-title { font-size: clamp(2.6rem, 6vw, 4.5rem); }

/* Constrained layout centers children that have a max-width. Keep section copy on the left edge. */
.alignwide > *:not(.alignfull):not(.tessa-t) { margin-inline-start: 0 !important; margin-inline-end: auto !important; }
.alignwide > .tessa-grid-3, .alignwide > .tessa-flow, .alignwide > .wp-block-columns { margin-inline-end: 0 !important; }
.tessa-bubble--q { margin-inline-start: auto !important; margin-inline-end: 0 !important; }
.tessa-t { margin-inline: auto !important; }

.tessa-fit { color: var(--wp--preset--color--yellow); }

/* Brand lock. Saved Site Editor styles (or a carried-over style set) can paint the page white and the text navy while the header stays dark. These rules read the palette, so the dark look holds, and Daylight still flips everything because it changes the palette itself. */
html body { background-color: var(--wp--preset--color--base); color: var(--wp--preset--color--contrast); }
html body :is(h1, h2, h3, h4, h5, h6, .wp-block-heading, .wp-block-post-title, .wp-block-site-title a) { color: var(--wp--preset--color--contrast); }
html body .wp-block-navigation a:where(:not(.wp-element-button)), html body .wp-block-navigation .wp-block-navigation-item__content { color: var(--wp--preset--color--contrast); }
html body .wp-block-navigation a:where(:not(.wp-element-button)):hover { color: var(--wp--preset--color--yellow); }
html body .wp-site-blocks a:where(:not(.wp-element-button, .wp-block-navigation-item__content, .tessa-chip, .wp-block-site-title a)) { color: var(--wp--preset--color--cyan); }
html body .wp-block-button__link.wp-element-button { background-color: var(--wp--preset--color--contrast); color: var(--wp--preset--color--base); }
html body .is-style-outline .wp-block-button__link { background: transparent; color: var(--wp--preset--color--contrast); }

/* footer: one tidy row of links, no dropdowns */
.tessa-footer .tessa-footer__nav .wp-block-navigation__container { flex-wrap: wrap; gap: .6rem 1.8rem; }
.tessa-footer .tessa-footer__nav .wp-block-navigation__submenu-container,
.tessa-footer .tessa-footer__nav .wp-block-navigation__submenu-icon { display: none !important; }
.tessa-footer .tessa-footer__nav a { font-weight: 600; }
.tessa-footer__legal { margin-top: var(--wp--preset--spacing--40); padding-top: 1rem; border-top: 1px solid var(--wp--preset--color--line, #34305A); }
@media (max-width: 781px) { .tessa-footer .tessa-footer__nav .wp-block-navigation__container { gap: .5rem 1.2rem; } }

/* voice controls */
.tessa-dock__ask .tessa-dock__mic { background: #17152A; color: #fff; padding: 0 14px; min-width: 0; height: 40px; display: inline-flex; align-items: center; gap: 7px; justify-content: center; border-radius: 999px; font-weight: 700; font-size: 14px; border: 0; cursor: pointer; }
.tessa-dock__ask .tessa-dock__mic[hidden], .tessa-dock__speak[hidden] { display: none; }
.tessa-dock__ask .tessa-dock__mic:hover { background: #3A3566; }
.tessa-dock__ask .tessa-dock__mic.is-listening { background: var(--wp--preset--color--pink, #DB4A82); color: #fff; animation: tessa-listen 1.1s ease-in-out infinite; }
@keyframes tessa-listen { 0%, 100% { box-shadow: 0 0 0 0 rgba(219,74,130,.55); } 50% { box-shadow: 0 0 0 7px rgba(219,74,130,0); } }
.tessa-dock__speak { position: absolute; right: 40px; top: -1.6rem; width: 32px; height: 32px; border-radius: 50%; border: 1.5px solid var(--wp--preset--color--line); background: var(--wp--preset--color--base-2); color: var(--wp--preset--color--contrast); cursor: pointer; display: none; align-items: center; justify-content: center; padding: 0; }
.tessa-dock[data-state="open"] .tessa-dock__speak:not([hidden]) { display: inline-flex; }
.tessa-dock__speak .on { opacity: 0; }
.tessa-dock__speak.is-on { border-color: var(--wp--preset--color--yellow); color: var(--wp--preset--color--yellow); }
.tessa-dock__speak.is-on .on { opacity: 1; }
.tessa-bot.listening .eye { transform: scale(1.12); transform-box: fill-box; transform-origin: center; }
@media (prefers-reduced-motion: reduce) { .tessa-dock__ask .tessa-dock__mic.is-listening { animation: none; } }

/* tour, chips and pictures in the dock */
.tessa-dock__links .tessa-dock__chip { background: var(--wp--preset--color--base-2); color: var(--wp--preset--color--contrast); border: 1.5px solid var(--wp--preset--color--line); border-radius: 999px; padding: .3rem .8rem; font: 600 .78rem var(--wp--preset--font-family--poppins); cursor: pointer; }
.tessa-dock__links .tessa-dock__chip:hover, .tessa-dock__links .tessa-dock__chip:focus-visible { border-color: var(--wp--preset--color--yellow); }
.tessa-dock__visual { margin-top: .65rem; border-radius: 10px; background: #0B0A14; border: 1.5px solid var(--wp--preset--color--line); padding: .4rem; }
.tessa-dock__visual .tsc-scene { margin: 0; overflow: hidden; }
.tessa-dock__visual .tsc-svg { min-width: 0 !important; width: 100%; height: auto; max-height: 210px; display: block; }
.tessa-dock[data-state="open"] .tessa-dock__bubble:has(.tessa-dock__visual) { max-height: 52vh; }
.tessa-spot { outline: 3px solid var(--wp--preset--color--yellow, #F4C54E); outline-offset: 8px; border-radius: 12px; animation: tessa-spot 1.2s ease-in-out 3; }
@keyframes tessa-spot { 0%, 100% { outline-color: rgba(244,197,78,.25); } 50% { outline-color: rgba(244,197,78,1); } }
@media (prefers-reduced-motion: reduce) { .tessa-spot { animation: none; } }

/* Voice mode */
.tessa-dock.is-voice .tessa-dock__ask { display: none; }
.tessa-voice[hidden] { display: none; }
.tessa-voice { margin-top: 10px; display: flex; flex-direction: column; gap: 10px; }
.tessa-voice__stage { display: flex; flex-direction: column; align-items: center; gap: 4px; width: 100%; padding: 14px 12px 12px; background: #17152A; color: #fff; border: 2px solid #6B6890; border-radius: 14px; cursor: pointer; font: inherit; text-align: center; transition: border-color .2s; }
.tessa-voice__wave { width: 100%; max-width: 420px; height: 64px; display: block; }
.tessa-voice__status { font-size: 20px; font-weight: 800; line-height: 1.2; }
.tessa-voice__hint { font-size: 13px; color: #B9B7D6; line-height: 1.3; }
.tessa-voice__line { font-size: 14px; font-style: italic; color: #fff; min-height: 1.3em; max-width: 100%; overflow-wrap: anywhere; }
.tessa-voice[data-vstate="listening"] .tessa-voice__stage { border-color: #43AEE6; }
.tessa-voice[data-vstate="hearing"] .tessa-voice__stage { border-color: #F4C54E; }
.tessa-voice[data-vstate="thinking"] .tessa-voice__stage { border-color: #9B8CF5; }
.tessa-voice[data-vstate="speaking"] .tessa-voice__stage { border-color: #DB4A82; }
.tessa-voice[data-vstate="paused"] .tessa-voice__stage, .tessa-voice[data-vstate="muted"] .tessa-voice__stage { border-color: #6B6890; }
.tessa-voice__btns { display: flex; justify-content: center; gap: 12px; }
.tessa-voice__btns button { min-width: 84px; height: 40px; border-radius: 999px; border: 0; font-weight: 700; font-size: 14px; cursor: pointer; background: #E3E3EE; color: #17152A; }
.tessa-voice__btns button[aria-pressed="true"] { background: #F4C54E; }
.tessa-voice__btns #tessa-vend { background: #DB4A82; color: #fff; }
.tessa-voice__stage:focus-visible, .tessa-voice__btns button:focus-visible { outline: 3px solid #F4C54E; outline-offset: 2px; }
