@font-face {
  font-family: "Darker Grotesque";
  src: url("fonts/darker-grotesque-latin.woff2") format("woff2");
  font-weight: 300 900;
  font-style: normal;
  font-display: swap;
}

@font-face {
  font-family: "Source Sans 3";
  src: url("fonts/source-sans-3-latin.woff2") format("woff2");
  font-weight: 200 900;
  font-style: normal;
  font-display: swap;
}

:root {
  color-scheme: light;
  --bg: #F7F8F6;
  --surface: #FFFFFF;
  --steel: #CBD1D2;
  --steel-2: #E9ECEC;
  --ink: #222A2D;
  --muted: #526065;
  --accent: #773D24;
  --accent-hover: #63301C;
  --on-accent: #FFFFFF;
  --focus: #773D24;
  --radius: 6px;
  --display: "Darker Grotesque", "Arial Narrow", sans-serif;
  --body: "Source Sans 3", "Segoe UI", sans-serif;
  --wrap: 1184px;
  --gutter: 18px;
}

*,
*::before,
*::after {
  box-sizing: border-box;
}

html {
  max-width: 100%;
  overflow-x: clip;
  scroll-behavior: smooth;
  scrollbar-color: var(--steel) var(--bg);
}

html[data-lang="ms"] .lang-en {
  display: none !important;
}

html[data-lang="en"] .lang-ms {
  display: none !important;
}

body {
  margin: 0;
  max-width: 100%;
  overflow-x: clip;
  background: var(--bg);
  color: var(--ink);
  font-family: var(--body);
  font-size: 1.0625rem;
  font-weight: 400;
  line-height: 1.55;
  -webkit-font-smoothing: antialiased;
  text-rendering: optimizeLegibility;
}

::selection {
  background: var(--accent);
  color: var(--on-accent);
}

:focus-visible {
  outline: 2px solid var(--focus);
  outline-offset: 3px;
}

[hidden] {
  display: none !important;
}

.sr-only {
  position: absolute;
  width: 1px;
  height: 1px;
  padding: 0;
  margin: -1px;
  overflow: hidden;
  clip: rect(0 0 0 0);
  white-space: nowrap;
  border: 0;
}

.skip {
  position: absolute;
  top: -5rem;
  left: 1rem;
  z-index: 60;
  padding: 0.65rem 0.85rem;
  border-radius: var(--radius);
  background: var(--accent);
  color: var(--on-accent);
  font-weight: 700;
  text-decoration: none;
}

.skip:focus {
  top: 0.65rem;
}

.wrap {
  width: min(var(--wrap), calc(100% - (var(--gutter) * 2)));
  margin-inline: auto;
}

a {
  color: inherit;
}

img,
svg {
  display: block;
  max-width: 100%;
}

/* Header */
.site-header {
  height: 56px;
  border-bottom: 1px solid var(--steel);
  background: var(--bg);
}

.header-inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  height: 100%;
}

.brand {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  min-width: 0;
  color: var(--ink);
  text-decoration: none;
}

.brand-mark {
  display: grid;
  place-items: center;
  flex: none;
  width: 26px;
  height: 26px;
  border-radius: 4px;
  background: var(--accent);
  color: var(--on-accent);
  font-family: var(--display);
  font-size: 0.78rem;
  font-weight: 700;
  letter-spacing: -0.02em;
}

.brand-name {
  font-family: var(--display);
  font-size: 1.4rem;
  font-weight: 700;
  line-height: 1.2;
  letter-spacing: -0.02em;
  white-space: nowrap;
}

.lang-switch {
  display: inline-flex;
  flex: none;
  gap: 2px;
  padding: 2px;
  border: 1px solid var(--steel);
  border-radius: 999px;
  background: var(--surface);
}

.lang-switch button {
  min-width: 42px;
  min-height: 36px;
  padding: 0 8px;
  border: 0;
  border-radius: 999px;
  background: transparent;
  color: var(--muted);
  font-family: var(--body);
  font-size: 0.72rem;
  font-weight: 700;
  letter-spacing: 0.06em;
  cursor: pointer;
  transition: background 0.18s ease, color 0.18s ease;
}

.lang-switch button:hover {
  color: var(--ink);
}

.lang-switch button[aria-pressed="true"] {
  background: var(--ink);
  color: var(--surface);
}

/* Hero */
.hero {
  padding: 16px 0 24px;
}

.hero-inner {
  display: grid;
  gap: 12px;
  align-items: start;
}

.hero-photo {
  position: relative;
  min-width: 0;
  margin: 0;
}

.photo-frame {
  display: block;
  overflow: hidden;
  border: 1px solid var(--steel);
  border-radius: var(--radius);
  background: var(--steel-2);
}

.photo-frame picture,
.product-media picture {
  display: block;
}

.photo-frame img {
  width: 100%;
  height: auto;
  aspect-ratio: 16 / 9;
  object-fit: cover;
  object-position: 50% 55%;
  transition: transform 0.25s ease;
}

.photo-tag {
  position: absolute;
  top: 10px;
  left: 10px;
  display: inline-flex;
  align-items: center;
  padding: 3px 7px;
  border: 1px solid var(--steel);
  border-radius: 3px;
  background: var(--surface);
  color: var(--ink);
  font-size: 0.68rem;
  font-weight: 600;
  letter-spacing: 0.04em;
  line-height: 1.3;
  text-transform: uppercase;
}

.photo-caption {
  margin: 6px 0 0;
  color: var(--muted);
  font-size: 0.75rem;
  line-height: 1.4;
}

.hero-copy {
  min-width: 0;
}

.hero-eyebrow {
  margin: 0 0 8px;
  color: var(--muted);
  font-size: 0.8rem;
  font-weight: 600;
  letter-spacing: 0.04em;
  line-height: 1.4;
}

.hero-title {
  margin: 0;
  color: var(--ink);
  font-family: var(--display);
  font-size: clamp(2.25rem, 1.7rem + 2.2vw, 3.75rem);
  font-weight: 700;
  line-height: 1.06;
  letter-spacing: -0.02em;
  text-wrap: balance;
}

.hero-value {
  max-width: 40ch;
  margin: 8px 0 0;
  color: var(--muted);
  font-size: 1.0625rem;
  line-height: 1.55;
  overflow-wrap: anywhere;
}

.cta-row {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 12px;
  margin-top: 12px;
}

.btn-primary {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  min-height: 48px;
  max-width: 100%;
  padding: 0 18px;
  border-radius: var(--radius);
  background: var(--accent);
  color: var(--on-accent);
  font-size: 0.95rem;
  font-weight: 600;
  line-height: 1.2;
  text-align: center;
  text-decoration: none;
  transition: background 0.18s ease, transform 0.12s ease;
}

.btn-primary:hover {
  background: var(--accent-hover);
}

.btn-primary:active {
  transform: scale(0.97);
}

.btn-primary svg {
  flex: none;
}

.pill-off {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 40px;
  max-width: 100%;
  padding: 6px 14px;
  border: 1px solid var(--steel);
  border-radius: 999px;
  background: var(--steel-2);
  color: var(--muted);
  font-size: 0.8rem;
  font-weight: 600;
  line-height: 1.3;
  text-align: center;
  user-select: none;
}

/* Shop products */
.shop {
  padding: 32px 0 8px;
}

.shop-grid {
  display: grid;
  grid-template-columns: minmax(0, 1fr);
  gap: 32px;
  align-items: start;
}

.products-col,
.chat-section {
  min-width: 0;
}

.section-title {
  margin: 0 0 16px;
  color: var(--ink);
  font-family: var(--display);
  font-size: clamp(1.75rem, 1.4rem + 1vw, 2.5rem);
  font-weight: 700;
  line-height: 1.1;
  letter-spacing: -0.02em;
}

.product-grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 12px;
}

.product-card {
  min-width: 0;
  padding: 10px;
  border: 1px solid var(--steel);
  border-radius: var(--radius);
  background: var(--surface);
}

.product-media {
  display: grid;
  place-items: center;
  aspect-ratio: 1;
  overflow: hidden;
  background: var(--surface);
}

.product-media picture {
  width: 100%;
  height: 100%;
}

.product-media img {
  width: 100%;
  height: 100%;
  object-fit: contain;
  transition: transform 0.25s ease;
}

.product-card:hover .product-media img {
  transform: scale(1.03);
}

.product-card h3 {
  margin: 10px 0 0;
  color: var(--ink);
  font-family: var(--display);
  font-size: 1.3rem;
  font-weight: 700;
  line-height: 1.15;
  letter-spacing: -0.01em;
}

.credit {
  margin: 6px 0 0;
  color: var(--muted);
  font-size: 0.72rem;
  line-height: 1.4;
}

.product-empty {
  display: flex;
  align-items: center;
  gap: 12px;
  margin-top: 12px;
  padding: 16px;
  border-style: dashed;
}

.product-empty h3 {
  margin: 0;
  font-size: 1.2rem;
}

.placeholder-icon {
  display: grid;
  place-items: center;
  flex: none;
  width: 40px;
  height: 40px;
  border: 1px dashed var(--steel);
  border-radius: 4px;
  color: var(--accent);
}

.placeholder-sub {
  margin: 4px 0 0;
  color: var(--muted);
  font-size: 0.82rem;
  line-height: 1.4;
}

.shop-note {
  max-width: 48ch;
  margin: 14px 0 0;
  color: var(--muted);
  font-size: 0.82rem;
  line-height: 1.5;
  overflow-wrap: anywhere;
}

.shop-link-line {
  margin: 6px 0 0;
  font-size: 0.9rem;
  line-height: 1.5;
}

.shop-link {
  color: var(--accent);
  font-weight: 600;
  text-decoration: underline;
  text-decoration-thickness: 1px;
  text-underline-offset: 3px;
}

.shop-link:hover {
  color: var(--accent-hover);
}

/* Chat card */
.chat-card {
  border: 1px solid var(--steel);
  border-radius: var(--radius);
  background: var(--surface);
  scroll-margin-top: 16px;
}

.chat-top {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  padding: 12px 16px;
  border-bottom: 1px solid var(--steel);
}

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

.status-dot {
  flex: none;
  width: 8px;
  height: 8px;
  border-radius: 50%;
  background: #2F7D4F;
}

.who-name {
  min-width: 0;
  color: var(--ink);
  font-size: 0.92rem;
  font-weight: 600;
  line-height: 1.3;
}

.chip {
  display: inline-flex;
  align-items: center;
  gap: 4px;
  padding: 2px 7px;
  border: 1px solid var(--steel);
  border-radius: 999px;
  font-size: 0.68rem;
  font-weight: 600;
  line-height: 1.3;
  white-space: nowrap;
}

.chip-demo {
  flex: none;
  background: var(--steel-2);
  color: var(--ink);
  font-weight: 700;
  letter-spacing: 0.05em;
  text-transform: uppercase;
}

.chat-log {
  display: flex;
  flex-direction: column;
  gap: 12px;
  min-height: 0;
  max-height: min(60svh, 30rem);
  padding: 14px 16px 16px;
  overflow-y: auto;
  overscroll-behavior: contain;
  scrollbar-width: thin;
  scrollbar-color: var(--steel) transparent;
}

.chat-log::-webkit-scrollbar {
  width: 8px;
}

.chat-log::-webkit-scrollbar-thumb {
  border: 2px solid transparent;
  border-radius: 999px;
  background: var(--steel);
  background-clip: padding-box;
}

.example-label {
  margin: 2px 0 0;
  color: var(--muted);
  font-size: 0.7rem;
  font-weight: 600;
  letter-spacing: 0.08em;
  line-height: 1.4;
  text-align: center;
  text-transform: uppercase;
}

.msg {
  display: flex;
  align-items: flex-end;
  gap: 8px;
  max-width: 100%;
}

.msg-user {
  justify-content: flex-end;
}

.msg-live {
  animation: msg-in 0.2s ease-out both;
}

@keyframes msg-in {
  from {
    opacity: 0;
    transform: translateY(6px);
  }
  to {
    opacity: 1;
    transform: none;
  }
}

.avatar {
  display: grid;
  place-items: center;
  flex: none;
  width: 26px;
  height: 26px;
  border: 1px solid var(--steel);
  border-radius: 50%;
  background: var(--surface);
  color: var(--accent);
  font-family: var(--display);
  font-size: 0.68rem;
  font-weight: 700;
  letter-spacing: -0.02em;
}

.bubble {
  max-width: 85%;
  min-width: 0;
  padding: 9px 12px;
  border-radius: 8px;
  font-size: 0.93rem;
  line-height: 1.55;
}

.msg-assistant .bubble {
  border: 1px solid var(--steel-2);
  border-bottom-left-radius: 2px;
  background: var(--steel-2);
  color: var(--ink);
}

.msg-user .bubble {
  border-bottom-right-radius: 2px;
  background: var(--accent);
  color: var(--on-accent);
}

.msg-example .bubble,
.msg-example.msg-user .bubble,
.msg-example.msg-assistant .bubble {
  border: 1px dashed var(--steel);
  border-radius: 8px;
  background: var(--surface);
  color: var(--muted);
}

.msg-example .avatar {
  color: var(--muted);
}

.bubble-text {
  margin: 0;
  white-space: pre-wrap;
  overflow-wrap: anywhere;
}

.bubble-meta {
  display: flex;
  flex-wrap: wrap;
  gap: 6px;
  margin-top: 8px;
}

.chip-handoff {
  border-color: var(--ink);
  background: transparent;
  color: var(--ink);
}

.chip-saved {
  border-color: var(--accent);
  background: #FBF4EF;
  color: var(--accent);
}

.typing {
  animation: none;
}

.typing .bubble {
  display: flex;
  align-items: center;
  gap: 4px;
  min-height: 34px;
}

.typing .bubble span {
  width: 6px;
  height: 6px;
  border-radius: 50%;
  background: var(--muted);
  animation: dot-bounce 1.15s ease-in-out infinite;
}

.typing .bubble span:nth-child(2) {
  animation-delay: 0.14s;
}

.typing .bubble span:nth-child(3) {
  animation-delay: 0.28s;
}

@keyframes dot-bounce {
  0%,
  60%,
  100% {
    transform: translateY(0);
    opacity: 0.5;
  }
  30% {
    transform: translateY(-4px);
    opacity: 1;
  }
}

/* Suggestions */
.quick-wrap {
  border-top: 1px solid var(--steel);
  background: #FCFDFC;
}

.quick-row {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  padding: 12px 16px;
}

.quick {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 40px;
  max-width: 100%;
  padding: 0 12px;
  border: 1px solid var(--steel);
  border-radius: 999px;
  background: var(--surface);
  color: var(--ink);
  font-family: var(--body);
  font-size: 0.82rem;
  font-weight: 600;
  line-height: 1.2;
  text-align: center;
  cursor: pointer;
  transition: background 0.18s ease, border-color 0.18s ease, transform 0.12s ease;
}

.quick:hover {
  border-color: #B7BFC0;
  background: var(--steel-2);
}

.quick:active {
  transform: scale(0.97);
}

/* Error */
.alert {
  display: flex;
  align-items: flex-start;
  gap: 8px;
  margin: 10px 16px 0;
  padding: 8px 8px 8px 12px;
  border: 1px solid #D8B7A6;
  border-radius: var(--radius);
  background: #FBF4EF;
  color: var(--ink);
  font-size: 0.85rem;
  line-height: 1.45;
}

.alert > svg {
  flex: none;
  margin-top: 2px;
  color: var(--accent);
}

.alert p {
  flex: 1 1 auto;
  min-width: 0;
  margin: 0;
  overflow-wrap: anywhere;
}

.alert-close {
  display: grid;
  place-items: center;
  flex: none;
  width: 40px;
  height: 40px;
  margin: -6px -6px -6px 0;
  border: 0;
  border-radius: var(--radius);
  background: transparent;
  color: var(--muted);
  cursor: pointer;
}

.alert-close:hover {
  background: var(--steel-2);
  color: var(--ink);
}

/* Composer */
.composer {
  padding: 12px 16px 14px;
  border-top: 1px solid var(--steel);
  background: var(--surface);
}

.composer-row {
  display: flex;
  align-items: flex-end;
  gap: 8px;
  padding: 4px 4px 4px 12px;
  border: 1px solid var(--steel);
  border-radius: 8px;
  background: var(--surface);
}

.composer-row:focus-within {
  border-color: var(--accent);
}

#message {
  display: block;
  flex: 1 1 auto;
  min-width: 0;
  max-height: 7.4rem;
  padding: 9px 0;
  border: 0;
  outline: none;
  background: transparent;
  color: var(--ink);
  font-family: var(--body);
  font-size: 1rem;
  line-height: 1.45;
  resize: none;
}

#message::placeholder {
  color: var(--muted);
  opacity: 1;
}

.send {
  display: grid;
  place-items: center;
  flex: none;
  width: 44px;
  height: 44px;
  border: 0;
  border-radius: var(--radius);
  background: var(--accent);
  color: var(--on-accent);
  cursor: pointer;
  transition: background 0.18s ease, transform 0.12s ease, opacity 0.18s ease;
}

.send:hover:not(:disabled) {
  background: var(--accent-hover);
}

.send:active:not(:disabled) {
  transform: scale(0.97);
}

.send:disabled {
  background: var(--steel);
  color: var(--muted);
  cursor: not-allowed;
}

.composer-foot {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 8px;
  min-height: 1.15rem;
  padding: 6px 2px 0;
}

.composer-hint {
  color: var(--muted);
  font-size: 0.7rem;
  letter-spacing: 0.02em;
}

.counter {
  color: var(--muted);
  font-size: 0.7rem;
  font-variant-numeric: tabular-nums;
  letter-spacing: 0.02em;
}

/* Features */
.features {
  padding: clamp(2.5rem, 6vw, 4rem) 0;
  border-top: 1px solid var(--steel);
}

.features-title {
  margin: 0 0 20px;
  color: var(--ink);
  font-family: var(--display);
  font-size: clamp(1.75rem, 1.4rem + 1vw, 2.5rem);
  font-weight: 700;
  line-height: 1.1;
  letter-spacing: -0.02em;
}

.tiles {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 12px;
}

.tile {
  min-width: 0;
  padding: 16px;
  border: 1px solid var(--steel);
  border-radius: var(--radius);
  background: var(--surface);
}

.tile > svg {
  margin-bottom: 10px;
  color: var(--accent);
}

.tile h3 {
  margin: 0 0 4px;
  color: var(--ink);
  font-family: var(--display);
  font-size: 1.25rem;
  font-weight: 700;
  line-height: 1.15;
  letter-spacing: -0.01em;
}

.tile p {
  margin: 0;
  color: var(--muted);
  font-size: 0.85rem;
  line-height: 1.45;
  overflow-wrap: anywhere;
}

/* Reveal (products and tiles only) */
.reveal {
  opacity: 1;
  transform: none;
}

.js .reveal {
  opacity: 1;
  transform: translateY(12px);
  transition: transform 0.5s ease;
}

.js .reveal.in {
  opacity: 1;
  transform: none;
}

/* Footer */
.site-footer {
  padding: 20px 0 40px;
  border-top: 1px solid var(--steel);
  color: var(--muted);
  font-size: 0.78rem;
  line-height: 1.5;
}

.site-footer p {
  margin: 0 0 6px;
  overflow-wrap: anywhere;
}

.site-footer p:last-child {
  margin-bottom: 0;
}

@media (min-width: 1000px) {
  :root {
    --gutter: 32px;
  }

  .hero {
    padding: 32px 0 40px;
  }

  .hero-inner {
    grid-template-columns: 1.15fr 1fr;
    column-gap: 32px;
    align-items: center;
  }

  .hero-copy {
    padding-block: 8px;
  }

  .shop {
    padding: 48px 0 16px;
  }

  .shop-grid {
    grid-template-columns: minmax(0, 1fr) minmax(0, 1.15fr);
    gap: 32px;
  }
}

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

@media (max-width: 599px) {
  .product-grid {
    grid-template-columns: minmax(0, 1fr);
  }

  .product-card h3 {
    font-size: 1.35rem;
  }
}

@media (max-width: 560px) {
  .tiles {
    grid-template-columns: minmax(0, 1fr);
  }
}

@media (prefers-reduced-motion: reduce) {
  html {
    scroll-behavior: auto;
  }

  *,
  *::before,
  *::after {
    animation-duration: 0.001ms !important;
    animation-delay: 0s !important;
    animation-iteration-count: 1 !important;
    transition-duration: 0.001ms !important;
  }

  .reveal,
  .js .reveal,
  .js .reveal.in {
    opacity: 1 !important;
    transform: none !important;
  }

  .photo-frame img,
  .product-media img,
  .btn-primary svg,
  .send svg {
    transform: none !important;
  }

  .typing .bubble span {
    animation: none !important;
    opacity: 0.65;
    transform: none !important;
  }
}
