/* Lesskeys site design system — "Paper & Keys".
   Warm paper + ink + a single amber accent; Fraunces display + mono labels;
   keycap motif ties to the brand (fewer keys → voice). Used by every page. */

* { margin: 0; padding: 0; box-sizing: border-box; }

:root {
  --paper: #F4EFE4;      /* warm paper — page bg */
  --paper-2: #FBF7EF;    /* raised surface (cards) */
  --ink: #221D16;        /* warm near-black — text + primary buttons */
  --ink-soft: #574D3E;   /* secondary text */
  --muted: #897C68;      /* captions, labels */
  --amber: #E07A00;      /* the accent — fills, highlights, waveform */
  --amber-link: #9E5400; /* amber legible as link text on paper */
  --line: #E5DECF;       /* warm hairline */
  --key-top: #FBF7EF;    /* keycap face */
  --key-edge: #CBBEA1;   /* keycap depth */
  --shadow: 0 18px 44px -22px rgba(34,29,22,.34), 0 3px 10px -6px rgba(34,29,22,.16);
  --display: 'Fraunces', 'Iowan Old Style', Georgia, 'Times New Roman', serif;
  --sans: -apple-system, BlinkMacSystemFont, 'SF Pro Text', 'Helvetica Neue', Arial, sans-serif;
  --mono: ui-monospace, 'SF Mono', 'JetBrains Mono', Menlo, monospace;
}

html { scroll-behavior: smooth; }
body {
  font-family: var(--sans);
  background: var(--paper);
  color: var(--ink);
  line-height: 1.68;
  -webkit-font-smoothing: antialiased;
  overflow-x: hidden;
}
img { max-width: 100%; height: auto; }
.wrap { max-width: 860px; margin: 0 auto; padding: 0 22px; }

a { color: var(--amber-link); text-decoration: none; }
a:hover { text-decoration: underline; text-underline-offset: 2px; }

/* --- Typography --- */
h1 { font-family: var(--display); font-weight: 600; font-size: 44px; line-height: 1.1; letter-spacing: -0.015em; margin-bottom: 18px; color: var(--ink); font-optical-sizing: auto; }
h1 .amber, h1 .accent { color: var(--amber); }
h2 { font-family: var(--display); font-weight: 600; font-size: 30px; line-height: 1.18; letter-spacing: -0.01em; margin: 46px 0 14px; color: var(--ink); font-optical-sizing: auto; }
h3 { font-size: 19px; font-weight: 650; margin: 24px 0 6px; color: var(--ink); }
p { margin-bottom: 16px; color: var(--ink-soft); }
ul, ol { margin: 0 0 16px 4px; color: var(--ink-soft); padding-left: 22px; }
li { margin-bottom: 9px; }
strong { color: var(--ink); font-weight: 650; }
.intro, .lede { font-size: 20px; line-height: 1.6; color: var(--ink-soft); margin-bottom: 30px; }
.eyebrow { font-family: var(--mono); font-size: 12.5px; letter-spacing: 0.14em; text-transform: uppercase; color: var(--amber-link); margin-bottom: 14px; }
.crumb { font-family: var(--mono); color: var(--muted); font-size: 12.5px; letter-spacing: 0.04em; margin-bottom: 22px; text-transform: uppercase; }
.crumb a { color: var(--muted); }

/* --- Keycap motif (the signature element) --- */
.kc {
  display: inline-flex; align-items: center; justify-content: center;
  font-family: var(--mono); font-weight: 600; font-size: 0.86em; color: var(--ink);
  background: linear-gradient(180deg, var(--key-top), #EFE7D6);
  border: 1px solid var(--key-edge); border-bottom-width: 3px;
  border-radius: 7px; padding: 2px 8px; min-width: 1.9em; line-height: 1.5;
  box-shadow: 0 1px 0 rgba(255,255,255,.5) inset;
  white-space: nowrap;
}

/* --- Header --- */
nav {
  display: flex; align-items: center; justify-content: space-between;
  padding: 15px 22px; position: sticky; top: 0; z-index: 20;
  background: rgba(244,239,228,.82); backdrop-filter: saturate(160%) blur(14px);
  border-bottom: 1px solid var(--line);
}
nav a.brand, nav .brand { display: flex; align-items: center; gap: 10px; font-weight: 700; color: var(--ink); font-size: 18px; letter-spacing: -0.01em; }
nav a.brand img, nav .brand img { width: 30px; height: 30px; border-radius: 8px; box-shadow: 0 1px 3px rgba(34,29,22,.18); }
nav .navlinks { display: flex; align-items: center; }
nav .navlinks a { color: var(--ink-soft); margin-left: 22px; font-size: 15px; font-weight: 500; }
nav .navlinks a:hover { color: var(--ink); text-decoration: none; }
nav .navlinks a.dl {
  background: var(--ink); color: var(--paper-2); font-weight: 600; padding: 8px 17px;
  border-radius: 999px; margin-left: 22px; box-shadow: 0 2px 0 rgba(34,29,22,.25);
  transition: background .18s, transform .18s;
}
nav .navlinks a.dl:hover { background: var(--amber); color: #fff; transform: translateY(-1px); }

main { padding: 34px 0 10px; }

/* --- Buttons --- */
.cta, .btn {
  display: inline-flex; align-items: center; gap: 9px;
  background: var(--ink); color: var(--paper-2); font-size: 17px; font-weight: 600;
  padding: 15px 30px; border-radius: 999px;
  box-shadow: 0 3px 0 rgba(34,29,22,.28), var(--shadow);
  transition: background .18s, transform .18s, box-shadow .18s;
}
.cta:hover, .btn:hover { background: var(--amber); color: #fff; transform: translateY(-2px); text-decoration: none; }
.btn-secondary {
  display: inline-flex; align-items: center; background: transparent; color: var(--ink);
  border: 1px solid var(--key-edge); padding: 14px 26px; border-radius: 999px; font-size: 16px; font-weight: 600;
  transition: border-color .18s, background .18s;
}
.btn-secondary:hover { border-color: var(--amber); background: var(--paper-2); text-decoration: none; }
.cta-row { display: flex; gap: 14px; justify-content: center; flex-wrap: wrap; margin-top: 8px; }
.pricenote, .note { color: var(--muted); font-size: 14.5px; margin-top: 15px; }
.pricenote strong { color: var(--ink); }

/* --- CTA box --- */
.ctabox {
  text-align: center; background: var(--paper-2); border: 1px solid var(--line);
  border-radius: 22px; padding: 40px 24px; margin: 48px 0; box-shadow: var(--shadow);
}

/* --- Product screenshot (dark app shot as a framed object on paper) --- */
.shot { margin: 32px 0 36px; }
.shot img {
  width: 100%; height: auto; display: block; border-radius: 14px;
  border: 1px solid rgba(34,29,22,.14); background: var(--ink);
  box-shadow: 0 30px 60px -28px rgba(34,29,22,.5), 0 8px 20px -12px rgba(34,29,22,.28);
}
.shot figcaption { color: var(--muted); font-size: 13.5px; margin-top: 14px; text-align: center; font-style: italic; }

/* --- At-a-glance fact strip --- */
.facts { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 12px; margin: 28px 0 8px; }
.fact { background: var(--paper-2); border: 1px solid var(--line); border-radius: 14px; padding: 16px 16px; box-shadow: 0 1px 2px rgba(34,29,22,.05); }
.fact .fv { display: block; font-family: var(--display); font-size: 26px; font-weight: 600; color: var(--amber); letter-spacing: -0.01em; }
.fact .fl { display: block; color: var(--muted); font-size: 13px; line-height: 1.45; margin-top: 3px; }

/* --- Comparison table --- */
.tablewrap, .table-scroll { overflow-x: auto; -webkit-overflow-scrolling: touch; margin: 24px 0; border: 1px solid var(--line); border-radius: 14px; }
table { width: 100%; border-collapse: collapse; font-size: 15.5px; min-width: 560px; background: var(--paper-2); }
th, td { text-align: left; padding: 13px 16px; border-bottom: 1px solid var(--line); vertical-align: top; }
thead th, th { color: var(--ink); font-weight: 650; }
td, td.them { color: var(--ink-soft); }
td.win, td.lesskeys { color: var(--ink); }
tr td:first-child, tbody th { color: var(--ink); font-weight: 550; }
.col-lesskeys { color: var(--amber-link); }
tbody tr:last-child td { border-bottom: 0; }
.yes { color: #2E7D32; font-weight: 600; } .no { color: #B23A2E; }

/* --- FAQ --- */
.faq details, details { border-bottom: 1px solid var(--line); padding: 16px 0; }
.faq summary, summary { font-size: 17px; font-weight: 600; cursor: pointer; list-style: none; display: flex; justify-content: space-between; gap: 12px; color: var(--ink); }
.faq summary::after, summary::after { content: '+'; color: var(--amber); font-size: 22px; line-height: 1; font-family: var(--mono); }
.faq details[open] summary::after, details[open] summary::after { content: '\2212'; }
.faq p, details p { color: var(--ink-soft); margin-top: 10px; }

/* --- Cards / related / cmp --- */
.grid, .cards { display: grid; grid-template-columns: repeat(auto-fit, minmax(250px, 1fr)); gap: 16px; margin-top: 26px; }
.card { background: var(--paper-2); border: 1px solid var(--line); border-radius: 16px; padding: 22px; box-shadow: 0 1px 2px rgba(34,29,22,.05); transition: transform .18s, box-shadow .18s, border-color .18s; }
.card:hover { transform: translateY(-2px); box-shadow: var(--shadow); border-color: var(--key-edge); }
.card h3 { font-size: 18px; margin: 0 0 6px; }
.card p { color: var(--ink-soft); font-size: 15px; margin-bottom: 0; }
.related, .cmp { display: flex; gap: 12px; flex-wrap: wrap; margin: 18px 0 0; }
.related a, .cmp a { background: var(--paper-2); border: 1px solid var(--line); border-radius: 999px; padding: 11px 18px; color: var(--ink); font-size: 15px; font-weight: 500; }
.related a:hover, .cmp a:hover { border-color: var(--amber); color: var(--amber-link); text-decoration: none; }

/* --- Guides hub grid --- */
.hubgrid { display: grid; grid-template-columns: repeat(auto-fit, minmax(240px, 1fr)); gap: 14px; margin: 18px 0 8px; }
.hubgrid a { background: var(--paper-2); border: 1px solid var(--line); border-radius: 16px; padding: 20px; display: block; color: var(--ink); box-shadow: 0 1px 2px rgba(34,29,22,.05); transition: transform .18s, box-shadow .18s, border-color .18s; }
.hubgrid a:hover { border-color: var(--amber); transform: translateY(-2px); box-shadow: var(--shadow); text-decoration: none; }
.hubgrid .ht { display: block; font-weight: 650; margin-bottom: 5px; }
.hubgrid .hd { display: block; color: var(--ink-soft); font-size: 14px; line-height: 1.5; }

.divider, hr.divider { height: 1px; background: var(--line); border: 0; margin: 52px 0; }
.fineprint { font-size: 13px; color: var(--muted); margin-top: 40px; }

/* --- Footer: inverted ink band --- */
footer { background: var(--ink); color: #C9BDA6; padding: 46px 0 40px; margin-top: 56px; font-size: 14px; }
footer .wrap { max-width: 980px; }
footer a { color: #C9BDA6; }
footer a:hover { color: var(--amber); text-decoration: none; }
footer .fcols { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 26px; text-align: left; margin-bottom: 30px; }
footer .fcols h4 { color: var(--paper-2); font-size: 12px; font-weight: 600; margin-bottom: 12px; font-family: var(--mono); letter-spacing: 0.1em; text-transform: uppercase; }
footer .fcols ul { list-style: none; margin: 0; padding: 0; }
footer .fcols li { margin-bottom: 9px; }
footer .fcols li a { margin: 0; font-size: 14px; }
footer .fbottom { text-align: center; border-top: 1px solid rgba(255,255,255,.1); padding-top: 22px; color: var(--muted); }

/* --- Responsive --- */
@media (max-width: 780px) {
  .facts { grid-template-columns: 1fr 1fr; }
  footer .fcols { grid-template-columns: 1fr 1fr; }
}
@media (max-width: 600px) {
  h1 { font-size: 33px; } h2 { font-size: 25px; } .intro, .lede { font-size: 18px; }
  nav .navlinks a { margin-left: 14px; font-size: 14px; }
  nav .navlinks a.dl { margin-left: 14px; padding: 7px 13px; }
  nav .navlinks a.hidemobile { display: none; }
}
@media (max-width: 440px) {
  nav { padding: 12px 16px; } nav a.brand, nav .brand { font-size: 16px; }
  nav .navlinks a.hidesmall { display: none; }
}

/* Publish/updated line under the intro — freshness signal for readers and for
   answer engines deciding whether a comparison page is current. */
.pubdate { font-family: ui-monospace, SFMono-Regular, Menlo, monospace; font-size: 12.5px;
  letter-spacing: .04em; text-transform: uppercase; color: var(--muted);
  margin: -6px 0 22px; }

/* ---- Top-right language picker -------------------------------------------
   29 languages will not fit as inline nav links, so this is a disclosure
   dropdown. Deliberately JS-free (<details>/<summary>): it works with
   scripting off, it is keyboard-accessible for free, and every language stays
   a real crawlable <a> rather than a <select> option a crawler cannot follow. */
.langpick { position: relative; margin-left: 22px; }
.langpick > summary {
  list-style: none; cursor: pointer; display: inline-flex; align-items: center; gap: 6px;
  color: var(--ink-soft); font-size: 15px; font-weight: 500; padding: 4px 2px;
}
.langpick > summary::-webkit-details-marker { display: none; }
.langpick > summary:hover { color: var(--ink); }
.langpick > summary::after {
  content: ""; width: 6px; height: 6px; margin-left: 4px; flex: 0 0 auto;
  border-right: 1.6px solid currentColor; border-bottom: 1.6px solid currentColor;
  /* rotate about the glyph's own centre and nudge up by half the diagonal, so the
     caret sits on the text's optical centre instead of floating above it */
  transform: translateY(-2px) rotate(45deg); opacity: .65;
}
.langpick[open] > summary::after { transform: translateY(1px) rotate(-135deg); }
.langpick .langmenu {
  /* inset-inline-end, not right: on the RTL locales (ar, he) the nav mirrors, so a
     hard `right: 0` pushed the panel off the left edge and clipped "Bahasa Melayu".
     The logical property flips with the writing direction on its own. */
  position: absolute; inset-inline-end: 0; top: calc(100% + 10px); z-index: 60;
  background: #fff; border: 1px solid rgba(34,29,22,.12); border-radius: 14px;
  box-shadow: 0 12px 34px rgba(34,29,22,.16); padding: 8px;
  /* Columns must fit the LONGEST native name, not an average one: at 112px
     "Bahasa Indonesia", "Bahasa Melayu" and "Português (Brasil)" ran into their
     neighbours. max-content sizes to the real strings. */
  display: grid; grid-template-columns: repeat(3, max-content); gap: 1px 2px;
  max-height: min(64vh, 460px); overflow: auto;
}
.langpick .langmenu a {
  display: block; padding: 7px 10px; border-radius: 8px; font-size: 14px;
  color: var(--ink-soft); margin: 0; white-space: nowrap;
}
.langpick .langmenu a:hover { background: var(--sand, #F4EFE4); color: var(--ink); text-decoration: none; }
.langpick .langmenu a[aria-current] { color: var(--ink); font-weight: 600; }
@media (max-width: 760px) {
  .langpick .langmenu { grid-template-columns: repeat(2, max-content); inset-inline-end: -8px; }
}
@media (max-width: 420px) {
  .langpick .langmenu { position: fixed; left: 12px; right: 12px; top: 62px;
                        grid-template-columns: repeat(2, 1fr); }
  .langpick .langmenu a { white-space: normal; }
}

/* ---- Product video -------------------------------------------------------
   preload="none" is load-bearing: the file is ~3 MB per locale and this sits
   on the busiest page. Without it every visitor pays for a video most never
   play. The poster carries the visual until they choose to. */
.videoblock { max-width: 900px; margin: 0 auto; }
.videoblock video {
  width: 100%; height: auto; display: block; border-radius: 16px;
  box-shadow: 0 18px 50px rgba(34,29,22,.20); background: #221D16;
}
.videoblock figcaption { text-align: center; color: var(--ink-soft); font-size: 14px; margin-top: 14px; }

/* code blocks (added 2026-08-21 for the whisper-mac install guide) */
pre { background: var(--ink, #1c1917); color: #f5f0e8; padding: 16px 20px; border-radius: 12px; overflow-x: auto; font-size: 14px; line-height: 1.55; margin: 18px 0; }
pre code { background: none; color: inherit; padding: 0; }
:not(pre) > code { background: var(--paper-2, #f3ede2); border: 1px solid var(--line, #e2d9c8); border-radius: 5px; padding: 1px 6px; font-size: 0.92em; }

/* Consent banner (GA4 Consent Mode v2). Layer 1 conversion logging is server-side and
   needs no consent, so declining this costs us the GA4 join, not the conversion count. */
#lk-consent{position:fixed;left:1rem;right:1rem;bottom:1rem;max-width:44rem;margin:0 auto;background:#fffaf2;border:1px solid #d8cfc0;border-radius:.6rem;padding:1rem 1.1rem;box-shadow:0 6px 24px rgba(0,0,0,.12);font-size:.92rem;z-index:9999;display:flex;flex-wrap:wrap;gap:.7rem;align-items:center}
#lk-consent p{margin:0;flex:1 1 20rem}
#lk-consent button{padding:.5rem .9rem;border-radius:.4rem;border:1px solid #c8a97a;background:#fff;font:inherit;cursor:pointer}
#lk-consent #lk-yes{background:#c8791a;color:#fff;border-color:#c8791a;font-weight:600}
