/* ============================================================
   Kilo Verme Maratonu — Editorial Landing
   Sıcak, dergi hissi. Krem/bej/kahve. Klişe değil.
   ============================================================ */

:root {
  --paper: #FBF7F0;
  --paper-2: #F3ECDF;
  --paper-3: #E8DECB;
  --ink: #2A2723;
  --ink-soft: #6A625A;
  --ink-faint: #9A9084;
  --clay: #2F5D50;
  /* pine / çam yeşili accent */
  --clay-deep: #22463C;
  --sage: #7C8A6E;
  /* botanik yeşil */
  --gold: #9A7B3C;
  /* soluk pirinç (vurgu) */
  --line: #E4D9C7;
}

* {
  box-sizing: border-box;
}

html {
  scroll-behavior: auto;
  -webkit-font-smoothing: antialiased;
}

body {
  margin: 0;
  background: var(--paper);
  color: var(--ink);
  font-family: 'Inter', system-ui, sans-serif;
  font-size: 17px;
  line-height: 1.7;
  overflow-x: hidden;
}

/* Kağıt grain dokusu */
body::before {
  content: "";
  position: fixed;
  inset: 0;
  z-index: 1;
  pointer-events: none;
  opacity: .045;
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='140' height='140'%3E%3Cfilter id='n'%3E%3CfeTurbulence type='fractalNoise' baseFrequency='0.85' numOctaves='3' stitchTiles='stitch'/%3E%3C/filter%3E%3Crect width='100%25' height='100%25' filter='url(%23n)'/%3E%3C/svg%3E");
}

.font-serif {
  font-family: 'Fraunces', Georgia, serif;
}

.font-hand {
  font-family: 'Caveat', cursive;
}

/* --- Tipografi --- */
h1,
h2,
h3 {
  font-family: 'Fraunces', Georgia, serif;
  font-weight: 600;
  line-height: 1.12;
  letter-spacing: -.015em;
}

.eyebrow {
  font-family: 'Inter', sans-serif;
  text-transform: uppercase;
  letter-spacing: .28em;
  font-size: .72rem;
  font-weight: 600;
  color: var(--clay);
}

.lead {
  font-size: 1.28rem;
  line-height: 1.6;
  color: var(--ink-soft);
}

/* --- Masked line reveal (hero) — saf CSS. padding-bottom: 'g/ğ/y' kuyrukları kırpılmasın --- */
.mask {
  overflow: hidden;
  display: block;
  padding-bottom: .18em;
  margin-bottom: -.14em;
}

.mask>span {
  display: block;
  transform: translateY(125%);
  transition: transform 1s cubic-bezier(.16, 1, .3, 1);
}

.mask.in>span {
  transform: translateY(0);
}

@keyframes heroRise {
  from {
    transform: translateY(125%);
  }

  to {
    transform: translateY(0);
  }
}

@keyframes heroFade {
  from {
    opacity: 0;
    transform: translateY(34px);
  }

  to {
    opacity: 1;
    transform: none;
  }
}

section[data-testid='hero-section'] .mask>span {
  animation: heroRise 1.05s cubic-bezier(.16, 1, .3, 1) both;
}

section[data-testid='hero-section'] .mask:nth-child(1)>span {
  animation-delay: .15s;
}

section[data-testid='hero-section'] .mask:nth-child(2)>span {
  animation-delay: .28s;
}

section[data-testid='hero-section'] .mask:nth-child(3)>span {
  animation-delay: .41s;
}

section[data-testid='hero-section'] .mask:nth-child(4)>span {
  animation-delay: .54s;
}

section[data-testid='hero-section'] .reveal-up {
  opacity: 0;
  animation: heroFade .95s ease both;
  animation-delay: .7s;
}

/* --- Genel scroll reveal (JS IntersectionObserver ekler) --- */
.reveal-up {
  opacity: 0;
  transform: translateY(34px);
}

.will-reveal {
  opacity: 0;
  transform: translateY(28px);
  transition: opacity .9s cubic-bezier(.16, 1, .3, 1), transform .9s cubic-bezier(.16, 1, .3, 1);
}

.will-reveal.in {
  opacity: 1;
  transform: none;
}

.no-js .will-reveal,
.no-js .reveal-up {
  opacity: 1 !important;
  transform: none !important;
  animation: none !important;
}

.no-js .mask>span {
  transform: none !important;
  animation: none !important;
}

@media (prefers-reduced-motion: reduce) {

  .mask>span,
  .reveal-up,
  .will-reveal {
    transition: none !important;
    animation: none !important;
    transform: none !important;
    opacity: 1 !important;
  }
}

/* --- Hero grid: mobilde başlık → görsel → metin sırası, masaüstünde orijinal 2 sütun --- */
.hero-grid {
  display: grid;
  grid-template-columns: 1fr;
  row-gap: 0;
  column-gap: 3rem;
  align-items: center;
  grid-template-areas:
    "eyebrow"
    "headline"
    "image"
    "lead"
    "cta"
    "note";
}

.hero-area-eyebrow {
  grid-area: eyebrow;
}

.hero-area-headline {
  grid-area: headline;
}

.hero-area-image {
  grid-area: image;
  margin-top: 2.75rem;
}

.hero-area-lead {
  grid-area: lead;
}

.hero-area-cta {
  grid-area: cta;
}

.hero-area-note {
  grid-area: note;
}

@media (min-width:1024px) {
  .hero-grid {
    grid-template-columns: 1.15fr .85fr;
    grid-template-areas:
      "eyebrow image"
      "headline image"
      "lead image"
      "cta image"
      "note image";
  }

  .hero-area-image {
    margin-top: 0;
  }
}

/* --- Butonlar --- */
.btn {
  display: inline-flex;
  align-items: center;
  gap: .6rem;
  font-weight: 600;
  font-size: 1rem;
  letter-spacing: .01em;
  padding: 1.05rem 2.1rem;
  border-radius: 999px;
  cursor: pointer;
  border: 1px solid transparent;
  transition: transform .4s cubic-bezier(.16, 1, .3, 1), background-color .4s, color .4s, box-shadow .4s;
  text-decoration: none;
}

.btn-primary {
  background: var(--clay);
  color: #FBF7F0;
  box-shadow: 0 10px 30px -12px rgba(34, 70, 60, .6);
}

.btn-primary:hover {
  transform: translateY(-3px);
  background: var(--clay-deep);
  box-shadow: 0 18px 40px -14px rgba(34, 70, 60, .7);
}

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

.btn-ghost:hover {
  transform: translateY(-3px);
  background: var(--ink);
  color: var(--paper);
}

.btn-block {
  width: 100%;
  justify-content: center;
}

/* --- Eğik fotoğraf çerçevesi (dergi hissi) --- */
.frame {
  position: relative;
  background: #fff;
  padding: .7rem .7rem 2.6rem;
  box-shadow: 0 26px 60px -30px rgba(46, 42, 37, .55);
  border: 1px solid var(--line);
}

.frame img {
  display: block;
  width: 100%;
  height: auto;
}

.frame .cap {
  position: absolute;
  bottom: .6rem;
  left: .9rem;
  font-family: 'Caveat', cursive;
  font-size: 1.35rem;
  color: var(--ink-soft);
}

.tilt-l {
  transform: rotate(-2.5deg);
}

.tilt-r {
  transform: rotate(2.2deg);
}

/* --- Marquee --- */
.marquee {
  display: flex;
  overflow: hidden;
  user-select: none;
  gap: 0;
}

.marquee__track {
  display: flex;
  flex-shrink: 0;
  gap: 2.5rem;
  padding-right: 2.5rem;
  animation: marq 34s linear infinite;
  white-space: nowrap;
}

@keyframes marq {
  to {
    transform: translateX(-100%);
  }
}

.marquee:hover .marquee__track {
  animation-play-state: paused;
}

.marquee__item {
  font-family: 'Fraunces', serif;
  font-style: italic;
  font-size: clamp(1.6rem, 4vw, 3rem);
  color: var(--ink);
}

.marquee__dot {
  color: var(--clay);
}

/* --- Numaralı bölüm etiketi --- */
.chapter {
  font-family: 'Fraunces', serif;
  font-size: .95rem;
  color: var(--clay);
  letter-spacing: .05em;
}

.chapter b {
  font-size: 1.6rem;
}

/* --- Kart --- */
.card {
  background: #fff;
  border: 1px solid var(--line);
  border-radius: 18px;
}

.card-paper {
  background: var(--paper-2);
  border: 1px solid var(--line);
  border-radius: 18px;
}

/* --- Testimonial WhatsApp balon --- */
.wa {
  background: #fff;
  border: 1px solid var(--line);
  border-radius: 16px;
  position: relative;
  box-shadow: 0 20px 50px -34px rgba(46, 42, 37, .6);
}

.wa__head {
  display: flex;
  align-items: center;
  gap: .6rem;
  padding: .7rem .9rem;
  border-bottom: 1px solid var(--line);
}

.wa__av {
  width: 34px;
  height: 34px;
  border-radius: 50%;
  background: var(--paper-3);
  display: grid;
  place-items: center;
  font-weight: 700;
  color: var(--clay);
  font-size: .8rem;
}

.wa__bubble {
  background: #EAF7E1;
  border-radius: 12px;
  padding: .7rem .85rem;
  margin: .8rem;
  font-size: .94rem;
  line-height: 1.5;
}

.wa__time {
  font-size: .68rem;
  color: var(--ink-faint);
  text-align: right;
  margin-top: .3rem;
}

/* --- Toggle paket --- */
.seg {
  background: var(--paper-3);
  border-radius: 999px;
  padding: 5px;
  display: inline-flex;
}

.seg button {
  border: 0;
  background: transparent;
  padding: .7rem 1.6rem;
  border-radius: 999px;
  font-weight: 600;
  cursor: pointer;
  color: var(--ink-soft);
  transition: all .35s;
  font-size: .98rem;
}

.seg button.active {
  background: #fff;
  color: var(--ink);
  box-shadow: 0 6px 18px -10px rgba(46, 42, 37, .5);
}

/* --- Timer rakamı --- */
.tk {
  display: inline-flex;
  flex-direction: column;
  align-items: center;
}

.tk b {
  font-family: 'Fraunces', serif;
  font-size: clamp(2rem, 6vw, 3.4rem);
  line-height: 1;
}

.tk span {
  font-size: .66rem;
  letter-spacing: .2em;
  text-transform: uppercase;
  color: var(--ink-faint);
  margin-top: .4rem;
}

/* --- Kontenjan noktaları --- */
.dots {
  display: inline-flex;
  gap: 6px;
}

.dots i {
  width: 11px;
  height: 11px;
  border-radius: 50%;
  background: var(--paper-3);
  display: inline-block;
  border: 1px solid var(--line);
}

.dots i.on {
  background: var(--clay);
  border-color: var(--clay);
}

/* --- Botanik dekor --- */
.botanic {
  position: absolute;
  pointer-events: none;
  opacity: .55;
  z-index: 0;
}

/* --- Progress bar (üst) --- */
#prog {
  position: fixed;
  top: 0;
  left: 0;
  height: 3px;
  width: 0;
  background: var(--clay);
  z-index: 60;
}

/* --- Form --- */
.field {
  width: 100%;
  background: #fff;
  border: 1px solid var(--line);
  border-radius: 12px;
  padding: .95rem 1.05rem;
  font-size: 1rem;
  color: var(--ink);
  font-family: inherit;
  transition: border-color .3s, box-shadow .3s;
}

.field:focus {
  outline: none;
  border-color: var(--clay);
  box-shadow: 0 0 0 4px rgba(47, 93, 80, .12);
}

.field.err {
  border-color: #C0392B;
  box-shadow: 0 0 0 4px rgba(192, 57, 43, .12);
}

label.lb {
  display: block;
  font-weight: 600;
  font-size: .9rem;
  margin-bottom: .45rem;
  color: var(--ink);
}

.hint {
  font-size: .8rem;
  color: var(--ink-faint);
  margin-top: .35rem;
}

.err-msg {
  font-size: .8rem;
  color: #C0392B;
  margin-top: .35rem;
  display: none;
}

.field.err~.err-msg {
  display: block;
}

/* --- Trust rozet --- */
.trust {
  display: flex;
  align-items: center;
  gap: .5rem;
  font-size: .82rem;
  color: var(--ink-soft);
}

/* --- Cursor blob (ince dokunuş) --- */
@media (hover:hover) and (pointer:fine) {
  .cursor-dot {
    position: fixed;
    top: 0;
    left: 0;
    width: 9px;
    height: 9px;
    border-radius: 50%;
    background: var(--clay);
    pointer-events: none;
    z-index: 90;
    transform: translate(-50%, -50%);
    mix-blend-mode: multiply;
    transition: width .25s, height .25s, background .25s;
  }

  .cursor-dot.big {
    width: 46px;
    height: 46px;
    background: rgba(47, 93, 80, .18);
  }
}

/* --- Sticky mini CTA (mobil) --- */
#mini-cta {
  position: fixed;
  left: 0;
  right: 0;
  bottom: 0;
  z-index: 55;
  transform: translateY(120%);
  transition: transform .5s cubic-bezier(.16, 1, .3, 1);
}

#mini-cta.show {
  transform: none;
}

.hr-hand {
  border: 0;
  height: 26px;
  background-repeat: no-repeat;
  background-position: center;
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='220' height='26'%3E%3Cpath d='M2 18 C 40 6, 80 26, 120 12 S 200 8, 218 16' stroke='%232F5D50' stroke-width='2.4' fill='none' stroke-linecap='round' opacity='.7'/%3E%3C/svg%3E");
}

::selection {
  background: var(--clay);
  color: #FBF7F0;
}

/* ============ MOBİL ÖNCELİKLİ İYİLEŞTİRMELER ============ */
@media (max-width:640px) {
  body {
    font-size: 16px;
  }

  .lead {
    font-size: 1.12rem;
  }

  .btn {
    padding: .95rem 1.5rem;
    font-size: .98rem;
  }

  .hero-cta .btn {
    width: 100%;
    justify-content: center;
  }

  /* hero butonları tam genişlik */
  .tk b {
    font-size: 2.1rem;
  }

  .tk span {
    font-size: .6rem;
  }

  #countdown {
    gap: 1rem !important;
  }

  .marquee__item {
    font-size: 1.5rem;
  }

  .frame {
    padding: .5rem .5rem 2.1rem;
  }

  .botanic {
    opacity: .35;
    transform: scale(.7);
  }

  .wa__bubble {
    font-size: .9rem;
  }

  /* dokunmatikte özel cursor gizle */
  .cursor-dot {
    display: none !important;
  }

  /* uzun bölüm boşluklarını mobilde biraz kıs */
  section {
    scroll-margin-top: 70px;
  }
}

@media (max-width:400px) {
  .tk b {
    font-size: 1.8rem;
  }

  #countdown {
    gap: .7rem !important;
  }
}