/* nousworks.co/<kişi> — kartvizit QR sayfası. Fontlar: /assets/fonts (vitrinle ortak). */
@font-face { font-family: 'Quicksand'; src: url('/assets/fonts/quicksand-500.woff2') format('woff2'); font-weight: 500; font-style: normal; font-display: swap; }
@font-face { font-family: 'Quicksand'; src: url('/assets/fonts/quicksand-600.woff2') format('woff2'); font-weight: 600; font-style: normal; font-display: swap; }
@font-face { font-family: 'Quicksand'; src: url('/assets/fonts/quicksand-700.woff2') format('woff2'); font-weight: 700; font-style: normal; font-display: swap; }
@font-face { font-family: 'Primus'; src: url('/assets/fonts/primus-400-italic.woff2') format('woff2'); font-weight: 400; font-style: italic; font-display: swap; }

:root {
  --paper: #fffaef;
  --ink: #222222;
  --sun: #ff751f;
  --coral: #f45e5e;
  --muted: rgba(34, 34, 34, .66);
  --line: rgba(34, 34, 34, .14);
  --card: #fffdf7;
  --kart-koyu: #291614;      /* basılı kartın sıcak koyusu */
  --kart-krem: #fffaef;
  --quick: 'Quicksand', 'Avenir Next', 'Helvetica Neue', sans-serif;
  --primus: 'Primus', 'Quicksand', serif;
  --ease: cubic-bezier(.22, 1, .36, 1);
}

* { box-sizing: border-box; }
html, body { margin: 0; padding: 0; }
html { -webkit-text-size-adjust: 100%; }
body { padding-left: env(safe-area-inset-left); padding-right: env(safe-area-inset-right); }
a, button { touch-action: manipulation; }

body {
  min-height: 100svh;
  display: flex;
  flex-direction: column;
  background: var(--paper);
  color: var(--ink);
  font-family: var(--quick);
  font-weight: 500;
  font-size: 16px;
  line-height: 1.5;
  -webkit-font-smoothing: antialiased;
  text-rendering: optimizeLegibility;
}
::selection { background: var(--sun); color: var(--paper); }

/* zemin: kâğıt üstünde ince güneş ışığı */
body::before {
  content: "";
  position: fixed;
  inset: 0;
  z-index: 0;
  pointer-events: none;
  background:
    radial-gradient(90% 55% at 50% -12%, rgba(255, 117, 31, .16), transparent 62%),
    radial-gradient(70% 40% at 50% 108%, rgba(255, 117, 31, .07), transparent 60%);
}

/* ---------- üst çubuk ---------- */
.ust {
  position: relative;
  z-index: 1;
  width: min(100% - 40px, 460px);
  margin: 0 auto;
  padding: calc(18px + env(safe-area-inset-top)) 0 0;
  display: flex;
  align-items: center;
  justify-content: space-between;
}
.ust-logo img { display: block; width: 104px; height: auto; }
.dil { display: flex; align-items: center; gap: 6px; color: var(--muted); font-size: 12px; }
.dil button {
  position: relative;
  background: none; border: none;
  color: var(--muted); cursor: pointer; padding: 12px 8px; margin: -8px -4px;
  min-width: 40px; min-height: 44px; line-height: 1;
  font-family: var(--quick); font-weight: 600; font-size: 12px; letter-spacing: .08em;
  transition: color .2s;
}
.dil button::after {
  content: ""; position: absolute; left: 8px; right: 8px; bottom: 11px; height: 1.5px;
  background: transparent; transition: background .2s;
}
.dil button[aria-pressed="true"] { color: var(--ink); font-weight: 700; }
.dil button[aria-pressed="true"]::after { background: var(--sun); }
.dil button:hover { color: var(--ink); }

/* ---------- gövde ---------- */
.kabuk {
  position: relative;
  z-index: 1;
  flex: 1 0 auto;
  width: min(100% - 40px, 460px);
  margin: 0 auto;
  padding: 22px 0 28px;
  display: flex;
  flex-direction: column;
  align-items: center;
}

/* ---------- kart sahnesi ---------- */
.sahne { width: 100%; display: flex; flex-direction: column; align-items: center; }
.kart-sahne {
  width: min(100%, 420px);
  perspective: 1500px;
  container-type: inline-size;
}
.kart {
  position: relative;
  display: block;
  width: 100%;
  aspect-ratio: 856 / 540;          /* 85.6 × 54 mm */
  padding: 0;
  margin: 0;
  border: 0;
  background: transparent;
  font: inherit;
  color: inherit;
  cursor: pointer;
  transform-style: preserve-3d;
  transition: transform .9s var(--ease);
  -webkit-tap-highlight-color: transparent;
  outline: none;
  border-radius: 6.2cqi;
}
.kart:focus-visible { box-shadow: 0 0 0 3px var(--paper), 0 0 0 5.5px var(--sun); }
.kart.cevrildi { transform: rotateY(180deg); }
.kart.egik { transition: transform .12s linear; }
.kart.egik.cevrildi { transition: transform .9s var(--ease); }

.yuz, .yuz > span, .on-kimlik, .on-kimlik > span, .on-iletisim > span, .arka-icerik > span { display: block; }
.yuz {
  position: absolute;
  inset: 0;
  overflow: hidden;
  border-radius: 6.2cqi;
  background: var(--kart-koyu);
  color: var(--kart-krem);
  backface-visibility: hidden;
  -webkit-backface-visibility: hidden;
  transform: translateZ(0);
  box-shadow:
    0 1px 0 rgba(255, 250, 239, .06) inset,
    0 24px 50px -18px rgba(34, 34, 34, .45),
    0 8px 18px -8px rgba(34, 34, 34, .28);
  text-align: left;
}
/* kâğıt dokusu + parlama */
.yuz::before {
  content: "";
  position: absolute; inset: 0;
  background:
    linear-gradient(115deg, rgba(255, 250, 239, .07) 0%, rgba(255, 250, 239, 0) 38%, rgba(255, 250, 239, 0) 62%, rgba(255, 250, 239, .05) 100%),
    radial-gradient(120% 90% at 100% 100%, rgba(0, 0, 0, .28), transparent 60%);
  pointer-events: none;
}
.yuz.arka { transform: rotateY(180deg) translateZ(0); }

/* ön yüz: [işaret] / [ad+unvan | wordmark] / [iletişim] */
.yuz.on {
  display: flex; flex-direction: column;
  padding: 6.2cqi 6.4cqi 5.8cqi;
}
.on-mark { display: block; width: 11.5cqi; height: auto; flex: 0 0 auto; }
.yuz .on-orta {
  flex: 1 1 auto; min-height: 0;
  display: flex; align-items: center; justify-content: space-between; gap: 4cqi;
  padding: 2cqi 0 1.5cqi;
}
.on-kimlik { min-width: 0; flex: 1 1 auto; }
.on-wordmark { display: block; width: 27cqi; height: auto; flex: 0 0 auto; }
.on-ad {
  font-weight: 700;
  font-size: 4.2cqi;
  line-height: 1.12;
  letter-spacing: .03em;
  text-transform: uppercase;
  text-wrap: balance;
}
.on-unvan { margin-top: .9cqi; font-size: 3.4cqi; font-weight: 500; opacity: .88; }
.on-iletisim {
  position: relative; flex: 0 0 auto;
  padding-right: 12cqi;
  font-size: 3cqi; line-height: 1.5; opacity: .82; font-weight: 500;
}
.on-adres { font-size: 2.55cqi; opacity: .78; margin-top: .5cqi; line-height: 1.4; }
.on-nokta {
  position: absolute; right: 6.8cqi; bottom: 6.8cqi;
  width: 3.4cqi; height: 3.4cqi; border-radius: 50%; background: var(--sun);
  box-shadow: 0 0 0 1.4cqi rgba(255, 117, 31, .16);
}

/* arka yüz */
.arka-blok { position: absolute; left: 0; top: 0; width: 100%; height: 100%; }
.arka-goz { position: absolute; left: 6.4cqi; top: 7.5cqi; width: 19.5cqi; height: auto; filter: drop-shadow(0 .5cqi 1cqi rgba(0,0,0,.18)); }
/* koyu alan: logo + adres dikeyde ortalı (kart yüksekliği ≈ 63cqi) */
.yuz .arka-icerik {
  position: absolute; left: 44cqi; top: 0; bottom: 0; right: 6cqi;
  display: flex; flex-direction: column; justify-content: center; align-items: flex-start;
  gap: 3.4cqi;
}
.yuz .arka-logo { display: flex; align-items: center; gap: 3cqi; }
.arka-mark { width: 15cqi; height: auto; }
.arka-wordmark { width: 19cqi; height: auto; }
.arka-site { font-size: 3cqi; letter-spacing: .06em; font-weight: 600; opacity: .9; padding-left: .4cqi; }

.ipucu {
  margin: 16px 0 0;
  color: var(--muted);
  font-family: var(--primus);
  font-style: italic;
  font-size: 14px;
  letter-spacing: .01em;
}

/* ---------- kimlik ---------- */
.kimlik { width: 100%; text-align: center; margin-top: 22px; }
.ad {
  margin: 0;
  font-size: clamp(26px, 7.4vw, 32px);
  font-weight: 700;
  line-height: 1.12;
  letter-spacing: -.02em;
}
.unvan { margin: 6px 0 0; font-size: 16px; color: var(--ink); font-weight: 600; letter-spacing: .02em; display: flex; align-items: center; justify-content: center; gap: 8px; }
.unvan-nokta { width: 8px; height: 8px; border-radius: 50%; background: var(--sun); flex: 0 0 auto; }
.firma { margin: 6px 0 0; font-size: 12.5px; color: var(--muted); font-weight: 600; letter-spacing: .1em; text-transform: uppercase; }
.firma span:first-child { color: var(--ink); }

/* ---------- butonlar ---------- */
.butonlar { width: 100%; margin-top: 24px; display: grid; gap: 10px; }
.buton {
  display: flex; align-items: center; gap: 14px;
  min-height: 64px; padding: 13px 18px;
  border: 1.5px solid transparent; border-radius: 18px;
  color: var(--ink); text-align: left; text-decoration: none;
  transition: transform .18s var(--ease), box-shadow .18s, background .18s, border-color .18s;
}
.buton:active { transform: scale(.985); }
.buton:focus-visible { outline: none; box-shadow: 0 0 0 3px var(--paper), 0 0 0 5.5px var(--sun); }

.buton-birincil { background: var(--sun); color: var(--ink); box-shadow: 0 14px 30px -10px rgba(255, 117, 31, .5); }
.buton-birincil:hover { background: var(--ink); color: var(--paper); box-shadow: 0 14px 30px -12px rgba(34, 34, 34, .5); }
.buton-birincil .buton-alt { opacity: .78; }
.buton-birincil .buton-ok { opacity: .6; }

.buton-ikincil { background: var(--card); border-color: var(--line); }
.buton-ikincil:hover { border-color: var(--sun); transform: translateY(-1px); box-shadow: 0 10px 24px -14px rgba(34, 34, 34, .35); }

.buton-ikon {
  flex: 0 0 auto; width: 38px; height: 38px;
  display: grid; place-items: center; border-radius: 12px;
  background: rgba(34, 34, 34, .1);
}
.buton-birincil:hover .buton-ikon { background: rgba(255, 250, 239, .14); }
.buton-ikincil .buton-ikon { background: rgba(255, 117, 31, .1); color: var(--sun); }
.buton-ikincil:hover .buton-ikon { background: rgba(255, 117, 31, .16); }
.buton-ikon svg { width: 20px; height: 20px; display: block; }

.buton-metin { min-width: 0; flex: 1 1 auto; }
.buton-baslik { display: block; font-size: 16.5px; font-weight: 700; letter-spacing: -.01em; }
.buton-alt {
  display: block; margin-top: 2px;
  font-size: 12.5px; font-weight: 600; letter-spacing: .02em; opacity: .7;
  overflow-wrap: anywhere;
}
.buton-ok { flex: 0 0 auto; opacity: .45; }
.buton-ok svg { width: 18px; height: 18px; display: block; }

/* paylaş satırı */
.paylas-satir { margin: 16px 0 0; display: flex; gap: 18px; justify-content: center; flex-wrap: wrap; }
.paylas {
  display: inline-flex; align-items: center; gap: 7px;
  background: none; border: none; padding: 12px 6px; cursor: pointer;
  color: var(--muted); font-family: var(--quick); font-weight: 600; font-size: 12.5px; letter-spacing: .04em;
  border-bottom: 1.5px solid transparent;
  transition: color .2s, border-color .2s;
}
.paylas:hover { color: var(--ink); border-bottom-color: var(--sun); }
.paylas svg { width: 15px; height: 15px; }
.paylas.oldu { color: var(--sun); }
.paylas[hidden] { display: none; }

/* ---------- alt ---------- */
.alt {
  position: relative; z-index: 1;
  width: min(100% - 40px, 460px);
  margin: 0 auto;
  padding: 24px 0 calc(28px + env(safe-area-inset-bottom));
  border-top: 1px solid var(--line);
  text-align: center;
  color: var(--muted);
}
.alt img { width: 78px; height: auto; opacity: .92; }
.alt-tag { margin: 12px 0 0; font-family: var(--primus); font-style: italic; font-size: 17px; color: var(--ink); }
.alt-not { margin: 6px 0 0; font-size: 12px; letter-spacing: .04em; }

/* ---------- giriş animasyonu ---------- */
@media (prefers-reduced-motion: no-preference) {
  .sahne, .kimlik, .buton, .paylas-satir, .alt { animation: gel .8s var(--ease) backwards; }
  .kimlik { animation-delay: .12s; }
  .buton:nth-child(1) { animation-delay: .22s; }
  .buton:nth-child(2) { animation-delay: .28s; }
  .buton:nth-child(3) { animation-delay: .34s; }
  .buton:nth-child(4) { animation-delay: .40s; }
  .buton:nth-child(5) { animation-delay: .46s; }
  .buton:nth-child(6) { animation-delay: .52s; }
  .buton:nth-child(7) { animation-delay: .58s; }
  .paylas-satir { animation-delay: .64s; }
  .alt { animation-delay: .7s; }
  @keyframes gel {
    from { opacity: 0; transform: translateY(16px); }
    to { opacity: 1; transform: translateY(0); }
  }
}
@media (prefers-reduced-motion: reduce) {
  .kart, .kart.egik { transition: none; }
}

/* ---------- geniş ekran: kart solda, işlemler sağda ---------- */
@media (min-width: 900px) {
  .ust { width: min(100% - 80px, 1040px); padding-top: 28px; }
  .kabuk {
    width: min(100% - 80px, 1040px);
    display: grid;
    grid-template-columns: minmax(0, 1fr) minmax(0, 420px);
    column-gap: 72px;
    align-items: start;
    padding-top: 40px;
  }
  .sahne { grid-column: 1; grid-row: 1 / span 3; position: sticky; top: 40px; align-items: flex-start; }
  .kart-sahne { width: min(100%, 520px); }
  .kimlik { grid-column: 2; text-align: left; margin-top: 0; }
  .unvan { justify-content: flex-start; }
  .butonlar { grid-column: 2; }
  .paylas-satir { grid-column: 2; justify-content: flex-start; }
  .alt { width: min(100% - 80px, 1040px); }
}
