/* Dehacan tanıtım sitesi. Renkler marka paletinden (marka/README.md) ve uygulamanın temasından
   (uygulama/packages/oku_ui/lib/theme.dart, C sınıfı). Yazı rengi olarak kullanılan mavi ve yeşil,
   açık zeminde 4.5:1 karşıtlık için koyulaştırıldı; Deha moru krem zeminde zaten 5:1. */

@font-face {
  font-family: "Nunito";
  src: url("fonts/nunito.woff2") format("woff2");
  font-weight: 400 900;
  font-style: normal;
  font-display: swap;
}

:root {
  --bg: #fff8ec;
  --card: #ffffff;
  --soft: #f1edff;
  --track: #ece3d3;
  --ink: #27224a;
  --muted: #6b6785;
  --accent: #6c4bf4;
  --accent-ink: #6c4bf4;
  --accent-ink-hover: #5233d6;
  --night: #3a2296;
  --sun: #ffc83d;
  --blue: #5b8def;
  --blue-ink: #1f5bd6;
  --green: #3bb273;
  --green-ink: #23794b;
  --purple: #b65fd6;
  --pink: #ef5da8;
  --line: #9db7f0;
  --margin-red: #f2a5a5;
  --shadow: 0 6px 0 rgba(39, 34, 74, 0.08);
  --radius: 22px;
  --wrap: 1120px;
  --gutter: 20px;
}

*,
*::before,
*::after {
  box-sizing: border-box;
}

html {
  -webkit-text-size-adjust: 100%;
  text-size-adjust: 100%;
  scroll-behavior: smooth;
  scroll-padding-top: 84px;
}

body {
  margin: 0;
  background: var(--bg);
  color: var(--ink);
  font-family: "Nunito", system-ui, -apple-system, "Segoe UI", Roboto, sans-serif;
  font-size: 1.0625rem;
  line-height: 1.6;
  overflow-x: hidden;
}

img,
svg {
  display: block;
  max-width: 100%;
  height: auto;
}

a {
  color: var(--blue-ink);
  text-underline-offset: 3px;
}

a:hover {
  text-decoration-thickness: 2px;
}

:focus-visible {
  outline: 3px solid var(--blue-ink);
  outline-offset: 3px;
  border-radius: 6px;
}

h1,
h2,
h3 {
  line-height: 1.2;
  margin: 0 0 0.5em;
  font-weight: 900;
  letter-spacing: -0.01em;
  text-wrap: balance;
}

h1 {
  font-size: clamp(2rem, 5.2vw, 3.4rem);
}

h2 {
  font-size: clamp(1.6rem, 3.6vw, 2.4rem);
}

h3 {
  font-size: 1.2rem;
  font-weight: 800;
}

p {
  margin: 0 0 1em;
}

.wrap {
  width: 100%;
  max-width: var(--wrap);
  margin: 0 auto;
  padding: 0 var(--gutter);
}

.skip {
  position: absolute;
  left: 12px;
  top: -60px;
  background: var(--ink);
  color: #fff;
  padding: 10px 16px;
  border-radius: 12px;
  z-index: 10;
}

.skip:focus {
  top: 12px;
}

.visually-hidden {
  position: absolute;
  width: 1px;
  height: 1px;
  overflow: hidden;
  clip: rect(0 0 0 0);
  white-space: nowrap;
}

/* Üst bant */
.site-header {
  position: sticky;
  top: 0;
  z-index: 5;
  background: rgba(255, 248, 236, 0.94);
  border-bottom: 1px solid var(--track);
}

@supports (backdrop-filter: blur(8px)) {
  .site-header {
    background: rgba(255, 248, 236, 0.8);
    backdrop-filter: blur(8px);
  }
}

.bar {
  display: flex;
  align-items: center;
  gap: 16px;
  min-height: 68px;
}

.brand {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  color: var(--accent-ink);
  font-weight: 900;
  font-size: 1.3rem;
  text-decoration: none;
  white-space: nowrap;
}

.brand img {
  width: auto;
  height: 40px;
}

.nav {
  display: flex;
  gap: 4px;
  margin-left: auto;
}

.nav a {
  color: var(--ink);
  font-weight: 700;
  text-decoration: none;
  padding: 10px 12px;
  border-radius: 12px;
}

.nav a:hover {
  background: var(--soft);
}

.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  min-height: 48px;
  padding: 10px 22px;
  border-radius: 999px;
  font-weight: 800;
  font-size: 1rem;
  text-decoration: none;
  border: 2px solid transparent;
  white-space: nowrap;
}

.btn-primary {
  background: var(--accent-ink);
  color: #fff;
  box-shadow: 0 4px 0 var(--night);
}

.btn-primary:hover {
  background: var(--accent-ink-hover);
}

.btn-ghost {
  background: var(--card);
  color: var(--ink);
  border-color: var(--track);
  box-shadow: var(--shadow);
}

.btn-ghost:hover {
  border-color: var(--accent);
}

.bar .btn {
  min-height: 44px;
  padding: 8px 18px;
}

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

  .bar .btn {
    margin-left: auto;
  }
}

@media (max-width: 380px) {
  :root {
    --gutter: 16px;
  }

  .brand {
    font-size: 1.12rem;
  }

  .brand img {
    width: 34px;
    height: 34px;
  }

  .bar .btn {
    padding: 8px 14px;
    font-size: 0.95rem;
  }
}

/* Giriş */
.hero {
  padding: 56px 0 40px;
}

.hero-grid {
  display: grid;
  gap: 40px;
  align-items: center;
}

@media (min-width: 960px) {
  .hero-grid {
    grid-template-columns: 1.05fr 1fr;
    gap: 56px;
  }
}

.eyebrow {
  display: inline-block;
  background: var(--soft);
  color: var(--accent-ink);
  border: 1px solid #dcd3ff;
  font-weight: 800;
  font-size: 0.92rem;
  padding: 6px 14px;
  border-radius: 999px;
  margin-bottom: 18px;
}

.lead {
  font-size: clamp(1.1rem, 2vw, 1.28rem);
  color: var(--muted);
  max-width: 36em;
}

.cta {
  display: flex;
  flex-wrap: wrap;
  gap: 12px;
  align-items: center;
  margin: 26px 0 16px;
}

.trial {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  background: var(--card);
  border: 2px solid var(--green);
  color: var(--green-ink);
  font-weight: 900;
  padding: 10px 18px;
  border-radius: 999px;
  box-shadow: var(--shadow);
}

.trial svg {
  width: 22px;
  height: 22px;
  flex: none;
}

.soon {
  color: var(--muted);
  font-weight: 700;
  font-size: 0.98rem;
  margin: 0;
}

.stores {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
  margin-top: 10px;
}

.store {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 8px 14px;
  border-radius: 12px;
  border: 1.5px dashed #c9bfae;
  color: var(--muted);
  font-weight: 700;
  font-size: 0.92rem;
}

.store svg {
  width: 18px;
  height: 18px;
  flex: none;
}

/* Defter kartı */
.notebook {
  position: relative;
  background: var(--card);
  border-radius: var(--radius);
  box-shadow: 0 10px 0 var(--track), 0 18px 40px rgba(43, 45, 66, 0.08);
  padding: 28px 22px 24px 46px;
  overflow: hidden;
}

.notebook::before {
  content: "";
  position: absolute;
  top: 0;
  bottom: 0;
  left: 30px;
  width: 2px;
  background: var(--margin-red);
}

.notebook .row + .row {
  margin-top: 18px;
}

.hero-visual {
  position: relative;
  padding-top: 60px;
  max-width: 560px;
  width: 100%;
  margin: 0 auto;
}

.notebook {
  z-index: 1;
}

/* Baykuş defterin arkasından bakar: alt yarısı kartın altında kalır. */
.owl {
  position: absolute;
  right: 28px;
  top: -14px;
  width: 104px;
  z-index: 0;
}

@media (max-width: 520px) {
  .owl {
    width: 80px;
    top: 4px;
    right: 18px;
  }

  .notebook {
    padding-left: 38px;
  }

  .notebook::before {
    left: 24px;
  }
}

.hero-caption {
  margin: 28px 0 0;
  color: var(--muted);
  font-size: 0.95rem;
  text-align: center;
}

/* İz sürme canlandırması: "a" önce yuvarlak, sonra sap. Hareket azaltılınca hazır çizili durur. */
.iz {
  stroke-dasharray: 1;
  stroke-dashoffset: 1;
  animation: iz 1.4s ease-in-out forwards;
}

.iz1 {
  animation-delay: 0.5s;
}

.iz2 {
  animation-delay: 2s;
  animation-duration: 0.7s;
}

@keyframes iz {
  to {
    stroke-dashoffset: 0;
  }
}

@media (prefers-reduced-motion: reduce) {
  html {
    scroll-behavior: auto;
  }

  .iz {
    animation: none;
    stroke-dashoffset: 0;
  }
}

/* Güven şeridi */
.facts {
  list-style: none;
  margin: 0;
  padding: 0;
  display: grid;
  gap: 12px;
  grid-template-columns: 1fr;
}

@media (min-width: 560px) {
  .facts {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }
}

@media (min-width: 1000px) {
  .facts {
    grid-template-columns: repeat(4, minmax(0, 1fr));
  }
}

.facts li {
  display: flex;
  align-items: center;
  gap: 12px;
  background: var(--card);
  border-radius: 18px;
  padding: 14px 16px;
  box-shadow: var(--shadow);
  font-weight: 800;
  line-height: 1.3;
}

.dot {
  flex: none;
  width: 40px;
  height: 40px;
  border-radius: 12px;
  display: grid;
  place-items: center;
}

.dot svg {
  width: 22px;
  height: 22px;
}

.dot-orange {
  background: #ebe5ff;
  color: var(--accent-ink);
}

.dot-blue {
  background: #e3ecfd;
  color: var(--blue-ink);
}

.dot-green {
  background: #dcf3e6;
  color: var(--green-ink);
}

.dot-purple {
  background: #f3e3f9;
  color: #7f3a9b;
}

/* Bölümler */
.section {
  padding: 72px 0;
}

.section-alt {
  background: var(--card);
}

.section-head {
  max-width: 44em;
  margin-bottom: 36px;
}

.section-head p {
  color: var(--muted);
  font-size: 1.12rem;
}

.kicker {
  display: block;
  color: var(--accent-ink);
  font-weight: 900;
  font-size: 0.9rem;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  margin-bottom: 8px;
}

.split {
  display: grid;
  gap: 36px;
  align-items: center;
}

@media (min-width: 900px) {
  .split {
    grid-template-columns: 1fr 1fr;
    gap: 56px;
  }

  .split.flip > :first-child {
    order: 2;
  }
}

.checks {
  list-style: none;
  margin: 0;
  padding: 0;
  display: grid;
  gap: 14px;
}

.checks li {
  position: relative;
  padding-left: 36px;
}

.checks li::before {
  content: "";
  position: absolute;
  left: 0;
  top: 3px;
  width: 24px;
  height: 24px;
  border-radius: 50%;
  background: #dcf3e6 url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24'%3E%3Cpath d='M6 12.5l4 4 8-9' fill='none' stroke='%2323794b' stroke-width='3' stroke-linecap='round' stroke-linejoin='round'/%3E%3C/svg%3E") center / 18px no-repeat;
}

.checks strong {
  display: block;
}

.letters {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 14px;
}

.letter-card {
  background: var(--card);
  border-radius: 18px;
  padding: 14px 16px 10px;
  box-shadow: var(--shadow);
  margin: 0;
}

.section-alt .letter-card {
  background: var(--bg);
}

.letter-card figcaption {
  font-size: 0.9rem;
  color: var(--muted);
  font-weight: 700;
  margin-top: 4px;
  text-align: center;
}

.letter-card img {
  height: 120px;
  width: auto;
  max-width: 100%;
  object-fit: contain;
  margin: 0 auto;
}

.letter-card.wide img {
  height: auto;
  width: 100%;
  max-width: 440px;
}

.letter-card.wide {
  grid-column: 1 / -1;
}

.shot {
  margin: 0;
}

.shot img {
  border-radius: 18px;
  border: 1px solid var(--track);
  box-shadow: 0 10px 30px rgba(43, 45, 66, 0.1);
  background: var(--bg);
}

.shot figcaption {
  font-size: 0.92rem;
  color: var(--muted);
  margin-top: 10px;
  text-align: center;
}

/* Harf grupları */
.groups {
  list-style: none;
  margin: 0;
  padding: 0;
  display: grid;
  gap: 12px;
}

.group {
  display: grid;
  grid-template-columns: auto 1fr;
  align-items: center;
  gap: 16px;
  background: var(--card);
  border-radius: 18px;
  padding: 10px 18px;
  box-shadow: var(--shadow);
  border-left: 8px solid var(--c, var(--accent));
}

.group-n {
  font-weight: 900;
  font-size: 0.95rem;
  white-space: nowrap;
  min-width: 4.6em;
}

.group img {
  height: 64px;
  width: auto;
  max-width: 100%;
}

@media (max-width: 520px) {
  .group {
    grid-template-columns: 1fr;
    gap: 2px;
    padding: 10px 14px 6px;
  }

  .group img {
    height: 52px;
  }
}

.g1 {
  --c: #ff8a3d;
}

.g2 {
  --c: #5b8def;
}

.g3 {
  --c: #3bb273;
}

.g4 {
  --c: #b65fd6;
}

.g5 {
  --c: #ef5da8;
}

.note {
  font-size: 0.95rem;
  color: var(--muted);
  margin-top: 16px;
}

/* Kartlar */
.cards {
  display: grid;
  gap: 18px;
  grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
}

.card {
  background: var(--card);
  border-radius: var(--radius);
  padding: 24px;
  box-shadow: var(--shadow);
}

.section-alt .card {
  background: var(--bg);
  box-shadow: none;
  border: 1px solid var(--track);
}

.card p {
  color: var(--muted);
  margin: 0;
}

.card .dot {
  margin-bottom: 14px;
}

.math-visual {
  background: var(--card);
  border-radius: var(--radius);
  padding: 22px 18px;
  box-shadow: var(--shadow);
}

.math-visual img {
  width: 100%;
  max-width: 440px;
  margin: 0 auto;
}

.math-visual p {
  text-align: center;
  color: var(--muted);
  font-size: 0.92rem;
  margin: 10px 0 0;
}

/* Kilit ekranı örneği */
.lock {
  background: linear-gradient(160deg, #2a1e6e, var(--night));
  color: #fff;
  border-radius: var(--radius);
  padding: 28px 24px;
  text-align: center;
  box-shadow: 0 10px 0 #1c1450;
}

.lock .lock-icon {
  width: 56px;
  height: 56px;
  margin: 0 auto 12px;
  color: #ffe08a;
}

.lock p {
  margin: 0;
}

.lock .big {
  font-size: 1.35rem;
  font-weight: 900;
  margin-bottom: 6px;
}

.lock .small {
  color: #ddd8f3;
  font-size: 0.95rem;
}

.pin {
  display: flex;
  justify-content: center;
  gap: 10px;
  margin-top: 16px;
}

.pin span {
  width: 16px;
  height: 16px;
  border-radius: 50%;
  border: 2px solid #ffe08a;
}

.badge-soon {
  display: inline-block;
  background: #e3ecfd;
  color: var(--blue-ink);
  font-weight: 800;
  font-size: 0.85rem;
  padding: 3px 10px;
  border-radius: 999px;
  vertical-align: middle;
  margin-left: 6px;
}

/* Gizlilik bölümü */
.privacy {
  background: var(--ink);
  color: #fff;
}

.privacy .kicker {
  color: #ffd666;
}

.privacy .section-head p,
.privacy .card p {
  color: #ddd8f3;
}

.privacy .card {
  background: #352e63;
  box-shadow: none;
}

.privacy a {
  color: #ffd666;
}

.privacy .dot {
  background: #453c7a;
  color: #ffd666;
}

/* Üyelik */
.plan {
  background: var(--card);
  border-radius: 28px;
  padding: 32px 26px;
  box-shadow: 0 10px 0 var(--track);
  max-width: 720px;
  margin: 0 auto;
  text-align: center;
}

.plan .trial {
  font-size: 1.2rem;
  margin-bottom: 16px;
}

.plan ul {
  text-align: left;
  max-width: 30em;
  margin: 18px auto 22px;
}

.plan .stores {
  justify-content: center;
}

/* SSS */
.faq {
  max-width: 820px;
  margin: 0 auto;
  display: grid;
  gap: 12px;
}

.faq details {
  background: var(--card);
  border-radius: 18px;
  box-shadow: var(--shadow);
  padding: 0 20px;
}

.faq summary {
  cursor: pointer;
  font-weight: 800;
  padding: 18px 28px 18px 0;
  list-style: none;
  position: relative;
  min-height: 48px;
}

.faq summary::-webkit-details-marker {
  display: none;
}

.faq summary::after {
  content: "+";
  position: absolute;
  right: 0;
  top: 50%;
  transform: translateY(-50%);
  font-size: 1.5rem;
  color: var(--accent-ink);
  font-weight: 900;
}

.faq details[open] summary::after {
  content: "−";
}

.faq details p {
  color: var(--muted);
  padding-bottom: 6px;
}

/* Alt bilgi */
.site-footer {
  background: var(--card);
  border-top: 1px solid var(--track);
  padding: 40px 0 28px;
  font-size: 0.98rem;
}

.foot {
  display: grid;
  gap: 24px;
  grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
}

.foot h2 {
  font-size: 1rem;
  margin-bottom: 10px;
}

.foot ul {
  list-style: none;
  margin: 0;
  padding: 0;
  display: grid;
  gap: 6px;
}

.foot a {
  color: var(--ink);
  display: inline-block;
  padding: 4px 0;
}

.foot p {
  color: var(--muted);
}

.legal-line {
  margin-top: 28px;
  padding-top: 18px;
  border-top: 1px solid var(--track);
  color: var(--muted);
  font-size: 0.9rem;
}

/* Hukuki metin sayfaları */
.doc {
  max-width: 820px;
  margin: 0 auto;
  padding: 48px var(--gutter) 72px;
}

.doc h1 {
  font-size: clamp(1.8rem, 4.4vw, 2.6rem);
}

.doc h2 {
  font-size: 1.35rem;
  margin-top: 2em;
}

.doc h3 {
  margin-top: 1.4em;
}

.doc ul,
.doc ol {
  padding-left: 1.3em;
}

.doc li {
  margin-bottom: 0.4em;
}

.draft {
  background: #fff4d6;
  border: 2px solid #e8b400;
  border-radius: 16px;
  padding: 16px 18px;
  margin: 0 0 28px;
  color: #4a3b00;
}

.draft strong {
  display: block;
  font-size: 1.05rem;
  margin-bottom: 4px;
}

.ph {
  background: #fff1a8;
  border-radius: 6px;
  padding: 0 4px;
  font-weight: 800;
}

.table-wrap {
  overflow-x: auto;
  margin: 0 0 1em;
  -webkit-overflow-scrolling: touch;
}

.doc table {
  width: 100%;
  border-collapse: collapse;
  background: var(--card);
  border-radius: 12px;
  overflow: hidden;
  font-size: 0.96rem;
  min-width: 560px;
}

.doc th,
.doc td {
  text-align: left;
  vertical-align: top;
  padding: 10px 12px;
  border-bottom: 1px solid var(--track);
}

.doc th {
  background: var(--soft);
}

.meta {
  color: var(--muted);
  font-size: 0.95rem;
}

/* 404 */
.notfound {
  min-height: 70vh;
  display: grid;
  place-items: center;
  text-align: center;
  padding: 48px var(--gutter);
}

.notfound img.word {
  width: min(320px, 80vw);
  margin: 0 auto 8px;
}

.notfound .owl-static {
  width: 120px;
  margin: 0 auto 10px;
}

/* Yardımcılar (CSP satır içi stile izin vermediği için sınıf olarak) */
.mt {
  margin-top: 12px;
}

.center {
  margin-left: auto;
  margin-right: auto;
  text-align: center;
}

.shot-wide {
  margin-top: 40px;
}

.cards-2 {
  grid-template-columns: 1fr;
}

@media (min-width: 560px) {
  .cards-2 {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }
}

.hero-svg {
  width: 100%;
  height: auto;
}

.notebook .row img {
  width: 100%;
}

.groups-title {
  margin-top: 48px;
}

.center-flex {
  justify-content: center;
}

.notfound .lead {
  margin-left: auto;
  margin-right: auto;
}

.letter-card.wide-word {
  grid-column: 1 / -1;
}

.foot .brand {
  display: inline-flex;
  color: var(--accent-ink);
}

.pair {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: 0 8px;
}

.pair img {
  margin: 0;
}

/* Dar ekranda tablolar yana kaymasın: her satır bir kart olur. */
@media (max-width: 640px) {
  .doc table {
    min-width: 0;
  }

  .doc thead {
    position: absolute;
    width: 1px;
    height: 1px;
    overflow: hidden;
    clip: rect(0 0 0 0);
  }

  .doc tr,
  .doc td {
    display: block;
  }

  .doc tr {
    padding: 10px 0;
    border-bottom: 1px solid var(--track);
  }

  .doc td {
    border: 0;
    padding: 3px 14px;
  }

  .doc td:first-child {
    font-weight: 800;
  }

  .doc td[data-label]::before {
    content: attr(data-label) ": ";
    font-weight: 700;
    color: var(--muted);
  }
}

.shot-wide img {
  margin: 0 auto;
}
