/* KerjaTools — productivity SaaS guides (slate + teal) */
:root {
  color-scheme: light;
  --bg: #f1f5f9;
  --bg-tint-a: rgba(15, 118, 110, 0.05);
  --bg-tint-b: rgba(3, 105, 161, 0.04);
  --surface: #ffffff;
  --surface-2: #e2e8f0;
  --ink: #0f172a;
  --ink-2: #475569;
  --ink-3: #64748b;
  --brand: #0f766e;
  --brand-hover: #0d9488;
  --brand-soft: rgba(15, 118, 110, 0.1);
  --amber: #0369a1;
  --line: #dbe3ee;
  --shadow-md: 0 8px 24px rgba(15, 23, 42, 0.08);
  --content: 44rem;
  --pad-x: 1.25rem;
  --radius: 0.85rem;
  --header-h: 3.5rem;
  --font-body: "DM Sans", ui-sans-serif, system-ui, sans-serif;
  --font-head: "Sora", "DM Sans", ui-sans-serif, system-ui, sans-serif;
}
:root[data-theme="dark"] {
  color-scheme: dark;
  --bg: #0b1220;
  --bg-tint-a: rgba(45, 212, 191, 0.06);
  --bg-tint-b: rgba(56, 189, 248, 0.04);
  --surface: #111827;
  --surface-2: #1e293b;
  --ink: #e2e8f0;
  --ink-2: #94a3b8;
  --ink-3: #64748b;
  --brand: #2dd4bf;
  --brand-hover: #5eead4;
  --brand-soft: rgba(45, 212, 191, 0.12);
  --amber: #38bdf8;
  --line: #243044;
  --shadow-md: 0 10px 28px rgba(0, 0, 0, 0.35);
}
* { box-sizing: border-box; }
html { scroll-behavior: smooth; }
body {
  margin: 0;
  font-family: var(--font-body);
  color: var(--ink);
  background:
    radial-gradient(900px 420px at 10% -10%, var(--bg-tint-a), transparent 55%),
    radial-gradient(800px 380px at 90% 0%, var(--bg-tint-b), transparent 50%),
    var(--bg);
  line-height: 1.65;
}
h1, h2, h3, .brand { font-family: var(--font-head); letter-spacing: -0.02em; }
a { color: var(--brand); text-decoration-thickness: 1px; text-underline-offset: 0.18em; }
a:hover { color: var(--brand-hover); }
.skip {
  position: absolute; left: -999px; top: 0;
  background: var(--brand); color: #fff; padding: 0.6rem 1rem; z-index: 99;
}
.skip:focus { left: 1rem; top: 1rem; }
.site-header {
  position: sticky; top: 0; z-index: 40;
  display: flex; align-items: center; gap: 1rem;
  min-height: var(--header-h);
  padding: 0.6rem var(--pad-x);
  background: color-mix(in srgb, var(--bg) 82%, transparent);
  backdrop-filter: blur(12px);
  border-bottom: 1px solid var(--line);
}
.brand {
  font-weight: 700; font-size: 1.15rem; color: var(--ink); text-decoration: none;
}
.nav-main { display: flex; gap: 1rem; margin-left: auto; }
.nav-main a { color: var(--ink-2); text-decoration: none; font-weight: 600; }
.header-tools { display: flex; align-items: center; gap: 0.5rem; }
.lang-switch { display: inline-flex; border: 1px solid var(--line); border-radius: 999px; overflow: hidden; }
.lang-switch a {
  padding: 0.3rem 0.7rem; text-decoration: none; color: var(--ink); font-size: 0.85rem; font-weight: 700;
  background: var(--surface);
}
.lang-switch a.is-active {
  background: #0f766e; color: #ffffff;
}
:root[data-theme="dark"] .lang-switch a.is-active {
  background: #0f766e; color: #ffffff;
}
.theme-toggle {
  border: 1px solid var(--line) !important;
  background: var(--surface) !important;
  color: var(--ink) !important;
  border-radius: 999px !important;
  padding: 0.3rem 0.7rem !important;
  font-weight: 700 !important;
  cursor: pointer;
}
.site-search { display: flex; align-items: center; margin-left: 0.5rem; }
.site-search input {
  width: min(220px, 36vw);
  min-height: 36px;
  border: 1px solid var(--line);
  border-radius: 999px;
  padding: 0.35rem 0.9rem;
  background: var(--surface);
  color: var(--ink);
  font: inherit;
}
.site-search input:focus {
  outline: 2px solid var(--brand);
  outline-offset: 1px;
}
.sr-only {
  position: absolute; width: 1px; height: 1px; padding: 0; margin: -1px;
  overflow: hidden; clip: rect(0,0,0,0); border: 0;
}
.cta-band {
  display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between; gap: 1rem;
  margin: 1.5rem 0 2rem; padding: 1.25rem 1.35rem;
  border-radius: 1.1rem;
  background: linear-gradient(120deg, rgba(15,118,110,0.16), rgba(37,99,235,0.12));
  border: 1px solid var(--line);
}
.cta-band h2 { margin: 0 0 0.35rem; font-size: 1.15rem; }
.cta-band p { margin: 0; color: var(--ink-2); }
.card.is-hidden { display: none !important; }
.home-section.is-empty { display: none; }
@media (max-width: 720px) {
  .site-header { flex-wrap: wrap; }
  .site-search { order: 5; width: 100%; margin: 0.25rem 0 0; }
  .site-search input { width: 100%; }
}
.lang-switch a.is-active { background: var(--brand); color: #fff; }
main { width: min(1100px, 100% - 2 * var(--pad-x)); margin: 0 auto; padding: 1.5rem 0 4rem; }
.hero { padding: 2.2rem 0 1.4rem; max-width: 40rem; }
.brand-kicker {
  margin: 0 0 0.6rem; font-size: 0.85rem; font-weight: 700; letter-spacing: 0.08em;
  text-transform: uppercase; color: var(--brand);
}
.hero h1 { margin: 0 0 0.75rem; font-size: clamp(1.8rem, 4vw, 2.6rem); line-height: 1.15; }
.lead { color: var(--ink-2); font-size: 1.08rem; }
.hero-actions { margin: 1.2rem 0; }
.btn {
  display: inline-flex; align-items: center; justify-content: center;
  min-height: 44px; padding: 0.65rem 1.1rem; border-radius: 999px;
  font-weight: 700; text-decoration: none;
}
.btn-primary { background: var(--brand); color: #fff; }
.btn-primary:hover { background: var(--brand-hover); color: #fff; }
.trust { display: flex; flex-wrap: wrap; gap: 0.5rem 1rem; padding: 0; list-style: none; color: var(--ink-3); font-size: 0.92rem; }
.trust li::before { content: "✓ "; color: var(--brand); font-weight: 700; }
.market-pills {
  display: flex; flex-wrap: wrap; gap: 0.5rem; margin: 1rem 0 1.5rem;
}
.market-pills a {
  padding: 0.5rem 0.95rem; border-radius: 999px; border: 1px solid var(--line);
  background: var(--surface); color: var(--ink); text-decoration: none; font-size: 0.92rem; font-weight: 700;
}
.market-pills a:hover,
.market-pills a:focus-visible {
  background: #0f766e; color: #ffffff; border-color: #0f766e;
}
:root[data-theme="dark"] .market-pills a {
  background: var(--surface-2); color: #e2e8f0; border-color: var(--line);
}
:root[data-theme="dark"] .market-pills a:hover {
  background: #0f766e; color: #ffffff;
}
.card-media img {
  display: block; width: 100%; height: auto; aspect-ratio: 1200/630; object-fit: cover;
  filter: contrast(1.05) saturate(1.05);
}

.card {
  background: var(--surface); border: 1px solid var(--line); border-radius: 1.1rem;
  overflow: hidden; box-shadow: var(--shadow-md);
  transition: transform 0.18s ease, box-shadow 0.18s ease;
}
.card:hover { transform: translateY(-3px); box-shadow: 0 14px 32px rgba(15, 23, 42, 0.14); }
.card-media { position: relative; display: block; overflow: hidden; }
.card-media::after {
  content: ""; position: absolute; inset: auto 0 0 0; height: 40%;
  background: linear-gradient(transparent, rgba(15,23,42,0.15));
  pointer-events: none;
}
.hero {
  padding: 2.4rem 0 1.6rem; max-width: 42rem;
  position: relative;
}
.hero::before {
  content: "";
  position: absolute; right: -8rem; top: -2rem; width: 16rem; height: 16rem;
  border-radius: 50%; background: radial-gradient(circle, rgba(45,212,191,0.22), transparent 70%);
  pointer-events: none;
}
.home-section { margin: 2rem 0; }
.section-head h2 { margin: 0 0 1rem; font-size: 1.35rem; }
.card-media img { display: block; width: 100%; height: auto; aspect-ratio: 1200/630; object-fit: cover; }
.card-grid {
  display: grid; grid-template-columns: repeat(auto-fill, minmax(280px, 1fr)); gap: 1.1rem;
}
.card-body { padding: 0.95rem 1rem 1.15rem; }
.card-body h3 { margin: 0.2rem 0 0.45rem; font-size: 1.05rem; line-height: 1.3; }
.card-body h3 a { color: var(--ink); text-decoration: none; }
.card-body p { margin: 0; color: var(--ink-2); font-size: 0.92rem; }
.eyebrow {
  margin: 0; color: var(--ink-2); font-size: 0.86rem; font-weight: 800;
  text-transform: uppercase; letter-spacing: 0.05em;
}
@media (max-width: 640px) {
  .eyebrow { font-size: 0.9rem; letter-spacing: 0.04em; }
  .card-body h3 { font-size: 1.1rem; }
  .card-media { min-height: 9rem; }
}
.page-intro { margin-bottom: 1rem; max-width: 40rem; }
.article { max-width: var(--content); }
.article h1 { margin: 0.3rem 0 0.6rem; font-size: clamp(1.6rem, 3.5vw, 2.2rem); line-height: 1.2; }
.article h2 { margin: 1.8rem 0 0.7rem; font-size: 1.25rem; }
.back { display: inline-block; margin-bottom: 0.8rem; color: var(--ink-2); text-decoration: none; font-weight: 600; }
.recipe-hero { margin: 1rem 0 1.2rem; border-radius: var(--radius); overflow: hidden; border: 1px solid var(--line); }
.recipe-hero img { display: block; width: 100%; height: auto; }
.steps { padding-left: 1.2rem; }
.steps li, .tip-list li { margin: 0.45rem 0; }
.site-footer {
  border-top: 1px solid var(--line); padding: 1.5rem var(--pad-x) 2.5rem;
  color: var(--ink-3); text-align: center;
}
.muted { opacity: 0.85; }
.ad-slot { margin: 1.25rem 0; }
.ad-slot__label {
  display: block; margin-bottom: 0.35rem; color: var(--ink-3);
  font-size: 0.62rem; font-weight: 700; letter-spacing: 0.12em; text-transform: uppercase; opacity: 0.75;
}
.ad-slot__frame { min-height: 0; }
.ad-slot.is-off { display: none !important; }
.ad-rail { display: none; }
@media (min-width: 1100px) {
  body.is-desktop .layout-with-rail { display: grid; grid-template-columns: 1fr var(--ad-rail, 19.5rem); gap: 1.5rem; }
}
