/* SHETALA — conversational commerce interface.
   Presentation only. Every product fact on this page is rendered exactly as the
   assistant sent it; this stylesheet never invents, formats or rounds a value. */

:root {
  --blue-900: #071c33;
  --blue-800: #0a2540;
  --blue-700: #12386b;
  --blue-600: #1b4fa0;
  --blue-500: #2563c9;
  --blue-400: #4b84e8;
  --blue-100: #d9e6fb;
  --blue-050: #eef4ff;

  --ink: #0f1b2d;
  --ink-soft: #43536b;
  --ink-mute: #6b7a92;

  --paper: #ffffff;
  --paper-2: #f6f9fd;
  --paper-3: #eef3fa;
  --line: #e0e8f4;
  --line-soft: #edf2f9;

  --warn: #8a5a00;
  --warn-bg: #fff8e8;

  --radius-s: 10px;
  --radius-m: 14px;
  --radius-l: 20px;
  --radius-xl: 28px;

  --shadow-1: 0 1px 2px rgba(10, 37, 64, .06), 0 1px 3px rgba(10, 37, 64, .05);
  --shadow-2: 0 4px 14px rgba(10, 37, 64, .07), 0 1px 3px rgba(10, 37, 64, .05);
  --shadow-3: 0 18px 44px rgba(10, 37, 64, .12);

  --col: 860px;
  --gutter: 28px;

  --font: "Inter", "Segoe UI", system-ui, -apple-system, "Helvetica Neue", Arial, sans-serif;
}

* { box-sizing: border-box; }

html, body {
  height: 100%;
  margin: 0;
  padding: 0;
}

body {
  font-family: var(--font);
  font-size: 16px;
  line-height: 1.6;
  color: var(--ink);
  background: var(--paper-2);
  -webkit-font-smoothing: antialiased;
  overflow: hidden;
}

button { font: inherit; color: inherit; }

/* ------------------------------------------------------------- app shell */

.app {
  display: flex;
  flex-direction: column;
  height: 100vh;
  height: 100dvh;
  width: 100%;
  background:
    radial-gradient(1200px 620px at 50% -220px, var(--blue-050) 0%, rgba(238, 244, 255, 0) 72%),
    var(--paper-2);
}

/* ---------------------------------------------------------------- topbar */

.topbar {
  flex: 0 0 auto;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
  padding: 14px var(--gutter);
  background: rgba(255, 255, 255, .82);
  backdrop-filter: saturate(1.6) blur(12px);
  -webkit-backdrop-filter: saturate(1.6) blur(12px);
  border-bottom: 1px solid var(--line-soft);
  z-index: 5;
}

.brand { display: flex; align-items: center; gap: 12px; min-width: 0; }

.brand__mark {
  width: 38px; height: 38px;
  display: grid; place-items: center;
  border-radius: 11px;
  color: #fff;
  background: linear-gradient(150deg, var(--blue-500), var(--blue-700));
  box-shadow: var(--shadow-2);
  flex: 0 0 auto;
}
.brand__mark svg { width: 24px; height: 24px; fill: none; }

.brand__text { display: flex; flex-direction: column; min-width: 0; }

.brand__name {
  font-size: 17px;
  font-weight: 700;
  letter-spacing: .16em;
  color: var(--blue-800);
  line-height: 1.2;
}

.brand__tag {
  font-size: 12.5px;
  color: var(--ink-mute);
  line-height: 1.3;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}

.ghost-btn {
  flex: 0 0 auto;
  border: 1px solid var(--line);
  background: var(--paper);
  color: var(--blue-700);
  font-size: 14px;
  font-weight: 600;
  padding: 9px 16px;
  border-radius: 999px;
  cursor: pointer;
  transition: background .16s, border-color .16s, transform .16s;
}
.ghost-btn:hover { background: var(--blue-050); border-color: var(--blue-100); }
.ghost-btn:active { transform: translateY(1px); }

/* ----------------------------------------------------------------- stage */

.stage {
  flex: 1 1 auto;
  overflow-y: auto;
  overflow-x: hidden;
  scroll-behavior: smooth;
  overscroll-behavior: contain;
}

.stage > * { padding-left: var(--gutter); padding-right: var(--gutter); }

/* ------------------------------------------------------------------ hero */

.hero {
  display: flex;
  align-items: center;
  justify-content: center;
  min-height: 100%;
  padding-top: 40px;
  padding-bottom: 40px;
}
.hero[hidden] { display: none; }

.hero__inner {
  width: 100%;
  max-width: 900px;
  margin: 0 auto;
  text-align: center;
  animation: rise .5s cubic-bezier(.2, .7, .3, 1) both;
}

.hero__logo {
  width: 76px; height: 76px;
  margin: 0 auto 22px;
  color: var(--blue-600);
  opacity: .92;
}
.hero__logo svg { width: 100%; height: 100%; fill: none; }

.hero__title {
  margin: 0;
  font-size: clamp(38px, 6vw, 58px);
  font-weight: 700;
  letter-spacing: .2em;
  text-indent: .2em;
  color: var(--blue-800);
  line-height: 1.05;
}

.hero__sub {
  margin: 10px 0 0;
  font-size: clamp(15px, 2vw, 18px);
  color: var(--ink-mute);
}

.hero__welcome {
  margin: 30px auto 26px;
  max-width: 560px;
  font-size: clamp(19px, 2.6vw, 24px);
  font-weight: 600;
  color: var(--ink);
  line-height: 1.35;
}

.starters {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 14px;
  text-align: left;
}

.starter {
  display: flex;
  align-items: flex-start;
  gap: 12px;
  padding: 16px 16px 15px;
  background: var(--paper);
  border: 1px solid var(--line);
  border-radius: var(--radius-m);
  box-shadow: var(--shadow-1);
  cursor: pointer;
  text-align: left;
  transition: border-color .16s, box-shadow .16s, transform .16s, background .16s;
}
.starter:hover {
  border-color: var(--blue-100);
  box-shadow: var(--shadow-2);
  transform: translateY(-2px);
}
.starter:active { transform: translateY(0); }

.starter__icon {
  flex: 0 0 auto;
  width: 34px; height: 34px;
  display: grid; place-items: center;
  border-radius: 10px;
  background: var(--blue-050);
  color: var(--blue-600);
}
.starter__icon svg {
  width: 19px; height: 19px;
  fill: none;
  stroke: currentColor;
  stroke-width: 1.7;
  stroke-linecap: round;
  stroke-linejoin: round;
}

.starter__body { display: flex; flex-direction: column; gap: 3px; min-width: 0; }
.starter__label { font-size: 15px; font-weight: 650; color: var(--blue-800); }
.starter__hint { font-size: 12.5px; line-height: 1.4; color: var(--ink-mute); }

/* ---------------------------------------------------------------- thread */

.thread {
  max-width: var(--col);
  margin: 0 auto;
  padding-top: 30px;
  padding-bottom: 26px;
  display: flex;
  flex-direction: column;
  gap: 26px;
}
.thread:empty { display: none; }

.turn { animation: rise .34s cubic-bezier(.2, .7, .3, 1) both; }

/* --- visitor ------------------------------------------------------------ */

.turn--user { display: flex; justify-content: flex-end; }

.turn--user .bubble {
  max-width: min(76%, 620px);
  padding: 12px 18px;
  border-radius: var(--radius-l) var(--radius-l) 6px var(--radius-l);
  background: linear-gradient(160deg, var(--blue-500), var(--blue-600));
  color: #fff;
  font-size: 15.5px;
  line-height: 1.55;
  box-shadow: 0 6px 18px rgba(27, 79, 160, .22);
  overflow-wrap: anywhere;
}

/* --- assistant ---------------------------------------------------------- */

.turn--bot { display: flex; gap: 14px; align-items: flex-start; }

.avatar {
  flex: 0 0 auto;
  width: 32px; height: 32px;
  margin-top: 2px;
  display: grid; place-items: center;
  border-radius: 9px;
  color: #fff;
  background: linear-gradient(150deg, var(--blue-500), var(--blue-700));
  box-shadow: var(--shadow-1);
}
.avatar svg { width: 19px; height: 19px; fill: none; }

.say { min-width: 0; flex: 1 1 auto; }

.say > p {
  margin: 0 0 12px;
  font-size: 15.8px;
  line-height: 1.68;
  color: var(--ink);
  overflow-wrap: anywhere;
}
.say > p:last-child { margin-bottom: 0; }

.say > ul { margin: 0 0 12px; padding: 0; list-style: none; }
.say > ul > li {
  position: relative;
  padding-left: 18px;
  margin-bottom: 7px;
  font-size: 15.4px;
  line-height: 1.6;
  color: var(--ink);
  overflow-wrap: anywhere;
}
.say > ul > li::before {
  content: "";
  position: absolute;
  left: 3px; top: .68em;
  width: 5px; height: 5px;
  border-radius: 50%;
  background: var(--blue-400);
}
.say > ul > li .sub {
  display: block;
  font-size: 13.6px;
  color: var(--ink-mute);
  line-height: 1.5;
  margin-top: 2px;
}

.quote {
  margin: 0 0 14px;
  padding: 12px 16px;
  border-left: 3px solid var(--blue-400);
  border-radius: 0 var(--radius-s) var(--radius-s) 0;
  background: var(--blue-050);
}
.quote__who {
  display: block;
  font-size: 11.5px;
  font-weight: 700;
  letter-spacing: .1em;
  text-transform: uppercase;
  color: var(--blue-600);
  margin-bottom: 4px;
}
.quote__text {
  margin: 0;
  font-size: 15px;
  line-height: 1.6;
  color: var(--ink-soft);
}

/* --- states -------------------------------------------------------------- */

.notice {
  display: flex;
  gap: 10px;
  align-items: flex-start;
  padding: 13px 16px;
  border-radius: var(--radius-m);
  border: 1px solid var(--line);
  background: var(--paper);
  margin-bottom: 12px;
}
.notice:last-child { margin-bottom: 0; }
.notice__dot {
  flex: 0 0 auto;
  width: 8px; height: 8px;
  border-radius: 50%;
  margin-top: 9px;
  background: var(--blue-400);
}
.notice--ask { background: var(--blue-050); border-color: var(--blue-100); }
.notice--none .notice__dot { background: var(--ink-mute); }
.notice--error { background: var(--warn-bg); border-color: #f0dfb8; }
.notice--error .notice__dot { background: var(--warn); }
.notice__body { min-width: 0; }
.notice__body p { margin: 0; font-size: 15.2px; line-height: 1.6; }
.notice__label {
  display: block;
  font-size: 11.5px;
  font-weight: 700;
  letter-spacing: .09em;
  text-transform: uppercase;
  color: var(--ink-mute);
  margin-bottom: 3px;
}

.retry-btn {
  margin-top: 10px;
  border: 1px solid var(--line);
  background: var(--paper);
  color: var(--blue-700);
  font-size: 13.5px;
  font-weight: 600;
  padding: 7px 14px;
  border-radius: 999px;
  cursor: pointer;
}
.retry-btn:hover { background: var(--blue-050); }

.thinking { display: flex; align-items: center; gap: 10px; padding-top: 4px; }
.thinking__label { font-size: 14.5px; color: var(--ink-mute); }
.dots { display: inline-flex; gap: 4px; }
.dots i {
  width: 6px; height: 6px;
  border-radius: 50%;
  background: var(--blue-400);
  animation: blink 1.15s infinite ease-in-out both;
}
.dots i:nth-child(2) { animation-delay: .16s; }
.dots i:nth-child(3) { animation-delay: .32s; }

/* ----------------------------------------------------------------- cards */

.cards {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(212px, 1fr));
  gap: 14px;
  margin-top: 14px;
}
.cards--one { grid-template-columns: minmax(0, 320px); }
.cards--two { grid-template-columns: repeat(2, minmax(0, 1fr)); }

.card {
  display: flex;
  flex-direction: column;
  background: var(--paper);
  border: 1px solid var(--line);
  border-radius: var(--radius-m);
  box-shadow: var(--shadow-1);
  overflow: hidden;
  transition: box-shadow .18s, border-color .18s, transform .18s;
}
.card:hover { box-shadow: var(--shadow-2); border-color: var(--blue-100); transform: translateY(-2px); }

.card__shot {
  position: relative;
  height: 162px;
  background: var(--paper-3);
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 12px;
  overflow: hidden;
  border-bottom: 1px solid var(--line-soft);
}
.card__shot img {
  width: 100%;
  height: 100%;
  object-fit: contain;
  mix-blend-mode: multiply;
}

.card__noimage {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 6px;
  color: var(--ink-mute);
  font-size: 12.5px;
  text-align: center;
  padding: 8px;
}
.card__noimage svg { width: 26px; height: 26px; fill: none; stroke: currentColor; stroke-width: 1.6; }

.card__body { padding: 12px 15px 13px; display: flex; flex-direction: column; gap: 7px; flex: 1 1 auto; }

.card__brand {
  font-size: 11px;
  font-weight: 700;
  letter-spacing: .12em;
  text-transform: uppercase;
  color: var(--blue-600);
}

.card__name {
  font-size: 14.2px;
  font-weight: 650;
  line-height: 1.38;
  color: var(--ink);
  overflow-wrap: anywhere;
}

.card__price { font-size: 17.5px; font-weight: 700; color: var(--blue-800); }
.card__price--na { font-size: 14.5px; font-weight: 600; color: var(--ink-mute); }

.card__facts { margin: 0; display: grid; grid-template-columns: auto minmax(0, 1fr); gap: 4px 12px; }
.card__facts dt { font-size: 12.4px; color: var(--ink-mute); }
.card__facts dd { margin: 0; font-size: 12.8px; color: var(--ink); overflow-wrap: anywhere; }

.card__why {
  display: flex;
  gap: 8px;
  padding: 8px 10px;
  border-radius: var(--radius-s);
  background: var(--blue-050);
  font-size: 12.4px;
  line-height: 1.45;
  color: var(--blue-700);
}
.card__why svg { flex: 0 0 auto; width: 14px; height: 14px; margin-top: 3px; fill: none; stroke: currentColor; stroke-width: 1.9; }

.card__note {
  font-size: 11.9px;
  line-height: 1.45;
  color: var(--ink-mute);
}
.card__note--hold {
  color: var(--warn);
  background: var(--warn-bg);
  border-radius: var(--radius-s);
  padding: 9px 11px;
}

.card__actions {
  display: flex;
  flex-wrap: wrap;
  gap: 6px;
  margin-top: auto;
  padding-top: 10px;
  border-top: 1px solid var(--line-soft);
}

/* Actions about the shortlist as a whole, not about one product. */
.answer-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 7px;
  margin-top: 11px;
}

.chip {
  border: 1px solid var(--line);
  background: var(--paper-2);
  color: var(--blue-700);
  font-size: 12.4px;
  font-weight: 600;
  padding: 6px 11px;
  border-radius: 999px;
  cursor: pointer;
  transition: background .15s, border-color .15s;
  white-space: nowrap;
}
.chip:hover { background: var(--blue-050); border-color: var(--blue-100); }
.chip:disabled { opacity: .5; cursor: default; }

/* ------------------------------------------------------------ comparison */

.compare {
  margin-top: 18px;
  border: 1px solid var(--line);
  border-radius: var(--radius-m);
  background: var(--paper);
  box-shadow: var(--shadow-1);
  overflow: hidden;
}

.compare__head {
  padding: 11px 16px;
  font-size: 11.5px;
  font-weight: 700;
  letter-spacing: .1em;
  text-transform: uppercase;
  color: var(--blue-600);
  background: var(--blue-050);
  border-bottom: 1px solid var(--line-soft);
}

.compare__scroll { overflow-x: auto; -webkit-overflow-scrolling: touch; }

.compare table { border-collapse: collapse; width: 100%; min-width: 460px; }

.compare th, .compare td {
  text-align: left;
  padding: 10px 16px;
  font-size: 13.4px;
  line-height: 1.5;
  border-bottom: 1px solid var(--line-soft);
  vertical-align: top;
}
.compare tr:last-child th, .compare tr:last-child td { border-bottom: 0; }

.compare thead th {
  font-size: 13px;
  font-weight: 650;
  color: var(--ink);
  background: var(--paper-2);
  border-bottom: 1px solid var(--line);
}
.compare thead th:first-child { width: 26%; color: var(--ink-mute); font-weight: 600; }

.compare tbody th { font-weight: 500; color: var(--ink-mute); }
.compare tbody td { color: var(--ink); overflow-wrap: anywhere; }
.compare tbody tr.same td { color: var(--ink-soft); }

/* ------------------------------------------------------------------ dock */

.dock {
  flex: 0 0 auto;
  padding: 12px var(--gutter) calc(14px + env(safe-area-inset-bottom));
  background: linear-gradient(to top, var(--paper-2) 58%, rgba(246, 249, 253, 0));
  z-index: 4;
}

.composer { max-width: var(--col); margin: 0 auto; }

.composer__inner {
  display: flex;
  align-items: flex-end;
  gap: 10px;
  padding: 8px 8px 8px 18px;
  background: var(--paper);
  border: 1px solid var(--line);
  border-radius: var(--radius-xl);
  box-shadow: var(--shadow-3);
  transition: border-color .16s, box-shadow .16s;
}
.composer__inner:focus-within {
  border-color: var(--blue-400);
  box-shadow: var(--shadow-3), 0 0 0 4px rgba(75, 132, 232, .14);
}

.composer__input {
  flex: 1 1 auto;
  min-width: 0;
  border: 0;
  outline: 0;
  resize: none;
  background: transparent;
  font-family: inherit;
  font-size: 16px;
  line-height: 1.55;
  color: var(--ink);
  padding: 10px 0;
  max-height: 176px;
  overflow-y: auto;
}
.composer__input::placeholder { color: var(--ink-mute); }

.composer__tools { display: flex; align-items: center; gap: 6px; padding-bottom: 2px; }
.composer__reserved { display: none; }

.send-btn {
  flex: 0 0 auto;
  width: 42px; height: 42px;
  display: grid; place-items: center;
  border: 0;
  border-radius: 50%;
  background: linear-gradient(150deg, var(--blue-500), var(--blue-700));
  color: #fff;
  cursor: pointer;
  box-shadow: 0 4px 12px rgba(27, 79, 160, .3);
  transition: opacity .16s, transform .16s;
}
.send-btn svg { width: 19px; height: 19px; fill: currentColor; transform: translateX(1px); }
.send-btn:hover { transform: scale(1.04); }
.send-btn:disabled { opacity: .42; cursor: default; transform: none; box-shadow: none; }

.composer__note {
  margin: 9px 0 0;
  text-align: center;
  font-size: 11.8px;
  color: var(--ink-mute);
}

/* ---------------------------------------------------------------- motion */

@keyframes rise {
  from { opacity: 0; transform: translateY(9px); }
  to   { opacity: 1; transform: none; }
}
@keyframes blink {
  0%, 80%, 100% { opacity: .25; transform: scale(.8); }
  40%           { opacity: 1;   transform: scale(1); }
}

@media (prefers-reduced-motion: reduce) {
  *, .turn, .hero__inner { animation: none !important; transition: none !important; }
  .stage { scroll-behavior: auto; }
}

/* ------------------------------------------------------------ responsive */

@media (max-width: 900px) {
  .starters { grid-template-columns: repeat(2, minmax(0, 1fr)); }
}

@media (max-width: 720px) {
  :root { --gutter: 16px; }

  body { font-size: 15.5px; }

  .topbar { padding: 10px var(--gutter); }
  .brand__mark { width: 34px; height: 34px; border-radius: 10px; }
  .brand__mark svg { width: 21px; height: 21px; }
  .brand__name { font-size: 15px; letter-spacing: .14em; }
  .brand__tag { font-size: 11.5px; }
  .ghost-btn { padding: 8px 13px; font-size: 13px; }

  .hero { padding-top: 24px; padding-bottom: 24px; }
  .hero__logo { width: 60px; height: 60px; margin-bottom: 16px; }
  .hero__welcome { margin: 22px auto 20px; }

  .starters { grid-template-columns: minmax(0, 1fr); gap: 10px; }
  .starter { padding: 13px 14px; }
  .starter__hint { font-size: 12px; }

  .thread { padding-top: 20px; gap: 22px; }
  .turn--user .bubble { max-width: 88%; font-size: 15px; }
  .turn--bot { gap: 10px; }
  .avatar { width: 28px; height: 28px; border-radius: 8px; }
  .avatar svg { width: 17px; height: 17px; }
  .say > p, .say > ul > li { font-size: 15px; }

  .cards,
  .cards--one,
  .cards--two { grid-template-columns: minmax(0, 1fr); gap: 12px; }

  .card__shot { height: 194px; }

  .compare table { min-width: 420px; }
  .compare th, .compare td { padding: 9px 13px; font-size: 12.8px; }

  .dock { padding: 8px var(--gutter) calc(10px + env(safe-area-inset-bottom)); }
  .composer__inner { padding-left: 15px; border-radius: 24px; }
  .composer__input { font-size: 16px; padding: 9px 0; max-height: 132px; }
  .send-btn { width: 38px; height: 38px; }
  .composer__note { font-size: 11px; margin-top: 7px; }
}

@media (max-width: 420px) {
  .brand__tag { display: none; }
}
