/* Glog.AI design system applied to the wireframe.
   Source of truth: the "Glog.AI (modern draft)" design system (tokens below copy its tokens.json):
   flat surfaces with hairline borders, near-black ink, one interactive blue, and the brand cyan
   kept for dark `night` panels. Every block keeps class="wf wf-NAME" and data-block="NAME"; the
   purple block labels and the yellow sign-off markers are wireframe aids and must never reach a
   release build. */

:root {
  /* Colour */
  --bg: #f7f9fb;
  --surface: #ffffff;
  --surface-sunken: #eef2f6;
  --line: #e1e7ee;
  --line-strong: #8593a6;
  --ink: #0b1526;
  --ink-muted: #4b5a6e;
  --brand: #1868b0;
  --brand-hover: #12558f;
  --on-brand: #ffffff;
  --night: #071226;
  --on-night: #ffffff;
  --on-night-muted: #a9b8cc;
  --accent: #45d8f9;

  /* Type */
  --font-sans: 'Instrument Sans', system-ui, sans-serif;
  --font-mono: 'Geist Mono', ui-monospace, monospace;
  --fs-stat: clamp(36px, 3.6vw, 48px);
  --fs-h1: clamp(38px, 5vw, 60px);
  --fs-h2: clamp(30px, 3.4vw, 40px);
  --fs-h3: clamp(21px, 2vw, 24px);
  --fs-lead: clamp(17px, 1.6vw, 19px);
  --fs-title: 18px;
  --fs-body: 16px;
  --fs-body-sm: 14px;
  --fs-caption: 13px;
  --fs-label: 12px;

  /* Space (4px grid) and shape */
  --space-1: 4px;
  --space-2: 8px;
  --space-3: 12px;
  --space-4: 16px;
  --space-6: 24px;
  --space-8: 32px;
  --space-12: 48px;
  --space-16: 64px;
  --space-24: 96px;
  /* 1200px container with 32px gutters; 20px gutters on phones */
  --page-x: max(32px, calc((100vw - 1136px) / 2));
  --section-gap: var(--space-24);
  --radius-sm: 6px;
  --radius-md: 10px;
  --radius-lg: 16px;
  --radius-xl: 24px;
  --shadow-sm: 0 1px 2px rgba(11, 21, 38, 0.05);
  --shadow-md: 0 12px 32px -12px rgba(11, 21, 38, 0.18);
  --ease: cubic-bezier(0.2, 0.7, 0.2, 1);
  --dur: 160ms;
  --header-h: 72px;

  /* Wireframe aids */
  --wf-pending: #fff1a8;
  --wf-pending-line: #a07f00;
  --wf-pending-ink: #5c4800;
  --wf-label: #6b2fd9;

  color-scheme: light;
  font-family: var(--font-sans);
  font-size: var(--fs-body);
  line-height: 1.6;
  color: var(--ink);
  background: var(--bg);
}

/* Dark theme (tokens.json "dark" values). Follows the OS setting; html[data-theme] overrides it
   (set by the dev toolbar's "dark theme" tick box). Keep the two blocks identical. */
@media (prefers-color-scheme: dark) {
  :root:not([data-theme='light']) {
    color-scheme: dark;
    --bg: #070d18;
    --surface: #0f1a2b;
    --surface-sunken: #0a1322;
    --line: #1c2940;
    --line-strong: #5b6b82;
    --ink: #e8eef6;
    --ink-muted: #9aa8bb;
    --brand: #5aaef0;
    --brand-hover: #82c2f5;
    --on-brand: #04101f;
    --night: #18335f;
    --shadow-sm: 0 1px 2px rgba(0, 0, 0, 0.4);
    --shadow-md: 0 12px 32px -12px rgba(0, 0, 0, 0.6);
    /* Pending sign-off markers: dark amber ground, so light ink stays readable */
    --wf-pending: #3d3100;
    --wf-pending-line: #d4a72c;
    --wf-pending-ink: #ffd95c;
  }
}
:root[data-theme='dark'] {
  color-scheme: dark;
  --bg: #070d18;
  --surface: #0f1a2b;
  --surface-sunken: #0a1322;
  --line: #1c2940;
  --line-strong: #5b6b82;
  --ink: #e8eef6;
  --ink-muted: #9aa8bb;
  --brand: #5aaef0;
  --brand-hover: #82c2f5;
  --on-brand: #04101f;
  --night: #18335f;
  --shadow-sm: 0 1px 2px rgba(0, 0, 0, 0.4);
  --shadow-md: 0 12px 32px -12px rgba(0, 0, 0, 0.6);
  /* Pending sign-off markers: dark amber ground, so light ink stays readable */
  --wf-pending: #3d3100;
  --wf-pending-line: #d4a72c;
  --wf-pending-ink: #ffd95c;
}

/* Dark-only details: the nav shows the cyan wordmark instead of the light-ground lockup,
   and the highlighted card adds a brand border so it stands apart from surface. */
.wf-logo-dark { display: none; }
@media (prefers-color-scheme: dark) {
  :root:not([data-theme='light']) .wf-logo-light { display: none; }
  :root:not([data-theme='light']) .wf-logo-dark { display: block; }
  :root:not([data-theme='light']) .wf-card-highlight { border-color: var(--brand); }
}
:root[data-theme='dark'] .wf-logo-light { display: none; }
:root[data-theme='dark'] .wf-logo-dark { display: block; }
:root[data-theme='dark'] .wf-card-highlight { border-color: var(--brand); }

* { box-sizing: border-box; }
body { margin: 0; background: var(--bg); overflow-x: hidden; -webkit-font-smoothing: antialiased; }
img { max-width: 100%; }
a { color: var(--brand); text-underline-offset: 3px; }
a:hover { color: var(--brand-hover); }
:focus-visible { outline: 2px solid var(--brand); outline-offset: 2px; }
h1, h2, h3 { color: var(--ink); }
h1 { font-size: var(--fs-h1); font-weight: 500; line-height: 1.04; letter-spacing: -0.035em; }
h2 { font-size: var(--fs-h2); font-weight: 500; line-height: 1.1; letter-spacing: -0.025em; }
h3 { font-size: var(--fs-title); font-weight: 600; line-height: 1.35; letter-spacing: -0.01em; }
p, li { line-height: 1.6; }
table { border-collapse: collapse; width: 100%; font-size: var(--fs-body-sm); background: var(--surface); }
th, td { padding: 12px 16px; text-align: left; vertical-align: top; border-bottom: 1px solid var(--line); }
th { background: var(--surface-sunken); color: var(--ink); font-weight: 600; }
tbody tr:last-child td { border-bottom: 0; }
code { font-family: var(--font-mono); font-size: 0.875em; }

.wf-full {
  margin-inline: calc(-1 * var(--page-x));
  padding-inline: var(--page-x);
}

/* Shared: mono eyebrow / tag */
.wf-site-header {
  position: sticky; top: 0; z-index: 6;
  display: flex; align-items: center; justify-content: space-between; gap: 24px;
  height: var(--header-h); padding: 0 var(--page-x);
  background: color-mix(in srgb, var(--surface) 86%, transparent); -webkit-backdrop-filter: blur(12px); backdrop-filter: blur(12px);
  border-bottom: 1px solid var(--line);
}
.wf-logo { display: block; line-height: 0; flex: none; }
.wf-logo img { width: 140px; height: auto; }
.wf-logo img.wf-logo-dark { width: 88px; }

.wf-navbar { display: flex; flex: none; gap: var(--space-8); align-items: center; white-space: nowrap; }
.wf-navbar nav { display: flex; gap: var(--space-1); align-items: center; }
.wf-navbar nav > a, .wf-menu > button {
  display: inline-flex; align-items: center; gap: var(--space-1); padding: 8px 12px; border-radius: var(--radius-sm);
  font: inherit; font-size: var(--fs-body-sm); font-weight: 500; line-height: 1.2;
  color: var(--ink-muted); background: transparent; border: 0; text-decoration: none; cursor: pointer;
  transition: color var(--dur) var(--ease), background var(--dur) var(--ease);
}
.wf-navbar nav > a:hover, .wf-menu > button:hover, .wf-menu > button[aria-expanded='true'] { color: var(--ink); background: var(--surface-sunken); }
.wf-navbar nav > a.active { color: var(--ink); }
.wf-chevron { width: 12px; height: 12px; display: block; transition: transform var(--dur) var(--ease); }
.wf-menu > button[aria-expanded='true'] .wf-chevron { transform: rotate(180deg); }

.wf-header-actions { display: flex; gap: var(--space-4); align-items: center; }
.wf-client-login { font-size: var(--fs-caption); font-weight: 500; color: var(--ink-muted); text-decoration: none; }
.wf-client-login:hover { color: var(--ink); text-decoration: underline; }
.wf-demo-slot { display: flex; align-items: center; }
.wf-demo-slot .wf-button { min-height: 36px; padding: 0 14px; font-size: var(--fs-body-sm); }

/* Products dropdown: a surface panel under its button */
.wf-menu { position: relative; display: flex; }
.wf-menu ul {
  position: absolute; top: calc(100% + 12px); left: 50%; transform: translateX(-50%); z-index: 5; width: 340px;
  list-style: none; margin: 0; padding: var(--space-2);
  background: var(--surface); border: 1px solid var(--line); border-radius: var(--radius-lg); box-shadow: var(--shadow-md);
  white-space: normal;
}
/* Invisible bridge over the gap so the pointer can travel from the button to the list */
.wf-menu ul::before { content: ''; position: absolute; left: 0; right: 0; top: -14px; height: 14px; }
.wf-menu li a {
  display: flex; flex-direction: column; align-items: flex-start; gap: 2px;
  padding: 12px; border-radius: var(--radius-md); text-decoration: none;
  transition: background var(--dur) var(--ease);
}
.wf-menu li a:hover, .wf-menu li a.active { background: var(--surface-sunken); }
.wf-menu-role { order: -1; font-size: 11px; }
.wf-menu-name { font-size: 15px; font-weight: 600; line-height: 1.35; letter-spacing: -0.01em; color: var(--ink); }
.wf-menu-desc { font-size: var(--fs-caption); line-height: 1.45; color: var(--ink-muted); }
/* The platform is the parent of the three products: set it apart above them */
.wf-menu-platform { margin-bottom: var(--space-1); padding-bottom: var(--space-1); border-bottom: 1px solid var(--line); }

/* Compact header: menu button + CTA; the nav opens as a sheet under the bar */
.wf-compact-bar { display: flex; gap: var(--space-3); align-items: center; }
.wf-burger {
  display: none; align-items: center; justify-content: center; width: 40px; height: 40px; padding: 0;
  color: var(--ink); background: transparent; border: 1px solid var(--line); border-radius: var(--radius-md);
  font: inherit; cursor: pointer;
}
.wf-burger:hover, .wf-burger[aria-expanded='true'] { background: var(--surface-sunken); }
.wf-sr { position: absolute; width: 1px; height: 1px; overflow: hidden; clip-path: inset(50%); white-space: nowrap; }
.wf-compact .wf-burger { display: inline-flex; }
.wf-compact .wf-navbar { display: none; }
.wf-compact.wf-nav-open .wf-navbar {
  display: flex; flex-direction: column; align-items: stretch; gap: var(--space-2); white-space: normal;
  position: absolute; top: 100%; left: 0; right: 0;
  padding: var(--space-3) var(--page-x) var(--space-6);
  background: var(--surface); border-bottom: 1px solid var(--line); box-shadow: var(--shadow-md);
}
.wf-compact .wf-navbar nav { flex-direction: column; align-items: stretch; gap: 2px; }
.wf-compact .wf-navbar nav > a, .wf-compact .wf-menu > button {
  width: 100%; justify-content: space-between; padding: 12px; font-size: var(--fs-body); color: var(--ink);
}
.wf-compact .wf-menu { flex-direction: column; }
.wf-compact .wf-menu ul {
  position: static; transform: none; width: auto; margin: 0; padding: 0 0 var(--space-2) var(--space-3);
  border: 0; box-shadow: none; background: transparent;
}
.wf-compact .wf-menu ul::before { display: none; }
.wf-compact .wf-header-actions { flex-direction: column; align-items: stretch; gap: 0; padding-top: var(--space-2); border-top: 1px solid var(--line); }
.wf-compact .wf-client-login { padding: 12px; font-size: var(--fs-body-sm); }
.wf-compact .wf-navbar .wf-demo-slot { display: none; }

/* Footer: the one full-bleed night band */
.wf-site-footer {
  padding: var(--space-16) var(--page-x) var(--space-8);
  background: var(--night); color: var(--on-night-muted); font-size: var(--fs-body-sm);
  display: flex; flex-direction: column; gap: var(--space-8);
}
.wf-footer-top { display: flex; flex-wrap: wrap; gap: var(--space-12); padding-bottom: var(--space-8); border-bottom: 1px solid rgba(255, 255, 255, 0.12); }
.wf-footer-mark { flex: 1 1 200px; }
.wf-footer-mark img { width: 120px; height: auto; display: block; }
.wf-footer-social { list-style: none; margin: var(--space-6) 0 0; padding: 0; display: flex; flex-direction: column; gap: 10px; }
.wf-footer-social a { display: inline-flex; align-items: center; gap: 8px; }
.wf-footer-social svg { width: 16px; height: 16px; flex: none; }
.wf-site-footer nav { flex: 3 1 560px; display: grid; grid-template-columns: repeat(auto-fit, minmax(170px, 1fr)); gap: var(--space-8); }
.wf-site-footer nav div { display: flex; flex-direction: column; gap: 10px; }
.wf-site-footer a { color: var(--on-night); text-decoration: none; }
.wf-site-footer a:hover { color: var(--accent); }
.wf-site-footer :focus-visible { outline-color: var(--accent); }
.wf-footer-heading { color: var(--accent); margin: 0 0 var(--space-1); }
.wf-lock { display: inline-flex; gap: 6px; align-items: center; }
.wf-lock svg { width: 10px; height: 12px; }
.wf-site-footer address { font-style: normal; line-height: 1.6; }
.wf-site-footer address strong { color: var(--on-night); font-weight: 600; }
.wf-site-footer p { margin: 0; font-size: var(--fs-caption); }

.wf-buttons { display: flex; flex-wrap: wrap; gap: var(--space-3); }
.wf-buttons > p { display: contents; }
.wf-button {
  display: inline-flex; align-items: center; justify-content: center; gap: var(--space-2); min-height: 44px; padding: 0 20px;
  border-radius: var(--radius-md); border: 1px solid transparent;
  font: inherit; font-size: var(--fs-body); font-weight: 500; line-height: 1; letter-spacing: -0.005em;
  text-decoration: none; cursor: pointer; white-space: nowrap;
  transition: background var(--dur) var(--ease), border-color var(--dur) var(--ease), color var(--dur) var(--ease);
}
.wf-button:active { transform: translateY(1px); }
.wf-button-primary, .wf-button-primary:hover { color: var(--on-brand); }
.wf-button-primary { background: var(--brand); }
.wf-button-primary:hover { background: var(--brand-hover); }
.wf-button-secondary, .wf-button-pdf { background: var(--surface); color: var(--ink); border-color: var(--line-strong); }
.wf-button-secondary:hover, .wf-button-pdf:hover { background: var(--surface-sunken); color: var(--ink); border-color: var(--ink); }
.wf-button-pdf::before { content: ''; width: 12px; height: 14px; background: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 12 14'%3E%3Cpath d='M6 1v8M2.5 6L6 9.5 9.5 6M1 13h10' fill='none' stroke='%231868b0' stroke-width='1.5' stroke-linecap='round' stroke-linejoin='round'/%3E%3C/svg%3E") no-repeat center / contain; }
.wf-button[disabled] { opacity: 0.5; cursor: not-allowed; }

@media (max-width: 1000px) {
  .wf-cards { grid-template-columns: repeat(min(var(--cols, 3), 2), minmax(0, 1fr)); }
}
@media (max-width: 760px) {
  :root { --section-gap: var(--space-12); --page-x: 20px; }
  .wf-cards, .wf-calculator { grid-template-columns: 1fr; }
  .wf-cards, .wf-steps ol { gap: var(--space-4); }
  .wf-cards-night { gap: var(--space-3); padding: var(--space-3); border-radius: var(--radius-lg); }
  :root { --header-h: 64px; }
  .wf-logo img { width: 91px; }
  .wf-hero { padding-top: var(--space-12); padding-bottom: var(--space-12); }
  .wf-stats { grid-template-columns: 1fr; padding: var(--space-8) var(--space-6); }
  .wf-stats > .wf-stat { padding: var(--space-6) 0; border-left: 0; }
  .wf-stats > .wf-stat:nth-of-type(n) { padding-block: var(--space-6); border-top: 1px solid var(--line-strong); }
  .wf-stats > .wf-stat:first-of-type { border-top: 0; padding-top: 0; }
  .wf-stats > .wf-stat:last-of-type { padding-bottom: 0; }
  .wf-hero + .wf-stats { padding: var(--space-8) var(--page-x); }
  .wf-cta { padding: var(--space-12) var(--space-6); border-radius: var(--radius-lg); }
  .wf-card-product, .wf-form, .wf-calculator, .wf-quote { padding: var(--space-6); }
}

.wf-link-button { font: inherit; color: inherit; background: none; border: 0; padding: 0; text-decoration: underline; cursor: pointer; }
body,body h1,body h2,body h3,body h4,body h5,body .postmeta {font-family:var(--font-sans);color:var(--ink)}
body {font-size:16px;line-height:1.6;background:var(--bg)}
body #wrapper.container {width:100%;max-width:none;padding:0;background:var(--bg)}
body .contentclass {background:var(--bg);padding:40px 0 64px}
body .contentclass .container {max-width:1136px;width:calc(100% - 40px)}
body .page-header {border-color:var(--line);margin-top:0;padding-bottom:24px}
body .page-header h1 {font-size:var(--fs-h1);line-height:1.1;color:var(--ink)}
body .postlist article {background:var(--surface);border:1px solid var(--line);border-radius:16px;margin-bottom:24px;overflow:hidden}
body .postlist article h2 {font-size:clamp(24px,3vw,32px);line-height:1.2}
body .postlist article .postcontent {padding:24px}
body .postmeta,body .posttags,body .subhead,body .postdate {color:var(--ink-muted)}
body .postdate {background:var(--surface-sunken);border-radius:6px}
body a {color:var(--brand)}
body .wf-site-header a,body .wf-site-footer a {text-decoration:none}
body .wf-site-footer a {color:var(--on-night)}
body .wf-navbar nav>a,body .wf-client-login {color:var(--ink-muted)}
body .wf-navbar nav>a.active {color:var(--ink)}
body .wf-button-primary {color:var(--on-brand)}
.wf-site-header {font-family:var(--font-sans);line-height:1.6}
.wf-site-header ul[hidden] {display:none!important}
.wf-site-header li {list-style:none}
.wf-compact-bar {display:none}
.wf-compact .wf-compact-bar {display:flex}
.wf-nav-open .wf-navbar {max-height:calc(100dvh - var(--header-h));overflow:auto}
.admin-bar .wf-site-header {top:32px}
.wf-site-footer p,.wf-site-footer address {color:var(--on-night-muted)}
@media(max-width:782px){.admin-bar .wf-site-header{top:46px}}
@media(max-width:600px){.admin-bar .wf-site-header{top:0}}
@media(max-width:380px){.wf-site-header{gap:8px}.wf-compact-bar{gap:6px}.wf-demo-slot .wf-button{padding:0 10px;font-size:12px}}
/* Override Virtue's fixed text colours on theme-owned content only. */
body .postlist .entry-content, body .postlist .entry-content p {color:var(--ink);font-family:var(--font-sans);font-size:16px;line-height:1.65}
body.single .entry-content {color:var(--ink);font-family:var(--font-sans);font-size:16px;line-height:1.7}
body.single .entry-content > p,body.single .entry-content > ul,body.single .entry-content > ol {color:var(--ink)}
body .postmeta a,body .posttags a,body .subhead a {color:var(--ink-muted)}
body .postlist .postcontent {color:var(--ink)}
body .wp-pagenavi a,body .wp-pagenavi span {background:var(--surface);color:var(--ink);border-color:var(--line)}
body .wp-pagenavi .current {background:var(--brand);color:var(--on-brand)}
.wf-menu-role {font-family:var(--font-mono);text-transform:uppercase;letter-spacing:.06em;color:var(--ink-muted)}
.wf-menu-platform {margin-bottom:4px;padding-bottom:4px;border-bottom:1px solid var(--line)}
body .sidebar,body .sidebar a,body .sidebar label,body .widget,body .widget a,body #comments,body #comments p,body .comment-form label {color:var(--ink-muted)}
body .sidebar h3,body .widget h3,body #comments h3 {color:var(--ink)}
body input[type=text],body input[type=email],body input[type=url],body input[type=search],body textarea {background:var(--surface);color:var(--ink);border:1px solid var(--line-strong);border-radius:6px}
body .postlist article h2,body .page-header h1 {font-weight:500}
body #respond p,body #respond .comment-notes {color:var(--ink-muted)}
body #respond input[type=submit],body .searchform input[type=submit],body .searchform button {background:var(--brand);color:var(--on-brand);border:0;border-radius:10px;padding:12px 18px}
