:root {
  color-scheme: light;
  --background: #f7f8f5;
  --surface: #ffffff;
  --surface-soft: #f1f6f2;
  --text: #1d2926;
  --muted: #53645e;
  --accent: #245849;
  --accent-hover: #194335;
  --line: #dce6df;
  --shadow: 0 16px 48px rgba(28, 57, 44, 0.07);
}

* { box-sizing: border-box; }
html {
  background: var(--background);
  color: var(--text);
  font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, Helvetica, Arial, sans-serif;
  line-height: 1.65;
  -webkit-text-size-adjust: 100%;
}
body { margin: 0; }
a { color: var(--accent); text-underline-offset: 0.2em; }
a:hover { color: var(--accent-hover); }
a:focus-visible { outline: 3px solid #4c977c; outline-offset: 4px; border-radius: 4px; }
h1, h2, h3, p { margin-top: 0; }
h1, h2, h3 { line-height: 1.18; letter-spacing: -0.035em; }
.site-shell { width: min(100% - 2.5rem, 1080px); margin-inline: auto; }

.site-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1rem;
  min-height: 84px;
  border-bottom: 1px solid var(--line);
}
.brand {
  display: inline-flex;
  align-items: center;
  gap: 0.75rem;
  color: var(--text);
  font-size: 0.95rem;
  font-weight: 720;
  text-decoration: none;
}
.brand:hover { color: var(--accent); }
.brand-mark {
  display: grid;
  grid-template-columns: repeat(2, 6px);
  gap: 3px;
  place-content: center;
  width: 34px;
  height: 34px;
  border-radius: 11px;
  background: #dcece2;
  transform: rotate(-8deg);
}
.brand-mark span { width: 6px; height: 6px; border-radius: 2px; background: #356c56; }
.brand-mark span:nth-child(2), .brand-mark span:nth-child(3) { background: #79a990; }
.header-note { color: var(--muted); font-size: 0.84rem; font-weight: 600; }

.hero {
  position: relative;
  overflow: hidden;
  margin-top: 2.25rem;
  padding: clamp(2.5rem, 7vw, 5.5rem);
  border: 1px solid #dcebe2;
  border-radius: 30px;
  background: linear-gradient(115deg, #eef7f1 0%, #f5f8ef 65%, #fff6eb 100%);
}
.hero::after {
  position: absolute;
  right: -95px;
  bottom: -170px;
  width: 360px;
  height: 360px;
  border: 1px solid rgba(68, 116, 89, 0.12);
  border-radius: 50%;
  box-shadow: 0 0 0 50px rgba(255, 255, 255, 0.12), 0 0 0 100px rgba(255, 255, 255, 0.11);
  content: "";
  pointer-events: none;
}
.hero > * { position: relative; z-index: 1; }
.hero h1 {
  max-width: 800px;
  margin: 1.35rem 0 1.25rem;
  font-size: clamp(2.8rem, 7vw, 5.8rem);
  font-weight: 760;
  line-height: 1.06;
}
.heading-period { color: #5a9174; }
.hero-copy { max-width: 54ch; margin-bottom: 0; color: var(--muted); font-size: clamp(1.05rem, 2vw, 1.2rem); }
.badge {
  display: inline-flex;
  align-items: center;
  gap: 0.5rem;
  padding: 0.35rem 0.8rem;
  border: 1px solid #c9dfce;
  border-radius: 100px;
  background: #edf7ef;
  color: #245849;
  font-size: 0.76rem;
  font-weight: 750;
  letter-spacing: 0.04em;
  text-transform: uppercase;
}
.badge-dot { width: 7px; height: 7px; border-radius: 50%; background: #3c8565; }
.eyebrow { margin-bottom: 0.4rem; color: var(--accent); font-size: 0.74rem; font-weight: 760; letter-spacing: 0.13em; text-transform: uppercase; }

.app-section { padding: clamp(3.5rem, 7vw, 5rem) 0 5rem; }
.section-heading { display: flex; align-items: end; justify-content: space-between; gap: 1rem; margin-bottom: 1.4rem; }
.section-heading h2 { margin: 0; font-size: clamp(2rem, 4vw, 2.5rem); }
.section-count { color: var(--muted); font-size: 0.85rem; }
.app-grid { display: grid; grid-template-columns: repeat(auto-fit, minmax(min(100%, 320px), 1fr)); gap: 1.25rem; }
.app-card, .content-panel {
  border: 1px solid var(--line);
  border-radius: 24px;
  background: var(--surface);
  box-shadow: var(--shadow);
}
.app-card { display: flex; flex-direction: column; max-width: 520px; padding: clamp(1.35rem, 4vw, 2rem); }
.app-card-top { display: flex; align-items: flex-start; justify-content: space-between; gap: 1rem; }
.app-icon {
  display: grid;
  grid-template-columns: repeat(2, 18px);
  gap: 5px;
  place-content: center;
  flex: none;
  width: 76px;
  height: 76px;
  border: 1px solid #ead8c3;
  border-radius: 20px;
  background: linear-gradient(145deg, #fae6d4, #f3d7c4);
  box-shadow: inset 0 2px 6px rgba(255, 255, 255, 0.55);
}
.app-icon span { width: 18px; height: 20px; border-radius: 5px; background: #a8c6ad; box-shadow: inset 0 -3px 0 rgba(35, 75, 52, 0.1); }
.app-icon span:nth-child(2), .app-icon span:nth-child(3) { background: #e5a987; }
.app-icon-workshop { border-color: #cbddec; background: linear-gradient(145deg, #dceef8, #c8e0ed); }
.app-icon-workshop span { border-radius: 50% 50% 5px 5px; background: #f0b456; }
.app-icon-workshop span:nth-child(2) { background: #e76e64; }
.app-icon-workshop span:nth-child(3) { background: #5aa887; }
.app-icon-workshop span:nth-child(4) { background: #658bc0; }
.app-icon-roadmirror { border-color: #cadce8; background: linear-gradient(145deg, #e6f2f7, #cfe3ed); }
.app-icon-roadmirror span { width: 8px; border-radius: 4px; background: #1f6380; }
.app-icon-roadmirror span:nth-child(2), .app-icon-roadmirror span:nth-child(3) { background: #6ca8be; }
.app-icon-calory { border-color: #fed7aa; background: linear-gradient(145deg, #fff7ed, #ffedd5); }
.app-icon-calory span { width: 8px; border-radius: 4px; background: #ea580c; }
.app-icon-calory span:nth-child(2), .app-icon-calory span:nth-child(3) { background: #10b981; }
.app-icon-ehliyet { border-color: #bfdbfe; background: linear-gradient(145deg, #eff6ff, #dbeafe); }
.app-icon-ehliyet span { width: 8px; border-radius: 4px; background: #2563eb; }
.app-icon-ehliyet span:nth-child(2), .app-icon-ehliyet span:nth-child(3) { background: #38bdf8; }
.app-icon-small { grid-template-columns: repeat(2, 13px); gap: 4px; width: 58px; height: 58px; border-radius: 16px; }
.app-icon-small span { width: 13px; height: 15px; border-radius: 4px; }
.app-tag { padding: 0.3rem 0.7rem; border-radius: 100px; background: var(--surface-soft); color: var(--accent); font-size: 0.76rem; font-weight: 700; }
.app-card-body { margin: 1.4rem 0 1.7rem; }
.app-card-body h3 { margin-bottom: 0.35rem; font-size: 1.55rem; }
.app-card-body p { margin-bottom: 0; color: var(--muted); }
.app-actions { display: flex; flex-wrap: wrap; gap: 0.65rem; margin-top: auto; }
.button { display: inline-flex; align-items: center; justify-content: center; gap: 0.65rem; min-height: 46px; padding: 0.65rem 0.95rem; border: 1px solid transparent; border-radius: 12px; font-size: 0.88rem; font-weight: 720; text-decoration: none; transition: background-color 150ms ease, border-color 150ms ease; }
.button-primary { background: var(--accent); color: #fff; }
.button-primary:hover { background: var(--accent-hover); color: #fff; }
.button-secondary { border-color: var(--line); background: #fff; color: var(--text); }
.button-secondary:hover { border-color: #a5c5b1; background: var(--surface-soft); color: var(--text); }

.document-page { width: min(100%, 820px); margin: 0 auto; padding: 2.2rem 0 5rem; }
.back-link { display: inline-flex; align-items: center; gap: 0.6rem; margin-bottom: 2rem; font-size: 0.88rem; font-weight: 700; text-decoration: none; }
.back-link:hover { text-decoration: underline; }
.app-identity { display: flex; align-items: center; gap: 0.9rem; margin-bottom: 1.5rem; }
.app-identity .eyebrow { margin-bottom: 0.05rem; }
.app-identity-name { margin-bottom: 0; font-size: 1.13rem; font-weight: 760; line-height: 1.3; }
.app-identity-description { margin-bottom: 0; color: var(--muted); font-size: 0.88rem; }
.content-panel { padding: clamp(1.5rem, 5vw, 3.5rem); }
.document-heading { padding-bottom: 1.7rem; border-bottom: 1px solid var(--line); }
.document-heading h1 { margin: 1rem 0 0.5rem; font-size: clamp(2.2rem, 6vw, 3.6rem); }
.document-meta { margin-bottom: 0; color: var(--muted); font-size: 0.9rem; }
.document-intro { max-width: 54ch; margin-bottom: 0; color: var(--muted); font-size: 1.08rem; }
.legal-content section { margin-top: 2rem; }
.legal-content section h2 { margin-bottom: 0.7rem; font-size: 1.25rem; }
.legal-content section p:last-child, .legal-content section ul:last-child { margin-bottom: 0; }
.legal-content li + li { margin-top: 0.3rem; }
.legal-content ul { padding-left: 1.35rem; }
.legal-content li::marker { color: #4f8b69; }
.contact-list { margin-bottom: 0; }
.contact-list > div { padding: 1rem 1.2rem; border: 1px solid var(--line); border-radius: 14px; background: var(--surface-soft); }
.contact-list dt { color: var(--muted); font-size: 0.84rem; font-weight: 700; }
.contact-list dd { margin: 0.25rem 0 0; overflow-wrap: anywhere; font-size: 1rem; }
code { font-family: ui-monospace, SFMono-Regular, Consolas, monospace; }
.related-link { margin: 2.2rem 0 0; padding-top: 1.4rem; border-top: 1px solid var(--line); font-weight: 700; }
.site-footer { display: flex; justify-content: space-between; gap: 1rem; padding: 1.5rem 0 2.5rem; border-top: 1px solid var(--line); color: var(--muted); font-size: 0.85rem; }
.site-footer p { margin: 0; }
.site-footer a { font-weight: 650; }

/* Blog & Article Styles */
.blog-section { padding: 4.5rem 0; border-top: 1px solid var(--line); }
.blog-grid { display: grid; grid-template-columns: repeat(auto-fit, minmax(310px, 1fr)); gap: 1.5rem; margin-top: 2rem; }
.blog-card {
  display: flex;
  flex-direction: column;
  padding: 1.8rem;
  border: 1px solid var(--line);
  border-radius: 20px;
  background: var(--surface);
  box-shadow: var(--shadow);
  transition: transform 180ms ease, border-color 180ms ease;
  text-decoration: none;
  color: var(--text);
}
.blog-card:hover { transform: translateY(-3px); border-color: #8dbda3; color: var(--text); }
.blog-card-meta { display: flex; align-items: center; justify-content: space-between; gap: 0.5rem; font-size: 0.8rem; color: var(--muted); margin-bottom: 1rem; }
.blog-card h3 { font-size: 1.35rem; line-height: 1.3; margin-bottom: 0.6rem; }
.blog-card p { color: var(--muted); font-size: 0.95rem; margin-bottom: 1.4rem; flex-grow: 1; }
.blog-card-link { font-size: 0.88rem; font-weight: 700; color: var(--accent); display: inline-flex; align-items: center; gap: 0.35rem; margin-top: auto; }

/* Article Page */
.article-page { width: min(100%, 780px); margin: 0 auto; padding: 2.5rem 0 5rem; }
.article-header { margin-bottom: 2.5rem; }
.article-header h1 { font-size: clamp(2.2rem, 5vw, 3.4rem); line-height: 1.15; margin: 1rem 0; }
.article-lead { font-size: 1.18rem; color: var(--muted); line-height: 1.6; margin-bottom: 1.5rem; }
.article-meta { display: flex; align-items: center; gap: 1rem; font-size: 0.88rem; color: var(--muted); border-bottom: 1px solid var(--line); padding-bottom: 1.5rem; }
.article-body { font-size: 1.06rem; line-height: 1.75; color: #2a3834; }
.article-body h2 { font-size: 1.65rem; margin-top: 2.8rem; margin-bottom: 0.8rem; }
.article-body h3 { font-size: 1.25rem; margin-top: 2rem; margin-bottom: 0.6rem; }
.article-body p { margin-bottom: 1.4rem; }
.article-body ul, .article-body ol { margin-bottom: 1.6rem; padding-left: 1.4rem; }
.article-body li { margin-bottom: 0.4rem; }

/* In-Article App CTA Box */
.app-cta-box {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1.5rem;
  padding: 1.8rem;
  margin: 2.5rem 0;
  border-radius: 18px;
  border: 1px solid #c8dfd1;
  background: linear-gradient(135deg, #f0f7f2 0%, #fdfbf7 100%);
  box-shadow: 0 8px 30px rgba(36, 88, 73, 0.06);
}
.app-cta-info { flex: 1; }
.app-cta-info h3 { margin: 0 0 0.3rem; font-size: 1.25rem; color: var(--text); }
.app-cta-info p { margin: 0; color: var(--muted); font-size: 0.92rem; }
.app-cta-action { flex-shrink: 0; }

/* Interactive / Quiz / Callout blocks */
.callout-box { padding: 1.2rem 1.4rem; margin: 1.8rem 0; border-left: 4px solid var(--accent); background: var(--surface-soft); border-radius: 0 12px 12px 0; }
.callout-box p:last-child { margin-bottom: 0; }
.quiz-box { padding: 1.5rem; margin: 2rem 0; border: 1px solid var(--line); border-radius: 16px; background: #fff; }
.quiz-option { display: block; padding: 0.8rem 1rem; margin: 0.5rem 0; border: 1px solid var(--line); border-radius: 10px; font-weight: 500; cursor: pointer; transition: background 150ms ease; }
.quiz-option:hover { background: var(--surface-soft); border-color: var(--accent); }

@media (max-width: 600px) {
  .site-shell { width: min(100% - 2rem, 1080px); }
  .site-header { min-height: 70px; }
  .header-note { display: none; }
  .hero { margin-top: 1rem; padding: 2.25rem 1.5rem; border-radius: 22px; }
  .hero::after { right: -180px; bottom: -200px; }
  .app-section { padding: 3rem 0; }
  .app-card { max-width: none; }
  .app-actions .button { flex: 1 1 100%; }
  .app-cta-box { flex-direction: column; align-items: stretch; text-align: left; }
  .app-cta-action .button { width: 100%; }
  .document-page, .article-page { padding-top: 1.5rem; padding-bottom: 3rem; }
  .back-link { margin-bottom: 1.5rem; }
  .app-identity-description { font-size: 0.82rem; }
  .site-footer { flex-direction: column; gap: 0.3rem; }
}
@media (prefers-reduced-motion: reduce) { .button { transition: none; } }

