/* Fitsmate site — page styles (gece + limon). Only what the kit does not draw: the lit night windows, the phone,
   the cut-out clothes, the wardrobe rail, the step scenes, the outfit demo and the soon cards.
   Tokens: cream page, night windows, one light (lime) that glows from the foot of every night window. */
:root { --lime: #d7f23c; --lime-rgb: 215 242 60; --night: #121210; --night-2: #1c1c19; --cream: #f3efe6; --cream-2: #e9e3d6; }

/* ---------------------------------------------------------------- the floating pill nav */
.nav { background: transparent; border-bottom: 0; box-shadow: none; }
.nav > .nav__bar { position: relative; color: var(--cream); margin-top: 12px; height: 60px; --ink: var(--cream); --muted: #bdb8ac; --line: rgb(255 255 255 / .12); }
.nav > .nav__bar::before { content: ""; position: absolute; inset: 0 -14px; z-index: -1; border-radius: 999px; background: rgb(18 18 16 / .94); box-shadow: 0 14px 34px -14px rgb(0 0 0 / .55); }
:focus-visible { outline-color: #141412 !important; }
.nav :focus-visible, .lit :focus-visible { outline: 2px solid #141412 !important; outline-offset: 2px; box-shadow: 0 0 0 5px var(--lime); }
.ground-inverse :focus-visible { outline-color: var(--lime) !important; }
.nav .nav__logo { color: var(--cream); }
.nav .mark--initial { background: var(--lime); color: var(--night); }
.nav .nav__link { color: #d8d3c7; }
.nav .nav__link:hover { color: #fff; }
.nav .btn--primary { background: var(--lime); color: var(--night); }
.nav .nav__toggle { color: var(--cream); border-color: rgb(255 255 255 / .2); }

/* ---------------------------------------------------------------- the lit night window (every dark frame) */
.lit { position: relative; overflow: hidden; color: var(--cream); --ground-bg: var(--night);
  background: radial-gradient(80% 70% at 50% 118%, rgb(var(--lime-rgb) / .95), rgb(var(--lime-rgb) / .38) 30%, rgb(var(--lime-rgb) / .06) 58%, transparent 74%), var(--night) !important; }
.lit::after { content: ""; position: absolute; inset: 0; pointer-events: none; border-radius: inherit; box-shadow: inset 0 0 0 1px rgb(255 255 255 / .07); }

/* the cut-out clothes: transparent pictures with a soft shadow on the ground */
.cut { display: block; object-fit: contain; filter: drop-shadow(0 22px 24px rgb(0 0 0 / .45)); max-width: none; }
.float { position: absolute; z-index: 2; transform: translate3d(var(--fx, 0px), var(--fy, 0px), 0); transition: transform .6s cubic-bezier(.2, .8, .2, 1); will-change: transform; }

/* ---------------------------------------------------------------- the phone (the app's own screens, live HTML) */
.phone { position: relative; z-index: 2; width: 300px; aspect-ratio: 300 / 620; border-radius: 48px; border: 11px solid #0a0a09; background: #e9e2d5; color: #1c1b18;
  padding: 46px 16px 16px; overflow: hidden; font-size: 13px; line-height: 1.35; box-shadow: 0 0 0 2px #2f2e2a, 0 40px 80px -24px rgb(0 0 0 / .85); }
.phone::before { content: ""; position: absolute; top: 9px; left: 50%; width: 88px; height: 24px; margin-left: -44px; border-radius: 99px; background: #0a0a09; z-index: 2; }
.scr__date { color: #6b655a; font-size: 12px; }
.scr__h { margin: 2px 0 12px; font: 800 28px/1 var(--font-display); font-stretch: 66%; letter-spacing: -.01em; }
.scr__wx { display: flex; align-items: center; gap: 10px; background: #fff; border-radius: 16px; padding: 10px 12px; margin-bottom: 10px; }
.scr__wx strong { font: 800 30px/1 var(--font-display); font-stretch: 66%; }
.scr__wx svg { width: 30px; height: 30px; flex: none; }
.scr__card { background: #fff; border-radius: 16px; padding: 12px; }
.scr__k { display: block; font: 700 10px/1.3 var(--font-text); font-stretch: 125%; letter-spacing: .1em; color: #5b6b2f; margin-bottom: 6px; }
.scr__fit { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); grid-template-rows: minmax(0, 1fr); gap: 4px; height: 150px; align-items: end; overflow: hidden; }
.scr__fit img { width: 100%; height: 100%; min-height: 0; max-height: 100%; object-fit: contain; object-position: 50% 100%; filter: drop-shadow(0 6px 6px rgb(0 0 0 / .18)); }
/* one scale for every outfit: the top a little shorter than the trousers, shoes at the hem (the pictures are trimmed to the piece) */
.scr__fit img:nth-child(1) { height: 80%; } .scr__fit img:nth-child(2) { height: 100%; } .scr__fit img:nth-child(3) { height: 40%; }
.scr__grid { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 6px; list-style: none; margin: 10px 0 0; padding: 0; }
.scr__grid li { background: #fff; border-radius: 12px; padding: 6px; aspect-ratio: 1; transition: transform .2s ease; }
.scr__grid li:hover { transform: translateY(-2px); }
.scr__grid li[hidden] { display: none; }
.scr__grid img { width: 100%; height: 100%; object-fit: contain; }
@media (prefers-reduced-motion: no-preference) { .scr__grid li.is-in { animation: tile-in .4s cubic-bezier(.2, .8, .2, 1) both; animation-delay: calc(var(--i, 0) * 40ms); } }
@keyframes tile-in { from { opacity: 0; transform: scale(.85); } to { opacity: 1; transform: none; } }
.scr__rows { background: #fff; border-radius: 16px; padding: 4px 12px; margin-top: 10px; }
.scr__row { display: flex; justify-content: space-between; gap: 8px; padding: 8px 0; border-top: 1px solid rgb(28 27 24 / .08); }
.scr__row:first-child { border-top: 0; }
.scr__row em { font-style: normal; font: 700 10px/1.6 var(--font-text); font-stretch: 125%; letter-spacing: .1em; color: #6b655a; }
.scr__row b { font-weight: 600; }
.scr__pic { height: 190px; display: grid; place-items: center; background: #fff; border-radius: 16px; }
.scr__pic img { height: 170px; }
.scr__score { display: flex; align-items: baseline; gap: 8px; }
.scr__score strong { font: 800 64px/1 var(--font-display); font-stretch: 66%; color: #1c1b18; }
.scr__score span { font: 700 10px/1.3 var(--font-text); font-stretch: 125%; letter-spacing: .1em; color: #6b655a; }
.scr__soon { position: absolute; top: 56px; right: 16px; padding: 5px 9px; border-radius: 99px; background: var(--lime); color: var(--night); font: 700 10px/1 var(--font-text); letter-spacing: .08em; }
/* a screen shown on a tab slides up into the phone */
@media (prefers-reduced-motion: no-preference) {
  [role="tabpanel"]:not([hidden]) .phone > * { animation: scr-in .55s cubic-bezier(.2, .8, .2, 1) both; }
  [role="tabpanel"]:not([hidden]) .phone > *:nth-child(2) { animation-delay: .05s; }
  [role="tabpanel"]:not([hidden]) .phone > *:nth-child(3) { animation-delay: .1s; }
  [role="tabpanel"]:not([hidden]) .phone > *:nth-child(4) { animation-delay: .15s; }
  [role="tabpanel"]:not([hidden]) .phone > *:nth-child(5) { animation-delay: .2s; }
  [role="tabpanel"]:not([hidden]) .float { animation: float-in .7s cubic-bezier(.2, .8, .2, 1) both .1s; }
}
@keyframes scr-in { from { opacity: 0; transform: translateY(18px); } to { opacity: 1; transform: none; } }
@keyframes float-in { from { opacity: 0; translate: 0 30px; } to { opacity: 1; translate: 0 0; } }

/* ---------------------------------------------------------------- hero: the phone rising out of the lit window */
.hero h1 { font-size: clamp(44px, 7.2vw, 104px); line-height: .9; letter-spacing: -.035em; }
.hero h1 mark { background: linear-gradient(transparent 60%, var(--lime) 60%, var(--lime) 92%, transparent 92%); color: inherit; padding-inline: .06em; }
.hero .pill { display: inline-flex; gap: 10px; align-items: center; padding: 6px 14px 6px 8px; border-radius: 99px; background: var(--cream-2); font-size: 14px; font-weight: 500; }
.hero .pill b { background: var(--night); color: var(--lime); padding: 4px 10px; border-radius: 99px; font: 700 11px/1.2 var(--font-text); letter-spacing: .06em; }
.hero--centred .hero__window.lit { background: radial-gradient(42% 70% at 50% 62%, rgb(var(--lime-rgb) / .55), rgb(var(--lime-rgb) / .14) 45%, transparent 75%), var(--night) !important; }
.hero__window > .ly-piece.hero__stage { top: 28px; height: 100%; width: 100%; left: 0; transform: none; }
.hero__stage .phone { margin: 0 auto; }
/* the pieces are width-limited here, so a shorter row drops the empty space above them and lifts them out of the fade */
.hero__stage .scr__fit { height: 112px; }
.hero__stage .float--a { left: 12%; right: auto; top: 24px; height: 250px; width: auto; }
.hero__stage .float--b { right: 2%; left: auto; top: 50px; height: auto; width: min(30%, 340px); }
.show__stage .float--a { right: auto; } .show__stage .float--b { left: auto; }

/* ---------------------------------------------------------------- the showcase: four tabs, one phone */
.show { border-radius: var(--r-lg); height: clamp(560px, 66svh, 640px); }
.show__tabs { position: absolute; z-index: 4; top: 22px; left: 50%; transform: translateX(-50%); display: flex; gap: 4px; padding: 5px; border-radius: 99px; background: rgb(255 255 255 / .08); backdrop-filter: blur(8px); }
.show__tabs [role="tab"] { all: unset; cursor: pointer; padding: 10px 18px; border-radius: 99px; color: #cfc9bc; font: 500 15px/1 var(--font-text); transition: background .25s ease, color .25s ease; }
.show__tabs [role="tab"]:hover { color: #fff; }
.show__tabs [role="tab"][aria-selected="true"] { background: var(--cream); color: var(--night); }
.show__tabs [role="tab"]:focus-visible { outline: 2px solid var(--lime); outline-offset: 2px; }
.show__stage { position: absolute; inset: 0; display: grid; place-items: start center; padding-top: 88px; }
.show__stage .phone { width: 280px; }
.show__stage .float--a { left: 8%; top: 120px; width: 230px; --r: -6deg; }
.show__stage .float--b { right: 9%; top: 110px; width: 200px; --r: 7deg; }

/* ---------------------------------------------------------------- the wardrobe rail (night): cards stand up as it enters */
#dolap .rail { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 16px; margin-top: var(--s-6); }
.rail__card { position: relative; height: clamp(200px, 29svh, 260px); border-radius: 20px; background: var(--night-2); overflow: hidden;
  transition: transform .35s cubic-bezier(.2, .8, .2, 1); box-shadow: inset 0 0 0 1px rgb(255 255 255 / .07); }
/* the lime glow lights only under the pointer (a gradient cannot fade, so it sits on a layer whose opacity does) */
.rail__card::before { content: ""; position: absolute; inset: 0; background: radial-gradient(80% 60% at 50% -20%, rgb(var(--lime-rgb) / .55), transparent 70%); opacity: 0; transition: opacity .3s ease; pointer-events: none; }
.rail__card:hover::before { opacity: 1; }
.rail__card img { transition: transform .5s cubic-bezier(.2, .8, .2, 1); }
.rail__card:hover img { transform: scale(1.04); }
.rail__card em { position: absolute; right: 12px; bottom: 10px; font: 700 10px/1.4 var(--font-text); font-stretch: 125%; letter-spacing: .1em; color: var(--lime); font-style: normal; }
.rail__card img { position: absolute; inset: 16px 16px 40px; width: calc(100% - 32px); height: calc(100% - 56px); }
.rail__card span { position: absolute; left: 8px; bottom: 8px; padding: 3px 6px; border-radius: 6px; background: var(--night-2); font: 600 13px/1.2 var(--font-text); color: #e4dfd3; }
.rail__card:hover { transform: translateY(-2px); }

/* ---------------------------------------------------------------- the steps (pinned-chapters): three night scenes */
/* the step change is slow and never washes out: the visuals cross over 1.2 s on a night frame, so no cream shows through mid-fade */
#nasil.is-live .mo-pc__visuals { background: var(--night); border-radius: var(--r-md); overflow: hidden; }
#nasil.is-live .mo-pc__visual { transition: opacity 1.2s ease, transform 1.8s cubic-bezier(.16, 1, .3, 1); }
#nasil.is-live .mo-pc__step p { transition: grid-template-rows .8s cubic-bezier(.2, .7, .2, 1), opacity .7s ease; }
#nasil.is-live .mo-pc__step h3, #nasil.is-live .mo-pc__step { transition: color .6s ease, border-color .6s ease; }
/* pinned, the steps sit just under the nav instead of in the middle of the screen: no empty band above the title */
main #nasil[data-moment].is-live > .mo-pc__grid { align-content: center; align-items: center; padding: calc(var(--nav, 72px) + var(--s-5)) 0 var(--s-6); }
/* the frame fills the screen's height (like the weather show's), so a tall window has no empty band under it */
#nasil.is-live .mo-pc__visual { aspect-ratio: auto; }
#nasil.is-live .mo-pc__steps { gap: var(--s-6); }
#nasil.is-live .mo-pc__step h3 { font-size: clamp(20px, 1.7vw, 28px); }
#nasil.is-live .mo-pc__step p { font-size: clamp(16px, 1.2vw, 19px); }
#nasil.is-live .mo-pc__visuals { aspect-ratio: auto; max-height: none; height: min(820px, calc(100svh - var(--nav, 72px) - var(--s-5) - var(--s-6))); }
#nasil .mo-pc__step h3 b { display: inline-grid; place-items: center; width: 30px; height: 30px; margin-right: 10px; border-radius: 50%; background: var(--lime); color: var(--night); font-size: 15px; vertical-align: 2px; }
#nasil .mo-pc__visual.mo-pc__visual--lit { background: radial-gradient(80% 70% at 50% 118%, rgb(var(--lime-rgb) / .9), rgb(var(--lime-rgb) / .25) 34%, transparent 70%), var(--night); align-items: center; }
.scene { position: relative; height: 80%; aspect-ratio: 4 / 5; max-width: 86%; }
.scene--cut .scene__photo, .scene--cut .scene__cut { position: absolute; inset: 0; border-radius: 18px; }
/* the cut-out is the same 500x500 frame as the photo (made from it, uncropped), so both layers share one sizing rule
   and the line only takes the background away: the sweater keeps its size on both sides */
.scene.scene--cut { aspect-ratio: 1; height: 74%; }
.scene--cut .scene__photo, .scene--cut .scene__cut { background: center / cover no-repeat; }
.scene--cut .scene__photo { clip-path: inset(0 0 0 var(--x, 50%)); }
.scene--cut .scene__line { position: absolute; top: -4%; bottom: -4%; left: var(--x, 50%); width: 3px; margin-left: -1.5px; background: var(--lime); box-shadow: 0 0 22px 6px rgb(var(--lime-rgb) / .75); }
/* the wipe follows the scroll: js/site.js sets --x from how far step 1 has been scrolled; at rest it stands half way */
@property --x { syntax: "<percentage>"; inherits: true; initial-value: 50%; }
.scene--tags { display: grid; place-items: center; }
.scene--tags .cut { max-height: 62%; max-width: 80%; width: auto; height: auto; position: absolute; top: 0; left: 50%; translate: -50% 0; }
/* the typed tags (js/site.js part 4): a caret blinks after the letters being written */
.scene--tags .scr__row b.is-typing::after { content: ""; display: inline-block; width: 2px; height: 1.05em; margin-left: 2px; vertical-align: -.15em; background: var(--night); animation: caret 1s steps(1) infinite; }
@keyframes caret { 50% { opacity: 0; } }
.scene--tags .scr__rows { position: absolute; left: 0; right: 0; bottom: 0; color: var(--night); box-shadow: 0 20px 40px -14px rgb(0 0 0 / .6); }
.scene--fit { display: grid; align-content: center; gap: 12px; }
.scene--fit .scr__wx { color: var(--night); }
.scene--fit .scr__card { color: var(--night); box-shadow: 0 20px 40px -14px rgb(0 0 0 / .6); }
.scene--fit .scr__fit { height: 190px; }
@media (prefers-reduced-motion: no-preference) {
  .mo-pc__visual.is-on .scene--fit .scr__fit img { animation: fly-in 1.3s cubic-bezier(.2, .9, .2, 1.15) both .3s; }
  .mo-pc__visual.is-on .scene--fit .scr__fit img:nth-child(2) { animation-delay: .6s; }
  .mo-pc__visual.is-on .scene--fit .scr__fit img:nth-child(3) { animation-delay: .9s; }
}
@keyframes fly-in { from { opacity: 0; transform: translateY(-40px) scale(.8) rotate(-6deg); } to { opacity: 1; transform: none; } }

/* ---------------------------------------------------------------- the outfit demo */
#sabah .try { align-items: stretch; }
.try__ctl { display: grid; gap: var(--s-6); align-content: start; }
.try__why { margin: 0; padding-top: var(--s-4); border-top: 2px solid var(--ink); max-width: 40ch; min-height: 6.4em; font-size: 17px; line-height: 1.5; }
.try__why b { display: block; font: 700 11px/1.4 var(--font-text); font-stretch: 125%; letter-spacing: .1em; color: var(--muted); margin-bottom: 4px; }
.try__stage { border-radius: var(--r-lg); padding: 22px 24px 28px; min-height: 520px; display: grid; grid-template-rows: auto 1fr; }
.try__top { display: flex; justify-content: space-between; align-items: center; gap: 12px; position: relative; z-index: 2; }
.try__top .scr__wx { color: var(--night); margin: 0; }
.try__label { font: 700 12px/1.3 var(--font-text); font-stretch: 125%; letter-spacing: .1em; color: var(--lime); }
.try__fit { position: relative; z-index: 2; display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 18px; align-items: start; align-self: end; padding-top: 20px; }
.try__item { display: grid; justify-items: center; gap: 10px; transition: opacity .22s ease, transform .35s cubic-bezier(.2, .8, .2, 1); }
.try__item img { height: 290px; width: 100%; }
.try__item span { font: 600 15px/1.2 var(--font-text); color: var(--cream); }
.try__item.is-out { opacity: 0; transform: translateY(-24px) scale(.96); }
.try__item.is-pre { opacity: 0; transform: translateY(40px); transition: none; }

/* ---------------------------------------------------------------- soon (night): two cards */
#fark .panel { --p-h: 400px; }
#fark .soon { display: block; margin: 0; color: var(--lime); font: 700 12px/1.4 var(--font-text); font-stretch: 125%; letter-spacing: .1em; }
#fark .stage { display: grid; place-items: center; }
.fit-me { display: grid; grid-template-columns: 1fr 1fr; gap: 18px; align-items: center; width: min(420px, 88%); }
.fit-me__look { display: grid; justify-items: center; }
.fit-me__look img { height: 150px; }
.fit-me__look img + img { height: 130px; margin-top: -14px; }
.fit-me .scr__card { color: var(--night); }
.meter { height: 6px; border-radius: 3px; background: #ece6da; overflow: hidden; margin: 8px 0 4px; }
.meter i { display: block; height: 100%; width: 92%; background: var(--night); transform-origin: 0 50%; }
.notes { display: flex; flex-wrap: wrap; gap: 6px; margin: 6px 0 2px; }
.notes i { font-style: normal; font: 600 13px/1 var(--font-text); padding: 8px 11px; border-radius: 99px; background: var(--night); color: var(--lime); }
.perfume { width: min(360px, 86%); color: var(--night); }

/* ---------------------------------------------------------------- questions: a stack of clothes beside them */
#kunye { --p-h: 540px; }
#kunye .stage { display: grid; place-items: center; }
.stack { position: relative; width: 340px; height: 300px; }
.stack .cut { position: absolute; width: auto; }
.stack .cut:nth-child(1) { height: 170px; left: 0; top: 0; }
.stack .cut:nth-child(2) { height: 190px; right: 0; top: 10px; }
.stack .cut:nth-child(3) { height: 100px; left: 50%; translate: -50% 0; bottom: 0; z-index: 2; }

/* ---------------------------------------------------------------- the close: lime word, lit foot */
.footer.closing { background: var(--night); }
.footer .close__word { color: var(--lime); }
.footer .btn--primary { background: var(--lime); color: var(--night); }

/* ---------------------------------------------------------------- smaller screens */
@media (max-width: 1023px) {
  #dolap .rail { grid-template-columns: repeat(4, minmax(0, 1fr)); }
  .hero__stage .float { display: none; }
  .show__stage .float--a { left: 2%; width: 170px; } .show__stage .float--b { right: 2%; width: 150px; }
  .try__item img { height: 220px; }
}
@media (max-width: 639px) {
  .nav > .nav__bar { height: 52px; margin-top: 8px; }
  .nav > .nav__bar::before { inset: 0 -10px; }
  .phone { width: 250px; border-radius: 40px; padding-top: 42px; }
  .show__tabs [role="tab"] { min-height: 44px; display: inline-flex; align-items: center; }
  #fark .panel { --p-h: 470px; }
  #kunye { --p-h: 900px; }
  .scr__fit { height: 120px; }
  .show { height: 600px; }
  .show__tabs { top: 14px; width: calc(100% - 24px); justify-content: space-between; }
  .show__tabs [role="tab"] { padding: 9px 11px; font-size: 13px; }
  .show__stage { padding-top: 72px; }
  .show__stage .float { display: none; }
  .show__stage .phone { width: 250px; }
  #dolap .rail { grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 10px; }
  #dolap .rail .rail__card:nth-child(n+7) { display: none; }
  .rail__card { height: 150px; }
  .rail__card img { inset: 10px 10px 34px; width: calc(100% - 20px); height: calc(100% - 44px); }
  .scene--tags .scr__row:nth-child(n+3) { display: none; }
  .scene--tags .cut { max-height: 52%; }
  .scene--fit .scr__wx { display: none; }
  .scene--fit .scr__fit { height: 120px; }
  .try__why { margin-bottom: var(--s-6); }
  .try__stage { min-height: 0; padding: 16px 12px 20px; }
  .try__top { flex-wrap: wrap; }
  .try__label { display: none; }
  .try__item img { height: 120px; }
  .try__item span { font-size: 13px; text-align: center; }
  .scr__wx strong { font-size: 24px; }
  .stack { transform: scale(.85); }
}
@media (prefers-reduced-motion: reduce) {
  .float, .rail__card, .try__item { transition: none; }
  .try__item.is-out { opacity: 1; transform: none; }
}

/* no play/pause discs on the page (Ali Berk, 28 Kasım: the scenes should not look like videos). The kit still adds them;
   they are hidden here. Under reduced motion nothing moves anyway */
.loop-pause { display: none !important; }

/* the moving colour ground (js/zemin.js): a canvas fixed behind everything; the body lets it show through */
body { background: transparent; }
html { background: #d6d4c4; }
.zemin { position: fixed; inset: 0; z-index: -1; width: 100vw; height: 100vh; max-width: none; pointer-events: none; }

/* the showcase's morning screen: three outfits, the first open, the others open on a click (js/site.js part 5) */
.show__fits { gap: 6px; }
.show__fits .scr__fit { height: 118px; }
.show__fits .hv__fit-head { padding: 9px 12px; }
