:root {
  --cream: #f8f2e7;
  --paper: #fffcf7;
  --ink: #393027;
  --muted: #766b5d;
  --orange: #b5622e;
  --amber: #d6a354;
  --line: #e3d8ca;
}

* { box-sizing: border-box; }

body {
  margin: 0;
  min-height: 100vh;
  background: radial-gradient(circle at 8% 4%, #fffaf1 0, var(--cream) 34%, #f3eadc 100%);
  color: var(--ink);
  font-family: "Jost", sans-serif;
}

.page-shell { width: min(1140px, calc(100% - 48px)); margin: 0 auto; padding: 42px 0 36px; }

.hero { display: flex; align-items: center; justify-content: space-between; gap: 44px; padding: 26px 0 57px; border-bottom: 1px solid var(--line); }

.brand-lockup { display: flex; align-items: center; gap: 15px; }
.brand-logo { width: 66px; height: 66px; object-fit: contain; }
.brand-name { margin: 0; color: var(--ink); font-family: "Cormorant Garamond", Georgia, serif; font-size: 22px; line-height: 1; letter-spacing: -.01em; }

.eyebrow { margin: 0 0 5px; color: var(--orange); font-size: 10px; font-weight: 600; letter-spacing: .16em; text-transform: uppercase; }
h1, h2 { font-family: "Cormorant Garamond", Georgia, serif; font-weight: 600; }
h1 { margin: 0; font-size: clamp(43px, 5vw, 62px); line-height: .9; letter-spacing: -.045em; }
.hero-copy { max-width: 540px; }
.welcome { max-width: 440px; margin: 15px 0 0; color: var(--muted); font-size: 14px; line-height: 1.7; }

.dashboard { display: grid; grid-template-columns: repeat(6, 1fr); gap: 18px; padding: 49px 0 68px; }
.card { position: relative; display: flex; grid-column: span 2; min-height: 222px; flex-direction: column; justify-content: flex-end; padding: 27px; overflow: hidden; border: 1px solid rgba(169, 139, 100, .25); border-radius: 14px; background: rgba(255, 252, 247, .82); color: inherit; text-decoration: none; box-shadow: 0 8px 25px rgba(91, 66, 36, .035); transition: transform .25s ease, border-color .25s ease, box-shadow .25s ease; }
.card:nth-child(4), .card:nth-child(5), .card:nth-child(6) { grid-column: span 2; }
.card:hover { transform: translateY(-4px); border-color: rgba(181, 98, 46, .55); box-shadow: 0 18px 38px rgba(76, 57, 34, .1); }
.card-icon { position: absolute; top: 25px; left: 27px; display: grid; width: 32px; height: 32px; place-items: center; border: 1px solid rgba(181, 98, 46, .32); border-radius: 50%; color: var(--orange); font-family: "Cormorant Garamond", Georgia, serif; font-size: 19px; line-height: 1; }
.card-number { position: absolute; top: 35px; left: 73px; font-size: 10px; font-weight: 600; letter-spacing: .13em; color: var(--orange); }
h2 { margin: 0 0 8px; font-size: 36px; line-height: .95; letter-spacing: -.03em; }
.card p { max-width: 300px; margin: 0; color: var(--muted); font-size: 14px; line-height: 1.65; }
.arrow { position: absolute; right: 27px; bottom: 23px; color: var(--orange); font-size: 25px; transition: transform .25s ease; }
.card:hover .arrow { transform: translate(2px, -2px); }
footer { display: flex; justify-content: space-between; border-top: 1px solid var(--line); padding-top: 25px; color: var(--muted); font-size: 11px; letter-spacing: .04em; }
footer p { margin: 0; }

.dashboard-session-controls { display:flex; align-items:center; justify-content:center; gap:14px; flex-wrap:wrap; }
.staging-dashboard-badge { display:inline-block; padding:5px 9px; border:1px solid rgba(181,98,46,.35); border-radius:999px; color:#8b4c28; font:500 11px "Jost",sans-serif; letter-spacing:.08em; text-transform:uppercase; }
.staging-dashboard-badge[hidden], #staging-dashboard-signout[hidden], #local-dashboard-logout[hidden] { display:none!important; }
.card.staging-not-connected { cursor:not-allowed; opacity:.58; transform:none; box-shadow:none; }
.card.staging-not-connected:hover { transform:none; border-color:var(--line); box-shadow:none; }
.connection-state { align-self:flex-start; padding:5px 8px; border:1px solid var(--line); border-radius:999px; color:var(--muted); font:500 9px "Jost",sans-serif; letter-spacing:.07em; text-transform:uppercase; }

@media (max-width: 650px) {
  .page-shell { width: min(100% - 30px, 1120px); padding-top: 20px; }
  .hero { display: grid; grid-template-columns: 1fr; gap: 34px; padding-bottom: 42px; }
  .dashboard { grid-template-columns: 1fr; gap: 14px; padding: 35px 0 45px; }
  .card, .card:nth-child(4), .card:nth-child(5), .card:nth-child(6) { grid-column: auto; }
  .card { min-height: 174px; padding: 25px; }
  footer { gap: 10px; }
}
