/* CautaManage marketing site — Phase 5.M.1 (skeleton)
 *
 * Brand palette intentionally distinct from CautaReside (teal/green) —
 * CautaManage uses a warm amber + slate scheme to evoke hospitality.
 * Same fonts (Inter) for design consistency across the sibling
 * products; same component-shape vocabulary so an operator who knows
 * one site finds the other instantly familiar.
 *
 * Custom-property naming mirrors packages/website/style.css so future
 * shared-component extraction is mechanical, not a rewrite.
 */

:root {
  /* CautaManage brand — warm amber primary, deep slate text. The amber
     is darker than a typical hospitality gold so it reads serious on
     light backgrounds, not "vacation rental marketing fluff". */
  --primary:        #B45309;    /* amber-700 */
  --primary-dark:   #92400E;    /* amber-800 */
  --primary-light:  #F59E0B;    /* amber-500 — used for gradient + accents */
  --primary-soft:   #FEF3C7;    /* amber-100 — backgrounds */
  --accent:         #0F766E;    /* teal-700 — bridge to CautaReside, used sparingly */

  --text:           #0F172A;    /* slate-900 */
  --text-dim:       #475569;    /* slate-600 */
  --text-muted:     #94A3B8;    /* slate-400 */

  --bg:             #FFFFFF;
  --bg-alt:         #FAFAF9;    /* warm off-white */
  --surface:        #FFFFFF;
  --surface-alt:    #F5F5F4;    /* stone-100 */
  --border:         #E7E5E4;    /* stone-200 */

  --radius:         12px;
  --radius-sm:      6px;
  --shadow-sm:      0 1px 2px rgba(15, 23, 42, .04);
  --shadow:         0 4px 12px rgba(15, 23, 42, .06);
  --shadow-lg:      0 12px 36px rgba(15, 23, 42, .10);
  --shadow-xl:      0 24px 60px rgba(15, 23, 42, .14);

  --font:           'Inter', system-ui, -apple-system, sans-serif;
}

* { box-sizing: border-box; margin: 0; padding: 0; }
html { scroll-behavior: smooth; -webkit-text-size-adjust: 100%; }
body {
  font-family: var(--font);
  color: var(--text);
  background: var(--bg);
  line-height: 1.55;
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
}

.container {
  max-width: 1200px;
  margin: 0 auto;
  padding: 0 1.5rem;
}

/* ─── Buttons ───────────────────────────────────────────────────────── */
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: .5rem;
  padding: .65rem 1.25rem;
  font-family: var(--font);
  font-size: .9rem;
  font-weight: 600;
  letter-spacing: -.01em;
  border: 1px solid transparent;
  border-radius: var(--radius-sm);
  cursor: pointer;
  text-decoration: none;
  transition: transform .15s, box-shadow .15s, background .15s, color .15s, border-color .15s;
  white-space: nowrap;
}
.btn-lg { padding: .85rem 1.6rem; font-size: 1rem; }
.btn-block { display: flex; width: 100%; }
.btn-primary {
  background: var(--primary);
  color: #fff;
  box-shadow: 0 1px 2px rgba(180, 83, 9, .15);
}
.btn-primary:hover { background: var(--primary-dark); transform: translateY(-1px); box-shadow: var(--shadow); }
.btn-outline {
  background: transparent;
  color: var(--text);
  border-color: var(--border);
}
.btn-outline:hover { border-color: var(--primary); color: var(--primary); }
.btn-ghost {
  background: transparent;
  color: var(--text);
  border-color: transparent;
}
.btn-ghost:hover { background: var(--surface-alt); }

/* ─── Navbar ────────────────────────────────────────────────────────── */
.navbar {
  position: sticky;
  top: 0;
  z-index: 100;
  background: rgba(255, 255, 255, .85);
  backdrop-filter: saturate(180%) blur(12px);
  -webkit-backdrop-filter: saturate(180%) blur(12px);
  border-bottom: 1px solid var(--border);
}
.nav-container {
  display: flex;
  align-items: center;
  justify-content: space-between;
  height: 64px;
}
.nav-logo {
  display: flex;
  align-items: center;
  gap: .55rem;
  text-decoration: none;
  color: var(--text);
}
.logo-mark {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 32px;
  height: 32px;
  background: linear-gradient(135deg, var(--primary), var(--primary-light));
  color: #fff;
  border-radius: 8px;
  font-weight: 800;
  font-size: .8rem;
  letter-spacing: .02em;
}
.logo-word { font-weight: 700; font-size: 1.05rem; letter-spacing: -.02em; }
.nav-links {
  display: flex;
  align-items: center;
  gap: 2rem;
  font-size: .9rem;
}
.nav-links a {
  color: var(--text-dim);
  text-decoration: none;
  font-weight: 500;
  transition: color .15s;
}
.nav-links a:hover { color: var(--text); }
.nav-links a.active {
  /* Phase 5.M.2 — used on segment pages (for-investors.html /
     for-operators.html) to mark the current page in the nav. Same
     visual weight as the hover state plus a thin underline so a
     visitor can scan back to "where am I" without re-reading the URL. */
  color: var(--primary);
  border-bottom: 2px solid var(--primary);
  padding-bottom: 2px;
}
.nav-actions { display: flex; gap: .5rem; align-items: center; }
.nav-toggle {
  display: none;
  background: none;
  border: 0;
  width: 36px;
  height: 36px;
  flex-direction: column;
  justify-content: center;
  align-items: center;
  gap: 4px;
  cursor: pointer;
}
.nav-toggle span {
  width: 20px;
  height: 2px;
  background: var(--text);
  border-radius: 2px;
}

@media (max-width: 780px) {
  .nav-links { display: none; }
  .nav-toggle { display: flex; }
  .nav-links.open {
    display: flex;
    position: absolute;
    top: 64px;
    left: 0;
    right: 0;
    background: var(--bg);
    flex-direction: column;
    gap: 0;
    border-bottom: 1px solid var(--border);
    padding: 1rem 1.5rem;
  }
  .nav-links.open a {
    padding: .75rem 0;
    border-bottom: 1px solid var(--border);
  }
}

/* ─── Hero ──────────────────────────────────────────────────────────── */
.hero {
  position: relative;
  padding: 5rem 0 4rem;
  overflow: hidden;
}
.hero-bg {
  position: absolute;
  inset: 0;
  pointer-events: none;
}
.hero-gradient {
  position: absolute;
  inset: -10%;
  background:
    radial-gradient(circle at 20% 30%, rgba(245, 158, 11, .08), transparent 40%),
    radial-gradient(circle at 80% 20%, rgba(15, 118, 110, .05), transparent 40%);
}
.hero-content { position: relative; text-align: center; max-width: 880px; margin: 0 auto; }
.hero-badge {
  display: inline-flex;
  align-items: center;
  padding: .4rem 1rem;
  background: var(--primary-soft);
  color: var(--primary-dark);
  border-radius: 999px;
  font-size: .75rem;
  font-weight: 600;
  margin-bottom: 1.5rem;
}
.hero h1 {
  font-size: clamp(2.25rem, 5vw + .25rem, 3.75rem);
  font-weight: 800;
  letter-spacing: -.03em;
  line-height: 1.05;
  margin-bottom: 1.25rem;
}
.gradient-text {
  background: linear-gradient(135deg, var(--primary), var(--primary-light));
  -webkit-background-clip: text;
  background-clip: text;
  -webkit-text-fill-color: transparent;
  color: transparent;
}
.hero-subtitle {
  font-size: 1.05rem;
  color: var(--text-dim);
  max-width: 720px;
  margin: 0 auto 2rem;
  line-height: 1.65;
}
.hero-actions {
  display: flex;
  gap: .75rem;
  justify-content: center;
  flex-wrap: wrap;
  margin-bottom: 3rem;
}
.hero-stats {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 1.25rem;
  max-width: 720px;
  margin: 0 auto;
}
@media (max-width: 600px) {
  .hero-stats { grid-template-columns: 1fr; }
}
.stat {
  display: flex;
  flex-direction: column;
  align-items: center;
  padding: 1rem;
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  box-shadow: var(--shadow-sm);
}
.stat-number {
  font-size: 1.85rem;
  font-weight: 800;
  color: var(--primary);
  letter-spacing: -.02em;
}
.stat-label {
  font-size: .72rem;
  color: var(--text-dim);
  font-weight: 500;
  text-align: center;
  margin-top: .25rem;
}

/* ─── Section header ───────────────────────────────────────────────── */
.section-header { text-align: center; max-width: 760px; margin: 0 auto 3rem; }
.section-tag {
  display: inline-block;
  font-size: .7rem;
  font-weight: 600;
  letter-spacing: .12em;
  text-transform: uppercase;
  color: var(--primary);
  margin-bottom: .75rem;
}
.section-header h2 {
  font-size: clamp(1.75rem, 3vw + .5rem, 2.6rem);
  font-weight: 800;
  letter-spacing: -.02em;
  line-height: 1.15;
  margin-bottom: 1rem;
}
.section-header h2 .muted { color: var(--text-dim); font-weight: 700; }
.section-header p { color: var(--text-dim); font-size: 1rem; line-height: 1.65; }

/* ─── Workflow grid ────────────────────────────────────────────────── */
.workflow { padding: 5rem 0; background: var(--bg-alt); }
.workflow-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 1.25rem;
}
@media (max-width: 1000px) {
  .workflow-grid { grid-template-columns: repeat(2, 1fr); }
}
@media (max-width: 600px) {
  .workflow-grid { grid-template-columns: 1fr; }
}
.workflow-stage {
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  padding: 1.5rem;
  box-shadow: var(--shadow-sm);
  transition: transform .2s, box-shadow .2s, border-color .2s;
}
.workflow-stage:hover {
  transform: translateY(-3px);
  box-shadow: var(--shadow);
  border-color: var(--primary);
}
.stage-mark {
  width: 40px;
  height: 40px;
  border-radius: 50%;
  color: #fff;
  font-weight: 800;
  font-size: 1.1rem;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  margin-bottom: 1rem;
}
.stage-plan    .stage-mark { background: #1A7A7A; }
.stage-run     .stage-mark { background: var(--primary); }
.stage-measure .stage-mark { background: #7C3AED; }
.stage-comply  .stage-mark { background: #16A34A; }
.workflow-stage h3 {
  font-size: 1.15rem;
  font-weight: 700;
  margin-bottom: .65rem;
  color: var(--text);
}
.workflow-stage ul {
  list-style: none;
  font-size: .85rem;
  color: var(--text-dim);
  line-height: 1.7;
}
.workflow-stage ul li {
  padding-left: 1.1rem;
  position: relative;
  margin-bottom: .3rem;
}
.workflow-stage ul li::before {
  content: "→";
  position: absolute;
  left: 0;
  color: var(--primary);
  font-weight: 700;
}
.workflow-stage ul li strong { color: var(--text); font-weight: 600; }

/* ─── Features ─────────────────────────────────────────────────────── */
.features { padding: 5rem 0; }
.features-grid {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 1.5rem;
}
@media (max-width: 800px) {
  .features-grid { grid-template-columns: 1fr; }
}
.feature-card {
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  padding: 2rem;
  transition: transform .2s, box-shadow .2s, border-color .2s;
}
.feature-card:hover {
  transform: translateY(-3px);
  box-shadow: var(--shadow);
  border-color: var(--primary);
}
.feature-icon {
  width: 48px;
  height: 48px;
  border-radius: 12px;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 1.6rem;
  margin-bottom: 1.25rem;
}
.fi-orange { background: rgba(245, 158, 11, .12); }
.fi-teal   { background: rgba(15, 118, 110, .12); }
.fi-purple { background: rgba(124, 58, 237, .12); }
.fi-green  { background: rgba(22, 163, 74, .12); }
.feature-card h3 {
  font-size: 1.2rem;
  font-weight: 700;
  margin-bottom: .65rem;
  letter-spacing: -.01em;
}
.feature-card p { color: var(--text-dim); font-size: .92rem; line-height: 1.65; }

/* ─── Ghana section ────────────────────────────────────────────────── */
.ghana { padding: 5rem 0; background: var(--bg-alt); }
.ghana-grid {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 1.25rem;
}
@media (max-width: 800px) {
  .ghana-grid { grid-template-columns: 1fr; }
}
.ghana-card {
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  padding: 1.75rem;
}
.ghana-card h3 {
  font-size: 1.05rem;
  font-weight: 700;
  margin-bottom: .65rem;
}
.ghana-card p { color: var(--text-dim); font-size: .9rem; line-height: 1.7; }

/* ─── Contact ───────────────────────────────────────────────────────── */
.contact { padding: 5rem 0; }
.contact-grid {
  display: grid;
  grid-template-columns: 1fr 1.2fr;
  gap: 3rem;
  align-items: start;
}
@media (max-width: 900px) {
  .contact-grid { grid-template-columns: 1fr; gap: 2rem; }
}
.contact-info h2 {
  font-size: clamp(1.75rem, 3vw + .25rem, 2.4rem);
  font-weight: 800;
  letter-spacing: -.02em;
  margin: .5rem 0 1rem;
}
.contact-info p {
  color: var(--text-dim);
  font-size: .95rem;
  line-height: 1.7;
  margin-bottom: 1.5rem;
}
.contact-details { display: flex; flex-direction: column; gap: .65rem; }
.contact-item {
  display: flex;
  align-items: center;
  gap: .65rem;
  font-size: .9rem;
}
.contact-item a { color: var(--text); text-decoration: none; }
.contact-item a:hover { color: var(--primary); }
.contact-icon {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 28px;
  height: 28px;
  background: var(--primary-soft);
  color: var(--primary);
  border-radius: 6px;
  font-size: .85rem;
}
.contact-form-wrapper {
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  padding: 2rem;
  box-shadow: var(--shadow);
}
.form-group { margin-bottom: 1rem; }
.form-group label {
  display: block;
  font-size: .75rem;
  font-weight: 600;
  color: var(--text);
  margin-bottom: .3rem;
  text-transform: none;
  letter-spacing: 0;
}
.form-group input,
.form-group select,
.form-group textarea {
  width: 100%;
  padding: .65rem .85rem;
  font-family: var(--font);
  font-size: .9rem;
  color: var(--text);
  background: var(--bg);
  border: 1px solid var(--border);
  border-radius: var(--radius-sm);
  transition: border-color .15s, box-shadow .15s;
}
.form-group input:focus,
.form-group select:focus,
.form-group textarea:focus {
  outline: 0;
  border-color: var(--primary);
  box-shadow: 0 0 0 3px rgba(180, 83, 9, .12);
}
.form-note {
  font-size: .72rem;
  color: var(--text-muted);
  text-align: center;
  margin-top: .65rem;
}

/* ─── Footer ────────────────────────────────────────────────────────── */
.footer {
  padding: 3rem 0 1.5rem;
  background: var(--text);
  color: #fff;
}
.footer .nav-logo { color: #fff; }
.footer .logo-word { color: #fff; }
.footer-grid {
  display: grid;
  grid-template-columns: 1.6fr 1fr 1.4fr 1fr;
  gap: 2rem;
  margin-bottom: 2rem;
}
@media (max-width: 800px) {
  .footer-grid { grid-template-columns: 1fr 1fr; }
}
@media (max-width: 500px) {
  .footer-grid { grid-template-columns: 1fr; }
}
.footer-brand p {
  margin-top: .75rem;
  color: rgba(255, 255, 255, .65);
  font-size: .85rem;
  line-height: 1.6;
}
.footer-links h4 {
  font-size: .7rem;
  letter-spacing: .12em;
  text-transform: uppercase;
  color: rgba(255, 255, 255, .55);
  margin-bottom: .75rem;
  font-weight: 600;
}
.footer-links a {
  display: block;
  color: rgba(255, 255, 255, .85);
  text-decoration: none;
  font-size: .88rem;
  padding: .15rem 0;
  transition: color .15s;
}
.footer-links a:hover { color: var(--primary-light); }
.footer-note {
  font-size: .72rem;
  color: rgba(255, 255, 255, .55);
  margin-top: .3rem;
  line-height: 1.5;
}
.footer-bottom {
  padding-top: 1.5rem;
  border-top: 1px solid rgba(255, 255, 255, .12);
  font-size: .8rem;
  color: rgba(255, 255, 255, .55);
  text-align: center;
}

/* ─── Comparison page (Phase 5.M.3) ────────────────────────────────── */
/* Three-column side-by-side table on /compare.html. Header row has
   strong column titles; each subsequent row is "row label" (full-width
   tag above the row) then three cells (Airbnb / Generic PMS /
   CautaManage). CautaManage column carries the brand-amber background
   to anchor the eye; Airbnb-only is intentionally low-contrast (it's
   the baseline, not the destination). */
.comparison { padding: 2rem 0 5rem; }
.cmp-table {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 0;
  border: 1px solid var(--border);
  border-radius: var(--radius);
  overflow: hidden;
  background: var(--surface);
}
@media (max-width: 800px) {
  /* Below 800px the three-column table is unreadable. Collapse to a
     vertical stack: each row label spans full width, each cell stacks
     beneath. Operators on phones still get the comparison; they just
     scroll instead of scanning. */
  .cmp-table { grid-template-columns: 1fr; }
}
.cmp-cell {
  padding: 1rem 1.1rem;
  font-size: .85rem;
  line-height: 1.65;
  color: var(--text-dim);
  border-top: 1px solid var(--border);
  border-right: 1px solid var(--border);
}
.cmp-cell:nth-child(3n) { border-right: 0; }
@media (max-width: 800px) {
  .cmp-cell { border-right: 0; }
}
.cmp-header {
  background: var(--bg-alt);
  padding: 1.25rem 1.1rem;
  border-top: 0;
}
.cmp-col-title {
  font-weight: 700;
  font-size: 1rem;
  color: var(--text);
  margin-bottom: .25rem;
  letter-spacing: -.01em;
}
.cmp-col-sub {
  font-size: .75rem;
  color: var(--text-muted);
  line-height: 1.5;
}
.cmp-row-label {
  grid-column: 1 / -1;
  padding: .85rem 1.1rem .35rem;
  font-size: .65rem;
  font-weight: 700;
  letter-spacing: .12em;
  text-transform: uppercase;
  color: var(--primary);
  background: var(--bg-alt);
  border-top: 1px solid var(--border);
}
.cmp-mark {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 18px;
  height: 18px;
  border-radius: 50%;
  font-size: .7rem;
  font-weight: 700;
  margin-right: .4rem;
  vertical-align: text-top;
  flex-shrink: 0;
}
.cmp-mark-good { background: #16A34A; color: #fff; }
.cmp-mark-mid  { background: #D97706; color: #fff; }
.cmp-mark-bad  { background: var(--text-muted); color: #fff; }
.cmp-col-cm.cmp-highlight {
  /* Brand-amber soft-fill on the CautaManage column to anchor the
     "this is the one" visual without screaming. Same approach the
     CautaReside marketing site uses for its highlighted column. */
  background: var(--primary-soft);
  color: var(--text);
}
.cmp-col-cm.cmp-highlight.cmp-header {
  background: linear-gradient(135deg, var(--primary), var(--primary-light));
  color: #fff;
}
.cmp-col-cm.cmp-highlight.cmp-header .cmp-col-title,
.cmp-col-cm.cmp-highlight.cmp-header .cmp-col-sub { color: #fff; }
.cmp-col-cm.cmp-highlight.cmp-header .cmp-col-sub { opacity: .9; }

/* ─── Legal pages (Phase 5.M.3) ────────────────────────────────────── */
/* privacy-policy.html + terms-of-service.html. Patterned on the
   CautaReside legal-page styles (style.css:1804+) so the two sibling
   marketing sites read as the same product family. Single column,
   generous line-height, primary-coloured links. */
.legal-hero {
  padding: 6rem 0 3rem;
  background: var(--bg-alt);
  text-align: center;
}
.legal-hero h1 {
  font-size: 2.4rem;
  font-weight: 800;
  letter-spacing: -.02em;
  color: var(--text);
  margin-bottom: .35rem;
}
.legal-hero p {
  color: var(--text-dim);
  font-size: 1rem;
}
.legal-content {
  max-width: 800px;
  margin: 0 auto;
  padding: 3rem 1.5rem 5rem;
  line-height: 1.8;
}
.legal-content h2 {
  font-size: 1.45rem;
  font-weight: 700;
  color: var(--text);
  margin: 2.75rem 0 1rem;
  letter-spacing: -.01em;
}
.legal-content h2:first-child {
  margin-top: 0;
}
.legal-content h3 {
  font-size: 1.1rem;
  font-weight: 600;
  color: var(--text);
  margin: 1.6rem 0 .75rem;
}
.legal-content p {
  color: var(--text-dim);
  margin-bottom: 1rem;
}
.legal-content ul,
.legal-content ol {
  margin-left: 1.5rem;
  margin-bottom: 1rem;
}
.legal-content li {
  margin-bottom: .5rem;
  color: var(--text-dim);
}
.legal-content a {
  color: var(--primary);
  text-decoration: underline;
}
.legal-content a:hover { color: var(--primary-dark); }
.legal-content strong { color: var(--text); font-weight: 600; }
