/* appokk.com — single stylesheet, no dependencies */

:root {
  --paper: #faf8f4;
  --paper-2: #f3f0e8;
  --card: #ffffff;
  --ink: #14130f;
  --ink-2: #4a4841;
  --muted: #79756a;
  --line: #e7e3d8;
  --line-2: #d8d3c4;
  --accent: #e8452a;
  --accent-soft: #fdece7;
  --radius: 14px;
  --wrap: 1180px;
  --font: ui-sans-serif, -apple-system, BlinkMacSystemFont, "Segoe UI", Inter,
    "Helvetica Neue", Arial, "PingFang SC", sans-serif;
}

* { box-sizing: border-box; }

/* .card/.grid set display, which would otherwise beat the UA [hidden] rule */
[hidden] { display: none !important; }

html { -webkit-text-size-adjust: 100%; scroll-behavior: smooth; }

body {
  margin: 0;
  background: var(--paper);
  color: var(--ink);
  font-family: var(--font);
  font-size: 16px;
  line-height: 1.55;
  -webkit-font-smoothing: antialiased;
  text-rendering: optimizeLegibility;
}

a { color: inherit; text-decoration: none; }
button { font: inherit; color: inherit; }

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

.sr-only {
  position: absolute;
  width: 1px; height: 1px;
  padding: 0; margin: -1px;
  overflow: hidden;
  clip: rect(0 0 0 0);
  white-space: nowrap;
  border: 0;
}

.skip {
  position: absolute;
  left: 16px; top: -60px;
  background: var(--ink);
  color: var(--paper);
  padding: 10px 16px;
  border-radius: 8px;
  z-index: 100;
  transition: top .15s ease;
}
.skip:focus { top: 14px; }

/* ---------- header ---------- */

.site-header {
  position: sticky;
  top: 0;
  z-index: 40;
  background: rgba(250, 248, 244, .86);
  backdrop-filter: saturate(180%) blur(14px);
  -webkit-backdrop-filter: saturate(180%) blur(14px);
  border-bottom: 1px solid var(--line);
}

.header-inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 24px;
  height: 64px;
}

.brand {
  display: inline-flex;
  align-items: center;
  gap: 9px;
  font-weight: 600;
  font-size: 17px;
  letter-spacing: -.02em;
}

.brand-mark {
  width: 18px; height: 18px;
  border-radius: 50%;
  background: var(--accent);
  box-shadow: inset 0 0 0 3.5px var(--paper);
  flex: none;
}

.nav {
  display: flex;
  align-items: center;
  gap: 26px;
  font-size: 14px;
  color: var(--ink-2);
}

.nav a { transition: color .15s ease; }
.nav a:hover { color: var(--ink); }

.nav-cta {
  padding: 8px 15px;
  border-radius: 999px;
  background: var(--ink);
  color: var(--paper) !important;
  font-weight: 500;
  transition: background .15s ease, transform .15s ease;
}
.nav-cta:hover { background: var(--accent); transform: translateY(-1px); }

/* ---------- hero ---------- */

.hero { padding: 92px 0 40px; }

.eyebrow {
  margin: 0 0 22px;
  font-size: 12px;
  letter-spacing: .14em;
  text-transform: uppercase;
  color: var(--muted);
  display: flex;
  align-items: center;
  gap: 10px;
}
.eyebrow::before {
  content: "";
  width: 26px; height: 1px;
  background: var(--line-2);
}

.hero h1 {
  margin: 0 0 24px;
  font-size: clamp(2.9rem, 7vw, 5rem);
  line-height: .96;
  letter-spacing: -.04em;
  font-weight: 620;
}

.hl { color: var(--accent); }

.lede {
  margin: 0 0 34px;
  max-width: 540px;
  font-size: 17.5px;
  line-height: 1.6;
  color: var(--ink-2);
}

.search-shell {
  display: flex;
  align-items: center;
  gap: 12px;
  max-width: 620px;
  height: 58px;
  padding: 0 16px;
  background: var(--card);
  border: 1px solid var(--line-2);
  border-radius: var(--radius);
  box-shadow: 0 1px 2px rgba(20, 19, 15, .03), 0 10px 30px -18px rgba(20, 19, 15, .25);
  transition: border-color .15s ease, box-shadow .15s ease;
}
.search-shell:focus-within {
  border-color: var(--ink);
  box-shadow: 0 0 0 4px var(--accent-soft);
}

.search-icon { width: 19px; height: 19px; color: var(--muted); flex: none; }

.search-shell input {
  flex: 1;
  min-width: 0;
  border: 0;
  outline: 0;
  background: transparent;
  font-family: inherit;
  font-size: 16.5px;
  color: var(--ink);
  padding: 0;
  -webkit-appearance: none;
  appearance: none;
}
.search-shell input::placeholder { color: #a5a196; }
.search-shell input::-webkit-search-cancel-button { -webkit-appearance: none; }

.kbd {
  flex: none;
  display: grid;
  place-items: center;
  width: 24px; height: 24px;
  border: 1px solid var(--line-2);
  border-bottom-width: 2px;
  border-radius: 6px;
  font-size: 12px;
  color: var(--muted);
  font-family: ui-monospace, SFMono-Regular, Menlo, monospace;
}

.hero-meta {
  display: flex;
  flex-wrap: wrap;
  gap: 22px;
  margin: 26px 0 0;
  font-size: 13px;
  color: var(--muted);
}
.hero-meta b { color: var(--ink); font-weight: 600; }

/* ---------- filter bar ---------- */

.filterbar {
  position: sticky;
  top: 64px;
  z-index: 30;
  background: rgba(250, 248, 244, .92);
  backdrop-filter: saturate(180%) blur(14px);
  -webkit-backdrop-filter: saturate(180%) blur(14px);
  border-bottom: 1px solid var(--line);
}

.filter-inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 20px;
  padding-top: 12px;
  padding-bottom: 12px;
}

.chips {
  display: flex;
  gap: 7px;
  overflow-x: auto;
  scrollbar-width: none;
  padding: 2px 0;
  margin: 0 -2px;
}
.chips::-webkit-scrollbar { display: none; }

.chip {
  flex: none;
  display: inline-flex;
  align-items: center;
  gap: 6px;
  padding: 7px 13px;
  border: 1px solid var(--line-2);
  border-radius: 999px;
  background: transparent;
  font-size: 13px;
  color: var(--ink-2);
  cursor: pointer;
  white-space: nowrap;
  transition: all .15s ease;
}
.chip:hover { border-color: var(--ink); color: var(--ink); }
.chip.is-active {
  background: var(--ink);
  border-color: var(--ink);
  color: var(--paper);
}

.chip-n { font-size: 11px; opacity: .55; }

.count {
  flex: none;
  margin: 0;
  font-size: 12.5px;
  color: var(--muted);
  font-variant-numeric: tabular-nums;
}

/* ---------- grid ---------- */

main { padding-bottom: 20px; }

.grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(268px, 1fr));
  gap: 14px;
  padding: 32px 0 8px;
}

.card {
  display: flex;
  flex-direction: column;
  gap: 9px;
  padding: 18px;
  background: var(--card);
  border: 1px solid var(--line);
  border-radius: var(--radius);
  transition: transform .16s ease, box-shadow .16s ease, border-color .16s ease;
}
.card:hover {
  transform: translateY(-2px);
  border-color: var(--line-2);
  box-shadow: 0 12px 28px -16px rgba(20, 19, 15, .3);
}
.card:focus-visible {
  outline: 2px solid var(--accent);
  outline-offset: 2px;
}

.card-top {
  display: flex;
  align-items: center;
  justify-content: space-between;
  margin-bottom: 3px;
}

.tile {
  display: grid;
  place-items: center;
  width: 38px; height: 38px;
  border-radius: 10px;
  color: #fff;
  font-size: 15px;
  font-weight: 600;
  letter-spacing: .01em;
  flex: none;
}

.t-ai { background: linear-gradient(135deg, #6b4eff, #b44bff); }
.t-design { background: linear-gradient(135deg, #ff5c7a, #ff9d4d); }
.t-dev { background: linear-gradient(135deg, #2c5bff, #00b3e6); }
.t-productivity { background: linear-gradient(135deg, #0ea37b, #86d98a); }
.t-writing { background: linear-gradient(135deg, #c2410c, #f0a62b); }
.t-travel { background: linear-gradient(135deg, #0e7490, #45c4f5); }
.t-marketing { background: linear-gradient(135deg, #db2777, #f472b6); }
.t-utilities { background: linear-gradient(135deg, #475569, #94a3b8); }

.pill {
  font-size: 10.5px;
  letter-spacing: .04em;
  text-transform: uppercase;
  padding: 3px 7px;
  border-radius: 5px;
  border: 1px solid transparent;
  font-weight: 600;
  white-space: nowrap;
}
.p-free { background: #e9f6f0; border-color: #c9e9dc; color: #0f7a5a; }
.p-freemium { background: #fbf4e2; border-color: #ecdfbb; color: #7a5f14; }
.p-paid { background: var(--paper-2); border-color: var(--line-2); color: var(--ink-2); }

.card-name {
  font-size: 15px;
  font-weight: 600;
  letter-spacing: -.01em;
}

.card-desc {
  font-size: 13.5px;
  line-height: 1.5;
  color: var(--muted);
  flex: 1;
}

.empty {
  padding: 72px 0 88px;
  text-align: center;
}
.empty-title { margin: 0 0 6px; font-size: 18px; font-weight: 600; }
.empty-sub { margin: 0; font-size: 14px; color: var(--muted); }

.linkbtn {
  background: none;
  border: 0;
  padding: 0;
  color: var(--accent);
  cursor: pointer;
  text-decoration: underline;
  text-underline-offset: 2px;
}

/* ---------- categories ---------- */

.cats {
  padding: 76px 0 84px;
  margin-top: 56px;
  background: var(--paper-2);
  border-top: 1px solid var(--line);
  border-bottom: 1px solid var(--line);
}

.section-head {
  display: flex;
  align-items: baseline;
  justify-content: space-between;
  gap: 20px;
  margin-bottom: 26px;
}
.section-head h2 {
  margin: 0;
  font-size: clamp(1.5rem, 2.6vw, 2rem);
  letter-spacing: -.03em;
  font-weight: 600;
}
.section-head p { margin: 0; font-size: 14px; color: var(--muted); }

.cat-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(246px, 1fr));
  gap: 12px;
}

.cat-card {
  display: block;
  padding: 20px;
  background: var(--card);
  border: 1px solid var(--line);
  border-radius: var(--radius);
  transition: transform .16s ease, box-shadow .16s ease, border-color .16s ease;
}
.cat-card:hover {
  transform: translateY(-2px);
  border-color: var(--line-2);
  box-shadow: 0 12px 28px -18px rgba(20, 19, 15, .3);
}
.cat-card h3 {
  margin: 12px 0 4px;
  font-size: 15px;
  font-weight: 600;
  letter-spacing: -.01em;
}
.cat-card p {
  margin: 0 0 14px;
  font-size: 13px;
  line-height: 1.5;
  color: var(--muted);
}
.cat-dot {
  display: block;
  width: 10px; height: 10px;
  border-radius: 50%;
}
.cat-n {
  font-size: 11.5px;
  color: var(--muted);
  letter-spacing: .02em;
}

/* ---------- cta ---------- */

.cta-band {
  background: var(--ink);
  color: var(--paper);
  padding: 68px 0;
}
.cta-inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 36px;
}
.cta-band h2 {
  margin: 0 0 8px;
  font-size: clamp(1.4rem, 2.6vw, 1.9rem);
  letter-spacing: -.03em;
  font-weight: 600;
}
.cta-band p {
  margin: 0;
  font-size: 14.5px;
  color: #b3afa2;
  max-width: 460px;
}

.btn {
  display: inline-block;
  padding: 13px 24px;
  background: var(--accent);
  color: #fff;
  border-radius: 10px;
  font-size: 14.5px;
  font-weight: 600;
  white-space: nowrap;
  transition: transform .15s ease, filter .15s ease;
}
.btn:hover { transform: translateY(-1px); filter: brightness(1.07); }

/* ---------- footer ---------- */

.site-footer { padding: 56px 0 26px; }

.footer-inner {
  display: grid;
  grid-template-columns: 1.7fr 1fr 1fr;
  gap: 40px;
}

.foot-brand p {
  margin: 14px 0 0;
  max-width: 300px;
  font-size: 13.5px;
  line-height: 1.6;
  color: var(--muted);
}

.foot-col h3 {
  margin: 0 0 12px;
  font-size: 11.5px;
  letter-spacing: .12em;
  text-transform: uppercase;
  color: var(--muted);
  font-weight: 600;
}
.foot-col a {
  display: block;
  padding: 3px 0;
  font-size: 13.5px;
  color: var(--ink-2);
  transition: color .15s ease;
}
.foot-col a:hover { color: var(--accent); }

.foot-bottom {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
  margin-top: 40px;
  padding-top: 18px;
  border-top: 1px solid var(--line);
}
.foot-bottom p { margin: 0; font-size: 12px; color: var(--muted); }

/* ---------- inner pages ---------- */

.page {
  max-width: 776px;
  margin: 0 auto;
  padding: 84px 28px 40px;
}
.page h1 {
  margin: 0 0 20px;
  font-size: clamp(2.1rem, 4.6vw, 3rem);
  line-height: 1.04;
  letter-spacing: -.035em;
  font-weight: 620;
}
.page .lede { margin-bottom: 40px; }
.prose h2 {
  margin: 44px 0 12px;
  font-size: 1.2rem;
  letter-spacing: -.015em;
  font-weight: 600;
}
.prose p, .prose li {
  font-size: 15.5px;
  line-height: 1.72;
  color: var(--ink-2);
}
.prose p { margin: 0 0 16px; }
.prose ul { margin: 0 0 18px; padding-left: 20px; }
.prose li { margin-bottom: 7px; }
.prose a { color: var(--accent); text-decoration: underline; text-underline-offset: 2px; }

/* a .btn inside .prose must keep its own colours — .prose a is more specific */
.prose a.btn {
  color: #fff;
  text-decoration: none;
}

.mailcard {
  display: flex;
  flex-direction: column;
  gap: 5px;
  padding: 18px 20px;
  margin: 18px 0 20px !important;
  background: var(--card);
  border: 1px solid var(--line);
  border-left: 3px solid var(--accent);
  border-radius: 10px;
}
.prose .mailcard-addr {
  font-size: 21px;
  font-weight: 600;
  letter-spacing: -.01em;
  color: var(--ink);
  text-decoration: none;
  word-break: break-all;
}
.prose .mailcard-addr:hover {
  color: var(--accent);
  text-decoration: underline;
  text-underline-offset: 3px;
}
.mailcard-hint {
  font-size: 13px;
  line-height: 1.5;
  color: var(--muted);
}
.prose code {
  font-family: ui-monospace, SFMono-Regular, Menlo, monospace;
  font-size: .9em;
  background: var(--paper-2);
  padding: 1px 5px;
  border-radius: 4px;
}
.prose hr {
  border: 0;
  border-top: 1px solid var(--line);
  margin: 40px 0;
}
.prose .note {
  border-left: 3px solid var(--accent);
  padding: 2px 0 2px 16px;
  margin: 24px 0;
  font-size: 14.5px;
  color: var(--ink-2);
}

.form-card {
  padding: 28px;
  background: var(--card);
  border: 1px solid var(--line);
  border-radius: var(--radius);
}
.field { margin-bottom: 18px; }
.field label {
  display: block;
  margin-bottom: 6px;
  font-size: 13px;
  font-weight: 600;
  letter-spacing: .01em;
}
.field input, .field textarea {
  width: 100%;
  padding: 11px 13px;
  border: 1px solid var(--line-2);
  border-radius: 9px;
  background: var(--paper);
  font-family: inherit;
  font-size: 14.5px;
  color: var(--ink);
  outline: 0;
  transition: border-color .15s ease, box-shadow .15s ease;
}
.field input:focus, .field textarea:focus {
  border-color: var(--ink);
  box-shadow: 0 0 0 3px var(--accent-soft);
}
.field .hint { display: block; margin-top: 6px; font-size: 12px; color: var(--muted); }

/* ---------- responsive ---------- */

@media (max-width: 900px) {
  .nav { gap: 18px; }
  .nav a:not(.nav-cta):not(:first-child) { display: none; }
  .cta-inner { flex-direction: column; align-items: flex-start; gap: 24px; }
  .footer-inner { grid-template-columns: 1fr 1fr; }
  .foot-brand { grid-column: 1 / -1; }
}

@media (max-width: 640px) {
  .wrap { padding: 0 18px; }
  .hero { padding: 60px 0 28px; }
  .hero h1 { font-size: clamp(2.5rem, 11vw, 3.4rem); }
  .lede { font-size: 16px; }
  .search-shell { height: 54px; }
  .kbd { display: none; }
  .filterbar { top: 63px; }
  .filter-inner { flex-direction: column; align-items: flex-start; gap: 8px; }
  .grid { grid-template-columns: 1fr; padding-top: 24px; }
  .section-head { flex-direction: column; gap: 6px; }
  .cats { padding: 56px 0 60px; margin-top: 40px; }
  .cta-band { padding: 52px 0; }
  .foot-bottom { flex-direction: column; align-items: flex-start; gap: 6px; }
  .page { padding: 56px 18px 30px; }
}

@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  * { transition: none !important; animation: none !important; }
}
