*, *::before, *::after { box-sizing: border-box; margin: 0; padding: 0; }

:root {
  --bg:       #FEFAF5;
  --surface:  #FFF8F0;
  --coral:    #FF6B35;
  --coral-dk: #E85520;
  --brown:    #1C1410;
  --brown-md: #4A3728;
  --brown-lt: #8C6F5E;
  --green:    #7FB069;
  --green-dk: #5A8A46;
  --border:   #EDE0D4;
  --shadow:   0 4px 24px rgba(28,20,16,.08);
  --shadow-lg:0 8px 40px rgba(28,20,16,.13);
  --radius:   20px;
  --radius-sm:12px;
  --font:     'Plus Jakarta Sans', system-ui, sans-serif;
}

html { scroll-behavior: smooth; overflow-x: hidden; }

body {
  background: var(--bg);
  color: var(--brown);
  font-family: var(--font);
  font-size: 16px;
  line-height: 1.6;
  min-height: 100vh;
  overflow-x: hidden;
  /* subtle grain */
  background-image: url("data:image/svg+xml,%3Csvg viewBox='0 0 256 256' xmlns='http://www.w3.org/2000/svg'%3E%3Cfilter id='noise'%3E%3CfeTurbulence type='fractalNoise' baseFrequency='0.9' numOctaves='4' stitchTiles='stitch'/%3E%3C/filter%3E%3Crect width='100%25' height='100%25' filter='url(%23noise)' opacity='0.03'/%3E%3C/svg%3E");
}

/* ── NAVBAR ── */
.navbar {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 1rem 2rem;
  background: rgba(254,250,245,.85);
  backdrop-filter: blur(12px);
  border-bottom: 1px solid var(--border);
  position: sticky;
  top: 0;
  z-index: 100;
}

.logo {
  display: flex;
  align-items: center;
  gap: .5rem;
  text-decoration: none;
  font-weight: 800;
  font-size: 1.3rem;
  color: var(--brown);
}
.logo-icon { font-size: 1.5rem; }
.logo-text { color: var(--coral); }

.nav-links {
  display: flex;
  align-items: center;
  gap: .75rem;
}

.nav-link {
  color: var(--brown-md);
  text-decoration: none;
  font-weight: 600;
  font-size: .9rem;
  padding: .45rem 1.1rem;
  border-radius: 99px;
  border: 1.5px solid var(--border);
  background: var(--surface);
  transition: color .2s, background .2s, border-color .2s;
}
.nav-link:hover {
  color: var(--coral);
  border-color: rgba(255,107,53,.4);
  background: rgba(255,107,53,.06);
}

/* ── HERO ── */
.hero {
  padding: 4rem 2rem 2rem;
  text-align: center;
  max-width: 1100px;
  margin: 0 auto;
  position: relative;
}

.hero::before {
  content: "";
  position: absolute;
  top: -60px;
  left: calc(-50vw + 50%);
  width: 100vw;
  bottom: 0;
  background: radial-gradient(ellipse 70% 60% at 50% 0%, rgba(255,107,53,.12) 0%, transparent 70%);
  pointer-events: none;
  z-index: -1;
}

.hero-badge {
  display: inline-block;
  background: var(--surface);
  border: 1px solid var(--border);
  color: var(--brown-md);
  font-size: .85rem;
  font-weight: 600;
  padding: .4rem 1rem;
  border-radius: 99px;
  margin-bottom: 1.5rem;
}

.hero-title {
  font-size: clamp(2rem, 5vw, 3rem);
  font-weight: 800;
  line-height: 1.2;
  color: var(--brown);
  margin-bottom: 1rem;
}

.highlight {
  color: var(--coral);
  position: relative;
}

.hero-sub {
  font-size: 1.1rem;
  color: var(--brown-lt);
  max-width: 500px;
  margin: 0 auto 0;
}

.hero-proof {
  display: inline-block;
  margin-top: 1.25rem;
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: 99px;
  padding: .45rem 1.2rem;
  font-size: .82rem;
  color: var(--brown-lt);
  font-weight: 500;
}

.hero-proof strong { color: var(--coral); font-weight: 800; }

/* ── MAIN ── */
.main-container {
  max-width: 1100px;
  margin: 0 auto;
  padding: 2rem 1.5rem 4rem;
  display: flex;
  flex-direction: column;
  gap: 2.5rem;
}

/* ── CARD ── */
.card {
  background: rgba(255,248,240,.85);
  backdrop-filter: blur(16px);
  -webkit-backdrop-filter: blur(16px);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  padding: 2rem;
  box-shadow: var(--shadow);
}

/* ── DISCLAIMER ── */
.disclaimer-banner {
  background: #FFF3CD;
  border: 1px solid #FFDFA0;
  color: #7A5500;
  border-radius: var(--radius-sm);
  padding: .75rem 1rem;
  font-size: .85rem;
  margin-bottom: 1.5rem;
  line-height: 1.5;
}

/* ── FORM ── */
.form-group {
  margin-bottom: 1.25rem;
  position: relative;
}

label {
  display: block;
  font-weight: 600;
  font-size: .95rem;
  color: var(--brown);
  margin-bottom: .4rem;
}

.optional {
  font-weight: 400;
  color: var(--brown-lt);
  font-size: .85rem;
}

textarea, input[type="text"] {
  width: 100%;
  background: var(--bg);
  border: 1.5px solid var(--border);
  border-radius: var(--radius-sm);
  padding: .85rem 1rem;
  font-family: var(--font);
  font-size: 1rem;
  color: var(--brown);
  transition: border-color .2s, box-shadow .2s;
  resize: vertical;
  min-height: 44px; /* touch target */
}

textarea { min-height: 90px; }

textarea:focus, input[type="text"]:focus {
  outline: none;
  border-color: var(--coral);
  box-shadow: 0 0 0 3px rgba(255,107,53,.15);
}

textarea::placeholder, input::placeholder { color: #C4A99A; }

.textarea-wrap {
  position: relative;
}

.textarea-wrap textarea {
  padding-bottom: 1.8rem;
}

.char-count {
  position: absolute;
  right: .75rem;
  bottom: .6rem;
  font-size: .75rem;
  color: var(--brown-lt);
  pointer-events: none;
  background: transparent;
}

.form-hint {
  display: block;
  margin-top: .35rem;
  font-size: .8rem;
  color: var(--brown-lt);
}

/* ── CONSENT ── */
.consent-row {
  display: flex;
  align-items: flex-start;
  gap: .6rem;
  margin-bottom: 1.5rem;
}

.consent-row input[type="checkbox"] {
  width: 18px;
  height: 18px;
  min-width: 18px;
  margin-top: 2px;
  accent-color: var(--coral);
  cursor: pointer;
}

.consent-label {
  font-size: .85rem;
  color: var(--brown-md);
  font-weight: 400;
  cursor: pointer;
}

.consent-label a {
  color: var(--coral);
  text-decoration: underline;
}

/* ── BUTTONS ── */
.btn-primary {
  width: 100%;
  background: var(--coral);
  color: #fff;
  border: none;
  border-radius: var(--radius-sm);
  padding: 1rem;
  font-family: var(--font);
  font-size: 1rem;
  font-weight: 700;
  cursor: pointer;
  transition: background .2s, transform .1s, box-shadow .2s;
  box-shadow: 0 4px 16px rgba(255,107,53,.35);
  display: flex;
  align-items: center;
  justify-content: center;
  gap: .5rem;
}

.btn-primary:hover {
  background: var(--coral-dk);
  transform: translateY(-1px);
  box-shadow: 0 6px 20px rgba(255,107,53,.45);
}

.btn-primary:active { transform: translateY(0); }
.btn-primary:disabled { opacity: .6; cursor: not-allowed; transform: none; }

.btn-secondary {
  background: transparent;
  border: 1.5px solid var(--coral);
  color: var(--coral);
  border-radius: var(--radius-sm);
  padding: .7rem 1.5rem;
  font-family: var(--font);
  font-size: .95rem;
  font-weight: 600;
  cursor: pointer;
  transition: background .2s, color .2s;
  margin-top: 1.25rem;
}

.btn-secondary:hover {
  background: var(--coral);
  color: #fff;
}

/* ── SPINNER ── */
.spinner {
  width: 18px;
  height: 18px;
  border: 2.5px solid rgba(255,255,255,.4);
  border-top-color: #fff;
  border-radius: 50%;
  animation: spin .7s linear infinite;
  display: inline-block;
}

@keyframes spin { to { transform: rotate(360deg); } }

/* ── RESULT ── */
.result-box {
  margin-top: 1.5rem;
  background: var(--bg);
  border: 1.5px solid var(--border);
  border-radius: var(--radius-sm);
  padding: 1.5rem;
  animation: fadeIn .4s ease;
}

.result-header {
  display: flex;
  align-items: center;
  gap: .5rem;
  font-weight: 700;
  font-size: 1rem;
  color: var(--green-dk);
  margin-bottom: 1rem;
}

.result-icon { font-size: 1.3rem; }

.result-content {
  color: var(--brown);
  font-size: .97rem;
  line-height: 1.75;
  white-space: pre-wrap;
}

/* ── ERROR ── */
.error-box {
  margin-top: 1.25rem;
  background: #FFF0EE;
  border: 1px solid #FFBDAD;
  color: #C0392B;
  border-radius: var(--radius-sm);
  padding: .85rem 1rem;
  font-size: .9rem;
}

/* ── BENTO GRID ── */
.bento-grid {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 1rem;
}

.bento-card {
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  padding: 1.5rem;
  box-shadow: var(--shadow);
  transition: transform .2s, box-shadow .2s;
}

.bento-card:hover {
  transform: translateY(-3px);
  box-shadow: var(--shadow-lg);
}

.bento-icon { font-size: 2rem; margin-bottom: .75rem; }

.bento-card h3 {
  font-size: 1rem;
  font-weight: 700;
  margin-bottom: .4rem;
  color: var(--brown);
}

.bento-card p {
  font-size: .875rem;
  color: var(--brown-lt);
  line-height: 1.55;
}

.bento-ai { background: linear-gradient(135deg, #FFF8F0 0%, #FFE8D6 100%); }
.bento-safe { background: linear-gradient(135deg, #F0FFF4 0%, #D6EFCC 100%); }

/* ── FAQ ── */
.faq-section { display: flex; flex-direction: column; gap: 0; }

.section-title {
  font-size: 1.4rem;
  font-weight: 800;
  margin-bottom: 1.25rem;
  color: var(--brown);
}

.faq-item {
  border-bottom: 1px solid var(--border);
}

.faq-question {
  width: 100%;
  background: none;
  border: none;
  text-align: left;
  padding: 1rem 0;
  font-family: var(--font);
  font-size: 1rem;
  font-weight: 600;
  color: var(--brown);
  cursor: pointer;
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 1rem;
}

.faq-arrow { font-size: .75rem; color: var(--coral); transition: transform .25s; }
.faq-question[aria-expanded="true"] .faq-arrow { transform: rotate(180deg); }

.faq-answer {
  max-height: 0;
  overflow: hidden;
  transition: max-height .3s ease, padding .3s;
}

.faq-answer.open {
  max-height: 300px;
  padding-bottom: 1rem;
}

.faq-answer div {
  font-size: .92rem;
  color: var(--brown-md);
  line-height: 1.65;
}

/* ── AD SLOTS ── */
.ad-slot {
  min-height: 90px;
  background: transparent;
  border-radius: var(--radius-sm);
  overflow: hidden;
}

.ad-slot--result {
  margin-top: 1.25rem;
  border-top: 1px solid var(--border);
  padding-top: 1rem;
}

.ad-slot--middle {
  min-height: 100px;
}

.ad-slot--footer {
  max-width: 1100px;
  margin: 0 auto;
  padding: 0 1.5rem 1rem;
}

/* ── FOOTER ── */
.footer {
  background: var(--brown);
  color: rgba(255,255,255,.6);
  text-align: center;
  padding: 2.5rem 1.5rem;
}

.footer-links {
  display: flex;
  justify-content: center;
  gap: 1.5rem;
  margin-bottom: 1rem;
  flex-wrap: wrap;
}

.footer-links a {
  color: rgba(255,255,255,.75);
  text-decoration: none;
  font-size: .875rem;
  font-weight: 500;
  transition: color .2s;
}
.footer-links a:hover { color: var(--coral); }

.footer-disclaimer {
  font-size: .8rem;
  max-width: 600px;
  margin: 0 auto .75rem;
  line-height: 1.5;
}

.footer-copy { font-size: .8rem; }

/* ── ANIMATIONS ── */
@keyframes fadeIn {



/* ── SECTION SUB ── */
.section-sub {
  font-size: .95rem;
  color: var(--brown-lt);
  margin-top: -.75rem;
  margin-bottom: 1.25rem;
}

/* ── RECIPE HTML RENDER ── */
.recipe-title {
  font-size: 1.2rem;
  font-weight: 800;
  color: var(--brown);
  margin-bottom: .5rem;
}

.recipe-meta {
  display: inline-flex;
  gap: .5rem;
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: 99px;
  padding: .35rem .9rem;
  font-size: .82rem;
  font-weight: 600;
  color: var(--brown-md);
  margin-bottom: 1rem;
}

.recipe-section {
  margin-top: 1rem;
}

.recipe-section-title {
  font-size: .85rem;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: .05em;
  color: var(--brown-lt);
  margin-bottom: .5rem;
}

.recipe-list {
  list-style: none;
  padding: 0;
  display: flex;
  flex-direction: column;
  gap: .35rem;
}

.recipe-list li {
  font-size: .95rem;
  color: var(--brown);
  padding-left: 1.2rem;
  position: relative;
  line-height: 1.55;
}

.recipe-list li::before {
  content: "•";
  position: absolute;
  left: 0;
  color: var(--coral);
  font-weight: 700;
}

.recipe-steps { list-style: none; padding: 0; counter-reset: step; display: flex; flex-direction: column; gap: .6rem; }

.recipe-step {
  display: flex;
  gap: .75rem;
  align-items: flex-start;
  font-size: .95rem;
  color: var(--brown);
  line-height: 1.55;
}

.recipe-step-num {
  background: var(--coral);
  color: #fff;
  border-radius: 50%;
  min-width: 22px;
  height: 22px;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: .75rem;
  font-weight: 700;
  margin-top: 1px;
}

.recipe-tip {
  background: #FFF8E7;
  border-left: 3px solid #F5A623;
  border-radius: 0 var(--radius-sm) var(--radius-sm) 0;
  padding: .65rem .9rem;
  font-size: .88rem;
  color: #7A5500;
  margin-top: 1rem;
  line-height: 1.5;
}

.recipe-allergen {
  background: #FFF0EE;
  border: 1px solid #FFBDAD;
  border-radius: var(--radius-sm);
  padding: .65rem .9rem;
  font-size: .85rem;
  color: #C0392B;
  margin-top: .75rem;
  line-height: 1.5;
}

@media (max-width: 600px) {
  .hero-stats { gap: .75rem; }
}

@media (max-width: 380px) {
  .chips-row .chip { font-size: .75rem; }
}

.hero-content { animation: slideUp .6s ease both; }
.form-card    { animation: slideUp .7s .1s ease both; }
.bento-grid   { animation: slideUp .7s .2s ease both; }
.faq-section  { animation: slideUp .7s .3s ease both; }

/* ── RESPONSIVE ── */
@media (max-width: 600px) {
  .navbar { padding: 1rem; }

  .hero { padding: 2.5rem 1rem 1rem; }

  .card { padding: 1.25rem; }

  .bento-grid {
    grid-template-columns: 1fr;
  }

  .hero-title { font-size: 1.85rem; }

  /* Büyük touch target mobil buton */
  .btn-primary { padding: 1.1rem; font-size: 1.05rem; }

  textarea { font-size: 16px; } /* iOS zoom engelle */
  input[type="text"] { font-size: 16px; }

  .consent-row { gap: .5rem; }
  .consent-row input[type="checkbox"] { width: 20px; height: 20px; min-width: 20px; }

  .footer-links { gap: 1rem; }
}

@media (max-width: 380px) {
  .hero-title { font-size: 1.6rem; }
  .hero-badge { font-size: .78rem; }
}
