/* MySpot · ana sayfa.
 *
 * Sayfanın zemini uygulamadaki pano ekranının "Gece yarısı" indigosu; sahne ise
 * gerçek bir pano: öğeler uygulamanın ölçü oranlarıyla (BoardElementMetrics)
 * çizilir, konumlar 0..1 normalize (BoardElement.x/y). Aynı işaretleme editörde,
 * telefondaki widget'ta ve küçük kopyada durur; boyutlar container birimleriyle
 * (cqh = içerik alanı yüksekliğinin %1'i) ölçeklenir.
 */

@font-face {
  font-family: "Sour Gummy";
  src: url("/fonts/SourGummy.woff2") format("woff2");
  font-weight: 100 900;
  font-stretch: 100% 125%;
  font-display: swap;
}

@font-face {
  font-family: "Nunito";
  src: url("/fonts/Nunito.woff2") format("woff2");
  font-weight: 200 1000;
  font-display: swap;
}

@font-face {
  font-family: "Amatic SC";
  src: url("/fonts/AmaticSC-Bold.woff2") format("woff2");
  font-weight: 700;
  font-display: swap;
}

@font-face {
  font-family: "Caveat";
  src: url("/fonts/Caveat.woff2") format("woff2");
  font-weight: 400 700;
  font-display: swap;
}

.home {
  --font-display: "Sour Gummy", "Nunito", ui-rounded, system-ui, sans-serif;
  --font-body: "Nunito", ui-rounded, -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
  --font-hand: "Caveat", "Nunito", cursive;

  /* Uygulamadaki öğe renkleri. */
  --note-ink: #2e2a26;
  --capsule-lilac: #e9cfea;
  --capsule-periwinkle: #d8dcfa;
  --song-lavender: #cbb8f0;
  --activity-tint: #efe3f7;
  --paper-white: #fffdf8;

  --gutter: clamp(1rem, 4vw, 2.5rem);
  --page: min(100% - 2 * var(--gutter), 76rem);
  --section-gap: clamp(5.5rem, 11vw, 9.5rem);

  font-family: var(--font-body);
  font-size: 1.0625rem;
  overflow-x: clip;
  scrollbar-color: var(--color-rule-strong) var(--color-paper);
  caret-color: var(--color-accent);
  accent-color: var(--color-accent);
}

.home ::selection {
  background: var(--color-accent);
  color: var(--color-accent-ink);
}

.home h1,
.home h2,
.home h3 {
  font-family: var(--font-display);
  font-weight: 700;
  font-stretch: 108%;
}

.home a { color: var(--color-link); text-underline-offset: 0.2em; }

.sr-only {
  position: absolute;
  width: 1px;
  height: 1px;
  overflow: hidden;
  clip-path: inset(50%);
  white-space: nowrap;
}

/* ---------- Üst şerit ---------- */

.topbar {
  display: flex;
  align-items: center;
  gap: var(--space-lg);
  width: var(--page);
  margin-inline: auto;
  padding-block: var(--space-md);
}

.home .brand {
  display: inline-flex;
  align-items: center;
  gap: 0.6rem;
  color: var(--color-ink);
  font-family: var(--font-display);
  font-size: 1.35rem;
  font-weight: 700;
  font-stretch: 110%;
  text-decoration: none;
}

.brand__icon {
  width: 2.25rem;
  height: 2.25rem;
  border-radius: 0.6rem;
  box-shadow: 0 0.25rem 0.75rem oklch(12% 0.05 274 / 0.5);
}

.topbar__nav {
  display: flex;
  gap: var(--space-lg);
  margin-inline-start: auto;
}

.topbar__nav a {
  color: var(--color-ink-soft);
  font-weight: 700;
  font-size: var(--text-sm);
  text-decoration: none;
}

.topbar__nav a:hover { color: var(--color-ink); text-decoration: underline; }

.home .language-switch__select {
  min-height: 2.5rem;
  padding-inline: 0.75rem;
  border-radius: var(--radius-capsule);
  font-weight: 700;
}

/* ---------- Açılış ---------- */

.hero {
  width: var(--page);
  margin-inline: auto;
  padding-block-start: clamp(2rem, 6vw, 4.5rem);
}

.hero__head {
  display: grid;
  grid-template-columns: minmax(0, 1.2fr) minmax(0, 1fr);
  align-items: end;
  gap: var(--space-xl) clamp(2rem, 6vw, 5rem);
}

.hero h1 {
  font-size: clamp(3.1rem, 8.4vw, 6rem);
  line-height: 0.9;
  letter-spacing: -0.025em;
  max-width: 11ch;
}

.hero h1 em {
  display: block;
  font-style: normal;
  color: var(--color-accent);
}

.hero__lede {
  margin: 0;
  max-width: 34ch;
  color: var(--color-ink-soft);
  font-size: clamp(1.125rem, 1.6vw, 1.3rem);
  line-height: 1.5;
}

.hero__actions {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: var(--space-sm) var(--space-md);
  margin-block-start: var(--space-lg);
}

.hero__meta {
  margin: 0;
  color: var(--color-muted);
  font-size: var(--text-sm);
}

.soon {
  display: inline-flex;
  align-items: center;
  gap: 0.65rem;
  margin: 0;
  padding: 0.7rem 1.2rem 0.7rem 1rem;
  border-radius: var(--radius-capsule);
  background: var(--color-accent);
  color: var(--color-accent-ink);
  font-weight: 800;
  box-shadow: 0 0.6rem 1.4rem -0.6rem oklch(8% 0.05 274 / 0.7);
}

.soon__dot {
  position: relative;
  width: 0.6rem;
  height: 0.6rem;
  border-radius: 50%;
  background: var(--color-accent-ink);
}

.soon__dot::after {
  content: "";
  position: absolute;
  inset: 0;
  border-radius: 50%;
  border: 2px solid var(--color-accent-ink);
  animation: soon-ping 2.4s var(--ease-out) infinite;
}

@keyframes soon-ping {
  from { transform: scale(1); opacity: 0.7; }
  to { transform: scale(2.6); opacity: 0; }
}

/* ---------- Sahne: editör panosu + partnerin ana ekranı ---------- */

.stage {
  position: relative;
  display: grid;
  grid-template-columns: minmax(0, 1fr) clamp(15rem, 23vw, 18.5rem);
  align-items: start;
  gap: clamp(3rem, 8vw, 7rem);
  margin-block-start: clamp(3rem, 6vw, 4.5rem);
}

.stage figure { margin: 0; }

.stage__editor {
  /* Pano, telefondaki widget'la aynı hizaya iner; iplik yatay kalır. */
  padding-block-start: clamp(3.2rem, 5vw, 4.4rem);
}

.stage__label {
  display: flex;
  align-items: center;
  gap: 0.5rem;
  margin-block-end: var(--space-sm);
  color: var(--color-muted);
  font-size: var(--text-sm);
  font-weight: 700;
}

.stage__label svg {
  width: 1.2rem;
  height: 1.2rem;
  fill: none;
  stroke: var(--color-accent);
  stroke-width: 1.8;
  stroke-linecap: round;
  stroke-linejoin: round;
}

.stage__label--phone { justify-content: center; }

/* ---------- Pano (her üç kopya) ---------- */

.board {
  position: relative;
  /* Widget dış boyutu 364×170, köşe 24pt (BoardWidgetGeometry). */
  aspect-ratio: 364 / 170;
  /* Köşe 24pt: yatayda genişliğin, dikeyde yüksekliğin oranı. */
  border-radius: calc(24 / 364 * 100%) / calc(24 / 170 * 100%);
  background: #f6f1e6 url("/img/board-stripes.webp") center / cover;
  overflow: hidden;
}

.board__canvas {
  position: absolute;
  /* 16pt içerik kenar boşluğu → 332×138 öğe alanı. */
  inset: calc(16 / 170 * 100%) calc(16 / 364 * 100%);
  container-type: size;
}

.board--editor {
  box-shadow:
    0 1.5rem 3rem -1rem oklch(10% 0.05 274 / 0.65),
    0 0 0 1px oklch(100% 0 0 / 0.08);
}

.el {
  position: absolute;
  left: calc(var(--x) * 100%);
  top: calc(var(--y) * 100%);
  z-index: var(--z, 1);
  display: block;
  transform: translate(-50%, -50%) rotate(calc(var(--r, 0) * 1rad)) scale(calc(var(--s, 1) * var(--lift, 1)));
  transition: transform 260ms var(--ease-out), filter 260ms var(--ease-out);
  -webkit-user-select: none;
  user-select: none;
}

.el img {
  display: block;
  width: 100%;
  height: auto;
  pointer-events: none;
}

/* Konumlar uygulamanın onboarding "hoş geldin" sahnesinden (OnboardingSampleBoards). */
[data-id="photo"] { --x: 0.125; --y: 0.6; --s: 1.17; --r: -0.19; --z: 1; }
[data-id="camera"] { --x: 0.2; --y: 0.12; --s: 1.05; --r: -0.04; --z: 2; }
[data-id="note"] { --x: 0.47; --y: 0.2; --s: 1; --r: -0.03; --z: 3; }
[data-id="mood"] { --x: 0.41; --y: 0.8; --s: 1.05; --z: 4; }
[data-id="activity"] { --x: 0.74; --y: 0.2; --s: 1.35; --z: 5; }
[data-id="dream"] { --x: 0.82; --y: 0.74; --s: 1.28; --r: 0.04; --z: 6; }
[data-id="sparkles"] { --x: 0.955; --y: 0.52; --s: 0.57; --z: 7; }

.el--sticker { width: 38cqh; }
.el--mood { width: 24cqh; }

.el--photo {
  width: 56cqh;
  padding: 3cqh 3cqh 11cqh;
  border-radius: 1.4cqh;
  background: var(--paper-white);
  box-shadow: 0 0.8cqh 2cqh oklch(20% 0.04 274 / 0.28);
}

.el--photo img { border-radius: 2.25cqh; aspect-ratio: 1; object-fit: cover; }

.el__caption {
  position: absolute;
  inset: auto 0 1.6cqh;
  color: var(--note-ink);
  font-family: var(--font-hand);
  font-size: 6.4cqh;
  font-weight: 600;
  line-height: 1;
  text-align: center;
  white-space: nowrap;
}

.el--note {
  padding: 2.4cqh 4.4cqh;
  border-radius: 1.6cqh;
  background: var(--capsule-lilac);
  color: var(--note-ink);
  font-family: "Amatic SC", var(--font-hand);
  font-size: 11cqh;
  font-weight: 700;
  line-height: 0.95;
  text-align: center;
  white-space: pre;
  box-shadow: 0 0.6cqh 1.4cqh oklch(20% 0.04 274 / 0.18);
}

.el--activity {
  display: flex;
  align-items: center;
  gap: 1.4cqh;
  height: 17cqh;
  padding: 1.2cqh 3.4cqh 1.2cqh 1.2cqh;
  border-radius: 99cqh;
  background: var(--activity-tint);
  box-shadow: 0 0.6cqh 1.4cqh oklch(20% 0.04 274 / 0.18);
  white-space: nowrap;
}

.el--activity img { width: auto; height: 100%; }

.el__label {
  color: var(--note-ink);
  font-size: 5.2cqh;
  font-weight: 800;
  line-height: 1;
}

/* Editörde öğeler tutulabilir; seçim çerçevesi uygulamadaki gibi öğeyle döner. */
.board--editor .el {
  cursor: grab;
  touch-action: none;
}

.board--editor .el::after {
  content: "";
  position: absolute;
  inset: -1.8cqh;
  border: max(1.5px, 0.5cqh) dashed var(--color-accent);
  border-radius: 2.4cqh;
  opacity: 0;
  transition: opacity 180ms var(--ease-out);
  pointer-events: none;
}

.board--editor .el:hover::after,
.board--editor .el:focus-visible::after,
.board--editor .el.is-dragging::after { opacity: 1; }

.board--editor .el:focus-visible { outline: none; }

.board--editor .el.is-dragging {
  --lift: 1.06;
  cursor: grabbing;
  transition: filter 200ms var(--ease-out);
  filter: drop-shadow(0 2cqh 2.4cqh oklch(15% 0.05 274 / 0.35));
}

/* Açılış: öğeler sırayla panoya "basılır" (uygulamadaki vitrin gibi). Görünür
 * başlar, yalnızca biraz büyük ve eğik durur, sonra yerine oturur. */
@media (prefers-reduced-motion: no-preference) {
  .board--editor .el { animation: press-in 720ms var(--ease-out) backwards; }
  .board--editor [data-id="photo"] { animation-delay: 150ms; }
  .board--editor [data-id="camera"] { animation-delay: 260ms; }
  .board--editor [data-id="note"] { animation-delay: 370ms; }
  .board--editor [data-id="mood"] { animation-delay: 480ms; }
  .board--editor [data-id="activity"] { animation-delay: 590ms; }
  .board--editor [data-id="dream"] { animation-delay: 700ms; }
  .board--editor [data-id="sparkles"] { animation-delay: 810ms; }
}

@keyframes press-in {
  from {
    transform: translate(-50%, -50%) rotate(calc(var(--r, 0) * 1rad + 7deg)) scale(calc(var(--s, 1) * 1.18));
    filter: drop-shadow(0 3cqh 3cqh oklch(15% 0.05 274 / 0.3));
  }
}

/* ---------- Telefon ---------- */

.stage__phone { position: relative; z-index: 1; }

.phone {
  position: relative;
  aspect-ratio: 393 / 852;
  padding: 3.4%;
  border-radius: 15% / 7%;
  background: oklch(14% 0.03 274);
  box-shadow:
    inset 0 0 0 1.5px oklch(40% 0.04 274),
    0 2.5rem 4rem -1.5rem oklch(8% 0.05 274 / 0.8);
}

.phone__screen {
  position: relative;
  height: 100%;
  overflow: hidden;
  container-type: inline-size;
  border-radius: 12.5% / 5.8%;
  /* Duvar kâğıdı: uygulamanın örnek fotoğrafı (pastel akşam, dağ silueti). */
  background: oklch(70% 0.07 290) url("/img/photo-dusk.webp") center 30% / cover;
  color: #fff;
}

.phone__status {
  display: flex;
  align-items: center;
  justify-content: space-between;
  height: 14cqw;
  padding-inline: 8cqw 6.5cqw;
  font-size: 4.2cqw;
  font-weight: 800;
}

.phone__island {
  position: absolute;
  top: 3cqw;
  left: 50%;
  width: 31cqw;
  height: 9cqw;
  border-radius: 99px;
  background: #000;
  transform: translateX(-50%);
}

.phone__bars { width: 12cqw; fill: currentColor; }

.board--widget {
  width: 92.6cqw;
  margin: 3cqw auto 0;
  box-shadow: 0 1.5cqw 4cqw oklch(15% 0.05 274 / 0.25);
}

.board--widget .el,
.board--mini .el { transition: transform 420ms var(--ease-out), left 520ms var(--ease-out), top 520ms var(--ease-out); }

.board--widget.is-updated { animation: widget-refresh 900ms var(--ease-out); }

@keyframes widget-refresh {
  0% { box-shadow: 0 0 0 0 oklch(93% 0.155 122 / 0.9), 0 1.5cqw 4cqw oklch(15% 0.05 274 / 0.25); }
  100% { box-shadow: 0 0 0 5cqw oklch(93% 0.155 122 / 0), 0 1.5cqw 4cqw oklch(15% 0.05 274 / 0.25); }
}

.phone__caption {
  margin: 1.6cqw 0 0;
  font-size: 3.2cqw;
  font-weight: 700;
  text-align: center;
  text-shadow: 0 1px 2px oklch(20% 0.05 274 / 0.4);
}

.phone__grid {
  display: grid;
  grid-template-columns: repeat(4, 16cqw);
  justify-content: space-between;
  row-gap: 7cqw;
  padding: 6cqw 7.5cqw 0;
}

.app {
  display: grid;
  place-items: center;
  aspect-ratio: 1;
  border-radius: 23%;
  background: oklch(100% 0 0 / 0.2);
  box-shadow: inset 0 0 0 1px oklch(100% 0 0 / 0.18);
  overflow: hidden;
}

.app svg {
  width: 58%;
  fill: none;
  stroke: #fff;
  stroke-width: 1.7;
  stroke-linecap: round;
  stroke-linejoin: round;
}

.app img { width: 100%; height: 100%; object-fit: cover; }
.app--myspot { background: none; box-shadow: 0 1cqw 2cqw oklch(20% 0.05 274 / 0.35); }
.app--a { background: oklch(72% 0.08 240 / 0.55); }
.app--c { background: oklch(78% 0.1 150 / 0.5); }
.app--e { background: oklch(80% 0.1 70 / 0.5); }
.app--g { background: oklch(66% 0.14 10 / 0.5); }
.app--i { background: oklch(80% 0.14 145 / 0.55); }

.phone__dock {
  position: absolute;
  inset: auto 3.5cqw 3.5cqw;
  display: grid;
  grid-template-columns: repeat(4, 16cqw);
  justify-content: space-between;
  padding: 4cqw 4cqw;
  border-radius: 9cqw;
  background: oklch(100% 0 0 / 0.18);
  backdrop-filter: blur(6px);
}

/* ---------- İplik: yayın editörden widget'a gider ---------- */

.thread {
  position: absolute;
  inset: 0;
  z-index: 2;
  width: 100%;
  height: 100%;
  overflow: visible;
  pointer-events: none;
}

.thread__path {
  fill: none;
  stroke: var(--color-rule-strong);
  stroke-width: 2.5;
  stroke-linecap: round;
  stroke-dasharray: 0.5 9;
  transition: stroke 300ms var(--ease-out);
}

.thread.is-live .thread__path { stroke: var(--color-accent); }

.thread__bead {
  fill: var(--color-accent);
  stroke: var(--color-paper);
  stroke-width: 3;
  opacity: 0;
}

.thread.is-live .thread__bead { opacity: 1; }

/* ---------- Bölüm başlıkları ---------- */

.section-title {
  max-width: 18ch;
  font-size: clamp(2.2rem, 5vw, 3.6rem);
  line-height: 0.98;
  letter-spacing: -0.02em;
}

/* ---------- Nasıl çalışır ---------- */

.how {
  width: var(--page);
  margin: var(--section-gap) auto 0;
}

.steps {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: var(--space-xl) clamp(1.5rem, 4vw, 3.5rem);
  margin: clamp(2.5rem, 5vw, 4rem) 0 0;
  padding: 0;
  list-style: none;
}

.step h3 {
  margin-block-start: var(--space-lg);
  font-size: 1.5rem;
  line-height: 1.1;
}

.step p {
  margin: var(--space-xs) 0 0;
  max-width: 34ch;
  color: var(--color-muted);
}

.step__art {
  display: grid;
  place-items: center start;
  height: 9rem;
}

.step__art--code {
  grid-auto-flow: column;
  justify-content: start;
  gap: 0.4rem;
}

.step__art--code span {
  display: grid;
  place-items: center;
  width: 2.35rem;
  height: 3rem;
  border-radius: 0.6rem;
  background: var(--color-paper-3);
  color: var(--color-ink);
  font-size: 1.5rem;
  font-weight: 900;
  font-variant-numeric: tabular-nums;
}

.step__art--code span:nth-child(3) { margin-inline-end: 0.5rem; }

.step__art--code .is-caret {
  position: relative;
  box-shadow: inset 0 0 0 2px var(--color-accent);
}

.step__art--code .is-caret::after {
  content: "";
  position: absolute;
  right: 0.45rem;
  width: 2px;
  height: 1.4rem;
  background: var(--color-accent);
  animation: caret 1.1s steps(1) infinite;
}

@keyframes caret { 50% { opacity: 0; } }

.select-box {
  position: relative;
  display: block;
  margin-inline-start: 1.5rem;
  width: 6.5rem;
  transform: rotate(-8deg);
  outline: 2px dashed var(--color-accent);
  outline-offset: 0.35rem;
  border-radius: 0.5rem;
}

.select-box img { display: block; width: 100%; }

.select-box i {
  position: absolute;
  width: 0.7rem;
  height: 0.7rem;
  border: 2px solid var(--color-accent);
  border-radius: 50%;
  background: var(--color-paper-2);
}

.select-box i:nth-of-type(1) { top: -0.75rem; left: -0.75rem; }
.select-box i:nth-of-type(2) { top: -0.75rem; right: -0.75rem; }
.select-box i:nth-of-type(3) { bottom: -0.75rem; left: -0.75rem; }
.select-box i:nth-of-type(4) { bottom: -0.75rem; right: -0.75rem; }

.select-box b {
  position: absolute;
  top: -2.2rem;
  left: 50%;
  width: 2px;
  height: 1.4rem;
  background: var(--color-accent);
}

.select-box b::before {
  content: "";
  position: absolute;
  top: -0.6rem;
  left: -0.45rem;
  width: 0.9rem;
  height: 0.9rem;
  border-radius: 50%;
  background: var(--color-accent);
}

.board--mini { width: min(100%, 17rem); box-shadow: 0 0.8rem 1.6rem -0.6rem oklch(10% 0.05 274 / 0.6); }

/* ---------- Panoya ne konur ---------- */

.catalog {
  width: var(--page);
  margin: var(--section-gap) auto 0;
}

.catalog__intro {
  display: grid;
  grid-template-columns: minmax(0, 1.1fr) minmax(0, 1fr);
  align-items: end;
  gap: var(--space-lg) clamp(2rem, 6vw, 5rem);
}

.catalog__intro p {
  margin: 0;
  max-width: 36ch;
  color: var(--color-ink-soft);
  font-size: 1.2rem;
}

.collage {
  display: grid;
  grid-template-columns: repeat(12, minmax(0, 1fr));
  grid-auto-rows: minmax(4rem, auto);
  gap: var(--space-xl) var(--space-lg);
  margin-block-start: clamp(3rem, 6vw, 5rem);
}

.piece {
  margin: 0;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: var(--space-md);
}

.piece--note { grid-column: 1 / span 4; grid-row: 1; align-self: end; }
.piece--moods { grid-column: 5 / span 4; grid-row: 1; }
.piece--photo { grid-column: 9 / span 4; grid-row: 1 / span 2; }
.piece--song { grid-column: 1 / span 5; grid-row: 2; }
.piece--activity { grid-column: 6 / span 3; grid-row: 2; align-self: center; }
.piece--todo { grid-column: 2 / span 4; grid-row: 3; }
.piece--stickers { grid-column: 6 / span 7; grid-row: 3; align-self: center; }

.hand {
  position: relative;
  max-width: 24ch;
  color: var(--color-ink-soft);
  font-family: var(--font-hand);
  font-size: 1.45rem;
  font-weight: 600;
  line-height: 1.2;
  text-align: center;
}

.scribble {
  display: block;
  width: 2.6rem;
  margin: 0 auto 0.2rem;
  fill: none;
  stroke: var(--color-accent);
  stroke-width: 2;
  stroke-linecap: round;
  stroke-linejoin: round;
}

.scribble--up { transform: rotate(-110deg); }
.scribble--down { transform: rotate(-20deg) scaleY(-1); order: 0; }
.scribble--left { transform: rotate(160deg); }

.thing { transform: rotate(var(--tilt, 0deg)); }

.thing--note {
  --tilt: -3deg;
  padding: 0.7rem 1.4rem;
  border-radius: 0.6rem;
  background: var(--capsule-periwinkle);
  color: var(--note-ink);
  font-family: "Amatic SC", var(--font-hand);
  font-size: clamp(2rem, 3.2vw, 2.6rem);
  font-weight: 700;
  line-height: 1;
  text-align: center;
  box-shadow: 0 0.8rem 1.6rem -0.6rem oklch(8% 0.05 274 / 0.7);
}

.thing--moods {
  display: flex;
  justify-content: center;
}

.thing--moods img {
  width: clamp(3.8rem, 6.4vw, 5rem);
  margin-inline: -0.55rem;
  filter: drop-shadow(0 0.5rem 0.6rem oklch(8% 0.05 274 / 0.45));
}

.thing--moods img:nth-child(odd) { transform: translateY(0.9rem); }
.thing--moods img:nth-child(2) { position: relative; z-index: 1; width: clamp(4.6rem, 7.6vw, 6rem); }

.thing--photo {
  --tilt: 5deg;
  position: relative;
  width: min(100%, 16rem);
  padding: 0.85rem 0.85rem 3.4rem;
  border-radius: 0.4rem;
  background: var(--paper-white);
  box-shadow: 0 1.2rem 2.4rem -0.8rem oklch(8% 0.05 274 / 0.75);
}

.thing--photo img { display: block; width: 100%; border-radius: 0.6rem; aspect-ratio: 1; object-fit: cover; }

.thing--photo span {
  position: absolute;
  inset: auto 0 0.8rem;
  color: var(--note-ink);
  font-family: var(--font-hand);
  font-size: 1.7rem;
  font-weight: 600;
  text-align: center;
}

.thing--song {
  --tilt: -2deg;
  display: flex;
  align-items: center;
  gap: 0.9rem;
  width: min(100%, 21rem);
  padding: 0.75rem 1rem 0.75rem 0.75rem;
  border-radius: 1.2rem;
  background: var(--song-lavender);
  color: var(--note-ink);
  box-shadow: 0 1rem 2rem -0.8rem oklch(8% 0.05 274 / 0.7);
}

.thing--song img { width: 4.2rem; border-radius: 0.7rem; }
.song__text { display: grid; flex: 1; line-height: 1.2; }
.song__text b { font-size: 1.1rem; font-weight: 900; }
.song__text span { font-size: 0.95rem; font-weight: 600; opacity: 0.75; }
.song__play { width: 2.3rem; flex: none; }
.song__play circle { fill: var(--note-ink); }
.song__play path { fill: var(--song-lavender); }

.thing--activity {
  --tilt: 3deg;
  display: flex;
  align-items: center;
  gap: 0.6rem;
  padding: 0.45rem 1.2rem 0.45rem 0.45rem;
  border-radius: var(--radius-capsule);
  background: var(--activity-tint);
  color: var(--note-ink);
  font-weight: 800;
  font-size: 1.15rem;
  white-space: nowrap;
  box-shadow: 0 0.8rem 1.6rem -0.6rem oklch(8% 0.05 274 / 0.7);
}

.thing--activity img { width: 3.2rem; }

.thing--todo {
  --tilt: 2deg;
  width: min(100%, 16rem);
  padding: 1.1rem 1.25rem 1.25rem;
  border-radius: 1rem;
  background: var(--paper-white);
  color: var(--note-ink);
  box-shadow: 0 1rem 2rem -0.8rem oklch(8% 0.05 274 / 0.7);
}

.thing--todo b { display: block; font-size: 1.2rem; font-weight: 900; }

.thing--todo ul {
  display: grid;
  gap: 0.45rem;
  margin: 0.7rem 0 0;
  padding: 0;
  list-style: none;
  font-weight: 700;
}

.thing--todo li { display: flex; align-items: center; gap: 0.6rem; }
.thing--todo .is-done { opacity: 0.55; text-decoration: line-through; }

.tick {
  display: grid;
  place-items: center;
  width: 1.2rem;
  height: 1.2rem;
  flex: none;
  border: 2px solid var(--note-ink);
  border-radius: 0.35rem;
}

.is-done .tick { background: var(--note-ink); }
.tick svg { width: 0.8rem; fill: none; stroke: var(--paper-white); stroke-width: 2; stroke-linecap: round; stroke-linejoin: round; }

.thing--stickers {
  display: flex;
  justify-content: center;
  flex-wrap: wrap;
}

.thing--stickers img {
  width: clamp(5rem, 9vw, 7.5rem);
  margin-inline: -0.4rem;
  filter: drop-shadow(0 0.6rem 0.8rem oklch(8% 0.05 274 / 0.5));
}

.thing--stickers img:nth-child(1) { transform: rotate(-8deg); }
.thing--stickers img:nth-child(2) { transform: rotate(6deg) translateY(1rem); }
.thing--stickers img:nth-child(3) { transform: rotate(-4deg); }
.thing--stickers img:nth-child(4) { transform: rotate(9deg) translateY(0.8rem); }

/* ---------- Hediyeler ---------- */

.gifts {
  display: grid;
  grid-template-columns: minmax(0, 0.9fr) minmax(0, 1.4fr);
  align-items: center;
  gap: var(--space-xl) clamp(2rem, 5vw, 4rem);
  width: var(--page);
  margin: var(--section-gap) auto 0;
  padding: clamp(2rem, 5vw, 4rem);
  border-radius: 2rem;
  background: oklch(18% 0.07 276);
  box-shadow: inset 0 0 0 1px var(--color-paper-3);
}

.gifts__copy p { margin: var(--space-md) 0 0; max-width: 34ch; color: var(--color-ink-soft); font-size: 1.15rem; }

.gifts__row {
  display: grid;
  grid-template-columns: repeat(5, minmax(0, 1fr));
  gap: var(--space-sm);
  margin: 0;
  padding: 0;
  list-style: none;
}

.gifts__row li {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 0.5rem;
  text-align: center;
  color: var(--color-muted);
  font-size: var(--text-sm);
  font-weight: 700;
}

.gifts__row img {
  width: 100%;
  filter: drop-shadow(0 0.9rem 1rem oklch(5% 0.05 274 / 0.6));
}

@media (prefers-reduced-motion: no-preference) {
  .gifts__row img { animation: bob 4.2s ease-in-out infinite; }
  .gifts__row li:nth-child(2) img { animation-delay: -0.8s; }
  .gifts__row li:nth-child(3) img { animation-delay: -1.6s; }
  .gifts__row li:nth-child(4) img { animation-delay: -2.4s; }
  .gifts__row li:nth-child(5) img { animation-delay: -3.2s; }
}

@keyframes bob {
  50% { transform: translateY(-0.5rem) rotate(-2deg); }
}

/* ---------- Gizlilik: lime alan ---------- */

.private {
  margin-block-start: var(--section-gap);
  padding: clamp(4rem, 9vw, 7rem) max(var(--gutter), (100% - 76rem) / 2);
  background: var(--color-accent);
  color: var(--color-accent-ink);
}

.private h2 {
  color: var(--color-accent-ink);
  font-size: clamp(3rem, 9vw, 6rem);
  line-height: 0.9;
  letter-spacing: -0.03em;
}

.private__grid {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: var(--space-xl) clamp(1.5rem, 4vw, 3.5rem);
  margin-block-start: clamp(2.5rem, 5vw, 4rem);
}

.private article {
  padding-block-start: var(--space-md);
  border-block-start: 2px solid var(--color-accent-ink);
}

.private h3 { color: var(--color-accent-ink); font-size: 1.45rem; line-height: 1.1; }
.private article p { margin: var(--space-xs) 0 0; max-width: 34ch; color: oklch(30% 0.075 274); font-weight: 600; }

.private__link { margin: clamp(2rem, 4vw, 3rem) 0 0; }
.home .private a { color: var(--color-accent-ink); font-weight: 800; text-decoration-thickness: 2px; }
.private :focus-visible { outline-color: var(--color-accent-ink); }
.private ::selection { background: var(--color-accent-ink); color: var(--color-accent); }

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

.premium {
  width: var(--page);
  margin: var(--section-gap) auto 0;
}

.premium__lede { margin: var(--space-md) 0 0; max-width: 40ch; color: var(--color-ink-soft); font-size: 1.2rem; }

.premium__list {
  display: flex;
  flex-wrap: wrap;
  gap: 0.6rem;
  margin: var(--space-xl) 0 0;
  padding: 0;
  list-style: none;
}

.premium__list li {
  padding: 0.55rem 1.1rem;
  border-radius: var(--radius-capsule);
  background: var(--color-paper-2);
  box-shadow: inset 0 0 0 1px var(--color-rule);
  color: var(--color-ink);
  font-weight: 700;
}

.premium__list li:nth-child(3n + 1) { background: oklch(88% 0.06 330); color: var(--note-ink); box-shadow: none; }
.premium__list li:nth-child(3n + 2) { background: var(--song-lavender); color: var(--note-ink); box-shadow: none; }

.premium__note { margin: var(--space-lg) 0 0; max-width: 60ch; color: var(--color-muted); font-size: var(--text-sm); }

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

.faq {
  width: var(--page);
  margin: var(--section-gap) auto 0;
}

.faq__list {
  max-width: 50rem;
  margin-block-start: clamp(2rem, 4vw, 3rem);
  border-block-start: 1px solid var(--color-rule);
}

.faq__item { border-block-end: 1px solid var(--color-rule); }

.faq__item summary {
  position: relative;
  padding: 1.25rem 3rem 1.25rem 0;
  color: var(--color-ink);
  font-size: 1.15rem;
  font-weight: 800;
  list-style: none;
  cursor: pointer;
}

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

.faq__item summary::before,
.faq__item summary::after {
  content: "";
  position: absolute;
  top: 50%;
  right: 0.5rem;
  width: 1rem;
  height: 2px;
  border-radius: 2px;
  background: var(--color-accent);
  transition: transform 260ms var(--ease-out);
}

.faq__item summary::after { transform: rotate(90deg); }
.faq__item[open] summary::after { transform: rotate(0deg); }
.faq__item summary:hover { color: var(--color-accent); }

.faq__item p { margin: 0 0 1.4rem; max-width: 62ch; color: var(--color-ink-soft); }

.faq__more { margin: var(--space-lg) 0 0; color: var(--color-muted); }

/* ---------- Kapanış ---------- */

.close {
  display: flex;
  flex-direction: column;
  align-items: center;
  width: var(--page);
  margin: var(--section-gap) auto;
  text-align: center;
}

.close__icon {
  width: clamp(7rem, 14vw, 9.5rem);
  border-radius: 22%;
  transform: rotate(-6deg);
  box-shadow: 0 1.5rem 3rem -1rem oklch(8% 0.05 274 / 0.8);
}

.close h2 {
  max-width: 16ch;
  margin-block: var(--space-xl) var(--space-lg);
  font-size: clamp(2.4rem, 6vw, 4.4rem);
  line-height: 0.95;
  letter-spacing: -0.02em;
}

.home .site-foot { width: var(--page); padding-inline: 0; }

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

@media (max-width: 60rem) {
  .hero__head,
  .catalog__intro { grid-template-columns: 1fr; }

  .steps,
  .private__grid { grid-template-columns: 1fr; }

  .step { display: grid; grid-template-columns: 9rem minmax(0, 1fr); column-gap: var(--space-lg); align-items: start; }
  .step__art { grid-row: span 2; height: 8rem; }
  .step h3 { margin: 0; align-self: end; }
  .step__art--code span { width: 1.2rem; height: 1.8rem; font-size: 0.9rem; border-radius: 0.35rem; }
  .step__art--code { gap: 0.15rem; }
  .step__art--code span:nth-child(3) { margin-inline-end: 0.2rem; }
  .step__art--code .is-caret::after { right: 0.2rem; height: 1rem; }
  .select-box { width: 4.2rem; }

  .gifts { grid-template-columns: 1fr; }

  .collage { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .collage .piece { grid-column: auto; grid-row: auto; align-self: start; }
  .piece--song,
  .piece--stickers,
  .piece--photo { grid-column: 1 / -1; }
}

@media (max-width: 48rem) {
  .topbar__nav { display: none; }
  .language-switch { margin-inline-start: auto; }

  .stage {
    grid-template-columns: 1fr;
    gap: 3.5rem;
  }

  .stage__editor { padding-block-start: 0; }

  .stage__phone {
    width: min(78%, 17rem);
    justify-self: center;
    /* Telefonun yalnızca üst yarısı: widget ve ilk ikon sırası. */
    max-height: 26rem;
    overflow: hidden;
    mask-image: linear-gradient(180deg, #000 72%, transparent);
  }

  .gifts__row { grid-template-columns: repeat(3, minmax(0, 1fr)); row-gap: var(--space-lg); }
  .thing--photo { width: min(100%, 13rem); }
}

@media (max-width: 30rem) {
  .step { grid-template-columns: 1fr; }
  .step__art { grid-row: auto; height: 8.5rem; margin-block-end: var(--space-md); }
  .step__art--code span { width: 2.1rem; height: 2.7rem; font-size: 1.3rem; }
  .step__art--code { gap: 0.35rem; }
  .select-box { width: 5.5rem; }
  .collage { grid-template-columns: 1fr; }
}
