/* Flat — rehberkocum.com
   Uygulamanın tasarım dili: bir bölüm bir renk, kart yok, gölge yok,
   hiyerarşi punto ve boşlukla kurulur. */

:root {
  --blue: #4fa3f0;
  --blue-deep: #2f86d9;
  --purple: #5b3fd1;
  --purple-deep: #4534b8;
  --green: #2f9e7e;
  --navy: #1f2b4d;
  --navy-deep: #141c33;
  --red: #f4544e;
  --accent: #fbe45b;
  --on-accent: #3a2e00;

  --ink: #ffffff;
  --ink-soft: rgba(255, 255, 255, 0.8);
  --ink-faint: rgba(255, 255, 255, 0.32);

  --page: #f3f6fa;
  --page-ink: #16203a;
  --page-soft: #5b6b7f;

  --screen-pad: clamp(20px, 5vw, 56px);
  --max: 1180px;

  --font: -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, "Helvetica Neue",
    Arial, "Noto Sans", sans-serif;
}

* { box-sizing: border-box; }

html {
  scroll-behavior: smooth;
  overflow-x: clip;
}

body {
  margin: 0;
  overflow-x: clip;
  font-family: var(--font);
  background: var(--page);
  color: var(--page-ink);
  -webkit-font-smoothing: antialiased;
  text-rendering: optimizeLegibility;
}

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

a { color: inherit; }

.wrap {
  max-width: var(--max);
  margin: 0 auto;
  padding-inline: var(--screen-pad);
}

/* ── imzalar ───────────────────────────────────────────────────────────── */

.rule {
  width: 34px;
  height: 3px;
  background: currentColor;
  border: 0;
  margin: 0 0 22px;
}

.hairline {
  height: 1px;
  background: var(--ink-faint);
  border: 0;
  margin: 0;
}

.band .label,
.label {
  font-size: 0.7rem;
  font-weight: 800;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  margin: 0;
}

/* ── tam ekran renk bölümü ─────────────────────────────────────────────── */

.band {
  color: var(--ink);
  padding-block: clamp(44px, 8vw, 96px);
  position: relative;
}

.band--blue { background: var(--blue); }
.band--purple { background: var(--purple); }
.band--green { background: var(--green); }
.band--navy { background: var(--navy); }
.band--red { background: var(--red); }

.band h1,
.band h2 {
  font-size: clamp(1.95rem, 6vw, 3.4rem);
  line-height: 1.08;
  font-weight: 800;
  letter-spacing: -0.02em;
  margin: 0 0 14px;
  max-width: 16ch;
  overflow-wrap: break-word;
}

.band h1 em,
.band h2 em {
  font-style: normal;
  color: var(--accent);
}

.band p {
  font-size: clamp(0.98rem, 1.6vw, 1.12rem);
  line-height: 1.6;
  color: var(--ink-soft);
  margin: 0 0 10px;
  max-width: 58ch;
}

/* yay biten alt kenar — sheet motifinin sayfa hâli */
.band--arc::after {
  content: "";
  position: absolute;
  left: -10%;
  right: -10%;
  bottom: -46px;
  height: 92px;
  background: inherit;
  border-radius: 50%;
}

/* ── sayaç ─────────────────────────────────────────────────────────────── */

.countdown {
  display: flex;
  align-items: flex-end;
  gap: clamp(14px, 3vw, 28px);
  flex-wrap: wrap;
  margin-top: 30px;
}

.band .countdown__days,
.countdown__days {
  font-size: clamp(4.5rem, 17vw, 9.5rem);
  line-height: 0.86;
  font-weight: 800;
  letter-spacing: -0.04em;
  font-variant-numeric: tabular-nums;
  margin: 0;
}

.countdown__meta {
  padding-bottom: clamp(8px, 1.6vw, 18px);
}

.countdown__meta strong {
  display: block;
  font-size: clamp(1rem, 2vw, 1.3rem);
  font-weight: 800;
}

.countdown__meta > span {
  display: block;
  font-size: 0.95rem;
  color: var(--ink-soft);
}

.countdown__clock {
  display: flex;
  gap: clamp(16px, 4vw, 40px);
  margin-top: 26px;
  flex-wrap: wrap;
}

.unit {
  min-width: 62px;
}

.unit b {
  display: block;
  font-size: clamp(1.5rem, 4vw, 2.2rem);
  font-weight: 800;
  font-variant-numeric: tabular-nums;
  line-height: 1;
}

.unit span {
  display: block;
  margin-top: 4px;
  font-size: 0.72rem;
  font-weight: 700;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: var(--ink-soft);
}

/* ── pomodoro ──────────────────────────────────────────────────────────── */

.band .timer,
.timer {
  font-size: clamp(3.6rem, 13vw, 7rem);
  line-height: 1;
  font-weight: 800;
  font-variant-numeric: tabular-nums;
  letter-spacing: -0.03em;
  margin: 6px 0 0;
}

.tools {
  display: flex;
  align-items: center;
  gap: 0;
  margin: 26px 0 0;
  flex-wrap: wrap;
}

.tools button {
  appearance: none;
  background: none;
  border: 0;
  color: var(--ink);
  font: inherit;
  font-size: 0.95rem;
  font-weight: 700;
  padding: 12px 18px;
  cursor: pointer;
  border-radius: 999px;
}

.tools button:hover { background: rgba(255, 255, 255, 0.12); }
.tools button[aria-pressed="true"] { color: var(--accent); }

.tools .slash {
  color: var(--ink-faint);
  transform: rotate(22deg);
  display: inline-block;
  user-select: none;
}

.chain {
  display: flex;
  align-items: center;
  gap: 0;
  margin-top: 24px;
}

.chain i {
  width: 12px;
  height: 12px;
  border-radius: 50%;
  background: rgba(255, 255, 255, 0.3);
  display: block;
}

.chain i.on { background: var(--accent); }

.chain s {
  width: 30px;
  height: 2px;
  background: rgba(255, 255, 255, 0.3);
  display: block;
}

/* ── açık sayfa bölümleri ──────────────────────────────────────────────── */

.section {
  padding-block: clamp(48px, 8vw, 92px);
}

.section h2 {
  font-size: clamp(1.6rem, 4vw, 2.4rem);
  font-weight: 800;
  letter-spacing: -0.02em;
  line-height: 1.15;
  margin: 0 0 18px;
  max-width: 20ch;
}

.section h3 {
  font-size: 1.08rem;
  font-weight: 800;
  margin: 0 0 6px;
}

.section p,
.section li {
  font-size: 1rem;
  line-height: 1.7;
  color: var(--page-soft);
  margin: 0 0 12px;
  max-width: 68ch;
}

.section .rule { color: var(--blue-deep); }

/* ── SSS ───────────────────────────────────────────────────────────────── */

.faq details {
  border-top: 1px solid rgba(22, 32, 58, 0.14);
  padding: 18px 0;
}

.faq details:last-of-type { border-bottom: 1px solid rgba(22, 32, 58, 0.14); }

.faq summary {
  font-size: 1.05rem;
  font-weight: 800;
  cursor: pointer;
  list-style: none;
  display: flex;
  justify-content: space-between;
  gap: 16px;
}

.faq summary::-webkit-details-marker { display: none; }
.faq summary::after { content: "+"; font-weight: 800; color: var(--blue-deep); }
.faq details[open] summary::after { content: "–"; }
.faq details p { margin-top: 10px; margin-bottom: 0; }

/* ── alt ───────────────────────────────────────────────────────────────── */

.footer {
  background: var(--navy-deep);
  color: var(--ink-soft);
  padding-block: 44px;
  font-size: 0.9rem;
  line-height: 1.7;
}

.footer a { color: var(--ink); text-decoration: none; font-weight: 700; display: inline-flex; align-items: center; min-height: 40px; }
.footer a:hover { text-decoration: underline; }
.footer nav { display: flex; gap: 0; flex-wrap: wrap; margin-bottom: 18px; align-items: center; }
.footer nav span { color: var(--ink-faint); transform: rotate(22deg); display: inline-block; padding-inline: 12px; }
.footer p { margin: 0 0 8px; max-width: 68ch; }

/* ── üst gezinme ───────────────────────────────────────────────────────── */

.topnav {
  display: flex;
  align-items: center;
  gap: 0;
  margin-bottom: clamp(28px, 5vw, 52px);
  flex-wrap: wrap;
}

.topnav a {
  display: inline-flex;
  align-items: center;
  min-height: 44px;
  text-decoration: none;
  font-weight: 700;
  font-size: 0.95rem;
  color: var(--ink-soft);
}

.topnav a[aria-current="page"] { color: var(--ink); font-weight: 800; }
.topnav span { color: var(--ink-faint); transform: rotate(22deg); display: inline-block; padding-inline: 14px; }
.topnav .brand { margin-right: auto; color: var(--ink); font-weight: 800; font-size: 1rem; }

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

/* ── lottie ────────────────────────────────────────────────────────────── */

.lottie {
  width: 100%;
  max-width: 420px;
  aspect-ratio: 1 / 1;
  margin-inline: auto;
}

.lottie svg { display: block; }

/* Kütüphane yüklenmeden ya da hareket azaltma açıkken görünen yedek */
.lottie__fallback {
  width: 100%;
  height: 100%;
  display: grid;
  place-items: center;
  color: var(--ink-faint);
  font-size: 0.8rem;
  font-weight: 700;
  letter-spacing: 0.1em;
  text-transform: uppercase;
}

.lottie.is-live .lottie__fallback { display: none; }

/* Hero: solda başlık + söz + animasyon, sağda sayaç */

.hero {
  display: grid;
  grid-template-columns: 1fr;
  gap: clamp(24px, 4vw, 40px);
}

.hero__head { order: 1; }
.hero__count { order: 2; }
.hero .lottie { order: 3; }

.hero .countdown { margin-top: 0; }

@media (min-width: 880px) {
  .hero {
    grid-template-columns: 1.02fr 0.98fr;
    column-gap: clamp(30px, 5vw, 68px);
    row-gap: 10px;
    align-items: start;
  }

  .hero__head { grid-area: 1 / 1; }
  .hero .lottie { grid-area: 2 / 1; margin-inline: 0; max-width: 360px; }
  .hero__count { grid-area: 1 / 2 / 3 / 3; align-self: center; }
  .hero__count .countdown__days { font-size: clamp(5.5rem, 11vw, 8.6rem); }
}

/* İki sütun: solda metin, sağda animasyon */
.split {
  display: grid;
  gap: clamp(24px, 4vw, 56px);
  align-items: center;
  grid-template-columns: 1fr;
}

@media (min-width: 760px) {
  .split { grid-template-columns: 1.05fr 0.95fr; }
  .split .lottie { max-width: 440px; }
}

/* ── düzeltmeler: .band p özgüllüğünün ezdiği yerler ───────────────────── */

.band .countdown__days,
.band .timer { color: var(--ink); }

.band .rule { background: var(--ink); }

.countdown__meta strong,
.countdown__meta > span { white-space: nowrap; }

.countdown__meta strong { margin-bottom: 2px; }

/* Dev sayının yanındaki meta bloğu sıkışmasın */
.countdown__meta { flex: 0 0 auto; width: max-content; }

/* ── renkli kart ───────────────────────────────────────────────────────── */

.tiles {
  display: grid;
  gap: 18px;
  grid-template-columns: repeat(auto-fit, minmax(min(100%, 250px), 1fr));
  margin-top: 32px;
}

.tile {
  position: relative;
  overflow: hidden;
  color: var(--ink);
  border-radius: 26px;
  padding: 28px 26px 26px;
  display: flex;
  flex-direction: column;
  min-height: 210px;
  text-decoration: none;
}

.tile--blue { background: var(--blue); }
.tile--purple { background: var(--purple); }
.tile--green { background: var(--green); }
.tile--navy { background: var(--navy); }
.tile--red { background: var(--red); }

.tile__ico {
  width: 30px;
  height: 30px;
  stroke-width: 1.8;
  margin-bottom: 20px;
  opacity: 0.95;
  flex: 0 0 auto;
}

.tile__wm {
  position: absolute;
  right: -26px;
  bottom: -26px;
  width: 148px;
  height: 148px;
  stroke-width: 0.75;
  opacity: 0.15;
  pointer-events: none;
}

.tile b {
  display: block;
  font-size: 1.7rem;
  font-weight: 800;
  letter-spacing: -0.02em;
  margin: 0 0 8px;
  overflow-wrap: break-word;
}

.tile p {
  color: var(--ink-soft);
  font-size: 0.96rem;
  line-height: 1.6;
  margin: 0;
  max-width: none;
}

.tile em {
  font-style: normal;
  display: block;
  margin-top: auto;
  padding-top: 18px;
  font-size: 0.78rem;
  font-weight: 800;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  color: var(--ink-faint);
}

.tile--link {
  transition: transform 0.18s ease;
}

.tile--link em { color: var(--ink); }
.tile--link:hover { transform: translateY(-4px); }
.tile--link:hover .tile__wm { opacity: 0.24; }
.tile--link:focus-visible { outline: 3px solid var(--accent); outline-offset: 3px; }

/* ── uygulama indirme ──────────────────────────────────────────────────── */

.app {
  display: grid;
  gap: clamp(24px, 4vw, 48px);
  align-items: center;
  grid-template-columns: 1fr;
}

@media (min-width: 780px) {
  .app { grid-template-columns: auto 1fr; }
}

.app__icon {
  width: 132px;
  height: 132px;
  border-radius: 30px;
}

.app__badges {
  display: flex;
  align-items: center;
  gap: 16px;
  flex-wrap: wrap;
  margin-top: 22px;
}

.app__badges img { height: 54px; width: auto; }

.app__soon {
  display: inline-flex;
  align-items: center;
  height: 54px;
  padding: 0 22px;
  border-radius: 10px;
  border: 2px solid var(--ink-faint);
  color: var(--ink-soft);
  font-size: 0.84rem;
  font-weight: 800;
  letter-spacing: 0.06em;
}

/* ── sayfa geçişi ──────────────────────────────────────────────────────── */

@media (prefers-reduced-motion: no-preference) {
  @view-transition { navigation: auto; }
}

@keyframes vt-out {
  to { opacity: 0; transform: translateY(-14px); }
}

@keyframes vt-in {
  from { opacity: 0; transform: translateY(22px); }
}

::view-transition-old(root) {
  animation: vt-out 200ms cubic-bezier(0.4, 0, 1, 1) both;
}

::view-transition-new(root) {
  animation: vt-in 360ms cubic-bezier(0.2, 0.7, 0.3, 1) both;
}

.band--arc { view-transition-name: hero; }
.brand { view-transition-name: brand; }

::view-transition-group(hero) { animation-duration: 420ms; }

/* ── görünüre girince belirme ──────────────────────────────────────────── */

.reveal .tile,
.reveal .faq details,
.reveal .app { opacity: 0; }

@keyframes reveal-up {
  from { opacity: 0; transform: translateY(18px); }
  to { opacity: 1; transform: none; }
}

.reveal .is-in {
  animation: reveal-up 520ms cubic-bezier(0.2, 0.7, 0.3, 1) both;
}

.reveal .is-shown { opacity: 1; }

/* ── ikon ─────────────────────────────────────────────────────────────── */

.sprite {
  position: absolute;
  width: 0;
  height: 0;
  overflow: hidden;
}

.ico {
  fill: none;
  stroke: currentColor;
  stroke-width: 1.1;
  stroke-linecap: round;
  stroke-linejoin: round;
}

/* ── söz ───────────────────────────────────────────────────────────────── */

.quote { margin: 20px 0 0; }

.quote__mark {
  display: block;
  font-size: 2.2rem;
  line-height: 0.55;
  font-weight: 800;
  color: var(--ink-faint);
  margin-bottom: 6px;
}

.band .quote p {
  font-size: clamp(1.05rem, 2vw, 1.35rem);
  line-height: 1.5;
  font-weight: 700;
  color: var(--ink);
  margin: 0;
  max-width: 34ch;
}

/* ── küçük ekran ───────────────────────────────────────────────────────── */

@media (max-width: 640px) {
  .lottie { max-width: 230px; }

  .tile {
    min-height: 0;
    padding: 24px 22px 22px;
    border-radius: 22px;
  }

  .tile__ico { width: 27px; height: 27px; margin-bottom: 16px; }
  .tile__wm { width: 116px; height: 116px; right: -28px; bottom: -28px; opacity: 0.12; }
  .tile b { font-size: 1.5rem; }
  .tile em { font-size: 0.72rem; letter-spacing: 0.07em; }
  .tile em { padding-top: 16px; }

  .countdown { gap: 16px; margin-top: 24px; }
  .countdown__clock { margin-top: 22px; }

  .tools { margin: 20px 0 0; }
  .tools button { padding: 12px 14px; }

  .app__icon { width: 104px; height: 104px; border-radius: 24px; }
  .app__badges { gap: 12px; margin-top: 18px; }
  .app__badges img, .app__soon { height: 48px; }

  .band--arc::after { bottom: -34px; height: 68px; }
}

@media (max-width: 380px) {
  .countdown__clock { gap: 12px; }
  .unit { min-width: 52px; }
  .app__soon { padding: 0 16px; font-size: 0.78rem; }
}
