/* Taverna Lemoni demo (/en/demo/taverna/). MVTJ navy and gold around a warm, lemon-and-whitewash phone. */
:root {
  --navy: #071421; --navy-2: #0b1d2e; --ink: #050607; --gold: #c8a46a; --ivory: #f2ebdd; --text: #d5d9de; --muted: #a8acb3;
  --line: rgba(200,164,106,.22); --line-soft: rgba(255,255,255,.08);
  --lemon: #e9c84a; --wash: #faf6ee; --olive: #4d5b2f; --bubble-in: #ffffff; --bubble-out: #e8efd9; --chat-ink: #1d2124;
  --sans: "Inter", system-ui, -apple-system, "Segoe UI", sans-serif;
  /* Oswald has no Greek letters: Roboto Condensed fills them in. */
  --display: "Oswald", "Roboto Condensed", "Inter", sans-serif;
}
* { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; }
body { margin: 0; background: radial-gradient(1200px 600px at 80% -10%, #12304a 0%, transparent 60%), var(--navy); color: var(--text);
  font: 400 16px/1.6 var(--sans); min-height: 100vh; }
a { color: inherit; }
:focus-visible { outline: 2px solid var(--gold); outline-offset: 3px; }
.td-visually-hidden { position: absolute; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; }

/* Bar */
.td-bar { display: flex; align-items: center; gap: 16px; max-width: 1180px; margin: 0 auto; padding: 18px 24px; }
.td-brand img { display: block; height: 40px; width: auto; }
.td-pill { font: 600 11px/1 var(--sans); letter-spacing: .18em; text-transform: uppercase; color: var(--gold); border: 1px solid var(--line);
  padding: 7px 10px; border-radius: 999px; }
.td-cta { display: inline-block; background: var(--gold); color: var(--ink); text-decoration: none; font: 700 14px/1 var(--sans);
  letter-spacing: .02em; padding: 15px 22px; border-radius: 4px; }
.td-cta:hover { background: #d8b67e; }
.td-cta--small { padding: 11px 16px; font-size: 13px; white-space: nowrap; }
.td-bar .td-langs--bar { margin-left: auto; padding: 3px; gap: 2px; background: transparent; border: 1px solid var(--line); border-radius: 999px; }
.td-bar .td-langs--bar button { flex: none; min-width: 40px; padding: 8px 10px; border: 0; font-size: 12px; letter-spacing: .06em; color: var(--text); }
.td-bar .td-langs--bar button[aria-pressed="true"] { background: var(--gold); color: var(--ink); }

/* Hero */
.td-hero { display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 420px); grid-template-areas: "copy phone" "owner phone";
  grid-template-rows: auto 1fr; column-gap: 56px; align-items: start; max-width: 1180px; margin: 0 auto; padding: 40px 24px 72px; }
.td-copy { grid-area: copy; } .td-phone { grid-area: phone; } .td-owner { grid-area: owner; }
.td-kicker { margin: 0; font: 600 11.5px/1.2 var(--sans); letter-spacing: .22em; text-transform: uppercase; color: var(--gold); }
h1 { margin: 14px 0 18px; font: 700 clamp(44px, 6.4vw, 84px)/.95 var(--display); text-transform: uppercase; color: var(--ivory); letter-spacing: .005em; }
.td-lede { margin: 0; max-width: 34em; font-size: 18px; color: var(--text); }
.td-try-label { margin: 28px 0 10px; font-size: 13px; color: var(--muted); }
.td-chips { display: flex; flex-wrap: wrap; gap: 8px; }
.td-chip { font: 500 14px/1.3 var(--sans); color: var(--ivory); background: rgba(255,255,255,.04); border: 1px solid var(--line);
  padding: 10px 14px; border-radius: 999px; cursor: pointer; text-align: left; }
.td-chip:hover { border-color: var(--gold); background: rgba(200,164,106,.08); }
.td-chip:disabled { opacity: .5; cursor: default; }

/* Owner card */
.td-owner { margin-top: 36px; max-width: 560px; border: 1px solid var(--line); border-radius: 10px; padding: 20px 22px;
  background: linear-gradient(180deg, rgba(11,29,46,.9), rgba(7,20,33,.9)); transition: border-color .4s, box-shadow .4s; }
.td-owner.is-live { border-color: rgba(200,164,106,.55); }
.td-owner.is-ready { border-color: var(--gold); box-shadow: 0 0 0 1px var(--gold), 0 18px 50px rgba(200,164,106,.12); }
.td-owner__head { display: flex; justify-content: space-between; align-items: center; gap: 12px; flex-wrap: wrap; }
.td-owner__status { font-size: 12.5px; color: var(--muted); }
.td-owner.is-ready .td-owner__status { color: var(--gold); font-weight: 600; }
.td-owner__grid { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 14px 18px; margin: 18px 0 0; }
.td-owner__grid div { min-width: 0; }
.td-owner__wide { grid-column: 1 / -1; }
.td-owner dt { font-size: 11px; letter-spacing: .14em; text-transform: uppercase; color: var(--muted); }
.td-owner dd { margin: 3px 0 0; color: var(--ivory); font-weight: 600; overflow-wrap: anywhere; }
.td-owner dd.is-new { animation: td-flash 1.2s ease-out; }
@keyframes td-flash { from { color: var(--gold); } to { color: var(--ivory); } }
.td-owner__note { margin: 16px 0 0; padding: 10px 12px; border-left: 2px solid var(--gold); background: rgba(200,164,106,.08); color: var(--ivory); font-size: 14px; }
.td-owner__actions { display: flex; gap: 8px; margin-top: 18px; }
.td-owner__actions span { font: 600 13px/1 var(--sans); padding: 10px 14px; border-radius: 4px; border: 1px solid var(--line); color: var(--muted); }
.td-owner.is-ready .td-owner__actions span:first-child { background: var(--gold); border-color: var(--gold); color: var(--ink); }
.td-owner__foot { margin: 14px 0 0; font-size: 13px; color: var(--muted); }

/* Phone */
.td-phone { position: sticky; top: 24px; display: flex; flex-direction: column; height: min(760px, calc(100vh - 48px)); min-height: 560px;
  background: var(--wash); border-radius: 34px; border: 10px solid #0d0f12; box-shadow: 0 40px 90px rgba(0,0,0,.55), 0 0 0 1px var(--line);
  overflow: hidden; color: var(--chat-ink); }
.td-phone__head { display: flex; align-items: center; gap: 12px; padding: 18px 18px 14px; background: var(--olive); color: #fff; }
.td-avatar { display: grid; place-items: center; width: 40px; height: 40px; border-radius: 50%; background: var(--lemon); color: var(--olive);
  font: 700 20px/1 var(--display); }
.td-phone__name { margin: 0; font-weight: 700; font-size: 16px; line-height: 1.2; }
.td-phone__sub { margin: 2px 0 0; font-size: 12px; opacity: .8; line-height: 1.2; }
.td-langs { display: flex; gap: 6px; padding: 8px 12px; background: #43502a; }
.td-langs button { flex: 1; font: 600 13px/1 var(--sans); padding: 8px 6px; border-radius: 999px; border: 1px solid rgba(255,255,255,.25);
  background: transparent; color: #fff; cursor: pointer; }
.td-langs button[aria-pressed="true"] { background: var(--lemon); border-color: var(--lemon); color: var(--olive); }
.td-langs button:focus-visible, .td-mic:focus-visible { outline: 2px solid var(--lemon); outline-offset: 2px; }
.td-msg--note { align-self: center; background: transparent; box-shadow: none; color: #6b6f72; font-size: 12.5px; }
.td-log { flex: 1; list-style: none; margin: 0; padding: 18px 14px; overflow-y: auto; display: flex; flex-direction: column; gap: 8px;
  background: linear-gradient(180deg, #f6f1e6, var(--wash)); }
.td-msg { max-width: 84%; padding: 9px 13px; border-radius: 16px; font-size: 15px; line-height: 1.45; white-space: pre-wrap; overflow-wrap: anywhere;
  box-shadow: 0 1px 1px rgba(0,0,0,.06); animation: td-in .25s ease-out; }
@keyframes td-in { from { opacity: 0; transform: translateY(6px); } }
.td-msg--in { align-self: flex-start; background: var(--bubble-in); border-bottom-left-radius: 4px; }
.td-msg--out { align-self: flex-end; background: var(--bubble-out); border-bottom-right-radius: 4px; }
.td-msg--error { align-self: center; background: transparent; box-shadow: none; color: #7a5b1e; font-size: 13px; text-align: center; }
.td-msg a { color: var(--olive); }
.td-typing { display: inline-flex; gap: 4px; padding: 13px 14px; }
.td-typing i { width: 7px; height: 7px; border-radius: 50%; background: #9aa08f; animation: td-dot 1s infinite ease-in-out; }
.td-typing i:nth-child(2) { animation-delay: .15s; } .td-typing i:nth-child(3) { animation-delay: .3s; }
@keyframes td-dot { 0%, 80%, 100% { opacity: .3; transform: translateY(0); } 40% { opacity: 1; transform: translateY(-3px); } }
.td-form { display: flex; gap: 8px; padding: 10px; background: #fff; border-top: 1px solid #ebe4d4; }
.td-form input { flex: 1; min-width: 0; font: 400 16px/1.3 var(--sans); padding: 11px 14px; border: 1px solid #ddd5c3; border-radius: 999px;
  background: var(--wash); color: var(--chat-ink); }
.td-form input:focus-visible { outline: 2px solid var(--olive); outline-offset: 1px; }
.td-form button { font: 700 14px/1 var(--sans); padding: 0 18px; border: 0; border-radius: 999px; background: var(--olive); color: #fff; cursor: pointer; }
.td-form button:disabled { opacity: .5; cursor: default; }
.td-form .td-send { display: grid; place-items: center; flex: 0 0 44px; height: 44px; padding: 0 0 0 3px; }
.td-form .td-mic { display: grid; place-items: center; flex: 0 0 44px; height: 44px; padding: 0; background: var(--wash); color: var(--olive);
  border: 1px solid #ddd5c3; }
.td-form .td-mic[hidden] { display: none; }
.td-form .td-mic[aria-pressed="true"] { background: #b3261e; border-color: #b3261e; color: #fff; animation: td-pulse 1.2s infinite; }
@keyframes td-pulse { 0%, 100% { box-shadow: 0 0 0 0 rgba(179,38,30,.45); } 50% { box-shadow: 0 0 0 6px rgba(179,38,30,0); } }
.td-phone__fine { margin: 0; padding: 8px 14px 12px; background: #fff; font-size: 11.5px; line-height: 1.4; color: #6b6f72; }

/* Points */
.td-points { max-width: 1180px; margin: 0 auto; padding: 0 24px 96px; }
.td-points h2 { margin: 0 0 24px; font: 600 clamp(28px, 3.6vw, 42px)/1.05 var(--display); text-transform: uppercase; color: var(--ivory); }
.td-points ul { list-style: none; margin: 0; padding: 0; display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 18px; }
.td-points li { border-top: 1px solid var(--line); padding-top: 16px; color: var(--text); }
.td-points strong { display: block; color: var(--ivory); margin-bottom: 4px; }
.td-end { display: flex; align-items: center; justify-content: space-between; gap: 24px; flex-wrap: wrap; margin-top: 48px; padding: 28px;
  border: 1px solid var(--line); border-radius: 10px; }
.td-end p { margin: 0; max-width: 36em; color: var(--ivory); font-size: 18px; }

@media (max-width: 900px) {
  .td-hero { grid-template-columns: minmax(0, 1fr); grid-template-areas: "copy" "phone" "owner"; grid-template-rows: auto; row-gap: 32px; padding: 20px 16px 56px; }
  .td-phone { position: relative; top: 0; height: 620px; min-height: 0; border-width: 8px; border-radius: 28px; }
  .td-owner { margin-top: 0; }
  .td-points { padding: 0 16px 72px; }
  .td-points ul { grid-template-columns: 1fr; }
  .td-bar { padding: 14px 16px; }
}
@media (max-width: 480px) {
  .td-brand img { height: 32px; }
  .td-pill { display: none; }
  .td-bar { gap: 10px; }
  .td-bar .td-langs--bar button { min-width: 34px; padding: 7px 7px; }
  .td-cta--small { padding: 10px 11px; font-size: 12px; }
  .td-owner__grid { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .td-lede { font-size: 16.5px; }
}
@media (prefers-reduced-motion: reduce) { *, *::before, *::after { animation: none !important; transition: none !important; } }
