/*
 * diaryonce.com — uygulamanın "Kâğıt & Mürekkep" temasıyla aynı renkler,
 * aynı yazı tipleri (Lora başlık, Work Sans gövde) ve aynı çizgili kâğıt.
 * Renkler app/src/main/java/com/can/diaryonce/ui/theme/Color.kt'den.
 */

@font-face { font-family: "Lora"; src: url("/fonts/lora-400.woff2") format("woff2"); font-weight: 400; font-display: swap; }
@font-face { font-family: "Lora"; src: url("/fonts/lora-600.woff2") format("woff2"); font-weight: 600; font-display: swap; }
@font-face { font-family: "Work Sans"; src: url("/fonts/work-sans-400.woff2") format("woff2"); font-weight: 400; font-display: swap; }
@font-face { font-family: "Work Sans"; src: url("/fonts/work-sans-600.woff2") format("woff2"); font-weight: 600; font-display: swap; }

:root {
  --bg: #F2ECE1;
  --paper: #F8F3E9;
  --card: #EAE2D4;
  --card-high: #E3D9C4;
  --ink: #2C261F;
  --grey: #6B6154;
  --accent: #6B5B3E;
  --on-accent: #F6F1E7;
  --accent-soft: #E3D9C4;
  --clay: #B4693F;
  --rule: #DDD3BF;
  --margin: #D9B49A;
  --outline: #DFD5C2;
  --bezel: #2C261F;
  --error: #8C3A2E;
  --error-soft: #F0DFDA;
  --on-error-soft: #5E3A32;
  --shadow: 0 30px 60px rgba(44, 38, 31, .16);
  --shadow-pop: 0 18px 40px rgba(44, 38, 31, .16), 0 4px 10px rgba(44, 38, 31, .08);
  --radius-card: 22px;
  --radius-field: 16px;
  --line: 32px;
  color-scheme: light;
}

/*
 * Karanlık tema iki yoldan gelir: ziyaretçi üst çubuktaki ay/güneş düğmesiyle
 * seçtiyse data-theme; seçmediyse cihazın ayarı. Renkler aynı, iki kez yazılı.
 */
:root[data-theme="dark"] {
  --bg: #12100E;
  --paper: #1A1713;
  --card: #221D18;
  --card-high: #2A241D;
  --ink: #F2ECE1;
  --grey: #B5AB9B;
  --accent: #D4C4A8;
  --on-accent: #12100E;
  --accent-soft: #3A3225;
  --clay: #D08A5F;
  --rule: #2A241D;
  --margin: #6B4E3A;
  --outline: #3A3229;
  --bezel: #3A3229;
  --error: #E39C81;
  --error-soft: #3A211A;
  --on-error-soft: #F2C7B5;
  --shadow: 0 30px 60px rgba(0, 0, 0, .45);
  --shadow-pop: 0 18px 40px rgba(0, 0, 0, .5), 0 4px 10px rgba(0, 0, 0, .3);
  color-scheme: dark;
}

@media (prefers-color-scheme: dark) {
  :root:not([data-theme="light"]) {
    --bg: #12100E;
    --paper: #1A1713;
    --card: #221D18;
    --card-high: #2A241D;
    --ink: #F2ECE1;
    --grey: #B5AB9B;
    --accent: #D4C4A8;
    --on-accent: #12100E;
    --accent-soft: #3A3225;
    --clay: #D08A5F;
    --rule: #2A241D;
    --margin: #6B4E3A;
    --outline: #3A3229;
    --bezel: #3A3229;
    --error: #E39C81;
    --error-soft: #3A211A;
    --on-error-soft: #F2C7B5;
    --shadow: 0 30px 60px rgba(0, 0, 0, .45);
    --shadow-pop: 0 18px 40px rgba(0, 0, 0, .5), 0 4px 10px rgba(0, 0, 0, .3);
    color-scheme: dark;
  }
}

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

html { -webkit-text-size-adjust: 100%; scroll-behavior: smooth; }
@media (prefers-reduced-motion: reduce) { html { scroll-behavior: auto; } }

body {
  margin: 0;
  background: var(--bg);
  color: var(--ink);
  font-family: "Work Sans", system-ui, -apple-system, "Segoe UI", sans-serif;
  font-size: 17px;
  line-height: 1.6;
  -webkit-font-smoothing: antialiased;
}

img { max-width: 100%; display: block; }
a { color: var(--accent); text-underline-offset: 3px; }
a:hover { color: var(--ink); }

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

.skip { position: absolute; left: -999px; top: 8px; background: var(--ink); color: var(--bg); padding: 8px 14px; border-radius: 10px; z-index: 10; }
.skip:focus { left: 16px; }

.wrap { width: min(1120px, 100% - 32px); margin-inline: auto; }

h1, h2, h3 { font-family: "Lora", Georgia, serif; font-weight: 600; line-height: 1.15; letter-spacing: -0.01em; margin: 0; }

.label {
  font-size: 12.5px;
  font-weight: 600;
  letter-spacing: .14em;
  text-transform: uppercase;
  color: var(--grey);
}

/* ---- Üst çubuk --------------------------------------------------------- */

.top {
  position: sticky;
  top: 0;
  z-index: 5;
  background: color-mix(in srgb, var(--bg) 88%, transparent);
  backdrop-filter: saturate(1.2) blur(10px);
  -webkit-backdrop-filter: saturate(1.2) blur(10px);
  border-bottom: 1px solid transparent;
  transition: border-color .2s;
}
.top.scrolled { border-bottom-color: var(--outline); }
.top .wrap { display: flex; align-items: center; gap: 24px; height: 68px; }

.brand { display: inline-flex; align-items: center; gap: 10px; text-decoration: none; color: var(--ink); font-family: "Lora", Georgia, serif; font-weight: 600; font-size: 21px; }
.brand svg { width: 36px; height: 36px; }

.nav { display: flex; gap: 22px; margin-left: auto; }
.nav a { color: var(--grey); text-decoration: none; font-size: 15px; font-weight: 600; white-space: nowrap; }
.nav a:hover { color: var(--ink); }

/* Tema ve dil düğmeleri yan yana, aralarında az boşluk: tek bir araç grubu. */
.top-actions { display: flex; align-items: center; gap: 2px; margin-right: -8px; }

/* ---- Dil menüsü: dünya düğmesi, altında uygulamadaki menüler gibi bir kâğıt ---- */

.lang-menu { position: relative; flex: none; }
.lang-menu > summary { list-style: none; }
.lang-menu > summary::-webkit-details-marker { display: none; }
.lang-menu[open] > summary { background: var(--card); color: var(--ink); }
.lang-list {
  position: absolute;
  right: 0;
  top: calc(100% + 10px);
  z-index: 6;
  min-width: 210px;
  margin: 0;
  padding: 6px;
  list-style: none;
  background: var(--paper);
  border: 1px solid var(--outline);
  border-radius: var(--radius-field);
  box-shadow: var(--shadow-pop);
}
.lang-menu[open] .lang-list { animation: lang-open .16s ease-out; }
@keyframes lang-open { from { opacity: 0; transform: translateY(-4px); } }
@media (prefers-reduced-motion: reduce) { .lang-menu[open] .lang-list { animation: none; } }
.lang-list a {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  min-height: 44px;
  padding: 0 12px 0 14px;
  border-radius: 10px;
  color: var(--ink);
  text-decoration: none;
  font-size: 15px;
  font-weight: 600;
}
.lang-list a:hover { background: var(--card); color: var(--ink); }
.lang-list a[aria-current] { background: var(--accent-soft); }
.lang-check { width: 18px; height: 18px; flex: none; color: var(--clay); }

/* ---- Düğmeler ---------------------------------------------------------- */

.btn {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  min-height: 48px;
  padding: 0 22px;
  border-radius: 999px;
  background: var(--accent);
  color: var(--on-accent);
  font-weight: 600;
  font-size: 16px;
  text-decoration: none;
  transition: transform .15s, background .15s;
}
.btn:hover { color: var(--on-accent); background: color-mix(in srgb, var(--accent) 88%, var(--ink)); }
.btn:active { transform: scale(.98); }
.btn svg { width: 20px; height: 20px; flex: none; }
.btn.small { min-height: 40px; padding: 0 16px; font-size: 14.5px; }

/* ---- Çizgili kâğıt ----------------------------------------------------- */

.paper {
  position: relative;
  background-color: var(--paper);
  background-image: repeating-linear-gradient(to bottom, transparent 0, transparent calc(var(--line) - 1px), var(--rule) calc(var(--line) - 1px), var(--rule) var(--line));
}
.paper::before {
  content: "";
  position: absolute;
  top: 0;
  bottom: 0;
  left: max(10px, calc((100% - 1120px) / 2 - 36px));
  width: 2px;
  background: var(--margin);
}
/* Kenar çizgisi metnin üstüne binmesin: dar ekranda kâğıdın içi biraz daha içeriden başlar. */
.paper .wrap { width: min(1120px, 100% - 60px); }

/* ---- Karşılama --------------------------------------------------------- */

.hero { overflow: hidden; }
.hero .wrap {
  display: grid;
  grid-template-columns: 1.1fr .9fr;
  align-items: center;
  gap: 48px;
  padding-block: calc(var(--line) * 2) 0;
}
/*
 * Metin sütunu kâğıdın çizgilerine oturuyor: üst dolgu, her satır yüksekliği
 * ve her boşluk --line'ın (32px) katı. Sütun ortalanmıyor, üstten başlıyor —
 * ortalansaydı yeri telefonun yüksekliğine göre kayar, çizgilerden çıkardı.
 */
.hero .wrap > div:first-child { align-self: start; }
.hero .label { line-height: var(--line); margin: 0; }
.hero h1 { font-size: clamp(44px, 6.4vw, 76px); letter-spacing: -0.02em; line-height: calc(var(--line) * 3); }
.hero h1 em { font-style: normal; color: var(--clay); }
.hero .lead { font-size: clamp(18px, 2vw, 21px); line-height: var(--line); color: var(--grey); max-width: 30em; margin: var(--line) 0; }
.hero .cta { display: flex; flex-wrap: wrap; align-items: center; gap: 0 20px; min-height: calc(var(--line) * 2); }
.hero .note { font-size: 13.5px; line-height: var(--line); color: var(--grey); max-width: 36em; margin: var(--line) 0 calc(var(--line) * 2); }

/*
 * Telefonlar hazır görsel: gerçek ekran görüntüsü, metal kasalı ve yan tuşlu
 * bir telefon çerçevesinin içinde, gölgesiyle birlikte (şeffaf zeminli WebP).
 * Mağaza görselleriyle aynı çerçeve.
 */
.phone { width: min(320px, 100%); margin-inline: auto; }
/* Gölge CSS ile: telefonun şeklini izliyor, görselin kenarında kesilmiyor. */
.phone img { width: 100%; height: auto; display: block;
  filter: drop-shadow(0 30px 34px rgba(44, 38, 31, .22)) drop-shadow(0 8px 10px rgba(44, 38, 31, .14)); }
:root[data-theme="dark"] .phone img { filter: drop-shadow(0 30px 40px rgba(0, 0, 0, .6)) drop-shadow(0 8px 10px rgba(0, 0, 0, .4)); }
@media (prefers-color-scheme: dark) {
  :root:not([data-theme="light"]) .phone img { filter: drop-shadow(0 30px 40px rgba(0, 0, 0, .6)) drop-shadow(0 8px 10px rgba(0, 0, 0, .4)); }
}
.hero .phone { width: min(330px, 100%); align-self: center; margin-block: calc(var(--line) * 2); }

/* ---- Üç ilke ----------------------------------------------------------- */

.section { padding-block: 96px; }
.section-head { max-width: 620px; margin-bottom: 44px; }
.section-head h2 { font-size: clamp(32px, 4vw, 44px); margin-top: 10px; }
.section-head p { color: var(--grey); margin: 14px 0 0; }

.pillars { display: grid; grid-template-columns: repeat(3, 1fr); gap: 16px; }
.pillar { background: var(--card); border-radius: var(--radius-card); padding: 28px; }
.pillar .icon { width: 48px; height: 48px; border-radius: 14px; background: var(--accent-soft); color: var(--accent); display: grid; place-items: center; margin-bottom: 18px; }
.pillar .icon svg { width: 24px; height: 24px; }
.pillar h3 { font-size: 22px; }
.pillar p { color: var(--grey); margin: 8px 0 0; font-size: 16px; }

/* ---- Özellikler -------------------------------------------------------- */

.features { display: grid; grid-template-columns: 1fr 380px; gap: 56px; align-items: start; }
.feature-list { list-style: none; margin: 0; padding: 0; display: grid; gap: 10px; }
.feature {
  display: grid;
  grid-template-columns: 52px 1fr;
  gap: 4px 12px;
  width: 100%;
  text-align: left;
  border: 0;
  background: transparent;
  color: inherit;
  font: inherit;
  padding: 20px 24px;
  border-radius: var(--radius-card);
  cursor: pointer;
  transition: background .2s;
}
.feature:hover { background: color-mix(in srgb, var(--card) 60%, transparent); }
.feature[aria-pressed="true"] { background: var(--card); }
.feature .num { font-family: "Lora", Georgia, serif; font-weight: 600; font-size: 22px; color: var(--grey); line-height: 1.3; }
.feature[aria-pressed="true"] .num { color: var(--clay); }
.feature h3 { font-size: 22px; }
.feature p { grid-column: 2; margin: 0; color: var(--grey); font-size: 16px; max-height: 0; overflow: hidden; opacity: 0; transition: max-height .3s, opacity .3s, margin .3s; }
.feature[aria-pressed="true"] p { max-height: 200px; opacity: 1; margin-top: 6px; }
.feature-shot { position: sticky; top: 96px; }
.feature-shot img { transition: opacity .25s; }
.feature-shot img.fading { opacity: 0; }
@media (prefers-reduced-motion: reduce) {
  .feature p, .feature-shot img { transition: none; }
}

/* Menüden gelinen bölümün başlığı yapışkan üst çubuğun altında kalmasın. */
section[id] { scroll-margin-top: 76px; }

/* ---- Kilit ------------------------------------------------------------- */

.lock { display: grid; grid-template-columns: 1fr 420px; gap: 56px; align-items: center; }
.lock h2 { font-size: clamp(32px, 4vw, 44px); margin-top: 10px; }
.lock-lead { color: var(--grey); margin: 16px 0 28px; max-width: 34em; }
.lock-points { list-style: none; margin: 0; padding: 0; display: grid; gap: 18px; }
.lock-points li { display: grid; grid-template-columns: 14px 1fr; gap: 14px; color: var(--grey); font-size: 16px; }
.lock-points strong { color: var(--ink); font-weight: 600; }
.lock-points .dot { width: 10px; height: 10px; border-radius: 50%; background: var(--clay); margin-top: 8px; }
.lock-visual { position: relative; padding-bottom: 40px; }
.lock-visual .phone { width: min(320px, 100%); }
.lock-card {
  position: absolute;
  left: 50%;
  top: 17%;
  width: min(390px, 104%);
  height: auto;
  transform: translateX(-50%);
  border-radius: 18px;
  box-shadow: 0 18px 40px rgba(20, 24, 50, .26), 0 4px 10px rgba(20, 24, 50, .14);
}

/* ---- Premium ----------------------------------------------------------- */

.premium {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 40px;
  align-items: center;
  background: var(--card);
  border-radius: 32px;
  padding: clamp(28px, 5vw, 56px);
}
.premium h2 { font-size: clamp(32px, 4vw, 44px); margin-top: 10px; }
.premium p { color: var(--grey); }
.perks { list-style: none; margin: 0; padding: 0; display: grid; gap: 12px; }
.perks li { display: flex; gap: 14px; align-items: center; background: var(--paper); border-radius: var(--radius-field); padding: 16px 18px; font-weight: 600; }
.perks .aa { width: 40px; height: 40px; border-radius: 12px; background: var(--accent-soft); color: var(--accent); display: grid; place-items: center; flex: none; font-family: "Lora", Georgia, serif; font-weight: 600; }
.perks .aa svg { width: 22px; height: 22px; }
.perks small { display: block; font-weight: 400; color: var(--grey); font-size: 14.5px; }

/* ---- SSS --------------------------------------------------------------- */

.faq { max-width: 820px; }
.faq details { border-bottom: 1px solid var(--outline); }
.faq summary {
  list-style: none;
  cursor: pointer;
  padding: 22px 44px 22px 0;
  position: relative;
  font-family: "Lora", Georgia, serif;
  font-weight: 600;
  font-size: 20px;
  line-height: 1.35;
}
.faq summary::-webkit-details-marker { display: none; }
.faq summary::after {
  content: "";
  position: absolute;
  right: 8px;
  top: 50%;
  width: 11px;
  height: 11px;
  border-right: 2px solid var(--grey);
  border-bottom: 2px solid var(--grey);
  transform: translateY(-70%) rotate(45deg);
  transition: transform .2s;
}
.faq details[open] summary::after { transform: translateY(-30%) rotate(-135deg); }
.faq details > div { padding: 0 0 22px; color: var(--grey); }
.faq details > div p { margin: 0 0 10px; }

/* ---- Son çağrı --------------------------------------------------------- */

.closing { text-align: center; padding-block: 96px; }
/*
 * Kâğıdın çizgi aralığına (--line, 32px) oturuyor: dolgu, başlığın ve yazının
 * satır yükseklikleri ve boşluklar 32'nin katı. Böylece yazı çizginin üstüne
 * binmiyor, iki çizginin arasında duruyor.
 */
.closing h2 { font-size: clamp(34px, 5vw, 56px); line-height: calc(var(--line) * 2); }
.closing p { color: var(--grey); margin: var(--line) auto; max-width: 32em; line-height: var(--line); }
.closing .cta { display: flex; flex-wrap: wrap; justify-content: center; align-items: center; gap: 0 20px; }
.closing .beta { margin: 0; text-align: left; }
@media (max-width: 600px) {
  .closing .cta { flex-direction: column; }
  .closing .beta { text-align: center; }
}

/* ---- Alt bilgi --------------------------------------------------------- */

.foot { border-top: 1px solid var(--outline); padding-block: 40px 48px; font-size: 14.5px; color: var(--grey); }
.foot .row { display: flex; flex-wrap: wrap; gap: 16px 32px; align-items: center; justify-content: space-between; }
.foot nav { display: flex; flex-wrap: wrap; gap: 8px 24px; }
.foot nav a { color: var(--grey); text-decoration: none; font-weight: 600; }
.foot nav a:hover { color: var(--ink); }
.foot .legal { margin: 24px 0 0; font-size: 13px; }

/* ---- Metin sayfaları (gizlilik, hesap silme) --------------------------- */

.doc { padding-block: 64px 96px; }
.doc .sheet { background: var(--paper); border-radius: 28px; padding: clamp(24px, 5vw, 56px); max-width: 820px; margin-inline: auto; }
.doc h1 { font-size: clamp(34px, 5vw, 48px); }
.doc .meta { color: var(--grey); font-size: 15px; margin: 10px 0 32px; }
.doc h2 { font-family: "Work Sans", system-ui, sans-serif; font-size: 13px; font-weight: 600; letter-spacing: .14em; text-transform: uppercase; color: var(--grey); margin: 36px 0 10px; }
.doc p, .doc li { font-size: 17px; }
.doc ol, .doc ul { padding-left: 22px; }
.doc li { margin-bottom: 8px; }
.doc .callout { background: var(--card); border-radius: var(--radius-field); padding: 18px 22px; margin: 24px 0; }
.doc .callout p { margin: 0; }

/* Kök 404: ziyaretçinin dili bilinmiyor, bütün diller seçilebilir. */
.lang-links { list-style: none; margin: 32px 0 0; padding: 0; display: flex; flex-wrap: wrap; gap: 8px; }
.lang-links a { display: inline-flex; align-items: center; min-height: 44px; padding: 0 18px; border-radius: 22px; border: 1px solid var(--outline); background: var(--bg); color: var(--ink); text-decoration: none; font-weight: 600; font-size: 15px; }
.lang-links a:hover { background: var(--card); }

/* ---- Dar ekranlar ------------------------------------------------------ */

@media (max-width: 900px) {
  .hero .wrap { grid-template-columns: 1fr; padding-top: var(--line); gap: 0; }
  .hero .note { margin-bottom: var(--line); }
  .hero .phone { width: min(290px, 100%); margin-block: 0 calc(var(--line) * 2); }
  .pillars { grid-template-columns: 1fr; }
  .features { grid-template-columns: 1fr; gap: 32px; }
  .feature-shot { position: static; order: -1; }
  .feature-shot .phone { width: min(270px, 100%); }
  .premium { grid-template-columns: 1fr; }
  .lock { grid-template-columns: 1fr; gap: 40px; }
  .lock-visual { max-width: 400px; margin-inline: auto; width: 100%; }
  .section { padding-block: 72px; }
}

/* Dar ekranda menüde yalnızca Blog kalır; Premium ve SSS sayfanın içinde zaten. */
@media (max-width: 760px) {
  .top .wrap { gap: 12px; }
  .nav a:not(.nav-blog) { display: none; }
}
@media (max-width: 359px) {
  .nav { display: none; }
  .top-actions { margin-left: auto; }
}

@media (max-width: 600px) {
  body { font-size: 16px; }
  .hero h1 { line-height: calc(var(--line) * 2); }
  .feature { padding: 16px 16px; grid-template-columns: 40px 1fr; }
  .feature h3 { font-size: 19px; }
  .faq summary { font-size: 18px; }
}

.section.flush { padding-top: 0; }
.sprite { position: absolute; width: 0; height: 0; overflow: hidden; }

/* ---- Üst çubuğun yuvarlak düğmeleri: tema (aydınlıkta ay, karanlıkta güneş) ve dil ---- */

.icon-btn {
  width: 44px;
  height: 44px;
  border: 0;
  border-radius: 50%;
  background: transparent;
  color: var(--grey);
  display: grid;
  place-items: center;
  cursor: pointer;
  flex: none;
  transition: background .15s, color .15s;
}
.icon-btn:hover { background: var(--card); color: var(--ink); }
.icon-btn svg { width: 24px; height: 24px; }
.theme-toggle .i-sun { display: none; }
:root[data-theme="dark"] .theme-toggle .i-sun { display: block; }
:root[data-theme="dark"] .theme-toggle .i-moon { display: none; }
@media (prefers-color-scheme: dark) {
  :root:not([data-theme="light"]) .theme-toggle .i-sun { display: block; }
  :root:not([data-theme="light"]) .theme-toggle .i-moon { display: none; }
}

/* Temaya göre görsel: karanlıkta telefon da uygulamanın gece modunu gösterir. */
.only-dark { display: none !important; }
:root[data-theme="dark"] .only-dark { display: block !important; }
:root[data-theme="dark"] .only-light { display: none !important; }
@media (prefers-color-scheme: dark) {
  :root:not([data-theme="light"]) .only-dark { display: block !important; }
  :root:not([data-theme="light"]) .only-light { display: none !important; }
}

/* ---- Google Play rozeti ----
 * Google'ın her dildeki resmî rozeti, değiştirilmeden (rozet kuralları bunu istiyor).
 * Tek sürümü var: siyah, ince gri çerçeveli; iki temada da okunuyor.
 * Dosyalardaki şeffaf kenar boşluğu kırpıldı (dillerde farklıydı: İngilizcede
 * 41px, ötekilerde 29px). Böylece her rozet iki çizgi aralığını (64px) tam
 * dolduruyor: üst kenarı bir çizgide, alt kenarı iki aralık aşağıdaki çizgide.
 */
.play-badge { display: inline-block; line-height: 0; flex: none; transition: transform .15s; }
.play-badge:active { transform: scale(.98); }
.play-badge img { height: calc(var(--line) * 2); width: auto; }

/* Rozetin yanındaki kapalı beta notu: iki satır, rozetle aynı yükseklikte (64px). */
.beta { margin: 0; font-size: 14.5px; line-height: var(--line); color: var(--grey); }
.beta strong { color: var(--ink); font-weight: 600; }
.beta a { font-weight: 600; }

/* Türkçe dışındaki dillerde: uygulamanın şimdilik yalnızca Türkçe olduğu notu. */
.app-lang { display: flex; gap: 8px; margin: var(--line) 0 0; font-size: 14.5px; line-height: var(--line); color: var(--grey); max-width: 36em; }
.app-lang svg { width: 18px; height: 18px; flex: none; margin-top: 7px; color: var(--clay); }

/* ---- Yan reklamlar (AdSense) ----
 * Sayfanın iki yanında dikey kutular; yalnızca içeriğe ve kâğıdın kenar
 * çizgisine değmeyecek kadar geniş ekranda. 1600px'te 160×600, 1880px'te 300×600.
 * Kutu, iki yandaki boşluğun ortasında, üst çubuğun altında dikeyde ortalı.
 * Medya sorgusu ads.js'tekiyle aynı olmalı.
 */
.ad-rail { display: none; }
@media (min-width: 1600px) and (min-height: 720px) {
  .ad-rail {
    --ad-w: 160px;
    display: block;
    position: fixed;
    z-index: 4;
    top: calc(68px + max(24px, (100vh - 68px - 624px) / 2));
    width: var(--ad-w);
  }
  .ad-left { left: calc((100vw - 1120px) / 4 - 24px - var(--ad-w) / 2); }
  .ad-right { right: calc((100vw - 1120px) / 4 - 24px - var(--ad-w) / 2); }
}
@media (min-width: 1880px) and (min-height: 720px) {
  .ad-rail { --ad-w: 300px; }
}
.ad-label { margin: 0 0 6px; font-size: 11px; font-weight: 600; line-height: 18px; letter-spacing: .14em; text-transform: uppercase; color: var(--grey); text-align: center; }
.ad-rail ins.adsbygoogle { display: block; width: var(--ad-w); height: 600px; }
/* Reklam gelmezse kutu da etiket de kaybolur. */
.ad-rail:has(ins[data-ad-status="unfilled"]) { display: none; }

/* ---- İletişim formu (uygulamadaki Destek ekranının web hâli) ---------- */

.contact { display: grid; gap: 0; margin-top: 8px; }
.field-label {
  display: block;
  font-size: 13px;
  font-weight: 600;
  letter-spacing: .14em;
  text-transform: uppercase;
  color: var(--grey);
  margin: 24px 0 10px;
  padding: 0;
}
.topics { border: 0; margin: 0; padding: 0; display: flex; flex-wrap: wrap; gap: 8px; }
.topics legend { float: left; width: 100%; margin-top: 0; }
.chip { position: relative; cursor: pointer; }
.chip input { position: absolute; opacity: 0; width: 1px; height: 1px; }
.chip span {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  min-height: 44px;
  padding: 0 18px;
  border-radius: 22px;
  border: 1px solid var(--outline);
  background: var(--bg);
  font-size: 16px;
  transition: background .15s, color .15s;
}
.chip span svg { width: 16px; height: 16px; display: none; fill: none; stroke: currentColor; stroke-width: 2.4; stroke-linecap: round; stroke-linejoin: round; }
.chip input:checked + span { background: var(--accent); color: var(--on-accent); border-color: var(--accent); padding-left: 12px; font-weight: 600; }
.chip input:checked + span svg { display: block; }
.chip input:focus-visible + span { outline: 2px solid var(--accent); outline-offset: 3px; }

.field {
  width: 100%;
  min-height: 52px;
  padding: 0 16px;
  border-radius: 14px;
  border: 1px solid var(--outline);
  background: var(--bg);
  color: var(--ink);
  font: inherit;
}
.field:focus, .ruled-field:focus-within { outline: none; box-shadow: 0 0 0 2px var(--accent); }

/* Mesaj alanı: günlüğün çizgili kâğıdı, sol kenar çizgisiyle. */
.ruled-field {
  position: relative;
  border-radius: 16px;
  border: 1px solid var(--outline);
  background-color: var(--bg);
  background-image: repeating-linear-gradient(to bottom, transparent 0, transparent 27px, var(--rule) 27px, var(--rule) 28px);
  background-position: 0 12px;
  overflow: hidden;
}
.ruled-field::before { content: ""; position: absolute; left: 30px; top: 0; bottom: 0; width: 1.5px; background: var(--margin); }
.ruled-field textarea {
  display: block;
  width: 100%;
  min-height: 200px;
  resize: vertical;
  border: 0;
  background: transparent;
  color: var(--ink);
  font: inherit;
  font-size: 16px;
  line-height: 28px;
  padding: 12px 16px 32px 44px;
  outline: none;
}
.ruled-field .counter { position: absolute; right: 14px; bottom: 8px; font-size: 12.5px; color: var(--grey); }

.trap { position: absolute; left: -9999px; width: 1px; height: 1px; overflow: hidden; }

.form-error {
  display: flex;
  gap: 12px;
  margin-top: 20px;
  padding: 14px 16px;
  border-radius: 14px;
  background: var(--error-soft);
  color: var(--on-error-soft);
  font-size: 15px;
  line-height: 1.5;
}
.form-error[hidden] { display: none; }
.form-error svg { width: 20px; height: 20px; flex: none; margin-top: 2px; fill: none; stroke: var(--error); stroke-width: 2; stroke-linecap: round; }
.form-error strong { display: block; }

.btn.send { justify-content: center; margin-top: 24px; min-height: 52px; border-radius: 14px; border: 0; font: inherit; font-weight: 600; cursor: pointer; }
.btn.send svg { fill: none; stroke: currentColor; stroke-width: 1.9; stroke-linejoin: round; }
.btn.send:disabled { opacity: .6; cursor: default; }
.doc .form-note { font-size: 14px; color: var(--grey); text-align: center; margin: 12px 0 0; }

.sent { text-align: center; padding: 48px 0 24px; outline: none; }
.sent[hidden] { display: none; }
.sent-icon { width: 72px; height: 72px; border-radius: 22px; background: var(--accent-soft); display: grid; place-items: center; margin: 0 auto 22px; }
.sent-icon svg { width: 34px; height: 34px; fill: none; stroke: var(--accent); stroke-width: 2; stroke-linecap: round; stroke-linejoin: round; }
.doc .sent-title { font-family: "Lora", Georgia, serif; font-size: clamp(34px, 5vw, 48px); font-weight: 600; letter-spacing: -0.01em; text-transform: none; color: var(--ink); margin: 0; }
.sent p { color: var(--grey); }
.sent p strong { color: var(--ink); font-weight: 600; }
.sent .btn { margin-top: 12px; }
/* Yanıtlar Outlook'ta gereksiz kutusuna düşebiliyor; kullanıcıya hatırlatma. */
.doc .sent-hint { font-size: 14px; margin-top: -4px; }

/* ---- Galeri: mağaza görselleri, oklarla kayan yatay şerit ---- */
.carousel { position: relative; }
.gallery {
  list-style: none;
  margin: 0;
  padding: 8px 2px 56px;
  display: flex;
  gap: 24px;
  overflow-x: auto;
  scroll-snap-type: x mandatory;
  scroll-behavior: smooth;
  scrollbar-width: none;
  outline-offset: 6px;
}
.gallery::-webkit-scrollbar { display: none; }
/* Masaüstünde 3, tablette 2, telefonda 1 tam görsel; oran 9:16 sabit. */
.gallery li { flex: 0 0 calc((100% - 48px) / 3); scroll-snap-align: start; }
.gallery img {
  width: 100%;
  height: auto;
  aspect-ratio: 9 / 16;
  display: block;
  border-radius: 22px;
  box-shadow: 0 18px 40px rgba(44, 38, 31, .16), 0 4px 10px rgba(44, 38, 31, .08);
}
.carousel-btn {
  position: absolute;
  top: calc(50% - 28px);
  transform: translateY(-50%);
  z-index: 2;
  width: 52px;
  height: 52px;
  border-radius: 50%;
  border: 1px solid var(--outline);
  background: var(--paper);
  color: var(--ink);
  display: grid;
  place-items: center;
  cursor: pointer;
  box-shadow: 0 8px 20px rgba(44, 38, 31, .16);
  transition: opacity .2s, background .15s;
}
.carousel-btn:hover { background: var(--card); }
.carousel-btn svg { width: 24px; height: 24px; fill: none; stroke: currentColor; stroke-width: 2; stroke-linecap: round; stroke-linejoin: round; }
.carousel-btn.prev { left: -26px; }
.carousel-btn.next { right: -26px; }
.carousel-btn:disabled { opacity: 0; pointer-events: none; }
@media (max-width: 900px) {
  .gallery li { flex-basis: calc((100% - 24px) / 2); }
}
@media (max-width: 600px) {
  .gallery li { flex-basis: 78%; }
  .carousel-btn { width: 44px; height: 44px; }
  .carousel-btn.prev { left: -6px; }
  .carousel-btn.next { right: -6px; }
}
/* Oklarla kayarken (JS animasyonu) snap ve tarayıcının yumuşak kaydırması devre dışı. */
.gallery.gliding { scroll-snap-type: none; scroll-behavior: auto; }
@media (prefers-reduced-motion: reduce) { .gallery { scroll-behavior: auto; } }

/* ---- Blog (blog.diaryonce.com; aynı styles.css kopyalanıyor) ---------- */

.brand-tag { margin-left: 2px; padding: 2px 9px; border-radius: 999px; background: var(--accent-soft); color: var(--accent); font-family: "Work Sans", system-ui, sans-serif; font-size: 12.5px; font-weight: 600; letter-spacing: .06em; text-transform: uppercase; }
.nav a[aria-current="page"] { color: var(--ink); }

/* Blog başı: ana sayfanın çizgili kâğıdı; satırlar 32px'lik çizgilere oturuyor. */
.blog-hero .wrap { padding-block: calc(var(--line) * 2); }
.blog-hero .label { line-height: var(--line); margin: 0; }
.blog-hero h1 { font-size: clamp(40px, 5.6vw, 64px); line-height: calc(var(--line) * 3); letter-spacing: -0.02em; }
.blog-hero .lead { font-size: clamp(18px, 2vw, 21px); line-height: var(--line); color: var(--grey); max-width: 34em; margin: 0; }
@media (max-width: 600px) { .blog-hero h1 { line-height: calc(var(--line) * 2); } }

.blog-posts { padding-block: 64px 96px; }
.post-list { list-style: none; margin: 0; padding: 0; display: grid; grid-template-columns: repeat(2, 1fr); gap: 16px; }
@media (max-width: 760px) { .post-list { grid-template-columns: 1fr; } }
.post-card a { display: flex; flex-direction: column; height: 100%; padding: 28px; border-radius: var(--radius-card); background: var(--card); color: var(--ink); text-decoration: none; transition: background .2s; }
.post-card a:hover { background: var(--card-high); color: var(--ink); }
.post-card .meta { margin: 0 0 10px; font-size: 14px; color: var(--grey); display: flex; flex-wrap: wrap; gap: 4px 10px; align-items: center; }
.post-card h2 { font-size: 24px; }
.post-card p { color: var(--grey); margin: 10px 0 18px; font-size: 16px; }
.post-more { margin-top: auto; font-weight: 600; font-size: 15px; color: var(--accent); }
.post-lang { padding: 1px 8px; border-radius: 999px; background: var(--accent-soft); color: var(--accent); font-size: 12px; font-weight: 600; }
.post-empty { margin: 0; padding: 40px 28px; border-radius: var(--radius-card); background: var(--card); color: var(--grey); text-align: center; font-family: "Lora", Georgia, serif; font-size: 22px; }

/* Yazı: metin sayfalarındaki kâğıt; ara başlıklar burada gerçek başlık. */
.post .label { margin: 0 0 12px; }
.post .label a { color: var(--grey); text-decoration: none; }
.post .label a:hover { color: var(--ink); }
.post h1 { font-size: clamp(34px, 5vw, 48px); }
.doc .post h2 { font-family: "Lora", Georgia, serif; font-size: clamp(24px, 3vw, 30px); font-weight: 600; letter-spacing: -0.01em; text-transform: none; color: var(--ink); margin: 44px 0 12px; }
.post h3 { font-size: 22px; margin: 32px 0 8px; }
.post h4 { font-size: 19px; margin: 28px 0 6px; }
.post p, .post li { font-size: 18px; line-height: 1.7; }
.post blockquote { margin: 28px 0; padding: 4px 0 4px 22px; border-left: 3px solid var(--clay); color: var(--grey); font-family: "Lora", Georgia, serif; font-size: 20px; }
.post blockquote p { font-size: inherit; }
.post hr { border: 0; border-top: 1px solid var(--outline); margin: 40px 0; }
.post code { font-size: .9em; padding: 2px 6px; border-radius: 6px; background: var(--card); }
.post-figure { margin: 32px 0; }
.post-figure img { width: 100%; height: auto; border-radius: var(--radius-field); }
.post-figure figcaption { margin-top: 10px; font-size: 14.5px; color: var(--grey); text-align: center; }
.doc:has(.post) { padding-bottom: 64px; }

/* Blog tabloları: kâğıt üstünde ince çizgiler; dar ekranda yana kayar. */
.post-table { margin: 28px 0; overflow-x: auto; border: 1px solid var(--outline); border-radius: var(--radius-field); }
.post-table table { width: 100%; border-collapse: collapse; font-size: 16px; line-height: 1.5; }
.post-table th, .post-table td { padding: 12px 16px; text-align: left; vertical-align: top; border-bottom: 1px solid var(--outline); }
.post-table thead th { background: var(--card); font-size: 13px; font-weight: 600; letter-spacing: .08em; text-transform: uppercase; color: var(--grey); }
.post-table tbody tr:last-child td { border-bottom: 0; }
.post-table td:first-child { color: var(--ink); }
.post-table td { color: var(--grey); }
@media (max-width: 600px) { .post-table table { min-width: 520px; } }
