/* Syncento design system — riso-print / zine.
   Paper + spot inks, 2px ink rules, hard offset shadows, no border-radius.
   Every stay is a strip of ink laid across nights. Canonical mockups:
   /mockups/final/ (huashu-design, July 2026).
   Platform/tag colors stay per-user data (inline styles from the DB);
   the chrome around them is paper and ink. */

@font-face {
  font-family: 'Archivo Black';
  font-style: normal; font-weight: 400; font-display: swap;
  src: url('/assets/fonts/archivo-black.woff2') format('woff2');
}
@font-face {
  font-family: 'Space Grotesk';
  font-style: normal; font-weight: 300 700; font-display: swap;
  src: url('/assets/fonts/space-grotesk.woff2') format('woff2');
}

:root {
  /* riso inks */
  --paper: #F6F1E7; --ink: #211C14;
  --red: #FF4030; --teal: #00838A; --blue: #3255A4;
  --red-deep: #B3271A; --teal-deep: #00646B;
  --rule: 2px solid var(--ink);
  --shadow: 5px 5px 0 var(--ink);
  --shadow-sm: 3px 3px 0 var(--ink);
  --disp: "Archivo Black", "Arial Black", sans-serif;
  --bodyfont: "Space Grotesk", "Helvetica Neue", Arial, sans-serif;

  /* legacy token names, remapped (inline styles in pages reference these) */
  --green: #00838A; --orange: #B3271A; --indigo: #3255A4;
  --gray: #8A8071; --gray2: #8A8071; --gray5: #D9D0BD;
  --bg: #ECE4D2; --card: #F6F1E7; --label: #211C14; --label2: #57503F;
  --radius: 0;
}
* { margin: 0; padding: 0; box-sizing: border-box; }
body {
  font-family: var(--bodyfont);
  background: var(--paper); color: var(--ink);
  font-size: 15px; line-height: 1.5;
  -webkit-font-smoothing: antialiased;
  min-height: 100vh; display: flex; flex-direction: column;
}
/* riso grain pass */
body::after {
  content: ""; position: fixed; inset: 0; z-index: 2000; pointer-events: none;
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='240' height='240'%3E%3Cfilter id='n'%3E%3CfeTurbulence type='fractalNoise' baseFrequency='0.85' numOctaves='2' stitchTiles='stitch'/%3E%3CfeColorMatrix values='0 0 0 0 0.13 0 0 0 0 0.11 0 0 0 0 0.08 0 0 0 0.05 0'/%3E%3C/filter%3E%3Crect width='240' height='240' filter='url(%23n)'/%3E%3C/svg%3E");
}
a { color: inherit; text-decoration: none; }
h1, h2, h3 { letter-spacing: 0; }

/* ── topbar ─────────────────────────────────── */
.topbar {
  position: sticky; top: 0; z-index: 50;
  background: var(--paper);
  border-bottom: var(--rule);
}
.topbar-inner {
  max-width: 1180px; margin: 0 auto; padding: 0 24px;
  height: 66px; display: flex; align-items: center; justify-content: space-between;
}
.brand {
  display: flex; align-items: center; gap: 9px;
  font-family: var(--disp); font-size: 21px; font-weight: 400;
  text-transform: uppercase; letter-spacing: .01em;
}
.brand-mark { width: 26px; height: 26px; position: relative; flex: none; }
.brand-mark::before, .brand-mark::after {
  content: ''; position: absolute; width: 18px; height: 18px;
  mix-blend-mode: multiply;
}
.brand-mark::before { background: var(--red); left: 0; top: 0; }
.brand-mark::after  { background: var(--teal); right: 0; bottom: 0; }
.topnav { display: flex; align-items: center; gap: 20px; }
.topnav a {
  padding: 4px 0; font-size: 13px; font-weight: 700;
  letter-spacing: .1em; text-transform: uppercase; color: var(--ink);
  border-bottom: 2px solid transparent;
}
.topnav a:hover { border-bottom-color: var(--red); }
.topnav a.btn-primary {
  border: var(--rule); box-shadow: var(--shadow-sm);
  padding: 8px 16px; background: var(--red); color: var(--ink);
}
.topnav a.btn-primary:hover { border-bottom-color: var(--ink); transform: translate(2px,2px); box-shadow: 1px 1px 0 var(--ink); }
.inline-form { display: inline; }

/* ── page scaffold ──────────────────────────── */
.page { max-width: 1180px; width: 100%; margin: 0 auto; padding: 30px 24px 90px; flex: 1; }
.crumb {
  font-size: 12px; font-weight: 700; letter-spacing: .1em; text-transform: uppercase;
  color: var(--teal-deep); margin-bottom: 8px;
}
.crumb a:hover { text-decoration: underline; }
.page-head { display: flex; align-items: flex-end; justify-content: space-between; margin-bottom: 26px; gap: 16px; flex-wrap: wrap; }
.page-head h1 {
  font-family: var(--disp); font-size: 38px; font-weight: 400; line-height: 1.05;
  text-transform: uppercase;
  text-shadow: 3px 3px 0 rgba(0,131,138,.55); /* misregistered teal plate */
}
.head-actions { display: flex; gap: 12px; flex-wrap: wrap; }

.footer { border-top: var(--rule); background: var(--paper); }
.footer-inner {
  max-width: 1180px; margin: 0 auto; padding: 16px 24px 18px;
  font-size: 12px; font-weight: 500; letter-spacing: .04em; color: var(--label2);
}
.footer-row { display: flex; justify-content: space-between; align-items: center; gap: 16px; flex-wrap: wrap; }
.footer-links { display: flex; gap: 18px; }
.footer-links a {
  font-weight: 700; letter-spacing: .08em; text-transform: uppercase; font-size: 11px;
  color: var(--ink); border-bottom: 2px solid transparent;
}
.footer-links a:hover { border-bottom-color: var(--red); }
.footer-disclaimer {
  margin-top: 10px; padding-top: 10px; border-top: 1px solid var(--gray5);
  font-size: 11.5px; line-height: 1.55; max-width: 860px;
}
.footer-disclaimer a { text-decoration: underline; text-underline-offset: 2px; }

/* legal pages (terms / privacy) */
.legal { max-width: 720px; }
.legal .page-head h1 { font-size: 32px; }
.legal-updated {
  font-size: 12px; font-weight: 700; letter-spacing: .1em; text-transform: uppercase;
  color: var(--teal-deep); margin: -14px 0 22px;
}
.legal .section-card h2 { margin-bottom: 10px; }
.legal .section-card p { font-size: 14px; font-weight: 500; color: var(--ink); line-height: 1.65; margin-bottom: 10px; }
.legal .section-card p:last-child { margin-bottom: 0; }
.legal .section-card a { text-decoration: underline; text-underline-offset: 3px; }
.legal .section-card a:hover { color: var(--red-deep); }

/* ── buttons ────────────────────────────────── */
.btn {
  display: inline-block; cursor: pointer; font: inherit; font-size: 14px; font-weight: 700;
  padding: 9px 17px; border: var(--rule); background: var(--paper); color: var(--ink);
  box-shadow: var(--shadow-sm); text-align: center;
  transition: transform .08s ease, box-shadow .08s ease;
}
.btn:hover { transform: translate(2px,2px); box-shadow: 1px 1px 0 var(--ink); }
.btn:active { transform: translate(3px,3px); box-shadow: 0 0 0 var(--ink); }
.btn-primary { background: var(--red); color: var(--ink); }
.btn-quiet { background: var(--paper); }
.btn-ghost {
  border: 0; box-shadow: none; background: transparent; padding: 4px 0;
  font-size: 13px; letter-spacing: .1em; text-transform: uppercase;
  border-bottom: 2px solid transparent;
}
.btn-ghost:hover { transform: none; box-shadow: none; border-bottom-color: var(--red); }
.btn-danger { background: var(--red-deep); color: var(--paper); }
.btn-sm { padding: 6px 12px; font-size: 12px; letter-spacing: .06em; text-transform: uppercase; box-shadow: 2px 2px 0 var(--ink); }
.btn-sm:hover { box-shadow: 0 0 0 var(--ink); }
.btn-lg { padding: 13px 26px; font-size: 15px; }
.btn-block { display: block; width: 100%; }

/* ── cards ──────────────────────────────────── */
.card {
  background: var(--paper); border: var(--rule); box-shadow: var(--shadow);
}

/* ── forms ──────────────────────────────────── */
label { display: block; font-size: 12px; font-weight: 700; letter-spacing: .08em; text-transform: uppercase; margin-bottom: 14px; color: var(--ink); }
input[type=text], input[type=email], input[type=password], input[type=url],
input[type=date], select, textarea {
  display: block; width: 100%; margin-top: 6px; font: inherit; font-size: 15px;
  font-weight: 500; letter-spacing: 0; text-transform: none;
  padding: 10px 12px; border: var(--rule);
  background: var(--paper); color: var(--ink);
}
input:focus, select:focus, textarea:focus {
  outline: none; box-shadow: 3px 3px 0 var(--teal);
}

.alert { padding: 11px 14px; border: 2px solid; font-size: 14px; font-weight: 500; margin-bottom: 16px; }
.alert-error { border-color: var(--red-deep); color: var(--red-deep); background: rgba(255,64,48,.07); }
.alert-ok { border-color: var(--teal-deep); color: var(--teal-deep); background: rgba(0,131,138,.07); }

/* ── auth pages ─────────────────────────────── */
.auth-card {
  background: var(--paper); border: var(--rule); box-shadow: var(--shadow);
  max-width: 440px; margin: 56px auto; padding: 36px 32px 30px;
}
.auth-card h1 {
  font-family: var(--disp); font-size: 30px; font-weight: 400; text-transform: uppercase;
  text-shadow: 3px 3px 0 rgba(0,131,138,.55); margin-bottom: 6px;
}
.auth-sub { font-size: 14px; color: var(--label2); margin-bottom: 22px; }
.auth-switch { font-size: 14px; font-weight: 500; color: var(--label2); text-align: center; margin-top: 18px; }
.auth-switch a { color: var(--ink); font-weight: 700; text-decoration: underline; text-underline-offset: 3px; }
.auth-switch a:hover { color: var(--red-deep); }

/* ── landing ────────────────────────────────── */
main.landing { flex: 1; }
.land-inner { max-width: 1180px; margin: 0 auto; }
.land-white { background: var(--paper); border-top: var(--rule); }

/* hero */
.hero { background: var(--paper); padding: 64px 24px 84px; overflow: hidden; }
.hero-grid {
  max-width: 1180px; margin: 0 auto; display: grid;
  grid-template-columns: minmax(0, 1fr) minmax(0, 1fr);
  gap: 48px; align-items: center;
}
.hero-copy { animation: rise .7s cubic-bezier(.2,.7,.2,1) both; }
.hero-chips { display: flex; align-items: center; gap: 8px; margin-bottom: 24px; flex-wrap: wrap; }
.hero-chips .chip { font-size: 11.5px; padding: 5px 11px; }
.chip-arrow { color: var(--ink); font-size: 15px; font-weight: 700; }
.chip-dark { background: var(--ink); color: var(--paper); }
.hero h1 {
  font-family: var(--disp); font-weight: 400;
  font-size: clamp(36px, 4.4vw, 58px); letter-spacing: 0;
  line-height: 1.02; text-transform: uppercase; text-wrap: balance;
}
.hero h1 .accent {
  color: var(--red);
  text-shadow: 3px 3px 0 rgba(0,131,138,.55);
}
.hero-sub {
  font-size: 17px; font-weight: 500; color: var(--label2); max-width: 480px;
  margin: 22px 0 30px; line-height: 1.6; text-wrap: pretty;
}
.hero-actions { display: flex; gap: 14px; align-items: center; flex-wrap: wrap; }
.hero-note { font-size: 13px; font-weight: 500; color: var(--label2); margin-top: 16px; }

/* hero product visual: mini calendar + floating cards */
.hero-visual { position: relative; animation: rise .7s .12s cubic-bezier(.2,.7,.2,1) both; }
.mini-cal {
  background: var(--paper); padding: 20px 20px 16px;
  border: var(--rule); box-shadow: 6px 6px 0 var(--ink);
}
.mini-cal-head { display: flex; justify-content: space-between; align-items: center; margin-bottom: 12px; }
.mini-cal-title { font-family: var(--disp); font-size: 14px; font-weight: 400; text-transform: uppercase; }
.mini-cal-dots { display: flex; gap: 5px; }
.mini-cal-dots i { width: 9px; height: 9px; display: block; }
.mini-dow { display: grid; grid-template-columns: repeat(7,1fr); margin-bottom: 2px; }
.mini-dow span { font-size: 9.5px; font-weight: 700; letter-spacing: .1em; color: var(--label2); text-align: center; padding: 4px 0; text-transform: uppercase; }
.mini-grid { position: relative; display: grid; grid-template-columns: repeat(7,1fr); grid-auto-rows: 44px; }
.mini-grid b {
  font-weight: 500; font-size: 11.5px; color: var(--label2);
  border-top: 1px solid rgba(33,28,20,.25); padding: 5px 0 0 7px;
}
.mini-grid b.dim { color: rgba(33,28,20,.35); }
.mini-grid b.now { color: var(--paper); position: relative; font-weight: 700; }
.mini-grid b.now::before {
  content: ''; position: absolute; left: 3px; top: 3px; width: 20px; height: 19px;
  background: var(--red-deep); z-index: -1;
}
.mini-pill {
  position: absolute; height: 19px; color: var(--paper);
  font-size: 9px; font-weight: 700; line-height: 19px; padding: 0 7px;
  letter-spacing: .05em; text-transform: uppercase;
  white-space: nowrap; overflow: hidden; mix-blend-mode: multiply;
  animation: pillin .55s cubic-bezier(.2,.7,.2,1) both;
}
.mini-pill.striped {
  background: repeating-linear-gradient(45deg, var(--ink) 0 2px, transparent 2px 8px) !important;
  border: 2px solid var(--ink); color: var(--ink); mix-blend-mode: normal; line-height: 15px;
}
@keyframes pillin { from { opacity: 0; transform: translateX(-8px); } to { opacity: 1; transform: none; } }
@keyframes rise { from { opacity: 0; transform: translateY(14px); } to { opacity: 1; transform: none; } }
@keyframes floatin { from { opacity: 0; transform: translateY(8px) scale(.96); } to { opacity: 1; transform: none; } }

.float-card {
  position: absolute; background: var(--paper); padding: 10px 14px;
  border: var(--rule); box-shadow: var(--shadow-sm);
  display: flex; align-items: center; gap: 9px;
  font-size: 12.5px; font-weight: 700;
  animation: floatin .6s .55s cubic-bezier(.2,.7,.2,1) both;
}
.float-card small { display: block; font-weight: 500; color: var(--label2); font-size: 11px; }
.float-dot { width: 10px; height: 10px; flex: none; }
.float-sync { top: -18px; right: -14px; transform: rotate(2deg); }
.float-turn { bottom: -20px; left: -16px; animation-delay: .75s; transform: rotate(-1deg); }
.float-turn .badge { margin: 0; }

/* section scaffolding */
.land-head { text-align: center; max-width: 720px; margin: 0 auto 44px; }
.land-eyebrow {
  display: inline-flex; font-size: 12px; font-weight: 700; letter-spacing: .14em;
  text-transform: uppercase; color: var(--red-deep);
  border: 2px solid var(--red-deep); padding: 3px 10px; margin-bottom: 16px;
}
.land-head h2 {
  font-family: var(--disp); font-weight: 400;
  font-size: clamp(26px, 3vw, 36px); line-height: 1.1;
  text-transform: uppercase; text-wrap: balance;
}
.land-head p { font-size: 16px; font-weight: 500; color: var(--label2); line-height: 1.6; margin-top: 16px; text-wrap: pretty; }

/* mesh comparison */
.mesh-section { padding: 76px 24px; border-top: var(--rule); }
.mesh-compare { display: grid; grid-template-columns: repeat(auto-fit, minmax(320px, 1fr)); gap: 26px; max-width: 900px; margin: 0 auto; }
.mesh-card {
  background: var(--paper); border: var(--rule); box-shadow: var(--shadow);
  padding: 30px 28px; text-align: center;
}
.mesh-card.mesh-good { box-shadow: 5px 5px 0 var(--teal-deep); border-color: var(--teal-deep); }
.mesh-k { font-size: 11px; font-weight: 700; letter-spacing: .12em; text-transform: uppercase; color: var(--red-deep); margin-bottom: 16px; }
.mesh-good .mesh-k { color: var(--teal-deep); }
.mesh-diagram { display: flex; justify-content: center; margin-bottom: 14px; }
.mesh-node { font-size: 10px; font-weight: 700; }
.mesh-count { font-family: var(--disp); font-size: 26px; font-weight: 400; margin-bottom: 10px; }
.mesh-count small { display: block; font-family: var(--bodyfont); font-size: 11px; font-weight: 700; letter-spacing: .1em; text-transform: uppercase; color: var(--label2); margin-top: 4px; }
.mesh-bad .mesh-count { color: var(--red-deep); }
.mesh-good .mesh-count { color: var(--teal-deep); }
.mesh-card p { font-size: 14px; font-weight: 500; color: var(--label2); line-height: 1.6; text-wrap: pretty; }

/* value ladder: 1 / 2 / 3+ platforms */
.ladder { display: grid; grid-template-columns: repeat(auto-fit, minmax(250px, 1fr)); gap: 20px; max-width: 1000px; margin: 44px auto 0; }
.ladder-card {
  background: var(--paper); border: var(--rule); box-shadow: var(--shadow-sm);
  padding: 22px 22px 20px; text-align: left;
}
.ladder-card.hero-tier { box-shadow: 5px 5px 0 var(--red); }
.ladder-num { font-family: var(--disp); font-size: 28px; font-weight: 400; color: var(--red-deep); }
.ladder-num small { font-family: var(--bodyfont); font-size: 11px; font-weight: 700; letter-spacing: .1em; text-transform: uppercase; color: var(--label2); margin-left: 7px; }
.ladder-card h4 { font-size: 15px; font-weight: 700; margin: 8px 0; letter-spacing: .01em; text-transform: uppercase; }
.ladder-card p { font-size: 13.5px; font-weight: 500; color: var(--label2); line-height: 1.55; text-wrap: pretty; }
.ladder-bonus {
  max-width: 1000px; margin: 18px auto 0; text-align: center; font-size: 13.5px; font-weight: 500;
  color: var(--ink); border: 2px dashed var(--ink); padding: 12px 18px; line-height: 1.55;
}

/* feature trio with micro-visuals */
.features { padding: 76px 24px; }
.feature-grid { display: grid; grid-template-columns: repeat(auto-fit, minmax(280px, 1fr)); gap: 26px; max-width: 1180px; margin: 0 auto; }
.feature-card {
  background: var(--paper); border: var(--rule); box-shadow: var(--shadow-sm);
  border-top-width: 6px; padding: 26px 24px;
}
.land-gray .feature-card { background: var(--paper); }
.feature-grid .feature-card:nth-child(3n+1) { border-top-color: var(--red); }
.feature-grid .feature-card:nth-child(3n+2) { border-top-color: var(--teal); }
.feature-grid .feature-card:nth-child(3n)   { border-top-color: var(--blue); }
.feature-vis { height: 74px; display: flex; flex-direction: column; justify-content: center; gap: 7px; margin-bottom: 18px; }
.fv-pill { height: 18px; color: var(--paper); font-size: 9px; font-weight: 700; letter-spacing: .05em; text-transform: uppercase; line-height: 18px; padding: 0 9px; mix-blend-mode: multiply; }
.fv-row { display: flex; gap: 6px; align-items: center; }
.fv-arrow { color: var(--ink); font-size: 13px; font-weight: 700; }
.feature-card h3 { font-size: 15px; font-weight: 700; letter-spacing: .02em; text-transform: uppercase; margin-bottom: 10px; }
.feature-card p { font-size: 14px; font-weight: 500; color: var(--label2); line-height: 1.6; text-wrap: pretty; }

/* status-aware sync highlight bands */
.tent-highlight {
  display: grid; grid-template-columns: minmax(0, 1.1fr) minmax(0, 1fr);
  gap: 36px; align-items: center;
  background: var(--paper); border: var(--rule); box-shadow: var(--shadow);
  padding: 34px 36px; max-width: 1180px; margin: 0 auto 44px;
}
.tent-highlight h3 {
  font-family: var(--disp); font-weight: 400;
  font-size: clamp(20px, 2.2vw, 26px); text-transform: uppercase;
  line-height: 1.12; margin: 12px 0; text-wrap: balance;
}
.tent-highlight p { font-size: 14.5px; font-weight: 500; color: var(--label2); line-height: 1.6; text-wrap: pretty; }
.tent-demo { display: flex; flex-direction: column; gap: 10px; }
.tent-demo-pill {
  align-self: flex-start; font-size: 11px; font-weight: 700; letter-spacing: .06em;
  text-transform: uppercase; color: var(--blue);
  background: var(--paper); border: 2px dashed var(--blue);
  padding: 5px 14px;
}
.tent-row {
  display: flex; align-items: center; gap: 10px; background: var(--paper);
  border: 2px solid var(--ink); padding: 11px 14px;
  font-size: 13px; font-weight: 700;
}
.tent-row small { font-weight: 500; color: var(--label2); }
.tent-no { color: var(--red-deep); }
.tent-yes { color: var(--teal-deep); }
@media (max-width: 800px) { .tent-highlight { grid-template-columns: 1fr; } }
.tent-highlight.fresh { box-shadow: 5px 5px 0 var(--teal-deep); }
.fresh-step {
  display: flex; align-items: center; gap: 10px; background: var(--paper);
  border: 2px solid var(--ink); padding: 11px 14px;
  font-size: 13px; font-weight: 700;
}
.fresh-step small { font-weight: 500; color: var(--label2); }
.fresh-num {
  width: 24px; height: 24px; flex: none;
  border: 2px solid var(--teal-deep); color: var(--teal-deep);
  font-size: 12px; font-weight: 700;
  display: flex; align-items: center; justify-content: center;
}
.tent-highlight.tagsband { box-shadow: 5px 5px 0 var(--red); }
.tag-demo-pill {
  align-self: flex-start; position: relative; font-size: 11px; font-weight: 700;
  letter-spacing: .06em; text-transform: uppercase;
  color: var(--paper); background: var(--red); padding: 5px 34px 5px 14px;
}
.tag-demo-pill i {
  position: absolute; top: 50%; transform: translateY(-50%);
  width: 8px; height: 8px; border: 1px solid var(--ink);
}

/* how it works */
.steps { padding: 76px 24px 84px; border-top: var(--rule); }
.steps-grid { display: grid; grid-template-columns: repeat(auto-fit, minmax(240px, 1fr)); gap: 26px; max-width: 1000px; margin: 0 auto; counter-reset: step; }
.step { text-align: center; padding: 0 10px; }
.step-num {
  width: 46px; height: 46px; margin: 0 auto 16px;
  background: var(--paper); border: var(--rule); box-shadow: var(--shadow-sm);
  display: flex; align-items: center; justify-content: center;
  font-family: var(--disp); font-size: 18px; font-weight: 400; color: var(--ink);
}
.step h3 { font-size: 15px; font-weight: 700; text-transform: uppercase; letter-spacing: .02em; margin-bottom: 8px; }
.step p { font-size: 13.5px; font-weight: 500; color: var(--label2); line-height: 1.6; }

/* FAQ */
.faq-section { padding: 76px 24px 90px; border-top: var(--rule); }
.faq { max-width: 860px; margin: 0 auto; }
.faq .howto { background: var(--paper); }
.faq .howto summary { font-size: 14px; letter-spacing: .02em; text-transform: none; padding: 13px 16px; }
.faq-a { font-size: 14px; font-weight: 500; line-height: 1.65; color: var(--ink); margin: 12px 16px 14px; }
.faq-a strong { font-weight: 700; }

/* pricing */
.pricing { padding: 0 24px 90px; }
.pricing-card {
  position: relative; overflow: hidden;
  background: var(--paper); border: var(--rule); box-shadow: 6px 6px 0 var(--ink);
  max-width: 560px; margin: 0 auto; padding: 46px 40px 40px; text-align: center;
}
.pricing-card::before {
  content: ''; position: absolute; top: 0; left: 0; right: 0; height: 6px;
  background: linear-gradient(90deg, var(--red) 0 33.3%, var(--teal) 0 66.6%, var(--blue) 0 100%);
}
.pricing-badge {
  display: inline-block; font-size: 11px; font-weight: 700; letter-spacing: .12em;
  text-transform: uppercase; color: var(--teal-deep); border: 2px solid var(--teal-deep);
  padding: 4px 12px; margin-bottom: 18px;
}
.pricing-card h2 {
  font-family: var(--disp); font-size: 40px; font-weight: 400; text-transform: uppercase;
  text-shadow: 3px 3px 0 rgba(255,64,48,.5);
}
.pricing-sub { font-size: 15px; font-weight: 500; color: var(--label2); margin: 14px 0 20px; line-height: 1.55; }
.pricing-future {
  font-size: 14px; font-weight: 500; color: var(--ink); border: 2px dashed var(--ink);
  padding: 16px 18px; line-height: 1.6; margin-bottom: 26px; text-wrap: pretty;
}
.pricing-future strong { font-size: 15px; font-weight: 700; }

.chip-pair { display: inline-flex; align-items: center; gap: 8px; white-space: nowrap; }

@media (max-width: 900px) {
  .hero-grid { grid-template-columns: 1fr; gap: 40px; }
  .hero { padding: 44px 24px 64px; }
  .hero-copy { text-align: center; }
  .hero-sub { margin-left: auto; margin-right: auto; }
  .hero-chips, .hero-actions { justify-content: center; }
  .hero-visual { max-width: 480px; margin: 0 auto; }
  .float-sync { display: none; }
  .float-turn { left: 4px; bottom: -16px; }
}

/* ── dashboard property cards ───────────────── */
.card-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(320px, 1fr)); gap: 26px; }
.prop-card {
  background: var(--paper); border: var(--rule); box-shadow: var(--shadow);
  padding: 20px; display: block;
  transition: transform .1s ease, box-shadow .1s ease;
}
.prop-card:hover { transform: translate(2px,2px); box-shadow: 2px 2px 0 var(--ink); }
.prop-card-head { display: flex; align-items: center; justify-content: space-between; margin-bottom: 14px; gap: 10px; }
.prop-card h3 { font-family: var(--disp); font-size: 18px; font-weight: 400; text-transform: uppercase; line-height: 1.15; }
.health-dot { width: 12px; height: 12px; flex: none; }
.health-ok { background: var(--teal); box-shadow: 2px 2px 0 var(--ink); }
.health-bad { background: var(--red); box-shadow: 2px 2px 0 var(--ink); }
.health-none { background: var(--paper); border: 2px dashed var(--gray); box-shadow: none; }
.prop-meta { display: grid; grid-template-columns: repeat(3, 1fr); gap: 10px; border-top: 2px solid var(--ink); padding-top: 14px; }
.prop-meta dt { font-size: 10.5px; font-weight: 700; letter-spacing: .1em; text-transform: uppercase; color: var(--teal-deep); }
.prop-meta dd { font-size: 14.5px; font-weight: 700; margin-top: 3px; }

.empty-state {
  text-align: center; background: var(--paper);
  border: 2px dashed var(--ink); padding: 64px 24px;
}
.empty-state h2 { font-family: var(--disp); font-size: 22px; font-weight: 400; text-transform: uppercase; margin-bottom: 10px; }
.empty-state p { font-size: 15px; font-weight: 500; color: var(--label2); margin-bottom: 24px; }

/* ── tabs ───────────────────────────────────── */
.tabs { display: flex; width: max-content; max-width: 100%; overflow-x: auto; margin-bottom: 26px; }
.tabs a {
  padding: 8px 16px; font-size: 12px; font-weight: 700; letter-spacing: .08em;
  text-transform: uppercase; color: var(--ink); white-space: nowrap;
  border: var(--rule);
}
.tabs a + a { border-left: none; }
.tabs a.active { background: var(--ink); color: var(--paper); }

/* ── calendar page ──────────────────────────── */
.cal-layout { display: grid; grid-template-columns: minmax(0,1fr) 300px; gap: 26px; align-items: start; }
@media (max-width: 900px) { .cal-layout { grid-template-columns: 1fr; } }

.cal-card { padding: 20px 20px 16px; }
.cal-head { display: flex; align-items: center; justify-content: space-between; margin-bottom: 14px; gap: 10px; flex-wrap: wrap; }
.cal-title { font-family: var(--disp); font-size: 19px; font-weight: 400; text-transform: uppercase; }
.cal-nav { display: flex; gap: 6px; }
.cal-nav button {
  width: 34px; height: 34px; border: var(--rule); box-shadow: 2px 2px 0 var(--ink);
  background: var(--paper); cursor: pointer; font-size: 16px; font-weight: 700; color: var(--ink);
  display: flex; align-items: center; justify-content: center;
  transition: transform .08s ease, box-shadow .08s ease;
}
.cal-nav button:hover { transform: translate(2px,2px); box-shadow: 0 0 0 var(--ink); }

.dow { display: grid; grid-template-columns: repeat(7, 1fr); margin-bottom: 0; }
.dow div { text-align: center; font-size: 11px; font-weight: 700; letter-spacing: .12em; color: var(--ink); text-transform: uppercase; padding: 7px 0; }

.cal-grid { position: relative; border-top: var(--rule); border-left: var(--rule); }
.cal-week { display: grid; grid-template-columns: repeat(7, 1fr); position: relative; }
.day {
  min-height: 96px; border-right: 1px solid var(--ink); border-bottom: var(--rule);
  padding: 6px; position: relative; background: var(--paper); cursor: pointer;
}
.day:hover { background: #EFE8D8; }
.day.out { background: #EFEADC; }
.day.out .dnum { color: rgba(33,28,20,.38); }
.day.selecting { background: rgba(255,64,48,.12); }
.day.past { cursor: default; }
.dnum { font-size: 13px; font-weight: 700; pointer-events: none; }
.day.today { background: rgba(255,64,48,.10); box-shadow: inset 2px 0 0 var(--red-deep), inset -2px 0 0 var(--red-deep); }
.day.today .dnum {
  display: inline-flex; padding: 0 5px; height: 20px;
  background: var(--red-deep); color: var(--paper);
  align-items: center; justify-content: center; font-weight: 700;
}
/* back-to-back marker: one event ends and another starts on this day */
.day.b2b::after {
  content: ''; position: absolute; top: 0; right: 0; z-index: 3;
  border-style: solid; border-width: 0 14px 14px 0;
  border-color: transparent var(--red-deep) transparent transparent;
}
.leg .b2b-swatch {
  width: 0; height: 0; border-style: solid; border-width: 0 10px 10px 0;
  border-color: transparent var(--red-deep) transparent transparent; display: block;
}

.pill {
  position: absolute; height: 22px; z-index: 2;
  font-size: 10.5px; font-weight: 700; letter-spacing: .05em; text-transform: uppercase;
  color: var(--paper); line-height: 22px; mix-blend-mode: multiply;
  padding: 0 8px; white-space: nowrap; overflow: hidden; text-overflow: ellipsis;
}
.pill.cont-l { clip-path: polygon(8px 0, 100% 0, 100% 100%, 8px 100%, 0 50%); padding-left: 13px; }
.pill.cont-r { clip-path: polygon(0 0, calc(100% - 8px) 0, 100% 50%, calc(100% - 8px) 100%, 0 100%); padding-right: 13px; }
.pill.cont-l.cont-r { clip-path: polygon(8px 0, calc(100% - 8px) 0, 100% 50%, calc(100% - 8px) 100%, 8px 100%, 0 50%); }
.pill.p-manual {
  background: repeating-linear-gradient(45deg, var(--ink) 0 2px, transparent 2px 8px) !important;
  border: 2px solid var(--ink); color: var(--ink); mix-blend-mode: normal;
  line-height: 18px; cursor: pointer;
}
.pill.p-manual:hover { background: repeating-linear-gradient(45deg, var(--red-deep) 0 2px, transparent 2px 8px) !important; border-color: var(--red-deep); color: var(--red-deep); }
.pill.p-manual span { background: var(--paper); padding: 0 5px; }
/* tentative holds: paper fill, dashed border in the group ink (set by calendar.js) */
.pill.p-tentative {
  background: var(--paper) !important; mix-blend-mode: normal;
  border: 2px dashed; line-height: 18px; opacity: 1;
}
/* tag dots inside pills */
.pill .tag-dots { position: absolute; right: 6px; top: 50%; transform: translateY(-50%); display: flex; gap: 3px; }
.pill .tag-dots i { width: 7px; height: 7px; display: block; border: 1px solid var(--paper); }
.pill.p-tentative .tag-dots i, .pill.p-manual .tag-dots i { border-color: var(--ink); }

/* year overview: 12 mini-months of occupancy */
.cal-grid.year-mode { border: 0; }
.year-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(215px, 1fr)); gap: 20px; padding-top: 4px; }
.mini-month { min-width: 0; }
.mm-title {
  border: 0; background: none; cursor: pointer; font: inherit;
  font-size: 12px; font-weight: 700; letter-spacing: .08em; text-transform: uppercase;
  color: var(--ink); padding: 2px 4px; margin-bottom: 4px;
  border-bottom: 2px solid transparent;
}
.mm-title:hover { border-bottom-color: var(--red); }
.mm-grid { display: grid; grid-template-columns: repeat(7, 1fr); gap: 2px; }
.mm-day {
  aspect-ratio: 1; display: flex; align-items: center; justify-content: center;
  font-size: 10px; font-weight: 500; color: var(--label2); position: relative;
  min-width: 0;
}
.mm-day.occ { color: var(--paper); font-weight: 700; mix-blend-mode: multiply; }
.mm-day.today { outline: 2px solid var(--red-deep); outline-offset: 1px; }
.mm-day.b2b::after {
  content: ''; position: absolute; top: 0; right: 0;
  border-style: solid; border-width: 0 7px 7px 0;
  border-color: transparent var(--red-deep) transparent transparent;
}

.legend { display: flex; gap: 16px; margin-top: 14px; padding-top: 12px; border-top: var(--rule); flex-wrap: wrap; }
.leg { display: flex; align-items: center; gap: 7px; font-size: 11.5px; font-weight: 700; letter-spacing: .06em; text-transform: uppercase; color: var(--ink); }
.leg i { width: 16px; height: 11px; display: block; }
.leg i.k-hatch {
  background: repeating-linear-gradient(45deg, var(--ink) 0 2px, transparent 2px 6px);
  border: 1.5px solid var(--ink);
}
.cal-tip { font-size: 12.5px; font-weight: 500; color: var(--label2); margin-top: 10px; }

/* sidebar widgets */
.widget { padding: 18px 18px 16px; margin-bottom: 20px; }
.widget h3 { font-family: var(--disp); font-size: 14px; font-weight: 400; text-transform: uppercase; margin-bottom: 12px; padding-bottom: 8px; border-bottom: var(--rule); }
.widget .hint { font-size: 12.5px; font-weight: 500; color: var(--label2); margin-top: 10px; line-height: 1.45; }
.date-row { display: flex; gap: 8px; }
.date-row input { margin-top: 0; flex: 1; min-width: 0; font-size: 13px; padding: 8px 8px; }
.avail-result {
  margin-top: 12px; padding: 8px 12px; font-size: 12px; font-weight: 700;
  letter-spacing: .06em; text-transform: uppercase;
  border: 2px solid var(--teal-deep); color: var(--teal-deep); display: none;
}
.avail-result.busy { border-color: var(--red-deep); color: var(--red-deep); }
.avail-result.show { display: block; }
.upcoming { list-style: none; }
.upcoming li { display: flex; align-items: center; gap: 10px; padding: 9px 0; border-bottom: 1px solid var(--ink); }
.upcoming li:last-child { border-bottom: 0; }
.updot { width: 9px; height: 9px; flex: none; }
.uptext { font-size: 13.5px; font-weight: 500; line-height: 1.35; }
.uptext small { display: block; color: var(--label2); font-size: 12px; }

/* ── tables (sources, feeds) ────────────────── */
.table-card { overflow-x: auto; }
table.list { width: 100%; border-collapse: collapse; font-size: 14px; }
table.list th {
  text-align: left; font-size: 11px; font-weight: 700; letter-spacing: .1em;
  text-transform: uppercase; color: var(--ink); padding: 14px 16px 10px; border-bottom: var(--rule);
}
table.list td { padding: 14px 16px; border-bottom: 1px solid var(--ink); vertical-align: middle; font-weight: 500; }
table.list tr:last-child td { border-bottom: 0; }
.chip {
  font-size: 11px; font-weight: 700; letter-spacing: .06em; text-transform: uppercase;
  padding: 3px 9px; color: var(--paper); display: inline-block;
}
.chip-muted { background: var(--paper); color: var(--label2); border: 2px dashed var(--gray); padding: 1px 7px; }
.mono { font-family: ui-monospace, "SF Mono", Menlo, monospace; font-size: 12.5px; }
.url-box {
  display: flex; gap: 8px; align-items: center; background: var(--bg);
  border: var(--rule); padding: 7px 8px 7px 12px; margin-top: 6px;
}
.url-box code { flex: 1; font-family: ui-monospace, "SF Mono", Menlo, monospace; font-size: 12px; overflow-x: auto; white-space: nowrap; }
.muted { color: var(--label2); font-size: 12.5px; font-weight: 500; }
.status-ok { color: var(--teal-deep); font-weight: 700; }
.status-err { color: var(--red-deep); font-weight: 700; }

.section-card { padding: 24px; margin-bottom: 26px; }
.section-card h2 { font-family: var(--disp); font-size: 16px; font-weight: 400; text-transform: uppercase; margin-bottom: 4px; }
.section-card > p { font-size: 13.5px; font-weight: 500; color: var(--label2); margin-bottom: 18px; }

/* platform how-to accordions (sources + feeds) */
.howto-card { margin-top: 26px; }
.howto { border: var(--rule); margin-top: 12px; }
.howto summary {
  cursor: pointer; list-style: none; display: flex; align-items: center; gap: 10px;
  padding: 11px 14px; font-size: 13px; font-weight: 700; letter-spacing: .08em;
  text-transform: uppercase;
}
.howto summary::-webkit-details-marker { display: none; }
.howto summary::before { content: '+'; font-family: var(--disp); font-size: 15px; line-height: 1; }
.howto[open] summary::before { content: '\2013'; }
.howto[open] summary { border-bottom: 2px dashed var(--ink); }
.howto ol { margin: 12px 14px 4px; padding-left: 20px; }
.howto ol li { font-size: 13.5px; font-weight: 500; line-height: 1.55; margin-bottom: 7px; }
.howto-note { font-size: 12.5px; font-weight: 500; color: var(--label2); margin: 8px 14px 12px; line-height: 1.5; }

/* ── modal ──────────────────────────────────── */
dialog.modal {
  border: var(--rule); background: var(--paper); color: var(--ink);
  padding: 28px; width: min(460px, calc(100vw - 40px));
  box-shadow: 8px 8px 0 var(--ink);
}
dialog.modal::backdrop { background: rgba(33,28,20,.55); }
dialog.modal h2 { font-family: var(--disp); font-size: 18px; font-weight: 400; text-transform: uppercase; margin-bottom: 18px; }
.modal-actions { display: flex; justify-content: flex-end; gap: 10px; margin-top: 8px; }

/* ── shared view page ───────────────────────── */
.hk-wrap { max-width: 560px; margin: 0 auto; padding: 28px 18px 60px; }
.hk-head { text-align: center; margin-bottom: 26px; }
.hk-brand {
  display: inline-flex; align-items: center; gap: 8px;
  font-family: var(--disp); font-size: 14px; font-weight: 400;
  text-transform: uppercase; color: var(--ink); margin-bottom: 14px;
}
.hk-brand .brand-mark { width: 20px; height: 20px; }
.hk-brand .brand-mark::before, .hk-brand .brand-mark::after { width: 14px; height: 14px; }
.hk-head h1 {
  font-family: var(--disp); font-size: 30px; font-weight: 400; text-transform: uppercase;
  text-shadow: 3px 3px 0 rgba(0,131,138,.55);
}
.hk-head p { font-size: 14px; font-weight: 500; color: var(--label2); margin-top: 8px; }
.month-label {
  display: flex; align-items: center; gap: 12px;
  font-size: 12px; font-weight: 700; letter-spacing: .16em; text-transform: uppercase;
  color: var(--ink); margin: 28px 0 12px;
}
.month-label::before, .month-label::after { content: ''; height: 2px; background: var(--ink); flex: 1; }
.turnover {
  background: var(--paper); border: var(--rule); box-shadow: var(--shadow-sm);
  padding: 16px; margin-bottom: 16px;
}
.t-date { display: flex; align-items: center; justify-content: space-between; margin-bottom: 12px; gap: 8px; flex-wrap: wrap; }
.t-when { font-family: var(--disp); font-size: 16px; font-weight: 400; text-transform: uppercase; }
.badge {
  font-size: 11px; font-weight: 700; letter-spacing: .08em; text-transform: uppercase;
  padding: 3px 9px; border: 2px solid;
}
.badge-sameday { background: var(--red-deep); border-color: var(--red-deep); color: var(--paper); }
.badge-gap { background: var(--paper); border-color: var(--teal-deep); color: var(--teal-deep); }
.t-flow { display: grid; grid-template-columns: 1fr auto 1fr; gap: 10px; align-items: center; }
.t-slot { border: 2px solid var(--ink); padding: 10px 12px; }
.t-out { background: rgba(255,64,48,.10); }
.t-in { background: rgba(0,131,138,.10); }
.t-slot .k { font-size: 10.5px; font-weight: 700; letter-spacing: .1em; text-transform: uppercase; }
.t-out .k { color: var(--red-deep); }
.t-in .k { color: var(--teal-deep); }
.t-none { border-style: dashed; }
.t-none .k { color: var(--gray); }
.t-slot .v { font-size: 15px; font-weight: 700; margin-top: 3px; }
.t-none .v { color: var(--label2); font-weight: 500; }
.t-slot .s { font-size: 12px; font-weight: 500; color: var(--label2); margin-top: 2px; }
.t-arrow { color: var(--ink); font-size: 18px; font-weight: 700; }
.hk-foot { text-align: center; font-size: 12px; font-weight: 500; color: var(--label2); margin-top: 36px; line-height: 1.7; }

/* ── 404 ────────────────────────────────────── */
.notfound { text-align: center; padding: 90px 24px; }
.notfound h1 {
  font-family: var(--disp); font-size: 110px; font-weight: 400; color: var(--ink);
  line-height: 1; text-shadow: 6px 6px 0 rgba(0,131,138,.55);
}
.notfound p { font-size: 16px; font-weight: 500; color: var(--label2); margin: 18px 0 26px; }

@media (max-width: 640px) {
  .hero h1 { font-size: 32px; }
  .page { padding: 20px 16px 60px; }
  .page-head h1 { font-size: 27px; }
  .day { min-height: 64px; }
  .pill { font-size: 9px; padding: 0 5px; }
  .notfound h1 { font-size: 72px; }
}
