/* ============================================================
   ATELIER — Boutique Invitation Configurator
   Luxury design-studio aesthetic: warm cream, pastel accents,
   elegant serif typography, generous whitespace.
   ============================================================ */

:root {
  /* Surfaces — warm, low-saturation creams */
  --bg:        #F3EEE5;
  --bg-deep:   #ECE5D8;
  --surface:   #FBF8F2;
  --surface-2: #F7F2E9;

  /* Ink */
  --ink:       #38322A;
  --ink-soft:  #5C5446;
  --muted:     #918878;
  --faint:     #B6AC9B;

  /* Hairlines */
  --line:      #E4DBCB;
  --line-2:    #D8CDB8;

  /* Accents — pastel, shared chroma/lightness, varied hue.
     soft/tint derive from --accent so a single tweak cascades. */
  --accent:      oklch(0.62 0.055 38);    /* rosewood / mauve taupe */
  --accent-soft: color-mix(in srgb, var(--accent) 24%, #ffffff);
  --accent-tint: color-mix(in srgb, var(--accent) 9%, var(--surface));
  --sage:        oklch(0.74 0.045 145);
  --sage-soft:   oklch(0.92 0.028 145);
  --dusk:        oklch(0.68 0.050 290);

  /* Gold foil */
  --gold-1: #C9A24B;
  --gold-2: #F4E2A6;
  --gold-3: #B8862F;

  /* Wax */
  --wax-hi: #B85C4C;
  --wax-1: #9C4A3C;
  --wax-2: #7E342B;

  --radius:   18px;
  --radius-sm: 11px;
  --shadow-card: 0 1px 2px rgba(56,48,38,0.14), 0 26px 60px -28px rgba(56,48,38,0.45), 0 6px 18px -10px rgba(56,48,38,0.25);
  --shadow-soft: 0 14px 40px -24px rgba(56,48,38,0.40);

  --serif: 'Cormorant Garamond', Georgia, serif;
  --sans:  'Jost', 'Helvetica Neue', Arial, sans-serif;
  --script:'Pinyon Script', 'Cormorant Garamond', cursive;
}

* { box-sizing: border-box; }

html, body {
  margin: 0;
  padding: 0;
  background: var(--bg);
  color: var(--ink);
  font-family: var(--sans);
  -webkit-font-smoothing: antialiased;
  text-rendering: optimizeLegibility;
  overflow-x: clip;
  -webkit-text-size-adjust: 100%;
  text-size-adjust: 100%;
}

/* small caps utility label */
.eyebrow {
  font-family: var(--sans);
  font-weight: 400;
  font-size: 11px;
  letter-spacing: 0.32em;
  text-transform: uppercase;
  color: var(--muted);
}

/* ============================================================
   APP SHELL
   ============================================================ */
.app {
  min-height: 100vh;
  display: flex;
  flex-direction: column;
}

.topbar {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 20px 40px;
  border-bottom: 1px solid var(--line);
  background: color-mix(in srgb, var(--bg) 70%, transparent);
  backdrop-filter: blur(6px);
  position: sticky;
  top: 0;
  z-index: 30;
}
.brand { display: flex; align-items: baseline; gap: 14px; }
.brand .mark {
  font-family: var(--serif);
  font-weight: 600;
  font-size: 25px;
  letter-spacing: 0.04em;
  color: var(--ink);
}
.brand .mark em { font-style: italic; color: var(--accent); }
.brand .tag {
  font-family: var(--sans);
  font-size: 10.5px;
  letter-spacing: 0.34em;
  text-transform: uppercase;
  color: var(--faint);
}
.topbar .help {
  font-family: var(--sans);
  font-size: 11px;
  letter-spacing: 0.18em;
  text-transform: uppercase;
  color: var(--muted);
  display: flex;
  align-items: center;
  gap: 9px;
}
.topbar .help .dot { width: 6px; height: 6px; border-radius: 50%; background: var(--sage); }

.workspace {
  flex: 1;
  display: grid;
  grid-template-columns: 1.08fr 0.92fr;
  align-items: start;
  max-width: 1500px;
  width: 100%;
  margin: 0 auto;
}

/* ============================================================
   LEFT — STAGE / LIVE PREVIEW
   ============================================================ */
.stage {
  position: sticky;
  top: 61px;
  height: calc(100vh - 61px);
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  padding: 40px 48px;
  background:
    radial-gradient(120% 90% at 50% 18%, #FCF9F3 0%, var(--bg) 58%, var(--bg-deep) 100%);
  border-right: 1px solid var(--line);
  overflow: hidden;
}
.stage-caption {
  position: absolute;
  top: 30px;
  left: 0; right: 0;
  text-align: center;
}
.stage-foot {
  position: absolute;
  bottom: 26px;
  left: 0; right: 0;
  text-align: center;
  font-family: var(--serif);
  font-style: italic;
  font-size: 15px;
  color: var(--muted);
}

/* ---- custom / own design ---- */
.inv-custom {
  position: absolute;
  inset: 0;
  border-radius: 6px;
  overflow: hidden;
  background: var(--surface);
}
.inv-custom img { width: 100%; height: 100%; object-fit: cover; display: block; }

/* ---- upload control (panel) ---- */
.upload-drop {
  display: flex;
  flex-direction: column;
  align-items: center;
  text-align: center;
  gap: 6px;
  padding: 30px 20px;
  border: 1.5px dashed var(--line-2);
  border-radius: var(--radius-sm);
  background: var(--surface-2, var(--surface));
  cursor: pointer;
  transition: border-color .2s ease, background .2s ease;
}
.upload-drop:hover { border-color: var(--accent); background: var(--accent-soft); }
.upload-drop.busy { pointer-events: none; opacity: 0.7; }
.upload-drop.small { padding: 20px 16px; }
.upload-drop.small .ud-ico { width: 32px; height: 32px; font-size: 16px; margin-bottom: 2px; }
.upload-drop.small .ud-title { font-size: 15px; }
.upload-done + .field, .field + .field { margin-top: 18px; }
.ud-ico {
  width: 40px; height: 40px;
  display: flex; align-items: center; justify-content: center;
  border-radius: 50%;
  background: var(--accent-soft);
  color: var(--accent);
  font-size: 20px;
  margin-bottom: 4px;
}
.ud-title { font-family: var(--serif); font-size: 17px; color: var(--ink); }
.ud-sub { font-size: 11.5px; letter-spacing: 0.03em; color: var(--muted); }

.upload-done { display: flex; gap: 14px; align-items: center; }
.udn-thumb {
  width: 64px; height: 80px;
  flex: none;
  border-radius: 6px;
  overflow: hidden;
  border: 1px solid var(--line-2);
  background: var(--surface);
}
.udn-thumb img { width: 100%; height: 100%; object-fit: cover; display: block; }
.udn-name { font-size: 14px; color: var(--ink); font-weight: 500; word-break: break-all; }
.udn-note { font-size: 12px; color: var(--muted); margin: 3px 0 8px; }
.udn-acts { display: flex; gap: 16px; }
.udn-link {
  background: none; border: none; padding: 0; cursor: pointer;
  font-family: var(--sans); font-size: 12px; letter-spacing: 0.08em;
  text-transform: uppercase; color: var(--accent);
  transition: opacity .2s ease;
}
.udn-link:hover { opacity: 0.7; }
.udn-link.danger { color: var(--muted); }

/* ---- in-card QR (address + memories) ---- */
.inv-qr-row {
  display: flex;
  justify-content: center;
  gap: 22px;
  margin-top: 20px;
}
.inv-qr {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 6px;
}
.inv-qr img {
  width: 52px;
  height: 52px;
  image-rendering: pixelated;
  border-radius: 3px;
  background: #fff;
  padding: 2px;
  box-shadow: 0 2px 8px -4px rgba(56,48,38,0.5);
}
.inv-qr span {
  font-size: 8.5px;
  letter-spacing: 0.18em;
  text-transform: uppercase;
  color: var(--muted);
}

/* ---- QR code tag ---- */
.qr-tag {
  position: absolute;
  right: 6px;
  bottom: -10px;
  z-index: 10;
  width: 92px;
  padding: 9px 9px 7px;
  background: var(--surface);
  border: 1px solid var(--line-2);
  border-radius: 8px;
  box-shadow: 0 12px 26px -14px rgba(56,48,38,0.6);
  transform: translateY(16px) rotate(-4deg) translateZ(52px);
  opacity: 0;
  transition: opacity .45s ease, transform .55s cubic-bezier(.34,1.4,.64,1);
  pointer-events: none;
}
.qr-tag.on { opacity: 1; transform: translateY(0) rotate(-4deg) translateZ(52px); }
.qr-tag img {
  display: block;
  width: 100%;
  height: auto;
  image-rendering: pixelated;
  border-radius: 3px;
}
.qr-cap {
  text-align: center;
  font-family: var(--serif);
  font-style: italic;
  font-size: 12px;
  color: var(--ink-soft);
  margin-top: 5px;
  line-height: 1.1;
}

/* preview scene holds the layered invitation */
.scene {
  position: relative;
  width: 380px;
  height: 510px;
  perspective: 1500px;
}
.scene-3d {
  position: absolute;
  inset: 0;
  transform-style: preserve-3d;
  transition: transform .12s ease-out;
  cursor: grab;
  touch-action: none;
}
.scene-3d:active { cursor: grabbing; }
.scene-3d > * { transform-style: preserve-3d; }

/* floating group — everything except the ground shadow bobs gently */
.scene-float {
  position: absolute;
  inset: 0;
  transform-style: preserve-3d;
  animation: scenefloat 7s ease-in-out infinite;
}
.scene-float > * { transform-style: preserve-3d; }
@keyframes scenefloat {
  0%, 100% { transform: translateY(0); }
  50%      { transform: translateY(-8px); }
}
@media (prefers-reduced-motion: reduce) {
  .scene-float { animation: none; }
}
.scene-controls {
  position: absolute;
  left: 50%;
  bottom: -46px;
  transform: translateX(-50%);
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 8px;
  width: max-content;
}
.flip-btn {
  background: var(--surface);
  border: 1px solid var(--line-2);
  border-radius: 999px;
  padding: 8px 18px;
  cursor: pointer;
  font-family: var(--sans);
  font-size: 11px;
  letter-spacing: 0.16em;
  text-transform: uppercase;
  color: var(--ink-soft);
  box-shadow: var(--shadow-soft);
  transition: border-color .2s ease, color .2s ease, transform .2s ease;
}
.flip-btn:hover { border-color: var(--accent); color: var(--accent); transform: translateY(-1px); }
.scene-hint {
  position: static;
  transform: none;
  font-size: 10px;
  letter-spacing: 0.22em;
  text-transform: uppercase;
  color: var(--muted);
  opacity: 0.7;
  pointer-events: none;
}
/* ground shadow — lies flat on the floor plane so orbiting reads as real */
.scene-pedestal {
  position: absolute;
  left: 50%;
  bottom: -182px;
  width: 430px;
  height: 320px;
  transform: translateX(-50%) rotateX(90deg);
  background: radial-gradient(48% 42% at 50% 50%, rgba(56,48,38,0.32), rgba(56,48,38,0.10) 52%, transparent 74%);
  filter: blur(9px);
  z-index: 0;
}

/* ---- card thickness — stacked paper layers just behind the face ---- */
.card-under {
  position: absolute;
  inset: 0;
  border-radius: 6px;
  background: #F0E8D9;
  box-shadow: 0 16px 36px -24px rgba(56,48,38,0.35);
  /* elde katmanlanmış hissi — alt kâğıtlar milimetrik kaçık durur */
  transform: rotate(-0.7deg) translateZ(-3px);
  transition: transform .6s cubic-bezier(.22,.61,.36,1), opacity .5s ease;
}
.card-under.u2 { background: #E6DBC6; transform: rotate(0.9deg) translateZ(-6px); }
.card-under.tucked { transform: translateY(-58px) scale(0.96) rotate(-0.7deg) translateZ(-3px); }
.card-under.u2.tucked { transform: translateY(-58px) scale(0.96) rotate(0.9deg) translateZ(-6px); }

/* ---- the invitation card ---- */
.inv-card {
  position: absolute;
  inset: 0;
  border-radius: 6px;
  background: var(--surface);
  box-shadow: var(--shadow-card);
  overflow: hidden;
  transition: box-shadow .5s ease, background .5s ease, transform .6s cubic-bezier(.22,.61,.36,1);
  z-index: 2;
}
.inv-face {
  position: absolute;
  inset: 0;
  border-radius: 6px;
  overflow: hidden;
  backface-visibility: hidden;
  -webkit-backface-visibility: hidden;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
}

/* moving sheen — light sweeps across the face as the scene is rotated */
.inv-face.front::after {
  content: "";
  position: absolute;
  inset: 0;
  pointer-events: none;
  background: linear-gradient(100deg,
    transparent 22%,
    rgba(255,255,255,0.18) 46%,
    rgba(255,255,255,0.04) 55%,
    transparent 78%);
  background-size: 260% 100%;
  background-position-x: calc(50% - var(--ry, -22) * 1.4%);
  z-index: 3;
}
/* back of the paper stack — a real plane behind the under-layers,
   facing away so it's only seen when the scene orbits past 90° */
.inv-back-face {
  position: absolute;
  inset: 0;
  border-radius: 6px;
  overflow: hidden;
  background: var(--surface);
  box-shadow: var(--shadow-card);
  transform: translateZ(-7px) rotateY(180deg);
  backface-visibility: hidden;
  -webkit-backface-visibility: hidden;
  transition: transform .6s cubic-bezier(.22,.61,.36,1);
}
.inv-back-face.tucked { transform: translateY(-58px) scale(0.96) translateZ(-7px) rotateY(180deg); }

/* the front card is invisible from behind — the back face takes over */
.inv-card {
  backface-visibility: hidden;
  -webkit-backface-visibility: hidden;
}

/* slower orbit ease while the flip button spins the scene */
.scene-3d.spinning { transition: transform .7s cubic-bezier(.45,0,.25,1); }

/* card back — monogram design */
.inv-back-inner {
  position: absolute;
  inset: 0;
  display: flex;
  align-items: center;
  justify-content: center;
  background:
    radial-gradient(120% 120% at 50% 0%, var(--accent-tint), transparent 60%),
    var(--surface);
}
.back-frame {
  position: absolute;
  inset: 20px;
  border: 1px solid var(--line-2);
  border-radius: 3px;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 14px;
  padding: 20px;
}
.back-mono {
  font-family: var(--serif);
  font-size: 58px;
  line-height: 1;
  color: var(--accent);
  letter-spacing: 0.02em;
}
.back-line { width: 44px; height: 1px; background: var(--line-2); }
.back-names {
  font-family: var(--serif);
  font-style: italic;
  font-size: 19px;
  color: var(--ink);
}
.back-tag {
  font-size: 10px;
  letter-spacing: 0.24em;
  text-transform: uppercase;
  color: var(--muted);
}

/* paper textures */
/* ince kâğıt greni — SVG fractal noise, tüm kâğıt türlerinin üstüne biner */
:root {
  --paper-grain: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='140' height='140'%3E%3Cfilter id='g'%3E%3CfeTurbulence type='fractalNoise' baseFrequency='0.85' numOctaves='2' stitchTiles='stitch'/%3E%3CfeColorMatrix type='saturate' values='0'/%3E%3CfeComponentTransfer%3E%3CfeFuncA type='linear' slope='0.055'/%3E%3C/feComponentTransfer%3E%3C/filter%3E%3Crect width='140' height='140' filter='url(%23g)'/%3E%3C/svg%3E");
}
.paper-tual {
  background-color: #FBF7EF;
  background-image:
    var(--paper-grain),
    repeating-linear-gradient(0deg, rgba(120,105,80,0.05) 0 1px, transparent 1px 4px),
    repeating-linear-gradient(90deg, rgba(120,105,80,0.05) 0 1px, transparent 1px 4px);
}
.paper-pamuklu {
  background-color: #FBF6ED;
  background-image:
    var(--paper-grain),
    radial-gradient(circle at 25% 30%, rgba(150,130,100,0.035) 0 18%, transparent 42%),
    radial-gradient(circle at 72% 68%, rgba(150,130,100,0.03) 0 16%, transparent 40%);
  background-size: 140px 140px, 320px 320px, 380px 380px;
}
.paper-asetat {
  background-color: rgba(248,250,251,0.55);
  background-image: linear-gradient(135deg, rgba(255,255,255,0.55) 0%, rgba(214,226,230,0.30) 45%, rgba(255,255,255,0.5) 100%);
  box-shadow: var(--shadow-card), inset 0 0 0 1px rgba(255,255,255,0.6);
  backdrop-filter: blur(1px);
}

.inv-inner {
  position: relative;
  width: 100%;
  height: 100%;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  padding: 46px 38px;
  text-align: center;
  z-index: 2;
  transition: padding .45s cubic-bezier(.22,.61,.36,1);
}

/* seal / ribbon occupy the top band — make room so no text hides under them */
.inv-card.has-seal .inv-inner { padding-top: 112px; }
.inv-card.has-seal .inv-eyebrow { margin-bottom: 20px; }
.inv-card.has-seal .inv-rule { margin: 18px auto; }
.inv-card.tucked.has-seal .inv-inner { padding-top: 30px; }

/* invitation typography */
.inv-eyebrow {
  font-size: 11px;
  letter-spacing: 0.42em;
  text-transform: uppercase;
  color: var(--muted);
  margin-bottom: 30px;
}
.inv-names {
  line-height: 1.0;
  color: #2F2921; /* koyu is mürekkebi — kâğıt üstünde daha dolgun baskı hissi */
  letter-spacing: 0.015em;
  transition: color .4s ease;
}
.inv-amp { display: block; margin: 8px 0; color: var(--accent); font-style: italic; }
.inv-rule {
  /* uçlara doğru incelen hairline + ortada minik elmas — klasik davetiye ayracı */
  position: relative;
  width: 96px; height: 1px;
  background: linear-gradient(90deg, transparent, var(--line-2) 22%, var(--line-2) 78%, transparent);
  margin: 26px auto;
}
.inv-rule::after {
  content: "";
  position: absolute;
  left: 50%; top: 50%;
  width: 5px; height: 5px;
  transform: translate(-50%,-50%) rotate(45deg);
  background: var(--accent);
  opacity: 0.55;
}
.inv-meta {
  font-size: 12px;
  letter-spacing: 0.26em;
  text-transform: uppercase;
  color: var(--ink-soft);
  line-height: 1;
}
.inv-meta > div + div { margin-top: 11px; }
.inv-meta .meta-venue {
  font-family: var(--serif);
  font-style: italic;
  font-size: 17px;
  letter-spacing: 0.04em;
  text-transform: none;
  color: var(--accent);
}
.inv-meta .meta-where { color: var(--muted); }

/* font variants */
.font-serif .inv-names { font-family: var(--serif); font-weight: 500; font-size: 52px; }
.font-serif .inv-amp   { font-family: var(--serif); font-size: 30px; }

.font-minimal .inv-names { font-family: var(--sans); font-weight: 300; font-size: 33px; letter-spacing: 0.18em; text-transform: uppercase; }
.font-minimal .inv-amp   { font-family: var(--sans); font-weight: 300; font-size: 18px; letter-spacing: 0.1em; font-style: normal; }
.font-minimal .inv-eyebrow { letter-spacing: 0.5em; }

.font-kaligrafi .inv-names { font-family: var(--script); font-weight: 400; font-size: 62px; }
.font-kaligrafi .inv-amp   { font-family: var(--script); font-size: 44px; margin: -4px 0; }

/* ---- premium textures applied to card ---- */
/* foil gilding */
.inv-foil .inv-inner::before {
  content: "";
  position: absolute;
  inset: 16px;
  border-radius: 2px;
  border: 1.5px solid transparent;
  background:
    linear-gradient(120deg, var(--gold-3), var(--gold-2), var(--gold-1), var(--gold-2), var(--gold-3)) border-box;
  -webkit-mask: linear-gradient(#000 0 0) padding-box, linear-gradient(#000 0 0);
  -webkit-mask-composite: xor;
          mask-composite: exclude;
  background-size: 200% 200%;
  animation: foilshift 6s ease-in-out infinite;
  pointer-events: none;
}
.inv-foil .inv-names {
  background: linear-gradient(120deg, var(--gold-3) 0%, var(--gold-2) 30%, var(--gold-1) 50%, var(--gold-2) 70%, var(--gold-3) 100%);
  background-size: 200% auto;
  -webkit-background-clip: text;
          background-clip: text;
  -webkit-text-fill-color: transparent;
  animation: foilshift 6s ease-in-out infinite;
}
@keyframes foilshift {
  0%,100% { background-position: 0% 50%; }
  50%     { background-position: 100% 50%; }
}

/* dry embossing — raised ornament + raised rule */
.inv-emboss .inv-rule {
  height: 3px;
  background: var(--surface-2);
  box-shadow: 0 1px 0 rgba(255,255,255,0.9), 0 -1px 1px rgba(120,100,70,0.28);
  border-radius: 2px;
}
.inv-emboss .inv-eyebrow {
  text-shadow: 0 1px 0 rgba(255,255,255,0.9), 0 -1px 1px rgba(120,100,70,0.30);
}

/* debossing — pressed-in frame */
.inv-deboss .inv-inner::after {
  content: "";
  position: absolute;
  inset: 22px;
  border-radius: 3px;
  box-shadow: inset 0 2px 4px rgba(120,100,70,0.30), inset 0 -1px 0 rgba(255,255,255,0.8);
  pointer-events: none;
}

/* ---- standard envelope: card tucked inside, pocket in front ---- */
/* card lifts up so its top peeks above the envelope */
.inv-card.tucked {
  transform: translateY(-58px) scale(0.96) translateZ(0px);
}
.inv-card.tucked .inv-inner { padding-top: 30px; }

/* back panel — sits behind the card */
.env-back {
  position: absolute;
  left: -10px; right: -10px;
  bottom: -16px;
  height: 78%;
  z-index: 1;
  --env: #ECE0CC;
  border-radius: 3px 3px 10px 10px;
  background: linear-gradient(180deg, color-mix(in srgb, var(--env) 78%, #6B5B45), color-mix(in srgb, var(--env) 92%, #6B5B45));
  box-shadow: var(--shadow-card);
  opacity: 0;
  transform: translateY(20px) translateZ(-12px);
  transition: opacity .5s ease, transform .6s cubic-bezier(.22,.61,.36,1), background .4s ease;
}
.env-back.on { opacity: 1; transform: translateY(0) translateZ(-12px); }

/* front pocket — sits in front of the card, top edge dips to an opening */
.env-front {
  position: absolute;
  left: -10px; right: -10px;
  bottom: -16px;
  height: 62%;
  z-index: 8;
  --env: #ECE0CC;
  border-radius: 3px 3px 10px 10px;
  background: linear-gradient(180deg, color-mix(in srgb, var(--env) 88%, #fff), var(--env));
  clip-path: polygon(0 0, 50% 17%, 100% 0, 100% 100%, 0 100%);
  box-shadow: 0 -2px 12px -8px rgba(56,48,38,0.35), 0 22px 44px -24px rgba(56,48,38,0.55);
  opacity: 0;
  transform: translateY(26px) scale(0.99) translateZ(16px);
  transition: opacity .5s ease, transform .6s cubic-bezier(.22,.61,.36,1), background .4s ease;
}
.env-front.on { opacity: 1; transform: translateY(0) scale(1) translateZ(16px); }

/* side-flap seams converging to the centre opening */
.env-front::before {
  content: "";
  position: absolute;
  inset: 0;
  background:
    linear-gradient(to bottom right, transparent calc(50% - 0.6px), color-mix(in srgb, var(--env) 64%, #000) calc(50% - 0.6px) calc(50% + 0.6px), transparent calc(50% + 0.6px)),
    linear-gradient(to bottom left, transparent calc(50% - 0.6px), color-mix(in srgb, var(--env) 64%, #000) calc(50% - 0.6px) calc(50% + 0.6px), transparent calc(50% + 0.6px));
  opacity: 0.45;
  pointer-events: none;
}
/* inner lip shadow at the opening */
.env-front .env-flap {
  position: absolute;
  left: 0; right: 0; top: 0;
  height: 22%;
  background: linear-gradient(180deg, rgba(56,48,38,0.16), transparent);
  clip-path: polygon(0 0, 50% 80%, 100% 0);
  pointer-events: none;
}
.env-front .env-label {
  position: absolute;
  left: 0; right: 0;
  bottom: 20%;
  text-align: center;
  font-family: var(--serif);
  font-style: italic;
  font-size: 19px;
  letter-spacing: 0.06em;
  color: color-mix(in srgb, var(--env) 40%, #000);
  opacity: 0.55;
}

/* ---- vellum / milaj overlay ---- */
.vellum {
  position: absolute;
  inset: -2px;
  z-index: 5;
  border-radius: 6px;
  opacity: 0;
  transform: scale(1.02) translateZ(4px);
  transition: opacity .6s ease, transform .7s cubic-bezier(.22,.61,.36,1);
  pointer-events: none;
  overflow: hidden;
  /* gerçek milaj: yarı şeffaf, hafif sütlü — alttaki yazı net okunmalı,
     bu yüzden backdrop blur yok ve beyaz örtü hafif tutuldu */
  background: rgba(247,243,235,0.30);
  box-shadow:
    inset 0 0 0 1px rgba(255,255,255,0.4),
    inset 0 0 18px rgba(255,255,255,0.22),
    0 10px 30px -18px rgba(56,48,38,0.4);
}
.vellum.on { opacity: 0.9; transform: scale(1) translateZ(4px); }
.vellum::before {
  /* sheen */
  content: "";
  position: absolute;
  inset: 0;
  background: linear-gradient(125deg, rgba(255,255,255,0.30) 0%, transparent 28%, transparent 72%, rgba(255,255,255,0.20) 100%);
}
.vellum-pattern { position: absolute; inset: 0; }

.vp-botanik {
  /* zeytin dalı motifleri — sap + yaprak çiftleri, milaj üstüne serpiştirilmiş baskı */
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='190' height='190'%3E%3Cg fill='%237A8E6E' fill-opacity='0.5' stroke='%237A8E6E' stroke-opacity='0.45'%3E%3Cg transform='translate(46 58) rotate(28)'%3E%3Cpath d='M0 6 Q3 -12 1 -34' fill='none' stroke-width='1.2'/%3E%3Cellipse cx='-5' cy='-8' rx='2.7' ry='7' transform='rotate(-34 -5 -8)'/%3E%3Cellipse cx='7' cy='-13' rx='2.7' ry='7' transform='rotate(32 7 -13)'/%3E%3Cellipse cx='-4' cy='-21' rx='2.5' ry='6.4' transform='rotate(-28 -4 -21)'/%3E%3Cellipse cx='6' cy='-26' rx='2.3' ry='5.8' transform='rotate(24 6 -26)'/%3E%3Cellipse cx='0' cy='-35' rx='2.1' ry='5.2' transform='rotate(-4 0 -35)'/%3E%3C/g%3E%3Cg transform='translate(142 148) rotate(-142)'%3E%3Cpath d='M0 6 Q3 -12 1 -34' fill='none' stroke-width='1.2'/%3E%3Cellipse cx='-5' cy='-8' rx='2.7' ry='7' transform='rotate(-34 -5 -8)'/%3E%3Cellipse cx='7' cy='-13' rx='2.7' ry='7' transform='rotate(32 7 -13)'/%3E%3Cellipse cx='-4' cy='-21' rx='2.5' ry='6.4' transform='rotate(-28 -4 -21)'/%3E%3Cellipse cx='6' cy='-26' rx='2.3' ry='5.8' transform='rotate(24 6 -26)'/%3E%3Cellipse cx='0' cy='-35' rx='2.1' ry='5.2' transform='rotate(-4 0 -35)'/%3E%3C/g%3E%3C/g%3E%3C/svg%3E");
  background-size: 190px 190px;
  background-repeat: repeat;
  opacity: 0.9;
}
.vp-cizgi {
  background-image: repeating-linear-gradient(48deg, rgba(110,100,82,0.28) 0 1px, transparent 1px 16px);
}
.vp-beyaz {
  background-color: transparent;
  background-image:
    radial-gradient(circle at 25% 25%, rgba(255,255,255,0.9) 0 1.6px, transparent 2px),
    radial-gradient(circle at 75% 55%, rgba(255,255,255,0.85) 0 1.6px, transparent 2px),
    radial-gradient(circle at 50% 80%, rgba(255,255,255,0.85) 0 1.6px, transparent 2px);
  background-size: 60px 60px;
}

/* ---- chiffon ribbon — wraps the upper band, tied with a soft knot ---- */
.ribbon {
  position: absolute;
  left: -8px; right: -8px;
  top: 12%;
  height: 54px;
  transform: translateY(-50%) scaleY(0.2) translateZ(8px);
  opacity: 0;
  z-index: 7;
  transition: opacity .5s ease, transform .6s cubic-bezier(.22,.61,.36,1), top .5s ease;
  pointer-events: none;
}
.ribbon.on { opacity: 1; transform: translateY(-50%) scaleY(1) translateZ(8px); }
.ribbon.tucked { top: 63%; transform: translateY(-50%) scaleY(0.2) translateZ(18px); }
.ribbon.tucked.on { transform: translateY(-50%) scaleY(1) translateZ(18px); }
.ribbon .band {
  position: absolute;
  inset: 0;
  background: linear-gradient(180deg,
    rgba(214,196,210,0.14) 0%,
    rgba(206,184,200,0.48) 30%,
    rgba(188,160,182,0.58) 50%,
    rgba(206,184,200,0.48) 70%,
    rgba(214,196,210,0.14) 100%);
  box-shadow: 0 6px 16px -10px rgba(80,50,70,0.5);
  backdrop-filter: blur(0.5px);
}
.ribbon .band::after {
  content:"";
  position:absolute; inset:0;
  background: repeating-linear-gradient(90deg, rgba(255,255,255,0.18) 0 2px, transparent 2px 9px);
}
/* gathered knot at the centre with two short tails */
.ribbon .knot {
  position: absolute;
  left: 50%; top: 50%;
  width: 24px; height: 34px;
  transform: translate(-50%,-50%);
  border-radius: 42% 42% 46% 46%;
  background: linear-gradient(180deg, rgba(202,176,196,0.72), rgba(164,132,156,0.85));
  box-shadow: 0 3px 8px -3px rgba(80,50,70,0.45), inset 0 1px 2px rgba(255,255,255,0.35);
}
.ribbon .knot::before,
.ribbon .knot::after {
  content: "";
  position: absolute;
  top: 82%;
  width: 12px; height: 34px;
  background: linear-gradient(180deg, rgba(188,160,182,0.68), rgba(188,160,182,0.12));
  border-radius: 0 0 60% 60%;
}
.ribbon .knot::before { left: 8%;  transform: rotate(14deg); }
.ribbon .knot::after  { right: 8%; transform: rotate(-14deg); }

/* ---- wax seal — sits on the vellum/ribbon near the top edge ---- */
.wax {
  position: absolute;
  left: 50%; top: 12%;
  --wax-z: 12px;
  width: 80px; height: 80px;
  transform: translate(-50%,-50%) scale(0.2) rotate(-12deg) translateZ(var(--wax-z));
  opacity: 0;
  z-index: 9;
  transition: opacity .45s ease, transform .55s cubic-bezier(.34,1.56,.64,1), top .5s ease;
  pointer-events: none;
}
.wax.on { opacity: 1; transform: translate(-50%,-50%) scale(1) rotate(-6deg) translateZ(var(--wax-z)); }
/* on the standard envelope the seal closes the opening */
.wax.tucked { top: 45%; --wax-z: 24px; }
/* dökülen mumun düzensiz taşma kenarı — diskin altında hafif kaçık bir kütle */
.wax::before {
  content: "";
  position: absolute;
  inset: -5px -7px -7px -4px;
  border-radius: 58% 42% 50% 55% / 48% 56% 44% 55%;
  background: radial-gradient(circle at 40% 32%, var(--wax-1) 20%, var(--wax-2) 78%);
  box-shadow: 0 10px 22px -10px rgba(70,20,15,0.75), inset 0 -3px 6px rgba(50,10,6,0.45);
  transform: rotate(8deg);
}
.wax .disc {
  position: absolute; inset: 0;
  border-radius: 47% 53% 50% 50% / 52% 48% 52% 48%;
  background:
    radial-gradient(circle at 30% 22%, rgba(255,226,208,0.5) 0 5%, transparent 13%),
    radial-gradient(circle at 35% 30%, var(--wax-hi) 0%, var(--wax-1) 42%, var(--wax-2) 100%);
  box-shadow:
    0 1px 2px rgba(70,20,15,0.5),
    0 8px 18px -8px rgba(70,20,15,0.7),
    inset 0 -4px 8px rgba(60,15,10,0.5),
    inset 0 3px 6px rgba(255,180,160,0.4);
  display: flex; align-items: center; justify-content: center;
}
.wax .monogram {
  font-family: var(--serif);
  font-weight: 600;
  font-size: 32px;
  /* mühür kalıbının içe bastırdığı harfler — koyu zemin + alttan ince ışık */
  color: rgba(52,12,8,0.72);
  text-shadow: 0 1px 1px rgba(255,195,172,0.35), 0 -1px 1px rgba(40,8,5,0.35);
  letter-spacing: -0.02em;
}
.wax .disc::before {
  content:"";
  position:absolute; inset: 6px;
  border-radius: inherit;
  border: 1.5px solid rgba(60,15,10,0.35);
  box-shadow: inset 0 1px 2px rgba(255,190,165,0.25), 0 1px 1px rgba(255,190,165,0.18);
}

/* ============================================================
   RIGHT — CONFIG PANEL
   ============================================================ */
.config {
  display: flex;
  flex-direction: column;
  min-height: calc(100vh - 61px);
}
.config-scroll { padding: 38px 44px 30px; flex: 1; }
.config-head { margin-bottom: 30px; }
.config-head h1 {
  font-family: var(--serif);
  font-weight: 500;
  font-size: 34px;
  line-height: 1.1;
  margin: 8px 0 10px;
  letter-spacing: 0.01em;
}
.config-head p {
  font-family: var(--serif);
  font-style: italic;
  font-size: 16px;
  color: var(--muted);
  margin: 0;
  max-width: 44ch;
}

/* ---- accordion step ---- */
.step {
  border-top: 1px solid var(--line);
}
.step:last-of-type { border-bottom: 1px solid var(--line); }
.step-head {
  display: flex;
  align-items: center;
  gap: 16px;
  padding: 22px 4px;
  cursor: pointer;
  user-select: none;
  transition: padding .3s ease;
}
.step-num {
  flex: none;
  width: 30px; height: 30px;
  border-radius: 50%;
  border: 1px solid var(--line-2);
  display: flex; align-items: center; justify-content: center;
  font-family: var(--serif);
  font-size: 15px;
  color: var(--muted);
  transition: all .35s ease;
}
.step.open .step-num,
.step.done .step-num {
  background: var(--accent);
  border-color: var(--accent);
  color: #fff;
}
.step-titles { flex: 1; }
.step-title {
  font-family: var(--serif);
  font-size: 20px;
  font-weight: 500;
  color: var(--ink);
  line-height: 1.1;
}
.step-sub {
  font-family: var(--sans);
  font-size: 12px;
  color: var(--muted);
  margin-top: 3px;
  letter-spacing: 0.01em;
}
.step.open .step-sub { color: var(--accent); }
.step-chev {
  flex: none;
  width: 11px; height: 11px;
  border-right: 1.5px solid var(--muted);
  border-bottom: 1.5px solid var(--muted);
  transform: rotate(45deg);
  transition: transform .35s ease;
  margin-right: 6px;
}
.step.open .step-chev { transform: rotate(-135deg); }

.step-body {
  overflow: hidden;
  max-height: 0;
  opacity: 0;
  transition: max-height .45s cubic-bezier(.22,.61,.36,1), opacity .35s ease, padding .3s ease;
}
.step.open .step-body {
  max-height: 720px;
  opacity: 1;
  padding-bottom: 28px;
}
.field + .field { margin-top: 24px; }
.field-label {
  font-size: 10.5px;
  letter-spacing: 0.28em;
  text-transform: uppercase;
  color: var(--muted);
  margin-bottom: 13px;
}

/* option grids */
.opt-row { display: flex; flex-wrap: wrap; gap: 10px; }
.opt-grid { display: grid; grid-template-columns: 1fr 1fr 1fr; gap: 10px; }
.opt-grid.two { grid-template-columns: 1fr 1fr; }

/* selectable card */
.opt {
  position: relative;
  border: 1px solid var(--line);
  border-radius: var(--radius-sm);
  background: var(--surface);
  padding: 14px 13px;
  cursor: pointer;
  transition: border-color .25s ease, box-shadow .25s ease, transform .25s ease, background .25s ease;
  text-align: left;
  display: flex;
  flex-direction: column;
  gap: 9px;
}
.opt:hover { border-color: var(--line-2); transform: translateY(-1px); box-shadow: var(--shadow-soft); }
.opt.sel {
  border-color: var(--accent);
  background: var(--accent-tint);
  box-shadow: 0 0 0 1px var(--accent);
}
.opt .swatch {
  width: 100%;
  height: 38px;
  border-radius: 7px;
  border: 1px solid rgba(120,100,70,0.12);
}
.opt .o-name {
  font-family: var(--serif);
  font-size: 16px;
  font-weight: 500;
  color: var(--ink);
  line-height: 1.05;
}
.opt .o-price {
  font-family: var(--sans);
  font-size: 11.5px;
  letter-spacing: 0.04em;
  color: var(--muted);
}
.opt.sel .o-price { color: var(--accent); }
.opt .check {
  position: absolute;
  top: 9px; right: 9px;
  width: 18px; height: 18px;
  border-radius: 50%;
  background: var(--accent);
  display: flex; align-items: center; justify-content: center;
  opacity: 0;
  transform: scale(0.5);
  transition: all .25s ease;
}
.opt.sel .check { opacity: 1; transform: scale(1); }
.opt .check::after {
  content:"";
  width: 5px; height: 9px;
  border-right: 2px solid #fff; border-bottom: 2px solid #fff;
  transform: rotate(45deg) translate(-1px,-1px);
}

/* font preview chips */
.opt .o-preview {
  font-size: 25px;
  color: var(--ink-soft);
  line-height: 1;
  padding: 4px 0 2px;
}
.opt.pf-serif .o-preview { font-family: var(--serif); }
.opt.pf-minimal .o-preview { font-family: var(--sans); font-weight: 300; letter-spacing: 0.12em; font-size: 18px; text-transform: uppercase;}
.opt.pf-kaligrafi .o-preview { font-family: var(--script); font-size: 34px; }

/* toggle accessory row */
.toggle {
  display: flex;
  align-items: center;
  gap: 14px;
  border: 1px solid var(--line);
  border-radius: var(--radius-sm);
  background: var(--surface);
  padding: 15px 16px;
  cursor: pointer;
  transition: border-color .25s ease, background .25s ease, box-shadow .25s ease;
}
.toggle + .toggle { margin-top: 10px; }
.toggle:hover { border-color: var(--line-2); }
.toggle.sel { border-color: var(--accent); background: var(--accent-tint); box-shadow: 0 0 0 1px var(--accent); }
.toggle .t-ico {
  flex: none;
  width: 42px; height: 42px;
  border-radius: 9px;
  background: var(--surface-2);
  border: 1px solid var(--line);
  display: flex; align-items: center; justify-content: center;
  font-family: var(--serif);
  font-size: 20px;
  color: var(--accent);
}
.toggle .t-body { flex: 1; }
.toggle .t-name { font-family: var(--serif); font-size: 17px; font-weight: 500; color: var(--ink); }
.toggle .t-desc { font-size: 11.5px; color: var(--muted); margin-top: 2px; }
.toggle .t-price { font-family: var(--sans); font-size: 12px; color: var(--muted); white-space: nowrap; }
.toggle.sel .t-price { color: var(--accent); }
.toggle .t-switch {
  flex: none;
  width: 42px; height: 24px;
  border-radius: 14px;
  background: var(--line-2);
  position: relative;
  transition: background .25s ease;
}
.toggle.sel .t-switch { background: var(--accent); }
.toggle .t-switch::after {
  content:"";
  position: absolute;
  top: 3px; left: 3px;
  width: 18px; height: 18px;
  border-radius: 50%;
  background: #fff;
  box-shadow: 0 1px 3px rgba(0,0,0,0.2);
  transition: transform .25s ease;
}
.toggle.sel .t-switch::after { transform: translateX(18px); }

/* quantity slider */
.qty-wrap { padding: 4px 2px 0; }
.qty-val {
  display: flex; align-items: baseline; gap: 8px; margin-bottom: 18px;
}
.qty-val .num { font-family: var(--serif); font-size: 40px; font-weight: 500; color: var(--ink); line-height: 1; }
.qty-val .unit { font-size: 12px; letter-spacing: 0.2em; text-transform: uppercase; color: var(--muted); }
.qty-val .disc {
  margin-left: auto;
  font-size: 11px; letter-spacing: 0.06em;
  color: var(--sage);
  background: var(--sage-soft);
  padding: 4px 10px; border-radius: 20px;
}
input[type="range"].slider {
  -webkit-appearance: none; appearance: none;
  width: 100%; height: 3px; border-radius: 3px;
  background: var(--line-2);
  outline: none; margin: 6px 0 10px;
}
input[type="range"].slider::-webkit-slider-thumb {
  -webkit-appearance: none; appearance: none;
  width: 22px; height: 22px; border-radius: 50%;
  background: var(--surface);
  border: 1.5px solid var(--accent);
  box-shadow: 0 2px 8px -2px rgba(56,48,38,0.4);
  cursor: pointer;
}
input[type="range"].slider::-moz-range-thumb {
  width: 22px; height: 22px; border-radius: 50%;
  background: var(--surface);
  border: 1.5px solid var(--accent);
  cursor: pointer;
}
.qty-ticks { display: flex; justify-content: space-between; }
.qty-ticks span {
  font-size: 11px; color: var(--faint); letter-spacing: 0.04em;
  cursor: pointer; transition: color .2s ease;
}
.qty-ticks span.on { color: var(--accent); }

/* ---- cart bar ---- */
.cart {
  position: sticky;
  bottom: 0;
  background: color-mix(in srgb, var(--surface) 88%, transparent);
  backdrop-filter: blur(10px);
  border-top: 1px solid var(--line-2);
  padding: 20px 44px 22px;
  z-index: 20;
}
.cart-rows {
  display: flex;
  flex-direction: column;
  gap: 5px;
  margin-bottom: 14px;
  max-height: 0;
  overflow: hidden;
  opacity: 0;
  transition: max-height .4s ease, opacity .3s ease, margin .3s ease;
}
.cart.expanded .cart-rows { max-height: 260px; opacity: 1; }
.cart.expanded { box-shadow: 0 -20px 40px -30px rgba(56,48,38,0.5); }
.cart-row {
  display: flex; justify-content: space-between;
  font-size: 12.5px; color: var(--ink-soft);
}
.cart-row .ci-name { color: var(--muted); }
.cart-row.subtle .ci-val { color: var(--sage); }
.cart-divider { height: 1px; background: var(--line); margin: 4px 0; }
.cart-main { display: flex; align-items: center; gap: 18px; }
.cart-total { flex: 1; }
.cart-total .ct-label {
  font-size: 10.5px; letter-spacing: 0.26em; text-transform: uppercase; color: var(--muted);
  display: flex; align-items: center; gap: 8px;
  cursor: pointer;
}
.cart-total .ct-label .caret {
  width: 7px; height: 7px;
  border-right: 1.5px solid var(--muted); border-bottom: 1.5px solid var(--muted);
  transform: rotate(-45deg);
  transition: transform .3s ease;
}
.cart.expanded .ct-label .caret { transform: rotate(45deg); }
.cart-total .ct-amount {
  font-family: var(--serif); font-weight: 600;
  font-size: 36px; color: var(--ink); line-height: 1.05;
  display: flex; align-items: baseline; gap: 10px;
  white-space: nowrap;
}
.cart-total .ct-amount .roll { white-space: nowrap; }
.cart-total .ct-amount .per {
  font-family: var(--sans); font-size: 12px; letter-spacing: 0.04em; color: var(--muted);
  white-space: nowrap;
}
.cta {
  flex: none;
  font-family: var(--sans);
  font-size: 12.5px;
  letter-spacing: 0.2em;
  text-transform: uppercase;
  color: #fff;
  background: var(--ink);
  border: none;
  padding: 17px 34px;
  border-radius: 40px;
  cursor: pointer;
  transition: transform .2s ease, background .25s ease, box-shadow .25s ease;
  box-shadow: 0 12px 28px -14px rgba(56,48,38,0.7);
}
.cta:hover { background: var(--accent); transform: translateY(-2px); box-shadow: 0 16px 34px -14px rgba(56,48,38,0.7); }
.cta:active { transform: translateY(0); }

/* number price animation */
.ct-amount .roll { transition: color .3s ease; }

/* ============================================================
   TOP NAV
   ============================================================ */
.topnav { display: flex; align-items: center; gap: 26px; }
.navlink {
  background: none;
  border: none;
  cursor: pointer;
  font-family: var(--sans);
  font-size: 11px;
  letter-spacing: 0.2em;
  text-transform: uppercase;
  color: var(--muted);
  padding: 4px 0;
  position: relative;
  transition: color .25s ease;
}
.navlink:hover { color: var(--ink); }
.navlink.on { color: var(--accent); }
.navlink.on::after {
  content: "";
  position: absolute;
  left: 0; right: 0; bottom: -4px;
  height: 1px;
  background: var(--accent);
}

/* ============================================================
   HOME / LANDING
   ============================================================ */
.home { max-width: 1360px; width: 100%; margin: 0 auto; }
.home-hero {
  display: grid;
  grid-template-columns: 1fr 1fr;
  align-items: center;
  gap: 40px;
  padding: 70px 56px 84px;
  min-height: 74vh;
}
.hero-copy { max-width: 520px; }
.hero-title {
  font-family: var(--serif);
  font-weight: 500;
  font-size: 64px;
  line-height: 1.02;
  letter-spacing: 0.01em;
  color: var(--ink);
  margin: 20px 0 22px;
}
.hero-sub {
  font-size: 16px;
  line-height: 1.75;
  color: var(--ink-soft);
  max-width: 440px;
  margin: 0 0 34px;
}
.hero-actions { display: flex; align-items: center; gap: 16px; }
.hero-actions .cta { position: static; }
.ghost-btn {
  background: none;
  border: 1px solid var(--line-2);
  border-radius: 999px;
  padding: 14px 26px;
  cursor: pointer;
  font-family: var(--sans);
  font-size: 12px;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: var(--ink-soft);
  transition: border-color .25s ease, color .25s ease, transform .2s ease;
}
.ghost-btn:hover { border-color: var(--accent); color: var(--accent); transform: translateY(-2px); }
.hero-note {
  margin-top: 30px;
  font-family: var(--serif);
  font-style: italic;
  font-size: 15px;
  color: var(--muted);
}
.hero-stage {
  position: relative;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 34px;
  min-height: 560px;
}
/* davetiyeyi zeminden ayıran yumuşak vitrin ışığı */
.hero-stage::before {
  content: "";
  position: absolute;
  inset: -30px;
  background: radial-gradient(46% 42% at 50% 44%, rgba(255,253,248,0.95), rgba(255,253,248,0.35) 55%, transparent 74%);
  pointer-events: none;
}

.home-features {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 0;
  border-top: 1px solid var(--line);
  border-bottom: 1px solid var(--line);
  margin: 0 56px;
}
.feat {
  padding: 40px 30px;
  border-right: 1px solid var(--line);
}
.feat:last-child { border-right: none; }
.feat-no {
  font-family: var(--serif);
  font-style: italic;
  font-size: 22px;
  color: var(--accent);
  margin-bottom: 16px;
}
.feat-k {
  font-family: var(--serif);
  font-size: 22px;
  color: var(--ink);
  margin-bottom: 10px;
}
.feat-d { font-size: 13.5px; line-height: 1.65; color: var(--ink-soft); }

.home-cta {
  text-align: center;
  padding: 76px 40px 90px;
}

/* ---- QR Paydar service section ---- */
.qrpaydar {
  background: var(--bg-deep);
  border-top: 1px solid var(--line);
  border-bottom: 1px solid var(--line);
  margin-top: 40px;
}
.qrp-inner {
  max-width: 1360px;
  margin: 0 auto;
  display: grid;
  grid-template-columns: 1.1fr 0.9fr;
  gap: 56px;
  align-items: center;
  padding: 72px 56px;
}
.qrp-title {
  font-family: var(--serif);
  font-weight: 500;
  font-size: 44px;
  line-height: 1.05;
  color: var(--ink);
  margin: 12px 0 18px;
}
.qrp-sub {
  font-size: 15.5px;
  line-height: 1.7;
  color: var(--ink-soft);
  max-width: 440px;
  margin: 0 0 30px;
}
.qrp-feats { display: flex; flex-direction: column; gap: 18px; margin-bottom: 32px; }
.qrp-feat { display: flex; gap: 14px; align-items: flex-start; }
.qrp-ico {
  flex: none;
  width: 40px; height: 40px;
  display: flex; align-items: center; justify-content: center;
  border-radius: 50%;
  background: var(--accent-soft);
  color: var(--accent);
  font-size: 18px;
}
.qrp-k { font-family: var(--serif); font-size: 18px; color: var(--ink); }
.qrp-d { font-size: 13px; color: var(--ink-soft); margin-top: 2px; }
.qrp .cta, .qrpaydar .cta { position: static; display: inline-block; }
.qrp-visual { display: flex; justify-content: center; }
.qrp-card {
  width: 260px;
  aspect-ratio: 3 / 4;
  background: var(--surface);
  border: 1px solid var(--line-2);
  border-radius: 8px;
  box-shadow: var(--shadow-card);
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 20px;
  transform: rotate(-3deg);
}
.qrp-mono { font-family: var(--serif); font-size: 40px; color: var(--accent); }
.qrp-cardline { width: 40px; height: 1px; background: var(--line-2); }
.qrp-codes { display: flex; gap: 22px; }
.qrp-code { display: flex; flex-direction: column; align-items: center; gap: 6px; }
.qrp-fake {
  width: 58px; height: 58px;
  border-radius: 4px;
  background:
    repeating-conic-gradient(var(--ink) 0% 25%, transparent 0% 50%) 0 / 12px 12px;
  opacity: 0.82;
  box-shadow: 0 2px 8px -4px rgba(56,48,38,0.5);
}
.qrp-code span {
  font-size: 8.5px;
  letter-spacing: 0.18em;
  text-transform: uppercase;
  color: var(--muted);
}
.hc-title {
  font-family: var(--serif);
  font-weight: 500;
  font-size: 34px;
  color: var(--ink);
  margin-bottom: 28px;
}
.home-cta .cta { position: static; display: inline-block; }

/* ---- home gallery / examples ---- */
.home-gallery {
  max-width: 1360px;
  margin: 0 auto;
  padding: 76px 56px 20px;
}
.gallery-head { text-align: center; margin-bottom: 44px; }
.gallery-title {
  font-family: var(--serif);
  font-weight: 500;
  font-size: 40px;
  color: var(--ink);
  margin: 12px 0 12px;
}
.gallery-sub {
  font-size: 14.5px;
  color: var(--ink-soft);
  max-width: 460px;
  margin: 0 auto;
}
.gallery-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 26px;
}
.gal-item { margin: 0; }
.gal-photo {
  position: relative;
  width: 100%;
  aspect-ratio: 4 / 5;
  border-radius: 14px;
  overflow: hidden;
  box-shadow: var(--shadow-soft);
  background: var(--surface-2);
}
.gal-item figcaption {
  display: flex;
  flex-direction: column;
  gap: 3px;
  padding: 14px 4px 0;
}
.gal-k { font-family: var(--serif); font-size: 20px; color: var(--ink); }
.gal-d { font-size: 12.5px; letter-spacing: 0.04em; color: var(--muted); }

/* ============================================================
   CHECKOUT / ORDER COMPLETION
   ============================================================ */
.checkout { max-width: 1220px; width: 100%; margin: 0 auto; padding: 34px 56px 90px; }
.back-link {
  background: none; border: none; cursor: pointer;
  font-family: var(--sans); font-size: 12px; letter-spacing: 0.14em;
  text-transform: uppercase; color: var(--muted); padding: 8px 0; margin-bottom: 20px;
  transition: color .2s ease;
}
.back-link:hover { color: var(--accent); }
.checkout-grid {
  display: grid;
  grid-template-columns: 1.1fr 0.9fr;
  gap: 54px;
  align-items: start;
}
.co-title {
  font-family: var(--serif);
  font-weight: 500;
  font-size: 40px;
  color: var(--ink);
  margin: 12px 0 30px;
}
.co-fields {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 20px;
}
.fld { display: flex; flex-direction: column; gap: 8px; }
.fld.full { grid-column: 1 / -1; }
.fld span {
  font-size: 11px;
  letter-spacing: 0.16em;
  text-transform: uppercase;
  color: var(--muted);
}
.fld span em { font-style: italic; text-transform: none; letter-spacing: 0; color: var(--faint); }
.fld input, .fld textarea {
  font-family: var(--sans);
  font-size: 16px; /* <16px iOS Safari'de odaklanınca otomatik zoom tetikler */
  color: var(--ink);
  background: var(--surface);
  border: 1px solid var(--line-2);
  border-radius: var(--radius-sm);
  padding: 13px 15px;
  outline: none;
  transition: border-color .2s ease, box-shadow .2s ease;
  resize: vertical;
}
.fld input:focus, .fld textarea:focus {
  border-color: var(--accent);
  box-shadow: 0 0 0 3px var(--accent-soft);
}

.co-summary {
  background: var(--surface);
  border: 1px solid var(--line);
  border-radius: var(--radius);
  padding: 28px 28px 26px;
  box-shadow: var(--shadow-soft);
  position: sticky;
  top: 90px;
}
.cos-head {
  font-family: var(--sans);
  font-size: 11px;
  letter-spacing: 0.24em;
  text-transform: uppercase;
  color: var(--muted);
  margin-bottom: 18px;
}
.cos-preview {
  display: flex;
  justify-content: center;
  transform: scale(0.62);
  transform-origin: top center;
  height: 330px;
  margin-bottom: -8px;
  pointer-events: none;
}
.cos-preview .scene-controls { display: none; }
.cos-name {
  text-align: center;
  font-family: var(--serif);
  font-size: 26px;
  color: var(--ink);
}
.cos-spec {
  text-align: center;
  font-size: 12px;
  letter-spacing: 0.06em;
  color: var(--muted);
  margin: 6px 0 20px;
}
.cos-lines { border-top: 1px solid var(--line); padding-top: 16px; }
.cos-row {
  display: flex;
  justify-content: space-between;
  font-size: 13.5px;
  color: var(--ink-soft);
  padding: 5px 0;
}
.cos-row.subtle { color: var(--sage); }
.cos-total {
  display: flex;
  justify-content: space-between;
  align-items: baseline;
  border-top: 1px solid var(--line-2);
  margin-top: 14px;
  padding-top: 16px;
}
.cos-total span { font-size: 12px; letter-spacing: 0.2em; text-transform: uppercase; color: var(--muted); }
.cos-total strong { font-family: var(--serif); font-size: 30px; color: var(--ink); }
.co-summary .cta {
  position: static;
  width: 100%;
  margin-top: 20px;
  justify-content: center;
}
.co-summary .cta:disabled {
  background: var(--line-2);
  color: var(--surface);
  cursor: not-allowed;
  transform: none;
  box-shadow: none;
}
.cos-safe {
  text-align: center;
  font-size: 11px;
  color: var(--faint);
  margin-top: 14px;
  letter-spacing: 0.04em;
}

/* confirmation */
.confirm-wrap { display: flex; justify-content: center; padding-top: 40px; }
.confirm-card {
  max-width: 560px;
  text-align: center;
  background: var(--surface);
  border: 1px solid var(--line);
  border-radius: var(--radius);
  padding: 54px 48px 46px;
  box-shadow: var(--shadow-card);
}
.confirm-seal {
  width: 70px; height: 70px;
  margin: 0 auto 24px;
  border-radius: 50%;
  display: flex; align-items: center; justify-content: center;
  font-size: 30px;
  color: var(--surface);
  background: radial-gradient(circle at 38% 30%, var(--wax-1), var(--wax-2));
  box-shadow: 0 10px 26px -12px rgba(56,48,38,0.6);
}
.confirm-title {
  font-family: var(--serif);
  font-weight: 500;
  font-size: 36px;
  color: var(--ink);
  margin: 14px 0 16px;
}
.confirm-sub {
  font-size: 15px;
  line-height: 1.7;
  color: var(--ink-soft);
  margin: 0 auto 30px;
  max-width: 440px;
}
.confirm-sub strong { color: var(--ink); }
.confirm-summary {
  text-align: left;
  border: 1px solid var(--line);
  border-radius: var(--radius-sm);
  padding: 18px 22px;
  margin-bottom: 30px;
}
.cs-row {
  display: flex;
  justify-content: space-between;
  gap: 20px;
  font-size: 14px;
  color: var(--ink-soft);
  padding: 7px 0;
}
.cs-row span:last-child { color: var(--ink); text-align: right; }
.cs-row.total {
  border-top: 1px solid var(--line);
  margin-top: 6px;
  padding-top: 13px;
}
.cs-row.total span { font-family: var(--serif); font-size: 20px; color: var(--ink); }
.confirm-card .cta { position: static; display: inline-block; }

/* ============================================================
   SITE FOOTER
   ============================================================ */
.site-footer {
  border-top: 1px solid var(--line);
  background: var(--bg-deep);
  margin-top: auto;
}
.foot-inner {
  max-width: 1360px;
  margin: 0 auto;
  display: grid;
  grid-template-columns: 1.6fr 1fr 1fr;
  gap: 40px;
  padding: 56px 56px 40px;
}
.foot-brand .mark {
  font-family: var(--serif);
  font-weight: 600;
  font-size: 24px;
  letter-spacing: 0.04em;
  color: var(--ink);
}
.foot-brand .mark em { font-style: italic; color: var(--accent); }
.foot-blurb {
  font-size: 14px;
  line-height: 1.65;
  color: var(--ink-soft);
  max-width: 320px;
  margin: 16px 0 14px;
}
.foot-note {
  font-family: var(--serif);
  font-style: italic;
  font-size: 13.5px;
  color: var(--muted);
}
.foot-h {
  font-size: 11px;
  letter-spacing: 0.24em;
  text-transform: uppercase;
  color: var(--muted);
  margin-bottom: 18px;
}
.foot-col { display: flex; flex-direction: column; align-items: flex-start; gap: 11px; }
.foot-link {
  background: none;
  border: none;
  padding: 0;
  cursor: pointer;
  font-family: var(--sans);
  font-size: 14px;
  color: var(--ink-soft);
  text-decoration: none;
  transition: color .2s ease;
}
.foot-link:hover { color: var(--accent); }
.foot-social { display: flex; gap: 18px; margin-top: 4px; }
.foot-base {
  max-width: 1360px;
  margin: 0 auto;
  display: flex;
  justify-content: space-between;
  padding: 18px 56px 26px;
  border-top: 1px solid var(--line);
  font-size: 11px;
  letter-spacing: 0.08em;
  color: var(--faint);
}

/* ============================================================
   PAYIDAR QR — PRICING
   ============================================================ */
.qrfiyat { max-width: 1180px; width: 100%; margin: 0 auto; padding: 64px 56px 90px; }
.qrf-head { text-align: center; max-width: 620px; margin: 0 auto 52px; }
.qrf-title {
  font-family: var(--serif);
  font-weight: 500;
  font-size: 46px;
  line-height: 1.06;
  color: var(--ink);
  margin: 12px 0 16px;
}
.qrf-sub { font-size: 15.5px; line-height: 1.7; color: var(--ink-soft); }
.qrf-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 22px;
  align-items: stretch;
}
.qrf-plan {
  display: flex;
  flex-direction: column;
  background: var(--surface);
  border: 1px solid var(--line);
  border-radius: var(--radius);
  padding: 30px 28px 28px;
  box-shadow: var(--shadow-soft);
}
.qrf-plan.hot {
  border-color: var(--accent);
  box-shadow: var(--shadow-card);
  transform: translateY(-8px);
}
.qpl-tag {
  font-size: 10px;
  letter-spacing: 0.2em;
  text-transform: uppercase;
  color: var(--muted);
  margin-bottom: 16px;
}
.qrf-plan.hot .qpl-tag { color: var(--accent); }
.qpl-name { font-family: var(--serif); font-size: 26px; color: var(--ink); }
.qpl-price {
  font-family: var(--serif);
  font-size: 40px;
  color: var(--ink);
  margin: 8px 0 4px;
}
.qpl-price span {
  font-family: var(--sans);
  font-size: 13px;
  letter-spacing: 0.06em;
  color: var(--muted);
  margin-left: 6px;
}
.qpl-desc { font-size: 13.5px; line-height: 1.6; color: var(--ink-soft); margin: 8px 0 18px; }
.qpl-feats { list-style: none; padding: 0; margin: 0 0 24px; flex: 1; }
.qpl-feats li {
  position: relative;
  padding: 8px 0 8px 22px;
  font-size: 13.5px;
  color: var(--ink-soft);
  border-top: 1px solid var(--line);
}
.qpl-feats li::before {
  content: "✓";
  position: absolute;
  left: 0;
  color: var(--accent);
}
.qrf-plan .cta { position: static; width: 100%; justify-content: center; }
.qrf-plan .cta.ghost {
  background: none;
  border: 1px solid var(--line-2);
  color: var(--ink-soft);
  box-shadow: none;
}
.qrf-plan .cta.ghost:hover { border-color: var(--accent); color: var(--accent); }
.qrf-note {
  text-align: center;
  font-size: 12.5px;
  color: var(--muted);
  max-width: 560px;
  margin: 40px auto 0;
  line-height: 1.6;
}

/* responsive */
@media (max-width: 1080px) {
  /* minmax(0,1fr): 380px sabit 3B sahne kolonun min-content genişliğini
     viewport üstüne itmesin — sahne kolon içinde ortalanıp taşar */
  .workspace { grid-template-columns: minmax(0, 1fr); }
  .stage { position: relative; top: 0; height: 64vh; border-right: none; border-bottom: 1px solid var(--line); }
  .config { min-height: auto; }
  .home-hero { grid-template-columns: minmax(0, 1fr); text-align: center; padding: 46px 32px 60px; }
  .hero-copy { max-width: none; margin: 0 auto; }
  .hero-sub { margin-left: auto; margin-right: auto; }
  .hero-actions { justify-content: center; }
  .home-features { grid-template-columns: 1fr 1fr; margin: 0 32px; }
  .feat:nth-child(2n) { border-right: none; }
  .gallery-grid { grid-template-columns: 1fr 1fr; }
  .checkout-grid { grid-template-columns: minmax(0, 1fr); gap: 34px; }
  .co-summary { position: relative; top: 0; }
  .foot-inner { grid-template-columns: 1fr 1fr; }
  .foot-brand { grid-column: 1 / -1; }
  .qrp-inner { grid-template-columns: minmax(0, 1fr); gap: 40px; text-align: center; padding: 56px 32px; }
  .qrp-sub { margin-left: auto; margin-right: auto; }
  .qrp-feat { text-align: left; }
  .qrf-grid { grid-template-columns: 1fr; max-width: 440px; margin: 0 auto; }
  .qrf-plan.hot { transform: none; }
}
@media (max-width: 560px) {
  .topbar { padding: 16px 20px; flex-wrap: wrap; gap: 12px; }
  .brand .tag { display: none; }
  .topnav { gap: 16px; }
  .config-scroll { padding: 26px 20px; }
  .cart { padding: 14px 20px 16px; }
  .cart-main { gap: 12px; }
  .cart-total .ct-amount { font-size: 27px; gap: 8px; }
  .cart-main .cta { padding: 14px 20px; letter-spacing: 0.12em; }
  .opt-grid { grid-template-columns: 1fr 1fr; }
  .step.open .step-body { max-height: 1500px; }
  .stage { height: auto; padding: 62px 12px 96px; }
  .scene { transform: scale(0.82); }
  .hero-title { font-size: 46px; }
  .home-hero { padding: 40px 20px 64px; }
  .hero-stage { min-height: 0; }
  .home-features { grid-template-columns: 1fr; margin: 0 20px; }
  .feat { border-right: none; border-bottom: 1px solid var(--line); }
  .feat:last-child { border-bottom: none; }
  .gallery-grid { grid-template-columns: 1fr; }
  .home-gallery { padding: 50px 24px 10px; }
  .qrp-inner { padding: 48px 20px; }
  .qrfiyat { padding: 40px 20px 70px; }
  .co-fields { grid-template-columns: 1fr; }
  .checkout { padding: 24px 20px 70px; }
  .foot-inner { grid-template-columns: 1fr; gap: 30px; padding: 40px 24px 30px; }
  .foot-base { flex-direction: column; gap: 6px; padding: 16px 24px 22px; }
}
/* touch devices — hover yok: dokunmatikte hover'a bağlı geri bildirimleri kapat */
@media (hover: none) {
  .cta:hover, .ghost-btn:hover, .flip-btn:hover { transform: none; }
}
