/* ===================================================================
   İlaçmatik — Paylaşılan Stiller
   Tüm sayfalarda <link rel="stylesheet" href="styles.css"> ile çağrılır.
   =================================================================== */

:root {
  --brand: #0E8C68;
  --brand-deep: #064E3B;
  --brand-mid: #0A6B52;
  --brand-bright: #14B583;
  --brand-soft: #C5E5D5;

  --bg-cream: #F5FAF7;
  --bg-warm: #E9F4EE;
  --bg-soft: #DCEBE2;

  --ink: #0F2A22;
  --ink-soft: #2F4A41;
  --ink-mute: #5C726B;

  --line: rgba(15, 42, 34, 0.12);
  --line-soft: rgba(15, 42, 34, 0.06);

  --red: #E53E3E;
  --blue: #3B7BD9;
  --gold: #C8954E;

  --shadow-soft: 0 30px 60px -30px rgba(15, 42, 34, 0.22);
  --shadow-brand: 0 25px 50px -20px rgba(14, 140, 104, 0.35);
}

* { margin: 0; padding: 0; box-sizing: border-box; }

html {
  scroll-behavior: smooth;
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
}

body {
  font-family: 'Manrope', sans-serif;
  background: var(--bg-cream);
  color: var(--ink);
  font-size: 17px;
  line-height: 1.65;
  font-weight: 400;
  overflow-x: hidden;
  position: relative;
}

::selection { background: var(--brand); color: var(--bg-cream); }

h1, h2, h3, h4, h5 {
  font-family: 'Fraunces', serif;
  font-weight: 400;
  font-variation-settings: "SOFT" 80, "opsz" 144;
  letter-spacing: -0.02em;
  color: var(--ink);
}

a { color: inherit; text-decoration: none; transition: opacity 0.3s ease; }

.container {
  max-width: 1240px;
  margin: 0 auto;
  padding: 0 32px;
  position: relative;
}
.container-narrow {
  max-width: 820px;
  margin: 0 auto;
  padding: 0 32px;
}

/* ===== NAVIGATION ===== */
.nav {
  position: fixed;
  top: 0; left: 0; right: 0;
  z-index: 100;
  padding: 22px 0;
  transition: all 0.4s cubic-bezier(0.16, 1, 0.3, 1);
  background: rgba(245, 250, 247, 0.85);
  backdrop-filter: blur(20px) saturate(140%);
  -webkit-backdrop-filter: blur(20px) saturate(140%);
  border-bottom: 1px solid var(--line-soft);
}
.nav-inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
}
.brand {
  display: flex;
  align-items: center;
  gap: 12px;
  font-family: 'Fraunces', serif;
  font-size: 22px;
  font-weight: 500;
  font-variation-settings: "SOFT" 100;
  letter-spacing: -0.01em;
  color: var(--ink);
}
.brand-mark {
  width: 38px;
  height: 38px;
  display: grid;
  place-items: center;
  flex-shrink: 0;
}
.brand-mark svg { width: 100%; height: 100%; }

.nav-links {
  display: flex;
  gap: 32px;
  list-style: none;
  font-size: 15px;
  font-weight: 500;
  color: var(--ink-soft);
}
.nav-links a {
  position: relative;
  padding: 4px 0;
}
.nav-links a:hover { color: var(--brand); }
.nav-links a.active { color: var(--brand-deep); font-weight: 600; }

.nav-cta {
  background: var(--brand-deep);
  color: var(--bg-cream);
  padding: 11px 22px;
  border-radius: 100px;
  font-size: 14px;
  font-weight: 600;
  transition: all 0.3s ease;
}
.nav-cta:hover {
  background: var(--brand);
  transform: translateY(-1px);
  box-shadow: var(--shadow-brand);
}

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

/* ===== BUTTONS ===== */
.btn {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  padding: 16px 28px;
  border-radius: 100px;
  font-size: 15px;
  font-weight: 600;
  transition: all 0.4s cubic-bezier(0.16, 1, 0.3, 1);
  cursor: pointer;
  border: none;
  font-family: inherit;
}
.btn-primary {
  background: linear-gradient(135deg, var(--brand) 0%, var(--brand-mid) 100%);
  color: var(--bg-cream);
  box-shadow: 0 14px 30px -10px rgba(10, 107, 82, 0.5);
}
.btn-primary:hover {
  background: linear-gradient(135deg, var(--brand-bright) 0%, var(--brand) 100%);
  transform: translateY(-2px);
  box-shadow: 0 20px 40px -10px rgba(14, 140, 104, 0.55);
}
.btn-secondary {
  background: transparent;
  color: var(--ink);
  border: 1px solid var(--line);
}
.btn-secondary:hover {
  background: var(--brand-deep);
  color: var(--bg-cream);
  border-color: var(--brand-deep);
}
.btn svg { width: 18px; height: 18px; }

/* ===== PAGE HEADER (legal/content pages) ===== */
.page-header {
  padding: 160px 0 60px;
  border-bottom: 1px solid var(--line-soft);
  position: relative;
}
.page-header h1 {
  font-size: clamp(40px, 5.5vw, 64px);
  line-height: 1.05;
  margin-bottom: 18px;
  max-width: 18ch;
}
.page-header h1 .ital {
  font-style: italic;
  color: var(--brand);
  font-weight: 300;
}
.page-header .subtitle {
  font-family: 'Fraunces', serif;
  font-style: italic;
  font-size: clamp(18px, 2vw, 22px);
  color: var(--ink-soft);
  font-variation-settings: "SOFT" 100;
  font-weight: 300;
  max-width: 60ch;
  line-height: 1.45;
}
.page-header .breadcrumb {
  font-size: 13px;
  color: var(--ink-mute);
  letter-spacing: 0.1em;
  text-transform: uppercase;
  margin-bottom: 16px;
  font-weight: 500;
}
.page-header .breadcrumb a:hover { color: var(--brand); }

/* ===== PROSE (legal & content pages) ===== */
.prose {
  padding: 80px 0 120px;
}
.prose h2 {
  font-size: clamp(26px, 3vw, 34px);
  margin: 60px 0 20px;
  line-height: 1.2;
}
.prose h2:first-child { margin-top: 0; }
.prose h3 {
  font-size: 22px;
  margin: 36px 0 14px;
  font-weight: 500;
  font-variation-settings: "SOFT" 100;
}
.prose p {
  font-size: 17px;
  line-height: 1.75;
  color: var(--ink-soft);
  margin-bottom: 18px;
}
.prose ul, .prose ol {
  margin: 18px 0 24px;
  padding-left: 28px;
  color: var(--ink-soft);
}
.prose li {
  font-size: 17px;
  line-height: 1.7;
  margin-bottom: 8px;
}
.prose a {
  color: var(--brand);
  text-decoration: underline;
  text-decoration-thickness: 1px;
  text-underline-offset: 3px;
}
.prose a:hover { color: var(--brand-deep); }
.prose strong { color: var(--ink); font-weight: 600; }
.prose em { font-style: italic; }
.prose blockquote {
  border-left: 3px solid var(--brand);
  background: var(--bg-warm);
  padding: 20px 24px;
  margin: 24px 0;
  font-family: 'Fraunces', serif;
  font-style: italic;
  font-size: 17px;
  color: var(--ink);
  border-radius: 0 12px 12px 0;
}
.prose .lead {
  font-family: 'Fraunces', serif;
  font-size: 20px;
  color: var(--ink);
  font-weight: 300;
  font-variation-settings: "SOFT" 100;
  line-height: 1.5;
  margin-bottom: 30px;
}
.prose .alert {
  background: #FFF5F5;
  border: 1px solid #FCC8C8;
  border-radius: 12px;
  padding: 18px 22px;
  margin: 24px 0;
  color: #7A2828;
  font-size: 15px;
  line-height: 1.6;
}
.prose .alert strong { color: var(--red); }
.prose .info {
  background: var(--brand-soft);
  border-left: 3px solid var(--brand);
  border-radius: 0 12px 12px 0;
  padding: 18px 22px;
  margin: 24px 0;
  color: var(--brand-deep);
  font-size: 15px;
  line-height: 1.6;
}
.prose table {
  width: 100%;
  border-collapse: collapse;
  margin: 24px 0;
  font-size: 15px;
}
.prose th, .prose td {
  text-align: left;
  padding: 12px 16px;
  border-bottom: 1px solid var(--line);
}
.prose th {
  background: var(--bg-warm);
  font-weight: 600;
  color: var(--ink);
}
.prose td { color: var(--ink-soft); }

.last-update {
  margin-top: 60px;
  padding-top: 24px;
  border-top: 1px solid var(--line-soft);
  font-size: 14px;
  color: var(--ink-mute);
  font-style: italic;
}

/* TOC (table of contents) */
.toc {
  background: var(--bg-warm);
  border: 1px solid var(--line);
  border-radius: 16px;
  padding: 24px 28px;
  margin-bottom: 50px;
}
.toc-title {
  font-size: 12px;
  font-weight: 600;
  letter-spacing: 0.18em;
  text-transform: uppercase;
  color: var(--ink-mute);
  margin-bottom: 14px;
}
.toc ol {
  list-style: none;
  padding: 0;
  margin: 0;
  counter-reset: toc;
}
.toc li {
  counter-increment: toc;
  font-size: 15px;
  margin-bottom: 6px;
}
.toc li::before {
  content: counter(toc, decimal-leading-zero) ". ";
  font-family: 'Fraunces', serif;
  font-style: italic;
  color: var(--brand);
  margin-right: 8px;
}
.toc a { color: var(--ink-soft); }
.toc a:hover { color: var(--brand); }

/* ===== FOOTER (shared) ===== */
.footer {
  background: var(--bg-warm);
  padding: 80px 0 32px;
  border-top: 1px solid var(--line);
  position: relative;
}
.footer-grid {
  display: grid;
  grid-template-columns: 2fr 1fr 1fr 1fr;
  gap: 48px;
  margin-bottom: 60px;
}
@media (max-width: 760px) {
  .footer-grid { grid-template-columns: 1fr 1fr; gap: 40px; }
}
@media (max-width: 480px) {
  .footer-grid { grid-template-columns: 1fr; }
}
.footer-brand p {
  margin-top: 20px;
  font-family: 'Fraunces', serif;
  font-style: italic;
  font-size: 16px;
  color: var(--ink-soft);
  font-variation-settings: "SOFT" 100;
  max-width: 320px;
}
.footer-col h4 {
  font-family: 'Manrope', sans-serif;
  font-size: 12px;
  font-weight: 600;
  letter-spacing: 0.18em;
  text-transform: uppercase;
  color: var(--ink-mute);
  margin-bottom: 18px;
}
.footer-col ul {
  list-style: none;
  display: flex;
  flex-direction: column;
  gap: 10px;
}
.footer-col a {
  font-size: 15px;
  color: var(--ink-soft);
  transition: color 0.3s ease;
}
.footer-col a:hover { color: var(--brand); }

.footer-bar {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding-top: 32px;
  border-top: 1px solid var(--line);
  font-size: 13px;
  color: var(--ink-mute);
  flex-wrap: wrap;
  gap: 16px;
}

/* ===== WAITLIST FORM (shared) ===== */
.waitlist-card {
  background: white;
  border: 1px solid var(--line);
  border-radius: 24px;
  padding: 36px;
  box-shadow: 0 30px 60px -30px rgba(15, 42, 34, 0.18);
  max-width: 540px;
}
.waitlist-badge {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  background: var(--brand-soft);
  color: var(--brand-deep);
  padding: 6px 14px;
  border-radius: 100px;
  font-size: 12px;
  font-weight: 600;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  margin-bottom: 20px;
}
.waitlist-badge .dot {
  width: 8px; height: 8px;
  border-radius: 50%;
  background: var(--brand);
  animation: pulse-dot 2.4s ease-in-out infinite;
}
@keyframes pulse-dot {
  0%, 100% { box-shadow: 0 0 0 4px rgba(14, 140, 104, 0.2); }
  50% { box-shadow: 0 0 0 8px rgba(14, 140, 104, 0.05); }
}
.waitlist-card h3 {
  font-family: 'Fraunces', serif;
  font-size: 24px;
  margin-bottom: 12px;
  letter-spacing: -0.01em;
}
.waitlist-card > p {
  color: var(--ink-soft);
  font-size: 15px;
  margin-bottom: 24px;
  line-height: 1.6;
}
.waitlist-form { display: flex; flex-direction: column; gap: 16px; }
.form-row { display: flex; gap: 8px; }
.form-row input[type="email"] {
  flex: 1;
  padding: 14px 18px;
  font-size: 16px;
  border: 1px solid var(--line);
  border-radius: 12px;
  font-family: inherit;
  background: var(--bg-cream);
  transition: border-color 0.2s, box-shadow 0.2s;
}
.form-row input[type="email"]:focus {
  outline: none;
  border-color: var(--brand);
  box-shadow: 0 0 0 3px rgba(14, 140, 104, 0.15);
}
.form-row-radio {
  flex-wrap: wrap;
  align-items: center;
  gap: 14px;
  font-size: 13px;
  color: var(--ink-soft);
}
.form-row-radio label {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  cursor: pointer;
}
.form-label { font-weight: 600; }
.consent-row {
  display: flex;
  align-items: flex-start;
  gap: 10px;
  font-size: 13px;
  color: var(--ink-soft);
  line-height: 1.5;
  cursor: pointer;
}
.consent-row input { margin-top: 4px; flex-shrink: 0; }
.consent-row a { color: var(--brand); text-decoration: underline; }
.form-feedback { font-size: 14px; font-weight: 500; min-height: 20px; }
.form-feedback.success { color: var(--brand-deep); }
.form-feedback.error { color: var(--red); }
.waitlist-perks {
  display: flex;
  gap: 16px;
  flex-wrap: wrap;
  margin-top: 24px;
  padding-top: 20px;
  border-top: 1px solid var(--line-soft);
  font-size: 13px;
  color: var(--ink-soft);
}
.btn-loading[hidden] { display: none; }
button[disabled] { opacity: 0.6; cursor: wait; }

/* ===== COOKIE BANNER ===== */
.cookie-banner {
  position: fixed;
  bottom: 20px;
  left: 20px;
  right: 20px;
  max-width: 540px;
  margin: 0 auto;
  background: white;
  border: 1px solid var(--line);
  border-radius: 16px;
  padding: 20px 24px;
  box-shadow: 0 20px 50px -10px rgba(15, 42, 34, 0.22);
  z-index: 200;
  font-size: 14px;
  line-height: 1.55;
  color: var(--ink-soft);
  display: none;
}
.cookie-banner.visible { display: block; }
.cookie-banner h4 {
  font-family: 'Fraunces', serif;
  font-size: 17px;
  color: var(--ink);
  margin-bottom: 8px;
}
.cookie-banner a {
  color: var(--brand);
  text-decoration: underline;
}
.cookie-banner-actions {
  display: flex;
  gap: 8px;
  margin-top: 14px;
  flex-wrap: wrap;
}
.cookie-banner button {
  font-family: inherit;
  font-size: 13px;
  font-weight: 600;
  padding: 10px 18px;
  border-radius: 100px;
  border: none;
  cursor: pointer;
}
.cookie-accept {
  background: var(--brand);
  color: white;
}
.cookie-decline {
  background: transparent;
  color: var(--ink-soft);
  border: 1px solid var(--line);
}

/* ===== PRICING TABLE ===== */
.pricing-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 24px;
  max-width: 920px;
  margin: 0 auto;
}
@media (max-width: 720px) {
  .pricing-grid { grid-template-columns: 1fr; }
}
.pricing-card {
  background: white;
  border: 1px solid var(--line);
  border-radius: 24px;
  padding: 40px 36px;
  position: relative;
  transition: transform 0.3s ease, box-shadow 0.3s ease;
}
.pricing-card.featured {
  background: linear-gradient(160deg, var(--brand-deep) 0%, var(--brand-mid) 100%);
  color: var(--bg-cream);
  border-color: transparent;
  box-shadow: 0 30px 60px -20px rgba(6, 78, 59, 0.4);
}
.pricing-card.featured h3, .pricing-card.featured .price { color: white; }
.pricing-card-tag {
  position: absolute;
  top: -12px;
  right: 24px;
  background: var(--brand-bright);
  color: white;
  font-size: 11px;
  font-weight: 700;
  padding: 6px 12px;
  border-radius: 100px;
  letter-spacing: 0.05em;
}
.pricing-card h3 {
  font-size: 28px;
  margin-bottom: 8px;
}
.pricing-card .desc {
  font-size: 14px;
  color: var(--ink-mute);
  margin-bottom: 24px;
  min-height: 42px;
}
.pricing-card.featured .desc { color: rgba(245, 250, 247, 0.8); }
.price {
  font-family: 'Fraunces', serif;
  font-size: 56px;
  font-weight: 600;
  letter-spacing: -0.04em;
  line-height: 1;
  margin-bottom: 6px;
}
.price-period {
  font-size: 16px;
  color: var(--ink-mute);
  margin-bottom: 30px;
}
.pricing-card.featured .price-period { color: rgba(245, 250, 247, 0.7); }
.feature-list {
  list-style: none;
  margin: 24px 0 32px;
}
.feature-list li {
  font-size: 15px;
  padding: 10px 0 10px 28px;
  position: relative;
  color: var(--ink-soft);
  border-top: 1px solid var(--line-soft);
}
.pricing-card.featured .feature-list li {
  color: rgba(245, 250, 247, 0.9);
  border-top-color: rgba(255, 255, 255, 0.12);
}
.feature-list li::before {
  content: '✓';
  position: absolute;
  left: 0;
  top: 50%;
  transform: translateY(-50%);
  color: var(--brand);
  font-weight: 700;
}
.pricing-card.featured .feature-list li::before { color: var(--brand-bright); }
.feature-list li.no::before { content: '–'; color: var(--ink-mute); }

/* FAQ */
.faq-item {
  border-bottom: 1px solid var(--line);
  padding: 24px 0;
}
.faq-question {
  display: flex;
  justify-content: space-between;
  align-items: center;
  cursor: pointer;
  font-family: 'Fraunces', serif;
  font-size: 19px;
  font-weight: 500;
  font-variation-settings: "SOFT" 100;
  color: var(--ink);
  list-style: none;
  letter-spacing: -0.01em;
}
.faq-question::-webkit-details-marker { display: none; }
.faq-question::after {
  content: '+';
  font-family: 'Manrope', sans-serif;
  font-size: 24px;
  color: var(--brand);
  font-weight: 300;
  transition: transform 0.3s;
}
details[open] .faq-question::after { transform: rotate(45deg); }
.faq-answer {
  margin-top: 16px;
  color: var(--ink-soft);
  font-size: 16px;
  line-height: 1.7;
}

/* Reduced motion */
@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after {
    animation-duration: 0.01ms !important;
    animation-iteration-count: 1 !important;
    transition-duration: 0.01ms !important;
  }
}

/* Mobile tweaks */
@media (max-width: 600px) {
  .container, .container-narrow { padding: 0 22px; }
  .page-header { padding: 130px 0 40px; }
  .prose { padding: 50px 0 80px; }
  .waitlist-card { padding: 28px 22px; }
  .pricing-card { padding: 32px 24px; }
}
