/* ==========================================================================
   Design system
   Everything raised on the page is a "slab": a white surface sitting on a
   solid bottom edge, lit from above. Pressable things move down onto their
   edge when tapped. That is the one idea the whole interface is built on.
   ========================================================================== */

:root {
  --paper:       #EDF2FA;
  --paper-deep:  #DCE6F8;
  --card:        #FFFFFF;

  --ink:         #0F1B33;
  --ink-soft:    #4C5D7D;
  --ink-faint:   #74879F;

  --brand:       #2E63F6;
  --brand-lift:  #4479FF;
  --brand-deep:  #1B3FB8;
  --brand-tint:  #E8EEFF;

  --insta:       #E1306C;
  --meta-blue:   #1877F2;

  --line:        #D9E2F3;
  --edge:        #C7D4EC;
  --danger:      #C42B47;
  --danger-tint: #FDEDEF;
  --ok:          #1F8A5B;

  --r-sm: 10px;
  --r-md: 16px;
  --r-lg: 22px;
  --r-xl: 28px;

  --display: "Sora", ui-sans-serif, system-ui, -apple-system, "Segoe UI", sans-serif;
  --body: ui-sans-serif, system-ui, -apple-system, "Segoe UI", Roboto, "Helvetica Neue", Arial, sans-serif;

  --shell: 1080px;
}

*, *::before, *::after { box-sizing: border-box; }

html { -webkit-text-size-adjust: 100%; }

body {
  margin: 0;
  font-family: var(--body);
  font-size: 16px;
  line-height: 1.65;
  color: var(--ink);
  background:
    radial-gradient(120% 70% at 50% -10%, #FFFFFF 0%, rgba(255,255,255,0) 55%),
    linear-gradient(180deg, var(--paper) 0%, var(--paper-deep) 100%);
  background-attachment: fixed;
  overflow-x: hidden;
}

img, svg, video { max-width: 100%; display: block; }

a { color: var(--brand-deep); text-decoration-thickness: 1px; text-underline-offset: 2px; }
a:hover { color: var(--brand); }

h1, h2, h3, .brand__name, .btn, .step__no {
  font-family: var(--display);
  font-weight: 700;
  letter-spacing: -0.015em;
  line-height: 1.2;
}

:focus-visible {
  outline: 3px solid var(--brand);
  outline-offset: 2px;
  border-radius: 6px;
}

.sr-only {
  position: absolute; width: 1px; height: 1px;
  padding: 0; margin: -1px; overflow: hidden;
  clip: rect(0 0 0 0); white-space: nowrap; border: 0;
}

.hp { position: absolute; left: -9999px; opacity: 0; height: 0; }

.skip {
  position: absolute; left: 16px; top: -60px; z-index: 60;
  background: var(--card); padding: 10px 16px; border-radius: var(--r-sm);
  transition: top .15s ease;
}
.skip:focus { top: 12px; }

.shell {
  width: 100%;
  max-width: var(--shell);
  margin-inline: auto;
  padding-inline: 18px;
}

/* --------------------------------------------------------------------------
   The slab: the one shared elevation recipe
   -------------------------------------------------------------------------- */

.slab {
  background: var(--card);
  border-radius: var(--r-lg);
  box-shadow:
    inset 0 1px 0 #FFFFFF,
    0 2px 0 var(--edge),
    0 3px 8px -4px rgba(15, 27, 51, .16),
    0 18px 34px -22px rgba(15, 27, 51, .45);
}

.slab--tall {
  border-radius: var(--r-xl);
  box-shadow:
    inset 0 1px 0 #FFFFFF,
    0 4px 0 var(--edge),
    0 8px 18px -8px rgba(15, 27, 51, .18),
    0 34px 60px -30px rgba(27, 63, 184, .55);
}

/* --------------------------------------------------------------------------
   Header
   -------------------------------------------------------------------------- */

.masthead {
  position: sticky;
  top: 0;
  z-index: 40;
  background: rgba(237, 242, 250, .88);
  backdrop-filter: saturate(140%) blur(10px);
  border-bottom: 1px solid rgba(217, 226, 243, .9);
}

.masthead__row {
  display: flex;
  align-items: center;
  gap: 12px;
  min-height: 64px;
}

.brand {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  text-decoration: none;
  color: var(--ink);
  margin-inline-end: auto;
}

.brand__mark {
  display: grid;
  place-items: center;
  width: 36px; height: 36px;
  border-radius: 12px;
  color: #fff;
  background: linear-gradient(160deg, var(--brand-lift), var(--brand));
  box-shadow: 0 3px 0 var(--brand-deep), 0 10px 18px -10px rgba(27,63,184,.9);
}
.brand__mark svg { width: 19px; height: 19px; }
.brand__name { font-size: 1.06rem; }

.nav { display: none; }

.nav__list {
  display: flex;
  align-items: center;
  gap: 4px;
  margin: 0; padding: 0; list-style: none;
}

.nav__link {
  display: inline-block;
  padding: 8px 12px;
  border-radius: 999px;
  font-size: .93rem;
  font-weight: 600;
  color: var(--ink-soft);
  text-decoration: none;
}
.nav__link:hover { background: rgba(255,255,255,.75); color: var(--ink); }
.nav__link.is-current { background: var(--brand-tint); color: var(--brand-deep); }

.masthead__tools { display: flex; align-items: center; gap: 8px; }

.lang { position: relative; }

.lang__button {
  display: inline-flex; align-items: center; gap: 7px;
  padding: 7px 11px;
  border: 0; cursor: pointer;
  border-radius: 999px;
  font: inherit; font-size: .85rem; font-weight: 700;
  color: var(--ink);
}
.lang__button img { border-radius: 3px; }

.lang__menu {
  position: absolute;
  inset-inline-end: 0;
  top: calc(100% + 10px);
  width: min(84vw, 320px);
  padding: 14px;
  background: var(--card);
  border-radius: var(--r-lg);
  box-shadow: 0 2px 0 var(--edge), 0 26px 50px -20px rgba(15,27,51,.5);
  z-index: 50;
}
.lang__title {
  margin: 0 0 10px;
  font-size: .74rem; font-weight: 700;
  letter-spacing: .08em; text-transform: uppercase;
  color: var(--ink-faint);
}
.lang__menu ul {
  display: grid; grid-template-columns: 1fr 1fr;
  gap: 4px; margin: 0; padding: 0; list-style: none;
  max-height: 60vh; overflow-y: auto;
}
.lang__menu a {
  display: flex; align-items: center; gap: 9px;
  padding: 9px 10px; border-radius: var(--r-sm);
  font-size: .9rem; text-decoration: none; color: var(--ink);
}
.lang__menu a:hover { background: var(--brand-tint); }
.lang__menu a.is-current { background: var(--brand-tint); font-weight: 700; }
.lang__menu img { border-radius: 3px; flex: none; }

.burger {
  width: 40px; height: 40px;
  border: 0; cursor: pointer; padding: 0;
  border-radius: 12px;
  display: grid; place-items: center;
}
.burger__bars { display: grid; gap: 4px; }
.burger__bars i {
  display: block; width: 17px; height: 2px;
  border-radius: 2px; background: var(--ink);
}

.drawer {
  border-top: 1px solid var(--line);
  background: rgba(255,255,255,.96);
}
.drawer__list { margin: 0; padding: 8px 18px 16px; list-style: none; }
.drawer__list a {
  display: block; padding: 12px 4px;
  font-weight: 600; text-decoration: none; color: var(--ink);
  border-bottom: 1px solid var(--line);
}
.drawer__list a.is-current { color: var(--brand-deep); }

/* --------------------------------------------------------------------------
   Hero and the downloader
   -------------------------------------------------------------------------- */

.hero { padding: 22px 0 6px; }

.crumbs { margin-bottom: 14px; }
.crumbs ol {
  display: flex; flex-wrap: wrap; gap: 6px;
  margin: 0; padding: 0; list-style: none;
  font-size: .81rem; color: var(--ink-faint);
}
.crumbs li + li::before { content: "/"; margin-inline-end: 6px; color: var(--edge); }
.crumbs a { color: var(--ink-faint); text-decoration: none; }
.crumbs a:hover { color: var(--brand); }

.hero__title {
  margin: 0 0 10px;
  font-size: clamp(1.75rem, 6.4vw, 2.9rem);
}

.hero__lead {
  margin: 0 0 22px;
  max-width: 62ch;
  font-size: clamp(1rem, 3.4vw, 1.09rem);
  color: var(--ink-soft);
}

.tool { margin-bottom: 34px; }

.tool__card { padding: 18px; }

.field {
  position: relative;
  display: flex; align-items: center;
  gap: 8px;
  padding: 6px 6px 6px 8px;
  background: #F5F8FE;
  border: 1px solid var(--line);
  border-radius: var(--r-md);
  box-shadow: inset 0 2px 5px rgba(15,27,51,.07);
}

/* The rail is the signature: it names the platform before you press. */
.field__rail {
  flex: none;
  width: 5px; height: 26px;
  border-radius: 999px;
  background: var(--edge);
  transition: background .18s ease, height .18s ease;
}
.field.is-instagram .field__rail { background: linear-gradient(180deg, #F9A03F, var(--insta)); height: 32px; }
.field.is-facebook  .field__rail { background: linear-gradient(180deg, #4E9BFF, var(--meta-blue)); height: 32px; }
.field.is-unknown   .field__rail { background: var(--danger); }

.field__input {
  flex: 1 1 auto;
  min-width: 0;
  border: 0; background: transparent;
  font: inherit; font-size: 1rem;
  color: var(--ink);
  padding: 11px 4px;
}
.field__input::placeholder { color: var(--ink-faint); }
.field__input:focus { outline: none; }

.field__paste {
  flex: none;
  border: 0; cursor: pointer;
  padding: 10px 14px;
  border-radius: 11px;
  font: inherit; font-size: .87rem; font-weight: 700;
  color: var(--brand-deep);
  background: var(--brand-tint);
  box-shadow: 0 2px 0 #C6D6FF;
  transition: transform .1s ease, box-shadow .1s ease;
}
.field__paste:active { transform: translateY(2px); box-shadow: 0 0 0 #C6D6FF; }

.tool__status {
  margin: 10px 2px 14px;
  font-size: .83rem;
  color: var(--ink-faint);
}
.tool__status.is-bad { color: var(--danger); }

.btn {
  display: inline-flex; align-items: center; justify-content: center;
  gap: 8px;
  width: 100%;
  border: 0; cursor: pointer;
  padding: 15px 20px;
  border-radius: var(--r-md);
  font-size: 1rem;
  text-decoration: none;
  transition: transform .1s ease, box-shadow .1s ease;
}

.btn--go {
  color: #fff;
  background: linear-gradient(180deg, var(--brand-lift), var(--brand));
  box-shadow: 0 4px 0 var(--brand-deep), 0 16px 26px -14px rgba(27,63,184,.95);
}
.btn--go:hover { color: #fff; }
.btn--go:active { transform: translateY(4px); box-shadow: 0 0 0 var(--brand-deep); }
.btn--go[disabled] { opacity: .55; cursor: default; transform: none; }

.linkish {
  display: inline-block;
  margin-top: 14px;
  border: 0; background: none; cursor: pointer;
  padding: 6px 2px;
  font: inherit; font-size: .9rem; font-weight: 600;
  color: var(--brand-deep);
  text-decoration: underline;
}

/* Working state */
.tool__working { text-align: center; padding: 26px 8px 20px; }
.tool__working-title { margin: 16px 0 4px; font-weight: 700; }
.tool__working-note { margin: 0; font-size: .87rem; color: var(--ink-faint); }

.orbit { display: inline-flex; gap: 7px; }
.orbit i {
  width: 10px; height: 10px; border-radius: 50%;
  background: var(--brand);
  animation: bob 1s ease-in-out infinite;
}
.orbit i:nth-child(2) { animation-delay: .13s; background: var(--brand-lift); }
.orbit i:nth-child(3) { animation-delay: .26s; background: var(--insta); }

@keyframes bob {
  0%, 100% { transform: translateY(0); opacity: .5; }
  50%      { transform: translateY(-7px); opacity: 1; }
}

/* Error */
.tool__alert {
  margin-top: 4px;
  padding: 13px 15px;
  border-radius: var(--r-md);
  background: var(--danger-tint);
  border: 1px solid #F5C9D1;
  color: var(--danger);
  font-size: .92rem;
}

/* Result */
.tool__result {
  margin-top: 22px;
  padding-top: 22px;
  border-top: 1px solid var(--line);
}

.tool__result-title { margin: 4px 0 14px; font-weight: 700; font-size: 1.05rem; }

.preview {
  position: relative;
  max-height: 40vh;
  border-radius: var(--r-md);
  overflow: hidden;
  background: #0C1426;
  box-shadow: inset 0 0 0 1px rgba(15,27,51,.14);
}
.preview__video {
  width: 100%;
  height: 100%;
  max-height: inherit;
  object-fit: contain;
  background: #0C1426;
}

.tool__result:focus { outline: none; }

.meta {
  display: flex; flex-wrap: wrap; gap: 8px 22px;
  margin: 14px 0 0;
}
.meta div { display: flex; gap: 7px; align-items: baseline; }
.meta dt { font-size: .76rem; text-transform: uppercase; letter-spacing: .06em; color: var(--ink-faint); margin: 0; }
.meta dd { margin: 0; font-size: .9rem; font-weight: 600; }

.tool__result-note { margin: 16px 0 10px; font-size: .88rem; color: var(--ink-faint); }

.downloads { display: grid; gap: 10px; }

.dl {
  display: flex; align-items: center; gap: 12px;
  padding: 13px 15px;
  border-radius: var(--r-md);
  text-decoration: none;
  color: #fff;
  background: linear-gradient(180deg, #2FA06C, #1F8A5B);
  box-shadow: 0 4px 0 #14603F, 0 14px 24px -16px rgba(31,138,91,.9);
  transition: transform .1s ease, box-shadow .1s ease;
}
.dl:hover { color: #fff; }
.dl:active { transform: translateY(4px); box-shadow: 0 0 0 #14603F; }
.dl__icon { flex: none; width: 20px; height: 20px; }
.dl__label { font-weight: 700; font-family: var(--display); min-width: 0; }
.dl__badge {
  margin-inline-start: auto;
  font-size: .72rem; font-weight: 700;
  letter-spacing: .06em;
  padding: 4px 8px;
  border-radius: 999px;
  background: rgba(255,255,255,.22);
}

/* --------------------------------------------------------------------------
   Content bands
   -------------------------------------------------------------------------- */

.band { margin: 0 0 40px; }

.band__title {
  margin: 0 0 16px;
  font-size: clamp(1.28rem, 4.6vw, 1.6rem);
}

.steps {
  display: grid; gap: 12px;
  margin: 0; padding: 0; list-style: none;
  counter-reset: none;
}
.step { position: relative; padding: 20px 18px 18px; }
.step__no {
  position: absolute;
  top: -12px; inset-inline-start: 18px;
  display: grid; place-items: center;
  width: 30px; height: 30px;
  border-radius: 10px;
  font-size: .9rem; color: #fff;
  background: linear-gradient(160deg, var(--brand-lift), var(--brand));
  box-shadow: 0 3px 0 var(--brand-deep);
}
.step__shot {
  width: 100%;
  height: auto;
  margin: 10px 0 14px;
  border-radius: 14px;
  background: #EDF2FA;
  box-shadow: inset 0 0 0 1px rgba(15, 27, 51, .07);
}

.step__title { margin: 8px 0 6px; font-size: 1.02rem; }
.step p { margin: 0; color: var(--ink-soft); font-size: .95rem; }

.cards {
  display: grid; gap: 12px;
  margin: 0; padding: 0; list-style: none;
}
.card { padding: 18px; }
.card h3 { margin: 0 0 6px; font-size: 1rem; }
.card p { margin: 0; color: var(--ink-soft); font-size: .94rem; }

.prose { max-width: 72ch; overflow-wrap: anywhere; }
.prose h2 {
  margin: 34px 0 12px;
  font-size: clamp(1.24rem, 4.4vw, 1.5rem);
}
.prose h2:first-child { margin-top: 0; }
.prose p { margin: 0 0 14px; color: var(--ink-soft); }

.ticks { margin: 0 0 16px; padding: 0; list-style: none; }
.ticks li {
  position: relative;
  overflow-wrap: anywhere;
  padding-inline-start: 26px;
  margin-bottom: 9px;
  color: var(--ink-soft);
}
.ticks li::before {
  content: "";
  position: absolute;
  inset-inline-start: 4px; top: .62em;
  width: 8px; height: 8px;
  border-radius: 3px;
  background: var(--brand);
  box-shadow: 0 2px 0 var(--brand-deep);
}

.faq { display: grid; gap: 10px; }
.faq__item { padding: 0; overflow: hidden; }
.faq__item summary {
  cursor: pointer;
  list-style: none;
  padding: 16px 46px 16px 18px;
  position: relative;
  font-family: var(--display);
  font-weight: 600;
  font-size: .98rem;
}
.faq__item summary::-webkit-details-marker { display: none; }
.faq__item summary::after {
  content: "";
  position: absolute;
  inset-inline-end: 18px; top: 50%;
  width: 9px; height: 9px;
  margin-top: -6px;
  border-inline-end: 2px solid var(--ink-faint);
  border-block-end: 2px solid var(--ink-faint);
  transform: rotate(45deg);
  transition: transform .18s ease;
}
.faq__item[open] summary::after { transform: rotate(225deg); margin-top: -2px; }
.faq__item p { margin: 0; padding: 0 18px 18px; color: var(--ink-soft); font-size: .94rem; }

.tiles {
  display: grid; gap: 10px;
  margin: 0; padding: 0; list-style: none;
}
.tile {
  display: block;
  padding: 16px 18px;
  text-decoration: none;
  color: var(--ink);
  transition: transform .1s ease, box-shadow .1s ease;
}
.tile:active { transform: translateY(2px); }
.tile__label {
  display: block;
  font-size: .74rem; font-weight: 700;
  letter-spacing: .08em; text-transform: uppercase;
  color: var(--brand);
}
.tile__name { display: block; font-family: var(--display); font-weight: 600; margin-top: 2px; }

/* --------------------------------------------------------------------------
   Article pages, contact form, 404
   -------------------------------------------------------------------------- */

.article { padding: 24px 0 40px; max-width: 74ch; }
.article__title { margin: 0 0 12px; font-size: clamp(1.7rem, 6vw, 2.4rem); }
.article__lead { margin: 0 0 26px; font-size: 1.06rem; color: var(--ink-soft); }

.contact { padding: 20px; margin-bottom: 20px; }
.contact__row { margin-bottom: 14px; }
.contact__row label {
  display: block;
  margin-bottom: 6px;
  font-size: .84rem; font-weight: 700;
  color: var(--ink-soft);
}
.contact input, .contact textarea {
  width: 100%;
  padding: 12px 13px;
  font: inherit;
  color: var(--ink);
  background: #F5F8FE;
  border: 1px solid var(--line);
  border-radius: var(--r-sm);
  box-shadow: inset 0 2px 5px rgba(15,27,51,.06);
}
.contact input:focus, .contact textarea:focus { outline: none; border-color: var(--brand); }
.contact textarea { resize: vertical; }
.contact__note { margin: 12px 0 0; font-size: .9rem; font-weight: 600; color: var(--ok); }
.contact__note.is-bad { color: var(--danger); }
.contact__direct { margin: 0 0 30px; font-size: .92rem; color: var(--ink-faint); }

.notfound { padding: 60px 0 80px; text-align: center; max-width: 46ch; margin-inline: auto; }
.notfound__code {
  margin: 0 0 10px;
  font-family: var(--display); font-weight: 700;
  font-size: 4.5rem; line-height: 1;
  color: var(--brand-tint);
  text-shadow: 0 3px 0 #fff;
}
.notfound .btn { max-width: 280px; margin-inline: auto; }

/* --------------------------------------------------------------------------
   Footer
   -------------------------------------------------------------------------- */

.footer { padding: 10px 0 40px; }
.footer__rule { height: 1px; border: 0; background: var(--edge); margin: 0 0 26px; }

.footer__grid { display: grid; gap: 24px; }
.footer__brand { margin: 0 0 6px; font-family: var(--display); font-weight: 700; }
.footer__heading {
  margin: 0 0 8px;
  font-size: .76rem; font-weight: 700;
  letter-spacing: .08em; text-transform: uppercase;
  color: var(--ink-faint);
}
.footer__small { margin: 0 0 10px; font-size: .86rem; color: var(--ink-faint); }
.footer__links { margin: 0; padding: 0; list-style: none; }
.footer__links li { margin-bottom: 6px; }
.footer__links a { font-size: .9rem; text-decoration: none; color: var(--ink-soft); }
.footer__links a:hover { color: var(--brand); text-decoration: underline; }

/* --------------------------------------------------------------------------
   Wider screens
   -------------------------------------------------------------------------- */

@media (min-width: 700px) {
  .shell { padding-inline: 28px; }
  .hero { padding-top: 36px; }
  .tool__card { padding: 24px; }
  .btn--go { width: auto; min-width: 220px; }
  .preview { max-height: 62vh; }
  .steps { grid-template-columns: repeat(3, 1fr); gap: 16px; }
  .cards { grid-template-columns: repeat(2, 1fr); }
  .tiles { grid-template-columns: repeat(3, 1fr); }
  .downloads { grid-template-columns: repeat(auto-fit, minmax(220px, 1fr)); }
  .footer__grid { grid-template-columns: 1fr 1.2fr 1fr; }
  .footer__col--mid { text-align: center; }
  .footer__col--end { text-align: end; }
  .footer__col--end .footer__links { display: flex; gap: 16px; justify-content: flex-end; }
  .footer__col--mid .footer__links { display: flex; gap: 16px; justify-content: center; }
}

@media (min-width: 940px) {
  .nav { display: block; }
  .burger { display: none; }
  .drawer { display: none !important; }
  .cards { grid-template-columns: repeat(3, 1fr); }
  .tool__card { padding: 28px; }
}

/* Right to left languages */
[dir="rtl"] .crumbs li + li::before { content: "\\"; }
[dir="rtl"] .faq__item summary { padding: 16px 18px 16px 46px; }

@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after {
    animation-duration: .001ms !important;
    animation-iteration-count: 1 !important;
    transition-duration: .001ms !important;
  }
}
