/* ==========================================================================
   Typefinity — faithful static recreation for Cloudflare Pages
   Flat / minimal / airy, matching the original Squarespace design.
   Font: Mulish (close free stand-in for Proxima Nova).
   ========================================================================== */

:root {
  --green: #6bd83d;
  --green-dark: #57bf2d;
  --blue: #17a3e0;
  --ink: #1a1a1a;
  --body: #3a3a3a;
  --muted: #6b6b6b;
  --line: #e6e6e6;
  --bg: #ffffff;
  --maxw: 1080px;
  --font: "Mulish", -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto,
    Helvetica, Arial, sans-serif;
}

*, *::before, *::after { box-sizing: border-box; }
html { scroll-behavior: smooth; }

body {
  margin: 0;
  font-family: var(--font);
  color: var(--body);
  background: var(--bg);
  line-height: 1.6;
  font-size: 19px;
  -webkit-font-smoothing: antialiased;
  text-rendering: optimizeLegibility;
}

img { max-width: 100%; display: block; }
a { color: var(--blue); text-decoration: none; }
a:hover { text-decoration: underline; }

.wrap { width: 100%; max-width: var(--maxw); margin: 0 auto; padding: 0 28px; }

/* ---------- Header / Nav ---------- */
.site-header {
  position: sticky;
  top: 0;
  z-index: 50;
  background: #fff;
  border-bottom: 1px solid var(--line);
}
.nav {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 20px;
  height: 72px;
}
.nav .logo img { height: 30px; width: auto; }
.nav-links {
  display: flex;
  align-items: center;
  gap: 4px;
  list-style: none;
  margin: 0;
  padding: 0;
}
.nav-links > li > a {
  color: var(--muted);
  font-weight: 700;
  font-size: 13px;
  letter-spacing: .12em;
  text-transform: uppercase;
  padding: 8px 12px;
  border-radius: 4px;
  transition: color .15s;
}
.nav-links > li > a:hover { color: var(--ink); text-decoration: none; }
.nav-links > li > a.active { color: var(--green-dark); }

/* GET IT outline pill (the one real button in the original) */
.btn {
  display: inline-block;
  font-family: var(--font);
  font-weight: 800;
  letter-spacing: .12em;
  text-transform: uppercase;
  font-size: 13px;
  padding: 9px 20px;
  border-radius: 999px;
  border: 2px solid var(--green);
  color: var(--green-dark);
  background: transparent;
  cursor: pointer;
  transition: background .15s, color .15s;
}
.btn:hover { background: var(--green); color: #fff; text-decoration: none; }
.btn-lg { font-size: 15px; padding: 13px 30px; }

.nav-toggle {
  display: none;
  background: none;
  border: 0;
  cursor: pointer;
  padding: 8px;
}
.nav-toggle span {
  display: block;
  width: 26px;
  height: 3px;
  background: var(--ink);
  border-radius: 3px;
  margin: 5px 0;
  transition: .2s;
}

/* ---------- Hero (full-bleed photo slideshow, no overlay text) ---------- */
.hero {
  position: relative;
  height: 46vw;
  max-height: 560px;
  min-height: 300px;
  overflow: hidden;
  background: #4f3f2b;
}
.hero-bg {
  position: absolute;
  inset: 0;
  background-size: cover;
  background-position: center;
  opacity: 0;
  transition: opacity 1.6s ease;
}
.hero-bg.is-active { opacity: 1; }

/* ---------- Intro block ---------- */
.intro { text-align: center; padding: 96px 0 40px; }
.intro h1 {
  font-size: clamp(22px, 3vw, 30px);
  font-weight: 700;
  line-height: 1.25;
  letter-spacing: .08em;
  text-transform: uppercase;
  color: var(--muted);
  margin: 0 0 14px;
  max-width: 720px;
  margin-left: auto;
  margin-right: auto;
}
.intro p {
  font-size: clamp(15px, 1.6vw, 18px);
  letter-spacing: .1em;
  text-transform: uppercase;
  color: var(--muted);
  margin: 0;
}

/* ---------- Video embeds ---------- */
.video-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 36px;
  max-width: 960px;
  margin: 0 auto;
}
.video-embed {
  position: relative;
  width: 100%;
  padding-top: 56.25%; /* 16:9 */
  border-radius: 6px;
  overflow: hidden;
  background: #000;
}
.video-embed iframe {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  border: 0;
}

/* ---------- Section / feature rows ---------- */
section { padding: 60px 0; }
.section-tight { padding: 40px 0; }

.eyebrow {
  font-size: clamp(16px, 2vw, 20px);
  font-weight: 800;
  letter-spacing: .14em;
  text-transform: uppercase;
  color: var(--ink);
  margin: 0 0 22px;
}

.feature {
  display: grid;
  gap: 48px;
  align-items: center;
}
.feature.cols-2 { grid-template-columns: 1fr 1fr; }
.feature.cols-3 { grid-template-columns: 1fr 1.15fr 1fr; }

.feature-text { text-align: center; }
.feature-text p { margin: 0 0 16px; color: var(--body); }
.feature-text p:last-child { margin-bottom: 0; }
.feature-text .lead-in { font-weight: 800; color: var(--ink); }
.feature.reverse .feature-text { order: 2; }

.feature-media img { margin: 0 auto; border-radius: 4px; }

/* hairline divider between feature blocks */
.rule { max-width: var(--maxw); margin: 0 auto; }
.rule hr {
  border: 0;
  border-top: 1px solid var(--line);
  margin: 0 28px;
}

/* Full-bleed banner image (e.g. "the keyboard that suits you") */
.banner-full {
  width: 100%;
  height: 30vw;
  max-height: 420px;
  min-height: 220px;
  background-size: cover;
  background-position: center;
}

/* Multilingual language chips */
.lang-list {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: 8px;
  margin: 24px auto 0;
  max-width: 640px;
}
.lang-list span {
  border: 1px solid var(--line);
  border-radius: 999px;
  padding: 5px 14px;
  font-weight: 700;
  font-size: 13px;
  letter-spacing: .04em;
  color: var(--muted);
}

/* ---------- Footer ---------- */
.footer-band {
  background: var(--green);
  color: #fff;
  text-align: center;
  padding: 34px 0;
}
.footer-band .socials { margin: 0 0 12px; }
.footer-band .socials a {
  color: #fff;
  display: inline-flex;
  width: 34px;
  height: 34px;
  align-items: center;
  justify-content: center;
  margin: 0 6px;
  border: 2px solid rgba(255, 255, 255, .8);
  border-radius: 50%;
}
.footer-band .socials a:hover { background: rgba(255, 255, 255, .18); text-decoration: none; }
.footer-band .socials svg { width: 16px; height: 16px; fill: #fff; }
.footer-band p { margin: 0; font-weight: 700; letter-spacing: .04em; }
.footer-band a.contact { color: #fff; text-decoration: underline; }

.copyright {
  text-align: center;
  padding: 26px 0 34px;
  color: var(--muted);
  font-size: 13px;
  letter-spacing: .04em;
  line-height: 1.9;
}
.copyright a { color: var(--muted); text-decoration: underline; }

/* ---------- Simple content pages (reviews / privacy / press) ---------- */
.page-head { text-align: center; padding: 80px 0 20px; }
.page-head h1 {
  font-size: clamp(26px, 4vw, 40px);
  font-weight: 800;
  letter-spacing: .1em;
  text-transform: uppercase;
  color: var(--ink);
  margin: 0 0 12px;
}
.page-head p { color: var(--muted); font-size: 18px; letter-spacing: .06em; margin: 0; text-transform: uppercase; }

.content { padding: 40px 0 70px; }
.prose { max-width: 760px; margin: 0 auto; }
.prose h2 {
  font-size: 20px;
  font-weight: 800;
  letter-spacing: .1em;
  text-transform: uppercase;
  color: var(--ink);
  margin: 40px 0 14px;
}
.prose h2:first-child { margin-top: 0; }
.prose p { margin: 0 0 18px; }

/* reviews banner hero */
.reviews-hero {
  position: relative;
  height: 260px;
  min-height: 220px;
  display: flex;
  align-items: center;
  justify-content: center;
  background-size: cover;
  background-position: center;
  overflow: hidden;
}
.reviews-hero::after {
  content: "";
  position: absolute;
  inset: 0;
  background: rgba(40, 44, 70, .42);
}
.reviews-hero h1 {
  position: relative;
  z-index: 1;
  margin: 0;
  color: #fff;
  font-size: clamp(30px, 5vw, 48px);
  font-weight: 800;
  letter-spacing: .14em;
  text-transform: uppercase;
  text-shadow: 0 2px 16px rgba(0, 0, 0, .35);
}

/* reviews single-column list */
.review-list { max-width: 760px; margin: 0 auto; }
.review {
  text-align: center;
  padding: 42px 0;
  border-bottom: 1px solid var(--line);
}
.review:last-child { border-bottom: 0; }
.review .qmark {
  font-family: Georgia, "Times New Roman", serif;
  font-size: 46px;
  line-height: 1;
  color: #c9ccd0;
  margin-bottom: 10px;
}
.review .rtitle {
  font-weight: 800;
  color: var(--ink);
  text-transform: uppercase;
  letter-spacing: .05em;
  font-size: 15px;
  margin: 0 0 12px;
}
.review .rstars { color: var(--ink); letter-spacing: 6px; font-size: 15px; margin: 0 0 12px; }
.review .rbody { font-size: 17px; color: var(--body); margin: 0 auto 16px; max-width: 640px; }
.review .rauthor { color: var(--muted); font-size: 14px; font-style: italic; }

/* ---------- Support / help center ---------- */
.support-hero {
  background: linear-gradient(135deg, #17a3e0 0%, #6bd83d 100%);
  color: #fff;
  text-align: center;
  padding: 70px 0 64px;
}
.support-hero h1 {
  font-size: clamp(28px, 4.5vw, 44px);
  font-weight: 800;
  letter-spacing: .08em;
  text-transform: uppercase;
  margin: 0 0 22px;
}
.kb-search {
  max-width: 560px;
  margin: 0 auto;
  position: relative;
}
.kb-search input {
  width: 100%;
  font-family: var(--font);
  font-size: 17px;
  padding: 15px 20px;
  border: 0;
  border-radius: 999px;
  box-shadow: 0 10px 30px rgba(0, 0, 0, .18);
  outline: none;
}
.kb-noresult {
  display: none;
  text-align: center;
  color: var(--muted);
  padding: 40px 0;
}

.kb-cat { max-width: 820px; margin: 0 auto 44px; }
.kb-cat > h2 {
  font-size: 15px;
  font-weight: 800;
  letter-spacing: .14em;
  text-transform: uppercase;
  color: var(--green-dark);
  padding-bottom: 12px;
  border-bottom: 2px solid var(--line);
  margin: 0 0 4px;
}
details.kb-article { border-bottom: 1px solid var(--line); }
details.kb-article > summary {
  list-style: none;
  cursor: pointer;
  padding: 18px 40px 18px 4px;
  font-weight: 700;
  font-size: 17px;
  color: var(--ink);
  position: relative;
  transition: color .15s;
}
details.kb-article > summary::-webkit-details-marker { display: none; }
details.kb-article > summary:hover { color: var(--blue); }
details.kb-article > summary::after {
  content: "+";
  position: absolute;
  right: 6px;
  top: 50%;
  transform: translateY(-50%);
  font-size: 22px;
  font-weight: 400;
  color: var(--muted);
  line-height: 1;
}
details.kb-article[open] > summary::after { content: "\2212"; }
.kb-body { padding: 2px 4px 26px; color: var(--body); font-size: 16px; }
.kb-body p { margin: 0 0 14px; }
.kb-body ul { margin: 0 0 14px; padding-left: 22px; }
.kb-body li { margin: 0 0 7px; }
.kb-body h3 {
  font-size: 15px;
  font-weight: 800;
  letter-spacing: .04em;
  text-transform: uppercase;
  color: var(--ink);
  margin: 22px 0 10px;
}
.emoji-list {
  columns: 2;
  column-gap: 34px;
  list-style: none;
  padding: 0;
  margin: 0 0 14px;
  font-size: 15px;
}
.emoji-list li { break-inside: avoid; display: flex; gap: 12px; }
.emoji-list .e { width: 1.6em; text-align: center; }
.emoji-list .c { color: var(--muted); font-family: ui-monospace, "SF Mono", Menlo, monospace; font-size: 13px; }

.contact-card {
  max-width: 760px;
  margin: 20px auto 0;
  text-align: center;
  border: 1px solid var(--line);
  border-radius: 12px;
  padding: 40px 30px;
  background: var(--soft);
}
.contact-card h2 {
  font-size: 20px;
  font-weight: 800;
  letter-spacing: .06em;
  text-transform: uppercase;
  color: var(--ink);
  margin: 0 0 10px;
}
.contact-card p { color: var(--body); margin: 0 0 20px; max-width: 560px; margin-left: auto; margin-right: auto; }

/* press list */
.press-list { display: grid; gap: 18px; max-width: 820px; margin: 0 auto; }
.press-item { border: 1px solid var(--line); border-radius: 8px; padding: 22px 26px; }
.press-item .outlet { font-weight: 800; font-size: 17px; color: var(--ink); letter-spacing: .03em; }
.press-item .date { color: var(--muted); font-size: 13px; font-weight: 700; margin-left: 8px; }
.press-item .headline { color: var(--muted); font-weight: 700; margin: 4px 0 10px; }
.press-item blockquote { margin: 0; color: var(--body); font-style: italic; border-left: 3px solid var(--green); padding-left: 16px; }

.center-cta { text-align: center; margin-top: 52px; }

/* ---------- Responsive ---------- */
@media (max-width: 820px) {
  body { font-size: 17px; }
  .nav-links {
    position: fixed;
    inset: 72px 0 auto 0;
    flex-direction: column;
    align-items: stretch;
    background: #fff;
    border-bottom: 1px solid var(--line);
    padding: 12px 18px 22px;
    gap: 2px;
    transform: translateY(-160%);
    transition: transform .25s ease;
    box-shadow: 0 16px 26px rgba(0, 0, 0, .07);
  }
  .nav-links.open { transform: translateY(0); }
  .nav-links > li > a { padding: 13px 14px; font-size: 15px; }
  .nav-links li.cta-li { margin-top: 8px; }
  .nav-links .btn { display: block; text-align: center; }
  .nav-toggle { display: block; }

  .hero { height: 62vw; }
  .intro { padding: 60px 0 20px; }
  section { padding: 46px 0; }
  .feature.cols-2, .feature.cols-3 { grid-template-columns: 1fr; gap: 28px; }
  .feature.reverse .feature-text { order: 0; }
  .feature-media img { max-width: 360px; }
  .reviews-grid { grid-template-columns: 1fr; }
}

@media (max-width: 540px) {
  /* stack the two product videos only on phones */
  .video-grid { grid-template-columns: 1fr; gap: 20px; max-width: 420px; }
  .emoji-list { columns: 1; }
}
