/* OpenCore marketing sites — shared design layer.
   Apple-inspired commercial style: calm, premium, spacious, product-focused.
   The UI is almost entirely black / white / greyscale; colour lives in photos and
   product imagery, not in the surrounding chrome. A single calm blue accent appears
   only on text links, small active states, and secondary CTAs.

   All values come from the design-token profile in tokens.css (imported below).
   This stylesheet references SEMANTIC tokens only — never raw primitives — so the
   whole look can be re-skinned by swapping the profile. Zero build: plain CSS.

   ONE LAYER FOR EVERY WEBSITE (decided 2026-09-26): the brand sites link this file as is, and
   MonniHub's public site and brand hubs (oc-monnihub/src/site/site.css) import it too — its
   build scopes every rule here under its `.site` root so the back office behind the login is
   untouched (oc-monnihub/vite.config.ts). So a component here is THE component: the header,
   nav, language pulldown, buttons, hero, cards, trust band, tiers, compare table, counter and
   footer exist once, and MonniHub adds only its own pages' layouts on top. A rule that both
   need lands here, never in site.css.

   The tenant websites (@oc/site-kit, see tokens.css) are the third consumer: the kit's
   stylesheet is tokens.css + this file (vendored at build, comments stripped) + the few rules
   only a tenant site needs (its forms, opening hours, the brand colour section backgrounds) +
   the owner's theme as token overrides. Its markup uses these class names, so a component here
   is also the tenant sites' component; a variant only they need (.tiers.one, links in the
   language list) still lives here, with the component. */

@import url("tokens.css?v=2237864f55");

*, *::before, *::after { box-sizing: border-box; }
html { scroll-behavior: smooth; -webkit-text-size-adjust: 100%; }
body {
  margin: 0;
  font-family: var(--font-sans);
  color: var(--ink);
  background: var(--bg);
  font-size: var(--fs-body);
  line-height: var(--lh-body);
  letter-spacing: var(--ls-body);
  font-synthesis: none;
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
}
.wrap { max-width: var(--max); margin: 0 auto; padding: 0 var(--pad-x); width: 100%; }
section { padding: var(--section-y) 0; }

/* Typography — large, confident, restrained. Few sizes, strong hierarchy. */
h1, h2, h3 { margin: 0 0 0.4em; font-weight: var(--fw-semibold); letter-spacing: var(--ls-tight); color: var(--ink); }
h1 { font-size: var(--fs-hero); line-height: var(--lh-tight); font-weight: var(--fw-bold); }
h2 { font-size: var(--fs-h2); line-height: var(--lh-heading); }
h3 { font-size: var(--fs-h3); line-height: 1.2; }
p { margin: 0 0 1em; color: var(--muted); line-height: var(--lh-body); }
.lead { font-size: var(--fs-lead); line-height: var(--lh-snug); color: var(--muted); max-width: 42ch; }
a { color: var(--accent); text-decoration: none; }
a:hover { color: var(--accent-dark); text-decoration: underline; }

/* Centred editorial section headings — the title (and its lead) sit centred above the
   content below. Grids, tables, tiers, cards and the guide article keep their own flow. */
section > .wrap > h2 { text-align: center; max-width: 20ch; margin-left: auto; margin-right: auto; }
section > .wrap > h2 + .lead { text-align: center; margin-left: auto; margin-right: auto; }
/* An explicitly centred block (a hero, a closing call): its headings, lead, legend and buttons
   centre too; a grid or table inside sets text-align left on itself. */
.center { text-align: center; }
.center h1, .center h2, .center .lead { margin-left: auto; margin-right: auto; }
.center h2 { max-width: 22ch; }
.center .btn-row, .center .compare-legend { justify-content: center; }

/* header + nav + language toggle — quiet and minimal. */
.site-header {
  position: sticky; top: 0; z-index: 20;
  background: var(--glass);
  backdrop-filter: saturate(180%) blur(20px);
  -webkit-backdrop-filter: saturate(180%) blur(20px);
  border-bottom: var(--bw) solid var(--border-soft);
}
.site-header .wrap { display: flex; align-items: center; gap: var(--sp-md); height: 56px; position: relative; }
.brand { font-weight: var(--fw-semibold); font-size: 1.15rem; letter-spacing: var(--ls-tight); text-decoration: none; color: var(--ink); white-space: nowrap; }
.brand:hover { text-decoration: none; color: var(--ink); }
.brand .dot { color: var(--muted); }
.brand img { height: 38px; width: auto; display: block; }   /* SVG wordmark logo (e.g. motivee) */
.nav { display: flex; gap: 26px; margin-left: auto; align-items: center; }
/* A nav item is a link, or a button that opens a menu (.navlink: a bare button first, then the
   same look as the links). */
.nav .navlink { background: none; border: 0; font: inherit; cursor: pointer; padding: 0; }
.nav a, .nav .navlink { color: var(--ink); text-decoration: none; font-size: var(--fs-nav); font-weight: var(--fw-regular); opacity: 0.9; }
.nav a:hover, .nav .navlink:hover { color: var(--ink); opacity: 1; text-decoration: none; }
.nav .navlink[aria-expanded="true"] { border-bottom: 2px solid var(--ink); }
/* keep button colours inside the nav (otherwise `.nav a` would darken the pill's white label) */
.nav a.btn-primary { color: var(--btn-primary-fg); opacity: 1; }
.nav a.btn-ghost { color: var(--accent); opacity: 1; }
/* The language selector: always a pulldown (EN ▾ opens EN · FI; user decision 2026-09-26). */
.lang { position: relative; display: flex; align-items: center; }
.lang .lang-current {
  display: inline-flex; align-items: center; cursor: pointer; font: inherit;
  font-size: var(--fs-caption); font-weight: var(--fw-semibold); letter-spacing: 0.04em;
  color: var(--ink); border: var(--bw) solid var(--border); border-radius: 8px;
  /* the pulldown caret, placed like the coaching app's pulldowns (tokens.css) */
  padding: 6px 28px 6px 10px; background: var(--icon-caret-down) no-repeat right 8px center;
}
.lang .lang-list {
  display: none; position: absolute; top: calc(100% + 8px); right: 0; z-index: 30;
  flex-direction: column; align-items: stretch; gap: 2px;
  background: var(--bg); border: var(--bw) solid var(--border); border-radius: 12px;
  box-shadow: var(--sh-pop); padding: 6px; min-width: 96px;
}
.lang.open .lang-list { display: flex; }
/* An entry is a button (the sites and MonniHub switch the language in place) or a link (a tenant
   site is one static page per language, so its entries lead to the same page in the other one). */
.lang .lang-list button, .lang .lang-list a {
  border: 0; background: none; cursor: pointer; font: inherit; font-size: 0.85rem; letter-spacing: 0.04em;
  color: var(--muted); padding: 8px 12px; text-align: left; border-radius: 6px; text-decoration: none;
}
.lang .lang-list button:hover, .lang .lang-list a:hover { background: var(--surface); color: var(--ink); text-decoration: none; }
.lang .lang-list button.active, .lang .lang-list a.active { background: var(--surface-2); color: var(--ink); font-weight: var(--fw-semibold); }

/* hamburger toggle for the main menu — hidden until the menu collapses */
.nav-toggle { display: none; flex-direction: column; gap: 4px; border: 0; background: none; cursor: pointer; padding: 8px; }
.nav-toggle span { display: block; width: 22px; height: 1.5px; background: var(--ink); border-radius: 2px; transition: transform var(--dur), opacity var(--dur); }
.nav-toggle[aria-expanded="true"] span:nth-child(1) { transform: translateY(6px) rotate(45deg); }
.nav-toggle[aria-expanded="true"] span:nth-child(2) { opacity: 0; }
.nav-toggle[aria-expanded="true"] span:nth-child(3) { transform: translateY(-6px) rotate(-45deg); }

/* buttons — primary is a solid pill (filled per the --btn-primary-* roles: ink on the brand
   sites, the accent on MonniHub); outline is the same pill drawn in the accent; ghost is a calm
   blue text link. */
.btn {
  display: inline-block; text-decoration: none; cursor: pointer; font: inherit; font-weight: var(--fw-regular);
  font-size: 1rem; line-height: 1; padding: 13px 24px; border-radius: var(--btn-radius); border: var(--bw) solid transparent;
  white-space: nowrap;
  transition: background var(--dur) var(--ease), color var(--dur) var(--ease), opacity var(--dur) var(--ease);
}
.btn:hover { text-decoration: none; }
.btn-primary { background: var(--btn-primary-bg); color: var(--btn-primary-fg); border-color: var(--btn-primary-bg); }
.btn-primary:hover { background: var(--btn-primary-bg-hover); color: var(--btn-primary-fg); border-color: var(--btn-primary-bg-hover); }
.btn-outline { background: transparent; color: var(--accent); border-color: var(--accent); }
.btn-outline:hover { background: var(--accent); color: var(--on-accent); }
.btn-ghost { background: transparent; color: var(--accent); border: 0; padding: 13px 6px; }
.btn-ghost:hover { color: var(--accent-dark); background: transparent; text-decoration: underline; }
.btn-sm { padding: 9px 16px; font-size: var(--fs-small); }
.btn-row { display: flex; gap: var(--sp-md); flex-wrap: wrap; align-items: center; margin-top: 28px; }

/* hero — centred, spacious, image-led. White by default (a calm canvas). */
.hero { background: var(--bg); padding-top: clamp(56px, 8vw, 96px); }
/* Every eyebrow wears the SUBHEADER text style (tokens.css), in sentence case. */
.eyebrow { display: block; color: var(--subheader-color); font-weight: var(--subheader-weight); font-size: var(--subheader-size); margin-bottom: var(--sp-sm); }
.hero-grid { display: flex; flex-direction: column; align-items: center; text-align: center; }
.hero-grid > div:first-child { max-width: 800px; }
.hero-grid h1 { margin-bottom: 0.25em; }
.hero-grid .lead { max-width: 36ch; margin: 0 auto; }
.hero-grid .btn-row { justify-content: center; margin-top: var(--sp-md); }
/* the picture under the hero copy: a placeholder panel, or a media box (an image, an illustration) */
.hero-grid .placeholder, .hero-grid .hero-media { width: 100%; max-width: 980px; margin: var(--sp-xl) auto 0; }
.hero-grid .placeholder { min-height: 420px; }

/* placeholder — a calm light-grey product panel until real imagery lands. */
.placeholder {
  border: 0; border-radius: var(--radius-media); background: var(--surface);
  color: var(--muted); padding: var(--sp-lg); font-size: var(--fs-small); min-height: 280px;
  display: flex; align-items: center; justify-content: center; text-align: center;
}

/* alternating section bg */
.alt { background: var(--surface); }

/* "what is this" intro — a clear, brief definition of the product, right under the hero. */
.intro { padding: clamp(40px, 6vw, 72px) 0; text-align: center; }
.intro-text { max-width: 640px; margin: 0 auto; font-size: clamp(1.2rem, 2.3vw, 1.55rem); line-height: 1.5; color: var(--ink); letter-spacing: -0.01em; }

/* feature grid */
.grid { display: grid; gap: var(--sp-md); margin-top: var(--sp-xl); }
.grid-4 { grid-template-columns: repeat(4, minmax(0, 1fr)); }
.grid-3 { grid-template-columns: repeat(3, minmax(0, 1fr)); }
.grid-2 { grid-template-columns: repeat(2, minmax(0, 1fr)); }
.card {
  background: var(--surface); border: 0; border-radius: var(--radius);
  padding: var(--sp-lg); box-shadow: var(--shadow);
  display: flex; flex-direction: column; justify-content: center; /* centre content vertically */
  text-align: center;                                              /* centre content horizontally */
  color: var(--ink); text-decoration: none;                        /* a card may be the link itself */
}
.card:hover { text-decoration: none; }
a.card:hover { background: var(--surface-2); }
.alt .card { background: var(--bg); }    /* keep cards visible on grey sections */
.alt a.card:hover { background: var(--bg); box-shadow: var(--sh-lift); }
.card h3 { margin-bottom: 0.35em; }
.card p { margin: 0; font-size: 1rem; color: var(--muted); }
/* Descriptive card icons are removed site-wide — each box is just a bold title + body text. */
.icon { display: none; }

/* trust band — a deliberate dark contrast section. */
.trust { background: var(--dark); color: var(--on-dark); }
.trust h2, .trust h3 { color: var(--on-dark-strong); }
.trust p { color: var(--on-dark-muted); }
.trust .lead { color: var(--on-dark-muted); }
.trust a:not(.btn) { color: var(--on-dark-link); }
.trust .card { background: var(--on-dark-surface); box-shadow: none; }
.trust .card h3 { color: var(--on-dark-strong); }
.trust .card p { color: var(--on-dark-muted); }
.trust .icon { color: var(--on-dark); opacity: 0.9; }
.trust .btn-outline { color: var(--on-dark-strong); border-color: var(--on-dark-line); }
.trust .btn-outline:hover { background: var(--accent); border-color: var(--accent); color: var(--on-accent); }

/* pricing — the tier cards (MonniHub's business and pricing pages; no brand site carries a price
   list): hairline surfaces, the popular tier ringed in the accent, the button at the foot. */
.tiers { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: var(--sp-md); align-items: stretch; margin-top: var(--sp-xl); }
.tiers.four { grid-template-columns: repeat(4, minmax(0, 1fr)); }
/* a tenant site sells as many tiers as the business has: one alone sits centred, two side by side */
.tiers.one { grid-template-columns: minmax(0, 420px); justify-content: center; }
.tiers.two { grid-template-columns: repeat(2, minmax(0, 1fr)); }
.tier { background: var(--bg); border: var(--bw) solid var(--border-soft); border-radius: var(--radius); padding: var(--sp-lg); display: flex; flex-direction: column; gap: 10px; }
.tier.popular { border: 2px solid var(--accent); }
.tier .price { font-size: 1.8rem; font-weight: var(--fw-bold); color: var(--ink); letter-spacing: var(--ls-tight); }
.tier .price small { font-size: var(--fs-small); font-weight: var(--fw-regular); color: var(--muted); }
.tier ul { margin: 6px 0 12px; padding-left: 18px; color: var(--muted); font-size: var(--fs-small); line-height: 1.6; }
.tier .btn { margin-top: auto; text-align: center; }
.badge { display: inline-block; background: var(--surface-2); color: var(--ink); font-size: var(--fs-caption); font-weight: var(--fw-semibold); padding: 4px 12px; border-radius: var(--r-pill); }

/* testimonials */
.quote { background: var(--surface); border: 0; border-radius: var(--radius); padding: var(--sp-lg); box-shadow: var(--shadow); }
.alt .quote { background: var(--bg); }
.quote blockquote { margin: 0 0 16px; font-size: 1.15rem; line-height: var(--lh-snug); color: var(--ink); letter-spacing: -0.01em; }
.quote .who { display: flex; align-items: center; gap: 12px; }
.quote .avatar { width: 40px; height: 40px; border-radius: 50%; background: var(--surface-2); display: flex; align-items: center; justify-content: center; font-weight: var(--fw-semibold); color: var(--muted); }
.quote .who span { font-size: var(--fs-small); color: var(--muted); }

/* footer — quiet, hairline top. */
.site-footer { background: var(--surface); border-top: var(--bw) solid var(--border-soft); padding: var(--sp-xl) 0; }
.site-footer .wrap { display: flex; flex-wrap: wrap; gap: var(--pad-x); justify-content: space-between; }
.site-footer a { color: var(--muted); text-decoration: none; display: block; padding: 3px 0; font-size: 0.9rem; }
.site-footer a:hover { color: var(--ink); text-decoration: none; }
.site-footer h4 { font-size: var(--subheader-size); font-weight: var(--subheader-weight); color: var(--subheader-color); margin: 0 0 10px; }
.copyright { color: var(--muted); font-size: 0.84rem; margin-top: var(--pad-x); }
/* the footer's one line of small print: the legal line and the rights (MonniHub, under its four
   columns), or the copyright, the legal pages and the "Made with" line (a tenant site) */
.site-footer .legal { flex: 1 1 100%; margin-top: 8px; color: var(--muted); font-size: var(--fs-caption); display: flex; gap: 16px; flex-wrap: wrap; }
.site-footer .legal a { display: inline; padding: 0; font-size: inherit; }
/* small-print footnote (e.g. the "*" on a pricing claim) — a quiet paragraph at the page foot. */
.footnote { color: var(--muted); font-size: var(--fs-caption); line-height: 1.5; margin: 0; }

/* feature comparison table — greyscale; meaning carried by weight/shade, not hue. */
.compare-legend { display: flex; flex-wrap: wrap; gap: 20px; margin: 18px 0 8px; color: var(--muted); font-size: 0.9rem; }
.compare-legend > span { display: inline-flex; align-items: center; gap: 6px; }
.compare-scroll { overflow-x: auto; border: var(--bw) solid var(--border); border-radius: var(--radius); background: var(--bg); margin-top: 28px; }
table.compare { border-collapse: collapse; width: 100%; min-width: 720px; font-size: 0.92rem; }
table.compare th, table.compare td { padding: 13px 14px; text-align: center; border-bottom: var(--bw) solid var(--border-soft); }
table.compare thead th { position: sticky; top: 0; background: var(--surface); font-weight: var(--fw-semibold); color: var(--ink); }
table.compare tbody th { text-align: left; font-weight: var(--fw-regular); color: var(--ink); white-space: nowrap; }
table.compare tbody tr:nth-child(even) { background: var(--surface); }
table.compare .mcol { background: var(--surface-2); }
table.compare thead .mcol { background: var(--ink); color: var(--on-accent); }
table.compare tbody tr:nth-child(even) .mcol { background: var(--surface-2); }
.cy { color: var(--ink); font-weight: var(--fw-bold); }
.cp { color: var(--muted); font-weight: var(--fw-bold); }
.cn { color: var(--border); font-weight: var(--fw-bold); }

/* live user counter band */
.counter { padding: clamp(56px, 8vw, 96px) 0; text-align: center; }
.counter .wrap { display: flex; flex-direction: column; align-items: center; gap: 12px; }
.count-num { font-size: clamp(2.6rem, 7vw, 4.4rem); font-weight: var(--fw-semibold); letter-spacing: -0.03em; color: var(--ink); line-height: 1; font-variant-numeric: tabular-nums; }
.count-live { display: inline-flex; align-items: center; gap: 9px; color: var(--muted); font-size: 1rem; }
.count-dot { width: 9px; height: 9px; border-radius: 50%; background: var(--accent); animation: oc-pulse 1.8s ease-out infinite; }
@keyframes oc-pulse {
  0% { box-shadow: 0 0 0 0 rgba(var(--accent-rgb), 0.5); }
  70% { box-shadow: 0 0 0 10px rgba(var(--accent-rgb), 0); }
  100% { box-shadow: 0 0 0 0 rgba(var(--accent-rgb), 0); }
}

/* rendered markdown guide */
.guide { max-width: var(--max-text); margin: 0 auto; }
.guide h1 { font-size: clamp(2rem, 4vw, 2.6rem); }
.guide h2 { margin-top: 1.8em; font-size: 1.6rem; border-top: var(--bw) solid var(--border-soft); padding-top: 1em; }
.guide h3 { margin-top: 1.5em; color: var(--ink); }
.guide p, .guide li { color: var(--ink); line-height: 1.6; }
.guide ul, .guide ol { padding-left: 1.3em; }
.guide code { background: var(--surface); padding: 1px 6px; border-radius: 6px; font-size: 0.9em; }
.guide blockquote { border-left: 3px solid var(--border); margin: 1em 0; padding: 0.2em 1em; color: var(--muted); background: var(--surface); border-radius: 0 8px 8px 0; }
.guide blockquote.danger { border-left-color: var(--ink); background: var(--surface); color: var(--ink); }
.guide blockquote.wip { border-left-color: var(--muted); background: var(--surface); color: var(--muted); font-weight: var(--fw-medium); }
.toc { display: flex; flex-wrap: wrap; gap: 8px 18px; }
.toc a { display: inline-block; }

/* long-form article (Medium-style) — builds on the .guide reading typography. */
.article { max-width: var(--max-text); margin: 0 auto; }
.article-header { text-align: center; margin: 0 auto clamp(36px, 6vw, 60px); }
.article-eyebrow { color: var(--subheader-color); font-weight: var(--subheader-weight); font-size: var(--subheader-size); }
.article-header h1 { font-size: clamp(2.2rem, 5vw, 3.4rem); line-height: 1.08; letter-spacing: var(--ls-tight); margin: var(--sp-sm) 0 0.45em; }
.article-dek { font-size: var(--fs-lead); line-height: var(--lh-snug); color: var(--muted); max-width: 40ch; margin: 0 auto; }
.article-meta { display: flex; flex-wrap: wrap; justify-content: center; align-items: center; margin-top: var(--sp-md); color: var(--muted); font-size: var(--fs-small); }
.article-meta span:not(:first-child)::before { content: "·"; margin: 0 10px; color: var(--border); }
.article-hero { width: 100%; min-height: 360px; margin: 0 0 clamp(40px, 7vw, 72px); }
/* generous reading column; first paragraph reads as a lead-in. */
.article-body { font-size: 1.18rem; line-height: 1.65; }
.article-body > p:first-of-type { font-size: 1.32rem; line-height: 1.5; color: var(--ink); }
/* pull quotes become large, centred, borderless statements (banners are left alone). */
.article-body blockquote:not(.wip):not(.danger) {
  border: 0; background: none; border-radius: 0; padding: 0; margin: clamp(36px, 6vw, 56px) auto; max-width: 26ch;
  text-align: center; font-size: clamp(1.5rem, 3.2vw, 2rem); line-height: 1.22; letter-spacing: var(--ls-tight);
  color: var(--ink); font-weight: var(--fw-semibold);
}

/* Stage 0 — the four-across grids halve on a small laptop / a tablet. */
@media (max-width: 960px) {
  .grid-4, .tiers.four { grid-template-columns: repeat(2, minmax(0, 1fr)); }
}

/* Stage 1 — stack multi-column grids on narrow viewports. */
@media (max-width: 820px) {
  .hero-grid, .grid-3, .grid-2, .tiers, .tiers.two { grid-template-columns: 1fr; }
  .hero-grid { display: flex; }
  .grid-3, .grid-2 { display: grid; }
  .hero-grid .placeholder { min-height: 300px; }
}

/* Stage 2 — phone width: the MAIN MENU collapses to a hamburger pulldown (language stays its own
   pulldown). 760px, so MonniHub's longer menu (seven items and two buttons) never wraps in the bar. */
@media (max-width: 760px) {
  section { padding: var(--sp-section-mobile) 0; }
  .grid-4, .tiers.four { grid-template-columns: 1fr; }
  .nav-toggle { display: inline-flex; margin-left: auto; } /* push the right-side group over once .nav is out of flow */
  .nav {
    display: none; position: absolute; top: 100%; left: 0; right: 0; z-index: 25;
    flex-direction: column; align-items: stretch; gap: 0; margin: 0;
    background: var(--bg); border-bottom: var(--bw) solid var(--border); box-shadow: var(--sh-nav);
    padding: 8px var(--pad-x) 16px;
  }
  .nav.open { display: flex; }
  .nav a, .nav .navlink { padding: 14px 2px; border-bottom: var(--bw) solid var(--border-soft); opacity: 1; text-align: left; }
  .nav .navlink[aria-expanded="true"] { border-bottom: var(--bw) solid var(--border-soft); }
  .nav a.btn { margin-top: 12px; text-align: center; border-bottom: 0; }
  .btn-row { gap: 18px; }
}
