/* Bookflow landing — sakin, editoryal bir dil: krem zemin, sıcak mürekkep,
   400 ağırlıkta başlıklar, sadece ince çizgilerle derinlik, tek vurgu rengi. */

:root {
  --canvas: #f7f7f4;
  --canvas-soft: #fafaf7;
  --surface: #ffffff;
  --surface-strong: #e7e5e4;
  --hairline: #e7e5e4;
  --hairline-soft: #efeee8;
  --hairline-strong: #d7d3d0;

  --ink: #292524;
  --body: #57534e;
  --muted: #79716b;

  /* lightblue700: beyaz metinle AA kontrast. lightblue500 yalnızca dekoratif. */
  --primary: #026aa2;
  --primary-active: #065986;
  --brand: #0ba5ec;

  /* Okuma durumları — yalnızca ürün içi görselleştirmede (status pill) */
  --pill-reading: #9fbbe0;
  --pill-completed: #9fc9a2;
  --pill-wishlist: #dfa88f;
  --pill-not-started: #c0a8dd;
  --pill-paused: #e0bb7c;

  --font-sans: -apple-system, BlinkMacSystemFont, "Inter", "Segoe UI", Roboto, "Helvetica Neue", Arial, sans-serif;
  --font-mono: ui-monospace, "SF Mono", SFMono-Regular, Menlo, Consolas, monospace;

  --radius-xs: 4px;
  --radius-md: 8px;
  --radius-lg: 12px;
  --radius-pill: 9999px;

  --container: 1200px;
  --gutter: 24px;
  --section: 96px;
}

@media (max-width: 639px) {
  :root {
    --gutter: 16px;
    --section: 64px;
  }
}

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

[hidden] {
  display: none !important;
}

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

@media (prefers-reduced-motion: reduce) {
  html {
    scroll-behavior: auto;
  }
}

body {
  margin: 0;
  background: var(--canvas);
  color: var(--body);
  font-family: var(--font-sans);
  font-size: 16px;
  line-height: 1.5;
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
  text-rendering: optimizeLegibility;
}

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

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

a:hover {
  text-decoration: underline;
  text-underline-offset: 3px;
}

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

h1,
h2,
h3 {
  margin: 0;
  color: var(--ink);
  font-weight: 400;
}

p,
figure {
  margin: 0;
}

code {
  font-family: var(--font-mono);
  font-size: 0.86em;
  color: var(--ink);
  background: var(--surface-strong);
  padding: 2px 6px;
  border-radius: var(--radius-xs);
  overflow-wrap: anywhere;
}

[id] {
  scroll-margin-top: 80px;
}

.container {
  width: 100%;
  max-width: calc(var(--container) + 2 * var(--gutter));
  margin: 0 auto;
  padding: 0 var(--gutter);
}

.skip-link {
  position: absolute;
  left: -9999px;
  top: 12px;
  z-index: 100;
  padding: 8px 14px;
  border-radius: var(--radius-md);
  background: var(--ink);
  color: #fff;
}

.skip-link:focus {
  left: 16px;
}

/* Tipografi — başlıklar 400 ağırlıkta, negatif harf aralığıyla */

.display-mega {
  max-width: 15em;
  font-size: clamp(40px, 6.4vw, 72px);
  line-height: 1.04;
  letter-spacing: -0.032em;
  text-wrap: balance;
}

.display-lg {
  font-size: clamp(30px, 3.8vw, 42px);
  line-height: 1.12;
  letter-spacing: -0.022em;
  text-wrap: balance;
}

.display-md {
  font-size: clamp(25px, 2.7vw, 32px);
  line-height: 1.18;
  letter-spacing: -0.016em;
  text-wrap: balance;
}

.eyebrow,
.badge {
  font-size: 12px;
  font-weight: 600;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  line-height: 1.4;
}

.eyebrow {
  margin-bottom: 16px;
  color: var(--muted);
}

.badge {
  display: inline-flex;
  margin-bottom: 28px;
  padding: 5px 12px;
  border-radius: var(--radius-pill);
  background: var(--surface-strong);
  color: var(--ink);
  font-size: 11px;
}

.lead {
  max-width: 620px;
  margin-top: 24px;
  font-size: clamp(17px, 1.6vw, 19px);
  line-height: 1.55;
}

.section-lead {
  max-width: 620px;
  margin-top: 16px;
  font-size: 17px;
  line-height: 1.6;
}

.note {
  margin-top: 16px;
  color: var(--muted);
  font-size: 13px;
}

/* Butonlar — 8px köşe, gölge yok */

.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  border-radius: var(--radius-md);
  font-size: 14px;
  font-weight: 500;
  line-height: 1;
  white-space: nowrap;
  transition: background-color 0.15s ease, border-color 0.15s ease;
}

.btn:hover {
  text-decoration: none;
}

.btn-primary {
  background: var(--primary);
  color: #fff;
}

.btn-primary:hover,
.btn-primary:active {
  background: var(--primary-active);
}

.btn-secondary {
  height: 44px;
  padding: 0 18px;
  border: 1px solid var(--hairline-strong);
  background: var(--surface);
  color: var(--ink);
}

.btn-secondary:hover {
  border-color: var(--muted);
}

.btn-sm {
  height: 36px;
  padding: 0 14px;
}

.btn-lg {
  height: 48px;
  padding: 0 22px;
  font-size: 15px;
}

.link-arrow {
  color: var(--ink);
  font-size: 15px;
  font-weight: 500;
}

.cta-row {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 16px 28px;
  margin-top: 36px;
}

/* Üst menü */

.nav {
  position: sticky;
  top: 0;
  z-index: 50;
  border-bottom: 1px solid var(--hairline-soft);
  background: rgba(247, 247, 244, 0.86);
  -webkit-backdrop-filter: saturate(1.4) blur(14px);
  backdrop-filter: saturate(1.4) blur(14px);
}

.nav-inner {
  display: flex;
  align-items: center;
  gap: 40px;
  height: 64px;
}

.brand {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  color: var(--ink);
  font-size: 16px;
  font-weight: 600;
  letter-spacing: -0.01em;
}

.brand:hover {
  text-decoration: none;
}

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

.nav-links {
  display: flex;
  gap: 28px;
}

.nav-links a,
.nav-lang {
  color: var(--body);
  font-size: 14px;
  font-weight: 500;
}

.nav-links a:hover,
.nav-lang:hover {
  color: var(--ink);
  text-decoration: none;
}

.nav-actions {
  display: flex;
  align-items: center;
  gap: 20px;
  margin-left: auto;
}

@media (max-width: 767px) {
  .nav-links {
    display: none;
  }
}

/* Hero */

.hero {
  padding-top: 96px;
}

.stage {
  display: grid;
  grid-template-columns: minmax(0, 1.655fr) minmax(0, 1fr);
  gap: 16px;
  margin-top: 64px;
}

.shot {
  position: relative;
  overflow: hidden;
  border: 1px solid var(--hairline);
  border-radius: var(--radius-lg);
  background: var(--surface);
}

.shot picture {
  display: block;
  height: 100%;
}

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

/* Görsellerin içindeki başlıkları kırpan kesitler */
.shot-mac {
  aspect-ratio: 1180 / 1250;
}

.shot-mac img {
  object-position: 100% 50%;
}

.shot-iphone {
  aspect-ratio: 924 / 1620;
}

.shot-iphone img {
  object-position: 50% 0;
}

@media (max-width: 639px) {
  .hero {
    padding-top: 48px;
  }

  .stage {
    grid-template-columns: minmax(0, 1fr);
    margin-top: 40px;
  }

  .shot-mac {
    display: none;
  }
}

/* Bölümler */

.section {
  padding: var(--section) 0;
}

.section-head {
  max-width: 720px;
  margin-bottom: 32px;
}

.section-surface {
  border-top: 1px solid var(--hairline);
  border-bottom: 1px solid var(--hairline);
  background: var(--surface);
}

/* Özellik satırları (iPhone & iPad) */

.feature {
  display: grid;
  grid-template-columns: minmax(0, 1fr) minmax(0, 1fr);
  align-items: center;
  gap: 64px;
  padding: 64px 0;
  border-top: 1px solid var(--hairline);
}

.feature:last-child {
  padding-bottom: 0;
}

.feature:nth-of-type(even) .feature-media {
  order: -1;
}

.feature-copy {
  max-width: 480px;
}

.feature-copy h3 {
  margin-bottom: 16px;
}

.feature-copy > p {
  font-size: 17px;
  line-height: 1.6;
}

.feature-label {
  margin-bottom: 16px;
  color: var(--muted);
  font-family: var(--font-mono);
  font-size: 12px;
}

.feature-media {
  justify-self: center;
  width: 100%;
  max-width: 420px;
}

.crop-library {
  aspect-ratio: 924 / 1080;
}

.crop-library img {
  object-position: 50% 65.2%;
}

.crop-timer {
  aspect-ratio: 924 / 1530;
}

.crop-timer img {
  object-position: 50% 100%;
}

.crop-widgets {
  aspect-ratio: 924 / 940;
}

.crop-widgets img {
  object-position: 50% 100%;
}

.crop-goals {
  aspect-ratio: 924 / 1340;
}

.crop-goals img {
  object-position: 50% 0;
}

.crop-stats {
  aspect-ratio: 924 / 1560;
}

.crop-stats img {
  object-position: 50% 100%;
}

.points {
  margin: 28px 0 0;
  padding: 0;
  border-top: 1px solid var(--hairline);
  list-style: none;
}

.points li {
  display: flex;
  align-items: baseline;
  gap: 12px;
  padding: 12px 0;
  border-bottom: 1px solid var(--hairline);
  color: var(--ink);
  font-size: 15px;
}

.points li::before {
  content: "";
  flex: none;
  width: 6px;
  height: 6px;
  border-radius: 50%;
  background: var(--brand);
  transform: translateY(-2px);
}

.status-pills {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  margin: 28px 0 0;
  padding: 0;
  list-style: none;
}

.pill {
  padding: 5px 10px;
  border-radius: var(--radius-pill);
  color: var(--ink);
  font-size: 11px;
  font-weight: 600;
  letter-spacing: 0.08em;
  line-height: 1.4;
  text-transform: uppercase;
}

.pill-reading { background: var(--pill-reading); }
.pill-completed { background: var(--pill-completed); }
.pill-wishlist { background: var(--pill-wishlist); }
.pill-not-started { background: var(--pill-not-started); }
.pill-paused { background: var(--pill-paused); }

.feature-note {
  margin-top: 24px;
  font-size: 15px;
}

.feature-note a {
  font-weight: 500;
}

@media (max-width: 899px) {
  .feature {
    grid-template-columns: minmax(0, 1fr);
    gap: 32px;
    padding: 48px 0;
  }

  .feature:nth-of-type(even) .feature-media {
    order: 0;
  }

  .feature-copy {
    max-width: none;
  }
}

/* Mac galerisi — JS yoksa tüm görseller alt alta, varsa sekmeli */

.section-head-split {
  display: flex;
  align-items: flex-end;
  justify-content: space-between;
  gap: 32px;
  max-width: none;
  margin-bottom: 48px;
}

.section-head-split > div {
  max-width: 640px;
}

.panels {
  display: grid;
  gap: 32px;
}

.panel img {
  width: 100%;
  aspect-ratio: 2000 / 1250;
  object-fit: cover;
  border: 1px solid var(--hairline);
  border-radius: var(--radius-lg);
}

.panel figcaption {
  margin-top: 12px;
  font-size: 14px;
}

.panel figcaption strong {
  margin-right: 6px;
  color: var(--ink);
  font-weight: 600;
}

.js .gallery {
  display: grid;
  grid-template-columns: 280px minmax(0, 1fr);
  align-items: start;
  gap: 32px;
}

.js .panel figcaption {
  display: none;
}

.tablist {
  display: flex;
  flex-direction: column;
  gap: 4px;
}

.tab {
  appearance: none;
  padding: 14px 16px;
  border: 1px solid transparent;
  border-radius: var(--radius-lg);
  background: transparent;
  color: inherit;
  font: inherit;
  text-align: left;
  cursor: pointer;
  transition: background-color 0.15s ease, border-color 0.15s ease;
}

.tab:hover {
  background: var(--canvas-soft);
}

.tab[aria-selected="true"] {
  border-color: var(--hairline);
  background: var(--canvas);
}

.tab-title {
  display: block;
  color: var(--ink);
  font-size: 15px;
  font-weight: 600;
}

.tab-desc {
  display: block;
  margin-top: 4px;
  font-size: 14px;
  line-height: 1.45;
}

@media (max-width: 899px) {
  .section-head-split {
    flex-direction: column;
    align-items: flex-start;
  }

  .js .gallery {
    grid-template-columns: minmax(0, 1fr);
    gap: 16px;
  }

  .tablist {
    flex-direction: row;
    gap: 8px;
    margin: 0 calc(-1 * var(--gutter));
    padding: 0 var(--gutter) 4px;
    overflow-x: auto;
    scrollbar-width: none;
  }

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

  .tab {
    flex: none;
    padding: 9px 14px;
    border-color: var(--hairline);
    border-radius: var(--radius-pill);
  }

  .tab[aria-selected="true"] {
    border-color: var(--ink);
    background: var(--ink);
  }

  .tab[aria-selected="true"] .tab-title {
    color: var(--canvas);
  }

  .tab-title {
    font-size: 14px;
    font-weight: 500;
  }

  .tab-desc {
    display: none;
  }

  .js .panel figcaption {
    display: block;
  }
}

/* İçe aktarma kartı */

.import-card {
  display: grid;
  grid-template-columns: minmax(0, 1fr) minmax(0, 1fr);
  align-items: center;
  gap: 56px;
  padding: 48px;
  border: 1px solid var(--hairline);
  border-radius: var(--radius-lg);
  background: var(--surface);
}

.import-copy h2 {
  margin-bottom: 16px;
}

.import-copy > p:last-child {
  font-size: 17px;
  line-height: 1.6;
}

.steps {
  margin: 0;
  padding: 0;
  border: 1px solid var(--hairline);
  border-radius: var(--radius-lg);
  background: var(--canvas-soft);
  list-style: none;
}

.steps li {
  display: flex;
  gap: 16px;
  padding: 18px 20px;
  border-bottom: 1px solid var(--hairline);
  color: var(--ink);
  font-size: 15px;
  line-height: 1.55;
}

.steps li:last-child {
  border-bottom: 0;
}

.step-num {
  flex: none;
  padding-top: 2px;
  color: var(--muted);
  font-family: var(--font-mono);
  font-size: 12px;
}

@media (max-width: 899px) {
  .import-card {
    grid-template-columns: minmax(0, 1fr);
    gap: 32px;
    padding: 32px 20px;
  }
}

/* SSS */

.section-faq {
  padding-top: 0;
}

.faq-grid {
  display: grid;
  grid-template-columns: minmax(0, 1fr) minmax(0, 1.4fr);
  align-items: start;
  gap: 64px;
}

.faq-list {
  border-top: 1px solid var(--hairline);
}

.faq-list details {
  border-bottom: 1px solid var(--hairline);
}

.faq-list summary {
  display: flex;
  justify-content: space-between;
  gap: 24px;
  padding: 20px 0;
  color: var(--ink);
  font-size: 17px;
  font-weight: 500;
  cursor: pointer;
  list-style: none;
}

.faq-list summary::-webkit-details-marker {
  display: none;
}

.faq-list summary::after {
  content: "+";
  flex: none;
  color: var(--muted);
  font-size: 22px;
  font-weight: 400;
  line-height: 1;
  transition: transform 0.2s ease;
}

.faq-list details[open] summary::after {
  transform: rotate(45deg);
}

.faq-list details p {
  max-width: 640px;
  padding-bottom: 22px;
  font-size: 16px;
  line-height: 1.6;
}

@media (max-width: 899px) {
  .faq-grid {
    grid-template-columns: minmax(0, 1fr);
    gap: 32px;
  }
}

/* Kapanış çağrısı */

.cta-band {
  padding: 112px 0;
  border-top: 1px solid var(--hairline);
  text-align: center;
}

.cta-band .container {
  display: flex;
  flex-direction: column;
  align-items: center;
}

.cta-icon {
  margin-bottom: 28px;
  border-radius: 14px;
}

.cta-band .section-lead {
  margin: 16px auto 32px;
}

/* Alt bilgi */

.footer {
  padding: 64px 0 32px;
  border-top: 1px solid var(--hairline);
  font-size: 14px;
}

.footer-grid {
  display: grid;
  grid-template-columns: minmax(0, 1.6fr) repeat(4, minmax(0, 1fr));
  gap: 32px;
}

.footer-brand p {
  max-width: 260px;
  margin-top: 14px;
}

.footer-title {
  margin-bottom: 14px;
  color: var(--ink);
  font-size: 13px;
  font-weight: 600;
}

.footer ul {
  display: grid;
  gap: 10px;
  margin: 0;
  padding: 0;
  list-style: none;
}

.footer ul a {
  color: var(--body);
}

.footer ul a:hover {
  color: var(--ink);
}

.footer-bottom {
  display: flex;
  flex-wrap: wrap;
  justify-content: space-between;
  gap: 8px 24px;
  margin-top: 56px;
  padding-top: 24px;
  border-top: 1px solid var(--hairline);
  color: var(--muted);
  font-size: 13px;
}

@media (max-width: 899px) {
  .footer-grid {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }

  .footer-brand {
    grid-column: 1 / -1;
  }
}

/* 404 */

.notfound {
  padding: 120px 0 160px;
}
