:root {
  --font: "Poppins", -apple-system, BlinkMacSystemFont, "Segoe UI", system-ui, sans-serif;
  --bg: #f7faff;
  --bg-2: #edf3ff;
  --text: #090c18;
  --muted: rgba(9, 12, 24, 0.66);
  --line: rgba(89, 158, 255, 0.14);
  --blue: #599eff;
  --blue-soft: #9ed1ff;
  --green: #34c759;
  --radius: 24px;
  color-scheme: light;
}

* {
  box-sizing: border-box;
}

html,
body {
  min-height: 100%;
}

body {
  margin: 0;
  font-family: var(--font);
  color: var(--text);
  min-height: 100vh;
  min-height: 100dvh;
  background: radial-gradient(900px 500px at 20% 2%, rgba(158, 209, 255, 0.32), transparent 62%),
    radial-gradient(800px 440px at 82% 8%, rgba(89, 158, 255, 0.18), transparent 58%),
    linear-gradient(180deg, #ffffff 0%, #f9fcff 30%, #f5f9ff 62%, var(--bg) 82%, var(--bg-2) 100%);
  background-color: var(--bg-2);
  background-repeat: no-repeat;
  overflow-x: hidden;
}

body::before,
body::after {
  content: "";
  position: fixed;
  inset: -18% -10%;
  pointer-events: none;
  z-index: 0;
}

body::before {
  background: conic-gradient(
    from 210deg at 50% 50%,
    transparent 0deg,
    rgba(158, 209, 255, 0.26) 38deg,
    transparent 78deg,
    rgba(89, 158, 255, 0.16) 118deg,
    transparent 172deg,
    rgba(158, 209, 255, 0.2) 232deg,
    transparent 292deg,
    rgba(89, 158, 255, 0.14) 334deg,
    transparent 360deg
  );
  filter: blur(48px) saturate(120%);
  opacity: 0.46;
  animation: shineSweep 28s ease-in-out infinite alternate;
}

body::after {
  background: radial-gradient(520px 260px at 18% 22%, rgba(255, 255, 255, 0.66), transparent 66%),
    radial-gradient(440px 240px at 82% 18%, rgba(255, 255, 255, 0.42), transparent 68%);
  filter: blur(20px);
  opacity: 0.62;
}

@keyframes shineSweep {
  0% {
    transform: translate3d(-2.2%, -1.6%, 0) rotate(-3deg) scale(1);
  }
  100% {
    transform: translate3d(2%, 1.4%, 0) rotate(3deg) scale(1.03);
  }
}

@keyframes softEnter {
  from {
    opacity: 0;
    transform: translate3d(0, 10px, 0);
  }
  to {
    opacity: 1;
    transform: translate3d(0, 0, 0);
  }
}

.page {
  position: relative;
  z-index: 1;
  min-height: 100dvh;
  padding: clamp(18px, 3vw, 40px);
}

.wrap {
  width: min(1240px, 96vw);
  min-height: 100%;
  height: auto;
  margin: 0 auto;
  display: grid;
  grid-template-rows: auto 1fr auto;
  gap: clamp(20px, 3vh, 34px);
}

.topbar {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 14px;
}

.brand {
  display: inline-flex;
  align-items: center;
  gap: 14px;
  padding: 8px 2px;
  color: var(--text);
  text-decoration: none;
  font-size: clamp(18px, 1.35vw, 24px);
  font-weight: 700;
  letter-spacing: 0.01em;
}

.brand img {
  width: clamp(44px, 3vw, 54px);
  height: clamp(44px, 3vw, 54px);
  border-radius: 12px;
  object-fit: contain;
  box-shadow: 0 10px 24px rgba(89, 158, 255, 0.2), 0 8px 18px rgba(0, 0, 0, 0.16);
}

.card {
  width: min(940px, 100%);
  margin: 0 auto;
  padding: clamp(18px, 3vw, 34px);
  border-radius: 26px;
  border: 1px solid rgba(89, 158, 255, 0.14);
  background: rgba(255, 255, 255, 0.78);
  box-shadow: 0 20px 60px rgba(0, 0, 0, 0.12);
  backdrop-filter: blur(10px);
  animation: softEnter 600ms cubic-bezier(0.2, 0.8, 0.2, 1) both;
}

h1 {
  margin: 0 0 10px;
  font-size: clamp(30px, 3.2vw, 44px);
  letter-spacing: -0.02em;
  line-height: 1.1;
}

.meta {
  margin: 0 0 18px;
  color: var(--muted);
  font-weight: 600;
  font-size: 13px;
}

.lead {
  margin: 0 0 16px;
  color: rgba(9, 12, 24, 0.78);
  line-height: 1.7;
  font-size: 16px;
}

h2 {
  margin: 24px 0 10px;
  font-size: 18px;
  letter-spacing: -0.01em;
}

h3 {
  margin: 18px 0 8px;
  font-size: 15px;
  letter-spacing: -0.01em;
  color: rgba(9, 12, 24, 0.86);
}

p {
  margin: 10px 0;
  color: rgba(9, 12, 24, 0.78);
  line-height: 1.7;
}

ul,
ol {
  margin: 10px 0 14px;
  padding-left: 18px;
  color: rgba(9, 12, 24, 0.78);
  line-height: 1.7;
}

li {
  margin: 6px 0;
}

.callout {
  margin: 16px 0;
  padding: 14px 16px;
  border-radius: 18px;
  border: 1px solid rgba(89, 158, 255, 0.22);
  background: rgba(158, 209, 255, 0.18);
  color: rgba(9, 12, 24, 0.86);
}

.callout.warning {
  border-color: rgba(255, 59, 48, 0.28);
  background: rgba(255, 59, 48, 0.12);
}

.store-row {
  margin-top: 14px;
}

.store-cta {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  padding: 12px 22px;
  border-radius: 999px;
  background: linear-gradient(180deg, #0f152d, #090d1f);
  color: #fff;
  text-decoration: none;
  border: 1px solid rgba(89, 158, 255, 0.32);
  box-shadow: 0 12px 30px rgba(0, 0, 0, 0.24);
  font-size: 16px;
  font-weight: 700;
}

.store-cta:focus-visible {
  outline: 3px solid rgba(89, 158, 255, 0.55);
  outline-offset: 3px;
}

.site-footer {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 14px;
  padding: 8px 2px 4px;
  color: var(--muted);
  font-size: 13px;
}

.backlink-section {
  display: flex;
  justify-content: center;
  padding: 8px 0 0;
}

.backlink-card {
  width: 100%;
  max-width: 920px;
  display: flex;
  align-items: center;
  justify-content: center;
  flex-wrap: wrap;
  gap: 12px;
  padding: 12px 14px;
  border: 1px solid rgba(89, 158, 255, 0.22);
  background: rgba(255, 255, 255, 0.45);
  backdrop-filter: blur(10px);
  -webkit-backdrop-filter: blur(10px);
  border-radius: calc(var(--radius) - 6px);
  --badge-cols: 6;
  --badge-height: 43px;
}

.backlink-badges {
  width: 100%;
  display: grid;
  grid-template-columns: repeat(var(--badge-cols), minmax(0, 1fr));
  justify-items: center;
  align-items: center;
  gap: 12px 12px;
}

.backlink-badges a,
.backlink-badge {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  text-decoration: none;
}

.backlink-badges img,
.backlink-badge img {
  display: block;
}

.backlink-badges > a > img {
  height: var(--badge-height);
  width: auto;
  max-width: 100%;
}

#fys-badge-6990410b58ee9c6cf94a00dc-1771061529161:hover .fys-badge-inner {
  transform: translateY(-1px);
  box-shadow: 0 6px 10px -2px rgba(0, 0, 0, 0.05), 0 3px 6px -2px rgba(0, 0, 0, 0.05);
}

.footer-links {
  display: inline-flex;
  align-items: center;
  gap: 14px;
}

.footer-links a {
  color: inherit;
  text-decoration: none;
}

.footer-links a:hover {
  color: var(--text);
}

a:focus-visible {
  outline: 2px solid rgba(89, 158, 255, 0.9);
  outline-offset: 2px;
  border-radius: 12px;
}

@media (max-width: 960px) {
  .topbar {
    justify-content: center;
  }

  .brand {
    justify-content: center;
    text-align: center;
    font-size: clamp(16px, 4.4vw, 20px);
    gap: 12px;
  }

  .site-footer {
    flex-direction: column;
    align-items: center;
    gap: 8px;
    font-size: 12.5px;
    text-align: center;
    width: 100%;
  }

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

  .backlink-card {
    padding: 12px;
    --badge-cols: 2;
  }
}

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

/* ═══════════════════════════════════════════════════════════════
   Article / template page (e.g. for-heavy-sleepers)
   Python convert.py ile üretilen sayfalar bu stilleri kullanır.
   ═══════════════════════════════════════════════════════════════ */

.article-page {
  --radius: 20px;
}

html:has(body.article-page) {
  scroll-behavior: smooth;
}

body.article-page {
  background: linear-gradient(180deg, #fff 0%, #f9fcff 30%, var(--bg) 70%, var(--bg-2) 100%);
  background-color: var(--bg-2);
  overflow-x: hidden;
}

/* .page .wrap yoksa (düz yapı): doğrudan çocukları ortala */
body.article-page > header.topbar,
body.article-page > section.hero,
body.article-page > main.content {
  box-sizing: border-box;
  padding-left: clamp(20px, 5vw, 40px);
  padding-right: clamp(20px, 5vw, 40px);
}

body.article-page > main.content {
  max-width: 900px;
  margin-left: auto;
  margin-right: auto;
}

body.article-page > section.hero {
  margin-left: auto;
  margin-right: auto;
}

body.article-page > footer.site-footer {
  max-width: 900px;
  margin-left: auto;
  margin-right: auto;
  padding-left: clamp(20px, 5vw, 40px);
  padding-right: clamp(20px, 5vw, 40px);
}

/* Article sayfada .page .wrap — tek sütun, ortada (kaymayı önler) */
body.article-page .page {
  padding: 0;
  min-height: auto;
}

body.article-page .wrap {
  display: block;
  width: 100%;
  max-width: 900px;
  margin: 0 auto;
  padding: 0 clamp(20px, 5vw, 40px);
  box-sizing: border-box;
  grid-template-rows: unset;
  gap: 0;
}

.article-page .topbar {
  position: sticky;
  top: 0;
  z-index: 100;
  justify-content: space-between;
  padding: 14px clamp(20px, 5vw, 64px);
  background: rgba(247, 250, 255, 0.88);
  backdrop-filter: blur(14px);
  -webkit-backdrop-filter: blur(14px);
}

.article-page .brand {
  gap: 10px;
  font-size: 17px;
}

.article-page .brand img {
  width: 36px;
  height: 36px;
  border-radius: 9px;
  box-shadow: 0 4px 12px rgba(89, 158, 255, 0.22);
}

.nav-cta {
  display: inline-flex;
  align-items: center;
  gap: 7px;
  padding: 9px 18px;
  border-radius: 999px;
  background: linear-gradient(180deg, #1a2240, #090d1f);
  color: #fff;
  text-decoration: none;
  font-size: 13px;
  font-weight: 700;
  border: 1px solid rgba(89, 158, 255, 0.28);
  white-space: nowrap;
}

.article-page .hero {
  max-width: 820px;
  margin: 0 auto;
  padding: clamp(48px, 7vw, 96px) clamp(20px, 5vw, 40px) clamp(32px, 5vw, 56px);
  text-align: center;
}

.article-page .breadcrumb {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  font-size: 12px;
  color: var(--muted);
  margin-bottom: 22px;
}

.article-page .breadcrumb a {
  color: var(--blue);
  text-decoration: none;
}

.article-page .breadcrumb span {
  opacity: 0.5;
}

.article-page .tag {
  display: inline-block;
  padding: 6px 14px;
  border-radius: 999px;
  background: rgba(89, 158, 255, 0.1);
  border: 1px solid rgba(89, 158, 255, 0.22);
  color: var(--blue);
  font-size: 12px;
  font-weight: 600;
  letter-spacing: 0.04em;
  text-transform: uppercase;
  margin-bottom: 18px;
}

.article-page .hero h1 {
  font-size: clamp(28px, 4.5vw, 52px);
  font-weight: 800;
  line-height: 1.1;
  letter-spacing: -0.025em;
  margin-bottom: 18px;
}

.article-page .hero-lead {
  font-size: clamp(15px, 1.8vw, 19px);
  color: var(--muted);
  line-height: 1.6;
  max-width: 640px;
  margin: 0 auto 32px;
}

.article-page .hero-cta {
  display: inline-flex;
  align-items: center;
  gap: 9px;
  padding: 14px 28px;
  border-radius: 999px;
  background: linear-gradient(180deg, #1a2240, #090d1f);
  color: #fff;
  text-decoration: none;
  font-size: 15px;
  font-weight: 700;
  border: 1px solid rgba(89, 158, 255, 0.3);
  box-shadow: 0 12px 32px rgba(0, 0, 0, 0.2);
  transition: transform 0.2s, box-shadow 0.2s;
}

.article-page .hero-cta:hover {
  transform: translateY(-2px);
  box-shadow: 0 16px 40px rgba(0, 0, 0, 0.26);
}

.article-page .hero-cta svg {
  width: 16px;
  height: 16px;
  fill: currentColor;
}

.article-page .content {
  max-width: 760px;
  margin: 0 auto;
  padding: 0 clamp(20px, 5vw, 40px) 80px;
}

.article-page .intro-block {
  background: rgba(255, 255, 255, 0.7);
  border: 1px solid var(--line);
  border-radius: var(--radius);
  padding: clamp(24px, 4vw, 40px);
  margin-bottom: 40px;
  backdrop-filter: blur(10px);
}

.article-page .intro-block p {
  font-size: 16px;
  line-height: 1.75;
  color: var(--muted);
}

.article-page .intro-block p + p {
  margin-top: 14px;
}

.article-page .content h2 {
  font-size: clamp(20px, 2.5vw, 26px);
  font-weight: 700;
  letter-spacing: -0.02em;
  margin: 48px 0 16px;
}

.article-page .content h3 {
  font-size: 17px;
  font-weight: 600;
  margin: 28px 0 10px;
}

.article-page .content p {
  font-size: 15px;
  line-height: 1.75;
  color: #2a2d3e;
  margin-bottom: 14px;
}

.article-page .reasons {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(220px, 1fr));
  gap: 16px;
  margin: 24px 0 40px;
}

.article-page .reason-card {
  background: #fff;
  border: 1px solid var(--line);
  border-radius: var(--radius);
  padding: 24px 20px;
  transition: transform 0.2s, box-shadow 0.2s;
}

.article-page .reason-card:hover {
  transform: translateY(-3px);
  box-shadow: 0 12px 32px rgba(89, 158, 255, 0.12);
}

.article-page .reason-icon {
  font-size: 28px;
  margin-bottom: 10px;
  display: block;
}

.article-page .reason-card h3 {
  margin: 0 0 8px;
  font-size: 15px;
}

.article-page .reason-card p {
  font-size: 13px;
  color: var(--muted);
  margin: 0;
}

.article-page .compare-wrap {
  overflow-x: auto;
  margin: 24px 0 40px;
  border-radius: var(--radius);
}

.article-page table {
  width: 100%;
  border-collapse: collapse;
  font-size: 14px;
  background: #fff;
}

.article-page thead th {
  padding: 14px 16px;
  text-align: left;
  font-size: 12px;
  font-weight: 700;
  letter-spacing: 0.05em;
  text-transform: uppercase;
  background: #090c18;
  color: #fff;
}

.article-page thead th:first-child {
  border-radius: 12px 0 0 0;
}

.article-page thead th:last-child {
  border-radius: 0 12px 0 0;
}

.article-page tbody tr {
  border-bottom: 1px solid var(--line);
}

.article-page tbody tr:last-child {
  border-bottom: none;
}

.article-page tbody tr:nth-child(even) {
  background: #f7faff;
}

.article-page tbody td {
  padding: 13px 16px;
  color: #2a2d3e;
  vertical-align: middle;
}

.article-page .check {
  color: var(--green);
  font-weight: 700;
}

.article-page .cross {
  color: #ff453a;
  font-weight: 700;
}

.article-page .highlight-row td {
  background: rgba(89, 158, 255, 0.07) !important;
  font-weight: 600;
}

.article-page .who-block {
  background: linear-gradient(135deg, rgba(89, 158, 255, 0.08), rgba(52, 199, 89, 0.06));
  border: 1px solid rgba(89, 158, 255, 0.18);
  border-radius: var(--radius);
  padding: clamp(24px, 4vw, 36px);
  margin: 40px 0;
}

.article-page .who-block h2 {
  margin-top: 0;
}

.article-page .who-list {
  list-style: none;
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
  gap: 10px;
  margin-top: 16px;
  padding-left: 0;
}

.article-page .who-list li {
  display: flex;
  align-items: flex-start;
  gap: 9px;
  font-size: 14px;
  line-height: 1.5;
  color: var(--text);
}

.article-page .who-list li::before {
  content: "✓";
  color: var(--green);
  font-weight: 700;
  flex-shrink: 0;
  margin-top: 1px;
}

/* Container: 3 ekran görünür, container genişliğine göre */
.article-page .screenshot-row {
  overflow: hidden;
  width: 100%;
  margin: 24px auto 40px;
  padding: 8px 0 16px;
  --screenshot-gap: 16px;
  --screenshot-slot: calc((100% - var(--screenshot-gap) * 2) / 3);
}

/* İç track: sağa doğru kayan şerit (sonsuz döngü için içerik 2x) */
.article-page .screenshot-track {
  display: flex;
  gap: var(--screenshot-gap);
  width: max-content;
  animation: screenshotSlide 35s linear infinite;
}

.article-page .screenshot-track:hover {
  animation-play-state: paused;
}

/* Sadece resim, kart/çerçeve yok */
.article-page .screenshot-track figure,
.article-page .screenshot-track figure.shot {
  margin: 0;
  padding: 0;
  flex-shrink: 0;
  width: var(--screenshot-slot);
  max-width: 210px;
  background: transparent !important;
  border: none !important;
  box-shadow: none !important;
  outline: none;
}

.article-page .screenshot-track figure img {
  width: 100%;
  height: auto;
  object-fit: contain;
  object-position: center;
  display: block;
  vertical-align: middle;
}

@keyframes screenshotSlide {
  0% {
    transform: translateX(0);
  }
  100% {
    transform: translateX(-50%);
  }
}

.article-page .faq {
  margin: 40px 0;
}

.article-page .faq-item {
  border: 1px solid var(--line);
  border-radius: 14px;
  margin-bottom: 10px;
  background: #fff;
  overflow: hidden;
}

.article-page .faq-q {
  width: 100%;
  background: none;
  border: none;
  padding: 18px 20px;
  text-align: left;
  font-family: var(--font);
  font-size: 15px;
  font-weight: 600;
  color: var(--text);
  cursor: pointer;
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 12px;
}

.article-page .faq-q svg {
  width: 18px;
  height: 18px;
  stroke: var(--blue);
  flex-shrink: 0;
  transition: transform 0.25s;
}

.article-page .faq-item.open .faq-q svg {
  transform: rotate(180deg);
}

.article-page .faq-a {
  display: none;
  padding: 0 20px 18px;
  font-size: 14px;
  line-height: 1.7;
  color: var(--muted);
}

.article-page .faq-item.open .faq-a {
  display: block;
}

.article-page .bottom-cta {
  margin: 56px 0 0;
  background: linear-gradient(135deg, #090c18 0%, #0f1830 100%);
  border-radius: 24px;
  padding: clamp(32px, 5vw, 56px) clamp(24px, 5vw, 48px);
  text-align: center;
  position: relative;
  overflow: hidden;
}

.article-page .bottom-cta::before {
  content: "";
  position: absolute;
  inset: 0;
  background: radial-gradient(600px 300px at 50% 0%, rgba(89, 158, 255, 0.18), transparent 70%);
  pointer-events: none;
}

.article-page .bottom-cta h2 {
  color: #fff;
  font-size: clamp(20px, 3vw, 32px);
  margin: 0 0 10px;
}

.article-page .bottom-cta p {
  color: rgba(255, 255, 255, 0.6);
  font-size: 15px;
  margin: 0 0 28px;
}

.article-page .cta-btn {
  display: inline-flex;
  align-items: center;
  gap: 9px;
  padding: 15px 30px;
  border-radius: 999px;
  background: linear-gradient(180deg, #599eff, #3a7de0);
  color: #fff;
  text-decoration: none;
  font-size: 15px;
  font-weight: 700;
  box-shadow: 0 8px 24px rgba(89, 158, 255, 0.4);
  transition: transform 0.2s, box-shadow 0.2s;
}

.article-page .cta-btn:hover {
  transform: translateY(-2px);
  box-shadow: 0 12px 32px rgba(89, 158, 255, 0.5);
}

.article-page .site-footer {
  border-top: 1px solid var(--line);
  padding: 24px clamp(20px, 5vw, 64px);
  font-size: 12px;
}

.article-page .footer-links {
  display: flex;
  gap: 16px;
}

@media (max-width: 600px) {
  .article-page .reasons {
    grid-template-columns: 1fr;
  }

  .article-page .who-list {
    grid-template-columns: 1fr;
  }

  .article-page table {
    font-size: 12px;
  }

  .article-page thead th,
  .article-page tbody td {
    padding: 10px 12px;
  }
}

@media (prefers-reduced-motion: no-preference) {
  .article-page .hero {
    animation: articleFadeUp 0.6s cubic-bezier(0.2, 0.8, 0.2, 1) both;
  }

  .article-page .intro-block {
    animation: articleFadeUp 0.6s 0.1s cubic-bezier(0.2, 0.8, 0.2, 1) both;
  }
}

@keyframes articleFadeUp {
  from {
    opacity: 0;
    transform: translateY(14px);
  }
  to {
    opacity: 1;
    transform: translateY(0);
  }
}
