/*
  Landing page styles for select.discottolabs.com.
  Loaded from /static/landing.css. The CSP allows style-src 'self' only, so everything
  lives in this file and index.html has no inline styles.

  Palette (Salamander look, Chris's brief 2026-10-23):
    canvas #F2F1EF, ink #2E2B29, accent #D95E45.
  Mobile first: the base rules are the 390 px layout. Media queries widen it.
*/

:root {
  --canvas: #F2F1EF;
  --ink: #2E2B29;
  --accent: #D95E45;
  --muted: #6B6662;          /* secondary text, about 5:1 on the canvas */
  --card: #FFFFFF;
  --line: #DDDAD6;           /* thin borders on the canvas */
  --img-bg: #EAE8E5;         /* shows behind transparent product images */
  --font: "Helvetica Neue", Helvetica, Arial, system-ui, sans-serif;
}

* { box-sizing: border-box; }

html { -webkit-text-size-adjust: 100%; }

body {
  margin: 0;
  background: var(--canvas);
  color: var(--ink);
  font-family: var(--font);
  font-size: 16px;
  line-height: 1.5;
}

img { display: block; max-width: 100%; height: auto; }

a { color: inherit; }

/* Keyboard focus ring in the accent color on every link. */
a:focus-visible { outline: 3px solid var(--accent); outline-offset: 3px; }

/* ---- Header ---- */
.top {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  padding: 20px 16px 0;
  max-width: 1120px;
  margin: 0 auto;
}
.brand img { height: 28px; width: auto; }   /* logo is wide, so 28 px tall fits a phone header */
.tag {
  font-size: 12px;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: var(--accent);
  font-weight: 700;
}

main { max-width: 1120px; margin: 0 auto; padding: 0 16px; }

/* ---- Hero ---- */
.hero { padding: 40px 0 28px; }
h1 {
  margin: 0 0 16px;
  font-size: 34px;
  line-height: 1.1;
  letter-spacing: -0.02em;
  font-weight: 700;
  max-width: 16ch;
}
.lede { margin: 0; font-size: 17px; color: var(--muted); max-width: 52ch; }

/* ---- Cards ---- */
.cards {
  display: grid;
  grid-template-columns: 1fr;   /* one column on a phone */
  gap: 16px;
}
.card {
  display: flex;
  flex-direction: column;
  background: var(--card);
  border: 1px solid var(--line);
  border-radius: 6px;
  overflow: hidden;
  text-decoration: none;
  transition: border-color 0.15s ease, transform 0.15s ease;
}
.card:hover { border-color: var(--accent); transform: translateY(-2px); }
.card-img { display: block; background: var(--img-bg); aspect-ratio: 3 / 2; overflow: hidden; }
.card-img img { width: 100%; height: 100%; object-fit: cover; }
.card-body { display: flex; flex-direction: column; gap: 8px; padding: 18px 18px 20px; flex: 1; }
.card-title { font-size: 22px; font-weight: 700; letter-spacing: -0.01em; }
.card-text { color: var(--muted); font-size: 15px; }
.card-go {
  margin-top: auto;
  padding-top: 8px;
  font-weight: 700;
  font-size: 15px;
}
/* The arrow after the link text is drawn by CSS so the HTML stays plain words. */
.card-go::after { content: " \2192"; color: var(--accent); }

/* CABINETS FLAG. index.html sets data-cabinets="on" or "off" on <body>.
   "off" hides the Cabinets card until the cabinets app launches. */
body[data-cabinets="off"] .card-cabinets { display: none; }

/* ---- "Put them together" strip ---- */
.room {
  margin: 40px 0 0;
  padding: 28px 0 0;
  border-top: 3px solid var(--accent);
  max-width: 640px;
}
.room h2 { margin: 0 0 8px; font-size: 22px; letter-spacing: -0.01em; }
.room p { margin: 0; color: var(--muted); }

/* ---- Footer ---- */
.foot {
  max-width: 1120px;
  margin: 56px auto 0;
  padding: 20px 16px 32px;
  border-top: 1px solid var(--line);
  font-size: 13px;
  color: var(--muted);
}
.foot p { margin: 0 0 4px; }
.foot a { color: var(--ink); }

/* ---- Tablet and up ---- */
@media (min-width: 700px) {
  .top { padding-top: 28px; }
  .brand img { height: 34px; }
  main, .foot { padding-left: 24px; padding-right: 24px; }
  .top { padding-left: 24px; padding-right: 24px; }
  .hero { padding: 72px 0 40px; }
  h1 { font-size: 56px; max-width: 22ch; }
  .lede { font-size: 19px; }
  /* Three cards sit side by side. If the Cabinets card is hidden, two cards share the row. */
  .cards { grid-template-columns: repeat(3, 1fr); gap: 20px; }
  body[data-cabinets="off"] .cards { grid-template-columns: repeat(2, 1fr); }
  .room { margin-top: 64px; }
}

/* Respect people who turn motion off. */
@media (prefers-reduced-motion: reduce) {
  .card { transition: none; }
  .card:hover { transform: none; }
}
