/* letterbird.me — uygulamanın renkleri ve yazı tipleriyle (Inter arayüz, Lora başlık/mektup, Caveat el yazısı). */
:root {
  --cream50: #FBF8F1;
  --cream100: #F5EFE2;
  --cream200: #E9E0CC;
  --paper50: #FFFCF5;
  --blue100: #E3EBFE;
  --blue200: #C7D6FB;
  --blue400: #6F94F2;
  --blue500: #2F6FED;
  --blue700: #1A46A6;
  --ink900: #1B2440;
  --ink700: #3C4767;
  --ink500: #667089;
  --ink300: #A9AFC2;
  --ink100: #E8EAF1;
  --green500: #2E9E6B;
  --error: #D64545;
  --shadow: 0 8px 24px rgba(27, 36, 64, 0.12);
  --radius: 18px;
  --ui: 'Inter', system-ui, -apple-system, 'Segoe UI', Roboto, sans-serif;
  --serif: 'Lora', Georgia, serif;
  --hand: 'Caveat', 'Segoe Script', cursive;
}

* { box-sizing: border-box; }
html, body { margin: 0; }
body {
  background: var(--cream50);
  color: var(--ink900);
  font: 16px/1.5 var(--ui);
  -webkit-font-smoothing: antialiased;
  min-height: 100vh;
  display: flex;
  flex-direction: column;
}
a { color: var(--blue700); }
button, input, textarea { font: inherit; color: inherit; }
img { max-width: 100%; display: block; }

.wrap { width: 100%; max-width: 620px; margin: 0 auto; padding: 0 16px; }
main.wrap { flex: 1; padding-top: 12px; padding-bottom: 48px; }

/* üst ve alt çubuk */
.topbar { padding: 14px 0; }
.topbar-inner { display: flex; align-items: center; justify-content: space-between; }
.brand { display: flex; align-items: center; gap: 8px; text-decoration: none; color: var(--ink900);
  font: 600 20px/1 var(--serif); }
.brand img { height: 40px; width: auto; display: block; }
.getapp { font-weight: 600; font-size: 14px; text-decoration: none; }
.footer { padding: 20px 0 28px; color: var(--ink500); font-size: 13px; }
.footer-inner { display: flex; gap: 16px; flex-wrap: wrap; }
.footer a { color: var(--ink500); }

/* yazı */
h1 { font: 600 clamp(30px, 7vw, 42px)/1.15 var(--serif); margin: 18px 0 10px; letter-spacing: -0.01em; }
h2 { font: 600 22px/1.3 var(--serif); margin: 0 0 6px; }
.lead { color: var(--ink700); font-size: 17px; margin: 0 0 24px; }
.muted { color: var(--ink500); }
.small { font-size: 13px; }
.label { font-weight: 600; font-size: 14px; margin: 0 0 8px; }

/* düğmeler */
.btn { display: inline-flex; align-items: center; justify-content: center; gap: 8px; width: 100%;
  min-height: 52px; border: 0; border-radius: 26px; background: var(--blue400); color: var(--ink900);
  font-weight: 600; font-size: 16px; cursor: pointer; text-decoration: none; transition: background .15s, transform .05s; }
.btn:hover:not(:disabled) { background: #5f87ee; }
.btn:active:not(:disabled) { transform: translateY(1px); }
.btn:disabled { background: rgba(111, 148, 242, .45); color: rgba(27, 36, 64, .45); cursor: not-allowed; }
.btn:focus-visible, .link:focus-visible, .choice:focus-visible, .swatch:focus-visible, .chip:focus-visible,
.thumb:focus-visible { outline: 3px solid var(--blue500); outline-offset: 2px; }
.link { background: none; border: 0; padding: 8px 0; color: var(--blue700); font-weight: 600; cursor: pointer; }
.spinner { width: 18px; height: 18px; border: 2px solid rgba(27,36,64,.25); border-top-color: var(--ink900);
  border-radius: 50%; animation: spin .8s linear infinite; }
@keyframes spin { to { transform: rotate(360deg); } }

/* giriş alanı */
.idfield { display: flex; align-items: center; background: #fff; border: 1.5px solid var(--cream200);
  border-radius: 16px; padding: 0 14px; min-height: 56px; transition: border-color .15s; }
.idfield:focus-within { border-color: var(--blue500); }
.idfield .prefix { color: var(--ink500); font-weight: 500; white-space: nowrap; }
.idfield input { flex: 1; min-width: 0; border: 0; outline: 0; background: transparent; padding: 14px 0 14px 2px;
  font-weight: 600; font-size: 17px; }
.field-help { color: var(--ink500); font-size: 13px; margin: 8px 2px 18px; }
.error { color: var(--error); font-size: 14px; margin: 8px 2px; }

/* nasıl çalışır */
.steps { list-style: none; padding: 0; margin: 36px 0 0; display: grid; gap: 12px; }
.steps li { display: flex; gap: 14px; align-items: flex-start; background: #fff; border: 1px solid var(--cream200);
  border-radius: var(--radius); padding: 14px 16px; }
.steps .num { flex: none; width: 30px; height: 30px; border-radius: 50%; background: var(--blue100);
  color: var(--blue700); display: grid; place-items: center; font-weight: 600; }
.steps b { display: block; font-weight: 600; }

/* bilgi notu */
.notice { display: flex; gap: 10px; align-items: flex-start; background: var(--blue100); color: var(--ink700);
  border-radius: 12px; padding: 12px 14px; font-size: 14px; margin: 16px 0; }
.notice svg { flex: none; margin-top: 1px; }
.notice.warn { background: #FDE6DE; }

/* mektup mu kartpostal mı */
.choices { display: grid; gap: 12px; margin: 18px 0 8px; }
@media (min-width: 540px) { .choices { grid-template-columns: 1fr 1fr; } }
.choice { text-align: left; background: #fff; border: 1.5px solid var(--cream200); border-radius: var(--radius);
  padding: 16px; cursor: pointer; display: flex; flex-direction: column; gap: 10px; transition: border-color .15s, box-shadow .15s; }
.choice:hover:not(:disabled) { border-color: var(--blue500); box-shadow: var(--shadow); }
.choice:disabled { cursor: not-allowed; opacity: .55; }
.choice .art { aspect-ratio: 3 / 2; border-radius: 10px; background: var(--cream100) center / cover no-repeat; }
.choice b { font: 600 19px/1.2 var(--serif); }
.choice .why { color: var(--error); font-size: 13px; }

/* başlık satırı (adımlar) */
.stepbar { display: flex; align-items: center; justify-content: space-between; gap: 8px; margin: 6px 0 14px; }
.stepbar .to { font: 600 20px/1.2 var(--serif); overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.dots { display: flex; gap: 6px; flex: none; }
.dots span { width: 26px; height: 5px; border-radius: 3px; background: var(--ink100); }
.dots span.on { background: var(--blue500); }

/* mektup kâğıdı */
.paper { position: relative; border-radius: 20px; border: 1px solid var(--cream200); box-shadow: var(--shadow);
  background: var(--paper50) center / cover no-repeat; }
.paper textarea { display: block; width: 100%; min-height: 360px; resize: vertical; border: 0; outline: 0;
  background: transparent; padding: 22px; font-size: 17px; line-height: 1.65; }
.paper textarea::placeholder { opacity: .65; color: inherit; }
.counter { display: flex; justify-content: space-between; gap: 12px; font-size: 13px; color: var(--ink500); margin: 8px 2px 0; }
.counter .ok { color: var(--green500); font-weight: 600; }
.counter .bad { color: var(--error); font-weight: 600; }

/* seçiciler */
.picker { margin-top: 18px; }
.row { display: flex; gap: 10px; overflow-x: auto; padding: 4px 2px 8px; scrollbar-width: thin; }
.thumb { flex: none; width: 76px; height: 76px; border-radius: 12px; border: 2px solid var(--cream200);
  background: var(--cream100) center / cover no-repeat; cursor: pointer; padding: 0; }
.thumb.wide { width: 110px; height: 68px; }
.thumb.contain { background-size: contain; background-color: #fff; }
.thumb[aria-pressed="true"] { border-color: var(--blue500); box-shadow: 0 0 0 2px var(--blue200); }
.chip { flex: none; min-width: 64px; height: 48px; padding: 0 14px; border-radius: 12px; border: 2px solid var(--cream200);
  background: #fff; cursor: pointer; font-size: 20px; }
.chip[aria-pressed="true"] { border-color: var(--blue500); background: var(--blue100); }
.swatch { flex: none; width: 40px; height: 40px; border-radius: 50%; border: 3px solid #fff;
  box-shadow: 0 0 0 1px var(--cream200); cursor: pointer; padding: 0; }
.swatch[aria-pressed="true"] { box-shadow: 0 0 0 3px var(--blue500); }

/* zarf önizlemesi (uygulamadaki EnvelopePreview ile aynı oranlar) */
.envelope { position: relative; width: 100%; max-width: 380px; margin: 4px auto 0; aspect-ratio: 12 / 7; container-type: inline-size; }
.envelope .env { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: fill; filter: drop-shadow(0 8px 18px rgba(27,36,64,.15)); }
.envelope .to { position: absolute; left: 6cqw; top: 7cqw; right: 30cqw; text-align: left;
  font: 600 max(12px, 3.8cqw)/1.3 var(--serif); color: #2A2F45; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.envelope .stamp { position: absolute; right: 5.5%; top: 6%; width: 18%; }

/* kartpostal (uygulamadaki PostcardBack ile aynı yerleşim) */
.postcard { position: relative; width: 100%; aspect-ratio: 3 / 2; border-radius: 6px; background: #FCFBF8;
  box-shadow: var(--shadow); display: flex; padding: 3%; container-type: inline-size; }
.postcard .msg { flex: 62; padding-right: 3%; display: flex; flex-direction: column; }
.postcard .msg textarea, .postcard .msg .text { flex: 1; width: 100%; border: 0; outline: 0; resize: none; background: transparent;
  font-size: max(22px, 6.6cqw); line-height: 1.25; padding: 0; overflow: hidden; }
.postcard .msg textarea::placeholder { opacity: .5; color: inherit; }
.postcard .line { width: 1px; background: #55565C; }
.postcard .addr { flex: 38; padding-left: 3%; display: flex; flex-direction: column; }
.postcard .stampbox { align-self: flex-end; width: 38%; aspect-ratio: 88 / 110; border: 1px dashed #55565C;
  background: center / contain no-repeat; padding: 0; }
button.stampbox { cursor: pointer; background-color: transparent; }
button.stampbox:focus-visible { outline: 3px solid var(--blue500); outline-offset: 2px; }
.postcard .stampbox.filled { border: 0; }
.postcard .spacer { flex: 1; }
.postcard .aline { border-bottom: 1px solid #55565C; min-height: 1.6em; margin-top: 7%; text-align: left;
  font: 500 clamp(13px, 4cqw, 24px)/1.2 var(--hand); color: #2A2F45; overflow: hidden; white-space: nowrap; text-overflow: ellipsis; }
.pcfront { width: 100%; aspect-ratio: 3 / 2; border-radius: 6px; box-shadow: var(--shadow); background: var(--cream100) center / cover no-repeat; }
.pcpair { display: grid; gap: 14px; }
@media (min-width: 560px) { .pcpair { grid-template-columns: 1fr 1fr; } }

.actions { margin-top: 22px; display: grid; gap: 6px; }

/* gönderildi */
.done { text-align: center; padding-top: 12px; }
.done .envelope, .done .pcfront { animation: fly 1.4s ease-out both; }
@keyframes fly { 0% { transform: translateY(0) rotate(0); opacity: 1; }
  60% { transform: translateY(-10px) rotate(-2deg); opacity: 1; } 100% { transform: translateY(0) rotate(0); opacity: 1; } }
.done h1 { margin-top: 26px; }

.loading { display: grid; place-items: center; min-height: 260px; }
.loading .spinner { width: 28px; height: 28px; border-width: 3px; border-top-color: var(--blue500); }

/* ================================================================== geniş yerleşim (masaüstü) */
/* Sayfa türüne göre genişlik: ana sayfa ve yazma/seçme sayfaları geniş, diğerleri dar ve ortalı. */
.wrap { max-width: 1120px; }
main.wrap > * { max-width: 620px; margin-left: auto; margin-right: auto; }
body[data-page="home"] main.wrap > *, body[data-page="write"] main.wrap > *, body[data-page="style"] main.wrap > * { max-width: none; }
body[data-page="choose"] main.wrap > * { max-width: 760px; }

/* yazma ve seçme: solda yüzey, sağda seçenekler (telefonda alt alta) */
.compose { display: grid; grid-template-columns: minmax(0, 1fr); gap: 8px 36px; align-items: start; }
.compose > * { min-width: 0; }
.compose-side .picker:first-child { margin-top: 18px; }
@media (min-width: 960px) {
  .compose { grid-template-columns: minmax(0, 1fr) 340px; }
  .compose-side { position: sticky; top: 16px; }
  .compose-side .picker:first-child { margin-top: 0; }
  .compose-side .row { flex-wrap: wrap; overflow: visible; }
  .stepbar { margin-top: 10px; }
}
.compose-main .postcard { max-width: 760px; }
.paper textarea { min-height: max(60vh, 380px); }
@media (min-width: 960px) { .paper textarea { min-height: max(calc(100vh - 230px), 520px); font-size: 18px; padding: 30px 34px; } }
.saved { font-size: 12px; color: var(--ink300); margin: 4px 2px 0; min-height: 16px; }
.preview-box { display: grid; place-items: center; padding: 24px 0; }
@media (min-width: 960px) { .preview-box { min-height: 420px; background: #fff; border: 1px solid var(--cream200); border-radius: 24px; padding: 40px; }
  .preview-box .envelope { max-width: 520px; } }
/* Kartpostal çifti (ön yüz + arka yüz): ortalayan ızgarada 0 genişliğe sıkışmasın (ön yüz görünmüyordu). */
.preview-box .pcpair { width: 100%; max-width: 760px; }
/* Kartpostal yazarken: düğme kartpostalın altında, pul listesi kısa (kaydırmalı) */
.compose-main .actions.under { margin-top: 14px; display: grid; }
#stamp-picker .row { max-height: 236px; overflow-y: auto; align-content: start; flex-wrap: wrap; }

/* mektup mu kartpostal mı: zarf kırpılmadan görünür */
.choice .art.contain { background-size: contain; background-color: transparent; }

/* ================================================================== ana sayfa: geniş, hareketli görsel */
.hero { display: grid; gap: 8px 48px; align-items: center; overflow-x: clip; }
.hero > * { min-width: 0; }
@media (min-width: 900px) { .hero { grid-template-columns: minmax(0, 1fr) minmax(0, 1fr); min-height: 520px; } }
.hero-text { max-width: 560px; }
.hero-art { position: relative; height: 220px; margin: 0 auto; width: 100%; max-width: 520px; }
@media (min-width: 900px) { .hero-art { height: 460px; order: 2; } }
.hero-art > * { position: absolute; }
.hero-art .h-glow { inset: 8% 6%; border-radius: 50%; background: radial-gradient(closest-side, var(--blue100), transparent); }
.hero-art .h-card { width: 46%; aspect-ratio: 3 / 2; right: 4%; top: 6%; border-radius: 6px; box-shadow: var(--shadow);
  background: var(--cream100) center / cover no-repeat; animation: floatA 7s ease-in-out infinite; }
.hero-art .h-letter { width: 34%; aspect-ratio: 5 / 6; left: 6%; top: 10%; border-radius: 4px; background: var(--paper50) center / cover no-repeat;
  box-shadow: var(--shadow); padding: 5% 6%; display: grid; align-content: start; gap: 9%; animation: floatB 8s ease-in-out infinite; }
.hero-art .h-letter i { display: block; height: 3px; border-radius: 2px; background: rgba(27, 36, 64, .15); }
.hero-art .h-letter i:nth-child(4n) { width: 55%; }
.hero-art .h-env { width: 62%; aspect-ratio: 12 / 7; left: 18%; bottom: 8%; filter: drop-shadow(0 16px 24px rgba(27, 36, 64, .18)); animation: floatC 6s ease-in-out infinite; }
.hero-art .h-env > img { position: absolute; inset: 0; width: 100%; height: 100%; }
.hero-art .h-env > .h-stamp { inset: auto; right: 5.5%; top: 6%; width: 18%; height: auto; }
.hero-art .h-trail { left: 0; top: 40%; width: 100%; height: 40%; opacity: .5; }
@keyframes floatA { 0%, 100% { transform: translateY(0) rotate(6deg); } 50% { transform: translateY(-12px) rotate(3deg); } }
@keyframes floatB { 0%, 100% { transform: translateY(0) rotate(-7deg); } 50% { transform: translateY(10px) rotate(-4deg); } }
@keyframes floatC { 0%, 100% { transform: translateY(0) rotate(-3deg); } 50% { transform: translateY(-8px) rotate(-1deg); } }
@keyframes stampIn { 0%, 100% { transform: translateY(0) rotate(8deg); } 50% { transform: translateY(-8px) rotate(4deg); } }
.steps { margin-top: 28px; }
@media (min-width: 900px) { body[data-page="home"] .steps { grid-template-columns: repeat(3, 1fr); margin-top: 12px; } }

/* ================================================================== gönderildi: mektup zarfa girer (uygulamadaki animasyon) */
/* Sahne 300x360 px; zaman çizelgesi 3,4 sn: kâğıt gelir (0-0,3) → ikiye katlanır (0,26-0,86) → zarf gelir (0,7-1,06) →
   kâğıt zarfa girer (1,1-1,66) → kapak kapanır (1,66-1,98) → zarf döner (1,98-2,38) → pul yapışır (2,38-2,64) → yola çıkar (2,8-3,4). */
.stage-wrap { width: min(300px, 100%); margin: 0 auto; }
.stage { position: relative; width: 300px; height: 360px; transform-origin: top left; }
.stage .s-flap-open { left: 0; top: 67px; width: 300px; height: 105px; clip-path: polygon(0 100%, 100% 100%, 50% 0);
  background: linear-gradient(to top, #F5EEDD, #E3D6BA); animation: sFlapOpen 3.4s linear both; }
.stage > div { position: absolute; }
.stage .s-paper { left: 18px; top: 0; width: 264px; height: 300px; perspective: 900px; animation: sPaper 3.4s ease-in-out both; }
.stage .half { position: absolute; left: 0; width: 264px; height: 150px; }
.stage .half.top { top: 0; }
.stage .half.bottom { top: 150px; transform-origin: top center; transform-style: preserve-3d; animation: sFold 3.4s ease-in-out both; }
.stage .face { position: absolute; inset: 0; background: #FFFCF5 center / 264px 300px no-repeat; backface-visibility: hidden;
  box-shadow: 0 3px 10px rgba(0, 0, 0, .14); }
.stage .half.top .face { background-position: top; }
.stage .half.bottom .face { background-position: bottom; }
.stage .face.back { transform: rotateX(180deg); }
.stage .lines { position: absolute; inset: 22px 22px 0; display: grid; align-content: start; gap: 12px; }
.stage .lines i { display: block; height: 4px; background: rgba(27, 36, 64, .14); }
.stage .lines i.short { width: 120px; }
.stage .s-env { left: 0; top: 172px; width: 300px; height: 185px; perspective: 1000px; animation: sEnv 3.4s both; }
.stage .s-flipper { position: absolute; inset: 0; transform-style: preserve-3d; animation: sFlip 3.4s ease-in-out both; }
.stage .side { position: absolute; inset: 0; background: var(--cream100) center / 100% 100% no-repeat; backface-visibility: hidden; border-radius: 4px; }
.stage .side.front { transform: rotateY(180deg); }
.stage .shade { position: absolute; inset: 0; background: rgba(40, 25, 10, .13); border-radius: 4px; }
.stage .vline { position: absolute; left: 0; top: 0; width: 300px; height: 105px; }
.stage .s-flap-close { position: absolute; left: 0; top: 0; width: 300px; height: 105px; transform-origin: top center;
  clip-path: polygon(0 0, 100% 0, 50% 100%); animation: sFlapClose 3.4s ease-in-out both; }
.stage .s-flap-close > * { position: absolute; inset: 0; }
.stage .s-flap-close .liner { background: linear-gradient(#F5EEDD, #E3D6BA); animation: sLiner 3.4s linear both; }
.stage .s-flap-close .outside { background: center top / 300px 185px no-repeat; filter: brightness(.88); animation: sOutside 3.4s linear both; }
.stage .side.front .to { position: absolute; left: 18px; top: 21px; right: 90px; font: 600 12.5px/1.3 var(--serif); color: #2A2F45;
  white-space: nowrap; overflow: hidden; text-overflow: ellipsis; text-align: left; }
.stage .side.front .stamp { position: absolute; right: 16.5px; top: 18px; width: 54px; animation: sStamp 3.4s both; }
@keyframes sPaper { 0% { opacity: 0; transform: translateY(-20px); } 8.8% { opacity: 1; transform: translateY(0); }
  32.4% { opacity: 1; transform: translateY(0); } 48.8% { opacity: 1; transform: translateY(192px); } 49%, 100% { opacity: 0; transform: translateY(192px); } }
@keyframes sFold { 0%, 7.6% { transform: rotateX(0); } 25.3%, 100% { transform: rotateX(-180deg); } }
@keyframes sFlapOpen { 0%, 20.6% { opacity: 0; transform: translateY(40px); } 31.2% { opacity: 1; transform: translateY(0); }
  48.8% { opacity: 1; } 48.9%, 100% { opacity: 0; } }
@keyframes sEnv { 0%, 20.6% { opacity: 0; transform: translateY(40px); } 31.2% { opacity: 1; transform: translateY(0); animation-timing-function: ease-in; }
  82.4% { opacity: 1; transform: translate(0, 0) rotate(0) scale(1); animation-timing-function: cubic-bezier(.55, 0, .9, .4); }
  100% { opacity: 0; transform: translate(70px, -320px) rotate(-10deg) scale(.65); } }
@keyframes sFlip { 0%, 58.2% { transform: rotateY(0); } 70%, 100% { transform: rotateY(180deg); } }
@keyframes sFlapClose { 0%, 48.7% { opacity: 0; transform: scaleY(-1); } 48.8% { opacity: 1; transform: scaleY(-1); } 58.2%, 100% { opacity: 1; transform: scaleY(1); } }
@keyframes sLiner { 0%, 53.4% { opacity: 1; } 53.5%, 100% { opacity: 0; } }
@keyframes sOutside { 0%, 53.4% { opacity: 0; } 53.5%, 100% { opacity: 1; } }
@keyframes sStamp { 0%, 70% { opacity: 0; transform: translateY(-70px) rotate(17deg) scale(1.8); animation-timing-function: cubic-bezier(.34, 1.56, .64, 1); }
  77.6%, 100% { opacity: 1; transform: none; } }
.pcstage { width: min(300px, 100%); margin: 0 auto 8px; perspective: 900px; }
.pccard { position: relative; width: 100%; aspect-ratio: 3 / 2; animation: sPcFly 3.4s both; }
.pcflip { position: absolute; inset: 0; transform-style: preserve-3d; animation: sPcFlip 3.4s ease-in-out both; }
.pcface { position: absolute; inset: 0; border-radius: 6px; backface-visibility: hidden; box-shadow: var(--shadow); }
.pcface.front { background: var(--cream100) center / cover no-repeat; }
.pcface.back { transform: rotateY(180deg); background: #FFFCF5; }
.pcface.back .pclines { position: absolute; left: 12px; right: 40%; bottom: 14px; top: 46%; display: grid; align-content: start; gap: 9px; }
.pcface.back .pclines i { display: block; height: 3px; background: rgba(27, 36, 64, .14); }
.pcface.back .pclines i.short { width: 60%; }
.pcface.back .pcto { position: absolute; left: 12px; top: 12px; font: 600 12px/1.3 var(--serif); color: #2A2F45; max-width: 52%; overflow-wrap: anywhere; }
.pcface.back .stamp { position: absolute; right: 12px; top: 12px; width: 18%; animation: sStamp 3.4s both; }
@keyframes sPcFly { 0% { opacity: 0; transform: translateY(30px); } 12%, 82.4% { opacity: 1; transform: none; animation-timing-function: cubic-bezier(.55, 0, .9, .4); }
  100% { opacity: 0; transform: translate(70px, -320px) rotate(-10deg) scale(.65); } }
@keyframes sPcFlip { 0%, 35% { transform: rotateY(0); } 52%, 100% { transform: rotateY(180deg); } }
.done.animated h1, .done.animated .lead, .done.animated .actions { animation: sText 3.4s ease-out both; }
@keyframes sText { 0%, 82% { opacity: 0; transform: translateY(8px); } 94%, 100% { opacity: 1; transform: none; } }
.done .stage-wrap + h1 { margin-top: 0; }

@media (prefers-reduced-motion: reduce) { * { animation: none !important; transition: none !important; } }

/* ---------- ana sayfa: kısa giriş, adımlar tek satır, profil kartları ---------- */
@media (min-width: 900px) {
  body[data-page="home"] .hero { min-height: 380px; }
  body[data-page="home"] .hero-art { height: 340px; }
  body[data-page="home"] .steps { grid-template-columns: repeat(3, minmax(0, 1fr)); margin-top: 20px; }
}
.pcards { margin: 44px 0 8px; min-width: 0; max-width: 100%; overflow: hidden; }
.pc-head { display: flex; align-items: flex-end; justify-content: space-between; gap: 16px; margin-bottom: 14px; }
.pc-head h2 { font: 600 26px/1.2 var(--serif); margin: 0 0 4px; }
.pc-head p { margin: 0; max-width: 560px; }
.pc-nav { display: flex; gap: 8px; flex: none; }
.pc-arrow { width: 40px; height: 40px; border-radius: 50%; border: 1px solid var(--cream200); background: #fff; font-size: 22px; line-height: 1; cursor: pointer; color: var(--ink900); }
.pc-arrow:hover { border-color: var(--blue300, #9DB6F5); }
.pc-track { display: grid; grid-auto-flow: column; grid-auto-columns: min(280px, 78vw); gap: 16px; overflow-x: auto; scroll-snap-type: x mandatory;
  padding: 4px 2px 16px; scrollbar-width: none; min-width: 0; }
.pc-track::-webkit-scrollbar { display: none; }
.pc-card { scroll-snap-align: start; text-align: left; background: #fff; border: 1px solid var(--cream200); border-radius: 18px; padding: 16px;
  display: flex; flex-direction: column; gap: 10px; cursor: pointer; font: inherit; color: inherit; box-shadow: 0 6px 16px rgba(27, 36, 64, .06);
  transition: transform .15s ease, box-shadow .15s ease; min-height: 210px; }
.pc-card:hover, .pc-card:focus-visible { transform: translateY(-3px); box-shadow: 0 12px 24px rgba(27, 36, 64, .12); }
.pc-top { display: flex; align-items: center; gap: 12px; }
.pc-av { width: 52px; height: 52px; border-radius: 50%; object-fit: cover; background: var(--blue100); flex: none; }
.pc-top.big .pc-av { width: 72px; height: 72px; }
.pc-who { display: grid; gap: 2px; min-width: 0; }
.pc-who b { font: 600 17px/1.2 var(--serif); letter-spacing: .5px; overflow: hidden; text-overflow: ellipsis; }
.pc-who .muted { font-size: 13px; }
.pc-bio { margin: 0; font-size: 14px; line-height: 1.5; color: var(--ink700, #3A4260); display: -webkit-box; -webkit-line-clamp: 3; -webkit-box-orient: vertical; overflow: hidden; }
.pc-bio.full { -webkit-line-clamp: unset; display: block; }
.pc-tags { display: flex; flex-wrap: wrap; gap: 6px; }
.pc-tag { font-size: 12px; padding: 3px 9px; border-radius: 999px; background: var(--blue100); color: #1A46A6; }
.pc-langs { font-size: 12.5px; margin-top: auto; }
.pc-dialog { border: none; border-radius: 22px; padding: 24px; width: min(440px, calc(100vw - 32px)); box-shadow: 0 30px 60px rgba(27, 36, 64, .25); }
.pc-dialog::backdrop { background: rgba(27, 36, 64, .35); }
.pc-dialog > * + * { margin-top: 12px; }
.pc-close { position: absolute; top: 10px; right: 12px; border: none; background: none; font-size: 26px; cursor: pointer; color: var(--ink500, #6B7390); }
.pc-dialog { position: fixed; }
.pc-answer { display: grid; gap: 2px; font-size: 14px; background: #FFFCF5; border: 1px solid var(--cream200); border-radius: 12px; padding: 10px 12px; }
.pc-answer b { font-weight: 600; font-size: 13px; }
.pc-actions { display: grid; grid-template-columns: 1fr 1fr; gap: 10px; margin-top: 18px; }
.pc-actions .btn { width: 100%; }
@media (max-width: 899px) { .pc-head { align-items: flex-start; } .pc-nav { display: none; } }
.pc-langbar { display: flex; gap: 8px; overflow-x: auto; padding: 2px 2px 12px; scrollbar-width: none; min-width: 0; }
.pc-langbar::-webkit-scrollbar { display: none; }
.pc-lang { flex: none; border: 1px solid var(--cream200); background: #fff; color: var(--ink900); border-radius: 999px; padding: 6px 14px;
  font-family: inherit; font-size: 13.5px; font-weight: 500; line-height: 1.2; cursor: pointer; }
.pc-lang[aria-pressed="true"] { background: var(--blue100); border-color: #6F94F2; color: #1A46A6; }
