/* Kovan IQ — marka stilleri
   Sistem: resmi mühür/plaka motifi (bkz. uygulamadaki "Plaka Yönetimi")
   + Bricolage Grotesque (başlık) / Inter (gövde) / IBM Plex Mono (veri/etiket) */

:root {
  --color-bg: #f7ecd6;
  --color-bg-alt: #efe0ba;
  --color-surface: #fffdf6;
  --color-text: #221a0f;
  --color-text-muted: #6f6248;
  --color-primary: #fec409;
  --color-primary-deep: #c98f00;
  --color-primary-ink: #1c1712;
  --color-heading: #1c1712;
  --color-accent: #4a6b45;
  --color-accent-bg: #e2e9d9;
  --color-border: #ddc98e;

  --font-display: "Bricolage Grotesque", "Iowan Old Style", Georgia, serif;
  --font-body: "Inter", -apple-system, BlinkMacSystemFont, "Helvetica Neue", Arial, sans-serif;
  --font-mono: "IBM Plex Mono", ui-monospace, "SF Mono", Menlo, monospace;

  --shadow-sm: 0 1px 2px rgba(23, 17, 8, 0.08);
  --shadow-md: 0 10px 26px rgba(23, 17, 8, 0.16);
  --radius: 10px;
  --max-width: 1120px;
  font-synthesis: none;
}

* { box-sizing: border-box; }

html { scroll-behavior: smooth; }

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

img { max-width: 100%; display: block; }

a { color: var(--color-primary-deep); text-decoration: none; }
a:hover { text-decoration: underline; }

:focus-visible {
  outline: 2.5px solid var(--color-primary-deep);
  outline-offset: 3px;
  border-radius: 4px;
}

@media (prefers-reduced-motion: reduce) {
  * { animation-duration: 0.01ms !important; animation-iteration-count: 1 !important; transition-duration: 0.01ms !important; scroll-behavior: auto !important; }
}

/* ===== Hareket =====
   Sayfa açılışında hero'da kademeli beliriş, mühür halkasında yavaş damga
   dönüşü, kaydırınca kartlar/adımlar için yumuşak beliriş. */

@keyframes rise-in {
  from { opacity: 0; transform: translateY(14px); }
  to { opacity: 1; transform: translateY(0); }
}
@keyframes seal-in {
  from { opacity: 0; transform: rotate(-4deg) scale(0.88) translateY(8px); }
  to { opacity: 1; transform: rotate(-4deg) scale(1) translateY(0); }
}
@keyframes ring-fade {
  from { opacity: 0; }
  to { opacity: var(--o, 1); }
}
@keyframes seal-spin {
  from { transform: rotate(0deg); }
  to { transform: rotate(360deg); }
}

.hero .eyebrow,
.hero h1,
.hero p.lead,
.hero__actions {
  animation: rise-in 0.7s cubic-bezier(0.22, 0.61, 0.36, 1) both;
}
.hero h1 { animation-delay: 0.07s; }
.hero p.lead { animation-delay: 0.14s; }
.hero__actions { animation-delay: 0.21s; }

.hero__art .seal { animation: seal-in 0.85s cubic-bezier(0.22, 0.61, 0.36, 1) 0.1s both; }
.seal__ring { animation: seal-spin 46s linear infinite; }

.ring-ghost { opacity: var(--o, 1); animation: ring-fade 1.6s ease 0.25s both; }

/* Kaydırınca beliriş — JS varsa .reveal başlangıçta gizli, yoksa her zaman görünür */
.js .reveal {
  opacity: 0;
  transform: translateY(16px);
  transition: opacity 0.6s ease, transform 0.6s ease;
}
.js .reveal.is-visible { opacity: 1; transform: translateY(0); }

.grid > .reveal:nth-child(1) { transition-delay: 0ms; }
.grid > .reveal:nth-child(2) { transition-delay: 70ms; }
.grid > .reveal:nth-child(3) { transition-delay: 140ms; }
.grid > .reveal:nth-child(4) { transition-delay: 210ms; }
.grid > .reveal:nth-child(5) { transition-delay: 280ms; }
.grid > .reveal:nth-child(6) { transition-delay: 350ms; }
.steps > .reveal:nth-child(1) { transition-delay: 0ms; }
.steps > .reveal:nth-child(2) { transition-delay: 90ms; }
.steps > .reveal:nth-child(3) { transition-delay: 180ms; }

.container {
  max-width: var(--max-width);
  margin: 0 auto;
  padding: 0 24px;
}

/* ===== Mühür (seal) imza motifi =====
   Bakanlık kovan plakası / resmi kaşe fikrinden: çift halka + döner rozet.
   Tek büyük jest — tekrar eden bir doku değil. */

.ring-ghost {
  position: absolute;
  border-radius: 50%;
  border: 1.5px solid var(--color-border);
  pointer-events: none;
  z-index: 0;
}

.seal {
  position: relative;
  width: 280px;
  height: 280px;
  margin: 0 auto;
  transform: rotate(-4deg);
  z-index: 1;
}
.seal__ring { position: absolute; inset: 0; color: var(--color-primary-deep); opacity: 0.85; }
.seal__ring text { font-family: var(--font-mono); }
.seal__mark {
  position: absolute;
  left: 50%;
  top: 50%;
  width: 60%;
  height: 60%;
  transform: translate(-50%, -50%) rotate(4deg);
  border-radius: 50%;
  overflow: hidden;
  box-shadow: var(--shadow-md);
}
.seal__mark img { width: 100%; height: 100%; object-fit: cover; }

/* ===== Header ===== */
.site-header {
  position: sticky;
  top: 0;
  z-index: 20;
  background: rgba(247, 236, 214, 0.9);
  backdrop-filter: saturate(180%) blur(10px);
  border-bottom: 1px solid var(--color-border);
}

.site-header__inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 14px 24px;
  max-width: var(--max-width);
  margin: 0 auto;
}

.brand {
  display: flex;
  align-items: center;
  gap: 10px;
  color: var(--color-heading);
}
.brand:hover { text-decoration: none; }

.brand__mark { border-radius: 6px; }

.brand__word {
  font-family: var(--font-display);
  font-weight: 600;
  font-size: 1.3rem;
  letter-spacing: -0.01em;
}
.brand__tag {
  font-family: var(--font-mono);
  font-weight: 600;
  font-size: 0.62em;
  letter-spacing: 0.04em;
  color: var(--color-primary-ink);
  background: var(--color-primary);
  padding: 2px 5px;
  border-radius: 4px;
  margin-left: 3px;
  vertical-align: middle;
  position: relative;
  top: -0.35em;
}

.nav {
  display: flex;
  align-items: center;
  gap: 28px;
}

.nav a {
  color: var(--color-text);
  font-weight: 500;
  font-size: 0.95rem;
}
.nav a:hover { color: var(--color-primary-deep); text-decoration: none; }

.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  padding: 12px 24px;
  border-radius: 999px;
  font-weight: 600;
  font-size: 0.95rem;
  border: 1px solid transparent;
  cursor: pointer;
  transition: background 0.15s ease, border-color 0.15s ease;
}
.btn:hover { text-decoration: none; }

.btn--primary {
  background: var(--color-primary);
  color: var(--color-primary-ink);
}
.btn--primary:hover { background: var(--color-primary-deep); }

.btn--ghost {
  background: transparent;
  border-color: var(--color-border);
  color: var(--color-text);
}
.btn--ghost:hover { border-color: var(--color-primary-deep); color: var(--color-primary-deep); }

.btn--sm { padding: 9px 18px; font-size: 0.85rem; }

/* Store badges — tanınabilirlik için standart biçim korunur */
.hero__actions {
  display: flex;
  gap: 12px;
  flex-wrap: wrap;
  position: relative;
  z-index: 1;
}
.store-badge {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  padding: 10px 20px 10px 16px;
  border-radius: 8px;
  background: var(--color-primary-ink);
  color: #fff;
  transition: background 0.15s ease;
}
.store-badge:hover { background: #000; text-decoration: none; }
.store-badge span { display: flex; flex-direction: column; line-height: 1.15; }
.store-badge em {
  font-style: normal;
  font-size: 0.68rem;
  color: rgba(255,255,255,0.7);
  font-family: var(--font-mono);
  text-transform: uppercase;
  letter-spacing: 0.05em;
}
.store-badge span:last-child { font-weight: 600; font-size: 0.98rem; }

/* Eyebrow: çizgi + versal etiket — hap rozet değil */
.eyebrow {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  font-family: var(--font-mono);
  font-size: 0.74rem;
  font-weight: 600;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  color: var(--color-text-muted);
  margin-bottom: 22px;
}
.eyebrow::before {
  content: "";
  width: 28px;
  height: 1.5px;
  background: var(--color-primary-deep);
}
.eyebrow--muted { color: var(--color-primary-deep); }

/* ===== Hero ===== */
.hero {
  position: relative;
  overflow: hidden;
  padding: 88px 0 72px;
}

.hero__inner {
  position: relative;
  z-index: 1;
  display: grid;
  grid-template-columns: 1.15fr 0.85fr;
  gap: 48px;
  align-items: center;
}

h1 {
  font-family: var(--font-display);
  font-weight: 600;
  font-size: clamp(2.3rem, 4.6vw, 3.5rem);
  line-height: 1.06;
  letter-spacing: -0.01em;
  margin: 0 0 20px;
  color: var(--color-heading);
}

.hero p.lead {
  font-size: 1.14rem;
  color: var(--color-text-muted);
  margin: 0 0 32px;
  max-width: 46ch;
}

.hero__art {
  position: relative;
  display: flex;
  align-items: center;
  justify-content: center;
  min-height: 320px;
}

/* ===== Sections ===== */
section { padding: 64px 0; }

.section-head { max-width: 640px; margin: 0 0 40px; }
.section-head h2 {
  font-family: var(--font-display);
  font-weight: 600;
  font-size: clamp(1.6rem, 2.6vw, 2.1rem);
  margin: 0 0 12px;
  color: var(--color-heading);
  line-height: 1.2;
}
.section-head p { color: var(--color-text-muted); margin: 0; font-size: 1.02rem; }

.grid {
  display: grid;
  gap: 1px;
  background: var(--color-border);
  border: 1px solid var(--color-border);
  border-radius: var(--radius);
  overflow: hidden;
}
.grid--3 { grid-template-columns: repeat(3, 1fr); }
.grid--4 { grid-template-columns: repeat(4, 1fr); }

.card {
  background: var(--color-surface);
  padding: 30px 28px;
  transition: background 0.15s ease;
}
.card:hover { background: var(--color-bg-alt); }

.card__icon {
  width: 26px;
  height: 26px;
  margin-bottom: 20px;
  color: var(--color-primary-deep);
  transition: transform 0.2s ease;
}
.card:hover .card__icon { transform: translateY(-2px); }
.card__icon svg { width: 100%; height: 100%; }

.card h3 {
  font-family: var(--font-display);
  font-weight: 600;
  margin: 0 0 8px;
  font-size: 1.12rem;
  color: var(--color-heading);
}
.card p { margin: 0; color: var(--color-text-muted); font-size: 0.95rem; }

/* Help CTA band */
.help-band {
  position: relative;
  overflow: hidden;
  background: var(--color-bg-alt);
  border-top: 1px solid var(--color-border);
  border-bottom: 1px solid var(--color-border);
}
.help-band__inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 24px;
  flex-wrap: wrap;
}
.help-band h2 {
  font-family: var(--font-display);
  font-weight: 600;
  margin: 0 0 8px;
  font-size: 1.5rem;
  color: var(--color-heading);
}
.help-band p { margin: 0; color: var(--color-text-muted); }

.card--cta {
  padding: 38px 42px;
  background: var(--color-surface);
  border: 1px solid var(--color-border);
  border-radius: var(--radius);
}

/* Steps — mürekkep damgası numaralar */
.steps {
  list-style: none;
  margin: 0;
  padding: 0;
  counter-reset: step;
  display: grid;
  gap: 22px;
}
.steps li {
  counter-increment: step;
  display: flex;
  gap: 18px;
  align-items: flex-start;
}
.steps li strong {
  font-family: var(--font-display);
  font-weight: 600;
  font-size: 1.08rem;
  color: var(--color-heading);
}
.steps li::before {
  content: counter(step, decimal-leading-zero);
  font-family: var(--font-mono);
  font-weight: 600;
  flex: none;
  width: 38px;
  height: 38px;
  border-radius: 50%;
  border: 1.5px solid var(--color-primary-deep);
  color: var(--color-primary-deep);
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 0.85rem;
}

/* Footer */
.site-footer {
  position: relative;
  overflow: hidden;
  border-top: 1px solid var(--color-border);
  padding: 40px 0;
  margin-top: 40px;
}
.site-footer__inner {
  position: relative;
  z-index: 1;
  display: flex;
  justify-content: space-between;
  align-items: center;
  flex-wrap: wrap;
  gap: 16px;
  color: var(--color-text-muted);
  font-size: 0.9rem;
}
.brand--footer .brand__word { font-size: 1.05rem; }
.site-footer a { color: var(--color-text-muted); }
.site-footer a:hover { color: var(--color-primary-deep); }

/* ===== Yardım Merkezi ===== */

.help-hero {
  padding: 52px 0 30px;
  text-align: center;
}
.help-hero .eyebrow { justify-content: center; }
.help-hero .eyebrow::before { display: none; }
.help-hero h1 { margin-bottom: 10px; }
.help-hero p { color: var(--color-text-muted); max-width: 52ch; margin: 0 auto 28px; }

.search-box {
  max-width: 560px;
  margin: 0 auto;
  position: relative;
}
.search-box input {
  width: 100%;
  padding: 15px 20px 15px 46px;
  border-radius: 999px;
  border: 1px solid var(--color-border);
  background: var(--color-surface);
  font-size: 1rem;
  font-family: var(--font-body);
  color: var(--color-text);
  transition: border-color 0.15s ease, box-shadow 0.15s ease;
}
.search-box input:focus {
  outline: none;
  border-color: var(--color-primary-deep);
  box-shadow: 0 0 0 3px rgba(254, 196, 9, 0.28);
}
.search-box::before {
  content: "";
  position: absolute;
  left: 18px;
  top: 50%;
  width: 16px;
  height: 16px;
  transform: translateY(-50%);
  opacity: 0.5;
  background: currentColor;
  -webkit-mask: url('data:image/svg+xml,<svg xmlns="http://www.w3.org/2000/svg" viewBox="0 0 24 24" fill="none" stroke="black" stroke-width="2.2" stroke-linecap="round"><circle cx="11" cy="11" r="7"/><path d="m21 21-4.3-4.3"/></svg>') center / contain no-repeat;
  mask: url('data:image/svg+xml,<svg xmlns="http://www.w3.org/2000/svg" viewBox="0 0 24 24" fill="none" stroke="black" stroke-width="2.2" stroke-linecap="round"><circle cx="11" cy="11" r="7"/><path d="m21 21-4.3-4.3"/></svg>') center / contain no-repeat;
}

.help-layout {
  display: grid;
  grid-template-columns: 220px 1fr;
  gap: 40px;
  align-items: start;
  padding-bottom: 64px;
}

.help-toc {
  position: sticky;
  top: 90px;
  display: flex;
  flex-direction: column;
  gap: 4px;
}
.help-toc a {
  padding: 9px 12px;
  border-radius: 6px;
  color: var(--color-text-muted);
  font-size: 0.92rem;
  font-weight: 500;
}
.help-toc a:hover { background: var(--color-bg-alt); text-decoration: none; color: var(--color-text); }
.help-toc a.is-active { background: var(--color-bg-alt); color: var(--color-primary-deep); }

.help-category {
  margin-bottom: 44px;
  scroll-margin-top: 90px;
}
.help-category > h2 {
  font-family: var(--font-display);
  font-weight: 600;
  font-size: 1.4rem;
  color: var(--color-heading);
  margin: 0 0 6px;
  display: flex;
  align-items: center;
  gap: 10px;
}
.help-category > p.help-category-desc {
  color: var(--color-text-muted);
  margin: 0 0 20px;
  font-size: 0.95rem;
}

.help-article {
  background: var(--color-surface);
  border: 1px solid var(--color-border);
  border-radius: var(--radius);
  margin-bottom: 12px;
  overflow: hidden;
  scroll-margin-top: 90px;
}
.help-article summary {
  cursor: pointer;
  list-style: none;
  padding: 18px 22px;
  font-weight: 600;
  font-size: 1rem;
  color: var(--color-heading);
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
}
.help-article summary::-webkit-details-marker { display: none; }
.help-article summary::after {
  content: "+";
  flex: none;
  font-size: 1.3rem;
  font-weight: 400;
  color: var(--color-text-muted);
  transition: transform 0.15s ease;
}
.help-article[open] summary::after { content: "–"; }
.help-article .help-article-body {
  padding: 0 22px 22px;
  color: var(--color-text);
}
.help-article .help-article-body p { color: var(--color-text-muted); }
.help-article .help-article-body ol,
.help-article .help-article-body ul {
  padding-left: 20px;
  color: var(--color-text-muted);
}
.help-article .help-article-body li { margin-bottom: 6px; }
.help-article .help-article-body strong { color: var(--color-text); }
.help-article .tip {
  background: var(--color-bg-alt);
  border-radius: 8px;
  padding: 12px 16px;
  font-size: 0.9rem;
  color: var(--color-text);
  margin-top: 12px;
}

.help-article[data-hidden="true"] { display: none; }
.help-category[data-hidden="true"] { display: none; }

.no-results {
  display: none;
  text-align: center;
  color: var(--color-text-muted);
  padding: 40px 0;
}
.no-results.is-visible { display: block; }

/* Responsive */
@media (max-width: 860px) {
  .hero__inner { grid-template-columns: 1fr; }
  .hero__art { min-height: 260px; order: -1; }
  .seal { width: 210px; height: 210px; }
  .grid--3, .grid--4 { grid-template-columns: repeat(2, 1fr); }
  .help-layout { grid-template-columns: 1fr; }
  .help-toc {
    position: static;
    flex-direction: row;
    flex-wrap: wrap;
    margin-bottom: 8px;
  }
  .nav { display: none; }
}

@media (max-width: 520px) {
  .grid--3, .grid--4 { grid-template-columns: 1fr; }
  .hero { padding: 52px 0 40px; }
  .card--cta { padding: 28px 24px; flex-direction: column; align-items: flex-start; }
}

@media (prefers-color-scheme: dark) {
  :root {
    --color-bg: #170f08;
    --color-bg-alt: #1f150b;
    --color-surface: #1f150b;
    --color-text: #f1e6cf;
    --color-text-muted: #ab9c7e;
    --color-primary-ink: #170f08;
    --color-heading: #f7e7bd;
    --color-border: #382a13;
    --color-accent-bg: #1a2415;
    --shadow-sm: 0 1px 2px rgba(0,0,0,0.35);
    --shadow-md: 0 10px 26px rgba(0,0,0,0.5);
  }
  .site-header { background: rgba(23, 15, 8, 0.92); }
  .store-badge { background: var(--color-primary); color: var(--color-primary-ink); }
  .store-badge em { color: rgba(28,23,18,0.65); }
  .store-badge:hover { background: #fff; }
}
