/* RADLE web — tek stil dosyası. Renkler uygulama ikonunun sıcak paletinden. */

:root {
  --bg: #fbf6f0;
  --bg-tint: #f5ebe0;
  --surface: #ffffff;
  --ink: #2a2522;
  --ink-soft: #5a4f45;
  --muted: #7d7065;
  --line: #eadfd2;
  --brand: #a9532f;
  --brand-hover: #8f4425;
  --brand-soft: #f8e5d9;
  --on-brand: #ffffff;
  --shadow: 0 1px 2px rgba(74, 45, 28, 0.06), 0 12px 32px rgba(74, 45, 28, 0.08);
  --radius: 22px;
  --rounded: ui-rounded, "SF Pro Rounded", "Nunito", system-ui, -apple-system, "Segoe UI", Roboto, sans-serif;
  --sans: system-ui, -apple-system, "Segoe UI", Roboto, "Helvetica Neue", Arial, sans-serif;
  color-scheme: light dark;
}

@media (prefers-color-scheme: dark) {
  :root {
    --bg: #17130f;
    --bg-tint: #1e1914;
    --surface: #231d18;
    --ink: #f5eee6;
    --ink-soft: #d3c5b7;
    --muted: #a39587;
    --line: #3a3028;
    --brand: #e9997a;
    --brand-hover: #f2ad92;
    --brand-soft: #3a2920;
    --on-brand: #1b120d;
    --shadow: 0 1px 2px rgba(0, 0, 0, 0.3), 0 12px 32px rgba(0, 0, 0, 0.35);
  }
}

*,
*::before,
*::after {
  box-sizing: border-box;
}

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

body {
  margin: 0;
  background: var(--bg);
  color: var(--ink);
  font-family: var(--sans);
  font-size: 17px;
  line-height: 1.6;
  -webkit-font-smoothing: antialiased;
}

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

a {
  color: var(--brand);
  text-underline-offset: 3px;
}

a:hover {
  color: var(--brand-hover);
}

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

h1,
h2,
h3 {
  font-family: var(--rounded);
  line-height: 1.15;
  letter-spacing: -0.02em;
  margin: 0 0 0.5em;
  text-wrap: balance;
}

h1 {
  font-size: clamp(2.1rem, 5.2vw, 3.5rem);
  font-weight: 800;
}

h2 {
  font-size: clamp(1.6rem, 3.4vw, 2.3rem);
  font-weight: 800;
}

h3 {
  font-size: 1.15rem;
  font-weight: 700;
}

p {
  margin: 0 0 1em;
}

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

.wrap--narrow {
  width: min(740px, 100% - 40px);
}

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

.eyebrow {
  font-family: var(--rounded);
  font-weight: 700;
  font-size: 0.9rem;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  color: var(--brand);
  margin-bottom: 0.9em;
}

.lead {
  font-size: clamp(1.08rem, 1.8vw, 1.25rem);
  color: var(--ink-soft);
  max-width: 60ch;
}

/* ── Düğmeler ─────────────────────────────────────────────── */

.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 48px;
  padding: 0 22px;
  border-radius: 999px;
  font-family: var(--rounded);
  font-weight: 700;
  font-size: 1rem;
  text-decoration: none;
  border: 2px solid transparent;
  transition: transform 0.15s ease, background-color 0.15s ease, border-color 0.15s ease;
}

.btn:hover {
  transform: translateY(-1px);
}

.btn--primary {
  background: var(--brand);
  color: var(--on-brand);
}

.btn--primary:hover {
  background: var(--brand-hover);
  color: var(--on-brand);
}

.btn--ghost {
  border-color: var(--line);
  color: var(--ink);
  background: var(--surface);
}

.btn--ghost:hover {
  border-color: var(--brand);
  color: var(--ink);
}

.btn--sm {
  min-height: 40px;
  padding: 0 16px;
  font-size: 0.95rem;
}

.store {
  display: flex;
  flex-wrap: wrap;
  gap: 12px;
  margin: 1.6em 0 0.9em;
}

.store--compact {
  margin: 0.9em 0 0;
}

.store--compact .btn {
  min-height: 42px;
  padding: 0 16px;
  font-size: 0.93rem;
}

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

/* ── Üst / alt ────────────────────────────────────────────── */

.site-header {
  position: sticky;
  top: 0;
  z-index: 10;
  background: color-mix(in srgb, var(--bg) 86%, transparent);
  backdrop-filter: saturate(1.4) blur(14px);
  -webkit-backdrop-filter: saturate(1.4) blur(14px);
  border-bottom: 1px solid var(--line);
}

.site-header {
  transition: box-shadow 0.3s ease, border-color 0.3s ease;
}

.site-header.is-scrolled {
  box-shadow: 0 8px 30px rgba(74, 45, 28, 0.08);
}

.site-header__in {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
  min-height: 64px;
}

.brand {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  font-family: var(--rounded);
  font-weight: 800;
  font-size: 1.2rem;
  letter-spacing: 0.06em;
  color: var(--ink);
  text-decoration: none;
}

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

.nav {
  display: flex;
  align-items: center;
  gap: clamp(12px, 2.4vw, 26px);
  font-weight: 600;
  font-size: 0.97rem;
}

.nav a:not(.btn) {
  color: var(--ink-soft);
  text-decoration: none;
}

.nav a:not(.btn):hover {
  color: var(--brand);
}

@media (max-width: 560px) {
  .nav a[href$="#features"] {
    display: none;
  }
}

.site-footer {
  border-top: 1px solid var(--line);
  padding: 44px 0 30px;
  margin-top: 40px;
  font-size: 0.95rem;
}

.site-footer__in {
  display: flex;
  flex-wrap: wrap;
  justify-content: space-between;
  gap: 24px;
}

.site-footer__links {
  display: flex;
  flex-wrap: wrap;
  gap: 8px 24px;
  align-items: flex-start;
}

.site-footer__links a {
  color: var(--ink-soft);
  text-decoration: none;
}

.site-footer__links a:hover {
  color: var(--brand);
  text-decoration: underline;
}

.fineprint {
  color: var(--muted);
  font-size: 0.85rem;
  margin: 22px 0 0;
}

/* ── Ana sayfa ────────────────────────────────────────────── */

.hero {
  position: relative;
  overflow: hidden;
  padding: clamp(40px, 7vw, 88px) 0 0;
  background:
    radial-gradient(60% 70% at 85% 20%, color-mix(in srgb, var(--brand-soft) 90%, transparent), transparent 70%),
    radial-gradient(40% 50% at 0% 100%, color-mix(in srgb, var(--brand-soft) 60%, transparent), transparent 70%);
}

.hero__in {
  display: grid;
  grid-template-columns: 1.1fr 0.9fr;
  gap: clamp(24px, 5vw, 64px);
  align-items: center;
}

.hero__copy {
  padding-bottom: clamp(32px, 6vw, 80px);
}

.hero__phone {
  align-self: end;
  justify-self: center;
  max-width: 380px;
  /* Telefonun alt kısmı kesilerek bölüm sınırına oturur. */
  margin-bottom: -18%;
  filter: drop-shadow(0 30px 50px rgba(74, 45, 28, 0.22));
}

@media (max-width: 820px) {
  .hero__in {
    grid-template-columns: 1fr;
  }

  .hero__copy {
    padding-bottom: 8px;
  }

  .hero__phone {
    max-width: 290px;
    margin-bottom: -34%;
  }
}

.section {
  padding: clamp(56px, 8vw, 104px) 0;
}

.section--flush {
  padding-top: 8px;
}

.section--tint {
  background: var(--bg-tint);
}

.section__sub {
  color: var(--ink-soft);
  font-size: 1.1rem;
  max-width: 58ch;
  margin-bottom: 2em;
}

.features {
  list-style: none;
  padding: 0;
  margin: 0;
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(270px, 1fr));
  gap: 18px;
}

.feature {
  background: var(--surface);
  border: 1px solid var(--line);
  border-radius: var(--radius);
  padding: 26px 24px 20px;
}

.feature__icon {
  display: grid;
  place-items: center;
  width: 52px;
  height: 52px;
  border-radius: 16px;
  background: var(--brand-soft);
  font-size: 1.6rem;
  margin-bottom: 16px;
}

.feature p {
  color: var(--ink-soft);
  margin: 0 0 0.4em;
  font-size: 0.98rem;
}

.cta-band {
  text-align: center;
  background: var(--bg-tint);
  border-radius: 36px;
  width: min(1120px, 100% - 40px);
  margin: 0 auto;
}

.cta-band p {
  color: var(--ink-soft);
  font-size: 1.1rem;
}

.cta-band .store {
  justify-content: center;
}

.more {
  margin-top: 28px;
}

/* ── Blog listesi ─────────────────────────────────────────── */

.page-head {
  padding: clamp(36px, 6vw, 72px) 0 24px;
}

.chips {
  display: flex;
  gap: 10px;
  margin: 1.4em 0 1.8em;
  overflow-x: auto;
  padding-bottom: 6px;
  scrollbar-width: none;
}

.chips::-webkit-scrollbar {
  display: none;
}

.chip {
  flex: none;
  padding: 9px 16px;
  border-radius: 999px;
  border: 1.5px solid var(--line);
  background: var(--surface);
  color: var(--ink);
  font-family: var(--rounded);
  font-weight: 600;
  font-size: 0.95rem;
  text-decoration: none;
}

.chip:hover {
  border-color: var(--brand);
  color: var(--ink);
}

.chip--on {
  background: var(--brand);
  border-color: var(--brand);
  color: var(--on-brand);
}

.chip--on:hover {
  color: var(--on-brand);
}

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

.card {
  background: var(--surface);
  border: 1px solid var(--line);
  border-radius: var(--radius);
  overflow: hidden;
  transition: transform 0.18s ease, box-shadow 0.18s ease;
}

.card:hover {
  transform: translateY(-3px);
  box-shadow: var(--shadow);
}

.card__link {
  display: block;
  color: inherit;
  text-decoration: none;
  height: 100%;
}

.card__link:hover {
  color: inherit;
}

.card__cover {
  position: relative;
  aspect-ratio: 1200 / 630;
  background: var(--bg-tint);
}

.card__cover img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.card__body {
  padding: 18px 20px 20px;
}

.card__body h3 {
  font-size: 1.22rem;
  margin-bottom: 0.4em;
}

.card__body p:last-child {
  color: var(--ink-soft);
  font-size: 0.96rem;
  margin: 0;
  display: -webkit-box;
  -webkit-line-clamp: 3;
  -webkit-box-orient: vertical;
  overflow: hidden;
}

.card__meta {
  font-size: 0.85rem;
  color: var(--muted);
  margin-bottom: 0.6em;
}

.cat {
  font-family: var(--rounded);
  font-weight: 700;
  color: var(--brand);
}

.badge {
  position: absolute;
  left: 14px;
  top: 14px;
  padding: 5px 12px;
  border-radius: 999px;
  background: rgba(255, 255, 255, 0.92);
  color: #2a2522;
  font-family: var(--rounded);
  font-weight: 700;
  font-size: 0.85rem;
}

.badge--draft {
  left: auto;
  right: 14px;
  background: #2a2522;
  color: #fff;
}

.badge--inline {
  position: static;
  background: var(--brand-soft);
  color: var(--ink);
}

.badge--draft.badge--inline {
  background: var(--ink);
  color: var(--bg);
}

.empty {
  color: var(--muted);
  padding: 40px 0;
}

/* ── Yazı ─────────────────────────────────────────────────── */

.post {
  padding: clamp(28px, 5vw, 56px) 0 24px;
}

.crumbs {
  font-size: 0.92rem;
  margin-bottom: 1.2em;
  color: var(--muted);
}

.crumbs a {
  color: var(--ink-soft);
  text-decoration: none;
}

.crumbs a:hover {
  text-decoration: underline;
}

.post__tags {
  display: flex;
  align-items: center;
  flex-wrap: wrap;
  gap: 10px;
  margin-bottom: 0.9em;
  font-size: 0.95rem;
}

.post__head h1 {
  font-size: clamp(1.9rem, 4.6vw, 2.9rem);
}

.post__meta {
  color: var(--muted);
  font-size: 0.92rem;
}

.post__cover {
  margin: 1.4em 0 1.8em;
}

.post__cover img {
  width: 100%;
  aspect-ratio: 1200 / 630;
  object-fit: cover;
  border-radius: var(--radius);
}

.fig {
  margin: 1.8em 0;
}

.fig img {
  width: 100%;
  border-radius: 18px;
}

.post__cover figcaption,
.fig figcaption {
  margin-top: 8px;
  font-size: 0.78rem;
  line-height: 1.4;
  color: var(--muted);
  overflow-wrap: anywhere;
}

.post__cover figcaption a,
.fig figcaption a {
  color: inherit;
}

.takeaways {
  background: var(--brand-soft);
  border-radius: var(--radius);
  padding: 22px 26px 12px;
  margin-bottom: 2em;
}

.takeaways h2 {
  font-size: 1.15rem;
  margin-bottom: 0.6em;
}

.takeaways ul {
  margin: 0;
  padding-left: 1.2em;
}

.takeaways li {
  margin-bottom: 0.55em;
}

.prose {
  font-size: 1.09rem;
  line-height: 1.75;
}

.prose h2 {
  font-size: clamp(1.4rem, 3vw, 1.75rem);
  margin: 1.9em 0 0.6em;
  scroll-margin-top: 84px;
}

.prose h3 {
  font-size: 1.2rem;
  margin: 1.6em 0 0.5em;
  scroll-margin-top: 84px;
}

.prose ul,
.prose ol {
  padding-left: 1.3em;
  margin: 0 0 1.2em;
}

.prose li {
  margin-bottom: 0.5em;
}

.prose li::marker {
  color: var(--brand);
  font-weight: 700;
}

.prose strong {
  font-weight: 700;
}

.prose blockquote {
  margin: 1.4em 0;
  padding: 14px 20px;
  border-left: 4px solid var(--brand);
  background: var(--surface);
  border-radius: 0 14px 14px 0;
  color: var(--ink-soft);
}

.prose blockquote p:last-child {
  margin: 0;
}

.table-wrap {
  overflow-x: auto;
  margin: 1.4em 0;
  border: 1px solid var(--line);
  border-radius: 16px;
  background: var(--surface);
}

.prose table {
  border-collapse: collapse;
  width: 100%;
  font-size: 0.97rem;
  line-height: 1.5;
}

.prose th,
.prose td {
  text-align: left;
  padding: 11px 14px;
  border-bottom: 1px solid var(--line);
  vertical-align: top;
}

.prose th {
  font-family: var(--rounded);
  background: var(--bg-tint);
  white-space: nowrap;
}

.prose tr:last-child td {
  border-bottom: 0;
}

.app-cta {
  display: flex;
  gap: 18px;
  align-items: flex-start;
  background: var(--surface);
  border: 1px solid var(--line);
  border-radius: var(--radius);
  padding: 24px;
  margin: 2.4em 0;
  box-shadow: var(--shadow);
}

.app-cta img {
  border-radius: 14px;
  flex: none;
}

.app-cta h2 {
  font-size: 1.2rem;
  margin-bottom: 0.3em;
}

.app-cta p {
  color: var(--ink-soft);
  margin: 0;
}

.sources {
  margin: 2.4em 0 1.4em;
  font-size: 0.95rem;
}

.sources h2,
.related h2 {
  font-size: 1.25rem;
}

.sources ol {
  padding-left: 1.3em;
  margin: 0;
}

.sources li {
  margin-bottom: 0.5em;
  overflow-wrap: anywhere;
}

.disclaimer {
  border: 1px dashed var(--line);
  border-radius: 16px;
  padding: 16px 20px;
  font-size: 0.92rem;
  color: var(--ink-soft);
}

.disclaimer p {
  margin: 0.3em 0 0;
}

.related {
  margin-top: 3em;
}

/* Uygulama içi görünüm: site kabuğu yok, kenar boşlukları dar. */
.bare .post {
  padding-top: 16px;
}

.bare .post__cover {
  margin-top: 1em;
}

/* ── Vurgu cümlesi ────────────────────────────────────────── */

.statement {
  padding: clamp(110px, 20vw, 220px) 0 clamp(40px, 8vw, 90px);
}

.statement p {
  font-family: var(--rounded);
  font-weight: 800;
  font-size: clamp(1.9rem, 5.4vw, 4rem);
  line-height: 1.12;
  letter-spacing: -0.025em;
  max-width: 19ch;
  margin: 0 auto;
  text-align: center;
  text-wrap: balance;
}

/* ── Kaydırmalı sahne ─────────────────────────────────────── */

.scrolly {
  margin-top: 2.4em;
}

.scrolly__stage {
  display: none;
}

.step {
  text-align: center;
  padding: 28px 0 44px;
}

.step__media img {
  max-width: 280px;
  margin: 0 auto 22px;
  filter: drop-shadow(0 22px 40px rgba(74, 45, 28, 0.2));
}

.step__num {
  font-family: var(--rounded);
  font-weight: 800;
  font-size: 0.95rem;
  letter-spacing: 0.12em;
  color: var(--brand);
  margin: 0 0 0.5em;
}

.step h3 {
  font-size: clamp(1.5rem, 3.2vw, 2.4rem);
  font-weight: 800;
}

.step p:last-child {
  color: var(--ink-soft);
  font-size: clamp(1.02rem, 1.5vw, 1.2rem);
  max-width: 36ch;
  margin: 0 auto;
}

@media (min-width: 900px) {
  .js .scrolly {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: clamp(40px, 7vw, 110px);
    align-items: start;
    margin-top: 0;
  }

  .js .scrolly__stage {
    display: grid;
    place-items: center;
    position: sticky;
    top: max(84px, calc(50vh - 340px));
    height: min(680px, 80vh);
    --glow: #7a72e0;
    --enter: 1;
    transform: scale(calc(0.86 + var(--enter) * 0.14));
    transform-origin: 50% 60%;
  }

  .js .scrolly__glow {
    position: absolute;
    inset: 12% 8%;
    border-radius: 50%;
    background: var(--glow);
    opacity: 0.34;
    filter: blur(80px);
    transition: background-color 0.9s ease;
  }

  .js .scrolly__stage img {
    position: absolute;
    height: 100%;
    width: auto;
    max-width: none;
    opacity: 0;
    transform: translateY(26px) scale(0.95);
    transition: opacity 0.55s ease, transform 0.9s cubic-bezier(0.2, 0.7, 0.2, 1);
    filter: drop-shadow(0 30px 50px rgba(40, 24, 14, 0.28));
  }

  .js .scrolly__stage img.is-on {
    opacity: 1;
    transform: none;
  }

  .js .step {
    min-height: 82vh;
    display: flex;
    flex-direction: column;
    justify-content: center;
    text-align: left;
    padding: 0;
    opacity: 0.22;
    transition: opacity 0.5s ease;
  }

  .js .step.is-on {
    opacity: 1;
  }

  .js .step__media {
    display: none;
  }

  .js .step p:last-child {
    margin: 0;
  }
}

/* ── Okuma ilerlemesi ─────────────────────────────────────── */

.progress {
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  height: 3px;
  z-index: 20;
  background: var(--brand);
  transform-origin: 0 50%;
  transform: scaleX(var(--p, 0));
}

/* ── Hareket ──────────────────────────────────────────────────
   Hepsi "hareket azaltma" kapalıyken ve JS çalışırken devreye girer;
   aksi halde içerik düz haliyle görünür. */

@media (prefers-reduced-motion: no-preference) {
  /* Açılış: kahraman kademeli yükselir. */
  @keyframes rise {
    from {
      opacity: 0;
      transform: translateY(26px);
    }
  }

  @keyframes rise-phone {
    from {
      opacity: 0;
      transform: translateY(90px) scale(0.94);
    }
  }

  .hero__copy > * {
    animation: rise 0.9s cubic-bezier(0.2, 0.7, 0.2, 1) both;
  }

  .hero__copy > :nth-child(2) {
    animation-delay: 0.08s;
  }

  .hero__copy > :nth-child(3) {
    animation-delay: 0.16s;
  }

  .hero__copy > :nth-child(4) {
    animation-delay: 0.24s;
  }

  .hero__copy > :nth-child(5) {
    animation-delay: 0.32s;
  }

  .hero__phone {
    animation: rise-phone 1.2s cubic-bezier(0.2, 0.7, 0.2, 1) 0.15s both;
  }

  /* Kaydırdıkça: metin geride kalıp solar, telefon hafifçe küçülür. */
  .js .hero__copy {
    transform: translateY(calc(var(--p, 0) * 46px));
    opacity: calc(1 - var(--p, 0) * 0.85);
  }

  .js .hero__phone img {
    transform: translateY(calc(var(--p, 0) * -52px)) scale(calc(1 - var(--p, 0) * 0.06));
    transform-origin: 50% 100%;
    will-change: transform;
  }

  /* Görünürlüğe girince belirme. Geçiş yerine animasyon: bittiğinde öğede
     transform kalmaz, kartların kendi hover geçişi olduğu gibi çalışır. */
  @keyframes reveal {
    from {
      opacity: 0;
      transform: translateY(34px);
    }
  }

  @keyframes reveal-scale {
    from {
      opacity: 0;
      transform: scale(0.94);
    }
  }

  .js [data-reveal] {
    opacity: 0;
  }

  .js [data-reveal].is-in {
    opacity: 1;
    animation: reveal 0.9s cubic-bezier(0.2, 0.7, 0.2, 1) both;
    animation-delay: calc(var(--i, 0) * 90ms);
  }

  .js [data-reveal='scale'].is-in {
    animation-name: reveal-scale;
  }

  .feature {
    transition: transform 0.25s ease, box-shadow 0.25s ease;
  }

  .feature:hover {
    transform: translateY(-4px);
    box-shadow: var(--shadow);
  }

  .feature__icon {
    transition: transform 0.35s cubic-bezier(0.3, 1.6, 0.5, 1);
  }

  .feature:hover .feature__icon {
    transform: scale(1.12) rotate(-6deg);
  }

  .js [data-statement] span {
    opacity: 0.14;
    transition: opacity 0.2s linear;
  }
}

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