/* The homepage's "your website" field and its card (site-field.js,
 * docs/decisions/2026-11-16-pole-twoja-strona.md). Prefix sf- keeps the page's
 * own CSS out. */

/* With scripts on, the field takes the hero's Sign up button's place from the
 * first paint. When site-field.js cannot start or does not load (its tag's
 * onerror), <html> gets sf-off and the button comes back; without scripts it
 * never leaves. */
@media(scripting:enabled){html:not(.sf-off) main .hero-stage .hero-content .actions>a.start-cta{display:none!important}}
.sf-sr{position:absolute;width:1px;height:1px;overflow:hidden;clip-path:inset(50%)}
.sf-face{display:block;width:100%;height:100%}
.sf-eyes{transform-origin:18px 18px;animation:sf-blink 4.6s infinite}
@keyframes sf-blink{0%,93%,100%{transform:scaleY(1)}96%{transform:scaleY(.08)}}

/* ── the field ── */
.hero-content .actions{gap:14px 16px;align-items:flex-start}
.hero-content .actions>.demo-play{align-self:flex-start;height:52px}
.sf-fieldwrap{width:560px;max-width:100%}
.sf-field{display:flex;align-items:center;gap:12px;width:100%;height:66px;padding:0 9px 0 13px;border-radius:10px;background:#fff;box-shadow:0 22px 54px #06183a47,0 2px 6px #06183a29;transition:box-shadow .25s,transform .25s cubic-bezier(.2,.7,.2,1);animation:sf-field-in .7s cubic-bezier(.2,.7,.2,1) .15s both}
@keyframes sf-field-in{from{opacity:0;transform:translateY(12px)}}
.sf-field:hover{transform:translateY(-1px)}
.sf-field:focus-within{transform:none;box-shadow:0 22px 54px #06183a47,0 0 0 2px #e2ff52}
.sf-field.is-wrong{box-shadow:0 22px 54px #06183a47,0 0 0 2px #ffb4a8}
.sf-lead{position:relative;width:40px;height:40px;flex-shrink:0}
.sf-lead .sf-face,.sf-lead-icon{position:absolute;inset:0;width:100%;height:100%;transition:opacity .3s,transform .35s cubic-bezier(.2,.7,.2,1)}
.sf-lead-icon{border-radius:10px;object-fit:contain;background:#f5f5f7;box-shadow:inset 0 0 0 1px #0000000f;opacity:0;transform:scale(.6)}
.sf-lead.has-icon .sf-face{opacity:0;transform:scale(.6)}
.sf-lead.has-icon .sf-lead-icon{opacity:1;transform:none}
.sf-inputwrap{position:relative;flex:1;min-width:0;height:100%;display:flex;align-items:center}
.sf-field input,.sf-retry input{width:100%;min-width:0;height:100%;border:0;outline:0;background:transparent;color:#1d1d1f;font:inherit;font-size:19px;font-weight:450;letter-spacing:-.025em}
.sf-ghost{display:flex;align-items:center;position:absolute;inset:0;pointer-events:none;color:#8e8e93;font-size:19px;font-weight:450;letter-spacing:-.025em;white-space:nowrap;overflow:hidden}
.sf-ghost.is-off{visibility:hidden}
.sf-ghost i{width:2px;height:24px;margin-left:2px;border-radius:1px;background:#1d1d1f;animation:sf-caret 1.05s steps(1) infinite}
@keyframes sf-caret{50%{opacity:0}}
.sf-field:focus-within .sf-ghost{color:#b4b4ba}
.sf-field:focus-within .sf-ghost i{display:none}
.sf-go{display:inline-flex;align-items:center;gap:14px;height:48px;padding:0 20px;border:0;border-radius:6px;background:#e2ff52;color:#202022;font:inherit;font-size:15px;font-weight:500;letter-spacing:-.02em;white-space:nowrap;cursor:pointer;transition:background .2s}
.sf-go:hover{background:#d3f33d}
.sf-go:focus-visible{outline:2px solid #202022;outline-offset:2px}
.sf-go .ui-icon{width:15px;height:15px;transition:transform .25s cubic-bezier(.2,.7,.2,1)}
.sf-go:hover .ui-icon{transform:translate(2px,-2px)}
.sf-hint{margin:14px 0 0;font-size:14px;line-height:1.5;color:#ffffffe0}

/* ── the card ── */
/* --sf-below: how much of the hero lies under the fold when the card opens
   (site-field.js); the card is laid out in the part that is on screen. */
.sf-reveal{position:absolute;inset:0;z-index:6;box-sizing:border-box;padding-bottom:var(--sf-below,0px);container-type:size;display:grid;place-items:center}
.sf-reveal[hidden]{display:none}
.sf-panel{position:relative;display:grid;grid-template-columns:minmax(0,1fr) 596px;grid-template-rows:1fr auto;width:min(100cqw - 96px,1120px);max-height:calc(100cqh - 132px);margin-top:26px;overflow:auto;border-radius:14px;background:#fff;color:#1d1d1f;box-shadow:0 30px 80px #0008,0 0 0 1px #ffffff14;animation:sf-rise .35s cubic-bezier(.2,.7,.2,1)}
.sf-panel.is-failed{display:block;width:min(100cqw - 96px,760px)}
@keyframes sf-rise{from{opacity:0;transform:translateY(14px)}}

.sf-firsty{display:flex;align-items:center;gap:12px}
.sf-firsty .sf-face{width:36px;height:36px;flex-shrink:0}
.sf-firsty p{margin:0;font-size:15px;line-height:1.4;color:#68686e}
.sf-firsty b{font-weight:500;color:#1d1d1f}
.is-reading .sf-firsty .sf-face{animation:sf-nod 1.6s ease-in-out infinite}
@keyframes sf-nod{50%{transform:translateY(-3px)}}

/* left: what Firsty read */
.sf-brand{display:flex;flex-direction:column;grid-row:1/3;min-width:0;padding:26px 32px 32px}
.sf-name{display:flex;align-items:center;gap:16px;min-width:0;margin-top:26px}
.sf-name strong{font-size:38px;font-weight:600;line-height:1.05;letter-spacing:-.045em;overflow:hidden;text-overflow:ellipsis;white-space:nowrap}
.sf-logo{display:grid;place-items:center;width:58px;height:58px;flex-shrink:0;border-radius:14px;overflow:hidden;background:#f5f5f7;box-shadow:inset 0 0 0 1px #0000000f}
.sf-logo img{width:100%;height:100%;object-fit:contain}
.sf-mono{color:#fff;font-size:27px;font-weight:600;box-shadow:none}
.sf-line{margin:18px 0 0;font-size:17px;line-height:1.45;letter-spacing:-.015em;color:#3a3a3c;display:-webkit-box;-webkit-line-clamp:3;-webkit-box-orient:vertical;overflow:hidden}
.sf-swatches{display:flex;gap:8px;margin-top:22px}
.sf-swatches span{width:40px;height:40px;border-radius:10px;box-shadow:inset 0 0 0 1px #0000000f}
.sf-pictures{display:grid;grid-template-columns:repeat(3,minmax(0,1fr));gap:10px;margin-top:auto;padding-top:26px}
.sf-pictures span{aspect-ratio:4/5;border-radius:10px;overflow:hidden;background:#f5f5f7}
.sf-pictures img{width:100%;height:100%;object-fit:cover;display:block}

/* right: the skill Firsty runs next */
.sf-stage{display:flex;flex-direction:column;min-width:0;padding:26px 32px 32px;background:#f5f5f7}
.sf-stage-title{display:block;margin-top:22px;font-size:38px;font-weight:600;line-height:1.05;letter-spacing:-.05em}
.sf-skill{display:flex;align-items:center;gap:13px;width:fit-content;max-width:100%;margin-top:18px;padding:7px 20px 7px 7px;border-radius:13px;background:#fff;box-shadow:0 1px 2px #0000000d,0 0 0 1px #0000000a}
.sf-skill img{width:48px;height:48px;border-radius:8px;object-fit:cover;flex-shrink:0}
.sf-skill b{display:block;font-size:16px;font-weight:600;letter-spacing:-.025em}
.sf-skill small{display:block;margin-top:3px;font-size:13px;color:#68686e}
.sf-slots{display:grid;grid-template-columns:repeat(3,minmax(0,1fr));gap:12px;margin-top:22px}
.sf-slot,.sf-slots .sf-sk{position:relative;aspect-ratio:4/5;border-radius:10px;overflow:hidden}
.sf-slot{background:var(--ground);box-shadow:0 14px 30px #1d1d1f1f;opacity:0;transform:translateY(10px) scale(.98);transition:opacity .45s,transform .45s cubic-bezier(.2,.7,.2,1)}
.sf-slot.is-in{opacity:1;transform:none}
.sf-slot-pic{position:absolute;left:0;width:100%;object-fit:cover}
.sf-slot.is-low .sf-slot-pic{top:0;height:60%}
.sf-slot.is-high .sf-slot-pic{bottom:0;height:60%}
.sf-slot.is-full .sf-slot-pic{top:0;height:100%}
.sf-slot.is-full::after{content:'';position:absolute;inset:35% 0 0;background:linear-gradient(#0000,#000a)}
.sf-slot-words{position:absolute;left:14px;right:14px;z-index:1;display:grid;gap:7px;justify-items:start}
.sf-slot.is-low .sf-slot-words,.sf-slot.is-full .sf-slot-words,.sf-slot.no-pic .sf-slot-words{bottom:14px}
.sf-slot.is-high:not(.no-pic) .sf-slot-words{top:46px}
.sf-slot-words i{display:block;width:100%;height:9px;border-radius:5px;background:#fff}
.sf-slot-words i+i{width:62%}
.sf-slot-words b{display:block;width:44px;height:14px;margin-top:5px;border-radius:7px;background:#fff;opacity:.55}
.sf-slot.on-light:not(.is-full) .sf-slot-words i,.sf-slot.on-light:not(.is-full) .sf-slot-words b{background:#1d1d1f}
.sf-slot-logo{position:absolute;z-index:1;top:12px;left:12px;width:26px;height:26px;border-radius:7px;overflow:hidden;background:#fff;box-shadow:0 1px 4px #0003}
.sf-slot-logo img{width:100%;height:100%;object-fit:contain;display:block}
/* The way on is the card's own last row, not a part of the column above it:
   in the stacked card it stays at the card's bottom edge however far the
   card is scrolled. */
.sf-panel.is-done .sf-stage{padding-bottom:0}
.sf-run{display:flex;align-items:center;gap:16px;grid-column:2;padding:24px 32px 32px;background:#f5f5f7}
.sf-run .sf-signup{margin:0;white-space:nowrap}
.sf-run>span{font-size:13px;color:#68686e}

/* each part arrives on its own */
.sf-step{opacity:0;transform:translateY(8px);transition:opacity .4s,transform .4s cubic-bezier(.2,.7,.2,1)}
.sf-step.is-in{opacity:1;transform:none}

/* placeholders stand where every part will land, from the first moment */
.sf-sk{display:block;background:linear-gradient(100deg,#ececf0 30%,#f7f7f9 50%,#ececf0 70%);background-size:300% 100%;animation:sf-shimmer 1.4s linear infinite;box-shadow:none}
.sf-stage .sf-sk{background-image:linear-gradient(100deg,#e6e6ea 30%,#efeff2 50%,#e6e6ea 70%)}
@keyframes sf-shimmer{from{background-position:100% 0}to{background-position:0 0}}
.sf-sk-name{width:220px;height:38px;border-radius:8px}
.sf-sk-line{width:100%;height:16px;border-radius:5px;margin-top:10px}
.sf-sk-line.short{width:62%}
.sf-swatches .sf-sk{width:40px;height:40px;border-radius:10px}
.sf-stage>.sf-sk-line.short{margin-top:10px;width:46%}
.sf-sk-title{width:78%;height:40px;margin-top:28px;border-radius:8px}
.sf-sk-chip{width:300px;max-width:100%;height:62px;margin-top:18px;border-radius:13px}
.sf-sk-button{width:210px;height:52px;margin-top:24px;border-radius:7px}

/* could not read */
.is-failed .sf-firsty{padding:26px 32px 0}
.sf-failed{padding:18px 32px 34px 80px}
.sf-failed p{margin:0 0 20px;font-size:19px;line-height:1.42;letter-spacing:-.02em}
.sf-retry{display:flex;align-items:center;gap:8px;height:60px;padding:0 6px 0 18px;border-radius:9px;box-shadow:inset 0 0 0 1px #d2d2d7}
.sf-retry:focus-within{box-shadow:inset 0 0 0 1.5px #1d1d1f}
.sf-plain{display:inline-block;margin-top:18px;padding:0;border:0;background:none;font:inherit;font-size:14px;color:#68686e;text-decoration:underline;text-underline-offset:3px;cursor:pointer}
.sf-plain:focus-visible{outline:2px solid #1d1d1f;outline-offset:3px;border-radius:2px}
/* the site is there but shut: the way on is sign-up, with the website carried along */
.sf-go-on{display:flex;align-items:center;gap:16px}
.sf-go-on .sf-signup{margin:0;white-space:nowrap}
.sf-go-on>span{font-size:13px;color:#68686e}
.sf-plain:hover{color:#1d1d1f}

/* a low screen: tighter, so the whole card still fits */
@media(max-height:820px) and (min-width:1101px){
  .sf-panel{max-height:calc(100cqh - 104px);margin-top:44px}
  .sf-brand,.sf-stage{padding:20px 28px 24px}
  .sf-name{margin-top:18px}
  .sf-name strong,.sf-stage-title{font-size:32px}
  .sf-logo{width:50px;height:50px;border-radius:12px}
  .sf-line{font-size:16px;margin-top:14px;-webkit-line-clamp:2}
  .sf-swatches{margin-top:16px}
  .sf-pictures{padding-top:18px}
  .sf-pictures span{aspect-ratio:1}
  .sf-stage-title{margin-top:16px}
  .sf-skill{margin-top:14px}
  .sf-slots{margin-top:16px;gap:10px}
  .sf-slot,.sf-slots .sf-sk{aspect-ratio:1}
  .sf-run{padding:18px 28px 24px}
}

/* narrower than a laptop: the two parts stack, the button stays in view */
@media(max-width:1100px){
  .sf-panel{display:block;width:min(100cqw - 40px,640px);max-height:calc(100cqh - 110px);margin-top:40px}
  .sf-brand{padding:22px 24px 24px}
  .sf-name{margin-top:18px}
  .sf-name strong{font-size:30px}
  .sf-logo{width:48px;height:48px;border-radius:12px}
  .sf-line{font-size:16px;margin-top:12px;-webkit-line-clamp:2}
  .sf-swatches{margin-top:16px}
  .sf-swatches span,.sf-swatches .sf-sk{width:34px;height:34px;border-radius:9px}
  .sf-pictures{padding-top:16px;gap:8px}
  .sf-pictures span{aspect-ratio:3/2}
  .sf-stage{padding:22px 24px 0}
  .sf-stage-title{font-size:32px;margin-top:14px}
  .sf-run{position:sticky;bottom:0;z-index:3;padding:24px 24px 20px;background:linear-gradient(#f5f5f700,#f5f5f7 14px)}
}
@media(max-width:640px){
  .sf-fieldwrap{width:100%}
  .sf-field{height:58px;gap:9px;padding:0 7px 0 10px;border-radius:9px}
  .sf-field input,.sf-ghost,.sf-retry input{font-size:16px}
  .sf-lead{width:32px;height:32px}
  .sf-ghost i{height:20px}
  .sf-go{height:44px;padding:0 12px;gap:8px;font-size:14px}
  .sf-hint{font-size:13px;margin-top:12px}
  .hero-content .actions>.demo-play{height:52px}
  .sf-panel,.sf-panel.is-failed{width:calc(100cqw - 24px);max-height:calc(100cqh - 96px);margin-top:44px}
  .sf-brand{padding:18px 18px 20px}
  .sf-name strong{font-size:26px}
  .sf-logo{width:44px;height:44px}
  .sf-line{font-size:15px}
  .sf-stage{padding:18px 18px 0}
  .sf-stage-title{font-size:28px}
  .sf-skill{width:auto}
  .sf-slots{gap:8px;margin-top:16px}
  .sf-slot{border-radius:8px}
  .sf-slot-words{left:8px;right:8px;gap:5px}
  .sf-slot-words i{height:6px}
  .sf-slot-words b{width:28px;height:9px;margin-top:3px}
  .sf-slot.is-low .sf-slot-words,.sf-slot.is-full .sf-slot-words,.sf-slot.no-pic .sf-slot-words{bottom:9px}
  .sf-slot.is-high:not(.no-pic) .sf-slot-words{top:34px}
  .sf-slot-logo{top:8px;left:8px;width:20px;height:20px;border-radius:5px}
  .sf-run{padding:22px 18px 16px}
  .sf-run .sf-signup,.sf-go-on .sf-signup{width:100%;justify-content:space-between}
  .sf-run>span,.sf-go-on>span{display:none}
  .is-failed .sf-firsty{padding:18px 18px 0}
  .sf-failed{padding:14px 18px 24px}
  .sf-failed p{font-size:16px}
  .sf-retry{height:54px;padding-left:14px}
}
@media(prefers-reduced-motion:reduce){
  .sf-panel,.sf-sk,.sf-field,.sf-eyes,.sf-ghost i,.is-reading .sf-firsty .sf-face{animation:none}
  .sf-step,.sf-slot{transition:none}
}
