/* 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. */

@import url("tokens.css");

* { 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); }
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; }

/* header + nav + language toggle — quiet and minimal. */
.site-header {
  position: sticky; top: 0; z-index: 20;
  background: rgba(255, 255, 255, 0.8);
  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); }
.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; }
.nav a { color: var(--ink); text-decoration: none; font-size: var(--fs-nav); font-weight: var(--fw-regular); opacity: 0.9; }
.nav a:hover { color: var(--ink); opacity: 1; text-decoration: none; }
/* keep button colours inside the nav (otherwise `.nav a` would darken the pill's white label) */
.nav a.btn-primary { color: #fff; opacity: 1; }
.nav a.btn-ghost { color: var(--accent); opacity: 1; }
.lang { display: flex; gap: 2px; align-items: center; }
.lang button {
  border: 0; background: none; cursor: pointer; font: inherit; font-size: var(--fs-caption);
  color: var(--muted); padding: 4px 6px; border-radius: 6px; text-transform: uppercase; letter-spacing: 0.04em;
}
.lang button.active { color: var(--ink); font-weight: var(--fw-semibold); }
.lang button:hover { color: var(--ink); }
.lang .sep { color: var(--border); }
.lang-list { display: flex; gap: 2px; align-items: center; }
.lang-current { display: none; } /* shown only when the language selector collapses to a pulldown */

/* 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 black/white pill; secondary 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(--r-pill); border: var(--bw) solid transparent;
  transition: background var(--dur) var(--ease), color var(--dur) var(--ease), opacity var(--dur) var(--ease);
}
.btn-primary { background: var(--ink); color: #fff; border-color: var(--ink); }
.btn-primary:hover { background: var(--c-black); color: #fff; text-decoration: none; }
.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-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); }
.hero .eyebrow { color: var(--muted); font-weight: var(--fw-semibold); text-transform: uppercase; letter-spacing: var(--ls-caps); font-size: var(--fs-caption); 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: 780px; }
.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); }
.hero-grid .placeholder { width: 100%; max-width: 980px; margin: var(--sp-xl) auto 0; 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 .eyebrow { display: block; color: var(--muted); font-weight: var(--fw-semibold); text-transform: uppercase; letter-spacing: var(--ls-caps); font-size: var(--fs-caption); margin-bottom: var(--sp-sm); }
.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-3 { grid-template-columns: repeat(3, 1fr); }
.grid-2 { grid-template-columns: repeat(2, 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 */
}
.alt .card { background: var(--bg); }    /* keep cards visible on grey sections */
.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(--c-grey-100); }
.trust h2 { color: #fff; }
.trust p { color: var(--c-grey-400); }
.trust .lead { color: var(--c-grey-400); }
.trust .card { background: rgba(255, 255, 255, 0.06); box-shadow: none; }
.trust .card h3 { color: #fff; }
.trust .card p { color: var(--c-grey-400); }
.trust .icon { color: var(--c-grey-100); opacity: 0.9; }

/* pricing — greyscale, hairline surfaces, the free tier quietly emphasised. */
.tiers { display: grid; grid-template-columns: repeat(3, 1fr); gap: var(--sp-md); align-items: start; margin-top: var(--sp-xl); }
.tier { border: var(--bw) solid var(--border); border-radius: var(--radius); padding: var(--sp-lg); background: var(--bg); }
.tier.free { border-color: var(--ink); }
.tier .price { font-size: 2.1rem; font-weight: var(--fw-semibold); color: var(--ink); margin: 8px 0; letter-spacing: var(--ls-tight); }
.tier .price small { font-size: var(--fs-small); font-weight: var(--fw-regular); color: var(--muted); }
.tier ul { list-style: none; padding: 0; margin: 18px 0 0; }
.tier li { padding: 7px 0 7px 26px; position: relative; color: var(--muted); font-size: 0.97rem; }
.tier li::before { content: "✓"; position: absolute; left: 0; color: var(--ink); font-weight: var(--fw-semibold); }
.badge { display: inline-block; background: var(--surface-2); color: var(--ink); font-size: 0.72rem; font-weight: var(--fw-semibold); text-transform: uppercase; letter-spacing: 0.05em; padding: 4px 11px; 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: 0.78rem; text-transform: uppercase; letter-spacing: 0.05em; color: var(--ink); font-weight: var(--fw-semibold); margin: 0 0 8px; }
.copyright { color: var(--muted); font-size: 0.84rem; margin-top: var(--pad-x); }
/* 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: #fff; }
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(--muted); font-weight: var(--fw-semibold); text-transform: uppercase; letter-spacing: var(--ls-caps); font-size: var(--fs-caption); }
.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 1 — stack multi-column grids on narrow viewports. */
@media (max-width: 820px) {
  .hero-grid, .grid-3, .grid-2, .tiers { grid-template-columns: 1fr; }
  .hero-grid { display: flex; }
  .grid-3, .grid-2 { display: grid; }
  .hero-grid .placeholder { min-height: 300px; }
}

/* Stage 2 — narrower, but the main menu still fits: the LANGUAGE selector collapses to a pulldown. */
@media (max-width: 900px) {
  .lang { position: relative; }
  .lang .lang-current {
    display: inline-flex; align-items: center; gap: 5px; cursor: pointer; font: inherit;
    font-size: var(--fs-caption); font-weight: var(--fw-semibold); letter-spacing: 0.04em; text-transform: uppercase;
    color: var(--ink); border: var(--bw) solid var(--border); border-radius: 8px; padding: 6px 10px;
  }
  .lang .lang-current::after { content: "▾"; font-size: 0.85em; color: var(--muted); }
  .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; }
  .lang .lang-list .sep { display: none; }
  .lang .lang-list button { padding: 8px 12px; text-align: left; border-radius: 6px; font-size: 0.85rem; }
  .lang .lang-list button:hover { background: var(--surface); }
  .lang .lang-list button.active { background: var(--surface-2); color: var(--ink); }
}

/* Stage 3 — narrower still: the MAIN MENU collapses to a hamburger pulldown (language stays its own pulldown). */
@media (max-width: 640px) {
  section { padding: var(--sp-section-mobile) 0; }
  .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 { padding: 14px 2px; border-bottom: var(--bw) solid var(--border-soft); opacity: 1; }
  .nav a.btn { margin-top: 12px; text-align: center; border-bottom: 0; }
  .btn-row { gap: 18px; }
}
