/* Hmm. — msvsoftware.com/hmm
   Uygulamadaki tasarım sistemiyle birebir: krem zemin, 2.5px kahve-siyah kontur,
   bulanıksız gölge, Fredoka TR başlık + Figtree gövde. */

@font-face {
  font-family: 'Fredoka TR';
  src: url('fonts/FredokaTR-Bold.ttf') format('truetype');
  font-weight: 700;
  font-display: swap;
}
@font-face {
  font-family: 'Fredoka TR';
  src: url('fonts/FredokaTR-SemiBold.ttf') format('truetype');
  font-weight: 600;
  font-display: swap;
}

:root {
  --red: #FF5A47;
  --red-text: #D93A28;
  --green: #2FC27A;
  --butter: #FFD45C;
  --cream: #FFF6E9;
  --paper: #FFFDF8;
  --ink: #2B1A12;
  --red-soft: #FFE1DA;
  --green-soft: #D6F5E3;
  --butter-soft: #FFF1C7;
  --sand: #F2E6D8;
  --line: #E3D3C2;
  --muted: #5A4336;
  --subtle: #6E5546;

  --stroke: 2.5px;
  --r-button: 20px;
  --r-list: 24px;
  --r-card: 30px;

  --display: 'Fredoka TR', 'Fredoka', ui-rounded, system-ui, sans-serif;
  --body: 'Figtree', system-ui, -apple-system, 'Segoe UI', sans-serif;
}

* { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; scroll-behavior: smooth; }
body {
  margin: 0;
  background: var(--cream);
  color: var(--ink);
  font-family: var(--body);
  font-size: 17px;
  line-height: 1.55;
  -webkit-font-smoothing: antialiased;
}
img, svg { display: block; max-width: 100%; }
a { color: var(--ink); text-decoration-thickness: 2px; text-underline-offset: 3px; }
a:hover { color: var(--red-text); }
:focus-visible { outline: 3px solid var(--red); outline-offset: 3px; border-radius: 8px; }

.wrap { width: 100%; max-width: 1080px; margin: 0 auto; padding: 0 20px; }
.narrow { max-width: 760px; }

/* ---------- Üst bar ---------- */
.top {
  position: sticky; top: 0; z-index: 10;
  background: rgba(255, 246, 233, 0.92);
  backdrop-filter: blur(10px);
  -webkit-backdrop-filter: blur(10px);
  border-bottom: 2px dashed var(--line);
}
.top .wrap { display: flex; align-items: center; justify-content: space-between; height: 68px; gap: 12px; }
.brand { display: flex; align-items: center; gap: 10px; text-decoration: none; }
.brand img { width: 38px; height: 38px; border-radius: 11px; border: 2px solid var(--ink); }
.brand span { font-family: var(--display); font-weight: 700; font-size: 26px; letter-spacing: -0.5px; }
.brand span b { color: var(--red); }
.nav { display: flex; gap: 6px; flex-wrap: wrap; justify-content: flex-end; }
.nav a {
  font-weight: 800; font-size: 14.5px; text-decoration: none;
  padding: 7px 13px; border-radius: 999px; border: 2px solid transparent;
}
.nav a[aria-current="page"] { background: var(--butter); border-color: var(--ink); box-shadow: 3px 3px 0 var(--ink); }
.nav a:hover { border-color: var(--ink); color: var(--ink); }

/* ---------- Ortak parçalar ---------- */
.card {
  background: var(--paper);
  border: var(--stroke) solid var(--ink);
  border-radius: var(--r-card);
  box-shadow: 6px 6px 0 var(--ink);
}
.btn {
  display: inline-flex; align-items: center; justify-content: center; gap: 10px;
  min-height: 58px; padding: 0 26px;
  background: var(--ink); color: var(--cream);
  font-family: var(--display); font-weight: 700; font-size: 21px;
  border-radius: var(--r-button); text-decoration: none;
  box-shadow: 5px 5px 0 var(--red);
  transition: transform .12s ease, box-shadow .12s ease;
}
.btn:hover { color: var(--cream); transform: translate(-2px, -2px); box-shadow: 7px 7px 0 var(--red); }
.btn:active { transform: translate(3px, 3px); box-shadow: 2px 2px 0 var(--red); }
.btn svg { width: 22px; height: 22px; }
.btn small { display: block; font-family: var(--body); font-weight: 600; font-size: 12px; opacity: .8; line-height: 1; }
.btn .two { display: flex; flex-direction: column; align-items: flex-start; gap: 3px; line-height: 1; }

.pill {
  display: inline-flex; align-items: center; gap: 7px;
  padding: 6px 13px; border-radius: 999px;
  border: 2px solid var(--ink); background: var(--paper);
  font-weight: 800; font-size: 13.5px; letter-spacing: .2px;
}
.eyebrow { font-weight: 800; font-size: 13px; letter-spacing: 1.2px; color: var(--muted); text-transform: uppercase; }

h1, h2, h3 { font-family: var(--display); font-weight: 700; margin: 0; letter-spacing: -0.6px; line-height: 1.05; }
h1 { font-size: clamp(42px, 7vw, 74px); letter-spacing: -1.5px; }
h2 { font-size: clamp(32px, 4.6vw, 48px); letter-spacing: -1px; }
h3 { font-size: 22px; letter-spacing: -0.3px; }
.lead { font-size: clamp(18px, 2.2vw, 21px); color: var(--muted); margin: 18px 0 0; max-width: 34ch; }

/* ---------- Ana sayfa ---------- */
.hero { padding: 64px 0 40px; }
.hero .wrap { display: grid; grid-template-columns: 1.1fr .9fr; gap: 40px; align-items: center; }
.hero .cta { display: flex; flex-wrap: wrap; gap: 14px; align-items: center; margin-top: 30px; }
.hero .note { font-size: 14px; color: var(--subtle); font-weight: 600; }
.stage { position: relative; display: grid; place-items: center; min-height: 380px; }
.stage .blob { position: absolute; width: 320px; height: 320px; border-radius: 50%; background: var(--red); border: var(--stroke) solid var(--ink); top: 24px; }
.stage .mascot { position: relative; width: 300px; }
.bubble {
  position: absolute; z-index: 2;
  background: var(--paper); border: var(--stroke) solid var(--ink); border-radius: 18px;
  box-shadow: 4px 4px 0 var(--ink);
  font-family: var(--display); font-weight: 700; font-size: 20px; padding: 8px 16px;
}
.bubble.b1 { right: 0; top: 30px; transform: rotate(6deg); }
.bubble.b2 { left: 0; bottom: 64px; transform: rotate(-5deg); background: var(--green-soft); }
.bubble.b3 { right: 10px; bottom: 18px; transform: rotate(3deg); background: var(--butter); font-size: 17px; }

.section { padding: 56px 0; }
.section-head { display: flex; flex-direction: column; gap: 10px; margin-bottom: 28px; }

.features { display: grid; grid-template-columns: repeat(4, 1fr); gap: 18px; }
.feature { padding: 22px 20px 24px; display: flex; flex-direction: column; gap: 12px; }
.tile {
  width: 48px; height: 48px; border-radius: 14px; border: 2px solid var(--ink);
  display: grid; place-items: center; font-family: var(--display); font-weight: 700; font-size: 24px;
}
.tile svg { width: 24px; height: 24px; }
.feature p { margin: 0; color: var(--muted); font-size: 15.5px; }

.steps { display: grid; grid-template-columns: repeat(3, 1fr); gap: 18px; counter-reset: step; }
.step { padding: 26px 22px; position: relative; }
.step::before {
  counter-increment: step; content: counter(step);
  position: absolute; top: -18px; left: 20px;
  width: 40px; height: 40px; border-radius: 50%;
  background: var(--butter); border: var(--stroke) solid var(--ink);
  display: grid; place-items: center;
  font-family: var(--display); font-weight: 700; font-size: 20px;
}
.step h3 { margin-top: 10px; }
.step p { margin: 8px 0 0; color: var(--muted); font-size: 15.5px; }

.promise { display: grid; grid-template-columns: 220px 1fr; gap: 28px; align-items: center; padding: 30px; background: var(--green-soft); }
.promise ul { list-style: none; padding: 0; margin: 14px 0 0; display: grid; gap: 10px; }
.promise li { display: flex; gap: 10px; align-items: flex-start; font-weight: 600; }
.promise li::before { content: ''; flex: none; width: 22px; height: 22px; margin-top: 2px; border-radius: 6px; background: var(--ink) url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='%23FFF6E9' stroke-width='3.4' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpath d='M5 12.5l4.5 4.5L19 7.5'/%3E%3C/svg%3E") center/15px no-repeat; }

.support { display: grid; grid-template-columns: 1fr 1fr; gap: 18px; }
.support .card { padding: 26px; }
.support p { color: var(--muted); margin: 10px 0 0; }
details { border-top: 2px dashed var(--line); padding: 14px 0; }
details:first-of-type { border-top: 0; padding-top: 6px; }
summary { cursor: pointer; font-weight: 800; list-style: none; display: flex; justify-content: space-between; gap: 12px; }
summary::-webkit-details-marker { display: none; }
summary::after { content: '+'; font-family: var(--display); font-size: 22px; line-height: 1; }
details[open] summary::after { content: '–'; }
details p { margin: 8px 0 0; font-size: 15.5px; }

/* ---------- Yasal sayfalar ---------- */
.doc-hero { padding: 48px 0 8px; text-align: center; }
.doc-hero .mascot-sm { width: 132px; margin: 0 auto 6px; position: relative; }
.doc-hero .mascot-sm .blob { position: absolute; inset: 6px 0 auto 0; margin: auto; width: 128px; height: 128px; border-radius: 50%; background: var(--red-soft); }
.doc-hero .mascot-sm svg { position: relative; }
.doc-hero h1 { font-size: clamp(38px, 6vw, 58px); }
.doc-hero .lead { margin: 12px auto 0; max-width: 46ch; }
.meta { margin-top: 16px; display: flex; gap: 8px; justify-content: center; flex-wrap: wrap; }

.tldr { margin: 34px 0 10px; padding: 0; overflow: hidden; }
.tldr .row { display: flex; gap: 14px; padding: 16px 20px; border-top: 2px dashed var(--line); align-items: flex-start; }
.tldr .row:first-child { border-top: 0; }
.tldr .row .tile { width: 40px; height: 40px; border-radius: 12px; font-size: 18px; flex: none; }
.tldr .row b { display: block; font-size: 16.5px; }
.tldr .row span { color: var(--muted); font-size: 15px; }

.doc { padding: 20px 0 64px; }
.doc section { margin-top: 38px; }
.doc h2 { font-size: clamp(26px, 3.4vw, 32px); display: flex; gap: 12px; align-items: baseline; }
.doc h2 .n { font-size: .7em; color: var(--red-text); }
.doc h3 { font-size: 19px; margin-top: 22px; }
.doc p, .doc li { color: #3E2C22; }
.doc ul { padding-left: 22px; }
.doc li { margin: 6px 0; }
.doc li::marker { color: var(--red); }
.doc .box { padding: 18px 20px; border-radius: var(--r-list); border: var(--stroke) solid var(--ink); background: var(--butter-soft); margin: 16px 0; }
.doc .box p { margin: 0; }
.doc table { width: 100%; border-collapse: separate; border-spacing: 0; margin: 16px 0; font-size: 15px; background: var(--paper); border: var(--stroke) solid var(--ink); border-radius: 18px; overflow: hidden; }
.doc th, .doc td { text-align: left; padding: 11px 14px; vertical-align: top; border-top: 2px dashed var(--line); }
.doc th { background: var(--sand); border-top: 0; font-weight: 800; }
.doc tr:first-child td { border-top: 0; }
.table-scroll { overflow-x: auto; -webkit-overflow-scrolling: touch; }

/* ---------- Alt bilgi ---------- */
.foot { border-top: 2px dashed var(--line); padding: 30px 0 40px; margin-top: 20px; }
.foot .wrap { display: flex; justify-content: space-between; gap: 16px; flex-wrap: wrap; align-items: center; }
.foot p { margin: 0; font-size: 14px; color: var(--subtle); font-weight: 600; }
.foot nav { display: flex; gap: 18px; flex-wrap: wrap; }
.foot nav a { font-weight: 800; font-size: 14px; }

/* ---------- Mobil ---------- */
@media (max-width: 900px) {
  .hero .wrap { grid-template-columns: 1fr; gap: 10px; }
  .hero { padding-top: 36px; }
  .stage { min-height: 330px; order: -1; }
  .stage .blob { width: 250px; height: 250px; }
  .stage .mascot { width: 240px; }
  .features { grid-template-columns: 1fr 1fr; }
  .steps { grid-template-columns: 1fr; gap: 30px; }
  .promise { grid-template-columns: 1fr; text-align: left; }
  .promise svg { width: 150px; margin: 0 auto; }
  .support { grid-template-columns: 1fr; }
}
@media (max-width: 560px) {
  body { font-size: 16px; }
  .top .wrap { height: 60px; }
  .brand span { font-size: 22px; }
  .brand img { width: 32px; height: 32px; }
  .nav a { padding: 6px 9px; font-size: 13px; }
  .features { grid-template-columns: 1fr; }
  .bubble { font-size: 16px; padding: 6px 12px; }
  .bubble.b1 { right: 4px; top: 10px; }
  .bubble.b2 { left: 4px; bottom: 50px; }
  .bubble.b3 { display: none; }
  .btn { width: 100%; }
  .card { box-shadow: 4px 4px 0 var(--ink); }
}
@media (prefers-reduced-motion: reduce) { * { transition: none !important; scroll-behavior: auto !important; } }
