/* Cubiq site — matches the CRM app: Inter type, the app's blue accent (Tailwind
   blue), gray-50/white light theme and neutral-900/800 dark theme. Logo in Sora.
   Fonts are self-hosted. Theme = html[data-theme] (set before paint in <head>). */
@font-face { font-family: "Inter"; src: url("/assets/fonts/inter-latin-wght-normal.woff2") format("woff2"); font-weight: 100 900; font-display: swap; }
@font-face { font-family: "Sora"; src: url("/assets/fonts/sora-latin-700-normal.woff2") format("woff2"); font-weight: 700; font-display: swap; }

:root {
  color-scheme: light;
  --page: #FFFFFF;
  --band: #F9FAFB;          /* gray-50 — the app's page colour */
  --card: #FFFFFF;
  --ink: #111827;           /* gray-900 */
  --muted: #4B5563;         /* gray-600 */
  --subtle: #6B7280;        /* gray-500 */
  --line: #E5E7EB;          /* gray-200 */
  --line-soft: #F3F4F6;     /* gray-100 */
  --accent: #2563EB;        /* blue-600 — the app's primary buttons */
  --accent-hover: #1D4ED8;  /* blue-700 */
  --accent-logo: #3B82F6;   /* blue-500 — the ³ in the app logo */
  --link: #1D4ED8;
  --tint: #EFF6FF;          /* blue-50 */
  --pill-bg: #DBEAFE;       /* blue-100 */
  --pill-ink: #1E40AF;      /* blue-800 */
  --flow-bg: #EFF6FF; --flow-line: #BFDBFE; --flow-ink: #1E40AF;
  --chip-viewing-bg: #FEF3C7; --chip-viewing: #92400E;
  --chip-booking-bg: #D1FAE5; --chip-booking: #065F46;
  --chip-interested-bg: #DBEAFE; --chip-interested: #1E40AF;
  --chip-new-bg: #F3F4F6; --chip-new: #374151;
  --btn2-line: #D1D5DB;
  --shadow: 0 24px 60px rgba(17, 24, 39, 0.08);
  --shadow-hover: 0 28px 70px rgba(17, 24, 39, 0.12);
}
html[data-theme="dark"] {
  color-scheme: dark;
  --page: #171717;          /* neutral-900 — the app's dark page */
  --band: #121212;
  --card: #262626;          /* neutral-800 — the app's dark cards */
  --ink: #F5F5F5;           /* neutral-100 */
  --muted: #A3A3A3;         /* neutral-400 */
  --subtle: #A3A3A3;
  --line: #404040;          /* neutral-700 */
  --line-soft: #2E2E2E;
  --accent-logo: #3B82F6;
  --link: #60A5FA;          /* blue-400 */
  --tint: rgba(59, 130, 246, 0.15);
  --pill-bg: rgba(59, 130, 246, 0.18);
  --pill-ink: #93C5FD;      /* blue-300 */
  --flow-bg: rgba(59, 130, 246, 0.12); --flow-line: rgba(59, 130, 246, 0.35); --flow-ink: #93C5FD;
  --chip-viewing-bg: rgba(245, 158, 11, 0.16); --chip-viewing: #FCD34D;
  --chip-booking-bg: rgba(16, 185, 129, 0.16); --chip-booking: #6EE7B7;
  --chip-interested-bg: rgba(59, 130, 246, 0.18); --chip-interested: #93C5FD;
  --chip-new-bg: #333333; --chip-new: #D4D4D4;
  --btn2-line: #525252;
  --shadow: 0 24px 60px rgba(0, 0, 0, 0.35);
  --shadow-hover: 0 28px 70px rgba(0, 0, 0, 0.45);
}

* { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; scroll-behavior: smooth; }
body { margin: 0; background: var(--page); color: var(--ink); font-family: Inter, ui-sans-serif, system-ui, sans-serif; font-size: 16px; line-height: 1.5; transition: background-color .25s ease, color .25s ease; }
a { color: var(--link); }
a:hover { color: var(--accent-hover); }
html[data-theme="dark"] a:hover { color: #93C5FD; }
:focus-visible { outline: 2px solid var(--accent); outline-offset: 2px; border-radius: 6px; }
html[data-theme="dark"] :focus-visible { outline-color: #60A5FA; }
img, svg { display: block; }

.wrap { max-width: 1200px; margin: 0 auto; padding: 0 24px; }
h1, h2, .price { font-weight: 800; letter-spacing: -0.03em; }

/* Logo: "C" + raised half-size "3" in the accent colour (same as the app) */
.logo { font-family: Sora, system-ui, sans-serif; font-weight: 700; letter-spacing: -0.04em; line-height: 1; color: var(--ink); text-decoration: none; display: inline-block; }
.logo .cube { font-size: 0.5em; position: relative; top: -0.74em; margin-left: 0.02em; color: var(--accent-logo); }
.logo:hover { color: var(--ink); }

/* Buttons */
.btn { display: inline-flex; align-items: center; justify-content: center; min-height: 48px; padding: 0 24px; border-radius: 10px; font-weight: 600; font-size: 16px; text-decoration: none; border: 1px solid transparent; transition: background-color .15s ease, border-color .15s ease, transform .15s ease, box-shadow .15s ease; }
.btn:active { transform: scale(.98); }
.btn-primary { background: var(--accent); color: #fff; }
.btn-primary:hover { background: var(--accent-hover); color: #fff; box-shadow: 0 8px 20px rgba(37, 99, 235, 0.28); }
.btn-secondary { background: var(--card); border-color: var(--btn2-line); color: var(--ink); }
.btn-secondary:hover { border-color: var(--subtle); color: var(--ink); }
.btn-sm { min-height: 44px; padding: 0 18px; font-size: 15px; }
.btn-block { width: 100%; }

/* Theme toggle */
.theme-toggle { width: 44px; height: 44px; border-radius: 10px; border: 1px solid var(--line); background: var(--card); color: var(--muted); display: inline-flex; align-items: center; justify-content: center; cursor: pointer; transition: color .15s ease, border-color .15s ease, transform .2s ease; }
.theme-toggle:hover { color: var(--ink); border-color: var(--subtle); }
.theme-toggle .icon-sun { display: none; }
html[data-theme="dark"] .theme-toggle .icon-sun { display: block; }
html[data-theme="dark"] .theme-toggle .icon-moon { display: none; }

/* Header */
.site-header { position: sticky; top: 0; z-index: 10; border-bottom: 1px solid var(--line-soft); background: color-mix(in srgb, var(--page) 88%, transparent); backdrop-filter: saturate(160%) blur(10px); -webkit-backdrop-filter: saturate(160%) blur(10px); }
.site-header .wrap { display: flex; align-items: center; justify-content: space-between; gap: 16px; flex-wrap: wrap; padding-top: 12px; padding-bottom: 12px; }
.site-header .logo { font-size: 34px; }
.nav { display: flex; align-items: center; gap: 22px; flex-wrap: wrap; }
.nav a:not(.btn) { color: var(--muted); text-decoration: none; font-size: 15px; font-weight: 500; transition: color .15s ease; }
.nav a:not(.btn):hover { color: var(--ink); }
@media (max-width: 600px) { .nav .nav-hide-sm { display: none; } .nav { gap: 12px; } }

/* Hero */
.hero { background: var(--band); border-bottom: 1px solid var(--line-soft); overflow: hidden; }
.hero .wrap { display: flex; flex-wrap: wrap; gap: 56px; align-items: center; padding-top: 88px; padding-bottom: 88px; }
.hero-copy { flex: 1 1 460px; min-width: 0; display: flex; flex-direction: column; gap: 24px; }
.pill { align-self: flex-start; font-size: 13px; font-weight: 600; padding: 6px 12px; border-radius: 999px; background: var(--pill-bg); color: var(--pill-ink); }
.hero h1 { margin: 0; font-size: clamp(40px, 6vw, 64px); line-height: 1.05; }
.lead { margin: 0; font-size: 19px; line-height: 1.6; color: var(--muted); max-width: 540px; }
.cta-row { display: flex; gap: 12px; flex-wrap: wrap; }
.fine { margin: 0; font-size: 14px; color: var(--subtle); }
.hero-visual { flex: 1 1 460px; min-width: 0; display: flex; flex-direction: column; gap: 16px; }
@media (max-width: 640px) { .hero .wrap { padding-top: 56px; padding-bottom: 56px; gap: 40px; } }

/* Product mock */
.card { background: var(--card); border: 1px solid var(--line); border-radius: 14px; box-shadow: var(--shadow); transition: transform .3s cubic-bezier(.16,1,.3,1), box-shadow .3s ease; }
.card:hover { transform: translateY(-3px); box-shadow: var(--shadow-hover); }
.mock-head { display: flex; justify-content: space-between; align-items: center; gap: 8px; flex-wrap: wrap; padding: 14px 18px; border-bottom: 1px solid var(--line-soft); }
.mock-head strong { font-size: 14px; }
.mock-head span { font-size: 12px; color: var(--subtle); }
.scroll-x { overflow-x: auto; }
.mock-table { min-width: 420px; }
.mock-row { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 12px; padding: 12px 18px; font-size: 14px; align-items: center; border-bottom: 1px solid var(--line-soft); }
.mock-row:last-child { border-bottom: 0; }
.mock-row .name { font-weight: 500; }
.mock-row .note { color: var(--subtle); }
.status { display: inline-block; font-size: 12px; font-weight: 600; padding: 4px 10px; border-radius: 999px; }
.s-viewing { background: var(--chip-viewing-bg); color: var(--chip-viewing); }
.s-booking { background: var(--chip-booking-bg); color: var(--chip-booking); }
.s-interested { background: var(--chip-interested-bg); color: var(--chip-interested); }
.s-new { background: var(--chip-new-bg); color: var(--chip-new); }
.flow { padding: 18px; display: flex; flex-direction: column; gap: 12px; }
.flow strong { font-size: 14px; }
.flow-steps { display: flex; align-items: center; gap: 10px; flex-wrap: wrap; font-size: 13px; color: var(--subtle); }
.flow-step { padding: 8px 12px; border-radius: 10px; border: 1px solid var(--flow-line); background: var(--flow-bg); color: var(--flow-ink); font-weight: 500; }
.flow-step.plain { border-color: var(--line); background: var(--card); color: var(--muted); }

/* Sections */
.section { padding-top: 96px; padding-bottom: 96px; }
.section-head { display: flex; flex-direction: column; gap: 12px; align-items: center; text-align: center; margin-bottom: 48px; }
.section-head h2 { margin: 0; font-size: clamp(32px, 4.5vw, 44px); line-height: 1.1; }
.section-head p { margin: 0; font-size: 18px; color: var(--muted); max-width: 620px; }
.band { background: var(--band); border-top: 1px solid var(--line-soft); border-bottom: 1px solid var(--line-soft); }
@media (max-width: 640px) { .section { padding-top: 64px; padding-bottom: 64px; } }

/* Features */
.features { display: flex; flex-wrap: wrap; gap: 24px; }
.feature { flex: 1 1 320px; display: flex; flex-direction: column; gap: 12px; padding: 20px; margin: -12px; border-radius: 14px; transition: background-color .2s ease; }
.feature:hover { background: var(--band); }
.feature-icon { width: 48px; height: 48px; border-radius: 12px; background: var(--tint); display: flex; align-items: center; justify-content: center; color: var(--accent-logo); transition: transform .3s cubic-bezier(.16,1,.3,1); }
.feature:hover .feature-icon { transform: translateY(-2px) scale(1.05); }
.feature h3 { margin: 0; font-size: 19px; font-weight: 700; }
.feature p { margin: 0; font-size: 15px; line-height: 1.6; color: var(--muted); }
.feature-title { display: flex; align-items: center; gap: 10px; flex-wrap: wrap; }
.soon { font-size: 12px; font-weight: 600; padding: 3px 10px; border-radius: 999px; background: var(--chip-new-bg); color: var(--chip-new); }

/* Pricing */
.plans { display: flex; flex-wrap: wrap; gap: 24px; align-items: stretch; }
.plan { flex: 1 1 300px; background: var(--card); border: 1px solid var(--line); border-radius: 14px; padding: 32px; display: flex; flex-direction: column; gap: 20px; transition: transform .3s cubic-bezier(.16,1,.3,1), box-shadow .3s ease; }
.plan:hover { transform: translateY(-4px); box-shadow: var(--shadow-hover); }
.plan.featured { border: 2px solid var(--accent); padding: 31px; box-shadow: 0 24px 60px rgba(37, 99, 235, 0.14); }
.plan-top { display: flex; justify-content: space-between; align-items: center; gap: 8px; }
.plan h3 { margin: 0; font-size: 18px; font-weight: 700; }
.badge { font-size: 12px; font-weight: 600; padding: 4px 10px; border-radius: 999px; background: var(--accent); color: #fff; }
.price { margin: 6px 0 0; font-size: 44px; line-height: 1.1; }
.price small { font-size: 16px; font-weight: 500; color: var(--subtle); letter-spacing: 0; }
.plan ul { list-style: none; margin: 0; padding: 0; display: flex; flex-direction: column; gap: 10px; font-size: 15px; color: var(--muted); flex-grow: 1; }
.plan li { display: flex; gap: 10px; align-items: flex-start; }
.plan li svg { flex: none; margin-top: 3px; color: var(--accent-logo); }
.plan li .muted { color: var(--subtle); }
.plans-note { text-align: center; margin: 32px 0 0; font-size: 14px; color: var(--subtle); }

/* Footer */
.site-footer .wrap { display: flex; justify-content: space-between; gap: 24px; flex-wrap: wrap; padding-top: 40px; padding-bottom: 40px; font-size: 14px; color: var(--subtle); }
.site-footer .who { display: flex; flex-direction: column; gap: 6px; }
.site-footer .who strong { color: var(--ink); font-weight: 500; }
.site-footer .links { display: flex; gap: 20px; flex-wrap: wrap; align-items: flex-start; }

/* Coming soon */
.soon-page { min-height: 100vh; min-height: 100svh; display: flex; flex-direction: column; align-items: center; justify-content: center; gap: 28px; padding: 24px; }
.soon-page .logo { font-size: clamp(96px, 18vw, 168px); margin: 0; }
.soon-page p { margin: 0; font-size: 18px; font-weight: 500; letter-spacing: 0.32em; text-transform: uppercase; color: var(--muted); padding-left: 0.32em; }

/* Policy pages */
.doc { max-width: 760px; margin: 0 auto; padding: 56px 24px 96px; }
.doc h1 { font-size: clamp(32px, 5vw, 44px); line-height: 1.1; margin: 0 0 8px; }
.doc .updated { color: var(--subtle); font-size: 14px; margin: 0 0 32px; }
.doc h2 { font-size: 20px; letter-spacing: -0.01em; font-weight: 700; margin: 36px 0 10px; }
.doc p, .doc li { font-size: 16px; line-height: 1.7; color: var(--muted); }
.doc strong { color: var(--ink); }
.doc ul { padding-left: 22px; }
.doc li { margin-bottom: 6px; }

/* ===== Motion — subtle. Only armed when JS runs (html.js), so content is never
   hidden without it; switched off entirely for reduced-motion users. ===== */
@keyframes rise { from { opacity: 0; transform: translateY(14px); } to { opacity: 1; transform: none; } }
@keyframes float { 0%, 100% { transform: translateY(0); } 50% { transform: translateY(-6px); } }
html.js .rise { animation: rise .7s cubic-bezier(.16,1,.3,1) both; animation-delay: var(--d, 0s); }
html.js .reveal { opacity: 0; transform: translateY(18px); transition: opacity .7s cubic-bezier(.16,1,.3,1), transform .7s cubic-bezier(.16,1,.3,1); transition-delay: var(--d, 0s); }
html.js .reveal.is-in { opacity: 1; transform: none; }
.float { animation: float 6s ease-in-out infinite; }
.float.slow { animation-duration: 7.5s; animation-delay: -2s; }
.soon-page .logo .cube { display: inline-block; animation: float 4s ease-in-out infinite; }

@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  *, *::before, *::after { animation: none !important; transition: none !important; }
  html.js .reveal { opacity: 1; transform: none; }
}
