:root {
  --ink: #1a1814;
  --muted: #5c574e;
  --line: #e4ddd0;
  --paper: #f4efe6;
  --white: #fffdf8;
  --green: #1b6d3d;
  --green-dark: #14532d;
  --orange: #ff6b00;
  --ok: #1b6d3d;
}

* { box-sizing: border-box; }
html { scroll-behavior: smooth; }
body.cesta-body {
  margin: 0;
  background: var(--paper);
  color: var(--ink);
  font-family: Inter, ui-sans-serif, system-ui, sans-serif;
  line-height: 1.5;
}

.cesta-wrap { max-width: 1080px; margin: 0 auto; padding: 0 1.25rem; }

.cesta-nav {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1rem;
  padding: 1.1rem 0;
}
.cesta-nav__logo {
  display: flex;
  align-items: center;
  gap: .6rem;
  text-decoration: none;
  color: var(--ink);
  font-weight: 800;
  letter-spacing: -.02em;
}
.cesta-nav__logo img { height: 36px; width: auto; }
.cesta-nav__links {
  display: flex;
  gap: 1.1rem;
  align-items: center;
  font-size: .9rem;
}
.cesta-nav__links a { color: var(--muted); text-decoration: none; font-weight: 600; }
.cesta-nav__links a:hover { color: var(--ink); }
.cesta-nav__cta {
  background: var(--ink);
  color: #fff !important;
  padding: .45rem .9rem;
  border-radius: 999px;
}

.cesta-hero { padding: 2.5rem 0 1.5rem; }
.cesta-kicker {
  font-size: .78rem;
  font-weight: 700;
  letter-spacing: .08em;
  text-transform: uppercase;
  color: var(--orange);
  margin: 0 0 .75rem;
}
.cesta-hero h1 {
  font-family: Fraunces, Georgia, serif;
  font-size: clamp(2.1rem, 6vw, 4rem);
  line-height: 1.05;
  letter-spacing: -.03em;
  margin: 0 0 1rem;
  max-width: 16ch;
}
.cesta-hero__lead {
  font-size: 1.1rem;
  color: var(--muted);
  max-width: 40rem;
  margin: 0 0 1.5rem;
}
.cesta-actions { display: flex; flex-wrap: wrap; gap: .6rem; }
.cesta-btn {
  appearance: none;
  border: 0;
  cursor: pointer;
  font: inherit;
  font-weight: 700;
  border-radius: 999px;
  padding: .75rem 1.15rem;
  text-decoration: none;
  display: inline-flex;
  align-items: center;
  gap: .4rem;
}
.cesta-btn--dark { background: var(--ink); color: #fff; }
.cesta-btn--green { background: var(--green); color: #fff; }
.cesta-btn--green:hover { background: var(--green-dark); }
.cesta-btn--ghost { background: transparent; color: var(--ink); border: 1.5px solid var(--line); }
.cesta-btn[disabled] { opacity: .55; cursor: default; }

.cesta-cli {
  margin: 1.25rem 0 0;
  background: var(--ink);
  color: #efe8d8;
  border-radius: 14px;
  padding: .85rem 1rem;
  font-family: ui-monospace, SFMono-Regular, Menlo, monospace;
  font-size: .82rem;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: .75rem;
  overflow: auto;
}
.cesta-cli button {
  background: rgba(255,255,255,.1);
  color: #fff;
  border: 0;
  border-radius: 8px;
  padding: .35rem .65rem;
  font-weight: 700;
  cursor: pointer;
}

.cesta-section { padding: 3rem 0; }
.cesta-section h2 {
  font-family: Fraunces, Georgia, serif;
  font-size: clamp(1.6rem, 4vw, 2.4rem);
  letter-spacing: -.02em;
  margin: 0 0 .4rem;
}
.cesta-section > p.lead { color: var(--muted); max-width: 40rem; margin: 0 0 1.5rem; }

.cesta-example {
  background: var(--white);
  border: 1px solid var(--line);
  border-radius: 20px;
  padding: 1.25rem 1.35rem;
  box-shadow: 0 10px 40px rgba(26,24,20,.04);
}
.cesta-example__prompt {
  font-weight: 700;
  margin-bottom: 1rem;
}
.cesta-ex-item {
  display: grid;
  grid-template-columns: 1fr auto auto;
  gap: .5rem 1rem;
  padding: .7rem 0;
  border-top: 1px solid var(--line);
  align-items: center;
}
.cesta-ex-item strong { display: block; }
.cesta-ex-item span { font-size: .85rem; color: var(--muted); }
.cesta-ex-item .price { font-weight: 800; color: var(--green); }
.cesta-ex-item .was { color: var(--muted); text-decoration: line-through; font-weight: 600; font-size: .85rem; }
.cesta-example__total {
  display: flex;
  justify-content: space-between;
  padding-top: 1rem;
  margin-top: .25rem;
  border-top: 1.5px solid var(--ink);
  font-weight: 800;
}

.cesta-table-wrap {
  overflow: auto;
  background: var(--white);
  border: 1px solid var(--line);
  border-radius: 16px;
}
.cesta-table { width: 100%; border-collapse: collapse; font-size: .95rem; }
.cesta-table th, .cesta-table td { padding: .8rem 1rem; text-align: left; border-bottom: 1px solid var(--line); }
.cesta-table th { font-size: .75rem; text-transform: uppercase; letter-spacing: .05em; color: var(--muted); }
.cesta-table tr:last-child td { border-bottom: 0; font-weight: 800; }
.cesta-stamp { font-size: .8rem; color: var(--muted); margin: 0 0 .75rem; }

.cesta-steps { display: grid; gap: 1rem; }
@media (min-width: 800px) { .cesta-steps { grid-template-columns: 1fr 1fr; } }
.cesta-step {
  background: var(--white);
  border: 1px solid var(--line);
  border-radius: 16px;
  padding: 1.15rem 1.2rem;
}
.cesta-step b { display: block; font-size: .75rem; letter-spacing: .08em; text-transform: uppercase; color: var(--orange); margin-bottom: .35rem; }
.cesta-step h3 { margin: 0 0 .35rem; font-size: 1.05rem; }
.cesta-step p { margin: 0; color: var(--muted); font-size: .92rem; }

.cesta-faq details {
  background: var(--white);
  border: 1px solid var(--line);
  border-radius: 12px;
  padding: .9rem 1rem;
  margin-bottom: .55rem;
}
.cesta-faq summary { cursor: pointer; font-weight: 700; }
.cesta-faq p { margin: .55rem 0 0; color: var(--muted); }

.cesta-connect {
  background: var(--ink);
  color: #fff;
  border-radius: 24px;
  padding: 2rem 1.5rem;
}
.cesta-connect h2 { color: #fff; }
.cesta-connect p { color: #d7d0c3; }
.cesta-url {
  background: #2a261f;
  border-radius: 12px;
  padding: .8rem 1rem;
  font-family: ui-monospace, SFMono-Regular, Menlo, monospace;
  font-size: .95rem;
  margin: 1rem 0;
  word-break: break-all;
}

.cesta-foot {
  padding: 2.5rem 0 3rem;
  color: var(--muted);
  font-size: .85rem;
  border-top: 1px solid var(--line);
}
.cesta-foot a { color: var(--ink); }
.cesta-foot__row { display: flex; flex-wrap: wrap; justify-content: space-between; gap: 1rem; }

/* Basket view */
.cesta-basket { padding: 1.5rem 0 4rem; max-width: 720px; }
.cesta-basket h1 {
  font-family: Fraunces, Georgia, serif;
  font-size: clamp(1.6rem, 4vw, 2.2rem);
  margin: 0 0 .35rem;
}
.cesta-line {
  display: grid;
  grid-template-columns: 56px 1fr auto;
  gap: .85rem;
  align-items: center;
  padding: .85rem 0;
  border-bottom: 1px solid var(--line);
}
.cesta-line img {
  width: 56px; height: 56px; object-fit: cover; border-radius: 10px; background: #eee;
}
.cesta-line h3 { margin: 0; font-size: .95rem; }
.cesta-line p { margin: .15rem 0 0; font-size: .8rem; color: var(--muted); }
.cesta-missing { background: #fff4e5; border-radius: 12px; padding: .85rem 1rem; margin: 1rem 0; }
.cesta-sticky {
  position: sticky;
  bottom: 0;
  background: var(--paper);
  padding: 1rem 0 1.25rem;
  border-top: 1px solid var(--line);
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 1rem;
}
.cesta-toast {
  position: fixed;
  bottom: 1.5rem;
  right: 1.25rem;
  background: var(--green);
  color: #fff;
  padding: .7rem 1rem;
  border-radius: 10px;
  font-weight: 700;
  z-index: 20;
}

@media (max-width: 640px) {
  .cesta-nav__links a:not(.cesta-nav__cta) { display: none; }
  .cesta-ex-item { grid-template-columns: 1fr auto; }
  .cesta-sticky { flex-direction: column; align-items: stretch; }
}
