/* © 2026 MEK.txt. All rights reserved. Part of the MEK design system; not licensed for reuse. */
/* MEK design system · landing: the landing page kit. Opt-in: link after mek.css; no script of its own.
   The sections a product page is made of, in the system's hand: a hero, features, pricing, questions, a call to act
   and a footer. Each is a class on a <section>; inside, the core does the rest (buttons, boxes, disclosures, tags). */

/* In the mek.landing layer (ordered by mek.css), so a project's own CSS wins over it. */
@layer mek.landing {

/* ---------- Dials ---------- */
/* on every themed area too, so a box in another theme works these out from its own colours */
:root, [data-theme] {
  --landing-width: 1040px;             /* the page's column */
  --landing-gap: var(--space-16);      /* between sections: 64px */
  --landing-cta-edge: var(--500-accent); /* the call to act's edge: the quiet accent */
  --landing-cta-title: var(--accent);  /* its heading: the accent, now the edge is quiet */
}

/* ---------- Page ----------
   <main class="landing"> stacks its sections --landing-gap apart in a column --landing-width wide. Each section's
   kicker is a .t-label in the accent, 8px over its heading, an h2 in the display face at 24 (crisp); what follows is
   32px under the heading. */
.landing { display: grid; gap: var(--landing-gap); max-width: var(--landing-width); margin: 0 auto; padding: var(--space-12) 16px; }
.landing section { display: grid; gap: var(--space-8); }   /* 32px between the heading and what follows */
.landing section > .kicker { margin-bottom: calc(var(--space-2) - var(--space-8)); }   /* 8px over its heading */
.landing .kicker { color: var(--accent); }
.landing h2 { margin: 0; font: var(--text-lg)/var(--leading-display) var(--font-display); color: var(--text-strong); }   /* the display leading: room for the tall face's descenders */

/* ---------- Hero ----------
   <section class="hero">: a kicker, the title (.hero-title: the display face at 48, 36 on phones, 32px over the lede), a lede
   (18, 900, 56 characters at most) and .cluster of buttons, the primary first. .hero-art beside it (a picture, a board,
   a sample) takes the right half from the tablet breakpoint up, and goes under the words below it. */
.hero { grid-template-columns: minmax(0, 1fr); align-items: center; gap: var(--space-8); }
.hero:has(.hero-art) { grid-template-columns: minmax(0, 1.1fr) minmax(0, 1fr); }
.hero-words { display: grid; gap: var(--space-4); justify-items: start; }
/* As .t-huge: the face's own line height (so a descender never meets the next line) and the size on its grid.
   .landing: over its h2 rule, whichever heading it is. */
.landing .hero-title { margin: 0; font-family: var(--big-font, var(--font-display)); line-height: var(--big-leading, var(--leading-display));
  font-size: var(--text-2xl); font-size: round(nearest, var(--text-2xl), var(--big-grid, 12px)); color: var(--text-strong); -webkit-font-smoothing: none;
  margin-bottom: var(--space-4); }   /* 32px to the lede, with the gap */
.hero-lede { max-width: 56ch; margin: 0; font-size: var(--text-lg); line-height: 28px; color: var(--text); }
.hero-words > .cluster { margin-top: var(--space-2); }
.hero-art { min-width: 0; }

/* ---------- Features ----------
   <section class="features"> with a .feature-grid of .feature px-boxes (px-pad-lg): an icon at .x2 in the accent, a
   title (16, 1000) and a line or two (14, 700). As many across as fit at 220px or more. */
.feature-grid { display: grid; gap: var(--space-4); grid-template-columns: repeat(auto-fill, minmax(min(220px, 100%), 1fr)); }
.feature { display: grid; gap: var(--space-2); align-content: start; }
.feature > .icon { color: var(--accent); margin-bottom: var(--space-1); }
.feature h3 { margin: 0; font-size: var(--text-md); color: var(--text-strong); }
.feature p { margin: 0; font-size: var(--text-sm); line-height: 20px; color: var(--text-muted); }

/* ---------- Pricing ----------
   <section class="pricing"> with a .plans row of .plan px-boxes (px-pad-lg): its name (.t-label), the price in Mono
   48 (1000) with what it's per (Mono 12, 700) after it, a line, a list of what's in it (each with a 9px check in the
   accent), and a button at the foot, so the buttons line up. .plan.featured: the quiet-accent edge (.px-box.featured)
   and a .tag.accent over its top edge ("Most picked"). As many across as fit at 240px or more. */
.plans { display: grid; gap: var(--space-4); grid-template-columns: repeat(auto-fill, minmax(min(240px, 100%), 1fr)); align-items: stretch; }
.plan { position: relative; display: grid; grid-template-rows: auto auto auto 1fr auto; gap: var(--space-3); }
.plan > .tag { position: absolute; top: -8px; left: 16px; }
.plan-price { font: var(--text-2xl)/1 var(--font-mono); color: var(--text-strong); -webkit-font-smoothing: none; }
.plan-price small { font: var(--text-crisp)/1 var(--font-mono); color: var(--text-muted); -webkit-font-smoothing: antialiased; -moz-osx-font-smoothing: grayscale; }
.plan > p { margin: 0; font-size: var(--text-sm); line-height: 20px; color: var(--text-muted); }
.plan ul { display: grid; gap: var(--space-2); align-content: start; margin: 0; padding: 0; list-style: none; font-size: var(--text-sm); line-height: 20px; }
.plan li { display: grid; grid-template-columns: 9px 1fr; gap: var(--space-2); align-items: baseline; }
.plan li::before { content: ""; position: static; inset: auto; margin: 0; width: 9px; height: 9px; background: var(--accent);   /* in the grid, whatever a page does to its bullets */
  -webkit-mask: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 15 15' shape-rendering='crispEdges'%3E%3Cpath d='M10 4h2v1h-2zM9 5h3v1h-3zM8 6h3v1h-3zM3 7h2v1h-2zM7 7h3v1h-3zM3 8h6v1h-6zM4 9h4v1h-4zM5 10h2v1h-2z'/%3E%3C/svg%3E") -3px -3px / 15px no-repeat; mask: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 15 15' shape-rendering='crispEdges'%3E%3Cpath d='M10 4h2v1h-2zM9 5h3v1h-3zM8 6h3v1h-3zM3 7h2v1h-2zM7 7h3v1h-3zM3 8h6v1h-6zM4 9h4v1h-4zM5 10h2v1h-2z'/%3E%3C/svg%3E") -3px -3px / 15px no-repeat; }
.plan > .btn { justify-self: stretch; justify-content: center; }

/* ---------- Questions ----------
   <section class="faq">: core disclosures (.disclose), one under another on 1px rules in 400, 12px above and below,
   720px at most. */
.faq-list { display: grid; max-width: 720px; }
.faq-list > .disclose { padding: var(--space-3) 0; border-top: var(--stroke) solid var(--line); }
.faq-list > .disclose:last-child { border-bottom: var(--stroke) solid var(--line); }

/* ---------- Call to act ----------
   <section class="cta px-box">: the quiet-accent edge (--landing-cta-edge), 32px inside, a heading in the accent
   (--landing-cta-title) and a line on the left, a button on the
   right (its fill the line dithered); stacked on a phone. One per page, near the end. */
/* 32px inside (one more at the sides and foot, as the box's pads), 24 on a phone. Its button's fill is the line in a
   checkerboard over the ground, as a chosen primary button's in the faithful themes, in every theme: it reads as the one
   thing to press. */
.cta { grid-template-columns: minmax(0, 1fr) auto; align-items: center; gap: var(--space-6); --edge: var(--landing-cta-edge); --edge-to: var(--landing-cta-edge); }
.landing .cta { padding: var(--space-8) 33px 34px; }
.landing .cta h2 { color: var(--landing-cta-title); }
.cta .btn { --fill: var(--bg); --fill-to: var(--bg); --fill-1: var(--line); --fill-3: var(--line); --fill-to-1: var(--line); --fill-to-3: var(--line); }
.cta p { margin: var(--space-2) 0 0; font-size: var(--text-sm); color: var(--text-muted); }

/* ---------- Footer ----------
   <footer class="landing-foot">: a rule in 400, then the name and a row of links (.dissolve-links), in 12, 700. */
.landing-foot { display: flex; flex-wrap: wrap; justify-content: space-between; gap: var(--space-4); padding-top: var(--space-6);
  border-top: var(--stroke) solid var(--line); font-size: var(--text-xs); color: var(--text-muted); }
.landing-foot nav { display: flex; flex-wrap: wrap; gap: var(--space-4); }

@media (max-width: 900px) {   /* --bp-tablet */
  .hero:has(.hero-art) { grid-template-columns: minmax(0, 1fr); }
}
@media (max-width: 640px) {   /* --bp-phone */
  .landing .hero-title { font-size: var(--text-xl); font-size: round(nearest, var(--text-xl), var(--big-grid, 12px)); }
  .landing .cta { padding: var(--space-6) 25px 26px; }
  .cta { grid-template-columns: minmax(0, 1fr); justify-items: start; }
}

}
