/* ClickMe — shared styles. Mobile-first, welcoming hotel style, accessible. */

:root {
  --red: #DC2626;
  --red-dark: #B91C1C;
  --red-soft: #FEF2F2;
  --brand: #0059B2;
  --brand-dark: #012F6A;
  --brand-soft: #EAF3FD;
  --accent: #01C6AA;
  --ink: #111827;
  --muted: #6B7280;
  --line: #E5E7EB;
  --paper: #FFFFFF;
  --bg: #F7F7F8;
  --ok: #047857;
  --ok-soft: #ECFDF5;
  --warn: #B45309;
  --warn-soft: #FFFBEB;
  --info: #1D4ED8;
  --info-soft: #EFF6FF;
  --radius: 14px;
  --radius-sm: 10px;
  --shadow: 0 1px 2px rgba(17,24,39,.06), 0 8px 24px rgba(17,24,39,.06);
  --focus: 0 0 0 3px rgba(0,89,178,.35);
  --font: system-ui, -apple-system, "Segoe UI", Roboto, Helvetica, Arial, sans-serif;
}

* { box-sizing: border-box; }
html, body { margin: 0; }
body {
  font-family: var(--font);
  color: var(--ink);
  background: var(--bg);
  line-height: 1.5;
  -webkit-font-smoothing: antialiased;
  font-size: 17px;
}
h1, h2, h3 { line-height: 1.2; letter-spacing: -0.02em; margin: 0; }
a { color: var(--brand); }
img { max-width: 100%; }

/* Layout -------------------------------------------------------------- */
.app { min-height: 100vh; display: flex; flex-direction: column; }
.wrap { width: 100%; max-width: 600px; margin: 0 auto; padding: 16px; }
.wrap-wide { max-width: 1040px; }
.grow { flex: 1; }
.stack > * + * { margin-top: 14px; }
.row { display: flex; gap: 10px; align-items: center; }
.row-between { display: flex; gap: 10px; align-items: center; justify-content: space-between; }
.wrap-gap { flex-wrap: wrap; }
.spacer { flex: 1; }
.muted { color: var(--muted); }
.small { font-size: 14px; }
.tiny { font-size: 12px; }
.center { text-align: center; }
.nowrap { white-space: nowrap; }
.hidden { display: none !important; }

/* Brand header -------------------------------------------------------- */
.topbar {
  position: sticky; top: 0; z-index: 20;
  background: var(--paper); border-bottom: 1px solid var(--line);
}
.topbar .wrap { display: flex; align-items: center; gap: 12px; padding-top: 12px; padding-bottom: 12px; }
.brand { font-weight: 800; font-size: 22px; letter-spacing: -0.03em; color: var(--ink); text-decoration: none; }
.brand span { color: var(--accent); }
.brand-sub { font-size: 12px; color: var(--muted); font-weight: 600; }

/* Demo banner --------------------------------------------------------- */
.demo-banner {
  background: var(--warn-soft); color: var(--warn);
  border-bottom: 1px solid #FDE68A;
  font-size: 13px; font-weight: 600;
}
.demo-banner .wrap { padding-top: 8px; padding-bottom: 8px; display: flex; gap: 10px; align-items: center; justify-content: center; text-align: center; }

/* Cards --------------------------------------------------------------- */
.card {
  background: var(--paper); border: 1px solid var(--line);
  border-radius: var(--radius); padding: 18px; box-shadow: var(--shadow);
}
.card + .card { margin-top: 14px; }
.card h2 { font-size: 20px; }
.card h3 { font-size: 16px; }
.card-tight { padding: 14px; }

/* Buttons ------------------------------------------------------------- */
.btn {
  appearance: none; border: 1px solid transparent; cursor: pointer;
  font-family: inherit; font-size: 17px; font-weight: 700;
  padding: 14px 18px; border-radius: var(--radius-sm);
  min-height: 52px; width: 100%;
  display: inline-flex; align-items: center; justify-content: center; gap: 8px;
  transition: background .15s, border-color .15s, transform .05s;
}
.btn:active { transform: translateY(1px); }
.btn:focus-visible { outline: none; box-shadow: var(--focus); }
.btn-primary { background: var(--brand); color: #fff; }
.btn-primary:hover { background: var(--brand-dark); }
.btn-secondary { background: #fff; color: var(--ink); border-color: var(--line); }
.btn-secondary:hover { background: #F9FAFB; }
.btn-ghost { background: transparent; color: var(--brand); min-height: 44px; padding: 10px 12px; }
.btn-danger { background: #fff; color: var(--red); border-color: #FCA5A5; }
.btn-auto { width: auto; }
.btn-sm { min-height: 40px; padding: 8px 14px; font-size: 15px; width: auto; }
.btn:disabled { opacity: .55; cursor: not-allowed; }
.btn-row { display: flex; gap: 10px; flex-wrap: wrap; }
.btn-row .btn { width: auto; flex: 1; min-width: 140px; }

/* Forms --------------------------------------------------------------- */
.field { display: block; margin-top: 14px; }
.field:first-child { margin-top: 0; }
.field label { display: block; font-weight: 600; font-size: 15px; margin-bottom: 6px; }
.field .hint { font-weight: 400; color: var(--muted); font-size: 13px; }
.input, .select, .textarea {
  width: 100%; font-family: inherit; font-size: 17px; color: var(--ink);
  padding: 13px 14px; border: 1px solid var(--line); border-radius: var(--radius-sm);
  background: #fff;
}
.input:focus, .select:focus, .textarea:focus { outline: none; border-color: var(--brand); box-shadow: var(--focus); }
.input[aria-invalid="true"] { border-color: var(--red); }
.textarea { min-height: 90px; resize: vertical; }
.field-error { color: var(--red); font-size: 13px; margin-top: 6px; font-weight: 600; }
.checkrow { display: flex; gap: 12px; align-items: flex-start; margin-top: 12px; }
.checkrow input[type="checkbox"] { width: 22px; height: 22px; margin-top: 2px; flex: none; accent-color: var(--brand); }
.code-input { letter-spacing: 8px; text-align: center; font-size: 26px; font-weight: 700; }

/* Progress steps ------------------------------------------------------ */
.progress { display: flex; gap: 6px; margin: 4px 0 2px; }
.progress .seg { flex: 1; height: 6px; border-radius: 99px; background: var(--line); }
.progress .seg.done { background: var(--brand); }
.progress .seg.active { background: var(--brand); opacity: .55; }
.step-label { font-size: 13px; color: var(--muted); font-weight: 600; }

/* Status pills -------------------------------------------------------- */
.pill {
  display: inline-flex; align-items: center; gap: 6px;
  font-size: 12px; font-weight: 700; padding: 4px 10px; border-radius: 99px;
  border: 1px solid transparent; white-space: nowrap;
}
.pill::before { content: ""; width: 7px; height: 7px; border-radius: 99px; background: currentColor; }
.pill-grey { background: #F3F4F6; color: #4B5563; }
.pill-info { background: var(--info-soft); color: var(--info); }
.pill-warn { background: var(--warn-soft); color: var(--warn); }
.pill-ok { background: var(--ok-soft); color: var(--ok); }
.pill-red { background: var(--red-soft); color: var(--red); }

/* Banners ------------------------------------------------------------- */
.banner { border-radius: var(--radius-sm); padding: 14px 16px; font-size: 15px; border: 1px solid; }
.banner-info { background: var(--info-soft); color: var(--info); border-color: #BFDBFE; }
.banner-ok { background: var(--ok-soft); color: var(--ok); border-color: #A7F3D0; }
.banner-warn { background: var(--warn-soft); color: var(--warn); border-color: #FDE68A; }
.banner-error { background: var(--red-soft); color: var(--red-dark); border-color: #FCA5A5; }
.banner strong { display: block; margin-bottom: 2px; }

/* Definition rows ----------------------------------------------------- */
.dl { display: grid; grid-template-columns: 1fr auto; gap: 10px 16px; }
.dl dt { color: var(--muted); font-size: 15px; }
.dl dd { margin: 0; font-weight: 600; text-align: right; }
.divider { height: 1px; background: var(--line); margin: 14px 0; }

/* Loading skeletons --------------------------------------------------- */
.skeleton { background: linear-gradient(90deg,#eee,#f5f5f5,#eee); background-size: 200% 100%; animation: sk 1.2s infinite; border-radius: 8px; }
@keyframes sk { 0%{background-position:200% 0} 100%{background-position:-200% 0} }
.sk-line { height: 14px; margin: 8px 0; }
.sk-line.w60 { width: 60%; } .sk-line.w40 { width: 40%; } .sk-line.w80 { width: 80%; }
.spinner { width: 20px; height: 20px; border: 3px solid rgba(255,255,255,.5); border-top-color: #fff; border-radius: 99px; animation: spin .7s linear infinite; }
.spinner-ink { border-color: rgba(17,24,39,.2); border-top-color: var(--ink); }
@keyframes spin { to { transform: rotate(360deg); } }

/* Empty state --------------------------------------------------------- */
.empty { text-align: center; padding: 40px 16px; color: var(--muted); }
.empty .big { font-size: 40px; margin-bottom: 8px; }

/* Staff table / list -------------------------------------------------- */
.toolbar { display: flex; gap: 10px; flex-wrap: wrap; align-items: center; margin-bottom: 14px; }
.toolbar .input { width: auto; flex: 1; min-width: 180px; }
.chips { display: flex; gap: 8px; flex-wrap: wrap; }
.chip { font-size: 14px; font-weight: 600; padding: 8px 12px; border-radius: 99px; border: 1px solid var(--line); background: #fff; cursor: pointer; }
.chip.active { background: var(--ink); color: #fff; border-color: var(--ink); }

.arrival { display: block; width: 100%; text-align: left; background: #fff; border: 1px solid var(--line); border-radius: var(--radius); padding: 14px; cursor: pointer; }
.arrival + .arrival { margin-top: 10px; }
.arrival:hover { border-color: #D1D5DB; }
.arrival:focus-visible { outline: none; box-shadow: var(--focus); }
.arrival .top { display: flex; justify-content: space-between; gap: 10px; align-items: flex-start; }
.arrival .name { font-weight: 700; font-size: 17px; }
.arrival .ref { color: var(--muted); font-size: 13px; }
.arrival .statuses { display: flex; gap: 6px; flex-wrap: wrap; margin-top: 10px; }

/* Modal / drawer ------------------------------------------------------ */
.overlay { position: fixed; inset: 0; background: rgba(17,24,39,.45); display: flex; align-items: flex-end; justify-content: center; z-index: 50; }
.sheet { background: #fff; width: 100%; max-width: 680px; max-height: 92vh; overflow: auto; border-radius: 18px 18px 0 0; padding: 18px; }
.sheet h2 { font-size: 20px; }
.sheet-head { display: flex; justify-content: space-between; align-items: center; margin-bottom: 8px; position: sticky; top: -18px; background: #fff; padding: 6px 0; }
.icon-btn { background: #F3F4F6; border: none; width: 40px; height: 40px; border-radius: 99px; font-size: 20px; cursor: pointer; line-height: 1; }
@media (min-width: 640px) { .overlay { align-items: center; } .sheet { border-radius: 18px; } }

/* Toast --------------------------------------------------------------- */
.toast-wrap { position: fixed; left: 0; right: 0; bottom: 16px; display: flex; justify-content: center; z-index: 80; pointer-events: none; }
.toast { background: var(--ink); color: #fff; padding: 12px 18px; border-radius: 99px; font-weight: 600; font-size: 15px; box-shadow: var(--shadow); max-width: 92%; }
.toast.err { background: var(--red-dark); }

/* Simulated/label tag ------------------------------------------------- */
.sim-tag { display: inline-block; font-size: 11px; font-weight: 800; text-transform: uppercase; letter-spacing: .04em; color: var(--warn); background: var(--warn-soft); border: 1px solid #FDE68A; padding: 2px 8px; border-radius: 6px; }

/* Big code / key ------------------------------------------------------ */
.keybox { text-align: center; padding: 20px; background: var(--ink); color: #fff; border-radius: var(--radius); }
.keybox .num { font-size: 44px; font-weight: 800; letter-spacing: 6px; }
.roombox { text-align: center; padding: 18px; background: var(--ok-soft); border: 1px solid #A7F3D0; border-radius: var(--radius); }
.roombox .num { font-size: 40px; font-weight: 800; color: var(--ok); }

/* Landing ------------------------------------------------------------- */
.hero { text-align: center; padding: 28px 0 12px; }
.hero h1 { font-size: clamp(40px, 11vw, 72px); font-weight: 800; }
.hero h1 span { color: var(--accent); }
.hero p { color: var(--muted); font-size: 18px; margin-top: 8px; }

footer.foot { color: var(--muted); font-size: 13px; text-align: center; padding: 24px 16px; }

/* Design polish (logo palette) ----------------------------------------- */
:root {
  --brand-mid: #0A6AD0;
  --line-tint: #DCE7F5;
  --shadow: 0 1px 2px rgba(1,47,106,.06), 0 10px 28px rgba(1,47,106,.08);
  --shadow-lift: 0 2px 4px rgba(1,47,106,.08), 0 14px 32px rgba(1,47,106,.12);
}
body {
  background:
    radial-gradient(760px 380px at 50% -90px, rgba(1,198,170,.16), transparent 70%),
    radial-gradient(900px 480px at 12% -140px, rgba(0,89,178,.13), transparent 65%),
    var(--bg);
  background-repeat: no-repeat;
}
h1, h2, h3 { color: var(--brand-dark); }
.topbar { border-bottom: 1px solid var(--line-tint); box-shadow: 0 6px 18px rgba(1,47,106,.05); }
.topbar::before { content: ""; display: block; height: 4px; background: linear-gradient(90deg, var(--brand), var(--accent)); }
.brand { color: var(--brand-dark); }
.card { border-color: var(--line-tint); border-radius: 16px; }
.btn { border-radius: 12px; transition: background .15s, border-color .15s, box-shadow .15s, transform .12s; }
.btn-primary { background: linear-gradient(180deg, var(--brand-mid), var(--brand)); box-shadow: 0 6px 16px rgba(0,89,178,.28); }
.btn-primary:hover { background: linear-gradient(180deg, var(--brand), var(--brand-dark)); box-shadow: 0 8px 20px rgba(0,89,178,.34); transform: translateY(-1px); }
.btn-secondary { color: var(--brand-dark); border-color: #BFD3EE; }
.btn-secondary:hover { background: var(--brand-soft); }
.btn-ghost:hover { background: var(--brand-soft); border-radius: 12px; }
.input, .select, .textarea { border-color: #C5D3E6; border-radius: 12px; }
.hero { padding: 36px 0 10px; }
.hero h1 { line-height: 0; }
.hero h1 img { display: block; margin: 0 auto; filter: drop-shadow(0 12px 20px rgba(1,47,106,.18)); }
.hero p { color: #4A5E7A; font-size: 19px; margin-top: 14px; }
.progress .seg.done { background: var(--brand); }
.progress .seg.active { background: var(--accent); opacity: 1; }
.step-label { color: #4A5E7A; }
.pill-info { background: var(--brand-soft); color: var(--brand); }
.chip { border-color: var(--line-tint); }
.chip.active { background: var(--brand); border-color: var(--brand); }
.arrival { border-color: var(--line-tint); transition: border-color .15s, box-shadow .15s, transform .12s; }
.arrival:hover { border-color: #9DBFE8; box-shadow: var(--shadow-lift); transform: translateY(-1px); }
.toast { background: var(--brand-dark); }
.keybox { background: linear-gradient(160deg, var(--brand-dark), var(--brand)); }
.divider { background: var(--line-tint); }
footer.foot { color: #5B6F8A; }
@media (prefers-reduced-motion: reduce) {
  .btn, .arrival { transition: none; }
  .btn-primary:hover, .arrival:hover { transform: none; }
}

/* ===== Landing page ==================================================== */
:root { --navy-deep: #021B3F; }
html { scroll-behavior: smooth; }
.site { width: 100%; max-width: 1120px; margin: 0 auto; padding: 0 20px; }
@keyframes rise { from { opacity: 0; transform: translateY(14px); } to { opacity: 1; transform: none; } }
@keyframes float { 0%,100% { transform: translateY(0); } 50% { transform: translateY(-8px); } }
.reveal { animation: rise .65s cubic-bezier(.2,.7,.2,1) both; animation-delay: var(--d, 0s); }

.site-nav { position: sticky; top: 0; z-index: 30; background: rgba(255,255,255,.82); backdrop-filter: saturate(180%) blur(14px); -webkit-backdrop-filter: saturate(180%) blur(14px); border-bottom: 1px solid var(--line-tint); }
.site-nav::before { content: ""; display: block; height: 4px; background: linear-gradient(90deg, var(--brand), var(--accent)); }
.site-nav .site { display: flex; align-items: center; gap: 22px; height: 64px; }
.nav-brand { font-weight: 800; font-size: 24px; letter-spacing: -0.04em; color: var(--brand-dark); text-decoration: none; margin-right: auto; }
.nav-brand span { color: var(--accent); }
.nav-link { color: var(--brand-dark); font-weight: 600; font-size: 15px; text-decoration: none; padding: 8px 4px; }
.nav-link:hover { color: var(--brand); }
.site-nav .btn { width: auto; min-height: 42px; padding: 8px 18px; font-size: 15px; }

.hero-grid { display: grid; grid-template-columns: 1.05fr .95fr; gap: 40px; align-items: center; padding-top: 64px; padding-bottom: 56px; }
.hero-copy .logo-lg { display: block; width: 168px; height: auto; margin: 0 0 18px; filter: drop-shadow(0 12px 20px rgba(1,47,106,.18)); }
.eyebrow { display: inline-block; font-size: 13px; font-weight: 800; letter-spacing: .08em; text-transform: uppercase; color: var(--brand); background: var(--brand-soft); border: 1px solid #C9DDF6; padding: 6px 12px; border-radius: 99px; }
.hero-copy h1 { font-size: clamp(38px, 5.4vw, 62px); line-height: 1.04; letter-spacing: -0.035em; font-weight: 800; margin: 16px 0 0; color: var(--navy-deep); }
.hero-copy h1 em { font-style: normal; background: linear-gradient(90deg, var(--brand), var(--accent)); -webkit-background-clip: text; background-clip: text; color: transparent; }
.lead { font-size: 19px; line-height: 1.55; color: #3F5370; margin: 20px 0 0; max-width: 520px; }
.cta-row { display: flex; gap: 12px; flex-wrap: wrap; margin-top: 30px; }
.cta-row .btn { width: auto; min-height: 54px; padding: 14px 20px; font-size: 16px; }
a.btn { text-decoration: none; }
.cta-note { margin-top: 18px; font-size: 14px; color: #5B6F8A; font-weight: 600; }

.phone-wrap { position: relative; display: flex; justify-content: center; }
.phone-wrap::before { content: ""; position: absolute; inset: 6% 4% 2%; background: radial-gradient(closest-side, rgba(1,198,170,.35), rgba(0,89,178,.18) 55%, transparent 75%); filter: blur(22px); z-index: 0; }
.phone { position: relative; z-index: 1; width: 292px; border-radius: 40px; padding: 11px; background: linear-gradient(160deg, #0B2A57, #021B3F); box-shadow: 0 40px 70px -20px rgba(1,27,63,.55), 0 0 0 1px rgba(255,255,255,.08) inset; animation: float 7s ease-in-out infinite; }
.phone img { display: block; width: 100%; height: 440px; object-fit: cover; object-position: top; border-radius: 30px; background: #fff; }

.section { padding-top: 72px; padding-bottom: 72px; }
.section-head { max-width: 640px; margin: 0 auto 40px; text-align: center; }
.section-head h2 { font-size: clamp(30px, 4vw, 42px); letter-spacing: -0.03em; line-height: 1.1; color: var(--navy-deep); }
.section-head p { color: #3F5370; font-size: 18px; margin: 14px 0 0; }
.band { background: linear-gradient(180deg, rgba(234,243,253,.75), rgba(234,243,253,0)); border-top: 1px solid var(--line-tint); }

.steps { display: grid; grid-template-columns: repeat(4, 1fr); gap: 18px; counter-reset: s; }
.step { position: relative; background: var(--paper); border: 1px solid var(--line-tint); border-radius: 20px; padding: 26px 22px 24px; box-shadow: var(--shadow); transition: transform .2s, box-shadow .2s; }
.step:hover { transform: translateY(-4px); box-shadow: var(--shadow-lift); }
.step::before { counter-increment: s; content: counter(s); display: flex; align-items: center; justify-content: center; width: 46px; height: 46px; border-radius: 14px; font-weight: 800; font-size: 22px; color: #fff; background: linear-gradient(135deg, var(--brand), var(--accent)); box-shadow: 0 8px 18px rgba(0,89,178,.28); margin-bottom: 18px; }
.step h3 { font-size: 19px; letter-spacing: -0.02em; }
.step p { margin: 8px 0 0; color: #4A5E7A; font-size: 16px; line-height: 1.5; }

.staff-panel { display: grid; grid-template-columns: 1.1fr .9fr; gap: 40px; align-items: center; background: linear-gradient(135deg, var(--navy-deep), #06407F 70%, #0A6AD0); color: #fff; border-radius: 28px; padding: 52px 48px; box-shadow: 0 30px 60px -24px rgba(1,27,63,.55); position: relative; overflow: hidden; }
.staff-panel::after { content: ""; position: absolute; right: -80px; top: -80px; width: 320px; height: 320px; border-radius: 50%; background: radial-gradient(closest-side, rgba(1,198,170,.45), transparent 70%); }
.staff-panel > * { position: relative; z-index: 1; }
.staff-panel h2 { color: #fff; font-size: clamp(28px, 3.6vw, 40px); letter-spacing: -0.03em; line-height: 1.1; }
.staff-panel p { color: #CFE0F5; font-size: 18px; margin: 14px 0 26px; }
.staff-panel .btn { width: auto; background: #fff; color: var(--brand-dark); box-shadow: 0 10px 24px rgba(0,0,0,.25); }
.staff-panel .btn:hover { background: var(--brand-soft); }
.ticks { list-style: none; margin: 0; padding: 0; display: grid; gap: 14px; }
.ticks li { display: flex; gap: 14px; align-items: flex-start; background: rgba(255,255,255,.08); border: 1px solid rgba(255,255,255,.16); border-radius: 14px; padding: 14px 16px; font-weight: 600; font-size: 16px; }
.ticks li::before { content: "\2713"; flex: none; display: inline-flex; width: 26px; height: 26px; border-radius: 50%; align-items: center; justify-content: center; background: var(--accent); color: var(--navy-deep); font-weight: 900; font-size: 15px; }

.demo-wrap { max-width: 720px; margin: 0 auto; }
.demo-wrap .card { padding: 26px; }
.site-foot { border-top: 1px solid var(--line-tint); padding: 38px 0 44px; background: var(--paper); }
.site-foot .site { display: flex; align-items: center; gap: 20px; flex-wrap: wrap; justify-content: space-between; }
.site-foot img { height: 64px; width: auto; }
.site-foot p { margin: 0; color: #5B6F8A; font-size: 14px; }

@media (max-width: 900px) {
  .hero-grid { grid-template-columns: 1fr; gap: 36px; padding-top: 36px; text-align: center; }
  .hero-copy .logo-lg { margin-left: auto; margin-right: auto; }
  .lead { margin-left: auto; margin-right: auto; }
  .cta-row { justify-content: center; }
  .steps { grid-template-columns: 1fr 1fr; }
  .staff-panel { grid-template-columns: 1fr; padding: 36px 24px; }
  .nav-link { display: none; }
}
@media (max-width: 560px) {
  .steps { grid-template-columns: 1fr; }
  .cta-row .btn { width: 100%; }
  .phone { width: 262px; } .phone img { height: 400px; }
}
@media (prefers-reduced-motion: reduce) {
  .reveal, .phone { animation: none; }
  .step, .step:hover { transition: none; transform: none; }
}
.btn.btn-primary, a.btn.btn-primary { color: #fff; }
