/* Keep4K theme over Bootstrap 5.3 (vendor/bootstrap, local, as in the owner's
   other sites). This file sets the brand through Bootstrap's variables and adds
   the few pieces Bootstrap has no component for: the hero and its link bar. */
@font-face {
  font-family: Outfit;
  src: url("fonts/outfit.98ccc2b7f189.woff2") format("woff2");
  font-weight: 400 800;
  font-display: swap;
}

:root {
  --k-page: #fafbf5;
  --k-panel: #eef4d7;
  --k-ink: #16180f;
  --k-muted: #565b47;
  --k-line: #dde2cd;
  --k-lime: #c7f73e;
  --k-lime-deep: #b4e62b;

  --bs-body-bg: var(--k-page);
  --bs-body-color: var(--k-ink);
  --bs-body-font-family: Outfit, system-ui, -apple-system, "Segoe UI", Roboto, sans-serif;
  --bs-body-font-size: 1.0625rem;
  --bs-secondary-color: var(--k-muted);
  --bs-border-color: var(--k-line);
  --bs-link-color-rgb: 22, 24, 15;
  --bs-link-hover-color-rgb: 22, 24, 15;
  --bs-border-radius: 0.75rem;
  --bs-border-radius-lg: 1rem;
  --bs-focus-ring-color: rgba(199, 247, 62, 0.6);
}

html {
  scroll-behavior: smooth;
}

h1,
h2,
h3 {
  font-weight: 700;
  letter-spacing: -0.02em;
}

.icon {
  flex: none;
}

.container-xxl {
  --bs-gutter-x: 2rem;
  max-width: 90rem;
}

/* Buttons: Bootstrap's .btn with the brand's lime as the main action. */
.btn {
  --bs-btn-font-weight: 600;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 0.6rem;
}

.btn-lime {
  --bs-btn-color: var(--k-ink);
  --bs-btn-bg: var(--k-lime);
  --bs-btn-border-color: var(--k-lime);
  --bs-btn-hover-color: var(--k-ink);
  --bs-btn-hover-bg: var(--k-lime-deep);
  --bs-btn-hover-border-color: var(--k-lime-deep);
  --bs-btn-active-color: var(--k-ink);
  --bs-btn-active-bg: var(--k-lime-deep);
  --bs-btn-active-border-color: var(--k-lime-deep);
  --bs-btn-disabled-color: var(--k-ink);
  --bs-btn-disabled-bg: #dfe9bd;
  --bs-btn-disabled-border-color: #dfe9bd;
  --bs-btn-disabled-opacity: 1;
}

.btn-outline-dark {
  --bs-btn-color: var(--k-ink);
  --bs-btn-border-color: var(--k-ink);
  --bs-btn-border-width: 2px;
  --bs-btn-hover-color: var(--k-ink);
  --bs-btn-hover-bg: #fff;
  --bs-btn-hover-border-color: var(--k-ink);
  --bs-btn-active-color: var(--k-ink);
  --bs-btn-active-bg: #fff;
  --bs-btn-active-border-color: var(--k-ink);
}

/* Header */
.navbar {
  --bs-navbar-color: var(--k-ink);
  --bs-navbar-hover-color: var(--k-ink);
  --bs-navbar-active-color: var(--k-ink);
  --bs-navbar-brand-color: var(--k-ink);
  --bs-navbar-brand-hover-color: var(--k-ink);
  --bs-navbar-brand-font-size: 2rem;
  --bs-navbar-toggler-border-color: var(--k-ink);
  --bs-navbar-nav-link-padding-x: 0.25rem;
  font-size: 1.12rem;
  font-weight: 500;
}

.brand {
  display: inline-flex;
  align-items: center;
  gap: 0.7rem;
  font-weight: 700;
  letter-spacing: -0.01em;
}

.brand img {
  border-radius: 11px;
}

.nav-link:hover,
.nav-link.active {
  text-decoration: underline;
  text-decoration-thickness: 2px;
  text-underline-offset: 6px;
}

.lang {
  --bs-btn-padding-x: 0.8rem;
  --bs-btn-padding-y: 0.3rem;
}

.dropdown-menu {
  --bs-dropdown-border-color: var(--k-ink);
  --bs-dropdown-border-width: 2px;
  --bs-dropdown-link-hover-bg: var(--k-panel);
  --bs-dropdown-link-active-bg: var(--k-panel);
  --bs-dropdown-link-active-color: var(--k-ink);
}

/* Hero and link bar */
.hero {
  position: relative;
  overflow: hidden;
  padding: clamp(2rem, 5vw, 3.4rem) clamp(1rem, 4vw, 3rem) clamp(1.6rem, 4vw, 2.6rem);
  background: var(--k-panel);
  border-radius: 28px;
}

h1 {
  max-width: 13em;
  margin: 0 auto;
  font-size: clamp(2.5rem, 7.4vw, 5.6rem);
  line-height: 0.98;
  letter-spacing: -0.025em;
  text-wrap: balance;
}

.lead {
  margin: 1.1rem 0 0;
  font-size: clamp(1.05rem, 2vw, 1.6rem);
  font-weight: 400;
  text-wrap: balance;
}

.lite {
  max-width: 66rem;
  margin: clamp(1.4rem, 3.4vw, 2.6rem) auto 0;
}

.bar {
  display: flex;
  align-items: center;
  gap: 0.4rem;
  padding: 0.3rem;
  padding-inline-start: 1.6rem;
  background: #fff;
  border: 2px solid var(--k-ink);
  border-radius: 22px;
  cursor: text;
}

.bar:focus-within {
  box-shadow: 0 0 0 4px var(--k-lime);
}

.bar > .icon {
  width: 30px;
  height: 30px;
}

.bar input {
  flex: 1;
  min-width: 0;
  padding: 0.9rem 0.6rem;
  border: 0;
  outline: 0;
  background: none;
  color: var(--k-ink);
  font-size: clamp(1.05rem, 1.9vw, 1.6rem);
}

.bar input::placeholder {
  color: var(--k-muted);
  opacity: 1;
}

.bar .paste {
  --bs-btn-font-weight: 500;
  --bs-btn-font-size: clamp(1rem, 1.6vw, 1.45rem);
  --bs-btn-padding-x: 1.2rem;
  border: 0;
  border-inline-start: 1px solid var(--k-line);
  border-radius: 0;
}

.bar .go {
  --bs-btn-font-size: clamp(1.05rem, 1.9vw, 1.65rem);
  --bs-btn-padding-x: clamp(1.1rem, 2.4vw, 2rem);
  --bs-btn-padding-y: 1rem;
  --bs-btn-border-radius: 17px;
  align-self: stretch;
  white-space: nowrap;
}

.hero-note {
  margin: 1.1rem 0 0;
  font-size: 1.05rem;
}

/* Answer of the link bar */
.lite-out:empty {
  display: none;
}

.lite-out {
  margin-top: 1.2rem;
}

.lite-note,
.lite-problem {
  margin: 0;
  text-align: center;
}

.lite-problem {
  color: #a3241b;
  font-weight: 600;
}

.lite-card {
  display: grid;
  grid-template-columns: minmax(0, 15rem) 1fr;
  gap: 1.2rem;
  padding: 1.1rem;
  background: #fff;
  border: 2px solid var(--k-ink);
  border-radius: 22px;
}

.lite-card.plain {
  grid-template-columns: 1fr;
}

.lite-thumb {
  width: 100%;
  aspect-ratio: 16 / 10;
  object-fit: cover;
  border-radius: 14px;
  background: var(--k-panel);
}

.lite-card strong {
  display: block;
  font-size: 1.25rem;
  line-height: 1.2;
  overflow-wrap: anywhere;
}

.lite-card ul {
  margin: 0.7rem 0 0;
  padding: 0;
  list-style: none;
}

.lite-card li {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1rem;
  padding: 0.5rem 0;
  border-top: 1px solid var(--k-line);
  font-weight: 500;
}

.lite-card p {
  margin: 0.6rem 0 0;
  color: var(--k-muted);
  font-size: 0.95rem;
}

.lite-card .btn:not(.btn-sm) {
  margin-top: 0.9rem;
}

/* The four kinds under the hero, and the steps */
.block {
  padding-top: clamp(2.4rem, 5vw, 3.6rem);
}

h2 {
  margin: 0;
  font-size: clamp(1.8rem, 4vw, 3rem);
  line-height: 1.05;
}

.steps {
  margin: 1.6rem 0 0;
}

.steps li {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 1.2rem;
  padding: 0.6rem 1rem;
}

.steps .icon {
  width: clamp(34px, 4vw, 52px);
  height: clamp(34px, 4vw, 52px);
}

h3 {
  margin: 0;
  font-size: clamp(1.15rem, 2.1vw, 1.9rem);
  font-weight: 600;
  line-height: 1.15;
}

@media (min-width: 768px) {
  .steps li + li {
    border-inline-start: 1px solid var(--k-line);
  }
}

/* Cards and questions: Bootstrap components with the brand's lines */
.features {
  margin-top: 1rem;
}

.card {
  --bs-card-bg: #fff;
  --bs-card-border-color: var(--k-line);
  --bs-card-border-radius: 18px;
  --bs-card-spacer-x: 1.3rem;
  --bs-card-spacer-y: 1.3rem;
}

.card .icon {
  width: 34px;
  height: 34px;
}

.card-title {
  margin: 0.7rem 0 0.25rem;
  font-size: 1.3rem;
}

.card-text {
  color: var(--k-muted);
}

.faq {
  --bs-accordion-bg: transparent;
  --bs-accordion-border-color: var(--k-line);
  --bs-accordion-btn-padding-x: 0;
  --bs-accordion-body-padding-x: 0;
  --bs-accordion-btn-color: var(--k-ink);
  --bs-accordion-active-color: var(--k-ink);
  --bs-accordion-active-bg: transparent;
  --bs-accordion-btn-focus-box-shadow: 0 0 0 3px var(--k-lime);
  max-width: 54rem;
  margin-top: 1.2rem;
}

.faq .accordion-button {
  font-size: 1.2rem;
  font-weight: 600;
}

.faq .accordion-body {
  padding-top: 0;
  color: var(--k-muted);
  max-width: 70ch;
}

.foot {
  margin-top: clamp(3rem, 6vw, 4.5rem);
  padding-top: 2rem;
  padding-bottom: 2rem;
  border-top: 1px solid var(--k-line);
  color: var(--k-muted);
  font-size: 0.98rem;
}

.foot h2 {
  margin-bottom: 0.6rem;
  color: var(--k-ink);
  font-size: 1.05rem;
  font-weight: 600;
  letter-spacing: 0;
}

.foot li {
  padding: 0.15rem 0;
}

.foot a {
  color: var(--k-muted);
  text-decoration: none;
}

.foot a:hover {
  color: var(--k-ink);
  text-decoration: underline;
}

.foot-legal {
  margin: 1.4rem 0 0;
  font-size: 0.9rem;
}

.foot-end {
  margin-top: 1.2rem;
  padding-top: 1.2rem;
  border-top: 1px solid var(--k-line);
  font-size: 0.9rem;
}

.foot-end .brand {
  gap: 0.5rem;
  color: var(--k-ink);
  font-size: 1.35rem;
}

.foot-end .brand img {
  border-radius: 7px;
}

/* Desktop app page */
.app-hero h1 {
  margin: 0;
  font-size: clamp(2.3rem, 5.2vw, 4.2rem);
}

.get {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 0.8rem 1.2rem;
  margin-top: 1.6rem;
}

.soon-note {
  color: var(--k-muted);
}

/* The app card and its small window: the app's own dark colors on the light page. */
.appcard {
  margin-top: 1.6rem;
  padding: clamp(1.2rem, 3vw, 2.2rem);
  background: var(--k-panel);
  border: 1px solid var(--k-line);
  border-radius: 24px;
}

.appcard img:first-child {
  border-radius: 13px;
}

.appcard h2 {
  margin-top: 1rem;
  font-size: clamp(1.7rem, 3.2vw, 2.6rem);
}

.appcard p {
  margin: 0.6rem 0 1.2rem;
  color: var(--k-muted);
  font-size: clamp(1.05rem, 1.6vw, 1.3rem);
  max-width: 26em;
}

.shot {
  background: #1b1d1f;
  border-radius: 16px;
  box-shadow: 0 18px 40px rgba(22, 24, 15, 0.22);
  color: #f4f5f0;
  overflow: hidden;
  text-align: start;
}

.shot-top {
  display: flex;
  align-items: center;
  gap: 0.55rem;
  padding: 0.75rem 1rem;
  background: #232527;
  font-size: 0.95rem;
}

.shot-top img {
  border-radius: 6px;
}

.shot-keys {
  display: flex;
  gap: 1.1rem;
  margin-inline-start: auto;
}

.shot-keys i {
  width: 13px;
  height: 13px;
  border: 1.5px solid #f4f5f0;
  border-radius: 2px;
}

.shot-keys i:first-child {
  height: 0;
  align-self: center;
  border-width: 1.5px 0 0;
  border-radius: 0;
}

.shot-keys i:last-child {
  border: 0;
  background:
    linear-gradient(45deg, transparent 44%, #f4f5f0 44% 56%, transparent 56%),
    linear-gradient(-45deg, transparent 44%, #f4f5f0 44% 56%, transparent 56%);
}

.shot-body {
  padding: 1.1rem 1.5rem 1.6rem;
}

.shot-body > strong {
  display: block;
  padding-bottom: 0.9rem;
  border-bottom: 1px solid #3a3d40;
  font-size: clamp(1.2rem, 2vw, 1.6rem);
}

.shot-item {
  display: flex;
  align-items: center;
  gap: 1rem;
  margin-top: 1rem;
}

.shot-thumb {
  flex: none;
  width: clamp(6rem, 14vw, 9rem);
  aspect-ratio: 16 / 10;
  border-radius: 8px;
  background:
    radial-gradient(120% 90% at 78% 100%, #c9b27a 0 22%, transparent 23%),
    linear-gradient(160deg, #5a8f4e 0 38%, transparent 39%),
    linear-gradient(#8ec5e8 0 46%, #2f7fa8 47% 100%);
}

.shot-info {
  flex: 1;
  min-width: 0;
  display: grid;
  gap: 0.2rem;
}

.shot-info small {
  color: #a9aca4;
}

.shot-progress {
  height: 8px;
  margin-top: 0.5rem;
  border-radius: 8px;
  background: #4a4d50;
  overflow: hidden;
}

.shot-progress i {
  display: block;
  width: 72%;
  height: 100%;
  border-radius: 8px;
  background: var(--k-lime);
}

/* Formats: three columns divided by lines, as in the designer's screen. */
.formats {
  margin: 1.4rem 0 0;
  padding-top: 1.1rem;
  border-top: 1px solid var(--k-line);
}

.formats > div {
  padding: 0.2rem 1.8rem 0.6rem;
}

.formats .icon {
  width: 34px;
  height: 34px;
}

.formats dt {
  margin-top: 0.4rem;
  font-size: 1.45rem;
  font-weight: 600;
}

.formats dd {
  margin: 0;
  color: var(--k-muted);
  font-size: 1.1rem;
}

@media (min-width: 768px) {
  .formats > div + div {
    border-inline-start: 1px solid var(--k-line);
  }
}

/* Tool pages, guides and text pages */
.hero-page h1 {
  font-size: clamp(2.2rem, 5.6vw, 4.2rem);
}

.hero-inline {
  max-width: none !important;
  margin-block: 1.6rem 0.4rem;
  padding-block: 1.4rem;
}

.prose h2 {
  margin-bottom: 0.7rem;
}

.hero-inline .lite {
  margin-top: 0;
}

.prose > * {
  max-width: 62rem;
}

.prose p,
.prose li {
  font-size: 1.15rem;
  line-height: 1.6;
}

.answer {
  font-size: clamp(1.2rem, 2vw, 1.45rem) !important;
  line-height: 1.5 !important;
}

.checked {
  color: var(--k-muted);
  font-size: 1rem !important;
}

.article {
  padding-top: clamp(1.4rem, 4vw, 2.6rem);
}

.article h1 {
  max-width: none;
  margin: 0 0 0.6rem;
  font-size: clamp(2rem, 4.6vw, 3.4rem);
  line-height: 1.05;
}

.article h2 {
  margin: 2.2rem 0 0.6rem;
  font-size: clamp(1.4rem, 2.6vw, 1.9rem);
}

.numbered {
  margin: 1rem 0 0;
  padding-inline-start: 1.4rem;
}

.numbered li {
  padding: 0.3rem 0 0.3rem 0.4rem;
}

.numbered li::marker {
  font-weight: 700;
}

.get-table {
  --bs-table-bg: transparent;
  --bs-table-border-color: var(--k-line);
  max-width: 62rem;
  margin-top: 1rem;
  font-size: 1.1rem;
}

.get-table thead th {
  font-weight: 600;
  color: var(--k-muted);
}

.get-table tbody th {
  font-weight: 600;
}

.related {
  display: flex;
  flex-wrap: wrap;
  gap: 0.6rem 0.8rem;
  margin: 1rem 0 0;
}

.related a {
  display: inline-flex;
  align-items: center;
  gap: 0.5rem;
  padding: 0.6rem 1rem;
  border: 1px solid var(--k-line);
  border-radius: 12px;
  background: #fff;
  font-weight: 500;
  text-decoration: none;
}

.related a:hover {
  border-color: var(--k-ink);
}

.related .icon {
  width: 18px;
  height: 18px;
}

[dir="rtl"] .go .icon,
[dir="rtl"] .related .icon,
[dir="rtl"] .appcard .btn .icon {
  transform: scaleX(-1);
}

@media (max-width: 767.98px) {
  .navbar {
    --bs-navbar-brand-font-size: 1.6rem;
  }

  .brand img {
    width: 36px;
    height: 36px;
  }

  .hero {
    border-radius: 22px;
  }

  .bar {
    flex-wrap: wrap;
    padding: 0.3rem;
    padding-inline-start: 1rem;
    border-radius: 20px;
  }

  .bar > .icon {
    width: 24px;
    height: 24px;
  }

  .bar .paste span {
    display: none;
  }

  .bar .paste {
    --bs-btn-padding-x: 0.8rem;
    border-inline-start: 0;
  }

  .bar .go {
    flex: 1 0 100%;
    margin-inline-start: -0.7rem;
    --bs-btn-border-radius: 15px;
  }

  .steps li {
    justify-content: flex-start;
    padding: 0.9rem 0.2rem;
  }

  .steps li + li {
    border-top: 1px solid var(--k-line);
  }

  .lite-card {
    grid-template-columns: 1fr;
  }

  .formats > div {
    padding: 0.9rem 0.2rem;
  }

  .formats > div + div {
    border-top: 1px solid var(--k-line);
  }

  .formats {
    padding-top: 0;
  }

  .get-table {
    font-size: 1rem;
  }
}

@media (prefers-reduced-motion: reduce) {
  html {
    scroll-behavior: auto;
  }
}

/* Scripts with tall or joined letters need more room than Latin headings. */
:lang(hi) :is(h1, h2, h3),
:lang(ar) :is(h1, h2, h3),
:lang(ja) :is(h1, h2, h3) {
  letter-spacing: 0;
  line-height: 1.3;
}
