:root {
  --bone:     oklch(0.972 0.012 80);
  --paper:    oklch(0.955 0.016 80);
  --cream:    oklch(0.92  0.018 78);
  --sand:     oklch(0.84  0.020 75);
  --stone-3:  oklch(0.68  0.018 70);
  --stone-2:  oklch(0.52  0.016 65);
  --stone-1:  oklch(0.36  0.014 60);
  --ink:      oklch(0.22  0.014 55);
  --ink-deep: oklch(0.15  0.012 50);

  --terra-500: oklch(0.625 0.135 41);
  --terra-400: oklch(0.70  0.120 42);

  --forest-900: oklch(0.22 0.042 155);
  --forest-700: oklch(0.34 0.060 152);
  --forest-500: oklch(0.48 0.085 150);
  --forest-300: oklch(0.72 0.060 148);
  --forest-50:  oklch(0.95 0.020 148);
  --moss:       oklch(0.82 0.040 140);

  --serif: "Instrument Serif", "Didot", "GFS Didot", serif;
  --sans:  "Inter Tight", "Inter", ui-sans-serif, system-ui, sans-serif;
  --mono:  "JetBrains Mono", ui-monospace, Menlo, monospace;
}

* { box-sizing: border-box; margin: 0; padding: 0; }

html, body {
  background: var(--bone);
  color: var(--ink);
  font-family: var(--sans);
  -webkit-font-smoothing: antialiased;
  text-rendering: optimizeLegibility;
}

body { font-size: 15px; line-height: 1.55; }
a { color: inherit; text-decoration: none; }

.page {
  max-width: 1280px;
  margin: 0 auto;
  padding: 88px 64px 120px;
}

/* Wordmark */
.wordmark {
  font-family: var(--serif);
  font-weight: 400;
  font-size: clamp(140px, 22vw, 360px);
  line-height: 0.9;
  letter-spacing: -0.03em;
  color: var(--ink-deep);
  text-align: left;
}
.wordmark .dot { color: var(--terra-500); }

/* Intro */
.intro {
  margin-top: 64px;
  padding-bottom: 32px;
  border-bottom: 1px solid var(--sand);
}
.intro p {
  font-family: var(--serif);
  font-weight: 400;
  font-size: 34px;
  line-height: 1.25;
  letter-spacing: -0.01em;
  color: var(--ink-deep);
  max-width: 34ch;
  text-wrap: pretty;
}
.intro p i { font-style: italic; color: var(--stone-1); }

/* Products heading */
.plabel {
  margin-top: 96px;
  display: flex;
  justify-content: space-between;
  align-items: baseline;
  font-family: var(--mono);
  font-size: 11px;
  letter-spacing: .22em;
  text-transform: uppercase;
  color: var(--stone-2);
  padding-bottom: 18px;
  border-bottom: 1px solid var(--ink);
}
.plabel b { color: var(--ink); font-weight: 500; }

/* ===== Deckchair card ===== */
.dc-card {
  margin-top: 32px;
  background: var(--forest-900);
  color: var(--forest-50);
  display: grid;
  grid-template-columns: 1.05fr 1fr;
  min-height: 520px;
  position: relative;
  overflow: hidden;
}
.dc-left {
  padding: 48px 48px 44px;
  display: flex;
  flex-direction: column;
  justify-content: space-between;
  position: relative;
  z-index: 2;
}
.dc-right {
  position: relative;
  border-left: 1px solid var(--forest-700);
  background: linear-gradient(180deg, var(--forest-700) 0%, var(--forest-900) 100%);
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 40px;
}

.dc-topline {
  display: flex;
  justify-content: space-between;
  align-items: center;
  font-family: var(--mono);
  font-size: 10.5px;
  letter-spacing: .22em;
  text-transform: uppercase;
  color: var(--forest-300);
}
.dc-topline b { color: var(--moss); font-weight: 500; }
.dc-topline .dot {
  display: inline-block;
  width: 7px;
  height: 7px;
  border-radius: 50%;
  background: var(--moss);
  margin-right: 8px;
  vertical-align: middle;
  animation: pulse 2.4s ease-in-out infinite;
}
@keyframes pulse {
  0%, 100% { opacity: 1; }
  50%      { opacity: .4; }
}

.dc-body { margin-top: 48px; }
.dc-eyebrow {
  font-family: var(--mono);
  font-size: 11px;
  letter-spacing: .22em;
  text-transform: uppercase;
  color: var(--forest-300);
  margin-bottom: 18px;
}
.dc-logo {
  display: flex;
  align-items: center;
  gap: 18px;
  font-weight: normal;
}
.dc-logo-mark {
  width: 50px;
  height: 72px;
  flex-shrink: 0;
  object-fit: contain;
}
.dc-logo-word {
  font-family: var(--sans);
  font-weight: 700;
  font-size: 76px;
  letter-spacing: -0.035em;
  line-height: 1;
  color: var(--forest-50);
}
.dc-desc {
  font-family: var(--sans);
  font-size: 18px;
  line-height: 1.5;
  color: var(--forest-300);
  max-width: 46ch;
  margin-top: 24px;
  text-wrap: pretty;
}
.dc-desc em { color: var(--moss); font-style: italic; }

.dc-cta {
  display: flex;
  gap: 12px;
  margin-top: 36px;
  flex-wrap: wrap;
  align-items: center;
}
.dc-btn {
  font-family: var(--sans);
  font-weight: 500;
  font-size: 13px;
  letter-spacing: .02em;
  padding: 13px 22px;
  background: var(--moss);
  color: var(--forest-900);
  border: 1px solid var(--moss);
  cursor: pointer;
  transition: transform .15s, background .15s;
}
.dc-btn:hover { transform: translateY(-1px); background: var(--forest-50); }

/* Deckchair decorative sun */
.dc-sun { position: absolute; inset: 0; pointer-events: none; overflow: hidden; }
.dc-sun svg { position: absolute; right: -120px; top: -120px; opacity: .55; }

/* Deckchair product mock */
.dc-mock {
  width: 100%;
  max-width: 440px;
  aspect-ratio: 4 / 5;
  background: var(--forest-50);
  color: var(--forest-900);
  border: 1px solid var(--forest-700);
  box-shadow:
    0 40px 80px -40px rgba(0, 0, 0, .55),
    0 0 0 1px rgba(255, 255, 255, .02);
  display: flex;
  flex-direction: column;
  font-family: var(--sans);
  position: relative;
  overflow: hidden;
}
.mk-bar {
  padding: 14px 18px;
  display: flex;
  justify-content: space-between;
  align-items: center;
  border-bottom: 1px solid var(--moss);
}
.mk-bar .mk-brand {
  font-family: var(--sans);
  font-weight: 700;
  font-size: 18px;
  color: var(--forest-900);
  letter-spacing: -0.02em;
}
.mk-bar .mk-brand .dot { color: var(--forest-500); font-style: normal; }
.mk-bar .mk-user {
  width: 24px;
  height: 24px;
  border-radius: 50%;
  background: var(--forest-700);
  color: var(--forest-50);
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 10px;
  font-weight: 500;
}
.mk-head { padding: 22px 22px 12px; }
.mk-head .h {
  font-family: var(--sans);
  font-weight: 600;
  font-size: 22px;
  line-height: 1.15;
  color: var(--forest-900);
  letter-spacing: -0.02em;
}
.mk-head .h i { color: var(--forest-500); font-style: normal; font-weight: 500; }
.mk-head .s {
  font-family: var(--sans);
  font-size: 11px;
  font-weight: 500;
  color: var(--forest-500);
  margin-top: 6px;
}
/* Wallchart legend */
.mk-legend {
  display: flex;
  gap: 14px;
  padding: 0 22px 12px;
  font-family: var(--sans);
  font-size: 11px;
  font-weight: 500;
  color: var(--forest-700);
  border-bottom: 1px solid color-mix(in oklch, var(--forest-700), transparent 82%);
}
.mk-legend span {
  display: inline-flex;
  align-items: center;
  gap: 6px;
}
.mk-legend .sw {
  display: inline-block;
  width: 10px;
  height: 10px;
  border-radius: 2px;
  border: 1px solid transparent;
}
/* Leave-type colors mirror the seed data in the real app */
.sw-al, .wb-al { --bar: #4CAF50; }
.sw-sk, .wb-sk { --bar: #FF9800; }
.sw-pt, .wb-pt { --bar: #a288b8; }
.mk-legend .sw-al,
.mk-legend .sw-sk,
.mk-legend .sw-pt {
  background: var(--bar);
  border-color: var(--bar);
}

/* Wallchart grid: sticky-feeling employee column + dense day cells, mirrors
   the real dashboard wallchart layout (employee left column, day-of-week
   headers, weekend tint, today underline, leave fills as runs). */
.mk-grid {
  flex: 1;
  display: grid;
  grid-template-columns: 110px repeat(14, 1fr);
  column-gap: 1px;
  row-gap: 3px;
  padding: 12px 18px 14px;
  align-content: start;
  min-height: 0;
}
.mg-corner,
.mg-day {
  font-family: var(--sans);
  font-size: 10px;
  font-weight: 600;
  color: var(--forest-700);
  text-align: center;
  padding-bottom: 5px;
  border-bottom: 1px solid color-mix(in oklch, var(--moss), transparent 50%);
  margin-bottom: 4px;
}
.mg-corner {
  text-align: left;
  font-size: 9.5px;
  font-weight: 500;
  color: var(--forest-500);
  letter-spacing: 0;
  text-transform: none;
}
.mg-day.mg-we {
  background: color-mix(in oklch, var(--moss), transparent 75%);
  color: var(--forest-500);
}
.mg-day.mg-today {
  border-bottom: 2px solid var(--forest-500);
  color: var(--forest-900);
}
.mg-emp {
  font-family: var(--sans);
  font-size: 10.5px;
  font-weight: 500;
  color: var(--forest-900);
  display: flex;
  align-items: center;
  gap: 6px;
  padding-right: 8px;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}
/* Tiny remaining-days donut: a conic gradient ring set by --pct on the element. */
.mg-donut {
  width: 12px;
  height: 12px;
  border-radius: 50%;
  flex-shrink: 0;
  background:
    conic-gradient(var(--forest-700) var(--pct, 50%), color-mix(in oklch, var(--moss), transparent 60%) 0);
  -webkit-mask: radial-gradient(circle, transparent 3px, black 3.5px);
          mask: radial-gradient(circle, transparent 3px, black 3.5px);
}
.mg-cell {
  height: 18px;
  background: color-mix(in oklch, var(--forest-50), var(--moss) 12%);
}
.mg-cell.mg-we {
  background: color-mix(in oklch, var(--moss), transparent 70%);
}
.mg-cell.mg-today {
  box-shadow: inset 0 -2px 0 0 var(--forest-500);
}
/* Leave fill */
.mg-cell.mg-leave { background: var(--bar); }
.mg-cell.mg-leave.mg-we {
  /* Real app: alpha 0.15 for non-working days under a leave block. */
  background: color-mix(in oklch, var(--bar), transparent 78%);
}
.mg-cell.mg-leave.mg-pending {
  /* Real app: alpha 0.35 for pending requests. */
  background: color-mix(in oklch, var(--bar), transparent 60%);
}
.mg-cell.mg-leave.mg-half-am {
  background: linear-gradient(to right, var(--bar) 50%, color-mix(in oklch, var(--forest-50), var(--moss) 12%) 50%);
}
.mg-cell.mg-leave-start { border-top-left-radius: 4px; border-bottom-left-radius: 4px; }
.mg-cell.mg-leave-end { border-top-right-radius: 4px; border-bottom-right-radius: 4px; }
.mk-foot {
  padding: 14px 22px;
  border-top: 1px solid var(--moss);
  display: flex;
  justify-content: space-between;
  align-items: center;
  font-family: var(--sans);
  font-size: 11px;
  font-weight: 500;
  color: var(--forest-500);
}
.mk-foot b { color: var(--forest-900); font-weight: 500; }

/* Future placeholder */
.future {
  margin-top: 32px;
  padding: 56px 48px;
  background: var(--paper);
  border: 1px solid var(--sand);
  display: grid;
  grid-template-columns: auto 1fr auto;
  gap: 48px;
  align-items: center;
}
.future .n {
  font-family: var(--mono);
  font-size: 11px;
  letter-spacing: .22em;
  text-transform: uppercase;
  color: var(--stone-2);
}
.future .n b { color: var(--ink); font-weight: 500; }
.future .t {
  font-family: var(--serif);
  font-weight: 400;
  font-style: italic;
  font-size: 34px;
  letter-spacing: -0.01em;
  color: var(--stone-1);
}
.future .tag {
  font-family: var(--mono);
  font-size: 10.5px;
  letter-spacing: .22em;
  text-transform: uppercase;
  color: var(--stone-2);
  padding: 6px 12px;
  border: 1px solid var(--sand);
  background: var(--bone);
}

/* Sign-off */
.signoff {
  margin-top: 96px;
  padding-top: 22px;
  border-top: 1px solid var(--sand);
  display: flex;
  justify-content: space-between;
  align-items: center;
  font-family: var(--mono);
  font-size: 11px;
  letter-spacing: .2em;
  text-transform: uppercase;
  color: var(--stone-2);
}
.signoff a {
  color: var(--ink-deep);
  border-bottom: 1px solid var(--stone-3);
  padding-bottom: 2px;
}
.signoff a:hover { border-color: var(--terra-500); color: var(--terra-500); }

/* ===== Responsive ===== */
@media (max-width: 900px) {
  .page { padding: 64px 32px 96px; }

  .intro { margin-top: 48px; }
  .intro p { font-size: 28px; }

  .plabel { margin-top: 72px; }

  .dc-card {
    grid-template-columns: minmax(0, 1fr);
    min-height: 0;
  }
  .dc-left { padding: 40px 40px 36px; min-width: 0; }
  .dc-right {
    border-left: none;
    border-top: 1px solid var(--forest-700);
    padding: 40px 32px;
    min-width: 0;
  }
  .dc-mock { max-width: 420px; }

  .future {
    grid-template-columns: 1fr;
    gap: 20px;
    padding: 40px 32px;
    align-items: flex-start;
  }
  .future .t { font-size: 28px; }
}

@media (max-width: 600px) {
  body { font-size: 14px; }

  .page { padding: 40px 20px 64px; }

  .wordmark { font-size: clamp(64px, 22vw, 140px); }

  .intro { margin-top: 36px; padding-bottom: 24px; }
  .intro p { font-size: 22px; }

  .plabel {
    margin-top: 56px;
    font-size: 10px;
    letter-spacing: .18em;
  }

  .dc-left { padding: 32px 24px 28px; }
  .dc-right { padding: 32px 20px; }
  .dc-body { margin-top: 32px; }

  .dc-logo { gap: 14px; }
  .dc-logo-mark { width: 34px; height: 48px; }
  .dc-logo-word { font-size: 48px; }
  .dc-desc { font-size: 16px; margin-top: 18px; }
  .dc-cta { margin-top: 28px; }

  .dc-mock { max-width: 100%; }
  .mk-head .h { font-size: 24px; }
  .mk-grid { grid-template-columns: 92px repeat(14, 1fr); padding: 10px 14px 12px; }
  .mg-emp { font-size: 10px; }
  .mg-corner, .mg-day { font-size: 8.5px; }
  .mg-cell { height: 16px; }

  .future {
    padding: 32px 24px;
    gap: 16px;
  }
  .future .t { font-size: 22px; }

  .signoff {
    margin-top: 56px;
    flex-direction: column;
    align-items: flex-start;
    gap: 6px;
  }
}
