/* Nolien ortak sistem katmanı: tüm sayfalarda en son yüklenir.
   Tipografi, renk, düğme, boşluk ve tarayıcı yüzeylerini tek yerde toplar. */

:root {
  --navy: #101b2e;
  --navy-2: #16233a;
  --ink: #172334;
  --body: #475163;
  --muted: #5b6474;
  --line: #e1e4ea;
  --line-strong: #c3c8d4;
  --paper: #f6f7fa;
  --lavender: #eef0ff;
  --indigo: #5046df;
  --indigo-600: #4338ca;
  --indigo-700: #3f37c9;
  --indigo-300: #8b8ff0;
  --lilac: #a9adff;
  --on-navy: #e8ecf4;
  --on-navy-2: #b8c2d4;
  --blue: #5046df;
  --gutter: 40px;
}
@media (max-width: 1050px) { :root { --gutter: 32px; } }
@media (max-width: 760px) { :root { --gutter: 22px; } }
@media (max-width: 390px) { :root { --gutter: 18px; } }

/* ---------- Tarayıcı yüzeyleri ---------- */
::selection { background: #d9dbff; color: var(--navy); }
.ai-hero ::selection,
.example ::selection { background: #3a3f9e; color: #fff; }
input, textarea { caret-color: var(--indigo); }
html { scrollbar-color: #c3c8d4 transparent; }
button:focus-visible,
a:focus-visible,
input:focus-visible,
select:focus-visible,
textarea:focus-visible,
summary:focus-visible {
  outline: 3px solid var(--indigo-300);
  outline-offset: 3px;
  border-radius: 6px;
}
.visually-hidden {
  position: absolute !important;
  width: 1px;
  height: 1px;
  margin: -1px;
  padding: 0;
  overflow: hidden;
  clip: rect(0 0 0 0);
  white-space: nowrap;
  border: 0;
}

/* ---------- Gövde ve tipografi ---------- */
body { color: var(--ink); font-weight: 500; }
p { color: inherit; }

.section-heading h2,
.about h2,
.contact-section h2,
.faq-section h2,
.vitrin-head h2,
#urunler .section-head h2,
.story-heading h2,
.package-heading h2,
.ai-personalisation h2,
.service-fit h2,
.service-evidence h2,
.wp-copy h2,
.service-contact h2,
.service-delivery > h2,
.service-related > h2,
.home-ai h2 {
  font-size: clamp(30px, 3.2vw, 46px);
  line-height: 1.1;
  font-weight: 600;
  letter-spacing: -0.03em;
  text-wrap: balance;
}
.service-hero h1 {
  font-size: clamp(36px, 4.3vw, 62px);
  line-height: 1.06;
  font-weight: 600;
  letter-spacing: -0.035em;
  text-wrap: balance;
}
.home-ai h3,
.delivery-grid h3,
.ai-package h3 {
  font-size: clamp(19px, 1.6vw, 22px);
  line-height: 1.3;
  font-weight: 600;
  letter-spacing: -0.01em;
}
.how-head p,
.usecase-head p,
.also-head p,
.service-lead { font-size: 18px; line-height: 1.65; font-weight: 500; }
.service-lead { color: var(--body); }

p, li, dd, figcaption { text-wrap: pretty; }
.delivery-lead { max-width: 62ch; }
#brief-form textarea::placeholder { color: #6a7282; }
.story-steps button span,
.mobile-visual li > span,
.service-visual li > span { font-size: 12px; }
.story-steps button span { color: #4f5a79; }
.service-page figcaption span,
.home-ai figcaption span { font-size: 12px; letter-spacing: 0.02em; color: #4f5a79; }
.ai-flow-identity span,
.stage-capture > span,
.scope-browser-bar small,
.story-message small,
.story-demo-tag { color: #4f5a79; }
.meal-screen-note { font-size: 12px !important; }

/* Okunamayacak kadar küçük işlev yazıları için taban */
.visual-label,
.flow-steps-label { font-size: 12px; letter-spacing: 0.04em; color: #4f5a79; }
.flow-step-no { font-size: 12px; }
.chat-tag,
.story-demo-tag { font-size: 12px; }
.ai-flow-identity span,
.evidence-assistant span,
.story-message small,
.scope-browser-bar small,
.wp-row small,
.stage-capture > span { font-size: 13px; }
.meal-screen-note,
.personalisation-note,
.mascot-context span,
.story-bottom > span { font-size: 13px; color: var(--muted); }
.flow-stage h3 { color: #3f4966; }
.flow-steps-label { text-transform: none; letter-spacing: 0; font-size: 13px; font-weight: 600; color: #4f5a79; }

/* Hizmet sayfalarında tek yüzey seviyesi: dış paneller çerçevesiz */
.ai-service-page .service-visual.ai-visual,
.service-visual.mobile-visual {
  background: none;
  border: 0;
  border-radius: 0;
  padding: 0;
  box-shadow: none;
  overflow: visible;
}
.story-player { background: none; border: 0; border-radius: 0; box-shadow: none; overflow: visible; }
.flow-choice[aria-pressed="false"] { color: #4f5a79; }
.form-note { font-size: 13px; line-height: 1.6; color: var(--muted); }

/* ---------- Kenar boşlukları ---------- */
header {
  padding-inline: max(var(--gutter), calc((100% - 1216px) / 2));
  transition: box-shadow 200ms ease;
}
header.is-scrolled { box-shadow: 0 8px 24px rgba(16, 27, 46, 0.07); }
.wrap {
  max-width: none;
  padding-inline: max(var(--gutter), calc((100% - 1216px) / 2));
}
.section:not(.wrap) { padding-inline: 0; }
.wrap .wrap { padding-inline: 0; }

/* ---------- Başlık ve menü ---------- */
nav a { font-weight: 500; }
header nav,
.service-page header nav { font-size: 15px; gap: 28px; }
header nav a[aria-current="page"] { color: var(--indigo-700); font-weight: 600; }
.language {
  min-width: 44px;
  min-height: 44px;
  font-size: 13px;
  font-weight: 600;
  color: var(--ink);
}
.header-contact {
  min-height: 44px;
  padding: 0 16px;
  gap: 10px;
  border-radius: 10px;
  background: var(--indigo);
  color: #fff !important;
  font-size: 14px;
  font-weight: 600;
  transition: background 150ms ease;
}
.header-contact:hover { background: var(--indigo-600); }
.header-contact .arrow { width: 16px; height: 16px; transition: transform 150ms ease; }
.header-contact:hover .arrow { transform: translateX(2px); }
.menu { min-width: 44px; min-height: 44px; color: var(--ink); }
.menu svg { width: 24px; height: 24px; overflow: visible; }
.menu svg path {
  stroke: currentColor;
  stroke-width: 1.8;
  stroke-linecap: round;
  fill: none;
  transform-box: fill-box;
  transform-origin: center;
  transition: transform 220ms cubic-bezier(0.16, 1, 0.3, 1);
}
.menu[aria-expanded="true"] .menu-line-top { transform: translateY(4px) rotate(45deg); }
.menu[aria-expanded="true"] .menu-line-bottom { transform: translateY(-4px) rotate(-45deg); }
@media (max-width: 1180px) {
  header nav.open { box-shadow: 0 18px 30px rgba(16, 27, 46, 0.12); }
  header nav.open a,
  .service-page header nav.open a { min-height: 44px; display: flex; align-items: center; font-size: 17px; }
}
body.service-page .header-contact { display: inline-flex; }
@media (max-width: 760px) {
  .header-contact { padding: 0 12px; font-size: 13px; }
  .header-contact .arrow { display: none; }
}

/* ---------- Hizmet sayfası hero: ana sayfanın lacivert dünyası ---------- */
body.service-page .service-hero {
  background: var(--navy);
  color: var(--on-navy);
  padding-top: clamp(44px, 5.5vw, 76px);
  padding-bottom: clamp(48px, 6vw, 88px);
}
body.service-page .service-hero h1 { color: #fff; margin: 0; max-width: 16em; }
body.service-page .service-hero .service-lead {
  margin: 22px 0 0;
  font-size: 18px;
  line-height: 1.6;
  font-weight: 500;
  color: var(--on-navy-2);
}
body.service-page .service-hero .actions { margin-top: 28px; }
body.service-page .service-hero .actions .quiet,
body.service-page .service-hero .showcase-link {
  background: transparent;
  border: 1px solid rgba(201, 204, 255, 0.32);
  color: #fff;
  box-shadow: none;
}
body.service-page .service-hero .actions .quiet:hover,
body.service-page .service-hero .showcase-link:hover {
  background: rgba(169, 173, 255, 0.1);
  border-color: var(--lilac);
  color: #fff;
}

/* Ortalanmış düzen yerine ana sayfadaki asimetrik başlık: H1 solda, açıklama ve çağrılar sağda */
body.service-page.ai-service-page .service-hero-copy {
  display: grid;
  grid-template-columns: minmax(0, 1.4fr) minmax(0, 1fr);
  grid-template-rows: auto 1fr;
  column-gap: clamp(32px, 5vw, 72px);
  max-width: none;
  margin: 0;
  text-align: left;
}
body.service-page.ai-service-page .service-hero-copy h1 {
  grid-column: 1;
  grid-row: 1 / span 2;
  max-width: none;
  margin: 0;
  font-size: clamp(40px, 4.4vw, 64px);
}
body.service-page.ai-service-page .service-hero-copy .service-lead { grid-column: 2; grid-row: 1; max-width: none; margin: 0.5em 0 0; }
body.service-page.ai-service-page .service-hero-copy .actions { grid-column: 2; grid-row: 2; align-self: start; justify-content: flex-start; }
body.service-page.ai-service-page .service-hero .service-visual {
  margin-top: clamp(40px, 5vw, 64px);
  padding-top: 22px;
  border-top: 1px solid rgba(201, 204, 255, 0.14);
}

/* Lacivert zemindeki görsel parçaları: beyaz arayüz yüzeyleri kalır, etrafındaki yazılar açılır */
body.service-page .service-hero .ai-flow-identity strong { color: #fff; }
body.service-page .service-hero .ai-flow-identity span { color: var(--on-navy-2); }
body.service-page .service-hero .ai-flow-identity img { background: #fff; border-radius: 14px; padding: 6px; }
body.service-page .service-hero .flow-steps-label,
body.service-page .service-hero .flow-example-note,
body.service-page .service-hero .commerce-example-note { color: var(--on-navy-2); font-size: 13px; }
body.service-page .service-hero .flow-choices { background: rgba(255, 255, 255, 0.07); box-shadow: inset 0 0 0 1px rgba(201, 204, 255, 0.18); }
body.service-page .service-hero .flow-choice { color: var(--on-navy-2); font-size: 13px; min-height: 40px; }
body.service-page .service-hero .flow-choice:hover { color: #fff; background: rgba(255, 255, 255, 0.08); }
body.service-page .service-hero .flow-choice[aria-pressed="true"],
body.service-page .service-hero .flow-choice[aria-pressed="true"]:hover { background: #fff; color: var(--ink); border-color: transparent; }
body.service-page .service-hero .flow-path { stroke: rgba(169, 173, 255, 0.45); }
body.service-page .service-hero .flow-signal { stroke: var(--lilac); }
body.service-page .service-hero .visual-flow h2 { color: #fff; }
body.service-page .service-hero .visual-flow li { color: var(--on-navy); border-bottom-color: rgba(201, 204, 255, 0.16); }
body.service-page .service-hero .visual-flow li > span { color: var(--lilac); }
body.service-page .service-hero .service-visual.commerce-visual { background: none; padding: 0; box-shadow: none; border: 0; overflow: visible; }
/* Beyaz arayüz yüzeyleri kendi koyu metnini korur */
body.service-page .service-hero .mobile-project-visual,
body.service-page .service-hero .commerce-store,
body.service-page .service-hero .chat-window,
body.service-page .service-hero .flow-stage { color: var(--ink); }

@media (max-width: 1000px) {
  body.service-page.ai-service-page .service-hero-copy { grid-template-columns: 1fr; grid-template-rows: none; }
  body.service-page.ai-service-page .service-hero-copy h1,
  body.service-page.ai-service-page .service-hero-copy .service-lead,
  body.service-page.ai-service-page .service-hero-copy .actions { grid-column: 1; grid-row: auto; }
  body.service-page.ai-service-page .service-hero-copy .service-lead { margin-top: 20px; }
}
@media (max-width: 760px) {
  body.service-page .service-hero h1,
  body.service-page.ai-service-page .service-hero-copy h1 { font-size: clamp(34px, 9.6vw, 44px); }
  body.service-page .service-hero .service-lead { font-size: 17px; }
}

/* ---------- Düğmeler ---------- */
.button,
.service-hero .actions .button,
.service-contact .button,
.wp-copy .button,
#brief-form button.button {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 14px;
  min-height: 52px;
  padding: 14px 22px;
  border: 1px solid var(--indigo);
  border-radius: 12px;
  background: var(--indigo);
  color: #fff;
  font-size: 16px;
  font-weight: 600;
  line-height: 1.2;
  transform: none;
  transition: background 150ms ease, border-color 150ms ease, transform 150ms ease;
}
.button:hover,
.service-hero .actions .button:hover,
.service-contact .button:hover,
.wp-copy .button:hover,
#brief-form button.button:hover { background: var(--indigo-600); border-color: var(--indigo-600); transform: none; }
.button:active { transform: scale(0.98); }
.button .arrow { width: 18px; height: 18px; transition: transform 150ms ease; }
.button:hover .arrow { transform: translateX(3px); }
.service-hero .actions .quiet {
  min-height: 52px;
  border-radius: 12px;
  font-size: 16px;
  font-weight: 600;
}

/* ---------- Form ---------- */
#brief-form label,
form label { font-size: 14px; font-weight: 600; color: var(--ink); margin-top: 16px; }
#brief-form input,
#brief-form select,
#brief-form textarea {
  min-height: 48px;
  margin-top: 6px;
  padding: 12px 14px;
  border: 1px solid #c9cdd6;
  border-radius: 10px;
  background: #fff;
  font-size: 16px;
  color: var(--ink);
}
#brief-form textarea { min-height: 120px; line-height: 1.55; resize: none; field-sizing: content; max-height: 360px; }
#brief-form select {
  appearance: none;
  -webkit-appearance: none;
  padding-right: 46px;
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='%235046df' stroke-width='1.8' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpath d='m6 9 6 6 6-6'/%3E%3C/svg%3E");
  background-repeat: no-repeat;
  background-position: right 14px center;
  background-size: 18px;
  cursor: pointer;
}
#brief-form textarea::placeholder { color: #6a7282; }
#brief-form input:hover,
#brief-form select:hover,
#brief-form textarea:hover { border-color: #9aa1b2; }
#brief-form button.button { margin-top: 22px; }
#brief-status { font-size: 15px; font-weight: 600; margin-top: 12px; }
#brief-status[data-state="sending"]::before {
  content: "";
  display: inline-block;
  width: 14px;
  height: 14px;
  margin-right: 8px;
  vertical-align: -2px;
  border: 2px solid currentColor;
  border-right-color: transparent;
  border-radius: 50%;
  animation: nolien-spin 700ms linear infinite;
}
@keyframes nolien-spin { to { transform: rotate(360deg); } }

/* ---------- SSS ---------- */
.faq-list summary { min-height: 44px; }
.faq-list summary > span:last-child { color: var(--indigo); }

/* ---------- Alt bilgi (tüm sayfalarda aynı) ---------- */
.block-inner { padding-inline: max(var(--gutter), calc((100% - 1216px) / 2)); }
.site-footer { padding: 56px 0 28px; background: #fff; border-top: 1px solid var(--line); }
.site-footer > div:not(.footer-bottom) { margin-top: 0; font-size: inherit; }
.site-footer > .footer-grid {
  display: grid;
  grid-template-columns: minmax(0, 1.3fr) repeat(3, minmax(0, 1fr));
  gap: 32px;
  align-items: start;
}
.footer-id p { margin: 14px 0 0; font-size: 15px; line-height: 1.6; color: var(--body); }
.site-footer .footer-col {
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  gap: 2px;
  margin: 0;
  padding: 0;
  position: static;
  background: none;
  border: 0;
  font-size: 15px;
}
.site-footer .footer-col a,
.cookie-link {
  display: inline-flex;
  align-items: center;
  min-height: 36px;
  font-size: 15px;
  font-weight: 500;
  color: var(--ink);
}
.site-footer .footer-col a:hover,
.cookie-link:hover { color: var(--indigo-700); }
.cookie-link { padding: 0; border: 0; background: none; cursor: pointer; text-align: left; font-family: inherit; }
.site-footer .footer-bottom { margin-top: 40px; align-items: center; }
@media (max-width: 1000px) {
  .site-footer > .footer-grid { grid-template-columns: 1fr 1fr; }
  .footer-id { grid-column: 1 / -1; }
}
@media (max-width: 760px) {
  .site-footer > .footer-grid { grid-template-columns: 1fr; gap: 20px; }
  .site-footer .footer-col a,
  .cookie-link { min-height: 44px; }
}
.footer-bottom {
  font-size: 13px;
  letter-spacing: 0;
  color: var(--muted);
}
.footer-bottom a { min-height: 36px; display: inline-flex; align-items: center; }
@media (max-width: 760px) {
  .footer-bottom { font-size: 13px; }
}

/* ---------- Çerez tercihleri ---------- */
/* Seçimden sonra yüzen düğme içeriği örtmesin: tercih alt bilgideki bağlantıdan açılır. */
body:has([data-cookie-settings]) #nolien-cookie-settings { display: none !important; }
#nolien-cookie-banner,
#nolien-cookie-banner button { font-family: Manrope, Arial, sans-serif; }
#nolien-cookie-banner #nolien-cookie-copy { max-width: 60ch; }

/* ---------- Hareket ---------- */
.reveal-ready { opacity: 1 !important; transform: none !important; }
@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after { scroll-behavior: auto !important; }
}

/* iyzico ödeme logoları (resmi footer bandı) */
.footer-pay { margin-top: 32px; }
.footer-pay .pay-band { display: block; width: auto; height: 28px; max-width: 100%; }
@media (max-width: 480px) { .footer-pay .pay-band { height: auto; width: 100%; } }

/* Mobil uygulama: her ekranın kullanıcıya ne yaptırdığı */
.meal-screen-list { margin: 18px 0 0; display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 12px 20px; text-align: left; }
.meal-screen-list div { min-width: 0; }
.meal-screen-list dt { font-size: 14px; font-weight: 600; color: var(--ink); }
.meal-screen-list dd { margin: 4px 0 0; font-size: 14px; line-height: 1.5; color: var(--body); }
@media (max-width: 560px) { .meal-screen-list { grid-template-columns: 1fr; } }
