/*
  BotOffice — colors sampled from brand/logo-reference.jpg (see brand/PALETTE.md).
  Ground: cream studio + light oak board + Monstera green.
  Accents come from the lettering: cyan "Bot", purple bot sphere, orange-to-coral "Office".
*/
:root {
  /* Ground */
  --cream: #efe6e2;        /* studio background */
  --cream-hi: #f7f1ee;     /* lifted surface */
  --oak: #d8ae84;          /* wood board */
  --oak-shadow: #c4965e;   /* board edge */
  --oak-wash: #e8d5c6;     /* oak mixed into cream, section ground */
  --plant: #4c865d;        /* Monstera */
  --plant-deep: #335c40;   /* plant in shade, buy band */
  --ink: #1c1614;
  --ink-soft: #2c2320;
  --muted: #5c4f49;
  --rule: #d6c3b4;

  /* Lettering accents */
  --cyan: #3fb7c7;
  --cyan-hi: #4fd4e8;
  --cyan-deep: #2a9aaa;
  --cyan-text: #1a6d78;    /* cyan darkened for AA text on cream */
  --purple: #a85ddc;
  --purple-deep: #7b3fb8;
  --orange: #ee8a2c;
  --coral: #e8684d;
  --chair: #e56a3a;

  --rounded: ui-rounded, 'SF Pro Rounded', 'Hiragino Maru Gothic ProN', 'Arial Rounded MT Bold', 'Nunito', 'Quicksand', 'Varela Round', system-ui, sans-serif;
  --sans: system-ui, -apple-system, 'Segoe UI', Roboto, 'Helvetica Neue', Arial, sans-serif;
  --mono: ui-monospace, 'SF Mono', Menlo, Consolas, 'Liberation Mono', monospace;

  --gutter: clamp(1.25rem, 5vw, 4rem);
  --radius: .75rem;
}

* { box-sizing: border-box; }

html { scroll-behavior: smooth; scroll-padding-top: 1rem; }
@media (prefers-reduced-motion: reduce) { html { scroll-behavior: auto; } }

body {
  margin: 0;
  background: var(--cream);
  color: var(--ink);
  font: 1.0625rem/1.6 var(--sans);
  -webkit-font-smoothing: antialiased;
  text-rendering: optimizeLegibility;
}

h1, h2, p, figure, dl, dd { margin: 0; }
h1, h2 {
  font-family: var(--rounded);
  font-weight: 750;
  line-height: 1.05;
  letter-spacing: -.025em;
  text-wrap: balance;
}
h2 { font-size: clamp(1.9rem, 3.3vw, 3rem); max-width: 18ch; }
p { max-width: 58ch; text-wrap: pretty; }
a { color: inherit; text-decoration-color: var(--cyan-deep); text-decoration-thickness: 2px; text-underline-offset: .22em; }
a:hover { color: var(--cyan-text); }
:focus-visible { outline: 3px solid var(--purple-deep); outline-offset: 3px; border-radius: 2px; }
code {
  padding: .05em .3em;
  border-radius: .25rem;
  background: var(--cream-hi);
  font: .85em/1.4 var(--mono);
  overflow-wrap: anywhere;
}

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

.skip {
  position: absolute;
  z-index: 2;
  left: 1rem;
  padding: .5rem 1rem;
  border-radius: var(--radius);
  background: var(--ink);
  color: var(--cream);
  transform: translateY(-150%);
}
.skip:focus { transform: translateY(.75rem); }
.skip:hover { color: var(--cream); }

/* Header + brand */
.header {
  min-height: 5rem;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: .75rem 2rem;
  border-bottom: 1px solid var(--rule);
}
.brand { display: flex; align-items: center; gap: .75rem; }

.logo-link {
  flex: none;
  display: block;
  line-height: 0;
  text-decoration: none;
}
.logo-mark {
  display: block;
  height: 2.85rem;
  width: auto;
}
.logo-link--small .logo-mark { height: 2.25rem; }

.wordmark {
  font: 800 1.6rem/1 var(--rounded);
  letter-spacing: -.035em;
  text-decoration: none;
  white-space: nowrap;
}
.wordmark:hover { color: inherit; }
.wm-bot { color: var(--cyan-deep); }
.wm-o { color: var(--purple); }
.wm-office { color: var(--coral); }
@supports ((-webkit-background-clip: text) or (background-clip: text)) {
  .wm-office {
    background: linear-gradient(90deg, var(--orange) 10%, var(--coral) 90%);
    -webkit-background-clip: text;
    background-clip: text;
    color: transparent;
  }
}

.header nav { display: flex; align-items: center; flex-wrap: wrap; gap: .25rem clamp(1rem, 2.4vw, 2rem); }
.header nav a { padding-block: .35rem; font-size: .9375rem; font-weight: 600; text-decoration: none; }
.header nav a:hover { color: var(--cyan-text); text-decoration: underline; text-decoration-color: var(--cyan); }
.header nav .nav-buy {
  padding: .4rem 1rem;
  border-radius: 999px;
  background: var(--ink);
  color: var(--cream);
}
.header nav .nav-buy:hover { background: var(--coral); color: var(--ink); text-decoration: none; }

/* Hero */
.hero { padding: clamp(1.5rem, 3.5vw, 2.75rem) 0 clamp(3rem, 7vw, 6.5rem); }
.hero-copy {
  display: grid;
  grid-template-columns: minmax(0, 1.15fr) minmax(14rem, 0.85fr);
  align-items: center;
  gap: 1.5rem clamp(1.5rem, 4vw, 3.5rem);
  margin-bottom: clamp(1.75rem, 3.5vw, 3rem);
}
.hero-badge {
  display: inline-block;
  margin: 0 0 .85rem;
  padding: .22rem .7rem;
  border: 1px solid var(--rule);
  border-radius: 999px;
  color: var(--muted);
  font: 600 .75rem/1.4 var(--sans);
  letter-spacing: .03em;
}
.hero-text h1 {
  margin: 0 0 .7rem;
}
h1 {
  font-size: clamp(2.6rem, 6.8vw, 6.25rem);
  font-weight: 800;
  line-height: .95;
  letter-spacing: -.045em;
}
h1 em { font-style: normal; color: var(--coral); }
.hero-intro {
  max-width: 44ch;
  margin: 0;
  padding-inline-start: 1.1rem;
  border-inline-start: 3px solid var(--oak);
  color: var(--ink-soft);
  font-size: clamp(1.1rem, 1.45vw, 1.3rem);
  line-height: 1.45;
}
.hero-offer { margin-top: 1rem; }
.hero-price { margin: 0 0 .65rem; color: var(--ink); }
.hero-price strong { font: 800 1.5rem/1.2 var(--rounded); }
.hero-offer-actions {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: .65rem 1rem;
}
.hero-offer .compat-note {
  margin: 0;
  color: var(--muted);
  font-size: .875rem;
}
.hero-offer .button:focus-visible { outline-color: var(--ink); }
.hero-logo { margin: 0; justify-self: end; }
.hero-logo img {
  display: block;
  width: min(28rem, 100%);
  height: auto;
  border-radius: 0;
  background: transparent;
  filter: drop-shadow(0 .9rem 1.3rem rgb(28 22 20 / .22));
}


/* Demo */
.demo-frame {
  padding: 0 .5rem .5rem;
  border-radius: calc(var(--radius) + .25rem);
  background: var(--ink);
  color: var(--cream);
  box-shadow: 0 1.5rem 3rem -1.5rem rgb(28 22 20 / .45), 0 .4rem 0 var(--oak-shadow);
}
.demo-label {
  display: flex;
  align-items: center;
  gap: .6rem;
  padding: .7rem .5rem;
  font-size: .875rem;
  font-weight: 600;
  letter-spacing: .01em;
}
.demo-label .pip {
  width: .55rem;
  height: .55rem;
  border-radius: 50%;
  background: var(--purple);
  box-shadow: 0 0 0 3px rgb(168 93 220 / .25);
}
iframe {
  display: block;
  width: 100%;
  height: clamp(34rem, 50vw, 46rem);
  border: 0;
  border-radius: var(--radius);
  background: var(--oak-wash);
}
iframe:focus-visible { outline-color: var(--cyan-hi); outline-offset: -3px; }
figcaption { margin-top: .7rem; color: var(--muted); font-size: .875rem; }

/* Image spreads */
.spread, .catalog-inner {
  display: grid;
  grid-template-columns: minmax(0, .8fr) minmax(0, 1.6fr);
  align-items: center;
  gap: 2rem clamp(2rem, 5vw, 5rem);
  padding-block: clamp(3rem, 6.5vw, 6rem);
}
.spread { grid-template-columns: minmax(0, 1fr) minmax(0, 1.2fr); border-top: 1px solid var(--rule); }
.spread-copy, .catalog-copy { max-width: 26rem; }
.spread p, .catalog p, .observations p, .buy p { margin-top: 1.1rem; }
picture, img { display: block; }
img {
  width: 100%;
  height: auto;
  border-radius: var(--radius);
  background: var(--oak-wash);
}
/* Photo plates: cut-out islands floating on the page background.
   Natural aspect, never cropped or stretched. */
@keyframes island-float {
  0%, 100% { transform: translateY(0); }
  50% { transform: translateY(-0.6rem); }
}
.plate,
.hero-logo {
  animation: island-float 6.5s ease-in-out infinite;
}
.plate { margin: 0; }
.hero-logo { animation-duration: 7.2s; animation-delay: -1.6s; }
.plate--furniture { animation-duration: 7s; animation-delay: -2.2s; }
.plate--office { animation-duration: 6.5s; animation-delay: 0s; }
.catalog .plate { animation-duration: 7.4s; animation-delay: -4.1s; }
.plate img {
  width: 100%;
  height: auto;
  object-fit: contain;
  border-radius: 0;
  background: transparent;
  box-shadow: none;
  filter: drop-shadow(0 1.1rem 1.6rem rgb(28 22 20 / .28));
}
@media (prefers-reduced-motion: reduce) {
  .plate,
  .hero-logo,
  .plate--furniture,
  .plate--office,
  .catalog .plate {
    animation: none;
  }
}
.plate--furniture { justify-self: center; width: min(100%, 34rem); }

.catalog {
  background: var(--oak-wash);
  border-top: 4px solid var(--oak);
  border-bottom: 4px solid var(--oak-shadow);
}
.catalog-inner { grid-template-columns: minmax(0, 1.6fr) minmax(0, .8fr); }
.catalog-copy { grid-column: 2; grid-row: 1; }
.catalog figure { grid-column: 1; grid-row: 1; }
.catalog figcaption { color: var(--muted); }
.catalog-copy h2::after {
  content: '';
  display: block;
  width: 2.5rem;
  height: 4px;
  margin-top: 1rem;
  border-radius: 2px;
  background: var(--plant);
}

/* Observations */
.observations {
  display: grid;
  grid-template-columns: minmax(0, 1fr) minmax(0, 1.25fr);
  gap: 2.5rem clamp(2rem, 6vw, 6rem);
  padding-block: clamp(3.5rem, 7vw, 6.5rem);
}
.obs { padding-top: 1.25rem; border-top: 4px solid var(--cyan); }
.obs--team { border-top-color: var(--coral); }
.observations h2 { font-size: clamp(1.7rem, 2.7vw, 2.5rem); max-width: 20ch; }

/* Specs + setup */
.reference {
  display: grid;
  grid-template-columns: minmax(0, 1fr) minmax(0, 2.6fr);
  gap: 1.5rem 3rem;
  padding-block: clamp(2.5rem, 5vw, 4.5rem);
  border-top: 1px solid var(--rule);
}
.reference h2 { font-size: clamp(1.6rem, 2.4vw, 2.1rem); }
.reference dl, .steps { max-width: 52rem; }
.reference dl > div {
  display: grid;
  grid-template-columns: minmax(9rem, 1fr) minmax(0, 3fr);
  gap: .25rem 1.5rem;
  padding-block: 1rem;
}
.reference dl > div:first-child { padding-top: .35rem; }
.reference dl > div + div { border-top: 1px solid var(--rule); }
dt { font-weight: 700; }
dd { color: var(--ink-soft); }

.steps { margin: 0; padding: 0; list-style: none; counter-reset: step; }
.steps li {
  position: relative;
  min-height: 2rem;
  padding-inline-start: 3rem;
  padding-top: .2rem;
  counter-increment: step;
}
.steps li + li { margin-top: 1.1rem; }
.steps li::before {
  content: counter(step);
  position: absolute;
  inset-inline-start: 0;
  top: 0;
  width: 2rem;
  height: 2rem;
  display: grid;
  place-items: center;
  border-radius: 50%;
  background: var(--orange);
  color: var(--ink);
  font: 800 .95rem/1 var(--rounded);
}

/* Buy */
.buy { background: var(--plant-deep); color: var(--cream); }
.buy-inner {
  display: grid;
  grid-template-columns: minmax(0, 1.6fr) minmax(0, 1fr);
  align-items: center;
  gap: 1.5rem 3rem;
  padding-block: clamp(3rem, 6vw, 5rem);
}
.buy h2 { max-width: none; }
.button {
  display: inline-block;
  padding: .85rem 1.6rem;
  border-radius: 999px;
  background: var(--orange);
  color: var(--ink);
  font: 800 1.05rem/1.2 var(--rounded);
  text-decoration: none;
  box-shadow: 0 .25rem 0 var(--chair);
  transition: transform .12s ease, box-shadow .12s ease;
}
.button:hover { color: var(--ink); background: var(--coral); transform: translateY(1px); box-shadow: 0 .15rem 0 var(--chair); }
.button:focus-visible { outline-color: var(--cream); }
@media (prefers-reduced-motion: reduce) { .button { transition: none; } }
.buy .price {
  display: flex;
  align-items: baseline;
  gap: .65rem;
  margin: 0 0 .35rem;
}
.buy .price-was {
  color: var(--cream);
  opacity: .65;
  font: 500 1rem/1.2 var(--sans);
  text-decoration: line-through;
}
.buy .price-now {
  font: 700 1.35rem/1.15 var(--rounded);
}
.buy .deal-note {
  margin: 0 0 1.15rem;
  max-width: 16.5rem;
  font-size: .8125rem;
  line-height: 1.45;
  color: var(--cream);
  opacity: .85;
}
.buy .compat-note {
  margin: 0 0 .85rem;
  max-width: 18rem;
  font-size: .8125rem;
  line-height: 1.45;
  color: var(--cream);
  opacity: .9;
}
.buy #shop { margin-top: .9rem; font-size: .875rem; color: var(--cream); opacity: .85; }

/* Footer */
.footer {
  display: grid;
  grid-template-columns: minmax(0, 1.5fr) minmax(0, 1fr) minmax(0, 1fr);
  gap: 1.75rem 2rem;
  padding-block: 2.5rem 3.5rem;
}
.footer .wordmark { font-size: 1.3rem; }
.footer h2 { font: 700 .9375rem/1.5 var(--sans); letter-spacing: normal; }
.footer p { color: var(--muted); font-size: .875rem; }

/* Mobile */
@media (max-width: 48rem) {
  body { font-size: 1rem; }
  .header { flex-wrap: wrap; padding-block: .9rem; }
  .header nav { width: 100%; justify-content: space-between; gap: .25rem .75rem; }
  .logo-mark { height: 2.4rem; }
  .wordmark { font-size: 1.4rem; }
  .hero-copy, .spread, .catalog-inner, .observations, .reference, .buy-inner { grid-template-columns: minmax(0, 1fr); }
  .hero-logo { justify-self: center; }
  .hero-logo img { width: min(18rem, 65vw); }
  .catalog-copy, .catalog figure { grid-area: auto; }
  .spread-copy, .catalog-copy { max-width: none; }
  .plate--furniture { width: 100%; max-width: 34rem; }
  .demo-frame { margin-inline: calc(var(--gutter) * -.5); padding: 0 .35rem .35rem; }
  iframe { height: min(78svh, 40rem); min-height: 30rem; }
  .reference { gap: 1rem; }
  .reference dl > div { grid-template-columns: minmax(0, 1fr); }
  .footer { grid-template-columns: 1fr 1fr; }
  .footer .brand { grid-column: 1 / -1; }
}

/* Furniture photo fills the design column. */
#design .plate--furniture { width: 100%; max-width: none; justify-self: stretch; }

/* Legal pages and footer links */
.legal-links { display: flex; gap: 1.25rem; align-items: baseline; }
.legal-links a { color: var(--muted); font-size: .875rem; }
.legal-links a[aria-current="page"] { color: var(--ink); font-weight: 600; }
.legal { max-width: 40rem; padding-block: 2rem 3.5rem; }
.legal h1 { font: 700 2rem/1.2 var(--rounded); margin: 0 0 1rem; }
.legal h2 { font: 700 1.1rem/1.4 var(--sans); margin: 1.75rem 0 .6rem; }
.legal-note { color: var(--muted); font-size: .9375rem; }
.placeholder {
  display: inline;
  font-family: var(--mono);
  font-size: .9em;
  color: var(--plant-deep);
  background: var(--oak-wash);
  padding: .05em .35em;
  border-radius: .3rem;
}
