/* roomalu.com — product page on the Roomalu brand (marketing/brand, brand board).
   Palette: Teal #14B8A6 (accents, fills under dark text), Deep Teal #0F766E (buttons, links,
   white-on-colour), Mint / Sky / Indigo tints for sections, Slate body, Ink headings.
   Type: Poppins for display, Inter for everything else.
   Motion: only under html.anim (JS on, no reduced-motion preference). Every illustration's
   default CSS is its finished state, so without motion it still reads correctly. */

:root {
  --teal: #14B8A6;
  --deep: #0F766E;
  --deeper: #115E59;
  --mint: #D1FAE5;
  --mint-50: #ECFDF5;
  --sky: #E0F2FE;
  --sky-50: #F0F9FF;
  --indigo: #A5B4FC;
  --indigo-50: #EEF2FF;
  --indigo-ink: #312E81;
  --slate: #334155;
  --body: #475569;
  --quiet: #64748B;
  --ink: #111827;
  --line: #E2E8F0;
  --wash: #F8FAFC;

  --held: #DC4B3E;
  --dirty: #F59E0B;

  --display: Poppins, Inter, ui-sans-serif, system-ui, sans-serif;
  --font: Inter, ui-sans-serif, system-ui, -apple-system, "Segoe UI", sans-serif;
  --gutter: clamp(20px, 5vw, 64px);
  --measure: 1180px;
  --wrap: min(var(--measure), 100% - 2 * var(--gutter));
}

*, *::before, *::after { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; scroll-behavior: smooth; }
@media (prefers-reduced-motion: reduce) { html { scroll-behavior: auto; } }
body { margin: 0; background: #fff; color: var(--body); font: 400 17px/1.6 var(--font); -webkit-font-smoothing: antialiased; }
a { color: var(--deep); text-underline-offset: 3px; }
a:focus-visible, .btn:focus-visible { outline: 3px solid var(--teal); outline-offset: 3px; border-radius: 10px; }
.skip { position: absolute; left: 12px; top: -48px; z-index: 10; background: var(--ink); color: #fff; padding: 8px 12px; border-radius: 8px; }
.skip:focus { top: 12px; }

h1, h2, h3 { color: var(--ink); margin: 0; font-family: var(--display); font-weight: 600; letter-spacing: -0.025em; text-wrap: balance; }
h2 { font-size: clamp(30px, 3.9vw, 48px); line-height: 1.12; }
h3 { font-size: clamp(24px, 2.4vw, 32px); line-height: 1.2; }

/* ---- Buttons ------------------------------------------------------------------- */
.btn {
  display: inline-flex; align-items: center; justify-content: center; gap: 8px;
  height: 48px; padding: 0 22px; border-radius: 12px;
  font: 600 16px/1 var(--font); text-decoration: none; white-space: nowrap;
  transition: background 150ms, border-color 150ms, transform 150ms, box-shadow 150ms;
}
.btn-primary { background: var(--deep); color: #fff; box-shadow: 0 10px 24px -12px rgb(15 118 110 / 0.7); }
.btn-primary:hover { background: var(--deeper); transform: translateY(-1px); }
.btn-ghost { color: var(--ink); border: 1px solid #CBD5E1; background: #fff; }
.btn-ghost:hover { border-color: var(--deep); color: var(--deep); }
.btn-white { background: #fff; color: var(--deep); box-shadow: 0 12px 28px -14px rgb(0 0 0 / 0.45); }
.btn-white:hover { transform: translateY(-1px); }

/* ---- Top bar ------------------------------------------------------------------- */
.top {
  position: relative; z-index: 2;
  width: var(--wrap); margin: 0 auto; padding: 22px 0;
  display: flex; align-items: center; gap: 28px;
}
.wordmark img { display: block; height: 32px; width: auto; }
.topnav { display: flex; gap: 24px; margin-left: auto; }
.topnav a { color: var(--slate); text-decoration: none; font-weight: 500; font-size: 15px; }
.topnav a:hover { color: var(--deep); }
.top .signin { height: 40px; padding: 0 16px; font-size: 15px; }

/* ---- Hero ---------------------------------------------------------------------- */
.hero-wrap {
  position: relative; overflow: hidden;
  margin-top: -84px; padding-top: 84px; padding-bottom: clamp(64px, 9vw, 120px);
  background:
    radial-gradient(900px 520px at 88% 8%, rgb(20 184 166 / 0.16), transparent 62%),
    radial-gradient(700px 460px at 4% 30%, rgb(224 242 254 / 0.9), transparent 64%),
    linear-gradient(180deg, var(--mint-50) 0%, #fff 78%);
}
.swoosh {
  position: absolute; z-index: 0; pointer-events: none;
  width: min(980px, 88vw); right: -16vw; top: 40px; opacity: 0.09;
}
.hero { position: relative; z-index: 1; width: var(--wrap); margin: 0 auto; padding: clamp(56px, 8vw, 104px) 0 clamp(40px, 5vw, 64px); }
h1 { max-width: 13ch; font-weight: 700; font-size: clamp(44px, 6.4vw, 84px); line-height: 1.04; letter-spacing: -0.035em; }
.lede { margin: clamp(20px, 2.6vw, 28px) 0 0; max-width: 60ch; font-size: clamp(17px, 1.5vw, 20px); color: var(--body); }
.cta-row { display: flex; flex-wrap: wrap; gap: 12px; margin-top: clamp(26px, 3vw, 36px); }

/* ---- The rack (decorative) ------------------------------------------------------ */
.rack-wrap { position: relative; z-index: 1; width: var(--wrap); margin: 0 auto; }
.rack {
  --row: 46px; --label: 56px;
  position: relative;
  display: grid;
  grid-template-columns: var(--label) repeat(28, minmax(0, 1fr));
  grid-template-rows: 46px repeat(8, var(--row));
  background: #fff;
  border: 1px solid var(--line);
  border-radius: 20px;
  overflow: hidden;
  box-shadow: 0 50px 100px -40px rgb(15 118 110 / 0.45), 0 18px 40px -24px rgb(17 24 39 / 0.25);
}
.rack::before {
  content: ""; grid-row: 2 / 10; grid-column: 2 / 30;
  background-image:
    linear-gradient(to right, #EEF2F6 1px, transparent 1px),
    linear-gradient(to bottom, #EEF2F6 1px, transparent 1px);
  background-size: calc(100% / 14) 100%, 100% var(--row);
  background-position: 0 0, 0 -1px;
}
.corner { grid-row: 1; grid-column: 1; border-bottom: 1px solid var(--line); }
.day {
  grid-row: 1; grid-column: span 2;
  display: flex; align-items: center; justify-content: center;
  font-size: 13px; font-weight: 600; color: #94A3B8;
  border-bottom: 1px solid var(--line);
}
.day.wk { color: var(--slate); }
.day.now .d { display: none; }
.day small { font-size: 11px; font-weight: 600; color: #fff; background: var(--deep); padding: 3px 9px; border-radius: 99px; }
.room {
  grid-column: 1; display: flex; align-items: center; padding-left: 16px;
  font-size: 13px; font-weight: 600; color: var(--quiet); font-variant-numeric: tabular-nums;
  border-right: 1px solid var(--line);
}
.today { background: rgb(209 250 229 / 0.55); box-shadow: inset 1px 0 0 rgb(20 184 166 / 0.35), inset -1px 0 0 rgb(20 184 166 / 0.35); }

.stay {
  position: relative; z-index: 1; align-self: center;
  height: 28px; margin: 0 2px; border-radius: 8px;
  display: flex; align-items: center; min-width: 0;
  background: var(--teal); color: #042F2E;
  clip-path: inset(-40px -60px -40px -40px);
}
.stay b { font-weight: 600; font-size: 12.5px; padding: 0 10px; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.stay.here { background: var(--deep); color: #fff; }
.stay.group { background: var(--indigo); color: var(--indigo-ink); }
.stay.past { background: #E2E8F0; color: var(--quiet); }
.stay.held { color: #fff; background: repeating-linear-gradient(135deg, var(--held) 0 7px, #C03A2E 7px 14px); }
.cursor { position: absolute; right: 18%; top: 55%; width: 22px; height: 22px; opacity: 0; pointer-events: none; }
.cursor svg { width: 100%; height: 100%; fill: var(--ink); stroke: #fff; stroke-width: 1.5; filter: drop-shadow(0 3px 4px rgb(0 0 0 / .3)); }

/* Rack motion: draw in, then check in Garcia, drag Shah from 105 to 107, a new booking lands. */
.anim .stay { animation: draw 800ms cubic-bezier(0.2, 0.7, 0.2, 1) both; animation-delay: calc(150ms + var(--i) * 60ms); }
@keyframes draw { from { clip-path: inset(0 100% 0 0); } to { clip-path: inset(-40px -60px -40px -40px); } }

.anim .stay.arrive { animation: draw 800ms cubic-bezier(0.2, 0.7, 0.2, 1) 150ms both, checkin 900ms ease-out 2000ms both; }
@keyframes checkin {
  0% { background: var(--teal); color: #042F2E; box-shadow: 0 0 0 0 rgb(20 184 166 / 0); }
  35% { background: var(--deep); color: #fff; box-shadow: 0 0 0 7px rgb(20 184 166 / 0.35); }
  100% { background: var(--deep); color: #fff; box-shadow: 0 0 0 16px rgb(20 184 166 / 0); }
}

.anim .stay.move { animation: draw 800ms cubic-bezier(0.2, 0.7, 0.2, 1) 390ms both, drag 1500ms cubic-bezier(0.5, 0, 0.2, 1) 3000ms both; }
@keyframes drag {
  0% { transform: translateY(calc(var(--row) * -2)); box-shadow: none; }
  14% { transform: translateY(calc(var(--row) * -2)) scale(1.04); box-shadow: 0 16px 30px rgb(15 118 110 / .35); }
  78% { transform: translateY(0) scale(1.04); box-shadow: 0 16px 30px rgb(15 118 110 / .35); }
  100% { transform: translateY(0) scale(1); box-shadow: none; }
}
.anim .stay.move .cursor { animation: cursor 1900ms ease 2800ms both; }
@keyframes cursor { 0% { opacity: 0; transform: translate(14px, 14px); } 12% { opacity: 1; transform: none; } 82% { opacity: 1; } 100% { opacity: 0; } }

.anim .stay.new { animation: pop 650ms cubic-bezier(0.2, 1.4, 0.4, 1) 4700ms both, ring 1200ms ease-out 4900ms both; }
@keyframes pop { from { opacity: 0; transform: scale(0.4); } to { opacity: 1; transform: none; } }
@keyframes ring { from { box-shadow: 0 0 0 0 rgb(20 184 166 / 0.6); } to { box-shadow: 0 0 0 16px rgb(20 184 166 / 0); } }

.toast {
  position: absolute; right: clamp(16px, 3vw, 36px); top: -30px; z-index: 3;
  display: flex; align-items: center; gap: 12px; min-width: 300px;
  padding: 12px 18px 12px 12px; border-radius: 16px; background: #fff;
  border: 1px solid var(--line);
  box-shadow: 0 24px 50px -20px rgb(17 24 39 / 0.35);
}
.toast-icon { width: 40px; height: 40px; border-radius: 11px; background: var(--deep); display: grid; place-items: center; flex: none; }
.toast-icon img { width: 22px; height: auto; }
.toast-body { display: grid; line-height: 1.35; }
.toast-body small { font-size: 12px; color: var(--quiet); font-weight: 500; }
.feed-text { color: var(--ink); font-weight: 600; font-size: 14.5px; transition: opacity 250ms, transform 250ms; }
.feed-text.swap { opacity: 0; transform: translateY(4px); }
.anim .toast { animation: toast-in 600ms cubic-bezier(0.2, 1.2, 0.4, 1) 1200ms both; }
@keyframes toast-in { from { opacity: 0; transform: translateY(12px) scale(0.96); } to { opacity: 1; transform: none; } }

/* ---- Pillars --------------------------------------------------------------------- */
.pillars { width: var(--wrap); margin: 0 auto; padding: clamp(24px, 4vw, 48px) 0 clamp(56px, 8vw, 96px); }
.pillars h2 { max-width: 22ch; }
.sub { margin: 18px 0 0; max-width: 60ch; font-size: clamp(17px, 1.4vw, 19px); }
.pillar-grid { list-style: none; margin: clamp(32px, 4vw, 48px) 0 0; padding: 0; display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 16px; }
.pillar-grid li { display: grid; gap: 6px; align-content: start; padding: 22px; border-radius: 18px; background: var(--wash); border: 1px solid var(--line); }
.pillar-grid strong, .more-grid strong { color: var(--ink); font-weight: 600; font-size: 17px; }
.pillar-grid span:not(.ico), .more-grid span:not(.ico) { font-size: 15px; line-height: 1.5; }
.ico { width: 44px; height: 44px; border-radius: 12px; display: grid; place-items: center; background: var(--mint); margin-bottom: 10px; }
.ico svg { width: 24px; height: 24px; fill: none; stroke: var(--deep); stroke-width: 1.8; stroke-linecap: round; stroke-linejoin: round; }

/* ---- Feature rows ---------------------------------------------------------------- */
.feature {
  width: var(--wrap); margin: 0 auto; padding: clamp(40px, 6vw, 72px) 0;
  display: grid; grid-template-columns: minmax(0, 5fr) minmax(0, 6fr); gap: clamp(32px, 6vw, 88px); align-items: center;
}
.feature.flip .copy { order: 2; }
.copy p { margin: 18px 0 0; max-width: 52ch; }
.facts { list-style: none; margin: 24px 0 0; padding: 0; display: grid; gap: 12px; }
.facts li { position: relative; padding-left: 34px; color: var(--ink); font-weight: 500; font-size: 16px; }
.facts li::before {
  content: "✓"; position: absolute; left: 0; top: 0; width: 22px; height: 22px; border-radius: 50%;
  display: grid; place-items: center; font-size: 12px; font-weight: 700; color: var(--deep); background: var(--mint);
}

.vig {
  position: relative; aspect-ratio: 11 / 8; border-radius: 26px; overflow: hidden;
  display: grid; place-items: center;
}
.tint-mint .vig { background: radial-gradient(420px 300px at 85% 0%, rgb(20 184 166 / 0.22), transparent 70%), linear-gradient(160deg, var(--mint) 0%, var(--mint-50) 100%); }
.tint-sky .vig { background: radial-gradient(420px 300px at 10% 0%, rgb(165 180 252 / 0.35), transparent 70%), linear-gradient(160deg, var(--sky) 0%, var(--sky-50) 100%); }
.tint-indigo .vig { background: radial-gradient(420px 300px at 90% 100%, rgb(20 184 166 / 0.18), transparent 70%), linear-gradient(160deg, #E0E7FF 0%, var(--indigo-50) 100%); }

/* Booking site */
.bk-card { width: min(84%, 360px); background: #fff; border-radius: 18px; padding: 18px; box-shadow: 0 24px 50px -20px rgb(15 118 110 / .45); }
.bk-head { font-family: var(--display); font-weight: 600; color: var(--ink); font-size: 16px; }
.bk-dates { display: grid; grid-template-columns: repeat(3, 1fr); gap: 8px; margin: 14px 0; }
.bk-dates div { border: 1px solid var(--line); border-radius: 10px; padding: 7px 9px; font-size: 13px; color: var(--ink); font-weight: 550; line-height: 1.3; }
.bk-dates small { display: block; font-size: 11px; color: var(--quiet); font-weight: 500; }
.bk-room { display: grid; grid-template-columns: 54px 1fr auto; gap: 12px; align-items: center; padding: 10px; border: 1px solid var(--line); border-radius: 12px; }
.bk-photo { width: 54px; height: 44px; border-radius: 8px; background: linear-gradient(135deg, #99F6E4, #14B8A6 55%, #0F766E); }
.bk-room strong { display: block; color: var(--ink); font-size: 14px; }
.bk-room span { font-size: 12px; color: var(--deep); font-weight: 600; }
.bk-room em { font-style: normal; font-size: 12px; color: var(--quiet); }
.bk-btn { position: relative; margin-top: 14px; height: 44px; border-radius: 11px; background: var(--deep); color: #fff; font-weight: 650; font-size: 14px; display: grid; place-items: center; overflow: hidden; }
.bk-btn > span { grid-area: 1 / 1; }
.bk-label { opacity: 0; }
.bk-done::before { content: "✓  "; }
.anim .vig-book:not(.on) .bk-btn { background: var(--ink); }
.anim .vig-book:not(.on) .bk-label { opacity: 1; }
.anim .vig-book:not(.on) .bk-done { opacity: 0; }
.anim .vig-book.on .bk-btn { animation: press 900ms ease 900ms both; }
.anim .vig-book.on .bk-label { animation: out 250ms ease 1150ms both; }
.anim .vig-book.on .bk-done { animation: in 350ms ease 1300ms both; }
@keyframes press { 0% { background: var(--ink); transform: none; } 25% { transform: scale(0.96); } 50% { background: var(--deep); transform: none; } 100% { background: var(--deep); } }
@keyframes out { from { opacity: 1; } to { opacity: 0; transform: translateY(-8px); } }
@keyframes in { from { opacity: 0; transform: translateY(8px); } to { opacity: 1; transform: none; } }

/* Channels */
.vig-sync svg.sync { position: absolute; inset: 0; width: 100%; height: 100%; }
.sync path { fill: none; stroke: #94A3B8; stroke-width: 1.5; stroke-dasharray: 3 5; }
.sync circle { fill: var(--deep); }
.sync circle.in { fill: #6366F1; }
.hub {
  position: absolute; left: 50%; top: 50%; transform: translate(-50%, -50%);
  display: inline-flex; align-items: center; gap: 9px; padding: 13px 18px; border-radius: 16px;
  background: var(--deep); color: #fff; font-family: var(--display); font-weight: 600; font-size: 15px;
  box-shadow: 0 0 0 8px rgb(15 118 110 / .12), 0 18px 40px -14px rgb(15 118 110 / .7);
}
.hub img { width: 20px; height: auto; }
.node {
  position: absolute; transform: translate(-50%, -50%);
  padding: 9px 13px; border-radius: 12px; background: #fff;
  font-size: 13px; font-weight: 600; color: var(--ink); white-space: nowrap;
  box-shadow: 0 10px 24px -14px rgb(17 24 39 / .4);
}
.n1 { left: 18%; top: 22%; } .n2 { left: 82%; top: 22%; } .n3 { left: 18%; top: 78%; } .n4 { left: 82%; top: 78%; }
.anim .vig-sync .hub { animation: hub 3s ease-in-out infinite; }
@keyframes hub { 0%, 100% { box-shadow: 0 0 0 8px rgb(15 118 110 / .12), 0 18px 40px -14px rgb(15 118 110 / .7); } 50% { box-shadow: 0 0 0 16px rgb(20 184 166 / .16), 0 18px 40px -14px rgb(15 118 110 / .7); } }

/* Guest messages */
.phone {
  width: min(62%, 270px); height: 88%; align-self: end; margin-top: 12%;
  background: #fff; border-radius: 32px 32px 0 0; border: 8px solid var(--ink); border-bottom: 0;
  padding: 14px 12px; display: flex; flex-direction: column; gap: 9px;
  box-shadow: 0 24px 60px -20px rgb(49 46 129 / .45);
}
.phone-top { text-align: center; font-size: 12px; font-weight: 650; color: var(--ink); padding-bottom: 8px; border-bottom: 1px solid var(--line); margin-bottom: 2px; }
.bubble { max-width: 86%; padding: 9px 12px; border-radius: 16px 16px 16px 5px; background: #F1F5F9; color: var(--ink); font-size: 12.5px; line-height: 1.4; }
.bubble.me { align-self: flex-end; background: var(--deep); color: #fff; border-radius: 16px 16px 5px 16px; }
.chip { display: block; margin-top: 7px; width: fit-content; padding: 4px 10px; border-radius: 99px; background: var(--deep); color: #fff; font-size: 11.5px; font-weight: 600; }
.anim .vig-msg:not(.on) .bubble { opacity: 0; }
.anim .vig-msg.on .bubble { animation: bubble 450ms cubic-bezier(0.2, 1.2, 0.4, 1) both; }
.anim .vig-msg.on .b1 { animation-delay: 300ms; }
.anim .vig-msg.on .b2 { animation-delay: 1300ms; }
.anim .vig-msg.on .b3 { animation-delay: 2500ms; }
@keyframes bubble { from { opacity: 0; transform: translateY(12px) scale(0.92); } to { opacity: 1; transform: none; } }

/* Folio + night audit */
.vig-folio { grid-template-columns: auto auto; gap: 18px; align-content: center; justify-content: center; }
.receipt {
  position: relative; width: min(58vw, 270px); background: #fff; border-radius: 16px; padding: 16px 16px 14px;
  box-shadow: 0 24px 50px -20px rgb(15 118 110 / .45); font-size: 13px; color: var(--body);
  font-variant-numeric: tabular-nums;
}
.r-head { display: flex; justify-content: space-between; align-items: baseline; padding-bottom: 10px; border-bottom: 1px dashed var(--line); margin-bottom: 8px; }
.r-head strong { color: var(--ink); font-size: 15px; font-family: var(--display); font-weight: 600; }
.r-head span { font-size: 12px; color: var(--quiet); }
.r-line { display: flex; justify-content: space-between; padding: 5px 0; }
.r-line.pay span:last-child { color: var(--deep); font-weight: 600; }
.r-total { display: flex; justify-content: space-between; margin-top: 8px; padding-top: 10px; border-top: 1px solid var(--ink); color: var(--ink); font-weight: 650; font-size: 15px; }
.stamp {
  position: absolute; left: 50%; bottom: 8px; translate: -50% 0; transform: rotate(-12deg);
  border: 2px solid var(--deep); color: var(--deep); border-radius: 8px; padding: 2px 10px;
  font-weight: 700; font-size: 18px; letter-spacing: 0.04em; background: rgb(255 255 255 / .88);
}
.audit {
  width: 120px; background: var(--ink); color: #fff; border-radius: 16px; padding: 14px; text-align: center;
  box-shadow: 0 24px 50px -20px rgb(17 24 39 / .55);
}
.audit small { font-size: 11px; color: #94A3B8; font-weight: 600; }
.flip-date { position: relative; height: 40px; margin: 6px 0; overflow: hidden; font-family: var(--display); font-size: 28px; font-weight: 600; }
.flip-date span { position: absolute; inset: 0; display: grid; place-items: center; }
.flip-date .from { transform: translateY(-100%); opacity: 0; }
.audit-ok { font-size: 12px; color: var(--teal); font-weight: 600; }
.audit-ok::before { content: "✓ "; }
.anim .vig-folio:not(.on) :is(.r-line, .r-total, .stamp, .audit-ok) { opacity: 0; }
.anim .vig-folio:not(.on) .flip-date .from { transform: none; opacity: 1; }
.anim .vig-folio:not(.on) .flip-date .to { transform: translateY(100%); opacity: 0; }
.anim .vig-folio.on :is(.r-line, .r-total) { animation: in 380ms ease both; }
.anim .vig-folio.on .l1 { animation-delay: 200ms; }
.anim .vig-folio.on .l2 { animation-delay: 500ms; }
.anim .vig-folio.on .l3 { animation-delay: 800ms; }
.anim .vig-folio.on .l4 { animation-delay: 1200ms; }
.anim .vig-folio.on .r-total { animation-delay: 1500ms; }
.anim .vig-folio.on .stamp { animation: stamp 450ms cubic-bezier(0.2, 1.6, 0.4, 1) 1900ms both; }
.anim .vig-folio.on .flip-date .from { animation: flipout 500ms ease 2600ms both; }
.anim .vig-folio.on .flip-date .to { animation: flipin 500ms ease 2600ms both; }
.anim .vig-folio.on .audit-ok { animation: in 350ms ease 3100ms both; }
@keyframes stamp { from { opacity: 0; transform: rotate(-12deg) scale(2); } to { opacity: 1; transform: rotate(-12deg) scale(1); } }
@keyframes flipout { from { transform: none; opacity: 1; } to { transform: translateY(-100%); opacity: 0; } }
@keyframes flipin { from { transform: translateY(100%); opacity: 0; } to { transform: none; opacity: 1; } }

/* Housekeeping */
.vig-hk { align-content: center; gap: 18px; }
.tiles { display: grid; grid-template-columns: repeat(4, 1fr); gap: 10px; width: min(84%, 360px); }
.tile {
  --to: var(--teal); --fg: #042F2E;
  aspect-ratio: 5 / 4; border-radius: 14px; display: grid; place-items: center;
  font-weight: 650; font-size: 15px; color: var(--fg); font-variant-numeric: tabular-nums;
  background: var(--to); box-shadow: 0 10px 20px -12px rgb(17 24 39 / .45);
}
.tile.i { --to: var(--deep); --fg: #fff; }
.tile.d { --to: var(--dirty); --fg: #3B2603; }
.tile.x { --fg: #fff; background: repeating-linear-gradient(135deg, var(--held) 0 7px, #C03A2E 7px 14px); }
.hk-key { list-style: none; margin: 0; padding: 0; display: flex; flex-wrap: wrap; justify-content: center; gap: 6px 16px; font-size: 13px; color: var(--slate); }
.hk-key li { display: inline-flex; align-items: center; gap: 6px; }
.hk-key i { width: 12px; height: 12px; border-radius: 4px; display: inline-block; }
.hk-key .dirty { background: var(--dirty); } .hk-key .clean { background: var(--teal); } .hk-key .insp { background: var(--deep); }
.hk-key .oos { background: var(--held); }
.anim .vig-hk:not(.on) .tile:not(.x) { background: var(--dirty); color: #3B2603; }
.anim .vig-hk.on .tile:not(.x) { animation: turn 500ms ease both; animation-delay: calc(300ms + var(--k) * 180ms); }
@keyframes turn { 0% { background: var(--dirty); color: #3B2603; transform: none; } 50% { transform: scale(0.9); } 100% { background: var(--to); color: var(--fg); transform: none; } }

/* ---- Deep teal band --------------------------------------------------------------- */
.band {
  margin: clamp(48px, 7vw, 88px) 0 0;
  background:
    radial-gradient(800px 400px at 100% 0%, rgb(20 184 166 / 0.45), transparent 60%),
    linear-gradient(135deg, #0B4F4A 0%, var(--deep) 100%);
  color: #CCFBF1;
}
.band-in { width: var(--wrap); margin: 0 auto; padding: clamp(64px, 9vw, 112px) 0; }
.band h2 { color: #fff; max-width: 22ch; }
.band-grid { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: clamp(24px, 4vw, 48px); margin-top: clamp(32px, 4vw, 48px); }
.band-grid strong { display: block; color: #fff; font-family: var(--display); font-weight: 600; font-size: 19px; margin-bottom: 8px; }
.band-grid p { margin: 0; color: #CCFBF1; }
.band-grid > div { padding-top: 18px; border-top: 2px solid rgb(20 184 166 / 0.7); }

/* ---- Everything else -------------------------------------------------------------- */
.more { width: var(--wrap); margin: 0 auto; padding: clamp(72px, 10vw, 128px) 0 clamp(72px, 10vw, 120px); }
.more-grid { list-style: none; margin: clamp(28px, 4vw, 44px) 0 0; padding: 0; display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: clamp(28px, 3.4vw, 44px) clamp(20px, 3vw, 36px); }
.more-grid li { display: grid; gap: 6px; align-content: start; }

/* ---- Closing CTA on the brand gradient ----------------------------------------------- */
.cta {
  position: relative; overflow: hidden;
  background: linear-gradient(120deg, #0B4F4A 0%, var(--deep) 42%, var(--teal) 78%, #5EEAD4 100%);
  color: #fff;
}
.cta-swoosh { position: absolute; right: -6%; top: -18%; width: min(720px, 70vw); opacity: 0.16; pointer-events: none; }
.cta-in { position: relative; width: var(--wrap); margin: 0 auto; padding: clamp(72px, 10vw, 128px) 0; }
.cta h2 { color: #fff; font-weight: 700; font-size: clamp(36px, 5.4vw, 68px); line-height: 1.05; letter-spacing: -0.035em; max-width: 14ch; }
.cta p { margin: 18px 0 30px; max-width: 48ch; font-size: clamp(17px, 1.6vw, 20px); color: #F0FDFA; }

/* ---- Footer ------------------------------------------------------------------------ */
.foot {
  width: var(--wrap); margin: 0 auto; padding: 32px 0 40px;
  display: flex; align-items: center; gap: 28px; flex-wrap: wrap; font-size: 14px; color: var(--quiet);
}
.foot img { display: block; height: 24px; width: auto; }
.foot nav { display: flex; gap: 20px; }
.foot nav a { color: var(--slate); text-decoration: none; }
.foot nav a:hover { color: var(--deep); }
.foot p { margin: 0 0 0 auto; }

/* ---- Responsive ------------------------------------------------------------------- */
@media (max-width: 980px) {
  .pillar-grid, .more-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .band-grid { grid-template-columns: 1fr; }
}
@media (max-width: 860px) {
  .feature { grid-template-columns: 1fr; }
  .feature.flip .copy { order: 0; }
  .topnav { display: none; }
  .top .signin { margin-left: auto; }
}
@media (max-width: 640px) {
  .rack { --row: 32px; --label: 40px; grid-template-rows: 34px repeat(8, var(--row)); border-radius: 14px; }
  .stay { height: 18px; border-radius: 5px; margin: 0 1px; }
  .stay b { display: none; }
  .cursor { width: 16px; height: 16px; }
  .day { font-size: 11px; }
  .day small { display: none; }
  .day.now .d { display: grid; place-items: center; width: 18px; height: 18px; border-radius: 99px; background: var(--deep); color: #fff; }
  .room { padding-left: 8px; font-size: 11px; }
  .toast { position: relative; top: auto; right: auto; margin: 14px 0 0; min-width: 0; }
  .vig { aspect-ratio: 1 / 1; }
  .vig.vig-sync { aspect-ratio: 11 / 8; }
  .vig-folio { grid-template-columns: 1fr; justify-items: center; }
  .audit { width: auto; display: flex; align-items: center; gap: 12px; padding: 10px 14px; }
  .flip-date { width: 56px; margin: 0; height: 32px; font-size: 22px; }
  .node { font-size: 12px; padding: 6px 9px; }
  .pillar-grid, .more-grid { grid-template-columns: 1fr; }
  .foot p { margin-left: 0; width: 100%; }
}

@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after { animation: none !important; transition: none !important; }
}
