/*
 * Topfloor — brand sheet. Loaded after application.css and sites.css on Topfloor hosts only.
 * Tokens and colours from the Topfloor.ie redesign canvas: the orange-to-amber of the logo's
 * bars on warm off-white, near-black ink, Open Sans headings. Topfloor is the company site,
 * so Blockman and Letman appear here in their product colours.
 */

/* Open Sans (SIL OFL), self-hosted for the same consent reason as the other brand fonts. */
@font-face {
  font-family: "Open Sans";
  src: url("/assets/OpenSans-Variable-7177765c.woff2") format("woff2");
  font-weight: 300 800;
  font-style: normal;
  font-display: swap;
}

:root {
  --orange: #f4771d;
  --amber: #feb415;
  --gradient: linear-gradient(100deg, var(--orange), var(--amber));
  --product-blockman: #1b5e9e;
  --product-letman: #1e7a46;

  /* Text-safe orange: #F4771D on white is under 3:1, this passes 4.5:1. */
  --brand: #b4500f;
  --brand-tint: #fdeee2;
  --accent: var(--amber);
  --ink-dark: #1f1a17;
  --text: #1f1a17;
  --text-muted: #5a4f48;
  --line: #efe7e0;
  --line-strong: #d9cec4;

  --color-primary: var(--ink-dark);
  --color-primary-dark: var(--ink-dark);
  --color-action: var(--brand);
  --color-action-dark: var(--ink-dark);
  --color-ink: var(--text);
  --color-accent: var(--orange);
  --color-surface: #fbf7f3;
  --color-border: var(--line);
  --color-muted: var(--text-muted);
  --link-color: var(--brand);
  --link-hover-color: var(--ink-dark);
  --heading-color: var(--text);
  --font-heading: "Open Sans", var(--font-sans);
  --font-weight-heading: 800;

  --radius-card: 1.6rem;
  --radius-panel: 2.4rem;
  --radius-button: 1rem;

  --header-height: 8.1rem;
  --logo-height: 3.6rem;   /* wordmark incl. the p descender: about 14rem wide */
  --wordmark-color: var(--ink-dark);
  --footer-logo-height: 4rem;
  --footer-nav-columns: 3;

  --hero-bg: var(--gradient);
  --hero-bg-solid: var(--orange);
  --hero-text: var(--ink-dark);
  --hero-muted: var(--ink-dark);
  --hero-badge-bg: rgba(255, 255, 255, .4);
  --hero-tab-border: rgba(31, 26, 23, .5);

  --cta-bg: var(--gradient);
  --cta-text: var(--ink-dark);
  --cta-muted: var(--ink-dark);

  --avatar-bg: var(--gradient);
  --avatar-text: var(--ink-dark);
}
@media (max-width: 47.99em) {
  :root { --header-height: 6.4rem; --logo-height: 3rem; --footer-logo-height: 3.6rem; }
}

h1, h2 { letter-spacing: -0.03em; }
h3 { font-family: var(--font-sans); font-weight: 700; letter-spacing: 0; }
.eyebrow { color: var(--brand); font-weight: 600; letter-spacing: .07em; }

/* Buttons: squared, ink-filled — the darker half of the brand. */
.button--primary { background: var(--ink-dark); border-color: var(--ink-dark); }
.button--primary:hover, .button--primary:focus-visible { background: var(--brand); border-color: var(--brand); }
.button--outline { border-width: 1.5px; border-color: var(--ink-dark); color: var(--ink-dark); }
.button--gradient { background: var(--gradient); border: 0; color: var(--ink-dark); }
.button--gradient:hover, .button--gradient:focus-visible { background: var(--ink-dark); color: var(--white); }

/* Header: white with a hairline, never transparent — the hero is a light gradient that
   would make white links unreadable. Overrides Blockman's transparent-until-scrolled header. */
.site-header, .site-header[data-scrolled="true"], .no-js .site-header {
  background: var(--white); color: var(--text); border-bottom: 1px solid var(--line); box-shadow: none;
}
.site-header[data-scrolled="true"] { box-shadow: 0 .4rem 1.6rem rgba(31, 26, 23, .06); }
.site-nav__link { color: var(--text); font-weight: 500; }
.site-nav__link:hover, .site-nav__link[aria-current="page"] { color: var(--text); border-bottom-color: var(--orange); }
.site-nav__toggle { color: var(--text); border-radius: 1rem; background: var(--color-surface); width: 4.4rem; height: 4.4rem; align-items: center; justify-content: center; }
/* nowrap: "Request a demo" is longer than the "Book a demo" it replaced and broke onto two
   lines beside the logo at phone width. */
.site-header__cta { border-radius: .8rem; white-space: nowrap; }
.site-header__logo { flex: none; }   /* never squash the wordmark to make room for the button */
@media (max-width: 25em) { .site-header__cta { padding-inline: 1.2rem; font-size: 1.4rem; } }
/* Below ~368px logo, button and toggle cannot share one row; the drawer and the hero both
   still offer "Request a demo". */
@media (max-width: 23em) { .site-header__actions .site-header__cta { display: none; } }
.site-nav__cta .button { border-radius: .8rem; }

/* "Products" menu: a drop-down on wide screens, an indented list inside the phone drawer.
   CSS only (:hover / :focus-within), and the parent link goes to the products section, so
   it works without JavaScript. */
.site-nav__item--menu { position: relative; }
.site-nav__link--menu { display: inline-flex; align-items: center; gap: .6rem; }
.site-nav__link--menu svg { width: 1.4rem; height: 1.4rem; }
.site-nav__submenu { list-style: none; padding: 0; }
.site-nav__submenu a { display: flex; align-items: center; gap: 1rem; color: var(--text); text-decoration: none; font-weight: 500; }
@media (min-width: 48em) {
  .site-nav__submenu {
    position: absolute; top: 100%; left: -1.6rem; min-width: 22rem; padding: .8rem;
    background: var(--white); border: 1px solid var(--line); border-radius: 1.2rem; box-shadow: 0 1.6rem 3.2rem rgba(31, 26, 23, .12);
    display: none;
  }
  /* Shown and hidden outright, no fade: a transition here re-runs on every relayout, and a
     menu caught mid-fade by a screenshot looks like a menu stuck open. */
  .site-nav__item--menu:hover .site-nav__submenu,
  .site-nav__item--menu:focus-within .site-nav__submenu { display: block; }
  .site-nav__submenu a { padding: 1rem 1.2rem; border-radius: .8rem; }
  .site-nav__submenu a:hover { background: var(--color-surface); }
  .site-nav__item--menu::after { content: ""; position: absolute; left: 0; right: 0; top: 100%; height: 1.2rem; }
}
@media (max-width: 47.99em) {
  .site-nav { background: var(--white); }
  .site-nav__link { color: var(--text); }
  .site-nav__link:hover, .site-nav__link:focus-visible, .site-nav__link[aria-current="page"] { background: var(--color-surface); color: var(--text); }
  .site-nav__submenu { display: grid; gap: .4rem; padding: .4rem 0 .8rem 2.4rem; }
  .site-nav__submenu a { padding: 1rem 2.4rem; font-size: var(--text-l); }
  .site-nav__link--menu svg { display: none; }
}

/* Hero: the logo's gradient with its bars, faintly, along the bottom. */
.brand-hero { color: var(--ink-dark); }
.brand-hero .bars { color: var(--white); opacity: .22; }
.brand-hero h1 { letter-spacing: -0.03em; }
.brand-hero .breadcrumb { color: var(--ink-dark); }

/* Icon tiles carry the gradient here. */
.icon-tile { background: var(--gradient); color: var(--ink-dark); border-radius: 1.2rem; width: 4.8rem; height: 4.8rem; }
.icon-tile svg { width: 2.2rem; height: 2.2rem; }
.check { background: var(--ink-dark); }

/* The two product platforms, each in its product colour. */
.platform-grid { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 2.4rem; }
@media (max-width: 60em) { .platform-grid { grid-template-columns: minmax(0, 1fr); } }
.platform-card {
  --product: var(--product-blockman);
  border: 1px solid var(--line); border-top: 6px solid var(--product); border-radius: var(--radius-card);
  padding: clamp(2.4rem, 1.6rem + 2vw, 4rem); display: flex; flex-direction: column; gap: 2rem;
}
.platform-card--letman { --product: var(--product-letman); }
.platform-card__head { display: flex; align-items: center; justify-content: space-between; gap: 1.2rem; flex-wrap: wrap; }
.platform-card__name { font-family: var(--font-heading); font-size: 3rem; font-weight: 800; color: var(--product); }
.platform-card__market { padding: .6rem 1.2rem; border-radius: 999px; background: color-mix(in srgb, var(--product) 10%, var(--white)); font-size: 1.3rem; font-weight: 600; color: var(--product); }
.platform-card h3 { font-size: 2rem; line-height: 1.4; }
.platform-card .check-list { font-size: 1.5rem; gap: 1rem; }
.platform-card .check { background: var(--product); width: 2.2rem; height: 2.2rem; }
.platform-card__portal { border-radius: 1.2rem; background: color-mix(in srgb, var(--product) 8%, var(--white)); padding: 1.8rem 2rem; display: grid; gap: .6rem; }
.platform-card__portal strong { color: var(--product); font-size: 1.5rem; }
.platform-card__portal p { font-size: 1.4rem; color: var(--text-muted); }
.platform-card .button-row { margin-top: auto; }
.button--product { background: var(--product); border-color: var(--product); color: var(--white); border-radius: .8rem; min-height: 4.4rem; padding: 0 1.8rem; }
.button--product:hover { background: var(--ink-dark); border-color: var(--ink-dark); color: var(--white); }
.button--product-outline { border: 1.5px solid var(--product); color: var(--product); border-radius: .8rem; min-height: 4.4rem; padding: 0 1.8rem; background: transparent; }
.button--product-outline:hover { background: var(--product); color: var(--white); }

/* Reasons sit on white cards on the warm surface. */
.reason-grid--cards { gap: 2.4rem; }
.reason-grid--cards .reason { background: var(--white); border-radius: var(--radius-card); padding: 3.2rem; gap: 1.4rem; }
.reason-grid--cards .reason h3 { font-size: 1.9rem; }

/* Compliance columns: a product-coloured rule over chips. */
.compliance-grid { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 2.4rem; }
@media (max-width: 60em) { .compliance-grid { grid-template-columns: minmax(0, 1fr); } }
.compliance { --product: var(--product-blockman); border-top: 4px solid var(--product); padding-top: 2rem; display: grid; gap: 1.4rem; align-content: start; }
.compliance--letman { --product: var(--product-letman); }
.compliance h3 { font-size: 1.8rem; color: var(--product); }
.compliance .chip { border-radius: .8rem; background: var(--color-surface); font-weight: 500; padding: .8rem 1.2rem; }

/* Facts as an inline row of figures. */
.fact-grid .fact__value { color: var(--brand); }

/* Our story timeline (About). */
.timeline { display: grid; gap: 2.8rem; }
.timeline__item { display: grid; grid-template-columns: 8.8rem minmax(0, 1fr); gap: 2.4rem; }
.timeline__year { font-family: var(--font-heading); font-size: 2.4rem; font-weight: 800; color: var(--brand); }
.timeline__body { border-left: 3px solid var(--orange); padding-left: 2.4rem; display: grid; gap: .6rem; }
.timeline__body--blockman { border-left-color: var(--product-blockman); }
.timeline__body h3 { font-size: 1.8rem; }
.timeline__body p { color: var(--text-muted); }
@media (max-width: 40em) { .timeline__item { grid-template-columns: minmax(0, 1fr); gap: .4rem; } }
.company-details { display: grid; gap: 1.6rem; }
.company-details dt { font-size: 1.3rem; font-weight: 600; color: var(--text-muted); }
.company-details dd { margin: .4rem 0 0; }

/* Benefit cards with an orange top rule (About, Careers). */
.perk-grid { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 2.4rem; }
@media (max-width: 60em) { .perk-grid { grid-template-columns: minmax(0, 1fr); } }
.perk { background: var(--white); border-top: 4px solid var(--orange); border-radius: var(--radius-card); padding: 3.2rem; display: grid; gap: 1.2rem; align-content: start; }
.perk h3 { font-size: 1.9rem; }
.perk p { color: var(--text-muted); font-size: 1.5rem; }

/* CTA panel on the gradient: ink buttons, as in the design. */
.cta-panel__primary { background: var(--ink-dark); border-color: var(--ink-dark); color: var(--white); }
.cta-panel__primary:hover, .cta-panel__primary:focus-visible { background: var(--white); border-color: var(--white); color: var(--ink-dark); }
.cta-panel__secondary { border: 1.5px solid var(--ink-dark); color: var(--ink-dark); }
.cta-panel__secondary:hover, .cta-panel__secondary:focus-visible { background: var(--ink-dark); color: var(--white); }
.cta-panel h2 { font-size: clamp(2.8rem, 2rem + 1.6vw, 4rem); }

/* Footer extras: product dots and the registered-company line. */
.product-dot--blockman { background: var(--product-blockman); }
.product-dot--letman { background: var(--product-letman); }
.site-footer__bottom { font-size: 1.3rem; color: rgba(255,255,255,.7); }

.cookie-banner { background: var(--ink-dark); }
/* Topfloor's primary button is ink-filled, which vanishes on the ink banner (only the word
   "Accept" showed). Use the header CTA's gradient instead, with ink text for contrast. */
.cookie-banner .button--primary { background: var(--gradient); border: 0; color: var(--ink-dark); }
.cookie-banner .button--primary:hover, .cookie-banner .button--primary:focus-visible { background: var(--white); color: var(--ink-dark); }
.legal-tabs a[aria-current="page"] { background: var(--ink-dark); color: var(--white); border-color: var(--ink-dark); }
.press-list--white .press-link { background: var(--white); }
.app-mock__meter--blockman { background: var(--product-blockman); }
.app-mock__side .product-dot { margin-right: .6rem; padding: 0; }
.brand-hero .fact-grid { margin-top: 0; }
.split__copy .fact-grid { margin-block: 3.2rem; }
