/* Keep4K site. Colors follow the app (deep night, indigo) plus the logo's lime. */
@font-face {
  font-family: Fredoka;
  src: url("fonts/fredoka.a78a2136bd2c.woff2") format("woff2");
  font-weight: 400 700;
  font-display: swap;
}

:root {
  color-scheme: dark;
  --night: #0f111d;
  --surface: #181a2a;
  --surface-2: #22253b;
  --line: #2a2d45;
  --ink: #f3f3fb;
  --muted: #a6a9c0;
  --lime: #c7f73e;
  --lime-ink: #16180f;
  --indigo: #6a59ee;
  --display: Fredoka, ui-rounded, "SF Pro Rounded", system-ui, sans-serif;
  --body: system-ui, -apple-system, "Segoe UI", Roboto, sans-serif;
}

* {
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
}

body {
  margin: 0;
  background: var(--night);
  color: var(--ink);
  font-family: var(--body);
  font-size: 1.0625rem;
  line-height: 1.55;
  -webkit-font-smoothing: antialiased;
}

h1,
h2,
h3,
p,
dl,
dd,
ol,
ul {
  margin: 0;
  padding: 0;
}

h1,
h2,
h3,
dt,
summary,
.brand,
.button {
  font-family: var(--display);
}

a {
  color: inherit;
}

:focus-visible {
  outline: 3px solid var(--lime);
  outline-offset: 3px;
  border-radius: 6px;
}

.wrap {
  width: min(1120px, 100% - 40px);
  margin-inline: auto;
}

/* Header */
.top {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
  padding-block: 22px;
}

.brand {
  display: flex;
  align-items: center;
  gap: 10px;
  font-size: 1.5rem;
  font-weight: 650;
  text-decoration: none;
}

.top nav {
  display: flex;
  gap: 26px;
}

.top nav a {
  color: var(--muted);
  text-decoration: none;
}

.top nav a:hover {
  color: var(--ink);
}

/* Hero */
.hero {
  display: grid;
  grid-template-columns: minmax(0, 1fr) minmax(0, 1.05fr);
  align-items: center;
  gap: 56px;
  padding-block: 56px 96px;
}

h1 {
  font-size: clamp(2.6rem, 5.4vw, 4.4rem);
  font-weight: 650;
  line-height: 1.02;
  letter-spacing: -0.015em;
  text-wrap: balance;
}

.lead {
  max-width: 34ch;
  margin-top: 22px;
  color: var(--muted);
  font-size: 1.25rem;
}

.get {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 14px 20px;
  margin-top: 34px;
}

.button {
  display: inline-flex;
  align-items: center;
  height: 58px;
  padding: 0 30px;
  border-radius: 16px;
  background: var(--lime);
  color: var(--lime-ink);
  font-size: 1.1875rem;
  font-weight: 600;
  text-decoration: none;
}

a.button:hover {
  background: #d6ff5c;
}

.button.quiet {
  background: var(--surface-2);
  color: var(--ink);
}

.button.soon {
  background: transparent;
  box-shadow: inset 0 0 0 2px var(--lime);
  color: var(--lime);
}

.soon-note,
.note {
  color: var(--muted);
  font-size: 0.9375rem;
}

.note {
  margin-top: 14px;
}

/* The app window shown in the hero. It mirrors the real app, indigo included. */
.window {
  display: grid;
  grid-template-columns: 30% 1fr;
  min-height: 340px;
  border: 1px solid var(--line);
  border-radius: 16px;
  overflow: hidden;
  background: var(--night);
  box-shadow:
    0 0 0 1px rgb(255 255 255 / 3%),
    0 40px 90px -30px rgb(64 72 214 / 55%);
  font-size: 0.875rem;
  user-select: none;
}

.window-side {
  display: flex;
  flex-direction: column;
  gap: 4px;
  padding: 14px 12px;
  background: #0b0c17;
}

.lights {
  display: flex;
  gap: 6px;
  margin-bottom: 18px;
}

.lights i {
  width: 10px;
  height: 10px;
  border-radius: 50%;
  background: var(--surface-2);
}

.w-brand {
  display: flex;
  align-items: center;
  gap: 8px;
  margin-bottom: 12px;
  padding-left: 6px;
  font-family: var(--display);
  font-size: 1rem;
  font-weight: 650;
}

.w-nav {
  padding: 8px 10px;
  border-radius: 8px;
  color: var(--muted);
}

.w-nav.on {
  background: #272a4d;
  color: var(--ink);
}

.window-main {
  min-width: 0;
  padding: 26px 22px;
  background: radial-gradient(420px 220px at 60% -60px, rgb(64 72 214 / 38%), transparent 70%);
}

.w-link {
  overflow: hidden;
  padding: 12px 14px;
  border: 1px solid #414564;
  border-radius: 10px;
  background: var(--surface);
  color: var(--muted);
  text-overflow: ellipsis;
  white-space: nowrap;
}

.w-result {
  display: grid;
  grid-template-columns: 42% 1fr;
  gap: 16px;
  margin-top: 20px;
}

.w-thumb {
  position: relative;
  aspect-ratio: 4 / 3;
  border-radius: 10px;
  background:
    radial-gradient(circle at 70% 42%, #ffd98a 0 9%, transparent 10%),
    linear-gradient(180deg, #2b2f6b 0%, #b0567f 52%, #f0a35f 66%, #1c2a4a 67%, #101831 100%);
}

.w-thumb span {
  position: absolute;
  right: 6px;
  bottom: 6px;
  padding: 1px 6px;
  border-radius: 5px;
  background: rgb(0 0 0 / 65%);
  font-size: 0.75rem;
}

.w-info {
  display: flex;
  flex-direction: column;
  gap: 4px;
  min-width: 0;
}

.w-info strong {
  font-size: 1rem;
  line-height: 1.25;
}

.w-info small {
  color: var(--muted);
}

.w-choice {
  display: flex;
  gap: 6px;
  margin-top: 10px;
}

.w-choice span,
.w-select {
  padding: 6px 12px;
  border: 1px solid var(--line);
  border-radius: 8px;
  color: var(--muted);
}

.w-choice .on {
  border-color: var(--indigo);
  background: #272a4d;
  color: var(--ink);
}

.w-row {
  display: flex;
  flex-wrap: wrap;
  gap: 6px;
  margin-top: 6px;
}

.w-save {
  padding: 6px 16px;
  border-radius: 8px;
  background: var(--indigo);
  color: #fff;
  font-weight: 600;
}

/* Sections */
.block {
  padding-block: 84px;
}

h2 {
  font-size: clamp(1.9rem, 3.4vw, 2.6rem);
  font-weight: 600;
  line-height: 1.1;
  text-wrap: balance;
}

.keep {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 32px;
  margin-top: 40px;
}

.keep div {
  padding-top: 18px;
  border-top: 3px solid var(--lime);
}

dt,
h3 {
  font-size: 1.375rem;
  font-weight: 600;
}

dd,
.steps p {
  margin-top: 6px;
  color: var(--muted);
}

/* The one loud moment: the logo's lime, full width. */
.private {
  background: var(--lime);
  color: var(--lime-ink);
}

.private-in {
  display: flex;
  align-items: center;
  gap: 48px;
  padding-block: 72px;
}

.private img {
  flex: none;
}

.private h2 {
  font-size: clamp(2.2rem, 4.6vw, 3.6rem);
}

.private p {
  max-width: 56ch;
  margin-top: 14px;
  font-size: 1.25rem;
}

.steps {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 32px;
  margin-top: 40px;
  list-style: none;
  counter-reset: step;
}

.steps li {
  counter-increment: step;
}

.steps li::before {
  content: counter(step);
  display: grid;
  place-items: center;
  width: 44px;
  height: 44px;
  margin-bottom: 16px;
  border-radius: 13px;
  background: var(--surface-2);
  color: var(--lime);
  font-family: var(--display);
  font-size: 1.375rem;
  font-weight: 600;
}

.sites {
  display: flex;
  flex-wrap: wrap;
  gap: 10px 34px;
  margin-top: 32px;
  list-style: none;
  font-family: var(--display);
  font-size: 1.5rem;
  font-weight: 500;
}

.sites .more {
  color: var(--muted);
}

.faq {
  max-width: 760px;
  margin-top: 28px;
}

details {
  border-bottom: 1px solid var(--line);
}

summary {
  display: flex;
  justify-content: space-between;
  gap: 16px;
  padding: 20px 0;
  cursor: pointer;
  font-size: 1.25rem;
  font-weight: 500;
  list-style: none;
}

summary::-webkit-details-marker {
  display: none;
}

summary::after {
  content: "+";
  color: var(--lime);
  font-size: 1.5rem;
  line-height: 1;
}

details[open] summary::after {
  content: "–";
}

details p {
  padding-bottom: 22px;
  color: var(--muted);
}

.final {
  border-top: 1px solid var(--line);
}

.foot {
  padding-block: 28px 48px;
  border-top: 1px solid var(--line);
  color: var(--muted);
  font-size: 0.9375rem;
}

.foot p + p {
  margin-top: 6px;
}

@media (max-width: 900px) {
  .hero {
    grid-template-columns: 1fr;
    gap: 44px;
    padding-block: 32px 64px;
  }

  .keep {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }

  .steps {
    grid-template-columns: 1fr;
  }

  .block {
    padding-block: 60px;
  }
}

@media (max-width: 560px) {
  .top nav a:not([hreflang]) {
    display: none;
  }

  .keep {
    grid-template-columns: 1fr;
  }

  .private-in {
    flex-direction: column;
    align-items: flex-start;
    gap: 24px;
    padding-block: 52px;
  }

  .private img {
    width: 96px;
    height: 96px;
  }

  .window {
    grid-template-columns: 1fr;
    min-height: 0;
  }

  .window-side {
    display: none;
  }

  .button {
    width: 100%;
    justify-content: center;
  }
}

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

/* The lite tool under the hero buttons. */
.lite {
  max-width: 520px;
  margin-top: 36px;
  padding-top: 26px;
  border-top: 1px solid var(--line);
}

.lite label {
  display: block;
  margin-bottom: 10px;
  color: var(--muted);
  font-size: 0.9375rem;
}

.lite-row {
  display: flex;
  gap: 10px;
}

.lite input {
  flex: 1;
  min-width: 0;
  height: 52px;
  padding: 0 16px;
  border: 1px solid #414564;
  border-radius: 14px;
  background: var(--surface);
  color: var(--ink);
  font: inherit;
}

.lite input::placeholder {
  color: var(--muted);
}

.lite button {
  height: 52px;
  padding: 0 22px;
  border: 0;
  border-radius: 14px;
  background: var(--surface-2);
  color: var(--ink);
  font-family: var(--display);
  font-size: 1.0625rem;
  font-weight: 600;
  cursor: pointer;
}

.lite button:hover {
  background: #2d3150;
}

.lite button:disabled {
  opacity: 0.5;
  cursor: default;
}

.lite-out:not(:empty) {
  margin-top: 16px;
}

.lite-note {
  color: var(--muted);
  font-size: 0.9375rem;
}

.lite-problem {
  color: #f29c8d;
}

.lite-app,
.lite-files {
  padding: 18px 20px;
  border-radius: 14px;
  background: var(--surface);
}

.lite-app strong,
.lite-files strong {
  display: block;
  font-family: var(--display);
  font-size: 1.125rem;
  font-weight: 600;
}

.lite-app p {
  margin-top: 4px;
  color: var(--muted);
}

.lite-link {
  display: inline-block;
  margin-top: 12px;
  color: var(--lime);
  font-weight: 600;
}

.lite-files ul {
  margin: 10px 0 12px;
  list-style: none;
}

.lite-files li {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
  padding: 10px 0;
  border-top: 1px solid var(--line);
}

.lite-get {
  padding: 7px 16px;
  border-radius: 10px;
  background: var(--lime);
  color: var(--lime-ink);
  font-family: var(--display);
  font-weight: 600;
  text-decoration: none;
}

.lite-files .lite-note + .lite-note {
  margin-top: 4px;
}
