/* ===== FastingDuo – Sade, erişilebilir, mobil öncelikli ===== */
:root {
  --accent: #FF6B35;
  --accent-dark: #e55a2b;
  --accent-focus: #ff8a5c;
  --text: #1a1a1a;
  --text-muted: #4a4a4a;
  --bg: #fafafa;
  --bg-section: #ffffff;
  --border: #e8e8e8;
  --radius: 12px;
  --radius-sm: 8px;
  --font: 'DM Sans', -apple-system, BlinkMacSystemFont, sans-serif;
  --space-xs: 0.5rem;
  --space-sm: 1rem;
  --space-md: 1.5rem;
  --space-lg: 2rem;
  --space-xl: 3rem;
  --space-2xl: 4rem;
  --touch-min: 44px;
}

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

html {
  scroll-behavior: smooth;
}

body {
  margin: 0;
  font-family: var(--font);
  font-size: 16px;
  line-height: 1.6;
  color: var(--text);
  background: var(--bg);
  -webkit-font-smoothing: antialiased;
  overflow-x: visible;
}

main {
  overflow: visible;
}

.visually-hidden {
  position: absolute;
  width: 1px;
  height: 1px;
  padding: 0;
  margin: -1px;
  overflow: hidden;
  clip: rect(0, 0, 0, 0);
  white-space: nowrap;
  border: 0;
}

.container {
  width: 100%;
  max-width: 720px;
  margin: 0 auto;
  padding: 0 var(--space-md);
}

@media (min-width: 900px) {
  .container {
    max-width: 900px;
    padding: 0 var(--space-lg);
  }
}

/* ----- Header ----- */
.header {
  position: sticky;
  top: 0;
  z-index: 100;
  background: var(--bg-section);
  border-bottom: 1px solid var(--border);
}

.header .container {
  display: flex;
  align-items: center;
  justify-content: space-between;
  min-height: var(--touch-min);
  padding-top: var(--space-sm);
  padding-bottom: var(--space-sm);
}

.logo {
  font-weight: 700;
  font-size: 1.25rem;
  color: var(--text);
  text-decoration: none;
}

.logo:hover,
.logo:focus-visible {
  color: var(--accent);
}

.nav {
  display: none;
  gap: var(--space-md);
}

.nav a {
  color: var(--text-muted);
  text-decoration: none;
  font-size: 0.9375rem;
}

.nav a:hover,
.nav a:focus-visible {
  color: var(--accent);
}

.nav a[aria-current="page"] {
  color: var(--accent);
  font-weight: 600;
}

@media (min-width: 640px) {
  .nav {
    display: flex;
  }

  .menu-toggle {
    display: none;
  }
}

.menu-toggle {
  display: flex;
  flex-direction: column;
  justify-content: center;
  gap: 5px;
  width: var(--touch-min);
  height: var(--touch-min);
  padding: 0;
  background: none;
  border: none;
  cursor: pointer;
  color: var(--text);
}

.menu-toggle span {
  display: block;
  width: 22px;
  height: 2px;
  background: currentColor;
  border-radius: 1px;
}

.menu-toggle:hover,
.menu-toggle:focus-visible {
  color: var(--accent);
}

.menu-toggle[aria-expanded="true"] + .nav-mobile,
.nav.open {
  display: flex;
}

@media (max-width: 639px) {
  .nav.open {
    display: flex;
    position: absolute;
    top: 100%;
    left: 0;
    right: 0;
    flex-direction: column;
    background: var(--bg-section);
    border-bottom: 1px solid var(--border);
    padding: var(--space-md);
    gap: var(--space-sm);
  }
}

/* ----- Buttons ----- */
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: var(--touch-min);
  min-width: 140px;
  padding: 0 var(--space-md);
  font-family: var(--font);
  font-size: 1rem;
  font-weight: 600;
  text-decoration: none;
  border: none;
  border-radius: var(--radius-sm);
  cursor: pointer;
  transition: background 0.2s, color 0.2s, box-shadow 0.2s;
}

.btn:focus-visible {
  outline: 2px solid var(--accent);
  outline-offset: 2px;
}

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

.btn-primary:hover {
  background: var(--accent-dark);
}

.btn-primary:focus-visible {
  outline-color: var(--accent-dark);
  box-shadow: 0 0 0 4px var(--accent-focus);
}

/* ----- Hero ----- */
.hero {
  padding: var(--space-2xl) 0;
  background: var(--bg-section);
}

.hero__inner {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: var(--space-xl);
}

.hero__content {
  flex: 1;
}

.hero h1 {
  margin: 0 0 var(--space-md);
  font-size: 1.75rem;
  font-weight: 700;
  line-height: 1.25;
  color: var(--text);
}

.hero-subtitle {
  margin: 0;
  font-size: 1rem;
  color: var(--text-muted);
  max-width: 56ch;
  line-height: 1.65;
}

.hero__phone {
  flex-shrink: 0;
}

.hero-device {
  width: 200px;
  background: #1a1a1a;
  border-radius: 36px;
  padding: 10px;
  box-shadow: 0 0 0 2px #2c2c2e, 0 20px 40px rgba(0, 0, 0, 0.2);
}

.hero-device .device-screen {
  width: 100%;
  aspect-ratio: 9 / 19.5;
  border-radius: 24px;
  overflow: hidden;
  background: #000;
}

.hero-device .device-screen img {
  display: block;
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: top center;
}

@media (min-width: 600px) {
  .hero h1 {
    font-size: 2.25rem;
  }

  .hero-subtitle {
    font-size: 1.125rem;
  }
}

@media (min-width: 900px) {
  .hero__inner {
    flex-direction: row;
    align-items: center;
    justify-content: space-between;
    gap: var(--space-2xl);
  }

  .hero__content {
    max-width: 50%;
  }

  .hero__phone {
    max-width: 280px;
  }

  .hero-device {
    width: 100%;
    max-width: 260px;
    padding: 12px;
    border-radius: 40px;
  }

  .hero-device .device-screen {
    border-radius: 28px;
  }
}

/* ----- Features ----- */
.features {
  padding: var(--space-2xl) 0;
}

.features h2 {
  margin: 0 0 var(--space-xl);
  font-size: 1.5rem;
  font-weight: 700;
  color: var(--text);
}

.features-list {
  list-style: none;
  margin: 0;
  padding: 0;
  display: grid;
  gap: var(--space-lg);
}

.features-list li {
  padding: var(--space-md);
  background: var(--bg-section);
  border-radius: var(--radius);
  border: 1px solid var(--border);
}

.feature-header {
  display: flex;
  align-items: center;
  gap: var(--space-sm);
  margin-bottom: var(--space-xs);
}

.feature-icon {
  display: flex;
  align-items: center;
  justify-content: center;
  flex-shrink: 0;
  width: 48px;
  height: 48px;
  color: var(--accent);
}

.feature-icon svg {
  width: 28px;
  height: 28px;
}

.features-list h3 {
  margin: 0;
  font-size: 1.125rem;
  font-weight: 600;
  color: var(--text);
}

.features-list p {
  margin: 0;
  font-size: 1rem;
  color: var(--text-muted);
  line-height: 1.6;
}

@media (min-width: 640px) {
  .features-list {
    gap: var(--space-xl);
  }
}

/* ----- How it works ----- */
.how-it-works {
  padding: var(--space-2xl) 0 var(--space-2xl);
  background: var(--bg-section);
  overflow: visible;
}

.how-it-works .container {
  overflow: visible;
}

.how-it-works h2 {
  margin: 0 0 var(--space-lg);
  font-size: 1.5rem;
  font-weight: 700;
  color: var(--text);
}

.steps {
  list-style: none;
  margin: 0;
  padding: 0;
  counter-reset: step;
  display: grid;
  gap: var(--space-lg);
}

.steps li {
  counter-increment: step;
  display: grid;
  grid-template-columns: auto 1fr;
  gap: var(--space-md);
  align-items: start;
}

.step-num {
  width: 36px;
  height: 36px;
  display: flex;
  align-items: center;
  justify-content: center;
  background: var(--accent);
  color: #fff;
  font-weight: 700;
  font-size: 1rem;
  border-radius: 50%;
  flex-shrink: 0;
}

.steps h3 {
  margin: 0 0 var(--space-xs);
  font-size: 1.125rem;
  font-weight: 600;
  color: var(--text);
}

.steps p {
  margin: 0;
  font-size: 1rem;
  color: var(--text-muted);
  grid-column: 2;
  line-height: 1.6;
}

/* ----- Mockup (How it works içinde – kesilmeden tam görünsün) ----- */
.how-it-works .mockup-row {
  margin-top: var(--space-md);
  margin-bottom: 0;
  margin-left: auto;
  margin-right: auto;
  display: flex;
  flex-direction: row;
  flex-wrap: nowrap;
  justify-content: center;
  align-items: flex-start;
  gap: var(--space-lg);
  overflow: visible;
  padding: var(--space-md) var(--space-sm) var(--space-lg);
  min-width: min(100%, 420px);
}

.how-it-works .device-wrap {
  flex: 0 0 auto;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: var(--space-sm);
}

.how-it-works .device-wrap {
  flex: 0 0 160px;
  min-width: 160px;
}

.how-it-works .device-frame {
  position: relative;
  width: 100%;
  background: #1a1a1a;
  border-radius: 36px;
  padding: 8px;
  box-shadow:
    0 0 0 2px #2c2c2e,
    0 20px 40px rgba(0, 0, 0, 0.2);
}

.how-it-works .device-screen {
  position: relative;
  width: 100%;
  aspect-ratio: 9 / 19.5;
  border-radius: 24px;
  overflow: hidden;
  background: #000;
}

.how-it-works .device-screen img {
  display: block;
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: top center;
  vertical-align: top;
}

@media (min-width: 480px) {
  .how-it-works .device-wrap {
    flex: 0 0 190px;
    min-width: 190px;
  }
}

@media (min-width: 640px) {
  .how-it-works .mockup-row {
    gap: var(--space-xl);
  }

  .how-it-works .device-wrap {
    flex: 0 0 220px;
    min-width: 220px;
  }

  .how-it-works .device-frame {
    padding: 10px;
    border-radius: 40px;
  }

  .how-it-works .device-screen {
    border-radius: 28px;
  }
}

/* ----- App screens (slider) ----- */
.app-screens {
  padding: var(--space-2xl) 0;
  background: var(--bg-section);
  overflow: hidden;
}

.app-screens__title {
  margin: 0 0 var(--space-sm);
  font-size: 1.5rem;
  font-weight: 700;
  color: var(--text);
  text-align: center;
}

.app-screens__intro {
  margin: 0 0 var(--space-xl);
  font-size: 1rem;
  color: var(--text-muted);
  text-align: center;
  max-width: 48ch;
  margin-left: auto;
  margin-right: auto;
  line-height: 1.55;
}

.app-screens__slider-wrap {
  position: relative;
  padding: 0 var(--space-md);
  max-width: 420px;
  margin: 0 auto;
}

.app-screens__viewport {
  overflow: hidden;
  border-radius: var(--radius);
}

.app-screens__track {
  display: flex;
  transition: transform 0.35s ease;
  will-change: transform;
}

.app-screens__slide {
  flex: 0 0 100%;
  min-width: 0;
  display: flex;
  justify-content: center;
  align-items: center;
  padding: var(--space-sm) 0;
}

.app-screens__item {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: var(--space-xs);
}

.app-screens__label {
  font-size: 0.8125rem;
  font-weight: 600;
  color: var(--text-muted);
  text-align: center;
}

.app-screens-device {
  width: 160px;
  background: #1a1a1a;
  border-radius: 28px;
  padding: 6px;
  box-shadow: 0 0 0 2px #2c2c2e, 0 16px 32px rgba(0, 0, 0, 0.18);
}

.app-screens-device .device-screen {
  width: 100%;
  aspect-ratio: 9 / 19.5;
  border-radius: 20px;
  overflow: hidden;
  background: #000;
}

.app-screens-device .device-screen img {
  display: block;
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: top center;
}

/* Slider buttons */
.app-screens__btn {
  position: absolute;
  top: 50%;
  transform: translateY(-50%);
  z-index: 2;
  width: 44px;
  height: 44px;
  border: none;
  border-radius: 50%;
  background: var(--bg-section);
  color: var(--text);
  box-shadow: 0 2px 12px rgba(0, 0, 0, 0.12);
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: center;
  transition: background 0.2s, color 0.2s, box-shadow 0.2s;
}

.app-screens__btn:hover {
  background: var(--accent);
  color: #fff;
  box-shadow: 0 4px 16px rgba(255, 107, 53, 0.35);
}

.app-screens__btn:focus {
  outline: none;
  box-shadow: 0 0 0 3px var(--accent);
}

.app-screens__btn[aria-disabled="true"] {
  opacity: 0.5;
  cursor: default;
  pointer-events: none;
}

.app-screens__prev {
  left: var(--space-sm);
}

.app-screens__next {
  right: var(--space-sm);
}

/* Dots */
.app-screens__dots {
  display: flex;
  justify-content: center;
  gap: var(--space-xs);
  margin-top: var(--space-lg);
  padding: 0 var(--space-md);
}

.app-screens__dot {
  width: 8px;
  height: 8px;
  border: none;
  border-radius: 50%;
  background: var(--border);
  cursor: pointer;
  padding: 0;
  transition: background 0.2s, transform 0.2s;
}

.app-screens__dot:hover {
  background: var(--text-muted);
}

.app-screens__dot.is-active {
  background: var(--accent);
  transform: scale(1.25);
}

.app-screens__dot:focus {
  outline: none;
  box-shadow: 0 0 0 2px var(--accent);
}

@media (min-width: 640px) {
  .app-screens__title {
    font-size: 1.75rem;
  }

  .app-screens__slider-wrap {
    max-width: 480px;
    padding: 0 var(--space-xl);
  }

  .app-screens-device {
    width: 200px;
    padding: 8px;
    border-radius: 32px;
  }

  .app-screens-device .device-screen {
    border-radius: 24px;
  }

  .app-screens__label {
    font-size: 0.875rem;
  }

  .app-screens__btn {
    width: 48px;
    height: 48px;
  }

  .app-screens__prev {
    left: var(--space-md);
  }

  .app-screens__next {
    right: var(--space-md);
  }
}

@media (min-width: 900px) {
  .app-screens__slider-wrap {
    max-width: 520px;
  }

  .app-screens-device {
    width: 220px;
  }
}

@media (prefers-reduced-motion: reduce) {
  .app-screens__track {
    transition-duration: 0.1s;
  }
}

/* ----- CTA ----- */
.cta {
  padding: var(--space-2xl) 0;
  background: var(--accent);
  color: #fff;
  text-align: center;
}

.cta h2 {
  margin: 0 0 var(--space-sm);
  font-size: 1.5rem;
  font-weight: 700;
  color: #fff;
}

.cta p {
  margin: 0 0 var(--space-lg);
  font-size: 1rem;
  opacity: 0.95;
}

.cta-buttons {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: var(--space-sm);
}

.cta-buttons .btn {
  background: #fff;
  color: var(--accent);
}

.cta-buttons .btn:hover {
  background: #f5f5f5;
}

.cta-buttons .btn:focus-visible {
  outline-color: #fff;
  box-shadow: 0 0 0 4px rgba(255, 255, 255, 0.5);
}

/* ----- Footer ----- */
.footer {
  padding: var(--space-xl) 0 var(--space-lg);
  background: var(--bg-section);
  border-top: 1px solid var(--border);
}

.footer-grid {
  display: flex;
  flex-wrap: wrap;
  justify-content: space-between;
  align-items: start;
  gap: var(--space-lg);
  margin-bottom: var(--space-lg);
}

.footer-brand .logo {
  display: inline-block;
  margin-bottom: var(--space-xs);
}

.footer-brand p {
  margin: 0;
  font-size: 0.9375rem;
  color: var(--text-muted);
}

.footer-links {
  display: flex;
  gap: var(--space-md);
}

.footer-links a {
  color: var(--text-muted);
  text-decoration: none;
  font-size: 0.9375rem;
}

.footer-links a:hover,
.footer-links a:focus-visible {
  color: var(--accent);
}

.footer-copy {
  margin: 0;
  font-size: 0.875rem;
  color: var(--text-muted);
}

/* ----- Privacy page ----- */
.privacy-page {
  padding: var(--space-xl) 0 var(--space-2xl);
}

.privacy-content {
  max-width: 680px;
}

.privacy-content h1 {
  margin: 0 0 var(--space-xs);
  font-size: 1.75rem;
  font-weight: 700;
  color: var(--text);
}

.privacy-updated {
  margin: 0 0 var(--space-lg);
  font-size: 0.9375rem;
  color: var(--text-muted);
}

.privacy-content h2 {
  margin: var(--space-xl) 0 var(--space-sm);
  font-size: 1.25rem;
  font-weight: 600;
  color: var(--text);
}

.privacy-content p {
  margin: 0 0 var(--space-md);
  font-size: 1rem;
  line-height: 1.7;
  color: var(--text);
}

.privacy-content a {
  color: var(--accent);
  text-decoration: underline;
}

.privacy-content a:hover,
.privacy-content a:focus-visible {
  color: var(--accent-dark);
}

@media (min-width: 600px) {
  .privacy-content h1 {
    font-size: 2rem;
  }
}
