/* © 2026 HOOMAHOO (www.hoomahoo.com). All rights reserved. Copying, modifying or reusing this code without HOOMAHOO's written permission is prohibited. */
/* HOOMAHOO website - the visual language of the HOOMAHOO Office Assistant
   (D:\HOA-R02 core/theme.py and core/ribbon.py): dark surfaces, one gold
   accent, no white - the lightest colour is a light grey. */
:root {
  --bg: #1A1A1D;
  --card: #242428;
  --surface: #2E2E33;
  --border: #3A3A40;
  --gold: #F1B811;
  --gold-pressed: #DDA60D;
  --text: #C9C9CE;          /* lightest colour on the site */
  --text-muted: #A0A0A5;
  --ok: #3AA35A;
  --max: 1080px;
  /* Ribbon geometry, scaled up from the desktop app for the web:
     a group tab is exactly two tiles (plus gaps and border) wide. */
  --tile: 88px;
  --tile-gap: 2px;
  --tab-width: calc(2 * (var(--tile) + 2 * var(--tile-gap)) + 2px);
}

* { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; }
body {
  margin: 0; background: var(--bg); color: var(--text);
  font-family: "Segoe UI", system-ui, -apple-system, Roboto, "Helvetica Neue", Arial, sans-serif;
  font-size: 16px; line-height: 1.55;
}
a { color: var(--gold); }
img, video { max-width: 100%; }
.wrap { max-width: var(--max); margin: 0 auto; padding: 0 16px; }

/* ---------- Header: logo, gold title, grey subtitle sized to the title ---------- */
.brand-header .wrap { display: flex; align-items: center; gap: 14px; padding-top: 18px; padding-bottom: 16px; }
.brand-link { display: flex; align-items: center; gap: 14px; text-decoration: none; }
.brand-logo { height: 60px; width: auto; display: block; }
.brand-titles { display: inline-flex; flex-direction: column; }
.brand-title { color: var(--gold); font-weight: 800; font-size: 30px; line-height: 1.1; letter-spacing: 1px; white-space: nowrap; }
.brand-subtitle { color: var(--text-muted); font-size: 14px; line-height: 1.2; margin-top: 3px; white-space: nowrap; }

/* ---------- Ribbon: group tabs that drop square tiles, About tile last ---------- */
.ribbon-wrap { position: relative; z-index: 20; }
.ribbon {
  display: flex; flex-wrap: wrap; align-items: stretch;
  background: var(--card); border: 1px solid var(--border); min-height: var(--tile);
}
.ribbon-group { position: relative; }
.ribbon-tab {
  width: var(--tab-width); height: var(--tile); border: 0; background: var(--card); color: var(--text-muted);
  font: inherit; font-size: 13px; font-weight: 700; letter-spacing: 1px; cursor: pointer; padding: 0 8px;
}
.ribbon-tab:hover { background: var(--surface); }
.ribbon-tab[aria-expanded="true"] { background: var(--gold); color: #000; }
.ribbon-tab:focus-visible, .tile-btn:focus-visible { outline: 2px solid var(--gold); outline-offset: -2px; }
.ribbon-panel {
  position: absolute; top: 100%; left: -1px; display: none;
  background: var(--border); padding: 1px;              /* the 1px outer border */
}
.ribbon-panel.open { display: block; }
.ribbon-panel.align-right { left: auto; right: -1px; }
.ribbon-panel .tiles { display: grid; grid-template-columns: repeat(2, var(--tile)); gap: calc(2 * var(--tile-gap));
  padding: var(--tile-gap); background: var(--card); }
.tile-btn {
  width: var(--tile); height: var(--tile); background: var(--card); color: var(--text-muted);
  display: flex; flex-direction: column; align-items: center; justify-content: flex-start;
  padding: 12px 4px 0; text-decoration: none; cursor: pointer; border: 0; font: inherit;
}
.tile-btn:hover { background: var(--surface); }
.tile-btn .icon { color: var(--gold); font-size: 24px; line-height: 1; height: 28px;
  font-family: "Segoe UI Symbol", "Segoe UI", "DejaVu Sans", sans-serif; }
.tile-btn .label { font-size: 12px; line-height: 1.2; margin-top: 8px; text-align: center; }
.tile-btn.active { background: var(--gold); color: #000; }
.tile-btn.active .icon { color: #000; }
/* The right-hand group (owner, 16 Oct 2026; STATUS 2b items 43, 49): plain buttons as square tiles (a menu with
   a link and nothing to drop), then ACCOUNT on DOCFLOW's pages, About, and Log in on HOOMAHOO's. */
.ribbon .ribbon-end { margin-left: auto; display: flex; flex-wrap: wrap; align-items: stretch; }
/* ACCOUNT, then About last (owner, 7 Oct 2026); Log out is a form button. */
.tile-form { margin: 0; display: contents; }

/* ---------- Home page: 9 square tiles in 3 rows ---------- */
main { margin-top: 16px; }
.tile-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 14px; }
.home-tile {
  position: relative; aspect-ratio: 1 / 1; background: var(--card); border: 1px solid var(--border);
  overflow: hidden; display: block; color: var(--text); text-decoration: none;
}
a.home-tile:hover { border-color: var(--gold); }
.home-tile.text { padding: 22px; display: flex; flex-direction: column; }
.home-tile.text .t-title { color: var(--gold); font-size: 22px; font-weight: 800; letter-spacing: .5px; margin: 0 0 10px; }
.home-tile.text .t-text { color: var(--text-muted); font-size: 15px; margin: 0; white-space: pre-line;
  overflow: hidden; display: -webkit-box; -webkit-line-clamp: 9; -webkit-box-orient: vertical; }
.home-tile.text .t-more { margin-top: auto; color: var(--gold); font-weight: 700; font-size: 14px; }
.home-tile img, .home-tile video { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; }
.home-tile iframe { position: absolute; inset: 0; width: 100%; height: 100%; border: 0; background: var(--bg); }
.home-tile .caption {
  position: absolute; left: 0; right: 0; bottom: 0; padding: 30px 16px 12px;
  background: linear-gradient(to top, rgba(26,26,29,.92), rgba(26,26,29,0)); color: var(--text);
}
.home-tile .caption .t-title { color: var(--gold); font-weight: 800; font-size: 17px; }
.home-tile .caption .t-text { font-size: 13px; color: var(--text); }
/* All tiles one size (owner, 17 Oct 2026); a "Coming soon" tile carries the mark. */
.home-tile .soon-mark { position: absolute; top: 12px; right: 12px; z-index: 1; background: var(--gold); color: #000;
  font-size: 12px; font-weight: 800; letter-spacing: .5px; padding: 4px 10px; text-transform: uppercase; }
.home-tile.empty { background: var(--card); }
.home-tile.empty::after {   /* a faint square motif, echoing the logo */
  content: ""; position: absolute; inset: 38%; border: 2px solid var(--surface);
}

/* ---------- Home page: Welcome, Who we are, What we do (item 43) ---------- */
.home-intro { padding: 18px 0 8px; }
/* 4 points larger than the "Who we are" heading below it (owner, 17 Oct 2026). */
.home-intro h1 { font-size: calc(18px + 4pt); line-height: 1.2; margin: 0 0 10px; color: var(--text); }
.home-intro .lead { font-size: 17px; color: var(--text-muted); margin: 0; max-width: 44em; }
.home-columns { display: grid; grid-template-columns: repeat(auto-fit, minmax(min(100%, 320px), 1fr)); gap: 14px;
  margin: 18px 0 22px; }
.home-block { background: var(--card); border: 1px solid var(--border); padding: 18px 20px; }
.home-block h2 { color: var(--gold); font-size: 18px; margin: 0 0 6px; }
.home-block p { margin: 0; color: var(--text-muted); font-size: 15px; }
.home-block p + p { margin-top: 8px; }
.home-columns.one-column { grid-template-columns: 1fr; max-width: 56em; }

/* ---------- HOOMAHOO's ribbon: the app tiles, logo and name (owner, 17 Oct 2026) ---------- */
.ribbon .app-tiles { display: flex; flex-wrap: wrap; }
.tile-btn .app-logo { width: 40px; height: 40px; object-fit: contain; }
.tile-btn.app-tile .label { margin-top: 6px; }

/* ---------- HOOMAHOO's forms: Contact us, the Khareq launch list ---------- */
.product-head { margin-bottom: 12px; }
.product-head h1 { margin: 0; }
.product-head .lead { margin: 4px 0 0; color: var(--text-muted); font-size: 18px; }
.site-form { max-width: 34em; margin-top: 18px; }
.site-form label { display: block; font-weight: 700; margin: 10px 0 6px; color: var(--text); }
.site-form input, .site-form textarea { width: 100%; box-sizing: border-box; background: var(--surface); color: var(--text);
  border: 1px solid var(--border); border-radius: 2px; padding: 10px 12px; font: inherit; font-size: 15px; }
.site-form input:focus, .site-form textarea:focus { outline: 2px solid var(--gold); outline-offset: -1px; }
.site-form .hint { color: var(--text-muted); font-size: 13px; margin: 6px 0 0; }
.site-form .captcha { margin: 14px 0 4px; min-height: 0; }
.site-form .btn, .site-form .actions { margin-top: 14px; }
.site-form .actions .btn { margin-top: 0; }
.site-form .btn[disabled] { opacity: .6; cursor: wait; }
.form-message { padding: 10px 12px; margin-bottom: 8px; border: 1px solid var(--border); }
.form-message.error { border-color: #c0392b; color: #f1a59b; }
.form-message.ok { border-color: var(--ok); color: var(--text); }
.form-done { color: var(--text); font-size: 17px; margin: 0; }
.product-line { margin: 8px 0 0; }
.product-tag { display: inline-block; background: var(--gold); color: #000; font-weight: 800; letter-spacing: .5px;
  padding: 3px 10px; font-size: 13px; }

/* ---------- About DOCFLOW: the build and the copyright statement (item 54) ---------- */
.about-build { margin-top: 28px; }
.about-build p { margin: 0 0 6px; }

/* ---------- Getting Started (item 46) ---------- */
.steps-list { margin: 8px 0 0; padding-left: 0; list-style: none; display: grid; gap: 8px; }
.steps-list li { background: var(--card); border: 1px solid var(--border); padding: 10px 14px; color: var(--text-muted); }
.steps-list li b { color: var(--gold); margin-right: 6px; }
.price-line { font-size: 18px; color: var(--text); margin: 18px 0; }

/* ---------- DOCFLOW page ---------- */
.hero { padding-top: 40px; padding-bottom: 30px; }
.eyebrow { color: var(--gold); font-weight: 700; letter-spacing: 2px; font-size: 13px; text-transform: uppercase; margin: 0 0 10px; }
/* 4 points larger than the section headings below it (owner, 17 Oct 2026). */
.hero h1 { font-size: calc(26px + 4pt); line-height: 1.15; margin: 0 0 16px; max-width: 18em; color: var(--text); }
.hero p.lead { font-size: 18px; color: var(--text-muted); max-width: 38em; margin: 0 0 26px; }
.actions { display: flex; flex-wrap: wrap; gap: 10px; }

.btn { display: inline-block; padding: 11px 20px; border-radius: 2px; font-weight: 700; text-decoration: none; border: 1px solid transparent;
  cursor: pointer; font-size: 15px; font-family: inherit; }
.btn-primary { background: var(--gold); color: #000; }
.btn-primary:hover { background: var(--gold-pressed); }
.btn-secondary { background: transparent; color: var(--text); border-color: var(--border); }
.btn-secondary:hover { border-color: var(--gold); }

section { padding: 36px 0; }
section h2 { font-size: 26px; margin: 0 0 8px; color: var(--text); }
section .sub { color: var(--text-muted); margin: 0 0 24px; max-width: 42em; }

.grid { display: grid; gap: 14px; grid-template-columns: repeat(auto-fit, minmax(min(100%, 300px), 1fr)); }
.card { background: var(--card); border: 1px solid var(--border); border-radius: 2px; padding: 20px; }
.card h3 { margin: 0 0 6px; font-size: 17px; color: var(--gold); }
.card p { margin: 0; color: var(--text-muted); font-size: 15px; }

.cycle { display: inline-flex; border: 1px solid var(--border); border-radius: 2px; margin-bottom: 20px; }
.cycle button { background: transparent; color: var(--text-muted); border: 0; padding: 8px 16px; font: inherit; font-size: 14px; cursor: pointer; }
.cycle button[aria-pressed="true"] { background: var(--gold); color: #000; font-weight: 700; }
.price-card { display: flex; flex-direction: column; gap: 8px; }
.price-card .plan { color: var(--gold); font-size: 20px; font-weight: 800; }
.price-card .desc { margin: 0; }
.price-card .amount { font-size: 34px; font-weight: 800; font-variant-numeric: tabular-nums; color: var(--text); }
.price-card .amount span { font-size: 14px; font-weight: 400; color: var(--text-muted); }
.price-card .note { color: var(--text-muted); font-size: 14px; min-height: 1.5em; }
.price-card .btn { margin-top: 8px; text-align: center; }
.fineprint { color: var(--text-muted); font-size: 13px; margin-top: 14px; }

ul.ticks { list-style: none; padding: 0; margin: 0; display: grid; gap: 8px; }
ul.ticks li { padding-left: 24px; position: relative; color: var(--text-muted); }
ul.ticks li::before { content: "\2713"; position: absolute; left: 0; color: var(--ok); font-weight: 700; }

details.faq { border-bottom: 1px solid var(--border); padding: 12px 0; }
details.faq summary { cursor: pointer; font-weight: 700; color: var(--text); }
details.faq p { color: var(--text-muted); margin: 8px 0 0; }

.site-footer { border-top: 1px solid var(--border); margin-top: 32px; padding: 20px 0; color: var(--text-muted); font-size: 13px; }
.site-footer .wrap { display: flex; flex-wrap: wrap; gap: 8px 20px; }

@media (max-width: 760px) {
  .tile-grid { grid-template-columns: 1fr; }
  .home-tile.text { aspect-ratio: auto; min-height: 220px; }
}
@media (max-width: 600px) {
  :root { --tile: 80px; }
  .brand-logo { height: 46px; }
  .brand-title { font-size: 24px; }
  .hero p.lead { font-size: 16px; }
}


/* Legal pages (Terms, Privacy, Refunds): readable line length */
.legal { max-width: 860px; padding-top: 28px; padding-bottom: 40px; }
.legal h1 { margin-bottom: 4px; }
.legal h2 { font-size: 1.15rem; margin-top: 28px; }
.legal p, .legal li { line-height: 1.6; }
.legal a { color: var(--gold); }
.draft-note { border: 1px solid var(--gold); color: var(--gold); padding: 8px 12px; border-radius: 6px; display: inline-block; }
