/* C-Shop — the editor's own palette, from crates/cshop-ui/src/theme.rs. */
:root {
  --backdrop: #1e1e1e;   /* around the canvas: the darkest thing on screen */
  --titlebar: #2a2a2a;
  --panel:    #323232;
  --chrome:   #393939;
  --header:   #3d3d3d;
  --widget:   #454545;
  --widget-hover: #565656;
  --separator: #252525;
  --edge:     #141414;
  --text:     #e6e6e6;
  --dim:      #9a9a9a;
  --brand:    #00f5f5;   /* the logo's cyan */
  --accent:   #1473e6;   /* the selection blue */
  --measure:  68rem;
}

* { box-sizing: border-box; }

html { scroll-behavior: smooth; }

body {
  margin: 0;
  overflow-x: hidden;
  background: var(--backdrop);
  color: var(--text);
  font: 16px/1.65 -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto,
        "Helvetica Neue", Arial, sans-serif;
  -webkit-font-smoothing: antialiased;
}

a { color: var(--brand); text-decoration: none; }
a:hover { text-decoration: underline; }

code, kbd {
  font-family: ui-monospace, SFMono-Regular, Menlo, Consolas, monospace;
  font-size: 0.9em;
  background: var(--titlebar);
  border: 1px solid var(--separator);
  border-radius: 3px;
  padding: 0.1em 0.35em;
  color: #cfe9e9;
}

pre {
  background: #191919;
  border: 1px solid var(--separator);
  border-left: 2px solid var(--brand);
  border-radius: 4px;
  padding: 1rem 1.15rem;
  overflow-x: auto;
  font-family: ui-monospace, SFMono-Regular, Menlo, Consolas, monospace;
  font-size: 0.86rem;
  line-height: 1.55;
  color: #d6d6d6;
}
pre code { background: none; border: 0; padding: 0; color: inherit; }
pre .c { color: #7d7d7d; }

.wrap { width: min(100% - 2.5rem, var(--measure)); margin-inline: auto; }

/* --- top bar, styled as the editor's own title bar --------------------- */

header.bar {
  position: sticky;
  top: 0;
  z-index: 10;
  background: var(--titlebar);
  border-bottom: 1px solid var(--edge);
}
header.bar .wrap {
  display: flex;
  align-items: center;
  gap: 1.25rem;
  height: 52px;
}
.mark { display: flex; align-items: center; gap: 0.6rem; font-weight: 600; letter-spacing: 0.01em; }
.mark img { width: 22px; height: 22px; display: block; }
.mark span { color: var(--text); }
header.bar nav { margin-left: auto; display: flex; gap: 1.4rem; align-items: center; }
header.bar nav a { color: var(--dim); font-size: 0.92rem; }
header.bar nav a:hover { color: var(--text); text-decoration: none; }
header.bar nav a.gh { color: var(--text); }

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

.hero { padding: 5rem 0 2.5rem; text-align: center; }
.hero h1 {
  margin: 0 0 1rem;
  font-size: clamp(2.4rem, 6vw, 3.9rem);
  line-height: 1.08;
  letter-spacing: -0.025em;
  font-weight: 700;
}
.hero h1 em { font-style: normal; color: var(--brand); }
.hero p.lead {
  margin: 0 auto 2rem;
  max-width: 44rem;
  font-size: clamp(1.05rem, 2.2vw, 1.2rem);
  color: var(--dim);
}
.hero .badges { display: flex; flex-wrap: wrap; gap: 0.5rem; justify-content: center; margin-bottom: 2rem; }
.badge {
  font-size: 0.8rem;
  color: var(--dim);
  background: var(--panel);
  border: 1px solid var(--separator);
  border-radius: 999px;
  padding: 0.3rem 0.85rem;
}

.buttons { display: flex; gap: 0.75rem; justify-content: center; flex-wrap: wrap; }
.btn {
  display: inline-block;
  padding: 0.7rem 1.5rem;
  border-radius: 5px;
  font-weight: 600;
  font-size: 0.95rem;
  border: 1px solid var(--separator);
  background: var(--widget);
  color: var(--text);
  transition: background 0.12s ease, border-color 0.12s ease;
}
.btn:hover { background: var(--widget-hover); text-decoration: none; }
.btn.primary {
  background: var(--brand);
  border-color: var(--brand);
  color: #0b1a1a;
}
.btn.primary:hover { background: #57ffff; border-color: #57ffff; }

/* --- the big screenshot ------------------------------------------------ */

.shot {
  margin: 3rem 0 1rem;
  border: 1px solid var(--edge);
  border-radius: 6px;
  overflow: hidden;
  background: var(--titlebar);
  box-shadow: 0 24px 60px rgba(0, 0, 0, 0.55);
}
.shot img { display: block; width: 100%; height: auto; }
figure { margin: 0; }
figcaption { color: var(--dim); font-size: 0.85rem; text-align: center; margin-top: 0.7rem; }

/* --- sections ---------------------------------------------------------- */

section { padding: 4.5rem 0; border-top: 1px solid var(--separator); }
section:first-of-type { border-top: 0; }

h2 {
  font-size: clamp(1.6rem, 3.4vw, 2.1rem);
  letter-spacing: -0.02em;
  margin: 0 0 0.6rem;
}
h2 .rule { color: var(--brand); }
.sub { color: var(--dim); margin: 0 0 2.5rem; max-width: 48rem; }

h3 { font-size: 1.05rem; margin: 0 0 0.5rem; letter-spacing: -0.005em; }

/* --- feature grid ------------------------------------------------------ */

.grid { display: grid; gap: 1rem; grid-template-columns: repeat(auto-fit, minmax(min(15.5rem, 100%), 1fr)); }
.card {
  background: var(--panel);
  border: 1px solid var(--separator);
  border-radius: 6px;
  padding: 1.35rem 1.4rem;
}
.card p { margin: 0; color: var(--dim); font-size: 0.93rem; line-height: 1.6; }
.card .tag {
  display: block;
  font-size: 0.7rem;
  text-transform: uppercase;
  letter-spacing: 0.09em;
  color: var(--brand);
  margin-bottom: 0.55rem;
}

/* --- alternating showcase rows ----------------------------------------- */

.row {
  display: grid;
  gap: 2.5rem;
  grid-template-columns: 1fr 1fr;
  align-items: center;
  margin-bottom: 4rem;
}
.row:last-child { margin-bottom: 0; }
.row.flip .text { order: 2; }
.row img {
  width: 100%;
  height: auto;
  display: block;
  border: 1px solid var(--edge);
  border-radius: 5px;
  background: var(--titlebar);
}
.row .text p { color: var(--dim); }
.row .text h3 { font-size: 1.35rem; letter-spacing: -0.015em; margin-bottom: 0.65rem; }

/* --- three-up picture strip -------------------------------------------- */

.strip { display: grid; grid-template-columns: repeat(3, 1fr); gap: 0.6rem; }
/* The three are different shapes; a fixed ratio lines their tops and bottoms
   up so the row reads as one comparison rather than three pictures. */
.strip img {
  width: 100%; display: block; aspect-ratio: 2 / 3; object-fit: cover;
  border: 1px solid var(--edge); border-radius: 4px; background: var(--titlebar);
}
.strip .cap { color: var(--dim); font-size: 0.8rem; margin-top: 0.4rem; }

/* --- gallery ----------------------------------------------------------- */

.gallery { display: grid; gap: 1rem; grid-template-columns: repeat(auto-fit, minmax(min(22rem, 100%), 1fr)); }
.gallery figure img {
  width: 100%; height: auto; display: block;
  border: 1px solid var(--edge); border-radius: 5px;
}
.gallery figcaption { text-align: left; }

/* --- get it ------------------------------------------------------------ */

.get { display: grid; gap: 2rem; grid-template-columns: 1.1fr 1fr; align-items: start; }
/* A grid item is `min-width: auto` by default, so the longest unbreakable
   thing inside it — the clone URL — sets the column's floor and pushes the
   whole page wider than the phone holding it. The `pre` scrolls instead. */
.get > *, .row > * { min-width: 0; }
.note { color: var(--dim); font-size: 0.9rem; }
.reqs { list-style: none; margin: 0; padding: 0; }
.reqs li { padding: 0.55rem 0; border-bottom: 1px solid var(--separator); color: var(--dim); font-size: 0.92rem; }
.reqs li:last-child { border-bottom: 0; }
.reqs b { color: var(--text); font-weight: 600; }

/* --- footer ------------------------------------------------------------ */

footer {
  border-top: 1px solid var(--separator);
  background: var(--titlebar);
  padding: 2.5rem 0;
  color: var(--dim);
  font-size: 0.88rem;
}
footer .wrap { display: flex; flex-wrap: wrap; gap: 1rem 2rem; align-items: center; }
footer .spacer { margin-left: auto; }

@media (max-width: 760px) {
  .row, .get { grid-template-columns: 1fr; gap: 1.5rem; }
  .row.flip .text { order: 0; }
  .hero { padding-top: 3.5rem; }
  header.bar nav { gap: 1rem; }
  header.bar nav a:not(.gh) { display: none; }
}
